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        ///
29        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
30        #[unsafe(method(setPaymentDescription:))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn setPaymentDescription(&self, payment_description: &NSString);
33
34        #[cfg(all(
35            feature = "PKPaymentSummaryItem",
36            feature = "PKRecurringPaymentSummaryItem"
37        ))]
38        #[unsafe(method(regularBilling))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn regularBilling(&self) -> Retained<PKRecurringPaymentSummaryItem>;
41
42        #[cfg(all(
43            feature = "PKPaymentSummaryItem",
44            feature = "PKRecurringPaymentSummaryItem"
45        ))]
46        /// Setter for [`regularBilling`][Self::regularBilling].
47        #[unsafe(method(setRegularBilling:))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn setRegularBilling(&self, regular_billing: &PKRecurringPaymentSummaryItem);
50
51        #[cfg(all(
52            feature = "PKPaymentSummaryItem",
53            feature = "PKRecurringPaymentSummaryItem"
54        ))]
55        #[unsafe(method(trialBilling))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn trialBilling(&self) -> Option<Retained<PKRecurringPaymentSummaryItem>>;
58
59        #[cfg(all(
60            feature = "PKPaymentSummaryItem",
61            feature = "PKRecurringPaymentSummaryItem"
62        ))]
63        /// Setter for [`trialBilling`][Self::trialBilling].
64        #[unsafe(method(setTrialBilling:))]
65        #[unsafe(method_family = none)]
66        pub unsafe fn setTrialBilling(&self, trial_billing: Option<&PKRecurringPaymentSummaryItem>);
67
68        #[unsafe(method(billingAgreement))]
69        #[unsafe(method_family = none)]
70        pub unsafe fn billingAgreement(&self) -> Option<Retained<NSString>>;
71
72        /// Setter for [`billingAgreement`][Self::billingAgreement].
73        ///
74        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
75        #[unsafe(method(setBillingAgreement:))]
76        #[unsafe(method_family = none)]
77        pub unsafe fn setBillingAgreement(&self, billing_agreement: Option<&NSString>);
78
79        #[unsafe(method(managementURL))]
80        #[unsafe(method_family = none)]
81        pub unsafe fn managementURL(&self) -> Retained<NSURL>;
82
83        /// Setter for [`managementURL`][Self::managementURL].
84        #[unsafe(method(setManagementURL:))]
85        #[unsafe(method_family = none)]
86        pub unsafe fn setManagementURL(&self, management_url: &NSURL);
87
88        #[unsafe(method(tokenNotificationURL))]
89        #[unsafe(method_family = none)]
90        pub unsafe fn tokenNotificationURL(&self) -> Option<Retained<NSURL>>;
91
92        /// Setter for [`tokenNotificationURL`][Self::tokenNotificationURL].
93        #[unsafe(method(setTokenNotificationURL:))]
94        #[unsafe(method_family = none)]
95        pub unsafe fn setTokenNotificationURL(&self, token_notification_url: Option<&NSURL>);
96
97        #[unsafe(method(init))]
98        #[unsafe(method_family = init)]
99        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
100
101        #[cfg(all(
102            feature = "PKPaymentSummaryItem",
103            feature = "PKRecurringPaymentSummaryItem"
104        ))]
105        #[unsafe(method(initWithPaymentDescription:regularBilling:managementURL:))]
106        #[unsafe(method_family = init)]
107        pub unsafe fn initWithPaymentDescription_regularBilling_managementURL(
108            this: Allocated<Self>,
109            payment_description: &NSString,
110            regular_billing: &PKRecurringPaymentSummaryItem,
111            management_url: &NSURL,
112        ) -> Retained<Self>;
113    );
114}
115
116/// Methods declared on superclass `NSObject`.
117impl PKRecurringPaymentRequest {
118    extern_methods!(
119        #[unsafe(method(new))]
120        #[unsafe(method_family = new)]
121        pub unsafe fn new() -> Retained<Self>;
122    );
123}