Skip to content

PassKit macOS xcode15.0 b2

tj_devel709 edited this page Oct 16, 2023 · 3 revisions

#PassKit.framework https://github.com/xamarin/xamarin-macios/pull/19139

diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementRequest.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementRequest.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementRequest.h	2023-05-23 06:37:25
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementRequest.h	2023-06-14 03:56:19
@@ -16,7 +16,7 @@
 API_AVAILABLE(ios(17.0)) API_UNAVAILABLE(macos, tvos, watchos);
 @interface PKDisbursementRequest : NSObject
 
-// Identifies the merchant, as previously agreed with Apple.  Must match one of the merchant
+// Identifies the merchant, as previously agreed with Apple. Must match one of the merchant
 // identifiers in the application's entitlement.
 @property (nonatomic, copy) NSString *merchantIdentifier;
 
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPass.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPass.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPass.h	2023-05-23 06:37:25
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPass.h	2023-06-14 03:56:19
@@ -10,14 +10,7 @@
 #define __PKPASS_H
 
 #import <PassKit/PKObject.h>
-
-typedef NS_ENUM(NSUInteger, PKPassType) {
-    PKPassTypeBarcode,
-    PKPassTypeSecureElement API_AVAILABLE(macos(11.0), ios(13.4), watchos(6.2)),
-    PKPassTypePayment API_DEPRECATED("Use PKPassTypeSecureElement instead", macos(10.12, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), watchos(3.0, API_TO_BE_DEPRECATED)) = PKPassTypeSecureElement,
-    
-    PKPassTypeAny = ~(NSUInteger)0
-} API_AVAILABLE(macos(11.0), ios(8.0), watchos(3.0));
+#import <PassKit/PKPass_Types.h>
 
 @class PKPaymentPass;
 @class PKSecureElementPass;
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPass_Types.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPass_Types.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPass_Types.h	1969-12-31 19:00:00
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPass_Types.h	2023-06-14 03:56:19
@@ -0,0 +1,25 @@
+#if !__has_include(<PassKitCore/PKPass_Types.h>) || PK_USE_PUBLIC_PASSKIT
+//
+//  PKPass_Types.h
+//    PassKit
+//
+//  Copyright (c) 2023 Apple, Inc. All rights reserved.
+//
+
+#ifndef __PKPASS_TYPES_H
+#define __PKPASS_TYPES_H
+
+typedef NS_ENUM(NSUInteger, PKPassType) {
+    PKPassTypeBarcode,
+    PKPassTypeSecureElement API_AVAILABLE(macos(11.0), ios(13.4), watchos(6.2)),
+    PKPassTypePayment API_DEPRECATED("Use PKPassTypeSecureElement instead", macos(10.12, API_TO_BE_DEPRECATED), ios(8.0, API_TO_BE_DEPRECATED), watchos(3.0, API_TO_BE_DEPRECATED)) = PKPassTypeSecureElement,
+
+    PKPassTypeAny = ~(NSUInteger)0
+} API_AVAILABLE(macos(11.0), ios(8.0), watchos(3.0));
+
+#endif /* __PKPASS_TYPES_H */
+
+#else
+#import <TargetConditionals.h>
+#import <PassKitCore/PKPass_Types.h>
+#endif
\ No newline at end of file
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterUtilities.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterUtilities.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterUtilities.h	2023-05-23 06:37:24
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterUtilities.h	1969-12-31 19:00:00
@@ -1,51 +0,0 @@
-#if !__has_include(<PassKitCore/PKPayLaterUtilities.h>) || PK_USE_PUBLIC_PASSKIT
-//
-//  PKPayLaterUtilities.h
-//    PassKit
-//
-//  Copyright © 2023 Apple, Inc. All rights reserved.
-//
-
-#ifndef __PKPAYLATERUTILITIES_H
-#define __PKPAYLATERUTILITIES_H
-
-#import <TargetConditionals.h>
-
-#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
-
-typedef NS_ENUM(NSUInteger, PKPayLaterDisplayStyle) {
-    PKPayLaterDisplayStyleStandard = 0, /// The Standard Merchandising Widget
-    PKPayLaterDisplayStyleBadge, /// Displays a simple Pay badge with the pay later info graphic
-    PKPayLaterDisplayStyleCheckout, /// To be displayed inside of a toggleable checkout view
-    PKPayLaterDisplayStylePrice, /// To be shown beneath a products price
-} API_AVAILABLE(ios(17.0)) API_UNAVAILABLE(macos, watchos, tvos);
-
-typedef NS_ENUM(NSUInteger, PKPayLaterAction) {
-    PKPayLaterActionLearnMore = 0, /// Displays a simple info sheet on the learn more details of pay later
-    PKPayLaterActionCalculator, /// The Standard Price breakdown calculator for pay later, that features an interactive calculator
-} API_AVAILABLE(ios(17.0)) API_UNAVAILABLE(macos, watchos, tvos);
-
-@interface PKPayLaterUtilities : NSObject
-
-- (instancetype)init NS_UNAVAILABLE;
-+ (instancetype)new NS_UNAVAILABLE;
-
-/// Checks if a Pay Later Merchandising information can be displayed for the given values
-/// - Parameters:
-///   - amount: The users bag price or item pricing
-///   - locale: The localization data for the how the returned configuration will be
-///   - completion: The block that is called when the eligibility result is calculated
-+ (void)validateWithAmount:(NSDecimalNumber *)amount
-                    locale:(NSLocale *)locale
-                completion:(void(^)(BOOL eligible))completion NS_REFINED_FOR_SWIFT;
-
-@end
-
-#endif // TARGET_OS_IOS && !TARGET_OS_MACCATALYST
-
-#endif // __PKPAYLATERVIEW_H
-
-#else
-#import <TargetConditionals.h>
-#import <PassKitCore/PKPayLaterUtilities.h>
-#endif
\ No newline at end of file
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterValidator.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterValidator.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterValidator.h	1969-12-31 19:00:00
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterValidator.h	2023-06-14 03:56:18
@@ -0,0 +1,43 @@
+#if !__has_include(<PassKitCore/PKPayLaterValidator.h>) || PK_USE_PUBLIC_PASSKIT
+//
+//  PKPayLaterValidator.h
+//    PassKit
+//
+//  Copyright © 2023 Apple, Inc. All rights reserved.
+//
+
+#ifndef __PKPAYLATERVALIDATOR_H
+#define __PKPAYLATERVALIDATOR_H
+
+#import <TargetConditionals.h>
+
+#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
+
+typedef NS_ENUM(NSInteger, PKPayLaterDisplayStyle) {
+    PKPayLaterDisplayStyleStandard = 0, /// The Standard Merchandising Widget
+    PKPayLaterDisplayStyleBadge, /// Displays a simple Pay badge with the pay later info graphic
+    PKPayLaterDisplayStyleCheckout, /// To be displayed inside of a toggleable checkout view
+    PKPayLaterDisplayStylePrice, /// To be shown beneath a products price
+} API_AVAILABLE(ios(17.0)) API_UNAVAILABLE(macos, watchos, tvos);
+
+typedef NS_ENUM(NSInteger, PKPayLaterAction) {
+    PKPayLaterActionLearnMore = 0, /// Displays a simple info sheet on the learn more details of pay later
+    PKPayLaterActionCalculator, /// The Standard Price breakdown calculator for pay later, that features an interactive calculator
+} API_AVAILABLE(ios(17.0)) API_UNAVAILABLE(macos, watchos, tvos);
+
+/// Checks if a Pay Later Merchandising information can be displayed for the given values
+/// - Parameters:
+///   - amount: The users bag price or item pricing
+///   - currencyCode: The ISO 4217 code for the country or region of the merchant’s principle place of business.
+///   - completion: The block that is called when the eligibility result is calculated
+API_AVAILABLE(ios(17.0)) API_UNAVAILABLE(macos, watchos, tvos)
+extern void PKPayLaterValidateAmount(NSDecimalNumber *amount, NSString *currencyCode, void(^completion)(BOOL eligible)) NS_REFINED_FOR_SWIFT;
+
+#endif // TARGET_OS_IOS && !TARGET_OS_MACCATALYST
+
+#endif // __PKPAYLATERVIEW_H
+
+#else
+#import <TargetConditionals.h>
+#import <PassKitCore/PKPayLaterValidator.h>
+#endif
\ No newline at end of file
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterView.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterView.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterView.h	2023-05-23 06:37:24
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayLaterView.h	2023-06-14 03:56:18
@@ -13,7 +13,7 @@
 #if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
 
 #import <UIKit/UIKit.h>
