objc2_pass_kit/generated/
PKDeferredPaymentRequest.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct PKDeferredPaymentRequest;
15);
16
17extern_conformance!(
18 unsafe impl NSObjectProtocol for PKDeferredPaymentRequest {}
19);
20
21impl PKDeferredPaymentRequest {
22 extern_methods!(
23 #[unsafe(method(paymentDescription))]
24 #[unsafe(method_family = none)]
25 pub unsafe fn paymentDescription(&self) -> Retained<NSString>;
26
27 #[unsafe(method(setPaymentDescription:))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn setPaymentDescription(&self, payment_description: &NSString);
33
34 #[cfg(all(
35 feature = "PKDeferredPaymentSummaryItem",
36 feature = "PKPaymentSummaryItem"
37 ))]
38 #[unsafe(method(deferredBilling))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn deferredBilling(&self) -> Retained<PKDeferredPaymentSummaryItem>;
41
42 #[cfg(all(
43 feature = "PKDeferredPaymentSummaryItem",
44 feature = "PKPaymentSummaryItem"
45 ))]
46 #[unsafe(method(setDeferredBilling:))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn setDeferredBilling(&self, deferred_billing: &PKDeferredPaymentSummaryItem);
50
51 #[unsafe(method(billingAgreement))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn billingAgreement(&self) -> Option<Retained<NSString>>;
54
55 #[unsafe(method(setBillingAgreement:))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn setBillingAgreement(&self, billing_agreement: Option<&NSString>);
61
62 #[unsafe(method(managementURL))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn managementURL(&self) -> Retained<NSURL>;
65
66 #[unsafe(method(setManagementURL:))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn setManagementURL(&self, management_url: &NSURL);
70
71 #[unsafe(method(tokenNotificationURL))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn tokenNotificationURL(&self) -> Option<Retained<NSURL>>;
74
75 #[unsafe(method(setTokenNotificationURL:))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn setTokenNotificationURL(&self, token_notification_url: Option<&NSURL>);
79
80 #[unsafe(method(freeCancellationDate))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn freeCancellationDate(&self) -> Option<Retained<NSDate>>;
83
84 #[unsafe(method(setFreeCancellationDate:))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn setFreeCancellationDate(&self, free_cancellation_date: Option<&NSDate>);
88
89 #[unsafe(method(freeCancellationDateTimeZone))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn freeCancellationDateTimeZone(&self) -> Option<Retained<NSTimeZone>>;
92
93 #[unsafe(method(setFreeCancellationDateTimeZone:))]
95 #[unsafe(method_family = none)]
96 pub unsafe fn setFreeCancellationDateTimeZone(
97 &self,
98 free_cancellation_date_time_zone: Option<&NSTimeZone>,
99 );
100
101 #[unsafe(method(init))]
102 #[unsafe(method_family = init)]
103 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
104
105 #[cfg(all(
106 feature = "PKDeferredPaymentSummaryItem",
107 feature = "PKPaymentSummaryItem"
108 ))]
109 #[unsafe(method(initWithPaymentDescription:deferredBilling:managementURL:))]
110 #[unsafe(method_family = init)]
111 pub unsafe fn initWithPaymentDescription_deferredBilling_managementURL(
112 this: Allocated<Self>,
113 payment_description: &NSString,
114 deferred_billing: &PKDeferredPaymentSummaryItem,
115 management_url: &NSURL,
116 ) -> Retained<Self>;
117 );
118}
119
120impl PKDeferredPaymentRequest {
122 extern_methods!(
123 #[unsafe(method(new))]
124 #[unsafe(method_family = new)]
125 pub unsafe fn new() -> Retained<Self>;
126 );
127}