objc2_pass_kit/generated/
PKRecurringPaymentRequest.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/passkit/pkrecurringpaymentrequest?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct PKRecurringPaymentRequest;
15);
16
17extern_conformance!(
18    unsafe impl NSObjectProtocol for PKRecurringPaymentRequest {}
19);
20
21impl PKRecurringPaymentRequest {
22    extern_methods!(
23        #[unsafe(method(paymentDescription))]
24        #[unsafe(method_family = none)]
25        pub unsafe fn paymentDescription(&self) -> Retained<NSString>;
26
27        /// Setter for [`paymentDescription`][Self::paymentDescription].
28        #[unsafe(method(setPaymentDescription:))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn setPaymentDescription(&self, payment_description: &NSString);
31
32        #[cfg(all(
33            feature = "PKPaymentSummaryItem",
34            feature = "PKRecurringPaymentSummaryItem"
35        ))]
36        #[unsafe(method(regularBilling))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn regularBilling(&self) -> Retained<PKRecurringPaymentSummaryItem>;
39
40        #[cfg(all(
41            feature = "PKPaymentSummaryItem",
42            feature = "PKRecurringPaymentSummaryItem"
43        ))]
44        /// Setter for [`regularBilling`][Self::regularBilling].
45        #[unsafe(method(setRegularBilling:))]
46        #[unsafe(method_family = none)]
47        pub unsafe fn setRegularBilling(&self, regular_billing: &PKRecurringPaymentSummaryItem);
48
49        #[cfg(all(
50            feature = "PKPaymentSummaryItem",
51            feature = "PKRecurringPaymentSummaryItem"
52        ))]
53        #[unsafe(method(trialBilling))]
54        #[unsafe(method_family = none)]
55        pub unsafe fn trialBilling(&self) -> Option<Retained<PKRecurringPaymentSummaryItem>>;
56
57        #[cfg(all(
58            feature = "PKPaymentSummaryItem",
59            feature = "PKRecurringPaymentSummaryItem"
60        ))]
61        /// Setter for [`trialBilling`][Self::trialBilling].
62        #[unsafe(method(setTrialBilling:))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn setTrialBilling(&self, trial_billing: Option<&PKRecurringPaymentSummaryItem>);
65
66        #[unsafe(method(billingAgreement))]
67        #[unsafe(method_family = none)]
68        pub unsafe fn billingAgreement(&self) -> Option<Retained<NSString>>;
69
70        /// Setter for [`billingAgreement`][Self::billingAgreement].
71        #[unsafe(method(setBillingAgreement:))]
72        #[unsafe(method_family = none)]
73        pub unsafe fn setBillingAgreement(&self, billing_agreement: Option<&NSString>);
74
75        #[unsafe(method(managementURL))]
76        #[unsafe(method_family = none)]
77        pub unsafe fn managementURL(&self) -> Retained<NSURL>;
78
79        /// Setter for [`managementURL`][Self::managementURL].
80        #[unsafe(method(setManagementURL:))]
81        #[unsafe(method_family = none)]
82        pub unsafe fn setManagementURL(&self, management_url: &NSURL);
83
84        #[unsafe(method(tokenNotificationURL))]
85        #[unsafe(method_family = none)]
86        pub unsafe fn tokenNotificationURL(&self) -> Option<Retained<NSURL>>;
87
88        /// Setter for [`tokenNotificationURL`][Self::tokenNotificationURL].
89        #[unsafe(method(setTokenNotificationURL:))]
90        #[unsafe(method_family = none)]
91        pub unsafe fn setTokenNotificationURL(&self, token_notification_url: Option<&NSURL>);
92
93        #[unsafe(method(init))]
94        #[unsafe(method_family = init)]
95        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
96
97        #[cfg(all(
98            feature = "PKPaymentSummaryItem",
99            feature = "PKRecurringPaymentSummaryItem"
100        ))]
101        #[unsafe(method(initWithPaymentDescription:regularBilling:managementURL:))]
102        #[unsafe(method_family = init)]
103        pub unsafe fn initWithPaymentDescription_regularBilling_managementURL(
104            this: Allocated<Self>,
105            payment_description: &NSString,
106            regular_billing: &PKRecurringPaymentSummaryItem,
107            management_url: &NSURL,
108        ) -> Retained<Self>;
109    );
110}
111
112/// Methods declared on superclass `NSObject`.
113impl PKRecurringPaymentRequest {
114    extern_methods!(
115        #[unsafe(method(new))]
116        #[unsafe(method_family = new)]
117        pub unsafe fn new() -> Retained<Self>;
118    );
119}