Skip to content

Commit

Permalink
Rename PayPalRequest protocol to BTPayPalRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
richherrera committed Jan 13, 2025
1 parent 5b86155 commit f90356b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/BraintreePayPal/BTPayPalCheckoutRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import BraintreeCore
}

/// Options for the PayPal Checkout flow.
@objcMembers public class BTPayPalCheckoutRequest: NSObject, PayPalRequest {
@objcMembers public class BTPayPalCheckoutRequest: NSObject, BTPayPalRequest {

// MARK: - Internal Properties

Expand Down
4 changes: 2 additions & 2 deletions Sources/BraintreePayPal/BTPayPalClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import BraintreeDataCollector
var clientMetadataID: String?

/// Exposed for testing the intent associated with this request
var payPalRequest: PayPalRequest?
var payPalRequest: BTPayPalRequest?

/// Exposed for testing, the ASWebAuthenticationSession instance used for the PayPal flow
var webAuthenticationSession: BTWebAuthenticationSession
Expand Down Expand Up @@ -331,7 +331,7 @@ import BraintreeDataCollector
// MARK: - Private Methods

private func tokenize(
request: PayPalRequest,
request: BTPayPalRequest,
completion: @escaping (BTPayPalAccountNonce?, Error?) -> Void
) {
linkType = (request as? BTPayPalVaultRequest)?.enablePayPalAppSwitch == true ? .universal : .deeplink
Expand Down
2 changes: 1 addition & 1 deletion Sources/BraintreePayPal/BTPayPalRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import BraintreeCore
}
}

protocol PayPalRequest {
protocol BTPayPalRequest {
var hermesPath: String { get }
var paymentType: BTPayPalPaymentType { get }
var billingAgreementDescription: String? { get }
Expand Down
2 changes: 1 addition & 1 deletion Sources/BraintreePayPal/BTPayPalVaultRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import BraintreeCore
#endif

/// Options for the PayPal Vault flow.
@objcMembers public class BTPayPalVaultRequest: NSObject, PayPalRequest {
@objcMembers public class BTPayPalVaultRequest: NSObject, BTPayPalRequest {

// MARK: - Internal Properties

Expand Down

0 comments on commit f90356b

Please sign in to comment.