use core::ffi::*;
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 PKAutomaticReloadPaymentRequest;
);
extern_conformance!(
unsafe impl NSObjectProtocol for PKAutomaticReloadPaymentRequest {}
);
impl PKAutomaticReloadPaymentRequest {
extern_methods!(
#[unsafe(method(paymentDescription))]
#[unsafe(method_family = none)]
pub unsafe fn paymentDescription(&self) -> Retained<NSString>;
#[unsafe(method(setPaymentDescription:))]
#[unsafe(method_family = none)]
pub unsafe fn setPaymentDescription(&self, payment_description: &NSString);
#[cfg(all(
feature = "PKAutomaticReloadPaymentSummaryItem",
feature = "PKPaymentSummaryItem"
))]
#[unsafe(method(automaticReloadBilling))]
#[unsafe(method_family = none)]
pub unsafe fn automaticReloadBilling(
&self,
) -> Retained<PKAutomaticReloadPaymentSummaryItem>;
#[cfg(all(
feature = "PKAutomaticReloadPaymentSummaryItem",
feature = "PKPaymentSummaryItem"
))]
#[unsafe(method(setAutomaticReloadBilling:))]
#[unsafe(method_family = none)]
pub unsafe fn setAutomaticReloadBilling(
&self,
automatic_reload_billing: &PKAutomaticReloadPaymentSummaryItem,
);
#[unsafe(method(billingAgreement))]
#[unsafe(method_family = none)]
pub unsafe fn billingAgreement(&self) -> Option<Retained<NSString>>;
#[unsafe(method(setBillingAgreement:))]
#[unsafe(method_family = none)]
pub unsafe fn setBillingAgreement(&self, billing_agreement: Option<&NSString>);
#[unsafe(method(managementURL))]
#[unsafe(method_family = none)]
pub unsafe fn managementURL(&self) -> Retained<NSURL>;
#[unsafe(method(setManagementURL:))]
#[unsafe(method_family = none)]
pub unsafe fn setManagementURL(&self, management_url: &NSURL);
#[unsafe(method(tokenNotificationURL))]
#[unsafe(method_family = none)]
pub unsafe fn tokenNotificationURL(&self) -> Option<Retained<NSURL>>;
#[unsafe(method(setTokenNotificationURL:))]
#[unsafe(method_family = none)]
pub unsafe fn setTokenNotificationURL(&self, token_notification_url: Option<&NSURL>);
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(all(
feature = "PKAutomaticReloadPaymentSummaryItem",
feature = "PKPaymentSummaryItem"
))]
#[unsafe(method(initWithPaymentDescription:automaticReloadBilling:managementURL:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithPaymentDescription_automaticReloadBilling_managementURL(
this: Allocated<Self>,
payment_description: &NSString,
automatic_reload_billing: &PKAutomaticReloadPaymentSummaryItem,
management_url: &NSURL,
) -> Retained<Self>;
);
}
impl PKAutomaticReloadPaymentRequest {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}