Skip to content

Commit

Permalink
Merge branch 'Xcode15-PassKit-Beta7' of github.com:tj-devel709/xamari…
Browse files Browse the repository at this point in the history
…n-macios into Xcode15-PassKit-Beta7
  • Loading branch information
tj_devel709 committed Oct 12, 2023
2 parents d55febc + 89da9f4 commit eaf992b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
22 changes: 11 additions & 11 deletions src/passkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1640,48 +1640,48 @@ interface PKDisbursementRequest {
#endif
PKPaymentSummaryItem [] SummaryItems { get; set; }

[iOS (17,0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[iOS (17, 0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[Export ("merchantIdentifier")]
string MerchantIdentifier { get; set; }

[iOS (17,0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[iOS (17, 0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[Export ("regionCode")]
string RegionCode { get; set; }

[iOS (17,0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[iOS (17, 0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[Export ("supportedNetworks", ArgumentSemantic.Copy)]
string [] SupportedNetworks { get; set; }

[iOS (17,0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[iOS (17, 0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[Export ("merchantCapabilities", ArgumentSemantic.Assign)]
PKMerchantCapability MerchantCapabilities { get; set; }

[iOS (17,0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[iOS (17, 0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[Export ("requiredRecipientContactFields", ArgumentSemantic.Strong)]
string [] RequiredRecipientContactFields { get; set; }

[iOS (17,0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[iOS (17, 0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[NullAllowed, Export ("recipientContact", ArgumentSemantic.Strong)]
PKContact RecipientContact { get; set; }

[iOS (17,0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[iOS (17, 0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[NullAllowed, Export ("supportedRegions", ArgumentSemantic.Copy)]
string [] SupportedRegions { get; set; }

[iOS (17,0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[iOS (17, 0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[NullAllowed, Export ("applicationData", ArgumentSemantic.Copy)]
NSData ApplicationData { get; set; }

[iOS (17,0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[iOS (17, 0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[Export ("initWithMerchantIdentifier:currencyCode:regionCode:supportedNetworks:merchantCapabilities:summaryItems:")]
NativeHandle Constructor (string merchantIdentifier, string currencyCode, string regionCode, string [] supportedNetworks, PKMerchantCapability merchantCapabilities, PKPaymentSummaryItem [] summaryItems);

[iOS (17,0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[iOS (17, 0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[Static]
[Export ("disbursementContactInvalidErrorWithContactField:localizedDescription:")]
NSError GetDisbursementContactInvalidError (string field, [NullAllowed] string localizedDescription);

[iOS (17,0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[iOS (17, 0), NoMac, NoWatch, NoTV, NoMacCatalyst]
[Static]
[Export ("disbursementCardUnsupportedError")]
NSError DisbursementCardUnsupportedError { get; }
Expand Down
10 changes: 5 additions & 5 deletions tests/monotouch-test/PassKit/PKPayLaterViewTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ public void ValidateAmountTest ()
{
TestRuntime.AssertXcodeVersion (15, 0);

var payLaterView = new PKPayLaterView (new NSDecimalNumber(50), "USD");
payLaterView.ValidateAmount (new NSDecimalNumber(50), "USD", (eligible) => {
var payLaterView = new PKPayLaterView (new NSDecimalNumber (50), "USD");
payLaterView.ValidateAmount (new NSDecimalNumber (50), "USD", (eligible) => {
Assert.True (eligible);
});

payLaterView.ValidateAmount (new NSDecimalNumber(1), "USD", (eligible) => {
payLaterView.ValidateAmount (new NSDecimalNumber (1), "USD", (eligible) => {
Assert.False (eligible);
});

payLaterView.ValidateAmount (new NSDecimalNumber(1000000), "USD", (eligible) => {
payLaterView.ValidateAmount (new NSDecimalNumber (1000000), "USD", (eligible) => {
Assert.False (eligible);
});

payLaterView.ValidateAmount (new NSDecimalNumber(50), "USD", (eligible) => {
payLaterView.ValidateAmount (new NSDecimalNumber (50), "USD", (eligible) => {
Assert.True (eligible);
});
}
Expand Down

0 comments on commit eaf992b

Please sign in to comment.