objc2_intents/generated/
INTransferMoneyIntentResponse.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
10/// [Apple's documentation](https://developer.apple.com/documentation/intents/intransfermoneyintentresponsecode?language=objc)
11// NS_ENUM
12#[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
13#[repr(transparent)]
14#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
15pub struct INTransferMoneyIntentResponseCode(pub NSInteger);
16impl INTransferMoneyIntentResponseCode {
17    #[doc(alias = "INTransferMoneyIntentResponseCodeUnspecified")]
18    #[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
19    pub const Unspecified: Self = Self(0);
20    #[doc(alias = "INTransferMoneyIntentResponseCodeReady")]
21    #[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
22    pub const Ready: Self = Self(1);
23    #[doc(alias = "INTransferMoneyIntentResponseCodeInProgress")]
24    #[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
25    pub const InProgress: Self = Self(2);
26    #[doc(alias = "INTransferMoneyIntentResponseCodeSuccess")]
27    #[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
28    pub const Success: Self = Self(3);
29    #[doc(alias = "INTransferMoneyIntentResponseCodeFailure")]
30    #[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
31    pub const Failure: Self = Self(4);
32    #[doc(alias = "INTransferMoneyIntentResponseCodeFailureRequiringAppLaunch")]
33    #[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
34    pub const FailureRequiringAppLaunch: Self = Self(5);
35    #[doc(alias = "INTransferMoneyIntentResponseCodeFailureCredentialsUnverified")]
36    #[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
37    pub const FailureCredentialsUnverified: Self = Self(6);
38    #[doc(alias = "INTransferMoneyIntentResponseCodeFailureInsufficientFunds")]
39    #[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
40    pub const FailureInsufficientFunds: Self = Self(7);
41}
42
43unsafe impl Encode for INTransferMoneyIntentResponseCode {
44    const ENCODING: Encoding = NSInteger::ENCODING;
45}
46
47unsafe impl RefEncode for INTransferMoneyIntentResponseCode {
48    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
49}
50
51extern_class!(
52    /// [Apple's documentation](https://developer.apple.com/documentation/intents/intransfermoneyintentresponse?language=objc)
53    #[unsafe(super(INIntentResponse, NSObject))]
54    #[derive(Debug, PartialEq, Eq, Hash)]
55    #[cfg(feature = "INIntentResponse")]
56    #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
57    pub struct INTransferMoneyIntentResponse;
58);
59
60#[cfg(feature = "INIntentResponse")]
61extern_conformance!(
62    unsafe impl NSCoding for INTransferMoneyIntentResponse {}
63);
64
65#[cfg(feature = "INIntentResponse")]
66extern_conformance!(
67    unsafe impl NSCopying for INTransferMoneyIntentResponse {}
68);
69
70#[cfg(feature = "INIntentResponse")]
71unsafe impl CopyingHelper for INTransferMoneyIntentResponse {
72    type Result = Self;
73}
74
75#[cfg(feature = "INIntentResponse")]
76extern_conformance!(
77    unsafe impl NSObjectProtocol for INTransferMoneyIntentResponse {}
78);
79
80#[cfg(feature = "INIntentResponse")]
81extern_conformance!(
82    unsafe impl NSSecureCoding for INTransferMoneyIntentResponse {}
83);
84
85#[cfg(feature = "INIntentResponse")]
86impl INTransferMoneyIntentResponse {
87    extern_methods!(
88        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
89        #[unsafe(method(init))]
90        #[unsafe(method_family = init)]
91        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
92
93        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
94        #[unsafe(method(initWithCode:userActivity:))]
95        #[unsafe(method_family = init)]
96        pub unsafe fn initWithCode_userActivity(
97            this: Allocated<Self>,
98            code: INTransferMoneyIntentResponseCode,
99            user_activity: Option<&NSUserActivity>,
100        ) -> Retained<Self>;
101
102        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
103        #[unsafe(method(code))]
104        #[unsafe(method_family = none)]
105        pub unsafe fn code(&self) -> INTransferMoneyIntentResponseCode;
106
107        #[cfg(feature = "INPaymentAccount")]
108        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
109        #[unsafe(method(fromAccount))]
110        #[unsafe(method_family = none)]
111        pub unsafe fn fromAccount(&self) -> Option<Retained<INPaymentAccount>>;
112
113        #[cfg(feature = "INPaymentAccount")]
114        /// Setter for [`fromAccount`][Self::fromAccount].
115        ///
116        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
117        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
118        #[unsafe(method(setFromAccount:))]
119        #[unsafe(method_family = none)]
120        pub unsafe fn setFromAccount(&self, from_account: Option<&INPaymentAccount>);
121
122        #[cfg(feature = "INPaymentAccount")]
123        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
124        #[unsafe(method(toAccount))]
125        #[unsafe(method_family = none)]
126        pub unsafe fn toAccount(&self) -> Option<Retained<INPaymentAccount>>;
127
128        #[cfg(feature = "INPaymentAccount")]
129        /// Setter for [`toAccount`][Self::toAccount].
130        ///
131        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
132        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
133        #[unsafe(method(setToAccount:))]
134        #[unsafe(method_family = none)]
135        pub unsafe fn setToAccount(&self, to_account: Option<&INPaymentAccount>);
136
137        #[cfg(feature = "INPaymentAmount")]
138        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
139        #[unsafe(method(transactionAmount))]
140        #[unsafe(method_family = none)]
141        pub unsafe fn transactionAmount(&self) -> Option<Retained<INPaymentAmount>>;
142
143        #[cfg(feature = "INPaymentAmount")]
144        /// Setter for [`transactionAmount`][Self::transactionAmount].
145        ///
146        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
147        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
148        #[unsafe(method(setTransactionAmount:))]
149        #[unsafe(method_family = none)]
150        pub unsafe fn setTransactionAmount(&self, transaction_amount: Option<&INPaymentAmount>);
151
152        #[cfg(feature = "INDateComponentsRange")]
153        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
154        #[unsafe(method(transactionScheduledDate))]
155        #[unsafe(method_family = none)]
156        pub unsafe fn transactionScheduledDate(&self) -> Option<Retained<INDateComponentsRange>>;
157
158        #[cfg(feature = "INDateComponentsRange")]
159        /// Setter for [`transactionScheduledDate`][Self::transactionScheduledDate].
160        ///
161        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
162        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
163        #[unsafe(method(setTransactionScheduledDate:))]
164        #[unsafe(method_family = none)]
165        pub unsafe fn setTransactionScheduledDate(
166            &self,
167            transaction_scheduled_date: Option<&INDateComponentsRange>,
168        );
169
170        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
171        #[unsafe(method(transactionNote))]
172        #[unsafe(method_family = none)]
173        pub unsafe fn transactionNote(&self) -> Option<Retained<NSString>>;
174
175        /// Setter for [`transactionNote`][Self::transactionNote].
176        ///
177        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
178        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
179        #[unsafe(method(setTransactionNote:))]
180        #[unsafe(method_family = none)]
181        pub unsafe fn setTransactionNote(&self, transaction_note: Option<&NSString>);
182
183        #[cfg(feature = "INCurrencyAmount")]
184        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
185        #[unsafe(method(transferFee))]
186        #[unsafe(method_family = none)]
187        pub unsafe fn transferFee(&self) -> Option<Retained<INCurrencyAmount>>;
188
189        #[cfg(feature = "INCurrencyAmount")]
190        /// Setter for [`transferFee`][Self::transferFee].
191        ///
192        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
193        #[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
194        #[unsafe(method(setTransferFee:))]
195        #[unsafe(method_family = none)]
196        pub unsafe fn setTransferFee(&self, transfer_fee: Option<&INCurrencyAmount>);
197    );
198}
199
200/// Methods declared on superclass `NSObject`.
201#[cfg(feature = "INIntentResponse")]
202impl INTransferMoneyIntentResponse {
203    extern_methods!(
204        #[unsafe(method(new))]
205        #[unsafe(method_family = new)]
206        pub unsafe fn new() -> Retained<Self>;
207    );
208}