objc2_pass_kit/generated/
PKAutomaticReloadPaymentRequest.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 PKAutomaticReloadPaymentRequest;
15);
16
17extern_conformance!(
18 unsafe impl NSObjectProtocol for PKAutomaticReloadPaymentRequest {}
19);
20
21impl PKAutomaticReloadPaymentRequest {
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 = "PKAutomaticReloadPaymentSummaryItem",
36 feature = "PKPaymentSummaryItem"
37 ))]
38 #[unsafe(method(automaticReloadBilling))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn automaticReloadBilling(
41 &self,
42 ) -> Retained<PKAutomaticReloadPaymentSummaryItem>;
43
44 #[cfg(all(
45 feature = "PKAutomaticReloadPaymentSummaryItem",
46 feature = "PKPaymentSummaryItem"
47 ))]
48 #[unsafe(method(setAutomaticReloadBilling:))]
50 #[unsafe(method_family = none)]
51 pub unsafe fn setAutomaticReloadBilling(
52 &self,
53 automatic_reload_billing: &PKAutomaticReloadPaymentSummaryItem,
54 );
55
56 #[unsafe(method(billingAgreement))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn billingAgreement(&self) -> Option<Retained<NSString>>;
59
60 #[unsafe(method(setBillingAgreement:))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn setBillingAgreement(&self, billing_agreement: Option<&NSString>);
66
67 #[unsafe(method(managementURL))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn managementURL(&self) -> Retained<NSURL>;
70
71 #[unsafe(method(setManagementURL:))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn setManagementURL(&self, management_url: &NSURL);
75
76 #[unsafe(method(tokenNotificationURL))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn tokenNotificationURL(&self) -> Option<Retained<NSURL>>;
79
80 #[unsafe(method(setTokenNotificationURL:))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn setTokenNotificationURL(&self, token_notification_url: Option<&NSURL>);
84
85 #[unsafe(method(init))]
86 #[unsafe(method_family = init)]
87 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
88
89 #[cfg(all(
90 feature = "PKAutomaticReloadPaymentSummaryItem",
91 feature = "PKPaymentSummaryItem"
92 ))]
93 #[unsafe(method(initWithPaymentDescription:automaticReloadBilling:managementURL:))]
94 #[unsafe(method_family = init)]
95 pub unsafe fn initWithPaymentDescription_automaticReloadBilling_managementURL(
96 this: Allocated<Self>,
97 payment_description: &NSString,
98 automatic_reload_billing: &PKAutomaticReloadPaymentSummaryItem,
99 management_url: &NSURL,
100 ) -> Retained<Self>;
101 );
102}
103
104impl PKAutomaticReloadPaymentRequest {
106 extern_methods!(
107 #[unsafe(method(new))]
108 #[unsafe(method_family = new)]
109 pub unsafe fn new() -> Retained<Self>;
110 );
111}