-#import <PassKit/PKPayLaterUtilities.h>
+#import <PassKit/PKPayLaterValidator.h>
 
 @class PKPayLaterView;
 
@@ -36,9 +36,9 @@
 /// Constructs a view displaying Pay Later Merchandising information given a configuration
 /// - Parameters:
 ///   - amount: The users bag price or item pricing
-///   - locale: The localization data for the how the returned configuration will be
+///   - currencyCode: The ISO 4217 code for the country or region of the merchant’s principle place of business.
 - (instancetype)initWithAmount:(NSDecimalNumber *)amount
-                        locale:(NSLocale *)locale NS_REFINED_FOR_SWIFT;
+                  currencyCode:(NSString *)currencyCode NS_REFINED_FOR_SWIFT;
 
 /// Delegate used to receive callbacks about size changes
 @property (nonatomic, assign) id<PKPayLaterViewDelegate> delegate;
@@ -46,8 +46,8 @@
 /// The users bag price or item pricing
 @property (nonatomic, copy) NSDecimalNumber *amount NS_REFINED_FOR_SWIFT;
 
-/// The currency, region, and langauge localization data for the how the pay later view will be displayed.
-@property (nonatomic, copy) NSLocale *locale;
+/// The ISO 4217 code for the country or region of the merchant’s principle place of business.
+@property (nonatomic, copy) NSString *currencyCode NS_REFINED_FOR_SWIFT;
 
 /// The kind of Pay Later Merchandising widget look, such as a standalone product item view. Can be badge, plain, price or checkout.
 @property (nonatomic, assign) PKPayLaterDisplayStyle displayStyle;
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h	2023-05-23 06:37:25
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h	2023-06-14 03:56:18
@@ -1,4 +1,4 @@
-#if !__has_include(<PassKitMacHelper/PKPaymentAuthorizationController.h>) || PK_USE_PUBLIC_PASSKIT
+#if !__has_include(<PassKitMacHelperTemp/PKPaymentAuthorizationController.h>) || PK_USE_PUBLIC_PASSKIT
 //
 //  PKPaymentAuthorizationController.h
 //    PassKit
