use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
#[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct INTransferMoneyIntentResponseCode(pub NSInteger);
impl INTransferMoneyIntentResponseCode {
#[doc(alias = "INTransferMoneyIntentResponseCodeUnspecified")]
#[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
pub const Unspecified: Self = Self(0);
#[doc(alias = "INTransferMoneyIntentResponseCodeReady")]
#[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
pub const Ready: Self = Self(1);
#[doc(alias = "INTransferMoneyIntentResponseCodeInProgress")]
#[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
pub const InProgress: Self = Self(2);
#[doc(alias = "INTransferMoneyIntentResponseCodeSuccess")]
#[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
pub const Success: Self = Self(3);
#[doc(alias = "INTransferMoneyIntentResponseCodeFailure")]
#[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
pub const Failure: Self = Self(4);
#[doc(alias = "INTransferMoneyIntentResponseCodeFailureRequiringAppLaunch")]
#[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
pub const FailureRequiringAppLaunch: Self = Self(5);
#[doc(alias = "INTransferMoneyIntentResponseCodeFailureCredentialsUnverified")]
#[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
pub const FailureCredentialsUnverified: Self = Self(6);
#[doc(alias = "INTransferMoneyIntentResponseCodeFailureInsufficientFunds")]
#[deprecated = "INTransferMoneyIntentResponseCode is deprecated. There is no replacement."]
pub const FailureInsufficientFunds: Self = Self(7);
}
unsafe impl Encode for INTransferMoneyIntentResponseCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for INTransferMoneyIntentResponseCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[unsafe(super(INIntentResponse, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntentResponse")]
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
pub struct INTransferMoneyIntentResponse;
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCoding for INTransferMoneyIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCopying for INTransferMoneyIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
unsafe impl CopyingHelper for INTransferMoneyIntentResponse {
type Result = Self;
}
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSObjectProtocol for INTransferMoneyIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSSecureCoding for INTransferMoneyIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
impl INTransferMoneyIntentResponse {
extern_methods!(
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(initWithCode:userActivity:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCode_userActivity(
this: Allocated<Self>,
code: INTransferMoneyIntentResponseCode,
user_activity: Option<&NSUserActivity>,
) -> Retained<Self>;
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(code))]
#[unsafe(method_family = none)]
pub unsafe fn code(&self) -> INTransferMoneyIntentResponseCode;
#[cfg(feature = "INPaymentAccount")]
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(fromAccount))]
#[unsafe(method_family = none)]
pub unsafe fn fromAccount(&self) -> Option<Retained<INPaymentAccount>>;
#[cfg(feature = "INPaymentAccount")]
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(setFromAccount:))]
#[unsafe(method_family = none)]
pub unsafe fn setFromAccount(&self, from_account: Option<&INPaymentAccount>);
#[cfg(feature = "INPaymentAccount")]
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(toAccount))]
#[unsafe(method_family = none)]
pub unsafe fn toAccount(&self) -> Option<Retained<INPaymentAccount>>;
#[cfg(feature = "INPaymentAccount")]
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(setToAccount:))]
#[unsafe(method_family = none)]
pub unsafe fn setToAccount(&self, to_account: Option<&INPaymentAccount>);
#[cfg(feature = "INPaymentAmount")]
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(transactionAmount))]
#[unsafe(method_family = none)]
pub unsafe fn transactionAmount(&self) -> Option<Retained<INPaymentAmount>>;
#[cfg(feature = "INPaymentAmount")]
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(setTransactionAmount:))]
#[unsafe(method_family = none)]
pub unsafe fn setTransactionAmount(&self, transaction_amount: Option<&INPaymentAmount>);
#[cfg(feature = "INDateComponentsRange")]
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(transactionScheduledDate))]
#[unsafe(method_family = none)]
pub unsafe fn transactionScheduledDate(&self) -> Option<Retained<INDateComponentsRange>>;
#[cfg(feature = "INDateComponentsRange")]
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(setTransactionScheduledDate:))]
#[unsafe(method_family = none)]
pub unsafe fn setTransactionScheduledDate(
&self,
transaction_scheduled_date: Option<&INDateComponentsRange>,
);
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(transactionNote))]
#[unsafe(method_family = none)]
pub unsafe fn transactionNote(&self) -> Option<Retained<NSString>>;
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(setTransactionNote:))]
#[unsafe(method_family = none)]
pub unsafe fn setTransactionNote(&self, transaction_note: Option<&NSString>);
#[cfg(feature = "INCurrencyAmount")]
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(transferFee))]
#[unsafe(method_family = none)]
pub unsafe fn transferFee(&self) -> Option<Retained<INCurrencyAmount>>;
#[cfg(feature = "INCurrencyAmount")]
#[deprecated = "INTransferMoneyIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(setTransferFee:))]
#[unsafe(method_family = none)]
pub unsafe fn setTransferFee(&self, transfer_fee: Option<&INCurrencyAmount>);
);
}
#[cfg(feature = "INIntentResponse")]
impl INTransferMoneyIntentResponse {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}