objc2_pass_kit/generated/
PKAutomaticReloadPaymentSummaryItem.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(PKPaymentSummaryItem, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "PKPaymentSummaryItem")]
15 pub struct PKAutomaticReloadPaymentSummaryItem;
16);
17
18#[cfg(feature = "PKPaymentSummaryItem")]
19extern_conformance!(
20 unsafe impl NSObjectProtocol for PKAutomaticReloadPaymentSummaryItem {}
21);
22
23#[cfg(feature = "PKPaymentSummaryItem")]
24impl PKAutomaticReloadPaymentSummaryItem {
25 extern_methods!(
26 #[unsafe(method(thresholdAmount))]
27 #[unsafe(method_family = none)]
28 pub unsafe fn thresholdAmount(&self) -> Retained<NSDecimalNumber>;
29
30 #[unsafe(method(setThresholdAmount:))]
32 #[unsafe(method_family = none)]
33 pub unsafe fn setThresholdAmount(&self, threshold_amount: &NSDecimalNumber);
34 );
35}
36
37#[cfg(feature = "PKPaymentSummaryItem")]
39impl PKAutomaticReloadPaymentSummaryItem {
40 extern_methods!(
41 #[unsafe(method(summaryItemWithLabel:amount:))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn summaryItemWithLabel_amount(
44 label: &NSString,
45 amount: &NSDecimalNumber,
46 ) -> Retained<Self>;
47
48 #[unsafe(method(summaryItemWithLabel:amount:type:))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn summaryItemWithLabel_amount_type(
51 label: &NSString,
52 amount: &NSDecimalNumber,
53 r#type: PKPaymentSummaryItemType,
54 ) -> Retained<Self>;
55 );
56}
57
58#[cfg(feature = "PKPaymentSummaryItem")]
60impl PKAutomaticReloadPaymentSummaryItem {
61 extern_methods!(
62 #[unsafe(method(init))]
63 #[unsafe(method_family = init)]
64 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
65
66 #[unsafe(method(new))]
67 #[unsafe(method_family = new)]
68 pub unsafe fn new() -> Retained<Self>;
69 );
70}