]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/ApplicationModel/Payments/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / ApplicationModel / Payments / mod.rs
CommitLineData
5e7ed085
FG
1#[cfg(feature = "ApplicationModel_Payments_Provider")]
2pub mod Provider;
3pub type PaymentAddress = *mut ::core::ffi::c_void;
4pub type PaymentCanMakePaymentResult = *mut ::core::ffi::c_void;
04454e1e 5#[doc = "*Required features: `\"ApplicationModel_Payments\"`*"]
5e7ed085
FG
6#[repr(transparent)]
7pub struct PaymentCanMakePaymentResultStatus(pub i32);
8impl 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}
17impl ::core::marker::Copy for PaymentCanMakePaymentResultStatus {}
18impl ::core::clone::Clone for PaymentCanMakePaymentResultStatus {
19 fn clone(&self) -> Self {
20 *self
21 }
22}
23pub type PaymentCurrencyAmount = *mut ::core::ffi::c_void;
24pub type PaymentDetails = *mut ::core::ffi::c_void;
25pub type PaymentDetailsModifier = *mut ::core::ffi::c_void;
26pub type PaymentItem = *mut ::core::ffi::c_void;
27pub type PaymentMediator = *mut ::core::ffi::c_void;
28pub type PaymentMerchantInfo = *mut ::core::ffi::c_void;
29pub type PaymentMethodData = *mut ::core::ffi::c_void;
04454e1e 30#[doc = "*Required features: `\"ApplicationModel_Payments\"`*"]
5e7ed085
FG
31#[repr(transparent)]
32pub struct PaymentOptionPresence(pub i32);
33impl PaymentOptionPresence {
34 pub const None: Self = Self(0i32);
35 pub const Optional: Self = Self(1i32);
36 pub const Required: Self = Self(2i32);
37}
38impl ::core::marker::Copy for PaymentOptionPresence {}
39impl ::core::clone::Clone for PaymentOptionPresence {
40 fn clone(&self) -> Self {
41 *self
42 }
43}
44pub type PaymentOptions = *mut ::core::ffi::c_void;
45pub type PaymentRequest = *mut ::core::ffi::c_void;
04454e1e 46#[doc = "*Required features: `\"ApplicationModel_Payments\"`*"]
5e7ed085
FG
47#[repr(transparent)]
48pub struct PaymentRequestChangeKind(pub i32);
49impl PaymentRequestChangeKind {
50 pub const ShippingOption: Self = Self(0i32);
51 pub const ShippingAddress: Self = Self(1i32);
52}
53impl ::core::marker::Copy for PaymentRequestChangeKind {}
54impl ::core::clone::Clone for PaymentRequestChangeKind {
55 fn clone(&self) -> Self {
56 *self
57 }
58}
59pub type PaymentRequestChangedArgs = *mut ::core::ffi::c_void;
60pub type PaymentRequestChangedHandler = *mut ::core::ffi::c_void;
61pub type PaymentRequestChangedResult = *mut ::core::ffi::c_void;
04454e1e 62#[doc = "*Required features: `\"ApplicationModel_Payments\"`*"]
5e7ed085
FG
63#[repr(transparent)]
64pub struct PaymentRequestCompletionStatus(pub i32);
65impl PaymentRequestCompletionStatus {
66 pub const Succeeded: Self = Self(0i32);
67 pub const Failed: Self = Self(1i32);
68 pub const Unknown: Self = Self(2i32);
69}
70impl ::core::marker::Copy for PaymentRequestCompletionStatus {}
71impl ::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)]
78pub struct PaymentRequestStatus(pub i32);
79impl PaymentRequestStatus {
80 pub const Succeeded: Self = Self(0i32);
81 pub const Failed: Self = Self(1i32);
82 pub const Canceled: Self = Self(2i32);
83}
84impl ::core::marker::Copy for PaymentRequestStatus {}
85impl ::core::clone::Clone for PaymentRequestStatus {
86 fn clone(&self) -> Self {
87 *self
88 }
89}
90pub type PaymentRequestSubmitResult = *mut ::core::ffi::c_void;
91pub type PaymentResponse = *mut ::core::ffi::c_void;
92pub type PaymentShippingOption = *mut ::core::ffi::c_void;
04454e1e 93#[doc = "*Required features: `\"ApplicationModel_Payments\"`*"]
5e7ed085
FG
94#[repr(transparent)]
95pub struct PaymentShippingType(pub i32);
96impl PaymentShippingType {
97 pub const Shipping: Self = Self(0i32);
98 pub const Delivery: Self = Self(1i32);
99 pub const Pickup: Self = Self(2i32);
100}
101impl ::core::marker::Copy for PaymentShippingType {}
102impl ::core::clone::Clone for PaymentShippingType {
103 fn clone(&self) -> Self {
104 *self
105 }
106}
107pub type PaymentToken = *mut ::core::ffi::c_void;