diff --git a/CHANGELOG.md b/CHANGELOG.md index a5c5ecca40..2c06058f3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ * BraintreeCore * For analytics, only call `fetchOrReturnRemoteConfig()` when batch uploading, not on each analytic event enqueue * For analytics, add additional metrics on networking timing +* BraintreePayPalNativeCheckout (DEPRECATED) + * **Note:** This module is deprecated and will be removed in a future version of the SDK + * Add deprecated warning message to all public classes and methods ## 6.21.0 (2024-06-12) * BraintreePayPal diff --git a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutAccountNonce.swift b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutAccountNonce.swift index e82a517780..dccd6a5d35 100644 --- a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutAccountNonce.swift +++ b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutAccountNonce.swift @@ -10,6 +10,7 @@ import BraintreePayPal import PayPalCheckout +@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") /// Contains information about a PayPal payment method. @objcMembers public class BTPayPalNativeCheckoutAccountNonce: BTPaymentMethodNonce { diff --git a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutClient.swift b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutClient.swift index 120860b856..4b0e0a6b4e 100644 --- a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutClient.swift +++ b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutClient.swift @@ -10,6 +10,7 @@ import BraintreePayPal import PayPalCheckout +@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") /// Client used to collect PayPal payment methods. If possible, this client will present a native flow; otherwise, it will fall back to a web flow. @objc public class BTPayPalNativeCheckoutClient: NSObject { @@ -25,6 +26,7 @@ import PayPalCheckout private let nativeCheckoutProvider: BTPayPalNativeCheckoutStartable + @available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") /// Initializes a PayPal Native client. /// - Parameter apiClient: The Braintree API client @objc(initWithAPIClient:) @@ -39,6 +41,7 @@ import PayPalCheckout // MARK: - Public Methods + @available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") /// Tokenize a PayPal request to be used with the PayPal Native Checkout flow. /// /// On success, you will receive an instance of `BTPayPalNativeCheckoutAccountNonce`. @@ -56,6 +59,7 @@ import PayPalCheckout tokenize(request: request, userAuthenticationEmail: request.userAuthenticationEmail, completion: completion) } + @available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") /// Tokenize a PayPal request to be used with the PayPal Native Checkout flow. /// /// On success, you will receive an instance of `BTPayPalNativeCheckoutAccountNonce`. @@ -77,6 +81,7 @@ import PayPalCheckout } } + @available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") /// Tokenize a PayPal request to be used with the PayPal Native Vault flow. /// /// On success, you will receive an instance of `BTPayPalNativeCheckoutAccountNonce`. @@ -94,6 +99,7 @@ import PayPalCheckout tokenize(request: request, completion: completion) } + @available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") /// Tokenize a PayPal request to be used with the PayPal Native Vault flow. /// /// On success, you will receive an instance of `BTPayPalNativeCheckoutAccountNonce`. diff --git a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutError.swift b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutError.swift index 2ccc8f2933..2262d66bdd 100644 --- a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutError.swift +++ b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutError.swift @@ -1,6 +1,7 @@ import Foundation import PayPalCheckout +@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") /// Error returned from the native PayPal flow public enum BTPayPalNativeCheckoutError: Error, CustomNSError, LocalizedError, Equatable { diff --git a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutProvider.swift b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutProvider.swift index e7cc3e3f9f..2532b2511b 100644 --- a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutProvider.swift +++ b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutProvider.swift @@ -5,6 +5,7 @@ import PayPalCheckout import BraintreePayPal #endif +@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") class BTPayPalNativeCheckoutProvider: BTPayPalNativeCheckoutStartable { /// Used in POST body for FPTI analytics. diff --git a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutRequest.swift b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutRequest.swift index f333a61fd7..a5591b46ac 100644 --- a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutRequest.swift +++ b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutRequest.swift @@ -8,6 +8,7 @@ import BraintreeCore import BraintreePayPal #endif +@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") /// Options for the PayPal Checkout flow. @objcMembers public class BTPayPalNativeCheckoutRequest: BTPayPalCheckoutRequest { diff --git a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutStartable.swift b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutStartable.swift index 45ef0ad665..c1da08dbe3 100644 --- a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutStartable.swift +++ b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutStartable.swift @@ -5,6 +5,7 @@ import PayPalCheckout import BraintreePayPal #endif +@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") protocol BTPayPalNativeCheckoutStartable { typealias StartableApproveCallback = (String?, User?) -> Void diff --git a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeOrderCreationClient.swift b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeOrderCreationClient.swift index b4cfa4da3f..715942b48c 100644 --- a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeOrderCreationClient.swift +++ b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeOrderCreationClient.swift @@ -14,6 +14,7 @@ struct BTPayPalNativeOrder: Equatable { let orderID: String } +@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") class BTPayPalNativeOrderCreationClient { var payPalContextID: String? = nil diff --git a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeTokenizationClient.swift b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeTokenizationClient.swift index e9e8f15689..eaf345712e 100644 --- a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeTokenizationClient.swift +++ b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeTokenizationClient.swift @@ -8,6 +8,7 @@ import BraintreePayPal import PayPalCheckout +@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") class BTPayPalNativeTokenizationClient { private let apiClient: BTAPIClient diff --git a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeTokenizationRequest.swift b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeTokenizationRequest.swift index 4a7ca7862f..da131fb7aa 100644 --- a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeTokenizationRequest.swift +++ b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeTokenizationRequest.swift @@ -8,6 +8,7 @@ import BraintreePayPal import PayPalCheckout +@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") class BTPayPalNativeTokenizationRequest { private let request: BTPayPalRequest diff --git a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeVaultRequest.swift b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeVaultRequest.swift index 6fa44883b7..ecd4fa7400 100644 --- a/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeVaultRequest.swift +++ b/Sources/BraintreePayPalNativeCheckout/BTPayPalNativeVaultRequest.swift @@ -8,6 +8,7 @@ import BraintreeCore import BraintreePayPal #endif +@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") /// Options for the PayPal Vault flow. @objcMembers public class BTPayPalNativeVaultRequest: BTPayPalVaultBaseRequest {