use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct INPaymentAccount;
);
extern_conformance!(
unsafe impl NSCoding for INPaymentAccount {}
);
extern_conformance!(
unsafe impl NSCopying for INPaymentAccount {}
);
unsafe impl CopyingHelper for INPaymentAccount {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for INPaymentAccount {}
);
extern_conformance!(
unsafe impl NSSecureCoding for INPaymentAccount {}
);
impl INPaymentAccount {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(all(
feature = "INAccountType",
feature = "INBalanceAmount",
feature = "INSpeakableString"
))]
#[unsafe(method(initWithNickname:number:accountType:organizationName:balance:secondaryBalance:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithNickname_number_accountType_organizationName_balance_secondaryBalance(
this: Allocated<Self>,
nickname: &INSpeakableString,
number: Option<&NSString>,
account_type: INAccountType,
organization_name: Option<&INSpeakableString>,
balance: Option<&INBalanceAmount>,
secondary_balance: Option<&INBalanceAmount>,
) -> Retained<Self>;
#[cfg(all(feature = "INAccountType", feature = "INSpeakableString"))]
#[deprecated = "Please use 'initWithNickname:number:accountType:organizationName:balance:secondaryBalance:' instead"]
#[unsafe(method(initWithNickname:number:accountType:organizationName:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithNickname_number_accountType_organizationName(
this: Allocated<Self>,
nickname: &INSpeakableString,
number: Option<&NSString>,
account_type: INAccountType,
organization_name: Option<&INSpeakableString>,
) -> Option<Retained<Self>>;
#[cfg(feature = "INSpeakableString")]
#[unsafe(method(nickname))]
#[unsafe(method_family = none)]
pub unsafe fn nickname(&self) -> Option<Retained<INSpeakableString>>;
#[unsafe(method(accountNumber))]
#[unsafe(method_family = none)]
pub unsafe fn accountNumber(&self) -> Option<Retained<NSString>>;
#[cfg(feature = "INAccountType")]
#[unsafe(method(accountType))]
#[unsafe(method_family = none)]
pub unsafe fn accountType(&self) -> INAccountType;
#[cfg(feature = "INSpeakableString")]
#[unsafe(method(organizationName))]
#[unsafe(method_family = none)]
pub unsafe fn organizationName(&self) -> Option<Retained<INSpeakableString>>;
#[cfg(feature = "INBalanceAmount")]
#[unsafe(method(balance))]
#[unsafe(method_family = none)]
pub unsafe fn balance(&self) -> Option<Retained<INBalanceAmount>>;
#[cfg(feature = "INBalanceAmount")]
#[unsafe(method(secondaryBalance))]
#[unsafe(method_family = none)]
pub unsafe fn secondaryBalance(&self) -> Option<Retained<INBalanceAmount>>;
);
}
impl INPaymentAccount {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}