Skip to content

Commit

Permalink
Update names
Browse files Browse the repository at this point in the history
  • Loading branch information
warmkesselj committed Jan 15, 2025
1 parent f963037 commit 15f3ccd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions Braintree.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
A9E80A9F24FEF40C00196BD3 /* BraintreeTestShared.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A903E1A624F9D34000C314E1 /* BraintreeTestShared.framework */; };
A9E80AA324FEF4D800196BD3 /* MockLocalPaymentRequestDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9E80AA224FEF4D800196BD3 /* MockLocalPaymentRequestDelegate.swift */; };
B8559B6C2CEBE9640014AE47 /* CreditCardGraphQLBody.swift in Sources */ = {isa = PBXBuildFile; fileRef = B8559B6B2CEBE9640014AE47 /* CreditCardGraphQLBody.swift */; };
B86AF77B2CDBF3C3002CF3B4 /* CreditCardBody.swift in Sources */ = {isa = PBXBuildFile; fileRef = B86AF77A2CDBF3AA002CF3B4 /* CreditCardBody.swift */; };
B86AF77B2CDBF3C3002CF3B4 /* CreditCardPOSTBody.swift in Sources */ = {isa = PBXBuildFile; fileRef = B86AF77A2CDBF3AA002CF3B4 /* CreditCardPOSTBody.swift */; };
BC17F9B428D23C5C004B18CC /* BTGraphQLMultiErrorNode.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC17F9B328D23C5C004B18CC /* BTGraphQLMultiErrorNode.swift */; };
BC17F9BC28D24C9E004B18CC /* BTGraphQLErrorTree.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC17F9BB28D24C9E004B18CC /* BTGraphQLErrorTree.swift */; };
BC17F9BE28D25054004B18CC /* BTGraphQLErrorNode.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC17F9BD28D25054004B18CC /* BTGraphQLErrorNode.swift */; };
Expand Down Expand Up @@ -962,7 +962,7 @@
A9E5C22824FD6D0800EE691F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
A9E80AA224FEF4D800196BD3 /* MockLocalPaymentRequestDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockLocalPaymentRequestDelegate.swift; sourceTree = "<group>"; };
B8559B6B2CEBE9640014AE47 /* CreditCardGraphQLBody.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CreditCardGraphQLBody.swift; sourceTree = "<group>"; };
B86AF77A2CDBF3AA002CF3B4 /* CreditCardBody.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CreditCardBody.swift; sourceTree = "<group>"; };
B86AF77A2CDBF3AA002CF3B4 /* CreditCardPOSTBody.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CreditCardPOSTBody.swift; sourceTree = "<group>"; };
BC17F9B328D23C5C004B18CC /* BTGraphQLMultiErrorNode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTGraphQLMultiErrorNode.swift; sourceTree = "<group>"; };
BC17F9BB28D24C9E004B18CC /* BTGraphQLErrorTree.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTGraphQLErrorTree.swift; sourceTree = "<group>"; };
BC17F9BD28D25054004B18CC /* BTGraphQLErrorNode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BTGraphQLErrorNode.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1825,7 +1825,7 @@
BEFE9A3C29C8ECAA00BF69AB /* BTCardError.swift */,
BE80C00A29C66F4800793A6C /* BTCardNonce.swift */,
BE80C00829C559B800793A6C /* BTCardRequest.swift */,
B86AF77A2CDBF3AA002CF3B4 /* CreditCardBody.swift */,
B86AF77A2CDBF3AA002CF3B4 /* CreditCardPOSTBody.swift */,
B8559B6B2CEBE9640014AE47 /* CreditCardGraphQLBody.swift */,
BE80C00629C5516E00793A6C /* BTThreeDSecureInfo.swift */,
806C85622B90EBED00A2754C /* PrivacyInfo.xcprivacy */,
Expand Down Expand Up @@ -3494,7 +3494,7 @@
BE80C00529C54F2000793A6C /* BTAuthenticationInsight.swift in Sources */,
BE80C00729C5516E00793A6C /* BTThreeDSecureInfo.swift in Sources */,
BEFE9A3D29C8ECAA00BF69AB /* BTCardError.swift in Sources */,
B86AF77B2CDBF3C3002CF3B4 /* CreditCardBody.swift in Sources */,
B86AF77B2CDBF3C3002CF3B4 /* CreditCardPOSTBody.swift in Sources */,
B8559B6C2CEBE9640014AE47 /* CreditCardGraphQLBody.swift in Sources */,
BEFE9A3B29C8EC6B00BF69AB /* BTCardClient.swift in Sources */,
);
Expand Down
12 changes: 6 additions & 6 deletions Sources/BraintreeCard/BTCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,17 @@ import Foundation

// MARK: - Internal Methods

func parameters() -> CreditCardBody.CreditCard {
func parameters() -> CreditCardPOSTBody.CreditCard {
var cardBody = creditCardParams()

cardBody.billingAddress = billingAddress()
cardBody.options = CreditCardBody.CreditCard.Options(validate: shouldValidate)
cardBody.options = CreditCardPOSTBody.CreditCard.Options(validate: shouldValidate)

return cardBody
}

private func creditCardParams() -> CreditCardBody.CreditCard {
CreditCardBody.CreditCard(
private func creditCardParams() -> CreditCardPOSTBody.CreditCard {
CreditCardPOSTBody.CreditCard(
number: number,
expirationMonth: expirationMonth,
cvv: cvv,
Expand All @@ -99,8 +99,8 @@ import Foundation
)
}

private func billingAddress() -> CreditCardBody.CreditCard.BillingAddress {
CreditCardBody.CreditCard.BillingAddress(
private func billingAddress() -> CreditCardPOSTBody.CreditCard.BillingAddress {
CreditCardPOSTBody.CreditCard.BillingAddress(
firstName: firstName,
lastName: lastName,
company: company,
Expand Down
6 changes: 3 additions & 3 deletions Sources/BraintreeCard/BTCardClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ import BraintreeCore
return false
}

private func clientAPIParameters(for card: BTCard) -> CreditCardBody {
private func clientAPIParameters(for card: BTCard) -> CreditCardPOSTBody {

var creditCardBody = CreditCardBody()
var creditCardBody = CreditCardPOSTBody()

var meta = CreditCardBody.Meta(
var meta = CreditCardPOSTBody.Meta(
integration: apiClient.metadata.integration.stringValue,
source: apiClient.metadata.source.stringValue,
sessionId: apiClient.metadata.sessionID
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// swiftlint:disable all
import Foundation

struct CreditCardBody: Encodable {
struct CreditCardPOSTBody: Encodable {
var authenticationInsight: Bool?
var merchantAccountId: String?
var meta: Meta?
Expand Down

0 comments on commit 15f3ccd

Please sign in to comment.