Skip to content

Commit

Permalink
MXO Deprecation Annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
KunJeongPark committed Jun 21, 2024
1 parent 93c59e9 commit 77eec0b
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 3 deletions.
7 changes: 4 additions & 3 deletions PayPal.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"originHash" : "9f5faeaf68c5b33128078a8e5ae8e66905c17a87c672e7078cd94c980aa3dd72",
"pins" : [
{
"identity" : "paypalcheckout-ios",
"kind" : "remoteSourceControl",
"location" : "https://github.com/paypal/paypalcheckout-ios",
"state" : {
"revision" : "f477176da4c6780c8586b493c604f0ab74d9be49",
"version" : "1.2.0"
"revision" : "da1b998dcab91011b05df139a6819cc58dd45ccd",
"version" : "1.3.0"
}
}
],
"version" : 2
"version" : 3
}
1 change: 1 addition & 0 deletions Sources/PayPalNativePayments/NativeCheckoutProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import PayPalCheckout
import CorePayments
#endif

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
class NativeCheckoutProvider: NativeCheckoutStartable {

/// Used in POST body for FPTI analytics.
Expand Down
1 change: 1 addition & 0 deletions Sources/PayPalNativePayments/NativeCheckoutStartable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import PayPalCheckout
import CorePayments
#endif

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
protocol NativeCheckoutStartable {

/// Used in POST body for FPTI analytics.
Expand Down
3 changes: 3 additions & 0 deletions Sources/PayPalNativePayments/PayPalNativeCheckoutClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import PayPalCheckout
import CorePayments
#endif

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
/// PayPal Paysheet to handle PayPal transaction
/// encapsulates instance to communicate with nxo
public class PayPalNativeCheckoutClient {
Expand All @@ -18,6 +19,7 @@ public class PayPalNativeCheckoutClient {
private let config: CoreConfig
private var analyticsService: AnalyticsService?

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
/// Initialize a PayPalNativeCheckoutClient to process PayPal transaction
/// - Parameters:
/// - config: The CoreConfig object
Expand All @@ -35,6 +37,7 @@ public class PayPalNativeCheckoutClient {
self.networkingClient = networkingClient
}

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
// NEXT_MAJOR_VERSION: - Change to non-async
/// Present PayPal Paysheet and start a PayPal transaction
/// - Parameters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import CorePayments
#endif
import PayPalCheckout

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
/// A required delegate to handle events from `PayPalNativeCheckoutClient.start()`
public protocol PayPalNativeCheckoutDelegate: AnyObject {

Expand All @@ -28,6 +29,7 @@ public protocol PayPalNativeCheckoutDelegate: AnyObject {
func paypalWillStart(_ payPalClient: PayPalNativeCheckoutClient)
}

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
/// A delegate to receive notifications if the user changes their shipping information.
///
/// This is **only required** if the order ID was created with `shipping_preferences = GET_FROM_FILE`. [See Orders V2 documentation](https://developer.paypal.com/docs/api/orders/v2/#definition-order_application_context). If the order ID was created with `shipping_preferences = NO_SHIPPING` or `SET_PROVIDED_ADDRESS`, don't implement this protocol.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Foundation

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
/// Used to configure options for approving a PayPal native order
public struct PayPalNativeCheckoutRequest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Foundation

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
/// The result of a PayPal native payment flow.
public struct PayPalNativeCheckoutResult {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PayPalCheckout

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
/// The actions that can be used to update the Paysheet UI after `PayPalNativeShippingDelegate` methods are invoked.
public class PayPalNativePaysheetActions {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PayPalCheckout

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
// Wrapper for PayPalCheckout.ShippingChangeAddress
/// The user's selected shipping address via the PayPal Native Checkout UI.
///
Expand Down
2 changes: 2 additions & 0 deletions Sources/PayPalNativePayments/PayPalNativeShippingMethod.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import PayPalCheckout

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
// Wrapper for PayPalCheckout.ShippingMethod
/// The user's selected shipping method via the PayPal Native Checkout UI.
///
Expand Down Expand Up @@ -79,6 +80,7 @@ public struct PayPalNativeShippingMethod {
}
}

@available(*, deprecated, message: "PayPalNativePayments Module is deprecated, use PayPalWebPayments Module instead")
extension PayPalCheckout.ShippingType {

func toMerchantFacingShippingType() -> PayPalNativeShippingMethod.DeliveryType {
Expand Down

0 comments on commit 77eec0b

Please sign in to comment.