diff --git a/src/PassKit/PKEnums.cs b/src/PassKit/PKEnums.cs index 826e397bf10a..ce966a09202d 100644 --- a/src/PassKit/PKEnums.cs +++ b/src/PassKit/PKEnums.cs @@ -174,6 +174,8 @@ public enum PKPaymentButtonType : long { Contribute = 14, [iOS (14,0)] Tip = 15, + [Mac (12,0), iOS (15,0), Watch (8,0)] + Continue = 16, } [Mac (11,0)] @@ -221,7 +223,8 @@ public enum PKPaymentMethodType : ulong Debit, Credit, Prepaid, - Store + Store, + EMoney, } [Mac (11,0)] @@ -252,6 +255,8 @@ public enum PKPaymentErrorCode : long { ShippingContactInvalid = 1, BillingContactInvalid, ShippingAddressUnserviceable, + CouponCodeInvalid, + CouponCodeExpired, } [iOS (12,0)] diff --git a/src/passkit.cs b/src/passkit.cs index a84f9b4592f7..2b1582f7f4a6 100644 --- a/src/passkit.cs +++ b/src/passkit.cs @@ -207,6 +207,11 @@ interface PKPassLibrary { [Watch (6,2), iOS (13,4)] [Export ("signData:withSecureElementPass:completion:")] void SignData (NSData signData, PKSecureElementPass secureElementPass, PKPassLibrarySignDataCompletionHandler completion); + + [Async (ResultTypeName = "PKServiceProviderDataCompletionResult")] + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Export ("serviceProviderDataForSecureElementPass:completion:")] + void GetServiceProviderData (PKSecureElementPass secureElementPass, Action completion); } [Static] @@ -345,6 +350,11 @@ interface PKPaymentAuthorizationViewControllerDelegate { [Export ("paymentAuthorizationViewController:didRequestMerchantSessionUpdate:")] [EventArgs ("PKPaymentRequestMerchantSessionUpdate")] void DidRequestMerchantSessionUpdate (PKPaymentAuthorizationViewController controller, Action updateHandler); + + [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("paymentAuthorizationViewController:didChangeCouponCode:handler:")] + [EventArgs ("PKPaymentRequestCouponCodeUpdate")] + void DidChangeCouponCode (PKPaymentAuthorizationViewController controller, string couponCode, Action completion); } [Mac (11,0)] @@ -416,6 +426,11 @@ interface PKShippingMethod { [NullAllowed] // by default this property is null [Export ("detail")] string Detail { get; set; } + + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [NullAllowed] + [Export ("dateComponentsRange", ArgumentSemantic.Copy)] + PKDateComponentsRange DateComponentsRange { get; set; } } [Watch (3,0)] @@ -446,6 +461,19 @@ interface PKPaymentRequest { [Export ("currencyCode")] string CurrencyCode { get; set; } + [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("supportsCouponCode")] + bool SupportsCouponCode { get; set; } + + [NullAllowed] + [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("couponCode")] + string CouponCode { get; set; } + + [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("shippingContactEditingMode", ArgumentSemantic.Assign)] + PKShippingContactEditingMode ShippingContactEditingMode { get; set; } + [NoMac] [Deprecated (PlatformName.WatchOS, 4,0, message: "Use 'RequiredBillingContactFields' instead.")] [Deprecated (PlatformName.iOS, 11,0, message: "Use 'RequiredBillingContactFields' instead.")] @@ -548,6 +576,16 @@ interface PKPaymentRequest { [Static] [Export ("paymentShippingAddressUnserviceableErrorWithLocalizedDescription:")] NSError CreatePaymentShippingAddressUnserviceableError ([NullAllowed] string localizedDescription); + + [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Static] + [Export ("paymentCouponCodeInvalidErrorWithLocalizedDescription:")] + NSError GetCouponCodeInvalidError ([NullAllowed] string localizedDescription); + + [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Static] + [Export ("paymentCouponCodeExpiredErrorWithLocalizedDescription:")] + NSError GetCouponCodeExpiredError ([NullAllowed] string localizedDescription); } [Mac (11,0)] @@ -1140,7 +1178,11 @@ interface PKPaymentAuthorizationControllerDelegate { [MacCatalyst (14,0)] [Export ("paymentAuthorizationController:didRequestMerchantSessionUpdate:")] void DidRequestMerchantSessionUpdate (PKPaymentAuthorizationController controller, Action handler); - + + [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("paymentAuthorizationController:didChangeCouponCode:handler:")] + void DidChangeCouponCode (PKPaymentAuthorizationController controller, string couponCode, Action completion); + [Watch (7,0)][iOS (14,0)] [MacCatalyst (14,0)] [Export ("presentationWindowForPaymentAuthorizationController:")] @@ -1171,7 +1213,7 @@ interface PKLabeledValue [Mac (11,0)] [Watch (4,3), iOS (11,3)] - [BaseType (typeof (NSObject))] + [BaseType (typeof (PKStoredValuePassProperties))] [DisableDefaultCtor] interface PKTransitPassProperties { @@ -1180,9 +1222,17 @@ interface PKTransitPassProperties { [return: NullAllowed] PKTransitPassProperties GetPassProperties (PKPass pass); + [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.WatchOS, 8, 0)] + [Deprecated (PlatformName.MacOSX, 12, 0)] + [Deprecated (PlatformName.MacCatalyst, 15, 0)] [Export ("transitBalance", ArgumentSemantic.Copy)] NSDecimalNumber TransitBalance { get; } + [Deprecated (PlatformName.iOS, 15, 0)] + [Deprecated (PlatformName.WatchOS, 8, 0)] + [Deprecated (PlatformName.MacOSX, 12, 0)] + [Deprecated (PlatformName.MacCatalyst, 15, 0)] [Export ("transitBalanceCurrencyCode")] string TransitBalanceCurrencyCode { get; } @@ -1192,6 +1242,7 @@ interface PKTransitPassProperties { [Deprecated (PlatformName.iOS, 14,5, message: "Use 'Blocked' instead.")] [Deprecated (PlatformName.MacCatalyst, 14,5, message: "Use 'Blocked' instead.")] [Deprecated (PlatformName.WatchOS, 7,4, message: "Use 'Blocked' instead.")] + [Deprecated (PlatformName.MacOSX, 11,3, message: "Use 'Blocked' instead.")] [Export ("blacklisted")] bool Blacklisted { [Bind ("isBlacklisted")] get; } @@ -1244,6 +1295,8 @@ interface PKSuicaPassProperties [Export ("blacklisted")] [Deprecated (PlatformName.iOS, 14,5, message: "Use 'Blocked' instead.")] // exists in base class [Deprecated (PlatformName.WatchOS, 7,4, message: "Use 'Blocked' instead.")] + [Deprecated (PlatformName.MacOSX, 11,3, message: "Use 'Blocked' instead.")] + [Deprecated (PlatformName.MacCatalyst, 14,5, message: "Use 'Blocked' instead.")] bool Blacklisted { [Bind ("isBlacklisted")] get; } } @@ -1278,6 +1331,10 @@ interface PKPaymentRequestUpdate { [Export ("paymentSummaryItems", ArgumentSemantic.Copy)] PKPaymentSummaryItem[] PaymentSummaryItems { get; set; } + + [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("shippingMethods", ArgumentSemantic.Copy)] + PKShippingMethod[] ShippingMethods { get; set; } } [Mac (11,0)] @@ -1569,6 +1626,10 @@ interface PKShareablePassMetadata { [Export ("initWithProvisioningCredentialIdentifier:cardConfigurationIdentifier:sharingInstanceIdentifier:passThumbnailImage:ownerDisplayName:localizedDescription:")] IntPtr Constructor (string credentialIdentifier, string cardConfigurationIdentifier, string sharingInstanceIdentifier, CGImage passThumbnailImage, string ownerDisplayName, string localizedDescription); + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Export ("initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:passThumbnailImage:ownerDisplayName:localizedDescription:accountHash:templateIdentifier:relyingPartyIdentifier:requiresUnifiedAccessCapableDevice:")] + IntPtr Constructor (string credentialIdentifier, string sharingInstanceIdentifier, CGImage passThumbnailImage, string ownerDisplayName, string localizedDescription, string accountHash, string templateIdentifier, string relyingPartyIdentifier, bool requiresUnifiedAccessCapableDevice); + [Export ("credentialIdentifier", ArgumentSemantic.Strong)] string CredentialIdentifier { get; } @@ -1586,6 +1647,22 @@ interface PKShareablePassMetadata { [Export ("ownerDisplayName", ArgumentSemantic.Strong)] string OwnerDisplayName { get; } + + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Export ("accountHash", ArgumentSemantic.Strong)] + string AccountHash { get; } + + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Export ("templateIdentifier", ArgumentSemantic.Strong)] + string TemplateIdentifier { get; } + + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Export ("relyingPartyIdentifier", ArgumentSemantic.Strong)] + string RelyingPartyIdentifier { get; } + + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [Export ("requiresUnifiedAccessCapableDevice")] + bool RequiresUnifiedAccessCapableDevice { get; } } [NoWatch, NoTV] @@ -1858,6 +1935,23 @@ interface PKPaymentRequestMerchantSessionUpdate { PKPaymentMerchantSession Session { get; set; } } + [NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof(PKPaymentRequestUpdate))] + [DisableDefaultCtor] + interface PKPaymentRequestCouponCodeUpdate + { + [Export ("initWithPaymentSummaryItems:")] + [DesignatedInitializer] + IntPtr Constructor (PKPaymentSummaryItem[] paymentSummaryItems); + + [Export ("initWithErrors:paymentSummaryItems:shippingMethods:")] + [DesignatedInitializer] + IntPtr Constructor ([NullAllowed] NSError[] errors, PKPaymentSummaryItem[] paymentSummaryItems, PKShippingMethod[] shippingMethods); + + [NullAllowed, Export ("errors", ArgumentSemantic.Copy)] + NSError[] Errors { get; set; } + } + [Watch (7,0)][Mac (11,0)][iOS (14,0)] [MacCatalyst (14,0)] [BaseType (typeof (NSObject))] @@ -1873,4 +1967,105 @@ enum PKRadioTechnology : ulong { Nfc = 1 << 0, Bluetooth = 1 << 1, } + + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [BaseType (typeof(NSObject))] + [DisableDefaultCtor] + interface PKDateComponentsRange : NSCopying, NSSecureCoding + { + [Export ("initWithStartDateComponents:endDateComponents:")] + [return: NullAllowed] + IntPtr Constructor (NSDateComponents startDateComponents, NSDateComponents endDateComponents); + + [Export ("startDateComponents", ArgumentSemantic.Copy)] + NSDateComponents StartDateComponents { get; } + + [Export ("endDateComponents", ArgumentSemantic.Copy)] + NSDateComponents EndDateComponents { get; } + } + + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [BaseType (typeof(PKPaymentSummaryItem))] + [DisableDefaultCtor] + interface PKDeferredPaymentSummaryItem + { + [Export ("deferredDate", ArgumentSemantic.Copy)] + NSDate DeferredDate { get; set; } + } + + [Watch (8,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Native] + public enum PKShippingContactEditingMode : ulong + { + Enabled = 1, + StorePickup, + } + + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [BaseType (typeof(PKPaymentSummaryItem))] + [DisableDefaultCtor] + interface PKRecurringPaymentSummaryItem + { + [NullAllowed, Export ("startDate", ArgumentSemantic.Copy)] + NSDate StartDate { get; set; } + + [Export ("intervalUnit", ArgumentSemantic.Assign)] + NSCalendarUnit IntervalUnit { get; set; } + + [Export ("intervalCount")] + nint IntervalCount { get; set; } + + [NullAllowed, Export ("endDate", ArgumentSemantic.Copy)] + NSDate EndDate { get; set; } + } + + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + public enum PKStoredValuePassBalanceType + { + [Field ("PKStoredValuePassBalanceTypeCash")] + Cash, + [Field ("PKStoredValuePassBalanceTypeLoyaltyPoints")] + LoyaltyPoints, + } + + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [BaseType (typeof(NSObject))] + [DisableDefaultCtor] + interface PKStoredValuePassBalance + { + [Export ("amount", ArgumentSemantic.Strong)] + NSDecimalNumber Amount { get; } + + [NullAllowed, Export ("currencyCode")] + string CurrencyCode { get; } + + [Export ("balanceType")] + string BalanceType { get; } + + [NullAllowed, Export ("expiryDate", ArgumentSemantic.Strong)] + NSDate ExpiryDate { get; } + + [Export ("isEqualToBalance:")] + bool IsEqual (PKStoredValuePassBalance balance); + } + + [Watch (8,0), iOS (15,0), Mac (12,0), MacCatalyst (15,0)] + [BaseType (typeof(NSObject))] + [DisableDefaultCtor] + interface PKStoredValuePassProperties + { + [Static] + [Export ("passPropertiesForPass:")] + [return: NullAllowed] + PKStoredValuePassProperties GetPassProperties (PKPass pass); + + [Export ("blocked")] + bool Blocked { [Bind ("isBlocked")] get; } + + [NullAllowed, Export ("expirationDate", ArgumentSemantic.Copy)] + NSDate ExpirationDate { get; } + + [Export ("balances", ArgumentSemantic.Copy)] + PKStoredValuePassBalance[] Balances { get; } + } } diff --git a/tests/introspection/iOS/iOSApiProtocolTest.cs b/tests/introspection/iOS/iOSApiProtocolTest.cs index 9b454b5d1f1f..b2af483fb0cb 100644 --- a/tests/introspection/iOS/iOSApiProtocolTest.cs +++ b/tests/introspection/iOS/iOSApiProtocolTest.cs @@ -441,6 +441,11 @@ protected override bool Skip (Type type, string protocolName) case "ARSkeletonDefinition": // device only case "ARVideoFormat": // device only case "NSMergePolicy": + case "PKDeferredPaymentSummaryItem": + case "PKPaymentRequestCouponCodeUpdate": + case "PKRecurringPaymentSummaryItem": + case "PKStoredValuePassBalance": + case "PKStoredValuePassProperties": case "SFSafariViewControllerPrewarmingToken": // conformance not in headers case "SRTextInputSession": // conformance not in headers return true; @@ -682,6 +687,11 @@ protected override bool Skip (Type type, string protocolName) case "ARSkeletonDefinition": // device only case "ARVideoFormat": // device only case "NSMergePolicy": + case "PKDeferredPaymentSummaryItem": + case "PKPaymentRequestCouponCodeUpdate": + case "PKRecurringPaymentSummaryItem": + case "PKStoredValuePassBalance": + case "PKStoredValuePassProperties": case "SFSafariViewControllerPrewarmingToken": // conformance not in headers case "SRTextInputSession": // conformance not in headers return true; @@ -767,6 +777,9 @@ protected override bool Skip (Type type, string protocolName) case "NSMappingModel": case "NSMergePolicy": case "NSPropertyMapping": + case "PKDeferredPaymentSummaryItem": + case "PKRecurringPaymentSummaryItem": + case "PKStoredValuePassProperties": return true; } break; diff --git a/tests/xtro-sharpie/MacCatalyst-PassKit.todo b/tests/xtro-sharpie/MacCatalyst-PassKit.todo deleted file mode 100644 index e0cc88f02391..000000000000 --- a/tests/xtro-sharpie/MacCatalyst-PassKit.todo +++ /dev/null @@ -1,60 +0,0 @@ -!missing-enum! PKShippingContactEditingMode not bound -!missing-enum-value! PKPaymentButtonType native value PKPaymentButtonTypeContinue = 16 not bound -!missing-enum-value! PKPaymentErrorCode native value PKPaymentCouponCodeExpiredError = 5 not bound -!missing-enum-value! PKPaymentErrorCode native value PKPaymentCouponCodeInvalidError = 4 not bound -!missing-enum-value! PKPaymentMethodType native value PKPaymentMethodTypeEMoney = 5 not bound -!missing-field! PKStoredValuePassBalanceTypeCash not bound -!missing-field! PKStoredValuePassBalanceTypeLoyaltyPoints not bound -!missing-protocol-member! PKPaymentAuthorizationControllerDelegate::paymentAuthorizationController:didChangeCouponCode:handler: not found -!missing-protocol-member! PKPaymentAuthorizationViewControllerDelegate::paymentAuthorizationViewController:didChangeCouponCode:handler: not found -!missing-selector! +PKPaymentRequest::paymentCouponCodeExpiredErrorWithLocalizedDescription: not bound -!missing-selector! +PKPaymentRequest::paymentCouponCodeInvalidErrorWithLocalizedDescription: not bound -!missing-selector! +PKStoredValuePassProperties::passPropertiesForPass: not bound -!missing-selector! PKDateComponentsRange::endDateComponents not bound -!missing-selector! PKDateComponentsRange::initWithStartDateComponents:endDateComponents: not bound -!missing-selector! PKDateComponentsRange::startDateComponents not bound -!missing-selector! PKDeferredPaymentSummaryItem::deferredDate not bound -!missing-selector! PKDeferredPaymentSummaryItem::setDeferredDate: not bound -!missing-selector! PKPassLibrary::serviceProviderDataForSecureElementPass:completion: not bound -!missing-selector! PKPaymentRequest::couponCode not bound -!missing-selector! PKPaymentRequest::setCouponCode: not bound -!missing-selector! PKPaymentRequest::setShippingContactEditingMode: not bound -!missing-selector! PKPaymentRequest::setSupportsCouponCode: not bound -!missing-selector! PKPaymentRequest::shippingContactEditingMode not bound -!missing-selector! PKPaymentRequest::supportsCouponCode not bound -!missing-selector! PKPaymentRequestCouponCodeUpdate::errors not bound -!missing-selector! PKPaymentRequestCouponCodeUpdate::initWithErrors:paymentSummaryItems:shippingMethods: not bound -!missing-selector! PKPaymentRequestCouponCodeUpdate::setErrors: not bound -!missing-selector! PKPaymentRequestUpdate::setShippingMethods: not bound -!missing-selector! PKPaymentRequestUpdate::shippingMethods not bound -!missing-selector! PKRecurringPaymentSummaryItem::endDate not bound -!missing-selector! PKRecurringPaymentSummaryItem::intervalCount not bound -!missing-selector! PKRecurringPaymentSummaryItem::intervalUnit not bound -!missing-selector! PKRecurringPaymentSummaryItem::setEndDate: not bound -!missing-selector! PKRecurringPaymentSummaryItem::setIntervalCount: not bound -!missing-selector! PKRecurringPaymentSummaryItem::setIntervalUnit: not bound -!missing-selector! PKRecurringPaymentSummaryItem::setStartDate: not bound -!missing-selector! PKRecurringPaymentSummaryItem::startDate not bound -!missing-selector! PKShareablePassMetadata::accountHash not bound -!missing-selector! PKShareablePassMetadata::relyingPartyIdentifier not bound -!missing-selector! PKShareablePassMetadata::templateIdentifier not bound -!missing-selector! PKShippingMethod::dateComponentsRange not bound -!missing-selector! PKShippingMethod::setDateComponentsRange: not bound -!missing-selector! PKStoredValuePassBalance::amount not bound -!missing-selector! PKStoredValuePassBalance::balanceType not bound -!missing-selector! PKStoredValuePassBalance::currencyCode not bound -!missing-selector! PKStoredValuePassBalance::expiryDate not bound -!missing-selector! PKStoredValuePassBalance::isEqualToBalance: not bound -!missing-selector! PKStoredValuePassProperties::balances not bound -!missing-selector! PKStoredValuePassProperties::expirationDate not bound -!missing-selector! PKStoredValuePassProperties::isBlacklisted not bound -!missing-selector! PKStoredValuePassProperties::isBlocked not bound -!missing-type! PKDateComponentsRange not bound -!missing-type! PKDeferredPaymentSummaryItem not bound -!missing-type! PKPaymentRequestCouponCodeUpdate not bound -!missing-type! PKRecurringPaymentSummaryItem not bound -!missing-type! PKStoredValuePassBalance not bound -!missing-type! PKStoredValuePassProperties not bound -!wrong-base-type! PKTransitPassProperties expected PKStoredValuePassProperties actual NSObject -!missing-selector! PKShareablePassMetadata::initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:passThumbnailImage:ownerDisplayName:localizedDescription:accountHash:templateIdentifier:relyingPartyIdentifier:requiresUnifiedAccessCapableDevice: not bound -!missing-selector! PKShareablePassMetadata::requiresUnifiedAccessCapableDevice not bound diff --git a/tests/xtro-sharpie/common-PassKit.ignore b/tests/xtro-sharpie/common-PassKit.ignore index 2761392625bf..50728cbe41b4 100644 --- a/tests/xtro-sharpie/common-PassKit.ignore +++ b/tests/xtro-sharpie/common-PassKit.ignore @@ -28,3 +28,6 @@ !missing-null-allowed! 'System.Void PassKit.PKPaymentAuthorizationResult::set_Errors(Foundation.NSError[])' is missing an [NullAllowed] on parameter #0 !missing-null-allowed! 'System.Void PassKit.PKPaymentRequestPaymentMethodUpdate::set_Errors(Foundation.NSError[])' is missing an [NullAllowed] on parameter #0 !missing-null-allowed! 'System.Void PassKit.PKPaymentRequestShippingContactUpdate::set_Errors(Foundation.NSError[])' is missing an [NullAllowed] on parameter #0 + +# deprecated and not used in any version of any OS +!missing-selector! PKStoredValuePassProperties::isBlacklisted not bound diff --git a/tests/xtro-sharpie/iOS-PassKit.todo b/tests/xtro-sharpie/iOS-PassKit.todo deleted file mode 100644 index 9fedfb4a0a88..000000000000 --- a/tests/xtro-sharpie/iOS-PassKit.todo +++ /dev/null @@ -1,62 +0,0 @@ -!deprecated-attribute-missing! PKTransitPassProperties::transitBalance missing a [Deprecated] attribute -!deprecated-attribute-missing! PKTransitPassProperties::transitBalanceCurrencyCode missing a [Deprecated] attribute -!missing-enum! PKShippingContactEditingMode not bound -!missing-enum-value! PKPaymentButtonType native value PKPaymentButtonTypeContinue = 16 not bound -!missing-enum-value! PKPaymentErrorCode native value PKPaymentCouponCodeExpiredError = 5 not bound -!missing-enum-value! PKPaymentErrorCode native value PKPaymentCouponCodeInvalidError = 4 not bound -!missing-enum-value! PKPaymentMethodType native value PKPaymentMethodTypeEMoney = 5 not bound -!missing-field! PKStoredValuePassBalanceTypeCash not bound -!missing-field! PKStoredValuePassBalanceTypeLoyaltyPoints not bound -!missing-protocol-member! PKPaymentAuthorizationControllerDelegate::paymentAuthorizationController:didChangeCouponCode:handler: not found -!missing-protocol-member! PKPaymentAuthorizationViewControllerDelegate::paymentAuthorizationViewController:didChangeCouponCode:handler: not found -!missing-selector! +PKPaymentRequest::paymentCouponCodeExpiredErrorWithLocalizedDescription: not bound -!missing-selector! +PKPaymentRequest::paymentCouponCodeInvalidErrorWithLocalizedDescription: not bound -!missing-selector! +PKStoredValuePassProperties::passPropertiesForPass: not bound -!missing-selector! PKDateComponentsRange::endDateComponents not bound -!missing-selector! PKDateComponentsRange::initWithStartDateComponents:endDateComponents: not bound -!missing-selector! PKDateComponentsRange::startDateComponents not bound -!missing-selector! PKDeferredPaymentSummaryItem::deferredDate not bound -!missing-selector! PKDeferredPaymentSummaryItem::setDeferredDate: not bound -!missing-selector! PKPassLibrary::serviceProviderDataForSecureElementPass:completion: not bound -!missing-selector! PKPaymentRequest::couponCode not bound -!missing-selector! PKPaymentRequest::setCouponCode: not bound -!missing-selector! PKPaymentRequest::setShippingContactEditingMode: not bound -!missing-selector! PKPaymentRequest::setSupportsCouponCode: not bound -!missing-selector! PKPaymentRequest::shippingContactEditingMode not bound -!missing-selector! PKPaymentRequest::supportsCouponCode not bound -!missing-selector! PKPaymentRequestCouponCodeUpdate::errors not bound -!missing-selector! PKPaymentRequestCouponCodeUpdate::initWithErrors:paymentSummaryItems:shippingMethods: not bound -!missing-selector! PKPaymentRequestCouponCodeUpdate::setErrors: not bound -!missing-selector! PKPaymentRequestUpdate::setShippingMethods: not bound -!missing-selector! PKPaymentRequestUpdate::shippingMethods not bound -!missing-selector! PKRecurringPaymentSummaryItem::endDate not bound -!missing-selector! PKRecurringPaymentSummaryItem::intervalCount not bound -!missing-selector! PKRecurringPaymentSummaryItem::intervalUnit not bound -!missing-selector! PKRecurringPaymentSummaryItem::setEndDate: not bound -!missing-selector! PKRecurringPaymentSummaryItem::setIntervalCount: not bound -!missing-selector! PKRecurringPaymentSummaryItem::setIntervalUnit: not bound -!missing-selector! PKRecurringPaymentSummaryItem::setStartDate: not bound -!missing-selector! PKRecurringPaymentSummaryItem::startDate not bound -!missing-selector! PKShareablePassMetadata::accountHash not bound -!missing-selector! PKShareablePassMetadata::relyingPartyIdentifier not bound -!missing-selector! PKShareablePassMetadata::templateIdentifier not bound -!missing-selector! PKShippingMethod::dateComponentsRange not bound -!missing-selector! PKShippingMethod::setDateComponentsRange: not bound -!missing-selector! PKStoredValuePassBalance::amount not bound -!missing-selector! PKStoredValuePassBalance::balanceType not bound -!missing-selector! PKStoredValuePassBalance::currencyCode not bound -!missing-selector! PKStoredValuePassBalance::expiryDate not bound -!missing-selector! PKStoredValuePassBalance::isEqualToBalance: not bound -!missing-selector! PKStoredValuePassProperties::balances not bound -!missing-selector! PKStoredValuePassProperties::expirationDate not bound -!missing-selector! PKStoredValuePassProperties::isBlacklisted not bound -!missing-selector! PKStoredValuePassProperties::isBlocked not bound -!missing-type! PKDateComponentsRange not bound -!missing-type! PKDeferredPaymentSummaryItem not bound -!missing-type! PKPaymentRequestCouponCodeUpdate not bound -!missing-type! PKRecurringPaymentSummaryItem not bound -!missing-type! PKStoredValuePassBalance not bound -!missing-type! PKStoredValuePassProperties not bound -!wrong-base-type! PKTransitPassProperties expected PKStoredValuePassProperties actual NSObject -!missing-selector! PKShareablePassMetadata::initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:passThumbnailImage:ownerDisplayName:localizedDescription:accountHash:templateIdentifier:relyingPartyIdentifier:requiresUnifiedAccessCapableDevice: not bound -!missing-selector! PKShareablePassMetadata::requiresUnifiedAccessCapableDevice not bound diff --git a/tests/xtro-sharpie/macOS-PassKit.todo b/tests/xtro-sharpie/macOS-PassKit.todo deleted file mode 100644 index e0cc88f02391..000000000000 --- a/tests/xtro-sharpie/macOS-PassKit.todo +++ /dev/null @@ -1,60 +0,0 @@ -!missing-enum! PKShippingContactEditingMode not bound -!missing-enum-value! PKPaymentButtonType native value PKPaymentButtonTypeContinue = 16 not bound -!missing-enum-value! PKPaymentErrorCode native value PKPaymentCouponCodeExpiredError = 5 not bound -!missing-enum-value! PKPaymentErrorCode native value PKPaymentCouponCodeInvalidError = 4 not bound -!missing-enum-value! PKPaymentMethodType native value PKPaymentMethodTypeEMoney = 5 not bound -!missing-field! PKStoredValuePassBalanceTypeCash not bound -!missing-field! PKStoredValuePassBalanceTypeLoyaltyPoints not bound -!missing-protocol-member! PKPaymentAuthorizationControllerDelegate::paymentAuthorizationController:didChangeCouponCode:handler: not found -!missing-protocol-member! PKPaymentAuthorizationViewControllerDelegate::paymentAuthorizationViewController:didChangeCouponCode:handler: not found -!missing-selector! +PKPaymentRequest::paymentCouponCodeExpiredErrorWithLocalizedDescription: not bound -!missing-selector! +PKPaymentRequest::paymentCouponCodeInvalidErrorWithLocalizedDescription: not bound -!missing-selector! +PKStoredValuePassProperties::passPropertiesForPass: not bound -!missing-selector! PKDateComponentsRange::endDateComponents not bound -!missing-selector! PKDateComponentsRange::initWithStartDateComponents:endDateComponents: not bound -!missing-selector! PKDateComponentsRange::startDateComponents not bound -!missing-selector! PKDeferredPaymentSummaryItem::deferredDate not bound -!missing-selector! PKDeferredPaymentSummaryItem::setDeferredDate: not bound -!missing-selector! PKPassLibrary::serviceProviderDataForSecureElementPass:completion: not bound -!missing-selector! PKPaymentRequest::couponCode not bound -!missing-selector! PKPaymentRequest::setCouponCode: not bound -!missing-selector! PKPaymentRequest::setShippingContactEditingMode: not bound -!missing-selector! PKPaymentRequest::setSupportsCouponCode: not bound -!missing-selector! PKPaymentRequest::shippingContactEditingMode not bound -!missing-selector! PKPaymentRequest::supportsCouponCode not bound -!missing-selector! PKPaymentRequestCouponCodeUpdate::errors not bound -!missing-selector! PKPaymentRequestCouponCodeUpdate::initWithErrors:paymentSummaryItems:shippingMethods: not bound -!missing-selector! PKPaymentRequestCouponCodeUpdate::setErrors: not bound -!missing-selector! PKPaymentRequestUpdate::setShippingMethods: not bound -!missing-selector! PKPaymentRequestUpdate::shippingMethods not bound -!missing-selector! PKRecurringPaymentSummaryItem::endDate not bound -!missing-selector! PKRecurringPaymentSummaryItem::intervalCount not bound -!missing-selector! PKRecurringPaymentSummaryItem::intervalUnit not bound -!missing-selector! PKRecurringPaymentSummaryItem::setEndDate: not bound -!missing-selector! PKRecurringPaymentSummaryItem::setIntervalCount: not bound -!missing-selector! PKRecurringPaymentSummaryItem::setIntervalUnit: not bound -!missing-selector! PKRecurringPaymentSummaryItem::setStartDate: not bound -!missing-selector! PKRecurringPaymentSummaryItem::startDate not bound -!missing-selector! PKShareablePassMetadata::accountHash not bound -!missing-selector! PKShareablePassMetadata::relyingPartyIdentifier not bound -!missing-selector! PKShareablePassMetadata::templateIdentifier not bound -!missing-selector! PKShippingMethod::dateComponentsRange not bound -!missing-selector! PKShippingMethod::setDateComponentsRange: not bound -!missing-selector! PKStoredValuePassBalance::amount not bound -!missing-selector! PKStoredValuePassBalance::balanceType not bound -!missing-selector! PKStoredValuePassBalance::currencyCode not bound -!missing-selector! PKStoredValuePassBalance::expiryDate not bound -!missing-selector! PKStoredValuePassBalance::isEqualToBalance: not bound -!missing-selector! PKStoredValuePassProperties::balances not bound -!missing-selector! PKStoredValuePassProperties::expirationDate not bound -!missing-selector! PKStoredValuePassProperties::isBlacklisted not bound -!missing-selector! PKStoredValuePassProperties::isBlocked not bound -!missing-type! PKDateComponentsRange not bound -!missing-type! PKDeferredPaymentSummaryItem not bound -!missing-type! PKPaymentRequestCouponCodeUpdate not bound -!missing-type! PKRecurringPaymentSummaryItem not bound -!missing-type! PKStoredValuePassBalance not bound -!missing-type! PKStoredValuePassProperties not bound -!wrong-base-type! PKTransitPassProperties expected PKStoredValuePassProperties actual NSObject -!missing-selector! PKShareablePassMetadata::initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:passThumbnailImage:ownerDisplayName:localizedDescription:accountHash:templateIdentifier:relyingPartyIdentifier:requiresUnifiedAccessCapableDevice: not bound -!missing-selector! PKShareablePassMetadata::requiresUnifiedAccessCapableDevice not bound diff --git a/tests/xtro-sharpie/watchOS-PassKit.todo b/tests/xtro-sharpie/watchOS-PassKit.todo deleted file mode 100644 index a7e9675d5545..000000000000 --- a/tests/xtro-sharpie/watchOS-PassKit.todo +++ /dev/null @@ -1,44 +0,0 @@ -!deprecated-attribute-missing! PKTransitPassProperties::transitBalance missing a [Deprecated] attribute -!deprecated-attribute-missing! PKTransitPassProperties::transitBalanceCurrencyCode missing a [Deprecated] attribute -!missing-enum! PKShippingContactEditingMode not bound -!missing-enum-value! PKPaymentErrorCode native value PKPaymentCouponCodeExpiredError = 5 not bound -!missing-enum-value! PKPaymentErrorCode native value PKPaymentCouponCodeInvalidError = 4 not bound -!missing-enum-value! PKPaymentMethodType native value PKPaymentMethodTypeEMoney = 5 not bound -!missing-field! PKStoredValuePassBalanceTypeCash not bound -!missing-field! PKStoredValuePassBalanceTypeLoyaltyPoints not bound -!missing-selector! +PKStoredValuePassProperties::passPropertiesForPass: not bound -!missing-selector! PKDateComponentsRange::endDateComponents not bound -!missing-selector! PKDateComponentsRange::initWithStartDateComponents:endDateComponents: not bound -!missing-selector! PKDateComponentsRange::startDateComponents not bound -!missing-selector! PKDeferredPaymentSummaryItem::deferredDate not bound -!missing-selector! PKDeferredPaymentSummaryItem::setDeferredDate: not bound -!missing-selector! PKPassLibrary::serviceProviderDataForSecureElementPass:completion: not bound -!missing-selector! PKPaymentRequest::setShippingContactEditingMode: not bound -!missing-selector! PKPaymentRequest::shippingContactEditingMode not bound -!missing-selector! PKPaymentRequestUpdate::setShippingMethods: not bound -!missing-selector! PKPaymentRequestUpdate::shippingMethods not bound -!missing-selector! PKRecurringPaymentSummaryItem::endDate not bound -!missing-selector! PKRecurringPaymentSummaryItem::intervalCount not bound -!missing-selector! PKRecurringPaymentSummaryItem::intervalUnit not bound -!missing-selector! PKRecurringPaymentSummaryItem::setEndDate: not bound -!missing-selector! PKRecurringPaymentSummaryItem::setIntervalCount: not bound -!missing-selector! PKRecurringPaymentSummaryItem::setIntervalUnit: not bound -!missing-selector! PKRecurringPaymentSummaryItem::setStartDate: not bound -!missing-selector! PKRecurringPaymentSummaryItem::startDate not bound -!missing-selector! PKShippingMethod::dateComponentsRange not bound -!missing-selector! PKShippingMethod::setDateComponentsRange: not bound -!missing-selector! PKStoredValuePassBalance::amount not bound -!missing-selector! PKStoredValuePassBalance::balanceType not bound -!missing-selector! PKStoredValuePassBalance::currencyCode not bound -!missing-selector! PKStoredValuePassBalance::expiryDate not bound -!missing-selector! PKStoredValuePassBalance::isEqualToBalance: not bound -!missing-selector! PKStoredValuePassProperties::balances not bound -!missing-selector! PKStoredValuePassProperties::expirationDate not bound -!missing-selector! PKStoredValuePassProperties::isBlacklisted not bound -!missing-selector! PKStoredValuePassProperties::isBlocked not bound -!missing-type! PKDateComponentsRange not bound -!missing-type! PKDeferredPaymentSummaryItem not bound -!missing-type! PKRecurringPaymentSummaryItem not bound -!missing-type! PKStoredValuePassBalance not bound -!missing-type! PKStoredValuePassProperties not bound -!wrong-base-type! PKTransitPassProperties expected PKStoredValuePassProperties actual NSObject