-
Notifications
You must be signed in to change notification settings - Fork 516
PassKit macOS xcode14.0 beta1
TJ Lambert edited this page Aug 3, 2022
·
3 revisions
#PassKit.framework https://github.com/xamarin/xamarin-macios/pull/15613
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddCarKeyPassConfiguration.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddCarKeyPassConfiguration.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddCarKeyPassConfiguration.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddCarKeyPassConfiguration.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKAddCarKeyPassConfiguration.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKAddCarKeyPassConfiguration.h
// PassKit
@@ -18,7 +19,14 @@
@property (nonatomic, copy) NSString *password;
@property (nonatomic, assign) PKRadioTechnology supportedRadioTechnologies API_AVAILABLE(ios(14.5), watchos(7.3));
+@property (nonatomic, copy) NSString *manufacturerIdentifier API_AVAILABLE(ios(16.0), watchos(9.0));
+
+@property (nonatomic, strong, nullable) NSString *provisioningTemplateIdentifier API_AVAILABLE(ios(16.0), watchos(9.0));
@end
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKAddCarKeyPassConfiguration.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassButton.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassButton.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassButton.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassButton.h 2022-05-31 15:01:42.000000000 -0400
@@ -5,6 +5,9 @@
// Copyright © 2015 Apple, Inc. All rights reserved.
//
+#ifndef __PKADDPASSBUTTON_H
+#define __PKADDPASSBUTTON_H
+
#import <TargetConditionals.h>
#if TARGET_OS_IOS
@@ -34,3 +37,4 @@
NS_ASSUME_NONNULL_END
#endif
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassesViewController.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassesViewController.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassesViewController.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPassesViewController.h 2022-05-31 15:01:42.000000000 -0400
@@ -5,6 +5,9 @@
// Copyright (c) 2011 Apple, Inc. All rights reserved.
//
+#ifndef __PKADDPASSESVIEWCONTROLLER_H
+#define __PKADDPASSESVIEWCONTROLLER_H
+
#import <TargetConditionals.h>
#if TARGET_OS_IPHONE
@@ -38,3 +41,4 @@
NS_ASSUME_NONNULL_END
#endif
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassRequest.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassRequest.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassRequest.h 2022-02-23 10:55:25.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassRequest.h 2022-05-31 15:01:43.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKAddPaymentPassRequest.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKAddPaymentPassRequest.h
// PassKit
@@ -80,3 +81,7 @@
NS_ASSUME_NONNULL_END
#endif
+
+#else
+#import <PassKitCore/PKAddPaymentPassRequest.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassViewController.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassViewController.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassViewController.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddPaymentPassViewController.h 2022-05-31 15:01:41.000000000 -0400
@@ -5,6 +5,9 @@
// Copyright © 2015 Apple, Inc. All rights reserved.
//
+#ifndef __PKADDPAYMENTPASSVIEWCONTROLLER_H
+#define __PKADDPAYMENTPASSVIEWCONTROLLER_H
+
#import <TargetConditionals.h>
#if TARGET_OS_IPHONE
@@ -54,3 +57,4 @@
NS_ASSUME_NONNULL_END
#endif // TARGET_OS_IPHONE
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassConfiguration.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassConfiguration.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassConfiguration.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassConfiguration.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKAddSecureElementPassConfiguration.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKAddSecureElementPassConfiguration.h
// PassKit
@@ -22,3 +23,7 @@
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKAddSecureElementPassConfiguration.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassViewController.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassViewController.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassViewController.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddSecureElementPassViewController.h 2022-05-31 15:01:42.000000000 -0400
@@ -20,10 +20,12 @@
API_AVAILABLE(ios(13.4))
@protocol PKAddSecureElementPassViewControllerDelegate <NSObject>
+@optional
- (void)addSecureElementPassViewController:(PKAddSecureElementPassViewController *)controller
didFinishAddingSecureElementPass:(nullable PKSecureElementPass *)pass
error:(nullable NSError *)error API_DEPRECATED("Use addSecureElementPassViewController:didFinishAddingSecureElementPasses:error: instead", ios(13.4, 14.0));
+@required
- (void)addSecureElementPassViewController:(PKAddSecureElementPassViewController *)controller
didFinishAddingSecureElementPasses:(nullable NSArray<PKSecureElementPass *> *)passes
error:(nullable NSError *)error;
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddShareablePassConfiguration.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddShareablePassConfiguration.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddShareablePassConfiguration.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddShareablePassConfiguration.h 2022-05-31 14:51:07.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKAddShareablePassConfiguration.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKAddShareablePassConfiguration.h
// PassKit
@@ -12,6 +13,26 @@
NS_ASSUME_NONNULL_BEGIN
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_NAME(PKShareablePassMetadata.Preview)
+@interface PKShareablePassMetadataPreview : NSObject
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+- (instancetype)initWithPassThumbnail:(CGImageRef)passThumbnail localizedDescription:(NSString *)description;
+- (instancetype)initWithTemplateIdentifier:(NSString *)templateIdentifier;
+
++ (PKShareablePassMetadataPreview *)previewWithPassThumbnail:(CGImageRef)passThumbnail localizedDescription:(NSString *)description;
++ (PKShareablePassMetadataPreview *)previewWithTemplateIdentifier:(NSString *)templateIdentifier;
+
+@property (nonatomic, assign, readonly, nullable) CGImageRef passThumbnailImage CF_RETURNS_NOT_RETAINED;
+@property (nonatomic, strong, readonly, nullable) NSString *localizedDescription;
+@property (nonatomic, strong, nullable) NSString *ownerDisplayName;
+
+@property (nonatomic, strong, readonly, nullable) NSString *provisioningTemplateIdentifier;
+
+@end
+
API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos, tvos)
@interface PKShareablePassMetadata : NSObject
@@ -20,7 +41,8 @@
sharingInstanceIdentifier:(NSString *)sharingInstanceIdentifier
passThumbnailImage:(CGImageRef)passThumbnailImage
ownerDisplayName:(NSString *)ownerDisplayName
- localizedDescription:(NSString *)localizedDescription;
+ localizedDescription:(NSString *)localizedDescription
+API_DEPRECATED("Use initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardConfigurationIdentifier:passPreviewMetadata:", ios(14.0, 16.0));
- (instancetype)initWithProvisioningCredentialIdentifier:(NSString *)credentialIdentifier
sharingInstanceIdentifier:(NSString *)sharingInstanceIdentifier
@@ -31,20 +53,55 @@
templateIdentifier:(NSString *)templateIdentifier
relyingPartyIdentifier:(NSString *)relyingPartyIdentifier
requiresUnifiedAccessCapableDevice:(BOOL)requiresUnifiedAccessCapableDevice
-API_AVAILABLE(ios(15.0), watchos(8.0));
+API_DEPRECATED("Use initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardTemplateIdentifier:passPreviewMetadata:", ios(15.0, 16.0));
+
+- (instancetype)initWithProvisioningCredentialIdentifier:(NSString *)credentialIdentifier
+ sharingInstanceIdentifier:(NSString *)sharingInstanceIdentifier
+ cardTemplateIdentifier:(NSString *)templateIdentifier
+ preview:(PKShareablePassMetadataPreview *)preview
+API_AVAILABLE(ios(16.0))
+API_UNAVAILABLE(watchos, tvos);
+
+- (instancetype)initWithProvisioningCredentialIdentifier:(NSString *)credentialIdentifier
+ sharingInstanceIdentifier:(NSString *)sharingInstanceIdentifier
+ cardConfigurationIdentifier:(NSString *)templateIdentifier
+ preview:(PKShareablePassMetadataPreview *)preview
+API_AVAILABLE(ios(16.0))
+API_UNAVAILABLE(watchos, tvos);
+
+// Pass Configuration Properties
+// A unique identifier for provisioning credential data.
@property (nonatomic, strong, readonly) NSString *credentialIdentifier;
-@property (nonatomic, strong, readonly) NSString *cardConfigurationIdentifier;
+// A unique identifier that refers to an instance of sharing of credentials to a user's device initiated from another user, device, or web.
@property (nonatomic, strong, readonly) NSString *sharingInstanceIdentifier;
-@property (nonatomic, strong, readonly) NSString *accountHash API_AVAILABLE(ios(15.0), watchos(8.0));
-@property (nonatomic, strong, readonly) NSString *templateIdentifier API_AVAILABLE(ios(15.0), watchos(8.0));
-@property (nonatomic, strong, readonly) NSString *relyingPartyIdentifier API_AVAILABLE(ios(15.0), watchos(8.0));
-@property (nonatomic, assign, readonly) BOOL requiresUnifiedAccessCapableDevice;
+// Identifier referencing a card template registered in portal - identifies a combination of cardProfileIdentifier, cardConfigurationIdentifier, and cardArtBundleName.
+@property (nonatomic, strong, readonly) NSString *templateIdentifier API_DEPRECATED_WITH_REPLACEMENT("cardTemplateIdentifier", ios(15.0, 16.0));
+// Identifier referencing a card template registered in portal - identifies a combination of cardProfileIdentifier, cardConfigurationIdentifier, and cardArtBundleName.
+@property (nonatomic, strong, readonly) NSString *cardTemplateIdentifier API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos, tvos);
+@property (nonatomic, strong, readonly) NSString *cardConfigurationIdentifier;
+// Specify that the passes to provision require a unified access capable device.
+// This is primarily used when provisioning a pass that uses an ISO18013-5 payload.
+@property (nonatomic, assign) BOOL requiresUnifiedAccessCapableDevice API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(watchos, tvos);
+
+// Identifer referencing the target server environment Apple Pay servers should reach
+// out to to provision this pass.
+@property (nonatomic, strong) NSString *serverEnvironmentIdentifier API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos, tvos);
+
+// Display Properties
+
+@property (nonatomic, strong, readonly) PKShareablePassMetadataPreview *preview API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos, tvos);
-@property (nonatomic, readonly) CGImageRef passThumbnailImage CF_RETURNS_NOT_RETAINED;
+@property (nonatomic, readonly) CGImageRef passThumbnailImage CF_RETURNS_NOT_RETAINED API_DEPRECATED_WITH_REPLACEMENT("preview.passThumbnailImage", ios(14.0, 16.0), watchos(8.0, 9.0));
+@property (nonatomic, strong, readonly) NSString *localizedDescription API_DEPRECATED_WITH_REPLACEMENT("preview.localizedDescription", ios(14.0, 16.0), watchos(8.0, 9.0));
+@property (nonatomic, strong, readonly) NSString *ownerDisplayName API_DEPRECATED_WITH_REPLACEMENT("preview.ownerDisplayName", ios(14.0, 16.0), watchos(8.0, 9.0));
-@property (nonatomic, strong, readonly) NSString *localizedDescription;
-@property (nonatomic, strong, readonly) NSString *ownerDisplayName;
+// FIDO Properties
+
+// An identifier representing an entity that uses a FIDO protocol to directly authenticate users.
+@property (nonatomic, strong) NSString *accountHash API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(watchos, tvos);
+// Unique accountHash representing the external account in partner's system. This value needs to be the same for all the provisionings pointing to the same user account.
+@property (nonatomic, strong) NSString *relyingPartyIdentifier API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(watchos, tvos);
@end
@@ -61,12 +118,23 @@
primaryAction:(PKAddShareablePassConfigurationPrimaryAction)action
completion:(void(^)(PKAddShareablePassConfiguration * _Nullable shareableCredentialConfiguration, NSError * _Nullable error))completion
NS_SWIFT_NAME(forPassMetaData(_:provisioningPolicyIdentifier:action:completion:))
-NS_SWIFT_ASYNC(4);
+API_DEPRECATED("Use configurationForPassMetadata:primaryAction:completion:", ios(14.0, 16.0), watchos(7.0, 9.0));
+
++ (void)configurationForPassMetadata:(NSArray<PKShareablePassMetadata *> *)passMetadata
+ primaryAction:(PKAddShareablePassConfigurationPrimaryAction)action
+ completion:(void(^)(PKAddShareablePassConfiguration * _Nullable shareableCredentialConfiguration, NSError * _Nullable error))completion
+NS_SWIFT_NAME(forPassMetadata(_:action:completion:))
+API_AVAILABLE(ios(16.0))
+API_UNAVAILABLE(watchos, tvos);
@property (nonatomic, readonly) PKAddShareablePassConfigurationPrimaryAction primaryAction;
@property (nonatomic, strong, readonly) NSArray<PKShareablePassMetadata *> *credentialsMetadata;
-@property (nonatomic, strong, readonly) NSString *provisioningPolicyIdentifier;
+@property (nonatomic, strong, readonly) NSString *provisioningPolicyIdentifier API_DEPRECATED("provisioningPolicyIdentifier has been deprecated. You can stop setting this property in the init with no repercussions.", ios(14.0, 16.0), watchos(7.0, 9.0));
@end
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKAddShareablePassConfiguration.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentRequest.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentRequest.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentRequest.h 2022-02-22 00:08:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentRequest.h 2022-05-31 15:01:41.000000000 -0400
@@ -1,6 +1,56 @@
+#if !__has_include(<PassKitCore/PKAutomaticReloadPaymentRequest.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKAutomaticReloadPaymentRequest.h
-//
+// PassKit
// Copyright © 2021 Apple, Inc. All rights reserved.
//
+
+#ifndef PKAutomaticReloadPaymentRequest_h
+#define PKAutomaticReloadPaymentRequest_h
+
+@class PKAutomaticReloadPaymentSummaryItem;
+
+NS_ASSUME_NONNULL_BEGIN
+
+// Represents a request to set up an automatic reload or refill payment, such as a store card top-up.
+// This request will receive a merchant-specific payment token, if the payment network supports
+// merchant-specific payment tokens.
+API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos)
+@interface PKAutomaticReloadPaymentRequest : NSObject
+
+// A description of the automatic reload, for example "Gift Card Reload".
+@property (nonatomic, copy) NSString *paymentDescription;
+
+// Details about the automatic reload payment, for example "top-up with $20 when account reaches $5".
+@property (nonatomic, strong) PKAutomaticReloadPaymentSummaryItem *automaticReloadBilling;
+
+// Optional, localized billing agreement to be displayed to the user prior to payment authorization.
+// This may include further details about the threshold amount or reload conditions.
+@property (nonatomic, copy, nullable) NSString *billingAgreement;
+
+// A URL that links to a page on your web site where the user can manage the payment method for this
+// automatic reload payment, including deleting it.
+@property (nonatomic, strong) NSURL *managementURL;
+
+// Optional URL to receive lifecycle notifications for the merchant-specific payment token issued
+// for this request, if applicable. If this property is not set, notifications will not be sent when
+// lifecycle changes occur for the token, for example when the token is deleted.
+@property (nonatomic, strong, nullable) NSURL *tokenNotificationURL;
+
+- (instancetype)init NS_UNAVAILABLE;
+
+- (instancetype)initWithPaymentDescription:(NSString *)paymentDescription
+ automaticReloadBilling:(PKAutomaticReloadPaymentSummaryItem *)automaticReloadBilling
+ managementURL:(NSURL *)managementURL NS_DESIGNATED_INITIALIZER;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif /* PKAutomaticReloadPaymentRequest_h */
+
+
+#else
+#import <PassKitCore/PKAutomaticReloadPaymentRequest.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentSummaryItem.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentSummaryItem.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentSummaryItem.h 2022-02-22 00:08:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAutomaticReloadPaymentSummaryItem.h 2022-05-31 15:01:43.000000000 -0400
@@ -1,8 +1,32 @@
+#if !__has_include(<PassKitCore/PKAutomaticReloadPaymentSummaryItem.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKAutomaticReloadPaymentSummaryItem.h
+// PassKit
//
// Copyright © 2021 Apple, Inc. All rights reserved.
//
#import <PassKit/PKPaymentSummaryItem.h>
+
+#ifndef PKAutomaticReloadPaymentSummaryItem_h
+#define PKAutomaticReloadPaymentSummaryItem_h
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos)
+@interface PKAutomaticReloadPaymentSummaryItem : PKPaymentSummaryItem
+
+// The threshold at which the reload amount will be applied.
+@property (nonatomic, strong) NSDecimalNumber *thresholdAmount;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif // PKAutomaticReloadPaymentSummaryItem_h
+
+
+#else
+#import <PassKitCore/PKAutomaticReloadPaymentSummaryItem.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKBarcodeEventMetadataRequest.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKBarcodeEventMetadataRequest.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKBarcodeEventMetadataRequest.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKBarcodeEventMetadataRequest.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKBarcodeEventMetadataRequest.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKBarcodeEventMetadataRequest.h
// PassKit
@@ -68,3 +69,7 @@
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKBarcodeEventMetadataRequest.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h 2022-02-23 07:58:04.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h 2022-05-31 15:03:19.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKConstants.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKConstants.h
// PassKit
@@ -41,9 +42,6 @@
extern PKPaymentNetwork const PKPaymentNetworkGirocard API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0));
extern PKPaymentNetwork const PKPaymentNetworkWaon API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0));
extern PKPaymentNetwork const PKPaymentNetworkNanaco API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0));
-#if APPLE_FEATURE_LYNX
-extern PKPaymentNetwork const PKPaymentNetworkAppleStoredValue API_AVAILABLE(macos(12.4), ios(15.4), watchos(8.4));
-#endif // APPLE_FEATURE_LYNX
typedef NSString * PKContactField NS_STRING_ENUM;
extern PKContactField const PKContactFieldPostalAddress API_AVAILABLE(macos(11.0), ios(11.0), watchos(4.0));
extern PKContactField const PKContactFieldEmailAddress API_AVAILABLE(macos(11.0), ios(11.0), watchos(4.0));
@@ -99,3 +97,7 @@
} API_AVAILABLE(ios(14.5), watchos(7.3));
#endif // PKCONSTANTS_H
+
+#else
+#import <PassKitCore/PKConstants.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h 2022-02-23 10:55:22.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h 2022-05-31 15:01:41.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKContact.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKContact.h
-//
+// PassKit
// Copyright © 2015 Apple, Inc. All rights reserved.
//
@@ -35,3 +36,7 @@
@end
#endif
+
+#else
+#import <PassKitCore/PKContact.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDateComponentsRange.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDateComponentsRange.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDateComponentsRange.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDateComponentsRange.h 2022-05-31 15:01:41.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKDateComponentsRange.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKDateComponentsRange.h
-//
+// PassKit
// Copyright © 2020 Apple, Inc. All rights reserved.
//
@@ -27,3 +28,7 @@
NS_ASSUME_NONNULL_END
#endif
+
+#else
+#import <PassKitCore/PKDateComponentsRange.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentSummaryItem.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentSummaryItem.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentSummaryItem.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentSummaryItem.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKDeferredPaymentSummaryItem.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKDeferredPaymentSummaryItem.h
-//
+// PassKit
// Copyright © 2021 Apple, Inc. All rights reserved.
//
@@ -22,3 +23,7 @@
NS_ASSUME_NONNULL_END
#endif // __PKDEFERREDPAYMENTSUMMARYITEM_H__
+
+#else
+#import <PassKitCore/PKDeferredPaymentSummaryItem.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementAuthorizationController.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementAuthorizationController.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementAuthorizationController.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementAuthorizationController.h 2022-05-31 15:01:41.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKDisbursementAuthorizationController.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKDisbursementAuthorizationController.h
-//
+// PassKit
// Copyright © 2019 Apple, Inc. All rights reserved.
//
@@ -45,3 +46,7 @@
@end
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKDisbursementAuthorizationController.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementRequest.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementRequest.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementRequest.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementRequest.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKDisbursementRequest.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKDisbursementRequest.h
-//
+// PassKit
// Copyright © 2019 Apple, Inc. All rights reserved.
//
@@ -36,3 +37,7 @@
@end
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKDisbursementRequest.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementVoucher.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementVoucher.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementVoucher.h 2022-02-23 10:55:25.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDisbursementVoucher.h 2022-05-31 15:01:43.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKDisbursementVoucher.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKDisbursementVoucher.h
-//
+// PassKit
// Copyright © 2019 Apple, Inc. All rights reserved.
//
@@ -20,3 +21,7 @@
@end
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKDisbursementVoucher.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKError.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKError.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKError.h 2022-02-23 10:55:22.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKError.h 2022-05-31 15:01:41.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKError.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKError.h
// PassKit
@@ -58,7 +59,22 @@
PKAddSecureElementPassInvalidConfigurationError,
PKAddSecureElementPassDeviceNotSupportedError,
PKAddSecureElementPassDeviceNotReadyError,
+ PKAddSecureElementPassOSVersionNotSupportedError,
} API_AVAILABLE(ios(13.4));
+extern NSString * const PKShareSecureElementPassErrorDomain API_AVAILABLE(ios(16.0));
+
+typedef NS_ERROR_ENUM(PKShareSecureElementPassErrorDomain, PKShareSecureElementPassErrorCode) {
+ PKShareSecureElementPassUnknownError,
+ // Unable to present share pass UI. This generally occurs when your app isn't entitled to the pass
+ // or the pass isn't shareable.
+ PKShareSecureElementPassSetupError,
+
+} API_AVAILABLE(ios(16.0));
+
NS_ASSUME_NONNULL_END
#endif // __PKERROR_H
+
+#else
+#import <PassKitCore/PKError.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityAuthorizationController.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityAuthorizationController.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityAuthorizationController.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityAuthorizationController.h 2022-05-31 15:01:41.000000000 -0400
@@ -0,0 +1,58 @@
+#if !__has_include(<PassKitCore/PKIdentityAuthorizationController.h>) || PK_USE_PUBLIC_PASSKIT
+//
+// PKIdentityAuthorizationController.h
+// PassKit
+//
+// Copyright © 2022 Apple, Inc. All rights reserved.
+//
+
+
+#import <Foundation/Foundation.h>
+#import <PassKit/PKIdentityDocumentDescriptor.h>
+#import <PassKit/PKIdentityRequest.h>
+#import <PassKit/PKIdentityDocument.h>
+
+#ifndef PKIdentityAuthorizationController_h
+#define PKIdentityAuthorizationController_h
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// Used to request information from an identity document stored as a Wallet pass.
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
+@interface PKIdentityAuthorizationController: NSObject
+
+- (instancetype)init;
+
+/// Determines if a document can be requested, taking into account the entitlement of the
+/// calling process as well as the state of this device.
+- (void)checkCanRequestDocument:(id<PKIdentityDocumentDescriptor>)descriptor
+ completion:(void(^)(BOOL canRequest))completion NS_SWIFT_ASYNC_NAME(canRequestDocument(_:));
+
+/// Requests identity document information from the user. The user will be prompted to approve
+/// the request before any data is released.
+/// If the user approves, the document will be returned through the completion handler.
+/// If the user does not approve, PKIdentityErrorUserCancelled will be returned through
+/// the completion handler.
+/// If the request is cancelled by the calling app through cancelRequest, PKIdentityErrorAppCancelled
+/// will be returned.
+/// Only one request can be in progress at a time, otherwise PKIdentityErrorRequestAlreadyInProgress
+/// will be returned.
+- (void)requestDocument:(PKIdentityRequest *)request
+ completion:(void(^)(PKIdentityDocument * _Nullable document, NSError * _Nullable error))completion;
+
+/// If there is a request in progress through requestDocument, this will cancel that request
+/// if possible. If the request is cancelled, PKIdentityErrorAppCancelled will be returned in the
+/// requestDocument:completion: completion handler. Cancellation is not guaranteed; even if
+/// this method is called, it is possible that requestDocument:completion: will return a document
+/// response if a response was already in flight.
+- (void)cancelRequest;
+
+@end
+
+NS_ASSUME_NONNULL_END
+#endif /* PKIdentityAuthorizationController_h */
+
+
+#else
+#import <PassKitCore/PKIdentityAuthorizationController.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityButton.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityButton.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityButton.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityButton.h 2022-05-31 15:01:43.000000000 -0400
@@ -0,0 +1,62 @@
+//
+// PKIdentityButton.h
+// PassKit
+//
+// Copyright © 2022 Apple, Inc. All rights reserved.
+//
+
+
+#ifndef __PKIDENTITYBUTTON_H
+#define __PKIDENTITYBUTTON_H
+
+#import <TargetConditionals.h>
+
+#if TARGET_OS_IOS
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// Denotes the visual style of the PKIdentityButton
+typedef NS_ENUM(NSInteger, PKIdentityButtonStyle) {
+ PKIdentityButtonStyleBlack = 0,
+ PKIdentityButtonStyleBlackOutline
+} NS_SWIFT_NAME(PKIdentityButton.Style) API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos);
+
+/// Denotes the label displayed on a PKIdentityButton
+typedef NS_ENUM(NSInteger, PKIdentityButtonLabel) {
+ /// Button with text "Verify Identity with Apple Wallet"
+ PKIdentityButtonLabelVerifyIdentity = 0,
+
+ /// Button with text "Verify with Apple Wallet"
+ PKIdentityButtonLabelVerify,
+
+ /// Button with text "Verify Age with Apple Wallet"
+ PKIdentityButtonLabelVerifyAge,
+
+ /// Button with text "Continue with Apple Wallet"
+ PKIdentityButtonLabelContinue,
+} NS_SWIFT_NAME(PKIdentityButton.Label) API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos);
+
+/// Button to show to the user to trigger the identity verification flow via PKIdentityAuthorizationController.
+/// This class should not be subclassed.
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
+@interface PKIdentityButton : UIControl
+
++ (instancetype)buttonWithLabel:(PKIdentityButtonLabel)label style:(PKIdentityButtonStyle)style;
+
+- (instancetype)initWithLabel:(PKIdentityButtonLabel)label style:(PKIdentityButtonStyle)style NS_DESIGNATED_INITIALIZER;
+
+- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
+- (instancetype)initWithFrame:(CGRect)frame primaryAction:(nullable UIAction *)primaryAction NS_UNAVAILABLE;
+
+@property (nonatomic, assign) CGFloat cornerRadius;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif // TARGET_OS_IOS
+
+#endif // __PKIDENTITYBUTTON_H
+
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h 2022-05-31 15:01:41.000000000 -0400
@@ -0,0 +1,38 @@
+#if !__has_include(<PassKitCore/PKIdentityDocument.h>) || PK_USE_PUBLIC_PASSKIT
+//
+// PKIdentityDocument.h
+// PassKit
+//
+// Copyright © 2022 Apple, Inc. All rights reserved.
+//
+
+
+#import <Foundation/Foundation.h>
+
+#ifndef PKIdentityDocument_h
+#define PKIdentityDocument_h
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// Represents the response of a request for an identity document.
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
+@interface PKIdentityDocument: NSObject
+
+- (instancetype)init NS_UNAVAILABLE;
+
+/// An encrypted data blob containing the requested document information and associated metadata.
+/// This is encrypted to the public key on-file with the Developer portal for the calling app, and should
+/// be passed to the server holding the corresponding private key for decryption.
+/// This data is not intended to be read on-device.
+@property (readonly, strong) NSData *encryptedData;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif /* PKIdentityDocument_h */
+
+
+#else
+#import <PassKitCore/PKIdentityDocument.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentDescriptor.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentDescriptor.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentDescriptor.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentDescriptor.h 2022-05-31 15:01:41.000000000 -0400
@@ -0,0 +1,50 @@
+#if !__has_include(<PassKitCore/PKIdentityDocumentDescriptor.h>) || PK_USE_PUBLIC_PASSKIT
+//
+// PKIdentityDocumentDescriptor.h
+// PassKit
+//
+// Copyright © 2022 Apple, Inc. All rights reserved.
+//
+
+
+#import <PassKit/PKIdentityElement.h>
+#import <PassKit/PKIdentityIntentToStore.h>
+
+#ifndef PKIdentityDocumentDescriptor_h
+#define PKIdentityDocumentDescriptor_h
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// "Descriptor" objects describe types of documents that can be requested. Different document
+/// types may have different sets of supported elements, functionality, or response formats.
+/// Clients should not define their own implementations of this protocol or subclass existing implementations.
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
+@protocol PKIdentityDocumentDescriptor <NSObject>
+
+/// Set of elements that will be requested from the document.
+@property (readonly) NSArray<PKIdentityElement *> *elements;
+
+/// Intent to store for the given element, or nil if the element has not been added to this descriptor.
+- (PKIdentityIntentToStore * _Nullable)intentToStoreForElement:(PKIdentityElement *)element NS_SWIFT_NAME(intentToStore(element:));
+
+/// Adds the set of elements and associates them with the intent to store. This method can be
+/// called multple times with the same intent to store to append additional elements. If the same
+/// element is specified multiple times with different intents to store, the most recent one wins.
+- (void)addElements:(NSArray<PKIdentityElement *> *)elements withIntentToStore:(PKIdentityIntentToStore *)intentToStore NS_SWIFT_NAME(addElements(_:intentToStore:));
+
+@end
+
+/// Used to request information from a user's driver's license (or equivalent document).
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
+@interface PKIdentityDriversLicenseDescriptor: NSObject <PKIdentityDocumentDescriptor>
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif /* PKIdentityDocumentDescriptor_h */
+
+
+#else
+#import <PassKitCore/PKIdentityDocumentDescriptor.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityElement.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityElement.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityElement.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityElement.h 2022-05-31 15:01:43.000000000 -0400
@@ -0,0 +1,72 @@
+#if !__has_include(<PassKitCore/PKIdentityElement.h>) || PK_USE_PUBLIC_PASSKIT
+//
+// PKIdentityElement.h
+// PassKit
+//
+// Copyright © 2022 Apple, Inc. All rights reserved.
+//
+
+
+#ifndef PKIdentityElement_h
+#define PKIdentityElement_h
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// Elements that can be requested from identity documents. Not
+/// all elements are supported by all document types. If an element
+/// is requested from a type that does not support it, the element
+/// is ignored.
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
+@interface PKIdentityElement: NSObject <NSCopying>
+
+/// The user's given name or first name.
+@property (class, readonly) PKIdentityElement *givenNameElement;
+
+/// The user's family name or last name.
+@property (class, readonly) PKIdentityElement *familyNameElement;
+
+/// The portrait of the user on record with the issuer.
+@property (class, readonly) PKIdentityElement *portraitElement;
+
+/// The address on record with the issuer.
+@property (class, readonly) PKIdentityElement *addressElement;
+
+/// The state or government that issued the identity document.
+@property (class, readonly) PKIdentityElement *issuingAuthorityElement;
+
+/// The document's expiration date. This is usually the expiration date of the corresponding physical
+/// document, if applicable.
+@property (class, readonly) PKIdentityElement *documentExpirationDateElement;
+
+/// The doument's number, as defined by the document's issuing authority.
+@property (class, readonly) PKIdentityElement *documentNumberElement;
+
+/// The user's driving privileges.
+@property (class, readonly) PKIdentityElement *drivingPrivilegesElement;
+
+/// The user's age in years.
+@property (class, readonly) PKIdentityElement *ageElement;
+
+/// The user's date of birth.
+@property (class, readonly) PKIdentityElement *dateOfBirthElement;
+
+/// Boolean indicating whether the user's age is at least the given age.
+/// For example, ageThresholdElementWithAge:21 will return true if the user is at least 21 years old.
+/// This value is only available for a given age if it was provided by the issuer. If this value
+/// is not available, it will automatically fall back to a request for age.
++ (instancetype)ageThresholdElementWithAge:(NSInteger)age NS_SWIFT_NAME(age(atLeast:));
+
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif /* PKIdentityElement_h */
+
+
+#else
+#import <PassKitCore/PKIdentityElement.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h 2022-05-31 15:01:42.000000000 -0400
@@ -0,0 +1,59 @@
+#if !__has_include(<PassKitCore/PKIdentityError.h>) || PK_USE_PUBLIC_PASSKIT
+//
+// PKIdentityError.h
+// PassKit
+//
+// Copyright © 2022 Apple, Inc. All rights reserved.
+//
+
+
+#import <Foundation/Foundation.h>
+
+#ifndef PKIdentityError_h
+#define PKIdentityError_h
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// Error domain for identity errors
+extern NSErrorDomain const PKIdentityErrorDomain API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos);
+
+/// Identity error codes
+typedef NS_ERROR_ENUM(PKIdentityErrorDomain, PKIdentityError) {
+ /// Catch-all for all errors without a specific error code
+ PKIdentityErrorUnknown = 1,
+
+ /// Returned if the app is not entitled to call an API
+ PKIdentityErrorNotEntitled = 2,
+
+ /// Returned if the sheet was cancelled
+ PKIdentityErrorCancelled = 3,
+
+ /// Returned if a request cannot be processed because
+ /// the network is not available
+ PKIdentityErrorNetworkUnavailable = 4,
+
+ /// Returned if no supported elements were requested
+ PKIdentityErrorNoElementsRequested = 5,
+
+ /// Returned if a request is made but another request is already
+ /// in progress.
+ PKIdentityErrorRequestAlreadyInProgress = 6,
+
+ /// Returned if the caller-supplied nonce is too large or otherwise unsuitable.
+ PKIdentityErrorInvalidNonce = 7,
+
+ /// Returned if an element requested by the caller is invalid
+ PKIdentityErrorInvalidElement = 8,
+
+ /// Returned if the merchant ID used in a request is invalid
+ PKIdentityErrorInvalidMerchantID = 9
+} API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos);
+
+NS_ASSUME_NONNULL_END
+
+#endif /* PKIdentityError_h */
+
+
+#else
+#import <PassKitCore/PKIdentityError.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityIntentToStore.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityIntentToStore.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityIntentToStore.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityIntentToStore.h 2022-05-31 15:01:41.000000000 -0400
@@ -0,0 +1,44 @@
+#if !__has_include(<PassKitCore/PKIdentityIntentToStore.h>) || PK_USE_PUBLIC_PASSKIT
+//
+// PKIdentityIntentToStore.h
+// PassKit
+//
+// Copyright © 2022 Apple, Inc. All rights reserved.
+//
+
+
+#import <Foundation/Foundation.h>
+
+#ifndef PKIdentityIntentToStore_h
+#define PKIdentityIntentToStore_h
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// Indicates your intention to store an identity element. This covers not only
+/// the element value, but also information derived from the element value such
+/// as signatures or digests.
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
+@interface PKIdentityIntentToStore: NSObject <NSCopying>
+
+- (instancetype)init NS_UNAVAILABLE;
+
+/// Indicates the data element returned in the response will not be stored for
+/// a period longer than necessary to process the result in realtime.
+@property (class, readonly) PKIdentityIntentToStore *willNotStoreIntent NS_SWIFT_NAME(willNotStore);
+
+/// Indicates the data element may be stored for an indefinite length of time.
+@property (class, readonly) PKIdentityIntentToStore *mayStoreIntent NS_SWIFT_NAME(mayStore);
+
+/// Indicates the data element may be stored for no longer than than the provided number of days.
++ (instancetype)mayStoreIntentForDays:(NSInteger)days NS_SWIFT_NAME(mayStore(days:));
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif /* PKIdentityIntentToStore_h */
+
+
+#else
+#import <PassKitCore/PKIdentityIntentToStore.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityRequest.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityRequest.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityRequest.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityRequest.h 2022-05-31 15:01:43.000000000 -0400
@@ -0,0 +1,44 @@
+#if !__has_include(<PassKitCore/PKIdentityRequest.h>) || PK_USE_PUBLIC_PASSKIT
+//
+// PKIdentityRequest.h
+// PassKit
+//
+// Copyright © 2022 Apple, Inc. All rights reserved.
+//
+
+
+#import <Foundation/Foundation.h>
+#import <PassKit/PKIdentityDocumentDescriptor.h>
+
+#ifndef PKIdentityRequest_h
+#define PKIdentityRequest_h
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// Request for information from an identity document stored as a Wallet pass.
+API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
+@interface PKIdentityRequest: NSObject
+
+/// A descriptor describing the identity document to request.
+@property (readwrite, strong, nullable) id<PKIdentityDocumentDescriptor> descriptor;
+
+/// A caller-specified nonce that will be included in the signed response payload.
+/// This is treated as opaque by the PKIdentityAuthorizationController, and has a
+/// maximum allowed size of 64 bytes.
+@property (readwrite, copy, nullable) NSData *nonce;
+
+/// Identifies the merchant making the request, as previously agreed with Apple.
+/// This must match one of the merchant identifiers in the application's entitlement.
+/// This property must be set when requestDocument is invoked.
+@property (readwrite, copy, nullable) NSString *merchantIdentifier;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif /* PKIdentityRequest_h */
+
+
+#else
+#import <PassKitCore/PKIdentityRequest.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionHandler.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionHandler.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionHandler.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionHandler.h 2022-05-31 15:01:41.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKIssuerProvisioningExtensionHandler.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKIssuerProvisioningExtensionHandler.h
// PassKit
@@ -33,3 +34,7 @@
@end
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKIssuerProvisioningExtensionHandler.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPassEntry.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPassEntry.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPassEntry.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPassEntry.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,9 +1,14 @@
+#if !__has_include(<PassKitCore/PKIssuerProvisioningExtensionPassEntry.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKIssuerProvisioningExtensionPassEntry.h
// PassKit
//
// Copyright © 2020 Apple, Inc. All rights reserved.
//
+
+#ifndef __PKISSUERPROVISIONINGEXTENSIONPASSENTRY_H
+#define __PKISSUERPROVISIONINGEXTENSIONPASSENTRY_H
+
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
@@ -12,7 +17,7 @@
API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos, tvos)
@interface PKIssuerProvisioningExtensionPassEntry : NSObject
-- (nullable instancetype)init NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
@property (nonatomic, readonly) NSString *identifier;
@property (nonatomic, readonly) NSString *title;
@@ -21,3 +26,8 @@
@end
NS_ASSUME_NONNULL_END
+#endif
+
+#else
+#import <PassKitCore/PKIssuerProvisioningExtensionPassEntry.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPaymentPassEntry.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPaymentPassEntry.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPaymentPassEntry.h 2022-02-23 10:55:25.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionPaymentPassEntry.h 2022-05-31 15:01:43.000000000 -0400
@@ -1,9 +1,14 @@
+#if !__has_include(<PassKitCore/PKIssuerProvisioningExtensionPaymentPassEntry.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKIssuerProvisioningExtensionPaymentPassEntry.h
// PassKit
//
// Copyright © 2020 Apple, Inc. All rights reserved.
//
+
+#ifndef __PKISSUERPROVISIONINGEXTENSIONPAYMENTPASSENTRY_H
+#define __PKISSUERPROVISIONINGEXTENSIONPAYMENTPASSENTRY_H
+
#import <PassKit/PKIssuerProvisioningExtensionPassEntry.h>
NS_ASSUME_NONNULL_BEGIN
@@ -24,3 +29,8 @@
@end
NS_ASSUME_NONNULL_END
+#endif
+
+#else
+#import <PassKitCore/PKIssuerProvisioningExtensionPaymentPassEntry.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionStatus.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionStatus.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionStatus.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIssuerProvisioningExtensionStatus.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,9 +1,14 @@
+#if !__has_include(<PassKitCore/PKIssuerProvisioningExtensionStatus.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKIssuerProvisioningExtensionStatus.h
// PassKit
//
// Copyright © 2020 Apple, Inc. All rights reserved.
//
+
+#ifndef __PKISSUERPROVISIONINGEXTENSIONSTATUS_H
+#define __PKISSUERPROVISIONINGEXTENSIONSTATUS_H
+
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@@ -20,3 +25,8 @@
@end
NS_ASSUME_NONNULL_END
+#endif
+
+#else
+#import <PassKitCore/PKIssuerProvisioningExtensionStatus.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKLabeledValue.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKLabeledValue.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKLabeledValue.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKLabeledValue.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKLabeledValue.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKLabeledValue.h
// PassKit
@@ -20,3 +21,7 @@
@end
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKLabeledValue.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKObject.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKObject.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKObject.h 2022-02-22 00:08:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKObject.h 2022-05-25 22:05:29.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKObject.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKObject.h
// PassKit
@@ -15,3 +16,7 @@
@end
#endif // __PKOBJECT_H
+
+#else
+#import <PassKitCore/PKObject.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPass.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPass.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPass.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPass.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKPass.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKPass.h
// PassKit
@@ -60,3 +61,7 @@
NS_ASSUME_NONNULL_END
#endif // __PKPASS_H
+
+#else
+#import <PassKitCore/PKPass.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPassLibrary.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPassLibrary.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPassLibrary.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPassLibrary.h 2022-05-31 15:01:41.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKPassLibrary.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKPassLibrary.h
// PassKit
@@ -100,6 +101,7 @@
// Sign a payload using the pass
- (void)signData:(NSData *)signData withSecureElementPass:(PKSecureElementPass *)secureElementPass completion:(void(^)(NSData * _Nullable signedData, NSData * _Nullable signature, NSError * _Nullable error))completion NS_SWIFT_NAME(sign(_:using:completion:)) API_AVAILABLE(ios(13.4), watchos(6.2));
+- (void)encryptedServiceProviderDataForSecureElementPass:(PKSecureElementPass *)secureElementPass completion:(void(^)(NSDictionary * _Nullable encryptedServiceProviderData, NSError* _Nullable error))completion NS_SWIFT_NAME(encryptedServiceProviderData(for:completion:)) API_AVAILABLE(ios(16.0), watchos(9.0));
// Returns custom data for a given secure element pass, if supported by that pass
- (void)serviceProviderDataForSecureElementPass:(PKSecureElementPass *)secureElementPass completion:(void(^)(NSData * _Nullable serviceProviderData, NSError* _Nullable error))completion NS_SWIFT_NAME(serviceProviderData(for:completion:)) API_AVAILABLE(ios(15.0), watchos(8.0));
@@ -126,3 +128,7 @@
extern PKPassLibraryNotificationKey const PKPassLibraryRecoveredPassesUserInfoKey API_AVAILABLE(ios(15.0), watchos(8.0));
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKPassLibrary.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayment.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayment.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayment.h 2022-02-23 10:55:25.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayment.h 2022-05-31 15:01:43.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKPayment.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKPayment.h
-//
+// PassKit
// Copyright (c) 2014 Apple, Inc. All rights reserved.
//
@@ -54,3 +55,7 @@
@end
#endif
+
+#else
+#import <PassKitCore/PKPayment.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h 2022-05-31 15:03:20.000000000 -0400
@@ -5,6 +5,9 @@
// Copyright © 2015 Apple, Inc. All rights reserved.
//
+#ifndef __PKPAYMENTAUTHORIZATIONCONTROLLER_H
+#define __PKPAYMENTAUTHORIZATIONCONTROLLER_H
+
#import <TargetConditionals.h>
#if TARGET_OS_OSX || TARGET_OS_IPHONE
@@ -173,3 +176,4 @@
NS_ASSUME_NONNULL_END
#endif // TARGET_OS_IPHONE
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewController.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewController.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewController.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewController.h 2022-05-31 15:01:42.000000000 -0400
@@ -23,7 +23,11 @@
#import <PassKit/PKConstants.h>
#import <PassKit/PKPaymentRequest.h>
+#if TARGET_OS_OSX
#import <PassKit/PKPaymentAuthorizationViewControllerDelegate.h>
+#else
+#import <PassKit/PKPaymentAuthorizationViewControllerDelegate.h>
+#endif
NS_ASSUME_NONNULL_BEGIN
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewControllerDelegate.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewControllerDelegate.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewControllerDelegate.h 2022-02-23 10:58:40.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewControllerDelegate.h 2022-05-31 15:01:37.000000000 -0400
@@ -5,6 +5,9 @@
// Copyright (c) 2020 Apple, Inc. All rights reserved.
//
+#ifndef __PKPAYMENTAUTHORIZATIONVIEWCONTROLLERDELEGATE_H__
+#define __PKPAYMENTAUTHORIZATIONVIEWCONTROLLERDELEGATE_H__
+
#import <TargetConditionals.h>
#if !TARGET_OS_WATCH && !TARGET_OS_TV
@@ -135,3 +138,4 @@
NS_ASSUME_NONNULL_END
#endif
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentButton.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentButton.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentButton.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentButton.h 2022-05-31 15:01:43.000000000 -0400
@@ -1,9 +1,12 @@
//
// PKPaymentButton.h
-//
+// PassKit
// Copyright © 2014 Apple, Inc. All rights reserved.
//
+#ifndef __PKPAYMENTBUTTON_H
+#define __PKPAYMENTBUTTON_H
+
#import <TargetConditionals.h>
#if TARGET_OS_IPHONE
@@ -35,3 +38,4 @@
@end
NS_ASSUME_NONNULL_END
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentInformationEventExtension.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentInformationEventExtension.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentInformationEventExtension.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentInformationEventExtension.h 2022-05-31 15:01:41.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKPaymentInformationEventExtension.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKPaymentInformationEventExtension.h
// PassKit
@@ -33,3 +34,7 @@
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKPaymentInformationEventExtension.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMerchantSession.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMerchantSession.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMerchantSession.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMerchantSession.h 2022-05-31 15:01:43.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKPaymentMerchantSession.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKPaymentMerchantSession.h
-//
+// PassKit
// Copyright © 2020 Apple, Inc. All rights reserved.
//
@@ -21,3 +22,7 @@
NS_ASSUME_NONNULL_END
#endif // __PKPAYMENTMERCHANTSESSION_H__
+
+#else
+#import <PassKitCore/PKPaymentMerchantSession.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMethod.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMethod.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMethod.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMethod.h 2022-05-31 15:01:41.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKPaymentMethod.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKPaymentMethod.h
-//
+// PassKit
// Copyright © 2015 Apple, Inc. All rights reserved.
//
@@ -51,3 +52,7 @@
#endif // End __PKPAYMENTMETHOD_H
+
+#else
+#import <PassKitCore/PKPaymentMethod.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentPass.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentPass.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentPass.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentPass.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKPaymentPass.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKPaymentPass.h
// PassKit
@@ -29,3 +30,7 @@
NS_ASSUME_NONNULL_END
#endif // End __PKPAYMENTPASS_H
+
+#else
+#import <PassKitCore/PKPaymentPass.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h 2022-02-23 07:15:06.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h 2022-05-31 15:01:37.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKPaymentRequest.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKPaymentRequest.h
-//
+// PassKit
// Copyright (c) 2014, Apple Inc. All rights reserved.
//
@@ -10,6 +11,8 @@
#import <PassKit/PKRecurringPaymentSummaryItem.h>
#import <PassKit/PKPaymentSummaryItem.h>
#import <PassKit/PKShippingMethod.h>
+#import <PassKit/PKAutomaticReloadPaymentRequest.h>
+#import <PassKit/PKRecurringPaymentRequest.h>
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
#import <AddressBook/ABRecord.h>
@@ -19,6 +22,7 @@
#define __PKPAYMENTREQUEST_H__
@class PKContact;
+@class PKPaymentTokenContext;
NS_ASSUME_NONNULL_BEGIN
@@ -156,10 +160,41 @@
@property (nonatomic, assign, nullable) ABRecordRef billingAddress __WATCHOS_PROHIBITED API_DEPRECATED("ABRecordRef has been deprecated, and does not support all available address properties. You should migrate to billingContact.", ios(8.0, 9.0));
#endif
+// Array of payment token contexts that indicates multiple payment tokens are requested, one for
+// each context object provided.
+//
+// The sum of all context amounts must be less than or equal to the total amount of the enclosing
+// payment request, as indicated by the last payment summary item.
+//
+// This property cannot be used simultaneously with recurring or automatic reload payment requests.
+//
+// Multiple payment tokens are not supported on watchOS.
+@property (nonatomic, copy) NSArray<PKPaymentTokenContext *> *multiTokenContexts API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos);
+// Optional request to set up a recurring payment, typically a subscription. This payment request
+// will receive a merchant-specific payment token if the payment network supports merchant-specific
+// payment tokens.
+//
+// This property cannot be used simultaneously with multi token contexts or automatic reload payment requests.
+//
+// Merchant-specific payment tokens are not supported on watchOS.
+@property (nonatomic, strong, nullable) PKRecurringPaymentRequest *recurringPaymentRequest API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos);
+
+// Optional request to set up an automatic reload, such as a store card top-up. This payment request
+// will receive a merchant-specific payment token if the payment network supports merchant-specific
+// payment tokens.
+//
+// This property cannot be used simultaneously with multi token contexts or recurring payment requests.
+//
+// Merchant-specific payment tokens are not supported on watchOS.
+@property (nonatomic, strong, nullable) PKAutomaticReloadPaymentRequest *automaticReloadPaymentRequest API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos);
@end
NS_ASSUME_NONNULL_END
#endif // __PKPAYMENTREQUEST_H__
+
+#else
+#import <PassKitCore/PKPaymentRequest.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequestStatus.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequestStatus.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequestStatus.h 2022-02-23 07:54:55.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequestStatus.h 2022-05-31 14:51:05.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKPaymentRequestStatus.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKPaymentRequestStatus.h
-//
+// PassKit
// Copyright © 2016 Apple, Inc. All rights reserved.
//
@@ -12,6 +13,10 @@
@class PKShippingMethod;
@class PKPaymentSummaryItem;
@class PKPaymentMerchantSession;
+@class PKPaymentTokenContext;
+@class PKAutomaticReloadPaymentRequest;
+@class PKRecurringPaymentRequest;
+@class PKPaymentOrderDetails;
API_AVAILABLE(macos(11.0), ios(11.0), watchos(4.0))
@interface PKPaymentAuthorizationResult : NSObject
@@ -27,6 +32,11 @@
// See PKError for specific NSError keys to use to enable rich error handling.
@property (null_resettable, nonatomic, copy) NSArray<NSError *> *errors;
+// Optional metadata for an order that was placed by this payment. The device will attempt to fetch
+// the order in the background. Ignored unless the status is `PKPaymentAuthorizationStatusSuccess`.
+@property (nonatomic, strong, nullable) PKPaymentOrderDetails *orderDetails API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos);
+
+
@end
API_AVAILABLE(macos(11.0), ios(11.0), watchos(4.0))
@@ -46,7 +56,27 @@
// indicates that the shipping methods don't need updating.
@property (nonatomic, copy) NSArray<PKShippingMethod *> *shippingMethods API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0));
+// The new array of payment token contexts to update the payment request with.
+// The default value is `nil`, which indicates no update is needed.
+//
+// This property cannot be used simultaneously with recurring or automatic reload payment requests.
+@property (nonatomic, copy, nullable) NSArray<PKPaymentTokenContext *> *multiTokenContexts API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos);
+// The new recurring payment request to update the payment request with.
+// The default value is `nil`, which indicates no update is needed.
+//
+// The billing agreement cannot be changed.
+//
+// This property cannot be used simultaneously with multi token contexts or automatic reload payment requests.
+@property (nonatomic, strong, nullable) PKRecurringPaymentRequest *recurringPaymentRequest API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos);
+
+// The new automatic reload payment request to update the payment request with.
+// The default value is `nil`, which indicates no update is needed.
+//
+// The billing agreement cannot be changed.
+//
+// This property cannot be used simultaneously with multi token contexts or recurring payment requests.
+@property (nonatomic, strong, nullable) PKAutomaticReloadPaymentRequest *automaticReloadPaymentRequest API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos);
@end
@@ -104,4 +134,26 @@
@end
+API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos)
+@interface PKPaymentOrderDetails : NSObject
+
++ (instancetype)new NS_UNAVAILABLE;
+- (instancetype)init NS_UNAVAILABLE;
+
+- (instancetype)initWithOrderTypeIdentifier:(NSString *)orderTypeIdentifier
+ orderIdentifier:(NSString *)orderIdentifier
+ webServiceURL:(NSURL *)webServiceURL
+ authenticationToken:(NSString *)authenticationToken NS_DESIGNATED_INITIALIZER;
+
+@property (nonatomic, copy) NSString *orderTypeIdentifier;
+@property (nonatomic, copy) NSString *orderIdentifier;
+@property (nonatomic, copy) NSURL *webServiceURL;
+@property (nonatomic, copy) NSString *authenticationToken;
+
+@end
+
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKPaymentRequestStatus.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentSummaryItem.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentSummaryItem.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentSummaryItem.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentSummaryItem.h 2022-05-31 15:01:43.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKPaymentSummaryItem.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKPaymentSummaryItem.h
-//
+// PassKit
// Copyright © 2021 Apple, Inc. All rights reserved.
//
@@ -42,3 +43,7 @@
NS_ASSUME_NONNULL_END
#endif // __PKPAYMENTSUMMARYITEM_H__
+
+#else
+#import <PassKitCore/PKPaymentSummaryItem.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentToken.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentToken.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentToken.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentToken.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKPaymentToken.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKPaymentToken.h
-//
+// PassKit
// Copyright (c) 2014, Apple Inc. All rights reserved.
//
@@ -41,3 +42,7 @@
NS_ASSUME_NONNULL_END
#endif
+
+#else
+#import <PassKitCore/PKPaymentToken.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentTokenContext.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentTokenContext.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentTokenContext.h 2022-02-22 00:08:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentTokenContext.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,7 +1,58 @@
+#if !__has_include(<PassKitCore/PKPaymentTokenContext.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKPaymentTokenContext.h
+// PassKit
//
-// Created by Lais Minchillo on 31/08/2021.
// Copyright © 2021 Apple, Inc. All rights reserved.
//
+
+#ifndef PKPaymentTokenContext_h
+#define PKPaymentTokenContext_h
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+// Defines the context for a single payment token in a request for multiple payment tokens.
+API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos)
+@interface PKPaymentTokenContext : NSObject
+
+// An identifier for the merchant, as previously agreed with Apple. If you request a payment token
+// for another merchant, use their merchant identifier, if available. Otherwise, use your own.
+@property (nonatomic, copy) NSString *merchantIdentifier;
+
+// An external identifier for the merchant, provided by the developer. If you request a payment
+// token for another merchant, try to always use the same external identifier for that merchant,
+// if possible.
+@property (nonatomic, copy) NSString *externalIdentifier;
+
+// The name of the merchant this payment token is intended for; will be displayed to the user.
+@property (nonatomic, copy) NSString *merchantName;
+
+// The main top-level domain of the merchant this payment token is intended for, optional.
+@property (nonatomic, copy, nullable) NSString *merchantDomain;
+
+// The amount this particular payment token should be authorized for. It has the same currency as
+// the enclosing payment request. Must be less than or equal to the total amount of the enclosing
+// payment request.
+@property (nonatomic, copy) NSDecimalNumber *amount;
+
+- (instancetype)init NS_UNAVAILABLE;
+
+- (instancetype)initWithMerchantIdentifier:(NSString *)merchantIdentifier
+ externalIdentifier:(NSString *)externalIdentifier
+ merchantName:(NSString *)merchantName
+ merchantDomain:(nullable NSString *)merchantDomain
+ amount:(NSDecimalNumber *)amount NS_DESIGNATED_INITIALIZER;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif /* PKPaymentTokenContext_h */
+
+
+#else
+#import <PassKitCore/PKPaymentTokenContext.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentRequest.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentRequest.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentRequest.h 2022-02-22 00:08:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentRequest.h 2022-05-31 15:01:43.000000000 -0400
@@ -1,8 +1,59 @@
+#if !__has_include(<PassKitCore/PKRecurringPaymentRequest.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKRecurringPaymentRequest.h
-// PassKitCore
+// PassKit
//
-// Created by Lais Minchillo on 26/07/2021.
// Copyright © 2021 Apple, Inc. All rights reserved.
//
+
+#ifndef PKRecurringPaymentRequest_h
+#define PKRecurringPaymentRequest_h
+
+@class PKRecurringPaymentSummaryItem;
+
+NS_ASSUME_NONNULL_BEGIN
+
+// Represents a request to set up a recurring payment, typically a subscription. This request will
+// receive a merchant-specific payment token, if the payment network supports merchant-specific
+// payment tokens.
+API_AVAILABLE(macos(13.0), ios(16.0)) API_UNAVAILABLE(watchos)
+@interface PKRecurringPaymentRequest : NSObject
+
+// A description of the recurring payment, for example "Apple News+".
+@property (nonatomic, copy) NSString *paymentDescription;
+
+// The regular billing cycle, for example "$9.99 monthly".
+@property (nonatomic, strong) PKRecurringPaymentSummaryItem *regularBilling;
+
+// Optional, trial billing cycle, for example "$1.99 for the first six months".
+@property (nonatomic, strong, nullable) PKRecurringPaymentSummaryItem *trialBilling;
+
+// Optional, localized billing agreement to be displayed to the user prior to payment authorization.
+@property (nonatomic, copy, nullable) NSString *billingAgreement;
+
+// A URL that links to a page on your web site where the user can manage the payment method for this
+// recurring payment, including deleting it.
+@property (nonatomic, strong) NSURL *managementURL;
+
+// Optional URL to receive lifecycle notifications for the merchant-specific payment token issued
+// for this request, if applicable. If this property is not set, notifications will not be sent when
+// lifecycle changes occur for the token, for example when the token is deleted.
+@property (nonatomic, strong, nullable) NSURL *tokenNotificationURL;
+
+- (instancetype)init NS_UNAVAILABLE;
+
+- (instancetype)initWithPaymentDescription:(NSString *)paymentDescription
+ regularBilling:(PKRecurringPaymentSummaryItem *)regularBilling
+ managementURL:(NSURL *)managementURL NS_DESIGNATED_INITIALIZER;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif /* PKRecurringPaymentRequest_h */
+
+
+#else
+#import <PassKitCore/PKRecurringPaymentRequest.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentSummaryItem.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentSummaryItem.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentSummaryItem.h 2022-02-23 10:55:22.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentSummaryItem.h 2022-05-31 15:01:40.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKRecurringPaymentSummaryItem.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKRecurringPaymentSummaryItem.h
-//
+// PassKit
// Copyright © 2021 Apple, Inc. All rights reserved.
//
@@ -31,3 +32,7 @@
NS_ASSUME_NONNULL_END
#endif // __PKRECURRINGPAYMENTSUMMARYITEM_H__
+
+#else
+#import <PassKitCore/PKRecurringPaymentSummaryItem.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKSecureElementPass.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKSecureElementPass.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKSecureElementPass.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKSecureElementPass.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKSecureElementPass.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKSecureElementPass.h
// PassKit
@@ -37,3 +38,7 @@
NS_ASSUME_NONNULL_END
#endif // __PKSECUREELEMENTPASS_H
+
+#else
+#import <PassKitCore/PKSecureElementPass.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKShareSecureElementPassViewController.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKShareSecureElementPassViewController.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKShareSecureElementPassViewController.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKShareSecureElementPassViewController.h 2022-05-31 15:01:40.000000000 -0400
@@ -0,0 +1,69 @@
+//
+// PKShareSecureElementPassViewController.h
+// PassKit
+//
+// Copyright © 2021 Apple, Inc. All rights reserved.
+//
+
+#import <TargetConditionals.h>
+
+#if TARGET_OS_IOS
+
+#import <UIKit/UIKit.h>
+
+@class PKShareSecureElementPassViewController;
+@class PKSecureElementPass;
+
+NS_ASSUME_NONNULL_BEGIN
+
+/// Share secure element pass result sent to delegate upon user completion.
+///
+/// @constant PKShareSecureElementPassResultCanceled User canceled the share.
+/// @constant PKShareSecureElementPassResultShared User successfully shared the secure element pass.
+/// @constant PKShareSecureElementPassResultFailed User's attempt to share was unsuccessful.
+typedef NS_ENUM(NSInteger, PKShareSecureElementPassResult) {
+ PKShareSecureElementPassResultCanceled,
+ PKShareSecureElementPassResultShared,
+ PKShareSecureElementPassResultFailed,
+} API_AVAILABLE(ios(16.0));
+
+API_AVAILABLE(ios(16.0))
+@protocol PKShareSecureElementPassViewControllerDelegate <NSObject>
+
+// Called once the share pass flow finishes.
+//
+// The delegate is responsible for dismissing the view controller in this method.
+- (void)shareSecureElementPassViewController:(PKShareSecureElementPassViewController *)controller
+ didFinishWithResult:(PKShareSecureElementPassResult)result;
+
+@optional
+
+// This is called when using the `PKShareSecureElementPassViewControllerFlowDoNotPromptToShareURL` flow.
+//
+// Upon a successful share the share URL will be returned to be sent over an internal messaging channel.
+// In an activation code was attached to the share it will also be returned. It it is up to the delegate
+// to show the user the activationCode so that the recipient can successfully redeem the share.
+- (void)shareSecureElementPassViewController:(PKShareSecureElementPassViewController *)controller
+ didCreateShareURL:(nullable NSURL *)universalShareURL
+ activationCode:(nullable NSString *)activationCode;
+
+@end
+
+API_AVAILABLE(ios(16.0))
+@interface PKShareSecureElementPassViewController : UIViewController
+
+- (instancetype)init NS_UNAVAILABLE;
+- (instancetype)initWithSecureElementPass:(PKSecureElementPass *)pass delegate:(nullable id<PKShareSecureElementPassViewControllerDelegate>)delegate;
+
+@property (nonatomic, weak, nullable) id<PKShareSecureElementPassViewControllerDelegate> delegate;
+
+// This can be used to change the sharing flow a user will see.
+// This must be configured before the view controller is presented.
+// Defaults to YES
+@property (nonatomic, assign) BOOL promptToShareURL;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif // TARGET_OS_IOS
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKShippingMethod.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKShippingMethod.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKShippingMethod.h 2022-02-23 10:55:24.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKShippingMethod.h 2022-05-31 15:01:43.000000000 -0400
@@ -1,6 +1,7 @@
+#if !__has_include(<PassKitCore/PKShippingMethod.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKShippingMethod.h
-//
+// PassKit
// Copyright © 2021 Apple, Inc. All rights reserved.
//
@@ -34,3 +35,7 @@
NS_ASSUME_NONNULL_END
#endif // __PKSHIPPINGMETHOD_H__
+
+#else
+#import <PassKitCore/PKShippingMethod.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassBalance.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassBalance.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassBalance.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassBalance.h 2022-05-31 15:01:42.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKStoredValuePassBalance.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKStoredValuePassBalance.h
// PassKit
@@ -29,3 +30,7 @@
@end
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKStoredValuePassBalance.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassProperties.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassProperties.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassProperties.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassProperties.h 2022-05-31 15:01:41.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKStoredValuePassProperties.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKStoredValuePassProperties.h
// PassKit
@@ -28,3 +29,7 @@
@end
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKStoredValuePassProperties.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKSuicaPassProperties.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKSuicaPassProperties.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKSuicaPassProperties.h 2022-02-23 10:55:22.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKSuicaPassProperties.h 2022-05-31 15:01:41.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKSuicaPassProperties.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKSuicaPassProperties.h
// PassKit
@@ -35,3 +36,7 @@
@end
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKSuicaPassProperties.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKTransitPassProperties.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKTransitPassProperties.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKTransitPassProperties.h 2022-02-23 10:55:23.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKTransitPassProperties.h 2022-05-31 15:01:41.000000000 -0400
@@ -1,3 +1,4 @@
+#if !__has_include(<PassKitCore/PKTransitPassProperties.h>) || PK_USE_PUBLIC_PASSKIT
//
// PKTransitPassProperties.h
// PassKit
@@ -19,10 +20,14 @@
@property (nonatomic, nullable, copy, readonly) NSDate *expirationDate API_AVAILABLE(ios(11.3), watchos(4.3), macos(11.0)); // nil if pass does not expire
-@property (nonatomic, assign, readonly, getter=isBlocked) BOOL blocked API_AVAILABLE(ios(14.5), watchos(7.5), macos(11.3));
+@property (nonatomic, assign, readonly, getter=isBlocked) BOOL blocked API_AVAILABLE(ios(14.5), watchos(7.5), macos(11.3)) NS_REFINED_FOR_SWIFT;
@property (nonatomic, assign, readonly, getter=isInStation) BOOL inStation;
@end
NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKTransitPassProperties.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKVehicleConnectionSession.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKVehicleConnectionSession.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKVehicleConnectionSession.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKVehicleConnectionSession.h 2022-05-31 15:01:41.000000000 -0400
@@ -0,0 +1,70 @@
+#if !__has_include(<PassKitCore/PKVehicleConnectionSession.h>) || PK_USE_PUBLIC_PASSKIT
+//
+// PKVehicleConnectionSession.h
+// PassKit
+//
+// Copyright © 2021 Apple, Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <PassKit/PKConstants.h>
+
+@class PKSecureElementPass;
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(ios(15.4))
+typedef NS_ENUM(NSInteger, PKVehicleConnectionErrorCode) {
+ PKVehicleConnectionErrorCodeUnknown = 0,
+ PKVehicleConnectionErrorCodeSessionUnableToStart,
+ PKVehicleConnectionErrorCodeSessionNotActive
+};
+
+API_AVAILABLE(ios(15.4))
+typedef NS_ENUM(NSInteger, PKVehicleConnectionSessionConnectionState) {
+ PKVehicleConnectionSessionConnectionStateDisconnected = 0,
+ PKVehicleConnectionSessionConnectionStateConnected,
+ PKVehicleConnectionSessionConnectionStateConnecting,
+ PKVehicleConnectionSessionConnectionStateFailedToConnect
+};
+
+API_AVAILABLE(ios(15.4))
+API_DEPRECATED("PKVehicleConnectionDelegate has been deprecated. Please migrate away from this as soon as possible.", ios(15.4, 16.0))
+@protocol PKVehicleConnectionDelegate <NSObject>
+
+- (void)sessionDidChangeConnectionState:(PKVehicleConnectionSessionConnectionState)newState;
+
+// Called when the session receives the message from the destination.
+- (void)sessionDidReceiveData:(NSData *)data;
+
+@end
+
+API_AVAILABLE(ios(15.4))
+API_DEPRECATED("PKVehicleConnectionSession has been deprecated. Please migrate away from this as soon as possible.", ios(15.4, 16.0))
+@interface PKVehicleConnectionSession : NSObject
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+
+@property (nonatomic, weak, readonly) id<PKVehicleConnectionDelegate>delegate;
+@property (nonatomic, assign, readonly) PKVehicleConnectionSessionConnectionState connectionStatus;
+
+// Factory method that returns in the completion handler a session in the PKVehicleConnectionSessionConnectionStateConnecting state for the given passUniqueIdentifier
++ (void)sessionForPass:(PKSecureElementPass *)pass
+ delegate:(id<PKVehicleConnectionDelegate>)delegate
+ completion:(void(^)(PKVehicleConnectionSession * _Nullable session, NSError * _Nullable error))completion;
+
+// Send data to the car
+- (BOOL)sendData:(NSData *)message error:(NSError **)error;
+
+// Invalidate this session. Session will also invalidate on dealloc
+- (void)invalidate;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#else
+#import <PassKitCore/PKVehicleConnectionSession.h>
+#endif
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h 2022-02-22 00:08:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h 2022-05-25 22:05:28.000000000 -0400
@@ -43,6 +43,9 @@
#if __has_include(<PassKit/PKRecurringPaymentSummaryItem.h>)
#import <PassKit/PKRecurringPaymentSummaryItem.h>
#endif
+#if __has_include(<PassKit/PKDeferredPaymentSummaryItem.h>)
+#import <PassKit/PKDeferredPaymentSummaryItem.h>
+#endif
#if __has_include(<PassKit/PKPaymentTokenContext.h>)
#import <PassKit/PKPaymentTokenContext.h>
#endif
@@ -58,6 +61,12 @@
#if __has_include(<PassKit/PKPaymentMethod.h>)
#import <PassKit/PKPaymentMethod.h>
#endif
+#if __has_include(<PassKit/PKPaymentSummaryItem.h>)
+#import <PassKit/PKPaymentSummaryItem.h>
+#endif
+#if __has_include(<PassKit/PKShippingMethod.h>)
+#import <PassKit/PKShippingMethod.h>
+#endif
#if TARGET_OS_IPHONE || TARGET_OS_OSX
#if __has_include(<PassKit/PKPaymentAuthorizationViewController.h>)
#import <PassKit/PKPaymentAuthorizationViewController.h>
@@ -128,4 +137,34 @@
#if __has_include(<PassKit/PKDateComponentsRange.h>)
#import <PassKit/PKDateComponentsRange.h>
#endif
+#if __has_include(<PassKit/PKShareSecureElementPassViewController.h>)
+#import <PassKit/PKShareSecureElementPassViewController.h>
+#endif
+#if __has_include(<PassKit/PKVehicleConnectionSession.h>)
+#import <PassKit/PKVehicleConnectionSession.h>
+#endif
+#if __has_include(<PassKit/PKIdentityAuthorizationController.h>)
+#import <PassKit/PKIdentityAuthorizationController.h>
+#endif
+#if __has_include(<PassKit/PKIdentityDocument.h>)
+#import <PassKit/PKIdentityDocument.h>
+#endif
+#if __has_include(<PassKit/PKIdentityDocumentDescriptor.h>)
+#import <PassKit/PKIdentityDocumentDescriptor.h>
+#endif
+#if __has_include(<PassKit/PKIdentityElement.h>)
+#import <PassKit/PKIdentityElement.h>
+#endif
+#if __has_include(<PassKit/PKIdentityError.h>)
+#import <PassKit/PKIdentityError.h>
+#endif
+#if __has_include(<PassKit/PKIdentityIntentToStore.h>)
+#import <PassKit/PKIdentityIntentToStore.h>
+#endif
+#if __has_include(<PassKit/PKIdentityRequest.h>)
+#import <PassKit/PKIdentityRequest.h>
+#endif
+#if __has_include(<PassKit/PKIdentityButton.h>)
+#import <PassKit/PKIdentityButton.h>
+#endif
#endif // TARGET_OS_IPHONE || TARGET_OS_OSX
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status