@@ -198,8 +198,6 @@
 #endif
 
 #else
-#if TARGET_OS_OSX 
 #import <TargetConditionals.h>
-#import <PassKitMacHelper/PKPaymentAuthorizationController.h>
-#endif
+#import <PassKitMacHelperTemp/PKPaymentAuthorizationController.h>
 #endif
\ No newline at end of file
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentButton.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentButton.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentButton.h	2023-05-23 06:37:25
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentButton.h	2023-06-14 03:56:19
@@ -1,4 +1,4 @@
-#if !__has_include(<PassKitMacHelper/PKPaymentButton.h>) || PK_USE_PUBLIC_PASSKIT
+#if !__has_include(<PassKitMacHelperTemp/PKPaymentButton.h>) || PK_USE_PUBLIC_PASSKIT
 //
 //  PKPaymentButton.h
 //    PassKit
@@ -42,8 +42,6 @@
 #endif // __PKPAYMENTBUTTON_H
 
 #else
-#if TARGET_OS_OSX 
 #import <TargetConditionals.h>
-#import <PassKitMacHelper/PKPaymentButton.h>
-#endif
+#import <PassKitMacHelperTemp/PKPaymentButton.h>
 #endif
\ No newline at end of file
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h	2023-05-23 02:54:38
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h	2023-06-14 01:05:00
@@ -97,7 +97,7 @@
 // Convenience method to create a payment coupon code expired error with the supplied description.
 + (NSError *)paymentCouponCodeExpiredErrorWithLocalizedDescription:(nullable NSString *)localizedDescription API_AVAILABLE(macos(12.0), ios(15.0)) API_UNAVAILABLE(watchos) NS_REFINED_FOR_SWIFT;
 
-// Identifies the merchant, as previously agreed with Apple.  Must match one of the merchant
+// Identifies the merchant, as previously agreed with Apple. Must match one of the merchant
 // identifiers in the application's entitlement.
 @property (nonatomic, copy) NSString *merchantIdentifier;
 
diff -ruN /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h
--- /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h	2023-05-25 01:34:33
+++ /Applications/Xcode_15.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h	2023-06-14 03:43:52
@@ -7,6 +7,7 @@
 
 #import <PassKit/PKConstants.h>
 #import <PassKit/PKObject.h>
+#import <PassKit/PKPass_Types.h>
 #import <PassKit/PKPass.h>
 #import <PassKit/PKSecureElementPass.h>
 #import <PassKit/PKPaymentPass.h>
@@ -175,7 +176,7 @@
 #if __has_include(<PassKit/PKPayLaterView.h>)
 #import <PassKit/PKPayLaterView.h>
 #endif
-#if __has_include(<PassKit/PKPayLaterUtilities.h>)
-#import <PassKit/PKPayLaterUtilities.h>
+#if __has_include(<PassKit/PKPayLaterValidator.h>)
+#import <PassKit/PKPayLaterValidator.h>
 #endif
 #endif // TARGET_OS_IOS && !TARGET_OS_MACCATALYST
Clone this wiki locally