use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(INIntent, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntent")]
#[deprecated = "INTransferMoneyIntent is deprecated. There is no replacement."]
pub struct INTransferMoneyIntent;
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCoding for INTransferMoneyIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCopying for INTransferMoneyIntent {}
);
#[cfg(feature = "INIntent")]
unsafe impl CopyingHelper for INTransferMoneyIntent {
type Result = Self;
}
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSObjectProtocol for INTransferMoneyIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSSecureCoding for INTransferMoneyIntent {}
);
#[cfg(feature = "INIntent")]
impl INTransferMoneyIntent {
extern_methods!(
#[cfg(all(
feature = "INDateComponentsRange",
feature = "INPaymentAccount",
feature = "INPaymentAmount"
))]
#[deprecated = "INTransferMoneyIntent is deprecated. There is no replacement."]
#[unsafe(method(initWithFromAccount:toAccount:transactionAmount:transactionScheduledDate:transactionNote:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithFromAccount_toAccount_transactionAmount_transactionScheduledDate_transactionNote(
this: Allocated<Self>,
from_account: Option<&INPaymentAccount>,
to_account: Option<&INPaymentAccount>,
transaction_amount: Option<&INPaymentAmount>,
transaction_scheduled_date: Option<&INDateComponentsRange>,
transaction_note: Option<&NSString>,
) -> Retained<Self>;
#[cfg(feature = "INPaymentAccount")]
#[deprecated = "INTransferMoneyIntent 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 = "INTransferMoneyIntent is deprecated. There is no replacement."]
#[unsafe(method(toAccount))]
#[unsafe(method_family = none)]
pub unsafe fn toAccount(&self) -> Option<Retained<INPaymentAccount>>;
#[cfg(feature = "INPaymentAmount")]
#[deprecated = "INTransferMoneyIntent is deprecated. There is no replacement."]
#[unsafe(method(transactionAmount))]
#[unsafe(method_family = none)]
pub unsafe fn transactionAmount(&self) -> Option<Retained<INPaymentAmount>>;
#[cfg(feature = "INDateComponentsRange")]
#[deprecated = "INTransferMoneyIntent is deprecated. There is no replacement."]
#[unsafe(method(transactionScheduledDate))]
#[unsafe(method_family = none)]
pub unsafe fn transactionScheduledDate(&self) -> Option<Retained<INDateComponentsRange>>;
#[deprecated = "INTransferMoneyIntent is deprecated. There is no replacement."]
#[unsafe(method(transactionNote))]
#[unsafe(method_family = none)]
pub unsafe fn transactionNote(&self) -> Option<Retained<NSString>>;
);
}
#[cfg(feature = "INIntent")]
impl INTransferMoneyIntent {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_protocol!(
#[deprecated = "INTransferMoneyIntentHandling is deprecated. There is no replacement."]
pub unsafe trait INTransferMoneyIntentHandling: NSObjectProtocol {
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INTransferMoneyIntentResponse",
feature = "block2"
))]
#[deprecated = "INTransferMoneyIntentHandling is deprecated. There is no replacement."]
#[unsafe(method(handleTransferMoney:completion:))]
#[unsafe(method_family = none)]
unsafe fn handleTransferMoney_completion(
&self,
intent: &INTransferMoneyIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INTransferMoneyIntentResponse>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INTransferMoneyIntentResponse",
feature = "block2"
))]
#[deprecated = "INTransferMoneyIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(confirmTransferMoney:completion:))]
#[unsafe(method_family = none)]
unsafe fn confirmTransferMoney_completion(
&self,
intent: &INTransferMoneyIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INTransferMoneyIntentResponse>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INPaymentAccountResolutionResult",
feature = "block2"
))]
#[deprecated = "INTransferMoneyIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveFromAccountForTransferMoney:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveFromAccountForTransferMoney_withCompletion(
&self,
intent: &INTransferMoneyIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INPaymentAccountResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INPaymentAccountResolutionResult",
feature = "block2"
))]
#[deprecated = "INTransferMoneyIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveToAccountForTransferMoney:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveToAccountForTransferMoney_withCompletion(
&self,
intent: &INTransferMoneyIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INPaymentAccountResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INPaymentAmountResolutionResult",
feature = "block2"
))]
#[deprecated = "INTransferMoneyIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveTransactionAmountForTransferMoney:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveTransactionAmountForTransferMoney_withCompletion(
&self,
intent: &INTransferMoneyIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INPaymentAmountResolutionResult>)>,
);
#[cfg(all(
feature = "INDateComponentsRangeResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INTransferMoneyIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveTransactionScheduledDateForTransferMoney:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveTransactionScheduledDateForTransferMoney_withCompletion(
&self,
intent: &INTransferMoneyIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INDateComponentsRangeResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INStringResolutionResult",
feature = "block2"
))]
#[deprecated = "INTransferMoneyIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveTransactionNoteForTransferMoney:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveTransactionNoteForTransferMoney_withCompletion(
&self,
intent: &INTransferMoneyIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INStringResolutionResult>)>,
);
}
);