use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
#[deprecated = "INPayBillIntentResponseCode is deprecated. There is no replacement."]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct INPayBillIntentResponseCode(pub NSInteger);
impl INPayBillIntentResponseCode {
#[doc(alias = "INPayBillIntentResponseCodeUnspecified")]
#[deprecated = "INPayBillIntentResponseCode is deprecated. There is no replacement."]
pub const Unspecified: Self = Self(0);
#[doc(alias = "INPayBillIntentResponseCodeReady")]
#[deprecated = "INPayBillIntentResponseCode is deprecated. There is no replacement."]
pub const Ready: Self = Self(1);
#[doc(alias = "INPayBillIntentResponseCodeInProgress")]
#[deprecated = "INPayBillIntentResponseCode is deprecated. There is no replacement."]
pub const InProgress: Self = Self(2);
#[doc(alias = "INPayBillIntentResponseCodeSuccess")]
#[deprecated = "INPayBillIntentResponseCode is deprecated. There is no replacement."]
pub const Success: Self = Self(3);
#[doc(alias = "INPayBillIntentResponseCodeFailure")]
#[deprecated = "INPayBillIntentResponseCode is deprecated. There is no replacement."]
pub const Failure: Self = Self(4);
#[doc(alias = "INPayBillIntentResponseCodeFailureRequiringAppLaunch")]
#[deprecated = "INPayBillIntentResponseCode is deprecated. There is no replacement."]
pub const FailureRequiringAppLaunch: Self = Self(5);
#[doc(alias = "INPayBillIntentResponseCodeFailureCredentialsUnverified")]
#[deprecated = "INPayBillIntentResponseCode is deprecated. There is no replacement."]
pub const FailureCredentialsUnverified: Self = Self(6);
#[doc(alias = "INPayBillIntentResponseCodeFailureInsufficientFunds")]
#[deprecated = "INPayBillIntentResponseCode is deprecated. There is no replacement."]
pub const FailureInsufficientFunds: Self = Self(7);
}
unsafe impl Encode for INPayBillIntentResponseCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for INPayBillIntentResponseCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[unsafe(super(INIntentResponse, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntentResponse")]
#[deprecated = "INPayBillIntentResponse is deprecated. There is no replacement."]
pub struct INPayBillIntentResponse;
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCoding for INPayBillIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCopying for INPayBillIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
unsafe impl CopyingHelper for INPayBillIntentResponse {
type Result = Self;
}
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSObjectProtocol for INPayBillIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSSecureCoding for INPayBillIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
impl INPayBillIntentResponse {
extern_methods!(
#[deprecated = "INPayBillIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[deprecated = "INPayBillIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(initWithCode:userActivity:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCode_userActivity(
this: Allocated<Self>,
code: INPayBillIntentResponseCode,
user_activity: Option<&NSUserActivity>,
) -> Retained<Self>;
#[deprecated = "INPayBillIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(code))]
#[unsafe(method_family = none)]
pub unsafe fn code(&self) -> INPayBillIntentResponseCode;
#[cfg(feature = "INPaymentAccount")]
#[deprecated = "INPayBillIntentResponse 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 = "INPayBillIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(setFromAccount:))]
#[unsafe(method_family = none)]
pub unsafe fn setFromAccount(&self, from_account: Option<&INPaymentAccount>);
#[cfg(feature = "INBillDetails")]
#[deprecated = "INPayBillIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(billDetails))]
#[unsafe(method_family = none)]
pub unsafe fn billDetails(&self) -> Option<Retained<INBillDetails>>;
#[cfg(feature = "INBillDetails")]
#[deprecated = "INPayBillIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(setBillDetails:))]
#[unsafe(method_family = none)]
pub unsafe fn setBillDetails(&self, bill_details: Option<&INBillDetails>);
#[cfg(feature = "INPaymentAmount")]
#[deprecated = "INPayBillIntentResponse 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 = "INPayBillIntentResponse 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 = "INPayBillIntentResponse 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 = "INPayBillIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(setTransactionScheduledDate:))]
#[unsafe(method_family = none)]
pub unsafe fn setTransactionScheduledDate(
&self,
transaction_scheduled_date: Option<&INDateComponentsRange>,
);
#[deprecated = "INPayBillIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(transactionNote))]
#[unsafe(method_family = none)]
pub unsafe fn transactionNote(&self) -> Option<Retained<NSString>>;
#[deprecated = "INPayBillIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(setTransactionNote:))]
#[unsafe(method_family = none)]
pub unsafe fn setTransactionNote(&self, transaction_note: Option<&NSString>);
);
}
#[cfg(feature = "INIntentResponse")]
impl INPayBillIntentResponse {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}