-
Notifications
You must be signed in to change notification settings - Fork 516
PassKit watchOS xcode13.0 beta1
Rachel Kang edited this page Jul 29, 2021
·
3 revisions
#PassKit.framework https://github.com/xamarin/xamarin-macios/pull/12299
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddShareablePassConfiguration.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddShareablePassConfiguration.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddShareablePassConfiguration.h 2021-03-16 05:19:14.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKAddShareablePassConfiguration.h 2021-06-02 07:34:59.000000000 -0400
@@ -22,9 +22,22 @@
ownerDisplayName:(NSString *)ownerDisplayName
localizedDescription:(NSString *)localizedDescription;
+- (nullable instancetype)initWithProvisioningCredentialIdentifier:(NSString *)credentialIdentifier
+ sharingInstanceIdentifier:(NSString *)sharingInstanceIdentifier
+ passThumbnailImage:(CGImageRef)passThumbnailImage
+ ownerDisplayName:(NSString *)ownerDisplayName
+ localizedDescription:(NSString *)localizedDescription
+ accountHash:(NSString *)accountHash
+ templateIdentifier:(NSString *)templateIdentifier
+ relyingPartyIdentifier:(NSString *)relyingPartyIdentifier
+API_AVAILABLE(ios(15.0), watchos(8.0));
+
@property (nonatomic, strong, readonly) NSString *credentialIdentifier;
@property (nonatomic, strong, readonly) NSString *cardConfigurationIdentifier;
@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, readonly) CGImageRef passThumbnailImage CF_RETURNS_NOT_RETAINED;
@@ -44,7 +57,9 @@
+ (void)configurationForPassMetadata:(NSArray<PKShareablePassMetadata *> *)passMetadata
provisioningPolicyIdentifier:(NSString *)provisioningPolicyIdentifier
primaryAction:(PKAddShareablePassConfigurationPrimaryAction)action
- completion:(void(^)(PKAddShareablePassConfiguration * _Nullable shareableCredentialConfiguration, NSError * _Nullable error))completion NS_SWIFT_NAME(forPassMetaData(_:provisioningPolicyIdentifier:action:completion:));
+ completion:(void(^)(PKAddShareablePassConfiguration * _Nullable shareableCredentialConfiguration, NSError * _Nullable error))completion
+NS_SWIFT_NAME(forPassMetaData(_:provisioningPolicyIdentifier:action:completion:))
+NS_SWIFT_ASYNC(4);
@property (nonatomic, readonly) PKAddShareablePassConfigurationPrimaryAction primaryAction;
@property (nonatomic, strong, readonly) NSArray<PKShareablePassMetadata *> *credentialsMetadata;
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h 2021-03-16 08:46:09.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKConstants.h 2021-06-02 11:05:09.000000000 -0400
@@ -83,7 +83,8 @@
PKPaymentButtonTypeRent API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0)),
PKPaymentButtonTypeSupport API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0)),
PKPaymentButtonTypeContribute API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0)),
- PKPaymentButtonTypeTip API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0))
+ PKPaymentButtonTypeTip API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0)),
+ PKPaymentButtonTypeContinue API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0))
} API_AVAILABLE(macos(11.0), ios(8.3), watchos(3.0));
typedef NS_OPTIONS(NSUInteger, PKRadioTechnology) {
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h 2021-03-16 05:19:13.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKContact.h 2021-06-02 07:34:58.000000000 -0400
@@ -4,6 +4,9 @@
// Copyright © 2015 Apple, Inc. All rights reserved.
//
+#ifndef __PKCONTACT_H
+#define __PKCONTACT_H
+
#import <Foundation/Foundation.h>
#if !TARGET_OS_TV
@@ -30,3 +33,5 @@
@property (nonatomic, retain, nullable) NSString *supplementarySubLocality API_DEPRECATED("Use subLocality and subAdministrativeArea on -postalAddress instead", ios(9.2, 10.3), watchos(3.0, 3.2));
@end
+
+#endif
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDateComponentsRange.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDateComponentsRange.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDateComponentsRange.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDateComponentsRange.h 2021-06-02 07:34:58.000000000 -0400
@@ -0,0 +1,29 @@
+//
+// PKDateComponentsRange.h
+//
+// Copyright © 2020 Apple, Inc. All rights reserved.
+//
+
+#ifndef __PKDATECOMPONENTSRANGE_H
+#define __PKDATECOMPONENTSRANGE_H
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(ios(15.0), watchos(8.0))
+@interface PKDateComponentsRange : NSObject <NSCopying, NSSecureCoding>
+
+- (instancetype)init NS_UNAVAILABLE;
+// The date components must have valid dates and a calendar.
+- (nullable instancetype)initWithStartDateComponents:(NSDateComponents *)startDateComponents
+ endDateComponents:(NSDateComponents *)endDateComponents;
+
+@property (copy, readonly, nonatomic) NSDateComponents *startDateComponents;
+@property (copy, readonly, nonatomic) NSDateComponents *endDateComponents;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentSummaryItem.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentSummaryItem.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentSummaryItem.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKDeferredPaymentSummaryItem.h 2021-06-02 07:34:59.000000000 -0400
@@ -0,0 +1,24 @@
+//
+// PKDeferredPaymentSummaryItem.h
+//
+// Copyright © 2021 Apple, Inc. All rights reserved.
+//
+
+#import <PassKit/PKPaymentSummaryItem.h>
+
+#ifndef __PKDEFERREDPAYMENTSUMMARYITEM_H__
+#define __PKDEFERREDPAYMENTSUMMARYITEM_H__
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(ios(15.0), watchos(8.0))
+@interface PKDeferredPaymentSummaryItem : PKPaymentSummaryItem
+
+// The timestamp to which the payment is deferred.
+@property (nonatomic, copy) NSDate *deferredDate;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif // __PKDEFERREDPAYMENTSUMMARYITEM_H__
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKError.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKError.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKError.h 2021-03-16 05:19:13.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKError.h 2021-06-02 07:34:58.000000000 -0400
@@ -35,7 +35,8 @@
PKPaymentShippingContactInvalidError = 1, // the user's contact information has an error. Use the PKPaymentErrorKeys in the userInfo to detail the problem.
PKPaymentBillingContactInvalidError, // the user's billing contact information has an error. Use the PKPaymentErrorKeys in the userInfo to detail the problem.
PKPaymentShippingAddressUnserviceableError, // the user's shipping address is otherwise valid but not serviceable. For example, the address is in Canada and you only ship to the United States, or you don't deliver to PO Boxes.
-
+ PKPaymentCouponCodeInvalidError API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(watchos), // The coupon code entered by the user is invalid.
+ PKPaymentCouponCodeExpiredError API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(watchos), // The coupon code entered by the user has expired.
} API_AVAILABLE(ios(11.0), watchos(4.0));
typedef NSString * PKPaymentErrorKey NS_STRING_ENUM;
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKObject.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKObject.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKObject.h 2021-03-16 05:15:10.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKObject.h 2021-06-01 23:56:21.000000000 -0400
@@ -9,7 +9,6 @@
#define __PKOBJECT_H
#import <Foundation/Foundation.h>
-#import <PassKit/PKError.h>
@interface PKObject : NSObject
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPassLibrary.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPassLibrary.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPassLibrary.h 2021-03-16 05:19:13.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPassLibrary.h 2021-06-02 12:45:43.000000000 -0400
@@ -99,6 +99,10 @@
// 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));
+
+// 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));
+
@end
// This notification is issued by a library instance, with that instance as the sender. If there are no instantiated library objects,
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayment.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayment.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayment.h 2021-03-16 05:19:14.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPayment.h 2021-06-02 07:34:59.000000000 -0400
@@ -4,6 +4,9 @@
// Copyright (c) 2014 Apple, Inc. All rights reserved.
//
+#ifndef __PKPAYMENT_H
+#define __PKPAYMENT_H
+
#import <TargetConditionals.h>
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
@@ -50,3 +53,4 @@
@end
+#endif
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h 2021-03-16 09:55:44.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationController.h 2021-06-02 12:45:43.000000000 -0400
@@ -28,6 +28,7 @@
@class PKPaymentAuthorizationResult;
@class PKPaymentAuthorizationController;
@class PKPaymentRequestPaymentMethodUpdate;
+@class PKPaymentRequestCouponCodeUpdate;
@class PKPaymentRequestShippingMethodUpdate;
@class PKPaymentRequestShippingContactUpdate;
@class PKPaymentRequestMerchantSessionUpdate;
@@ -65,7 +66,11 @@
- (void)paymentAuthorizationControllerWillAuthorizePayment:(PKPaymentAuthorizationController *)controller;
- (void)paymentAuthorizationController:(PKPaymentAuthorizationController *)controller
- didRequestMerchantSessionUpdate:(void (^)(PKPaymentRequestMerchantSessionUpdate *update))handler API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0));
+ didRequestMerchantSessionUpdate:(void (^)(PKPaymentRequestMerchantSessionUpdate *update))handler API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0)) NS_SWIFT_ASYNC_NAME(paymentAuthorizationControllerDidRequestMerchantSessionUpdate(controller:));
+
+- (void)paymentAuthorizationController:(PKPaymentAuthorizationController *)controller
+ didChangeCouponCode:(NSString *)couponCode
+ handler:(void (^)(PKPaymentRequestCouponCodeUpdate *update))completion API_AVAILABLE(macos(12.0), ios(15.0)) API_UNAVAILABLE(watchos);
// Sent when the user has selected a new shipping method. The delegate should determine
// shipping costs based on the shipping method and either the shipping address contact in the original
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewControllerDelegate.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewControllerDelegate.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewControllerDelegate.h 2021-03-16 08:43:21.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentAuthorizationViewControllerDelegate.h 2021-06-02 12:42:51.000000000 -0400
@@ -27,6 +27,7 @@
@class PKPaymentSummaryItem;
@class PKPaymentAuthorizationResult;
@class PKPaymentRequestPaymentMethodUpdate;
+@class PKPaymentRequestCouponCodeUpdate;
@class PKPaymentAuthorizationViewController;
@class PKPaymentRequestShippingMethodUpdate;
@class PKPaymentRequestShippingContactUpdate;
@@ -63,7 +64,12 @@
- (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller
- didRequestMerchantSessionUpdate:(void (^)(PKPaymentRequestMerchantSessionUpdate *update))handler API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0));
+ didRequestMerchantSessionUpdate:(void (^)(PKPaymentRequestMerchantSessionUpdate *update))handler API_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0)) NS_SWIFT_ASYNC_NAME(paymentAuthorizationViewControllerDidRequestMerchantSessionUpdate(controller:));
+
+
+- (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller
+ didChangeCouponCode:(NSString *)couponCode
+ handler:(void (^)(PKPaymentRequestCouponCodeUpdate *update))completion API_AVAILABLE(macos(12.0), ios(15.0)) API_UNAVAILABLE(watchos);
// Sent when the user has selected a new shipping method. The delegate should determine
// shipping costs based on the shipping method and either the shipping address supplied in the original
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMethod.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMethod.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMethod.h 2021-03-16 05:19:13.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentMethod.h 2021-06-02 07:34:58.000000000 -0400
@@ -23,7 +23,8 @@
PKPaymentMethodTypeDebit = 1,
PKPaymentMethodTypeCredit = 2,
PKPaymentMethodTypePrepaid = 3,
- PKPaymentMethodTypeStore = 4
+ PKPaymentMethodTypeStore = 4,
+ PKPaymentMethodTypeEMoney = 5,
} API_AVAILABLE(macos(11.0), ios(9.0), watchos(3.0));
// A string describing the instrument that's suitable for display
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h 2021-03-16 08:46:10.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequest.h 2021-06-02 11:08:19.000000000 -0400
@@ -6,13 +6,15 @@
#import <Foundation/Foundation.h>
#import <PassKit/PKConstants.h>
+#import <PassKit/PKDeferredPaymentSummaryItem.h>
+#import <PassKit/PKRecurringPaymentSummaryItem.h>
+#import <PassKit/PKPaymentSummaryItem.h>
+#import <PassKit/PKShippingMethod.h>
#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
#import <AddressBook/ABRecord.h>
#endif // TARGET_OS_IOS
-#import <PassKit/PKConstants.h>
-
#ifndef __PKPAYMENTREQUEST_H__
#define __PKPAYMENTREQUEST_H__
@@ -43,44 +45,10 @@
PKShippingTypeServicePickup
} API_AVAILABLE(macos(11.0), ios(8.3), watchos(3.0));
-typedef NS_ENUM(NSUInteger, PKPaymentSummaryItemType) {
- PKPaymentSummaryItemTypeFinal, // The payment summary item's amount is known to be correct
- PKPaymentSummaryItemTypePending // The payment summary item's amount is estimated or unknown - e.g, a taxi fare
-} API_AVAILABLE(macos(11.0), ios(9.0), watchos(3.0));
-
-// PKPaymentSummaryItem Defines a line-item for a payment such as tax, shipping, or discount.
-API_AVAILABLE(macos(11.0), ios(8.0), watchos(3.0))
-@interface PKPaymentSummaryItem : NSObject
-
-+ (instancetype)summaryItemWithLabel:(NSString *)label amount:(NSDecimalNumber *)amount;
-+ (instancetype)summaryItemWithLabel:(NSString *)label amount:(NSDecimalNumber *)amount type:(PKPaymentSummaryItemType)type API_AVAILABLE(macos(11.0), ios(9.0), watchos(3.0));
-
-// A short localized description of the item, e.g. "Tax" or "Gift Card".
-@property (nonatomic, copy) NSString *label;
-
-// Same currency as the enclosing PKPaymentRequest. Negative values are permitted, for example when
-// redeeming a coupon. An amount is always required unless the summary item's type is set to pending
-@property (nonatomic, copy) NSDecimalNumber *amount;
-
-// Defaults to PKPaymentSummaryItemTypeFinal
-// Set to PKPaymentSummaryItemTypePending if the amount of the item is not known at this time
-@property (nonatomic, assign) PKPaymentSummaryItemType type API_AVAILABLE(macos(11.0), ios(9.0), watchos(3.0));
-
-@end
-
-// Defines a shipping method for delivering physical goods.
-API_AVAILABLE(macos(11.0), ios(8.0), watchos(3.0))
-@interface PKShippingMethod : PKPaymentSummaryItem
-
-// Application-defined unique identifier for this shipping method. The application will receive this
-// in paymentAuthorizationViewController:didAuthorizePayment:completion:.
-@property (nonatomic, copy, nullable) NSString *identifier;
-
-// Additional localized information about the shipping method, e.g. "Ships in 24 hours" or
-// "Arrives Friday April 4."
-@property (nonatomic, copy, nullable) NSString *detail;
-
-@end
+typedef NS_ENUM(NSUInteger, PKShippingContactEditingMode) {
+ PKShippingContactEditingModeEnabled = 1,
+ PKShippingContactEditingModeStorePickup
+} API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0));
// PKPaymentRequest defines an application's request to produce a payment instrument for the
// purchase of goods and services. It encapsulates information about the selling party's payment
@@ -108,6 +76,12 @@
// Convenience method to create a payment shipping address service error with the supplied description
+ (NSError *)paymentShippingAddressUnserviceableErrorWithLocalizedDescription:(nullable NSString *)localizedDescription API_AVAILABLE(macos(11.0), ios(11.0), watchos(4.0));
+// Convenience method to create a payment coupon code invalid error with the supplied description.
++ (NSError *)paymentCouponCodeInvalidErrorWithLocalizedDescription:(nullable NSString *)localizedDescription API_AVAILABLE(macos(12.0), ios(15.0)) API_UNAVAILABLE(watchos) NS_REFINED_FOR_SWIFT;
+
+// Convenience method to create a payment coupon code expired error with the supplied description.
++ (NSError *)paymentCouponCodeExpiredErrorWithLocalizedDescription:(nullable NSString *)localizedDescription API_AVAILABLE(macos(12.0), ios(15.0)) API_UNAVAILABLE(watchos) NS_REFINED_FOR_SWIFT;
+
// Identifies the merchant, as previously agreed with Apple. Must match one of the merchant
// identifiers in the application's entitlement.
@property (nonatomic, copy) NSString *merchantIdentifier;
@@ -122,6 +96,12 @@
// The payment processing capabilities of the merchant.
@property (nonatomic, assign) PKMerchantCapability merchantCapabilities;
+// Indicates whether the merchant supports coupon code entry and validation. Defaults to NO.
+@property (nonatomic, assign) BOOL supportsCouponCode API_AVAILABLE(macos(12.0), ios(15.0)) API_UNAVAILABLE(watchos);
+
+// An optional coupon code that is valid and has been applied to the payment request already.
+@property (nonatomic, copy, nullable) NSString *couponCode API_AVAILABLE(macos(12.0), ios(15.0)) API_UNAVAILABLE(watchos);
+
// Array of PKPaymentSummaryItem objects which should be presented to the user.
// The last item should be the total you wish to charge, and should not be pending
@property (nonatomic, copy) NSArray<PKPaymentSummaryItem *> *paymentSummaryItems;
@@ -158,6 +138,9 @@
// The default is PKShippingTypeShipping
@property (nonatomic, assign) PKShippingType shippingType API_AVAILABLE(macos(11.0), ios(8.3), watchos(3.0));
+// Indicates the editing mode for the shipping contact. The default is PKShippingContactEditingModeEnabled.
+@property (nonatomic, assign) PKShippingContactEditingMode shippingContactEditingMode API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0));
+
// Optional merchant-supplied information about the payment request. Examples of this are an order
// or cart identifier. It will be signed and included in the resulting PKPaymentToken.
@property (nonatomic, copy, nullable) NSData *applicationData;
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequestStatus.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequestStatus.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequestStatus.h 2021-03-16 05:19:13.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentRequestStatus.h 2021-06-02 12:42:49.000000000 -0400
@@ -12,6 +12,7 @@
@class PKShippingMethod;
@class PKPaymentSummaryItem;
@class PKPaymentMerchantSession;
+@class PKPaymentTokenConfiguration;
API_AVAILABLE(macos(11.0), ios(11.0), watchos(4.0))
@interface PKPaymentAuthorizationResult : NSObject
@@ -42,6 +43,10 @@
// The new payment summary items to update the payment request with
@property (nonatomic, copy) NSArray<PKPaymentSummaryItem *> *paymentSummaryItems;
+// The new shipping methods to update the payment request with. An empty array, the default value,
+// 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));
+
@end
API_AVAILABLE(macos(11.0), ios(11.0), watchos(4.0))
@@ -85,4 +90,17 @@
@end
+API_AVAILABLE(macos(12.0), ios(15.0)) API_UNAVAILABLE(watchos)
+@interface PKPaymentRequestCouponCodeUpdate : PKPaymentRequestUpdate
+
+// You may optionally supply errors here.
+// See PKError for specific NSError keys to use.
+- (instancetype)initWithErrors:(nullable NSArray<NSError *> *)errors
+ paymentSummaryItems:(NSArray<PKPaymentSummaryItem *> *)paymentSummaryItems
+ shippingMethods:(NSArray<PKShippingMethod *> *)shippingMethods NS_DESIGNATED_INITIALIZER;
+
+@property (nonatomic, copy, null_resettable) NSArray<NSError *> *errors;
+
+@end
+
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentSummaryItem.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentSummaryItem.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentSummaryItem.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentSummaryItem.h 2021-06-02 07:34:59.000000000 -0400
@@ -0,0 +1,44 @@
+//
+// PKPaymentSummaryItem.h
+//
+// Copyright © 2021 Apple, Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <PassKit/PKConstants.h>
+
+#ifndef __PKPAYMENTSUMMARYITEM_H__
+#define __PKPAYMENTSUMMARYITEM_H__
+
+@class PKDateComponentsRange;
+
+NS_ASSUME_NONNULL_BEGIN
+
+typedef NS_ENUM(NSUInteger, PKPaymentSummaryItemType) {
+ PKPaymentSummaryItemTypeFinal, // The payment summary item's amount is known to be correct
+ PKPaymentSummaryItemTypePending // The payment summary item's amount is estimated or unknown - e.g, a taxi fare
+} API_AVAILABLE(ios(9.0), watchos(3.0));
+
+// PKPaymentSummaryItem Defines a line-item for a payment such as tax, shipping, or discount.
+API_AVAILABLE(ios(8.0), watchos(3.0))
+@interface PKPaymentSummaryItem : NSObject
+
++ (instancetype)summaryItemWithLabel:(NSString *)label amount:(NSDecimalNumber *)amount;
++ (instancetype)summaryItemWithLabel:(NSString *)label amount:(NSDecimalNumber *)amount type:(PKPaymentSummaryItemType)type API_AVAILABLE(ios(9.0), watchos(3.0));
+
+// A short localized description of the item, e.g. "Tax" or "Gift Card".
+@property (nonatomic, copy) NSString *label;
+
+// Same currency as the enclosing PKPaymentRequest. Negative values are permitted, for example when
+// redeeming a coupon. An amount is always required unless the summary item's type is set to pending
+@property (nonatomic, copy) NSDecimalNumber *amount;
+
+// Defaults to PKPaymentSummaryItemTypeFinal
+// Set to PKPaymentSummaryItemTypePending if the amount of the item is not known at this time
+@property (nonatomic, assign) PKPaymentSummaryItemType type API_AVAILABLE(ios(9.0), watchos(3.0));
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif // __PKPAYMENTSUMMARYITEM_H__
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentToken.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentToken.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentToken.h 2021-03-16 05:19:13.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKPaymentToken.h 2021-06-02 07:34:58.000000000 -0400
@@ -4,6 +4,9 @@
// Copyright (c) 2014, Apple Inc. All rights reserved.
//
+#ifndef __PKPAYMENTTOKEN_H
+#define __PKPAYMENTTOKEN_H
+
#import <Foundation/Foundation.h>
@class PKPaymentMethod;
@@ -36,3 +39,5 @@
@end
NS_ASSUME_NONNULL_END
+
+#endif
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentSummaryItem.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentSummaryItem.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentSummaryItem.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKRecurringPaymentSummaryItem.h 2021-06-02 07:34:58.000000000 -0400
@@ -0,0 +1,33 @@
+//
+// PKRecurringPaymentSummaryItem.h
+//
+// Copyright © 2021 Apple, Inc. All rights reserved.
+//
+
+#import <PassKit/PKPaymentSummaryItem.h>
+
+#ifndef __PKRECURRINGPAYMENTSUMMARYITEM_H__
+#define __PKRECURRINGPAYMENTSUMMARYITEM_H__
+
+NS_ASSUME_NONNULL_BEGIN
+
+API_AVAILABLE(ios(15.0), watchos(8.0))
+@interface PKRecurringPaymentSummaryItem : PKPaymentSummaryItem
+
+// The timestamp at which the first payment will be taken; nil indicates immediately. The default value is nil.
+@property (nonatomic, copy, nullable) NSDate *startDate;
+
+// The interval at which payments will be taken (daily, weekly, monthly, yearly, etc.). The default value is NSCalendarUnitMonth.
+@property (nonatomic, assign) NSCalendarUnit intervalUnit;
+
+// The number of intervals between payments. Default is 1.
+@property (nonatomic, assign) NSInteger intervalCount;
+
+// If set, the date at which the recurring payments will end. Default is nil.
+@property (nonatomic, copy, nullable) NSDate *endDate;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif // __PKRECURRINGPAYMENTSUMMARYITEM_H__
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKShippingMethod.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKShippingMethod.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKShippingMethod.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKShippingMethod.h 2021-06-02 07:34:59.000000000 -0400
@@ -0,0 +1,36 @@
+//
+// PKShippingMethod.h
+//
+// Copyright © 2021 Apple, Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <PassKit/PKPaymentSummaryItem.h>
+#import <PassKit/PKDateComponentsRange.h>
+
+#ifndef __PKSHIPPINGMETHOD_H__
+#define __PKSHIPPINGMETHOD_H__
+
+NS_ASSUME_NONNULL_BEGIN
+
+// Defines a shipping method for delivering physical goods.
+API_AVAILABLE(ios(8.0), watchos(3.0))
+@interface PKShippingMethod : PKPaymentSummaryItem
+
+// Application-defined unique identifier for this shipping method. The application will receive this
+// in paymentAuthorizationViewController:didAuthorizePayment:completion:.
+@property (nonatomic, copy, nullable) NSString *identifier;
+
+// Additional localized information about the shipping method, e.g. "Ships in 24 hours" or
+// "Arrives Friday April 4."
+@property (nonatomic, copy, nullable) NSString *detail;
+
+// Localized date range for this shipping method e.g. "Shipping by May 12 - 19"
+// Setting this results in the detail property not being displayed.
+@property (nonatomic, copy, nullable) PKDateComponentsRange *dateComponentsRange API_AVAILABLE(ios(15.0), watchos(8.0));
+
+@end
+
+NS_ASSUME_NONNULL_END
+
+#endif // __PKSHIPPINGMETHOD_H__
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassBalance.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassBalance.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassBalance.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassBalance.h 2021-06-02 07:34:59.000000000 -0400
@@ -0,0 +1,31 @@
+//
+// PKStoredValuePassBalance.h
+// PassKit
+//
+// Copyright © 2020 Apple, Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+typedef NSString * PKStoredValuePassBalanceType NS_TYPED_ENUM NS_SWIFT_NAME(PKStoredValuePassBalance.BalanceType);
+extern PKStoredValuePassBalanceType const PKStoredValuePassBalanceTypeCash API_AVAILABLE(ios(15.0), watchos(8.0));
+extern PKStoredValuePassBalanceType const PKStoredValuePassBalanceTypeLoyaltyPoints API_AVAILABLE(ios(15.0), watchos(8.0));
+
+API_AVAILABLE(ios(15.0), watchos(8.0))
+@interface PKStoredValuePassBalance : NSObject
+
+@property (nonatomic, strong, readonly) NSDecimalNumber *amount NS_REFINED_FOR_SWIFT;
+@property (nonatomic, copy, readonly, nullable) NSString *currencyCode;
+@property (nonatomic, copy, readonly) PKStoredValuePassBalanceType balanceType;
+@property (nonatomic, strong, readonly, nullable) NSDate *expiryDate;
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+- (BOOL)isEqualToBalance:(PKStoredValuePassBalance *)balance NS_REFINED_FOR_SWIFT;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassProperties.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassProperties.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassProperties.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKStoredValuePassProperties.h 2021-06-02 07:34:58.000000000 -0400
@@ -0,0 +1,30 @@
+//
+// PKStoredValuePassProperties.h
+// PassKit
+//
+// Copyright © 2020 Apple, Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@class PKPass;
+@class PKStoredValuePassBalance;
+
+API_AVAILABLE(ios(15.0), watchos(8.0))
+@interface PKStoredValuePassProperties : NSObject
+
++ (nullable instancetype)passPropertiesForPass:(PKPass *)pass;
+
+@property (nonatomic, assign, readonly, getter=isBlacklisted) BOOL blacklisted API_DEPRECATED_WITH_REPLACEMENT("isBlocked", ios(15.0, 15.0), watchos(8.0, 8.0), macos(12.0, 12.0));
+
+@property (nonatomic, assign, readonly, getter=isBlocked) BOOL blocked API_AVAILABLE(ios(15.0), watchos(8.0), macos(12.0)) NS_REFINED_FOR_SWIFT;
+
+@property (nonatomic, nullable, copy, readonly) NSDate *expirationDate; // nil if pass does not expire
+
+@property (nonatomic, copy, readonly) NSArray<PKStoredValuePassBalance*> *balances;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKSuicaPassProperties.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKSuicaPassProperties.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKSuicaPassProperties.h 2021-03-16 05:19:13.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKSuicaPassProperties.h 2021-06-02 07:34:58.000000000 -0400
@@ -30,7 +30,7 @@
@property (nonatomic, assign, readonly, getter=isGreenCarTicketUsed) BOOL greenCarTicketUsed;
-@property (nonatomic, assign, readonly, getter=isBlacklisted) BOOL blacklisted API_DEPRECATED_WITH_REPLACEMENT("isBlocked", ios(10.1, 14.5), watchos(3.1, 7.0));
+@property (nonatomic, assign, readonly, getter=isBlacklisted) BOOL blacklisted API_DEPRECATED_WITH_REPLACEMENT("isBlocked", ios(10.1, 15.0), watchos(3.1, 8.0));
@end
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKTransitPassProperties.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKTransitPassProperties.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKTransitPassProperties.h 2021-03-16 05:19:13.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKTransitPassProperties.h 2021-06-02 07:34:58.000000000 -0400
@@ -5,28 +5,24 @@
// Copyright © 2017 Apple, Inc. All rights reserved.
//
-#import <Foundation/Foundation.h>
+#import <PassKit/PKStoredValuePassProperties.h>
NS_ASSUME_NONNULL_BEGIN
-@class PKPass;
-
API_AVAILABLE(ios(11.3), watchos(4.3))
-@interface PKTransitPassProperties : NSObject
+@interface PKTransitPassProperties : PKStoredValuePassProperties
-+ (nullable instancetype)passPropertiesForPass:(PKPass *)pass;
+@property (nonatomic, copy, readonly) NSDecimalNumber *transitBalance API_DEPRECATED_WITH_REPLACEMENT("balances", ios(11.3, 15.0), watchos(4.3, 8.0), macos(11.0, 12.0));
+@property (nonatomic, copy, readonly) NSString *transitBalanceCurrencyCode API_DEPRECATED_WITH_REPLACEMENT("balances", ios(11.3, 15.0), watchos(4.3, 8.0), macos(11.0, 12.0));
-@property (nonatomic, copy, readonly) NSDecimalNumber *transitBalance;
-@property (nonatomic, copy, readonly) NSString *transitBalanceCurrencyCode;
+@property (nonatomic, assign, readonly, getter=isBlacklisted) BOOL blacklisted API_DEPRECATED_WITH_REPLACEMENT("isBlocked", ios(11.3, 15.0), watchos(4.3, 8.0), macos(11.0, 12.0));
-@property (nonatomic, assign, readonly, getter=isBlacklisted) BOOL blacklisted API_DEPRECATED_WITH_REPLACEMENT("isBlocked", ios(11.3, 14.5), watchos(4.3, 6.4));
+@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(6.4));
+@property (nonatomic, assign, readonly, getter=isBlocked) BOOL blocked API_AVAILABLE(ios(14.5), watchos(7.5), macos(11.3));
@property (nonatomic, assign, readonly, getter=isInStation) BOOL inStation;
-@property (nonatomic, nullable, copy, readonly) NSDate *expirationDate; // nil if pass does not expire
-
@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h 2021-03-16 05:15:10.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h 2021-06-01 23:21:39.000000000 -0400
@@ -16,6 +16,12 @@
#import <PassKit/PKLabeledValue.h>
#endif
#import <PassKit/PKContact.h>
+#if __has_include(<PassKit/PKStoredValuePassProperties.h>)
+#import <PassKit/PKStoredValuePassProperties.h>
+#endif
+#if __has_include(<PassKit/PKStoredValuePassBalance.h>)
+#import <PassKit/PKStoredValuePassBalance.h>
+#endif
#if __has_include(<PassKit/PKTransitPassProperties.h>)
#import <PassKit/PKTransitPassProperties.h>
#endif
@@ -28,15 +34,15 @@
#if __has_include(<PassKit/PKPaymentRequestStatus.h>)
#import <PassKit/PKPaymentRequestStatus.h>
#endif
+#if __has_include(<PassKit/PKPaymentToken.h>)
+#import <PassKit/PKPaymentToken.h>
+#endif
#if __has_include(<PassKit/PKPayment.h>)
#import <PassKit/PKPayment.h>
#endif
#if __has_include(<PassKit/PKPaymentMethod.h>)
#import <PassKit/PKPaymentMethod.h>
#endif
-#if __has_include(<PassKit/PKPaymentToken.h>)
-#import <PassKit/PKPaymentToken.h>
-#endif
#if TARGET_OS_IPHONE || TARGET_OS_OSX
#if __has_include(<PassKit/PKPaymentAuthorizationViewController.h>)
#import <PassKit/PKPaymentAuthorizationViewController.h>
@@ -68,12 +74,12 @@
#if __has_include(<PassKit/PKDisbursementAuthorizationController.h>)
#import <PassKit/PKDisbursementAuthorizationController.h>
#endif
-#if __has_include(<PassKit/PKPaymentInformationEventExtension.h>)
-#import <PassKit/PKPaymentInformationEventExtension.h>
-#endif
#if __has_include(<PassKit/PKBarcodeEventMetadataRequest.h>)
#import <PassKit/PKBarcodeEventMetadataRequest.h>
#endif
+#if __has_include(<PassKit/PKPaymentInformationEventExtension.h>)
+#import <PassKit/PKPaymentInformationEventExtension.h>
+#endif
#if __has_include(<PassKit/PKAddSecureElementPassViewController.h>)
#import <PassKit/PKAddSecureElementPassViewController.h>
#endif
@@ -104,4 +110,7 @@
#if __has_include(<PassKit/PKIssuerProvisioningExtensionPaymentPassEntry.h>)
#import <PassKit/PKIssuerProvisioningExtensionPaymentPassEntry.h>
#endif
+#if __has_include(<PassKit/PKDateComponentsRange.h>)
+#import <PassKit/PKDateComponentsRange.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