]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | #[cfg(feature = "ApplicationModel_Payments_Provider")] |
2 | pub mod Provider; | |
3 | pub type PaymentAddress = *mut ::core::ffi::c_void; | |
4 | pub type PaymentCanMakePaymentResult = *mut ::core::ffi::c_void; | |
04454e1e | 5 | #[doc = "*Required features: `\"ApplicationModel_Payments\"`*"] |
5e7ed085 FG |
6 | #[repr(transparent)] |
7 | pub struct PaymentCanMakePaymentResultStatus(pub i32); | |
8 | impl PaymentCanMakePaymentResultStatus { | |
9 | pub const Unknown: Self = Self(0i32); | |
10 | pub const Yes: Self = Self(1i32); | |
11 | pub const No: Self = Self(2i32); | |
12 | pub const NotAllowed: Self = Self(3i32); | |
13 | pub const UserNotSignedIn: Self = Self(4i32); | |
14 | pub const SpecifiedPaymentMethodIdsNotSupported: Self = Self(5i32); | |
15 | pub const NoQualifyingCardOnFile: Self = Self(6i32); | |
16 | } | |
17 | impl ::core::marker::Copy for PaymentCanMakePaymentResultStatus {} | |
18 | impl ::core::clone::Clone for PaymentCanMakePaymentResultStatus { | |
19 | fn clone(&self) -> Self { | |
20 | *self | |
21 | } | |
22 | } | |
23 | pub type PaymentCurrencyAmount = *mut ::core::ffi::c_void; | |
24 | pub type PaymentDetails = *mut ::core::ffi::c_void; | |
25 | pub type PaymentDetailsModifier = *mut ::core::ffi::c_void; | |
26 | pub type PaymentItem = *mut ::core::ffi::c_void; | |
27 | pub type PaymentMediator = *mut ::core::ffi::c_void; | |
28 | pub type PaymentMerchantInfo = *mut ::core::ffi::c_void; | |
29 | pub type PaymentMethodData = *mut ::core::ffi::c_void; | |
04454e1e | 30 | #[doc = "*Required features: `\"ApplicationModel_Payments\"`*"] |
5e7ed085 FG |
31 | #[repr(transparent)] |
32 | pub struct PaymentOptionPresence(pub i32); | |
33 | impl PaymentOptionPresence { | |
34 | pub const None: Self = Self(0i32); | |
35 | pub const Optional: Self = Self(1i32); | |
36 | pub const Required: Self = Self(2i32); | |
37 | } | |
38 | impl ::core::marker::Copy for PaymentOptionPresence {} | |
39 | impl ::core::clone::Clone for PaymentOptionPresence { | |
40 | fn clone(&self) -> Self { | |
41 | *self | |
42 | } | |
43 | } | |
44 | pub type PaymentOptions = *mut ::core::ffi::c_void; | |
45 | pub type PaymentRequest = *mut ::core::ffi::c_void; | |
04454e1e | 46 | #[doc = "*Required features: `\"ApplicationModel_Payments\"`*"] |
5e7ed085 FG |
47 | #[repr(transparent)] |
48 | pub struct PaymentRequestChangeKind(pub i32); | |
49 | impl PaymentRequestChangeKind { | |
50 | pub const ShippingOption: Self = Self(0i32); | |
51 | pub const ShippingAddress: Self = Self(1i32); | |
52 | } | |
53 | impl ::core::marker::Copy for PaymentRequestChangeKind {} | |
54 | impl ::core::clone::Clone for PaymentRequestChangeKind { | |
55 | fn clone(&self) -> Self { | |
56 | *self | |
57 | } | |
58 | } | |
59 | pub type PaymentRequestChangedArgs = *mut ::core::ffi::c_void; | |
60 | pub type PaymentRequestChangedHandler = *mut ::core::ffi::c_void; | |
61 | pub type PaymentRequestChangedResult = *mut ::core::ffi::c_void; | |
04454e1e | 62 | #[doc = "*Required features: `\"ApplicationModel_Payments\"`*"] |
5e7ed085 FG |
63 | #[repr(transparent)] |
64 | pub struct PaymentRequestCompletionStatus(pub i32); | |
65 | impl PaymentRequestCompletionStatus { | |
66 | pub const Succeeded: Self = Self(0i32); | |
67 | pub const Failed: Self = Self(1i32); | |
68 | pub const Unknown: Self = Self(2i32); | |
69 | } | |
70 | impl ::core::marker::Copy for PaymentRequestCompletionStatus {} | |
71 | impl ::core::clone::Clone for PaymentRequestCompletionStatus { | |
72 | fn clone(&self) -> Self { | |
73 | *self | |
74 | } | |
75 | } | |
04454e1e | 76 | #[doc = "*Required features: `\"ApplicationModel_Payments\"`*"] |
5e7ed085 FG |
77 | #[repr(transparent)] |
78 | pub struct PaymentRequestStatus(pub i32); | |
79 | impl PaymentRequestStatus { | |
80 | pub const Succeeded: Self = Self(0i32); | |
81 | pub const Failed: Self = Self(1i32); | |
82 | pub const Canceled: Self = Self(2i32); | |
83 | } | |
84 | impl ::core::marker::Copy for PaymentRequestStatus {} | |
85 | impl ::core::clone::Clone for PaymentRequestStatus { | |
86 | fn clone(&self) -> Self { | |
87 | *self | |
88 | } | |
89 | } | |
90 | pub type PaymentRequestSubmitResult = *mut ::core::ffi::c_void; | |
91 | pub type PaymentResponse = *mut ::core::ffi::c_void; | |
92 | pub type PaymentShippingOption = *mut ::core::ffi::c_void; | |
04454e1e | 93 | #[doc = "*Required features: `\"ApplicationModel_Payments\"`*"] |
5e7ed085 FG |
94 | #[repr(transparent)] |
95 | pub struct PaymentShippingType(pub i32); | |
96 | impl PaymentShippingType { | |
97 | pub const Shipping: Self = Self(0i32); | |
98 | pub const Delivery: Self = Self(1i32); | |
99 | pub const Pickup: Self = Self(2i32); | |
100 | } | |
101 | impl ::core::marker::Copy for PaymentShippingType {} | |
102 | impl ::core::clone::Clone for PaymentShippingType { | |
103 | fn clone(&self) -> Self { | |
104 | *self | |
105 | } | |
106 | } | |
107 | pub type PaymentToken = *mut ::core::ffi::c_void; |