objc2-intents 0.3.2

Bindings to the Intents framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/intents/inbilldetails?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[deprecated = "INBillDetails is deprecated. There is no replacement."]
    pub struct INBillDetails;
);

extern_conformance!(
    unsafe impl NSCoding for INBillDetails {}
);

extern_conformance!(
    unsafe impl NSCopying for INBillDetails {}
);

unsafe impl CopyingHelper for INBillDetails {
    type Result = Self;
}

extern_conformance!(
    unsafe impl NSObjectProtocol for INBillDetails {}
);

extern_conformance!(
    unsafe impl NSSecureCoding for INBillDetails {}
);

impl INBillDetails {
    extern_methods!(
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[cfg(all(
            feature = "INBillPayee",
            feature = "INBillType",
            feature = "INCurrencyAmount",
            feature = "INPaymentStatus"
        ))]
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(initWithBillType:paymentStatus:billPayee:amountDue:minimumDue:lateFee:dueDate:paymentDate:))]
        #[unsafe(method_family = init)]
        pub unsafe fn initWithBillType_paymentStatus_billPayee_amountDue_minimumDue_lateFee_dueDate_paymentDate(
            this: Allocated<Self>,
            bill_type: INBillType,
            payment_status: INPaymentStatus,
            bill_payee: Option<&INBillPayee>,
            amount_due: Option<&INCurrencyAmount>,
            minimum_due: Option<&INCurrencyAmount>,
            late_fee: Option<&INCurrencyAmount>,
            due_date: Option<&NSDateComponents>,
            payment_date: Option<&NSDateComponents>,
        ) -> Option<Retained<Self>>;

        #[cfg(feature = "INBillPayee")]
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(billPayee))]
        #[unsafe(method_family = none)]
        pub unsafe fn billPayee(&self) -> Option<Retained<INBillPayee>>;

        #[cfg(feature = "INBillPayee")]
        /// Setter for [`billPayee`][Self::billPayee].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(setBillPayee:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setBillPayee(&self, bill_payee: Option<&INBillPayee>);

        #[cfg(feature = "INCurrencyAmount")]
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(amountDue))]
        #[unsafe(method_family = none)]
        pub unsafe fn amountDue(&self) -> Option<Retained<INCurrencyAmount>>;

        #[cfg(feature = "INCurrencyAmount")]
        /// Setter for [`amountDue`][Self::amountDue].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(setAmountDue:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setAmountDue(&self, amount_due: Option<&INCurrencyAmount>);

        #[cfg(feature = "INCurrencyAmount")]
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(minimumDue))]
        #[unsafe(method_family = none)]
        pub unsafe fn minimumDue(&self) -> Option<Retained<INCurrencyAmount>>;

        #[cfg(feature = "INCurrencyAmount")]
        /// Setter for [`minimumDue`][Self::minimumDue].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(setMinimumDue:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setMinimumDue(&self, minimum_due: Option<&INCurrencyAmount>);

        #[cfg(feature = "INCurrencyAmount")]
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(lateFee))]
        #[unsafe(method_family = none)]
        pub unsafe fn lateFee(&self) -> Option<Retained<INCurrencyAmount>>;

        #[cfg(feature = "INCurrencyAmount")]
        /// Setter for [`lateFee`][Self::lateFee].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(setLateFee:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setLateFee(&self, late_fee: Option<&INCurrencyAmount>);

        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(dueDate))]
        #[unsafe(method_family = none)]
        pub unsafe fn dueDate(&self) -> Option<Retained<NSDateComponents>>;

        /// Setter for [`dueDate`][Self::dueDate].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(setDueDate:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setDueDate(&self, due_date: Option<&NSDateComponents>);

        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(paymentDate))]
        #[unsafe(method_family = none)]
        pub unsafe fn paymentDate(&self) -> Option<Retained<NSDateComponents>>;

        /// Setter for [`paymentDate`][Self::paymentDate].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(setPaymentDate:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setPaymentDate(&self, payment_date: Option<&NSDateComponents>);

        #[cfg(feature = "INBillType")]
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(billType))]
        #[unsafe(method_family = none)]
        pub unsafe fn billType(&self) -> INBillType;

        #[cfg(feature = "INBillType")]
        /// Setter for [`billType`][Self::billType].
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(setBillType:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setBillType(&self, bill_type: INBillType);

        #[cfg(feature = "INPaymentStatus")]
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(paymentStatus))]
        #[unsafe(method_family = none)]
        pub unsafe fn paymentStatus(&self) -> INPaymentStatus;

        #[cfg(feature = "INPaymentStatus")]
        /// Setter for [`paymentStatus`][Self::paymentStatus].
        #[deprecated = "INBillDetails is deprecated. There is no replacement."]
        #[unsafe(method(setPaymentStatus:))]
        #[unsafe(method_family = none)]
        pub unsafe fn setPaymentStatus(&self, payment_status: INPaymentStatus);
    );
}

/// Methods declared on superclass `NSObject`.
impl INBillDetails {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}