From f90356b85bc8d0b0fd5529d41ea4508b61f52df5 Mon Sep 17 00:00:00 2001 From: richherrera Date: Mon, 13 Jan 2025 12:52:01 -0600 Subject: [PATCH] Rename PayPalRequest protocol to BTPayPalRequest --- Sources/BraintreePayPal/BTPayPalCheckoutRequest.swift | 2 +- Sources/BraintreePayPal/BTPayPalClient.swift | 4 ++-- Sources/BraintreePayPal/BTPayPalRequest.swift | 2 +- Sources/BraintreePayPal/BTPayPalVaultRequest.swift | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/BraintreePayPal/BTPayPalCheckoutRequest.swift b/Sources/BraintreePayPal/BTPayPalCheckoutRequest.swift index 578b2367f..6fd5bc5e2 100644 --- a/Sources/BraintreePayPal/BTPayPalCheckoutRequest.swift +++ b/Sources/BraintreePayPal/BTPayPalCheckoutRequest.swift @@ -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 diff --git a/Sources/BraintreePayPal/BTPayPalClient.swift b/Sources/BraintreePayPal/BTPayPalClient.swift index 6c49ba7bb..0961a4b4a 100644 --- a/Sources/BraintreePayPal/BTPayPalClient.swift +++ b/Sources/BraintreePayPal/BTPayPalClient.swift @@ -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 @@ -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 diff --git a/Sources/BraintreePayPal/BTPayPalRequest.swift b/Sources/BraintreePayPal/BTPayPalRequest.swift index 4cd5e0986..7a8f30780 100644 --- a/Sources/BraintreePayPal/BTPayPalRequest.swift +++ b/Sources/BraintreePayPal/BTPayPalRequest.swift @@ -48,7 +48,7 @@ import BraintreeCore } } -protocol PayPalRequest { +protocol BTPayPalRequest { var hermesPath: String { get } var paymentType: BTPayPalPaymentType { get } var billingAgreementDescription: String? { get } diff --git a/Sources/BraintreePayPal/BTPayPalVaultRequest.swift b/Sources/BraintreePayPal/BTPayPalVaultRequest.swift index 610698d01..2d33d7365 100644 --- a/Sources/BraintreePayPal/BTPayPalVaultRequest.swift +++ b/Sources/BraintreePayPal/BTPayPalVaultRequest.swift @@ -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