objc2_intents/generated/
INRequestPaymentPayerResolutionResult.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9#[repr(transparent)]
12#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
13pub struct INRequestPaymentPayerUnsupportedReason(pub NSInteger);
14impl INRequestPaymentPayerUnsupportedReason {
15 #[doc(alias = "INRequestPaymentPayerUnsupportedReasonCredentialsUnverified")]
16 pub const CredentialsUnverified: Self = Self(1);
17 #[doc(alias = "INRequestPaymentPayerUnsupportedReasonNoAccount")]
18 pub const NoAccount: Self = Self(2);
19 #[doc(alias = "INRequestPaymentPayerUnsupportedReasonNoValidHandle")]
20 pub const NoValidHandle: Self = Self(3);
21}
22
23unsafe impl Encode for INRequestPaymentPayerUnsupportedReason {
24 const ENCODING: Encoding = NSInteger::ENCODING;
25}
26
27unsafe impl RefEncode for INRequestPaymentPayerUnsupportedReason {
28 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
29}
30
31extern_class!(
32 #[unsafe(super(INPersonResolutionResult, INIntentResolutionResult, NSObject))]
34 #[derive(Debug, PartialEq, Eq, Hash)]
35 #[cfg(all(
36 feature = "INIntentResolutionResult",
37 feature = "INPersonResolutionResult"
38 ))]
39 pub struct INRequestPaymentPayerResolutionResult;
40);
41
42#[cfg(all(
43 feature = "INIntentResolutionResult",
44 feature = "INPersonResolutionResult"
45))]
46extern_conformance!(
47 unsafe impl NSObjectProtocol for INRequestPaymentPayerResolutionResult {}
48);
49
50#[cfg(all(
51 feature = "INIntentResolutionResult",
52 feature = "INPersonResolutionResult"
53))]
54impl INRequestPaymentPayerResolutionResult {
55 extern_methods!(
56 #[unsafe(method(unsupportedForReason:))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn unsupportedForReason(
59 reason: INRequestPaymentPayerUnsupportedReason,
60 ) -> Retained<Self>;
61
62 #[unsafe(method(initWithPersonResolutionResult:))]
63 #[unsafe(method_family = init)]
64 pub unsafe fn initWithPersonResolutionResult(
65 this: Allocated<Self>,
66 person_resolution_result: &INPersonResolutionResult,
67 ) -> Retained<Self>;
68 );
69}
70
71#[cfg(all(
73 feature = "INIntentResolutionResult",
74 feature = "INPersonResolutionResult"
75))]
76impl INRequestPaymentPayerResolutionResult {
77 extern_methods!(
78 #[cfg(feature = "INPerson")]
79 #[unsafe(method(successWithResolvedPerson:))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn successWithResolvedPerson(resolved_person: &INPerson) -> Retained<Self>;
82
83 #[cfg(feature = "INPerson")]
84 #[unsafe(method(disambiguationWithPeopleToDisambiguate:))]
85 #[unsafe(method_family = none)]
86 pub unsafe fn disambiguationWithPeopleToDisambiguate(
87 people_to_disambiguate: &NSArray<INPerson>,
88 ) -> Retained<Self>;
89
90 #[cfg(feature = "INPerson")]
91 #[unsafe(method(confirmationRequiredWithPersonToConfirm:))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn confirmationRequiredWithPersonToConfirm(
94 person_to_confirm: Option<&INPerson>,
95 ) -> Retained<Self>;
96 );
97}
98
99#[cfg(all(
101 feature = "INIntentResolutionResult",
102 feature = "INPersonResolutionResult"
103))]
104impl INRequestPaymentPayerResolutionResult {
105 extern_methods!(
106 #[unsafe(method(init))]
107 #[unsafe(method_family = init)]
108 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
109
110 #[unsafe(method(needsValue))]
111 #[unsafe(method_family = none)]
112 pub unsafe fn needsValue() -> Retained<Self>;
113
114 #[unsafe(method(notRequired))]
115 #[unsafe(method_family = none)]
116 pub unsafe fn notRequired() -> Retained<Self>;
117
118 #[unsafe(method(unsupported))]
119 #[unsafe(method_family = none)]
120 pub unsafe fn unsupported() -> Retained<Self>;
121 );
122}
123
124#[cfg(all(
126 feature = "INIntentResolutionResult",
127 feature = "INPersonResolutionResult"
128))]
129impl INRequestPaymentPayerResolutionResult {
130 extern_methods!(
131 #[unsafe(method(new))]
132 #[unsafe(method_family = new)]
133 pub unsafe fn new() -> Retained<Self>;
134 );
135}