winrt-Windows.ApplicationModel.Payments 3.2.1__cp314-cp314-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- winrt/_winrt_windows_applicationmodel_payments.cp314-win32.pyd +0 -0
- winrt/_winrt_windows_applicationmodel_payments.pyi +415 -0
- winrt/windows/applicationmodel/payments/__init__.py +88 -0
- winrt/windows/applicationmodel/payments/py.typed +0 -0
- winrt_windows_applicationmodel_payments-3.2.1.dist-info/METADATA +26 -0
- winrt_windows_applicationmodel_payments-3.2.1.dist-info/RECORD +8 -0
- winrt_windows_applicationmodel_payments-3.2.1.dist-info/WHEEL +5 -0
- winrt_windows_applicationmodel_payments-3.2.1.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
|
|
15
|
+
from winrt.windows.applicationmodel.payments import PaymentCanMakePaymentResultStatus, PaymentOptionPresence, PaymentRequestChangeKind, PaymentRequestCompletionStatus, PaymentRequestStatus, PaymentShippingType
|
|
16
|
+
from winrt.windows.applicationmodel.payments import PaymentRequestChangedHandler
|
|
17
|
+
|
|
18
|
+
Self = typing.TypeVar('Self')
|
|
19
|
+
|
|
20
|
+
@typing.final
|
|
21
|
+
class PaymentAddress(winrt.system.Object):
|
|
22
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
23
|
+
# System.String Windows.ApplicationModel.Payments.PaymentAddress::get_SortingCode()
|
|
24
|
+
@_property
|
|
25
|
+
def sorting_code(self) -> str: ...
|
|
26
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentAddress::put_SortingCode(System.String)
|
|
27
|
+
@sorting_code.setter
|
|
28
|
+
def sorting_code(self, value: str) -> None: ...
|
|
29
|
+
# System.String Windows.ApplicationModel.Payments.PaymentAddress::get_Region()
|
|
30
|
+
@_property
|
|
31
|
+
def region(self) -> str: ...
|
|
32
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentAddress::put_Region(System.String)
|
|
33
|
+
@region.setter
|
|
34
|
+
def region(self, value: str) -> None: ...
|
|
35
|
+
# System.String Windows.ApplicationModel.Payments.PaymentAddress::get_Recipient()
|
|
36
|
+
@_property
|
|
37
|
+
def recipient(self) -> str: ...
|
|
38
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentAddress::put_Recipient(System.String)
|
|
39
|
+
@recipient.setter
|
|
40
|
+
def recipient(self, value: str) -> None: ...
|
|
41
|
+
# System.String Windows.ApplicationModel.Payments.PaymentAddress::get_PostalCode()
|
|
42
|
+
@_property
|
|
43
|
+
def postal_code(self) -> str: ...
|
|
44
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentAddress::put_PostalCode(System.String)
|
|
45
|
+
@postal_code.setter
|
|
46
|
+
def postal_code(self, value: str) -> None: ...
|
|
47
|
+
# System.String Windows.ApplicationModel.Payments.PaymentAddress::get_PhoneNumber()
|
|
48
|
+
@_property
|
|
49
|
+
def phone_number(self) -> str: ...
|
|
50
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentAddress::put_PhoneNumber(System.String)
|
|
51
|
+
@phone_number.setter
|
|
52
|
+
def phone_number(self, value: str) -> None: ...
|
|
53
|
+
# System.String Windows.ApplicationModel.Payments.PaymentAddress::get_Organization()
|
|
54
|
+
@_property
|
|
55
|
+
def organization(self) -> str: ...
|
|
56
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentAddress::put_Organization(System.String)
|
|
57
|
+
@organization.setter
|
|
58
|
+
def organization(self, value: str) -> None: ...
|
|
59
|
+
# System.String Windows.ApplicationModel.Payments.PaymentAddress::get_LanguageCode()
|
|
60
|
+
@_property
|
|
61
|
+
def language_code(self) -> str: ...
|
|
62
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentAddress::put_LanguageCode(System.String)
|
|
63
|
+
@language_code.setter
|
|
64
|
+
def language_code(self, value: str) -> None: ...
|
|
65
|
+
# System.String Windows.ApplicationModel.Payments.PaymentAddress::get_DependentLocality()
|
|
66
|
+
@_property
|
|
67
|
+
def dependent_locality(self) -> str: ...
|
|
68
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentAddress::put_DependentLocality(System.String)
|
|
69
|
+
@dependent_locality.setter
|
|
70
|
+
def dependent_locality(self, value: str) -> None: ...
|
|
71
|
+
# System.String Windows.ApplicationModel.Payments.PaymentAddress::get_Country()
|
|
72
|
+
@_property
|
|
73
|
+
def country(self) -> str: ...
|
|
74
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentAddress::put_Country(System.String)
|
|
75
|
+
@country.setter
|
|
76
|
+
def country(self, value: str) -> None: ...
|
|
77
|
+
# System.String Windows.ApplicationModel.Payments.PaymentAddress::get_City()
|
|
78
|
+
@_property
|
|
79
|
+
def city(self) -> str: ...
|
|
80
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentAddress::put_City(System.String)
|
|
81
|
+
@city.setter
|
|
82
|
+
def city(self, value: str) -> None: ...
|
|
83
|
+
# Windows.Foundation.Collections.IVectorView`1<System.String> Windows.ApplicationModel.Payments.PaymentAddress::get_AddressLines()
|
|
84
|
+
@_property
|
|
85
|
+
def address_lines(self) -> typing.Sequence[str]: ...
|
|
86
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentAddress::put_AddressLines(Windows.Foundation.Collections.IVectorView`1<System.String>)
|
|
87
|
+
@address_lines.setter
|
|
88
|
+
def address_lines(self, value: typing.Sequence[str]) -> None: ...
|
|
89
|
+
# Windows.Foundation.Collections.ValueSet Windows.ApplicationModel.Payments.PaymentAddress::get_Properties()
|
|
90
|
+
@_property
|
|
91
|
+
def properties(self) -> windows_foundation_collections.ValueSet: ...
|
|
92
|
+
|
|
93
|
+
@typing.final
|
|
94
|
+
class PaymentCanMakePaymentResult(winrt.system.Object):
|
|
95
|
+
def __new__(cls: typing.Type[Self], value: PaymentCanMakePaymentResultStatus) -> Self: ...
|
|
96
|
+
# Windows.ApplicationModel.Payments.PaymentCanMakePaymentResultStatus Windows.ApplicationModel.Payments.PaymentCanMakePaymentResult::get_Status()
|
|
97
|
+
@_property
|
|
98
|
+
def status(self) -> PaymentCanMakePaymentResultStatus: ...
|
|
99
|
+
|
|
100
|
+
@typing.final
|
|
101
|
+
class PaymentCurrencyAmount(winrt.system.Object):
|
|
102
|
+
@typing.overload
|
|
103
|
+
def __new__(cls: typing.Type[Self], value: str, currency: str) -> Self: ...
|
|
104
|
+
@typing.overload
|
|
105
|
+
def __new__(cls: typing.Type[Self], value: str, currency: str, currency_system: str) -> Self: ...
|
|
106
|
+
# System.String Windows.ApplicationModel.Payments.PaymentCurrencyAmount::get_Value()
|
|
107
|
+
@_property
|
|
108
|
+
def value(self) -> str: ...
|
|
109
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentCurrencyAmount::put_Value(System.String)
|
|
110
|
+
@value.setter
|
|
111
|
+
def value(self, value: str) -> None: ...
|
|
112
|
+
# System.String Windows.ApplicationModel.Payments.PaymentCurrencyAmount::get_CurrencySystem()
|
|
113
|
+
@_property
|
|
114
|
+
def currency_system(self) -> str: ...
|
|
115
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentCurrencyAmount::put_CurrencySystem(System.String)
|
|
116
|
+
@currency_system.setter
|
|
117
|
+
def currency_system(self, value: str) -> None: ...
|
|
118
|
+
# System.String Windows.ApplicationModel.Payments.PaymentCurrencyAmount::get_Currency()
|
|
119
|
+
@_property
|
|
120
|
+
def currency(self) -> str: ...
|
|
121
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentCurrencyAmount::put_Currency(System.String)
|
|
122
|
+
@currency.setter
|
|
123
|
+
def currency(self, value: str) -> None: ...
|
|
124
|
+
|
|
125
|
+
@typing.final
|
|
126
|
+
class PaymentDetails(winrt.system.Object):
|
|
127
|
+
@typing.overload
|
|
128
|
+
def __new__(cls: typing.Type[Self], total: PaymentItem) -> Self: ...
|
|
129
|
+
@typing.overload
|
|
130
|
+
def __new__(cls: typing.Type[Self], total: PaymentItem, display_items: typing.Iterable[PaymentItem]) -> Self: ...
|
|
131
|
+
@typing.overload
|
|
132
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
133
|
+
# Windows.ApplicationModel.Payments.PaymentItem Windows.ApplicationModel.Payments.PaymentDetails::get_Total()
|
|
134
|
+
@_property
|
|
135
|
+
def total(self) -> PaymentItem: ...
|
|
136
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentDetails::put_Total(Windows.ApplicationModel.Payments.PaymentItem)
|
|
137
|
+
@total.setter
|
|
138
|
+
def total(self, value: PaymentItem) -> None: ...
|
|
139
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Payments.PaymentShippingOption> Windows.ApplicationModel.Payments.PaymentDetails::get_ShippingOptions()
|
|
140
|
+
@_property
|
|
141
|
+
def shipping_options(self) -> typing.Sequence[PaymentShippingOption]: ...
|
|
142
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentDetails::put_ShippingOptions(Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Payments.PaymentShippingOption>)
|
|
143
|
+
@shipping_options.setter
|
|
144
|
+
def shipping_options(self, value: typing.Sequence[PaymentShippingOption]) -> None: ...
|
|
145
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Payments.PaymentDetailsModifier> Windows.ApplicationModel.Payments.PaymentDetails::get_Modifiers()
|
|
146
|
+
@_property
|
|
147
|
+
def modifiers(self) -> typing.Sequence[PaymentDetailsModifier]: ...
|
|
148
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentDetails::put_Modifiers(Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Payments.PaymentDetailsModifier>)
|
|
149
|
+
@modifiers.setter
|
|
150
|
+
def modifiers(self, value: typing.Sequence[PaymentDetailsModifier]) -> None: ...
|
|
151
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Payments.PaymentItem> Windows.ApplicationModel.Payments.PaymentDetails::get_DisplayItems()
|
|
152
|
+
@_property
|
|
153
|
+
def display_items(self) -> typing.Sequence[PaymentItem]: ...
|
|
154
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentDetails::put_DisplayItems(Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Payments.PaymentItem>)
|
|
155
|
+
@display_items.setter
|
|
156
|
+
def display_items(self, value: typing.Sequence[PaymentItem]) -> None: ...
|
|
157
|
+
|
|
158
|
+
@typing.final
|
|
159
|
+
class PaymentDetailsModifier(winrt.system.Object):
|
|
160
|
+
@typing.overload
|
|
161
|
+
def __new__(cls: typing.Type[Self], supported_method_ids: typing.Iterable[str], total: PaymentItem) -> Self: ...
|
|
162
|
+
@typing.overload
|
|
163
|
+
def __new__(cls: typing.Type[Self], supported_method_ids: typing.Iterable[str], total: PaymentItem, additional_display_items: typing.Iterable[PaymentItem]) -> Self: ...
|
|
164
|
+
@typing.overload
|
|
165
|
+
def __new__(cls: typing.Type[Self], supported_method_ids: typing.Iterable[str], total: PaymentItem, additional_display_items: typing.Iterable[PaymentItem], json_data: str) -> Self: ...
|
|
166
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Payments.PaymentItem> Windows.ApplicationModel.Payments.PaymentDetailsModifier::get_AdditionalDisplayItems()
|
|
167
|
+
@_property
|
|
168
|
+
def additional_display_items(self) -> typing.Sequence[PaymentItem]: ...
|
|
169
|
+
# System.String Windows.ApplicationModel.Payments.PaymentDetailsModifier::get_JsonData()
|
|
170
|
+
@_property
|
|
171
|
+
def json_data(self) -> str: ...
|
|
172
|
+
# Windows.Foundation.Collections.IVectorView`1<System.String> Windows.ApplicationModel.Payments.PaymentDetailsModifier::get_SupportedMethodIds()
|
|
173
|
+
@_property
|
|
174
|
+
def supported_method_ids(self) -> typing.Sequence[str]: ...
|
|
175
|
+
# Windows.ApplicationModel.Payments.PaymentItem Windows.ApplicationModel.Payments.PaymentDetailsModifier::get_Total()
|
|
176
|
+
@_property
|
|
177
|
+
def total(self) -> PaymentItem: ...
|
|
178
|
+
|
|
179
|
+
@typing.final
|
|
180
|
+
class PaymentItem(winrt.system.Object):
|
|
181
|
+
def __new__(cls: typing.Type[Self], label: str, amount: PaymentCurrencyAmount) -> Self: ...
|
|
182
|
+
# System.Boolean Windows.ApplicationModel.Payments.PaymentItem::get_Pending()
|
|
183
|
+
@_property
|
|
184
|
+
def pending(self) -> bool: ...
|
|
185
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentItem::put_Pending(System.Boolean)
|
|
186
|
+
@pending.setter
|
|
187
|
+
def pending(self, value: bool) -> None: ...
|
|
188
|
+
# System.String Windows.ApplicationModel.Payments.PaymentItem::get_Label()
|
|
189
|
+
@_property
|
|
190
|
+
def label(self) -> str: ...
|
|
191
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentItem::put_Label(System.String)
|
|
192
|
+
@label.setter
|
|
193
|
+
def label(self, value: str) -> None: ...
|
|
194
|
+
# Windows.ApplicationModel.Payments.PaymentCurrencyAmount Windows.ApplicationModel.Payments.PaymentItem::get_Amount()
|
|
195
|
+
@_property
|
|
196
|
+
def amount(self) -> PaymentCurrencyAmount: ...
|
|
197
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentItem::put_Amount(Windows.ApplicationModel.Payments.PaymentCurrencyAmount)
|
|
198
|
+
@amount.setter
|
|
199
|
+
def amount(self, value: PaymentCurrencyAmount) -> None: ...
|
|
200
|
+
|
|
201
|
+
@typing.final
|
|
202
|
+
class PaymentMediator(winrt.system.Object):
|
|
203
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
204
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.ApplicationModel.Payments.PaymentCanMakePaymentResult> Windows.ApplicationModel.Payments.PaymentMediator::CanMakePaymentAsync(Windows.ApplicationModel.Payments.PaymentRequest)
|
|
205
|
+
def can_make_payment_async(self, payment_request: PaymentRequest, /) -> windows_foundation.IAsyncOperation[PaymentCanMakePaymentResult]: ...
|
|
206
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<System.String>> Windows.ApplicationModel.Payments.PaymentMediator::GetSupportedMethodIdsAsync()
|
|
207
|
+
def get_supported_method_ids_async(self) -> windows_foundation.IAsyncOperation[typing.Sequence[str]]: ...
|
|
208
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.ApplicationModel.Payments.PaymentRequestSubmitResult> Windows.ApplicationModel.Payments.PaymentMediator::SubmitPaymentRequestAsync(Windows.ApplicationModel.Payments.PaymentRequest)
|
|
209
|
+
def submit_payment_request_async(self, payment_request: PaymentRequest, /) -> windows_foundation.IAsyncOperation[PaymentRequestSubmitResult]: ...
|
|
210
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.ApplicationModel.Payments.PaymentRequestSubmitResult> Windows.ApplicationModel.Payments.PaymentMediator::SubmitPaymentRequestAsync(Windows.ApplicationModel.Payments.PaymentRequest,Windows.ApplicationModel.Payments.PaymentRequestChangedHandler)
|
|
211
|
+
def submit_payment_request_with_change_handler_async(self, payment_request: PaymentRequest, change_handler: PaymentRequestChangedHandler, /) -> windows_foundation.IAsyncOperation[PaymentRequestSubmitResult]: ...
|
|
212
|
+
|
|
213
|
+
@typing.final
|
|
214
|
+
class PaymentMerchantInfo(winrt.system.Object):
|
|
215
|
+
@typing.overload
|
|
216
|
+
def __new__(cls: typing.Type[Self], uri: windows_foundation.Uri) -> Self: ...
|
|
217
|
+
@typing.overload
|
|
218
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
219
|
+
# System.String Windows.ApplicationModel.Payments.PaymentMerchantInfo::get_PackageFullName()
|
|
220
|
+
@_property
|
|
221
|
+
def package_full_name(self) -> str: ...
|
|
222
|
+
# Windows.Foundation.Uri Windows.ApplicationModel.Payments.PaymentMerchantInfo::get_Uri()
|
|
223
|
+
@_property
|
|
224
|
+
def uri(self) -> windows_foundation.Uri: ...
|
|
225
|
+
|
|
226
|
+
@typing.final
|
|
227
|
+
class PaymentMethodData(winrt.system.Object):
|
|
228
|
+
@typing.overload
|
|
229
|
+
def __new__(cls: typing.Type[Self], supported_method_ids: typing.Iterable[str]) -> Self: ...
|
|
230
|
+
@typing.overload
|
|
231
|
+
def __new__(cls: typing.Type[Self], supported_method_ids: typing.Iterable[str], json_data: str) -> Self: ...
|
|
232
|
+
# System.String Windows.ApplicationModel.Payments.PaymentMethodData::get_JsonData()
|
|
233
|
+
@_property
|
|
234
|
+
def json_data(self) -> str: ...
|
|
235
|
+
# Windows.Foundation.Collections.IVectorView`1<System.String> Windows.ApplicationModel.Payments.PaymentMethodData::get_SupportedMethodIds()
|
|
236
|
+
@_property
|
|
237
|
+
def supported_method_ids(self) -> typing.Sequence[str]: ...
|
|
238
|
+
|
|
239
|
+
@typing.final
|
|
240
|
+
class PaymentOptions(winrt.system.Object):
|
|
241
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
242
|
+
# Windows.ApplicationModel.Payments.PaymentShippingType Windows.ApplicationModel.Payments.PaymentOptions::get_ShippingType()
|
|
243
|
+
@_property
|
|
244
|
+
def shipping_type(self) -> PaymentShippingType: ...
|
|
245
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentOptions::put_ShippingType(Windows.ApplicationModel.Payments.PaymentShippingType)
|
|
246
|
+
@shipping_type.setter
|
|
247
|
+
def shipping_type(self, value: PaymentShippingType) -> None: ...
|
|
248
|
+
# System.Boolean Windows.ApplicationModel.Payments.PaymentOptions::get_RequestShipping()
|
|
249
|
+
@_property
|
|
250
|
+
def request_shipping(self) -> bool: ...
|
|
251
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentOptions::put_RequestShipping(System.Boolean)
|
|
252
|
+
@request_shipping.setter
|
|
253
|
+
def request_shipping(self, value: bool) -> None: ...
|
|
254
|
+
# Windows.ApplicationModel.Payments.PaymentOptionPresence Windows.ApplicationModel.Payments.PaymentOptions::get_RequestPayerPhoneNumber()
|
|
255
|
+
@_property
|
|
256
|
+
def request_payer_phone_number(self) -> PaymentOptionPresence: ...
|
|
257
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentOptions::put_RequestPayerPhoneNumber(Windows.ApplicationModel.Payments.PaymentOptionPresence)
|
|
258
|
+
@request_payer_phone_number.setter
|
|
259
|
+
def request_payer_phone_number(self, value: PaymentOptionPresence) -> None: ...
|
|
260
|
+
# Windows.ApplicationModel.Payments.PaymentOptionPresence Windows.ApplicationModel.Payments.PaymentOptions::get_RequestPayerName()
|
|
261
|
+
@_property
|
|
262
|
+
def request_payer_name(self) -> PaymentOptionPresence: ...
|
|
263
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentOptions::put_RequestPayerName(Windows.ApplicationModel.Payments.PaymentOptionPresence)
|
|
264
|
+
@request_payer_name.setter
|
|
265
|
+
def request_payer_name(self, value: PaymentOptionPresence) -> None: ...
|
|
266
|
+
# Windows.ApplicationModel.Payments.PaymentOptionPresence Windows.ApplicationModel.Payments.PaymentOptions::get_RequestPayerEmail()
|
|
267
|
+
@_property
|
|
268
|
+
def request_payer_email(self) -> PaymentOptionPresence: ...
|
|
269
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentOptions::put_RequestPayerEmail(Windows.ApplicationModel.Payments.PaymentOptionPresence)
|
|
270
|
+
@request_payer_email.setter
|
|
271
|
+
def request_payer_email(self, value: PaymentOptionPresence) -> None: ...
|
|
272
|
+
|
|
273
|
+
@typing.final
|
|
274
|
+
class PaymentRequest(winrt.system.Object):
|
|
275
|
+
@typing.overload
|
|
276
|
+
def __new__(cls: typing.Type[Self], details: PaymentDetails, method_data: typing.Iterable[PaymentMethodData], merchant_info: PaymentMerchantInfo, options: PaymentOptions, id: str) -> Self: ...
|
|
277
|
+
@typing.overload
|
|
278
|
+
def __new__(cls: typing.Type[Self], details: PaymentDetails, method_data: typing.Iterable[PaymentMethodData]) -> Self: ...
|
|
279
|
+
@typing.overload
|
|
280
|
+
def __new__(cls: typing.Type[Self], details: PaymentDetails, method_data: typing.Iterable[PaymentMethodData], merchant_info: PaymentMerchantInfo) -> Self: ...
|
|
281
|
+
@typing.overload
|
|
282
|
+
def __new__(cls: typing.Type[Self], details: PaymentDetails, method_data: typing.Iterable[PaymentMethodData], merchant_info: PaymentMerchantInfo, options: PaymentOptions) -> Self: ...
|
|
283
|
+
# Windows.ApplicationModel.Payments.PaymentDetails Windows.ApplicationModel.Payments.PaymentRequest::get_Details()
|
|
284
|
+
@_property
|
|
285
|
+
def details(self) -> PaymentDetails: ...
|
|
286
|
+
# Windows.ApplicationModel.Payments.PaymentMerchantInfo Windows.ApplicationModel.Payments.PaymentRequest::get_MerchantInfo()
|
|
287
|
+
@_property
|
|
288
|
+
def merchant_info(self) -> PaymentMerchantInfo: ...
|
|
289
|
+
# Windows.Foundation.Collections.IVectorView`1<Windows.ApplicationModel.Payments.PaymentMethodData> Windows.ApplicationModel.Payments.PaymentRequest::get_MethodData()
|
|
290
|
+
@_property
|
|
291
|
+
def method_data(self) -> typing.Sequence[PaymentMethodData]: ...
|
|
292
|
+
# Windows.ApplicationModel.Payments.PaymentOptions Windows.ApplicationModel.Payments.PaymentRequest::get_Options()
|
|
293
|
+
@_property
|
|
294
|
+
def options(self) -> PaymentOptions: ...
|
|
295
|
+
# System.String Windows.ApplicationModel.Payments.PaymentRequest::get_Id()
|
|
296
|
+
@_property
|
|
297
|
+
def id(self) -> str: ...
|
|
298
|
+
|
|
299
|
+
@typing.final
|
|
300
|
+
class PaymentRequestChangedArgs(winrt.system.Object):
|
|
301
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentRequestChangedArgs::Acknowledge(Windows.ApplicationModel.Payments.PaymentRequestChangedResult)
|
|
302
|
+
def acknowledge(self, change_result: PaymentRequestChangedResult, /) -> None: ...
|
|
303
|
+
# Windows.ApplicationModel.Payments.PaymentRequestChangeKind Windows.ApplicationModel.Payments.PaymentRequestChangedArgs::get_ChangeKind()
|
|
304
|
+
@_property
|
|
305
|
+
def change_kind(self) -> PaymentRequestChangeKind: ...
|
|
306
|
+
# Windows.ApplicationModel.Payments.PaymentShippingOption Windows.ApplicationModel.Payments.PaymentRequestChangedArgs::get_SelectedShippingOption()
|
|
307
|
+
@_property
|
|
308
|
+
def selected_shipping_option(self) -> PaymentShippingOption: ...
|
|
309
|
+
# Windows.ApplicationModel.Payments.PaymentAddress Windows.ApplicationModel.Payments.PaymentRequestChangedArgs::get_ShippingAddress()
|
|
310
|
+
@_property
|
|
311
|
+
def shipping_address(self) -> PaymentAddress: ...
|
|
312
|
+
|
|
313
|
+
@typing.final
|
|
314
|
+
class PaymentRequestChangedResult(winrt.system.Object):
|
|
315
|
+
@typing.overload
|
|
316
|
+
def __new__(cls: typing.Type[Self], change_accepted_by_merchant: bool) -> Self: ...
|
|
317
|
+
@typing.overload
|
|
318
|
+
def __new__(cls: typing.Type[Self], change_accepted_by_merchant: bool, updated_payment_details: PaymentDetails) -> Self: ...
|
|
319
|
+
# Windows.ApplicationModel.Payments.PaymentDetails Windows.ApplicationModel.Payments.PaymentRequestChangedResult::get_UpdatedPaymentDetails()
|
|
320
|
+
@_property
|
|
321
|
+
def updated_payment_details(self) -> PaymentDetails: ...
|
|
322
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentRequestChangedResult::put_UpdatedPaymentDetails(Windows.ApplicationModel.Payments.PaymentDetails)
|
|
323
|
+
@updated_payment_details.setter
|
|
324
|
+
def updated_payment_details(self, value: PaymentDetails) -> None: ...
|
|
325
|
+
# System.String Windows.ApplicationModel.Payments.PaymentRequestChangedResult::get_Message()
|
|
326
|
+
@_property
|
|
327
|
+
def message(self) -> str: ...
|
|
328
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentRequestChangedResult::put_Message(System.String)
|
|
329
|
+
@message.setter
|
|
330
|
+
def message(self, value: str) -> None: ...
|
|
331
|
+
# System.Boolean Windows.ApplicationModel.Payments.PaymentRequestChangedResult::get_ChangeAcceptedByMerchant()
|
|
332
|
+
@_property
|
|
333
|
+
def change_accepted_by_merchant(self) -> bool: ...
|
|
334
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentRequestChangedResult::put_ChangeAcceptedByMerchant(System.Boolean)
|
|
335
|
+
@change_accepted_by_merchant.setter
|
|
336
|
+
def change_accepted_by_merchant(self, value: bool) -> None: ...
|
|
337
|
+
|
|
338
|
+
@typing.final
|
|
339
|
+
class PaymentRequestSubmitResult(winrt.system.Object):
|
|
340
|
+
# Windows.ApplicationModel.Payments.PaymentResponse Windows.ApplicationModel.Payments.PaymentRequestSubmitResult::get_Response()
|
|
341
|
+
@_property
|
|
342
|
+
def response(self) -> PaymentResponse: ...
|
|
343
|
+
# Windows.ApplicationModel.Payments.PaymentRequestStatus Windows.ApplicationModel.Payments.PaymentRequestSubmitResult::get_Status()
|
|
344
|
+
@_property
|
|
345
|
+
def status(self) -> PaymentRequestStatus: ...
|
|
346
|
+
|
|
347
|
+
@typing.final
|
|
348
|
+
class PaymentResponse(winrt.system.Object):
|
|
349
|
+
# Windows.Foundation.IAsyncAction Windows.ApplicationModel.Payments.PaymentResponse::CompleteAsync(Windows.ApplicationModel.Payments.PaymentRequestCompletionStatus)
|
|
350
|
+
def complete_async(self, status: PaymentRequestCompletionStatus, /) -> windows_foundation.IAsyncAction: ...
|
|
351
|
+
# System.String Windows.ApplicationModel.Payments.PaymentResponse::get_PayerEmail()
|
|
352
|
+
@_property
|
|
353
|
+
def payer_email(self) -> str: ...
|
|
354
|
+
# System.String Windows.ApplicationModel.Payments.PaymentResponse::get_PayerName()
|
|
355
|
+
@_property
|
|
356
|
+
def payer_name(self) -> str: ...
|
|
357
|
+
# System.String Windows.ApplicationModel.Payments.PaymentResponse::get_PayerPhoneNumber()
|
|
358
|
+
@_property
|
|
359
|
+
def payer_phone_number(self) -> str: ...
|
|
360
|
+
# Windows.ApplicationModel.Payments.PaymentToken Windows.ApplicationModel.Payments.PaymentResponse::get_PaymentToken()
|
|
361
|
+
@_property
|
|
362
|
+
def payment_token(self) -> PaymentToken: ...
|
|
363
|
+
# Windows.ApplicationModel.Payments.PaymentAddress Windows.ApplicationModel.Payments.PaymentResponse::get_ShippingAddress()
|
|
364
|
+
@_property
|
|
365
|
+
def shipping_address(self) -> PaymentAddress: ...
|
|
366
|
+
# Windows.ApplicationModel.Payments.PaymentShippingOption Windows.ApplicationModel.Payments.PaymentResponse::get_ShippingOption()
|
|
367
|
+
@_property
|
|
368
|
+
def shipping_option(self) -> PaymentShippingOption: ...
|
|
369
|
+
|
|
370
|
+
@typing.final
|
|
371
|
+
class PaymentShippingOption(winrt.system.Object):
|
|
372
|
+
@typing.overload
|
|
373
|
+
def __new__(cls: typing.Type[Self], label: str, amount: PaymentCurrencyAmount) -> Self: ...
|
|
374
|
+
@typing.overload
|
|
375
|
+
def __new__(cls: typing.Type[Self], label: str, amount: PaymentCurrencyAmount, selected: bool) -> Self: ...
|
|
376
|
+
@typing.overload
|
|
377
|
+
def __new__(cls: typing.Type[Self], label: str, amount: PaymentCurrencyAmount, selected: bool, tag: str) -> Self: ...
|
|
378
|
+
# System.String Windows.ApplicationModel.Payments.PaymentShippingOption::get_Tag()
|
|
379
|
+
@_property
|
|
380
|
+
def tag(self) -> str: ...
|
|
381
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentShippingOption::put_Tag(System.String)
|
|
382
|
+
@tag.setter
|
|
383
|
+
def tag(self, value: str) -> None: ...
|
|
384
|
+
# System.String Windows.ApplicationModel.Payments.PaymentShippingOption::get_Label()
|
|
385
|
+
@_property
|
|
386
|
+
def label(self) -> str: ...
|
|
387
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentShippingOption::put_Label(System.String)
|
|
388
|
+
@label.setter
|
|
389
|
+
def label(self, value: str) -> None: ...
|
|
390
|
+
# System.Boolean Windows.ApplicationModel.Payments.PaymentShippingOption::get_IsSelected()
|
|
391
|
+
@_property
|
|
392
|
+
def is_selected(self) -> bool: ...
|
|
393
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentShippingOption::put_IsSelected(System.Boolean)
|
|
394
|
+
@is_selected.setter
|
|
395
|
+
def is_selected(self, value: bool) -> None: ...
|
|
396
|
+
# Windows.ApplicationModel.Payments.PaymentCurrencyAmount Windows.ApplicationModel.Payments.PaymentShippingOption::get_Amount()
|
|
397
|
+
@_property
|
|
398
|
+
def amount(self) -> PaymentCurrencyAmount: ...
|
|
399
|
+
# System.Void Windows.ApplicationModel.Payments.PaymentShippingOption::put_Amount(Windows.ApplicationModel.Payments.PaymentCurrencyAmount)
|
|
400
|
+
@amount.setter
|
|
401
|
+
def amount(self, value: PaymentCurrencyAmount) -> None: ...
|
|
402
|
+
|
|
403
|
+
@typing.final
|
|
404
|
+
class PaymentToken(winrt.system.Object):
|
|
405
|
+
@typing.overload
|
|
406
|
+
def __new__(cls: typing.Type[Self], payment_method_id: str) -> Self: ...
|
|
407
|
+
@typing.overload
|
|
408
|
+
def __new__(cls: typing.Type[Self], payment_method_id: str, json_details: str) -> Self: ...
|
|
409
|
+
# System.String Windows.ApplicationModel.Payments.PaymentToken::get_JsonDetails()
|
|
410
|
+
@_property
|
|
411
|
+
def json_details(self) -> str: ...
|
|
412
|
+
# System.String Windows.ApplicationModel.Payments.PaymentToken::get_PaymentMethodId()
|
|
413
|
+
@_property
|
|
414
|
+
def payment_method_id(self) -> str: ...
|
|
415
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
import uuid as _uuid
|
|
6
|
+
|
|
7
|
+
import winrt.system
|
|
8
|
+
from winrt._winrt_windows_applicationmodel_payments import (
|
|
9
|
+
PaymentAddress,
|
|
10
|
+
PaymentCanMakePaymentResult,
|
|
11
|
+
PaymentCurrencyAmount,
|
|
12
|
+
PaymentDetails,
|
|
13
|
+
PaymentDetailsModifier,
|
|
14
|
+
PaymentItem,
|
|
15
|
+
PaymentMediator,
|
|
16
|
+
PaymentMerchantInfo,
|
|
17
|
+
PaymentMethodData,
|
|
18
|
+
PaymentOptions,
|
|
19
|
+
PaymentRequest,
|
|
20
|
+
PaymentRequestChangedArgs,
|
|
21
|
+
PaymentRequestChangedResult,
|
|
22
|
+
PaymentRequestSubmitResult,
|
|
23
|
+
PaymentResponse,
|
|
24
|
+
PaymentShippingOption,
|
|
25
|
+
PaymentToken,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
__all__ = [
|
|
29
|
+
"PaymentCanMakePaymentResultStatus",
|
|
30
|
+
"PaymentOptionPresence",
|
|
31
|
+
"PaymentRequestChangeKind",
|
|
32
|
+
"PaymentRequestCompletionStatus",
|
|
33
|
+
"PaymentRequestStatus",
|
|
34
|
+
"PaymentShippingType",
|
|
35
|
+
"PaymentAddress",
|
|
36
|
+
"PaymentCanMakePaymentResult",
|
|
37
|
+
"PaymentCurrencyAmount",
|
|
38
|
+
"PaymentDetails",
|
|
39
|
+
"PaymentDetailsModifier",
|
|
40
|
+
"PaymentItem",
|
|
41
|
+
"PaymentMediator",
|
|
42
|
+
"PaymentMerchantInfo",
|
|
43
|
+
"PaymentMethodData",
|
|
44
|
+
"PaymentOptions",
|
|
45
|
+
"PaymentRequest",
|
|
46
|
+
"PaymentRequestChangedArgs",
|
|
47
|
+
"PaymentRequestChangedResult",
|
|
48
|
+
"PaymentRequestSubmitResult",
|
|
49
|
+
"PaymentResponse",
|
|
50
|
+
"PaymentShippingOption",
|
|
51
|
+
"PaymentToken",
|
|
52
|
+
"PaymentRequestChangedHandler",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
class PaymentCanMakePaymentResultStatus(enum.IntEnum):
|
|
56
|
+
UNKNOWN = 0
|
|
57
|
+
YES = 1
|
|
58
|
+
NO = 2
|
|
59
|
+
NOT_ALLOWED = 3
|
|
60
|
+
USER_NOT_SIGNED_IN = 4
|
|
61
|
+
SPECIFIED_PAYMENT_METHOD_IDS_NOT_SUPPORTED = 5
|
|
62
|
+
NO_QUALIFYING_CARD_ON_FILE = 6
|
|
63
|
+
|
|
64
|
+
class PaymentOptionPresence(enum.IntEnum):
|
|
65
|
+
NONE = 0
|
|
66
|
+
OPTIONAL = 1
|
|
67
|
+
REQUIRED = 2
|
|
68
|
+
|
|
69
|
+
class PaymentRequestChangeKind(enum.IntEnum):
|
|
70
|
+
SHIPPING_OPTION = 0
|
|
71
|
+
SHIPPING_ADDRESS = 1
|
|
72
|
+
|
|
73
|
+
class PaymentRequestCompletionStatus(enum.IntEnum):
|
|
74
|
+
SUCCEEDED = 0
|
|
75
|
+
FAILED = 1
|
|
76
|
+
UNKNOWN = 2
|
|
77
|
+
|
|
78
|
+
class PaymentRequestStatus(enum.IntEnum):
|
|
79
|
+
SUCCEEDED = 0
|
|
80
|
+
FAILED = 1
|
|
81
|
+
CANCELED = 2
|
|
82
|
+
|
|
83
|
+
class PaymentShippingType(enum.IntEnum):
|
|
84
|
+
SHIPPING = 0
|
|
85
|
+
DELIVERY = 1
|
|
86
|
+
PICKUP = 2
|
|
87
|
+
|
|
88
|
+
PaymentRequestChangedHandler = typing.Callable[[PaymentRequest, PaymentRequestChangedArgs], None]
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.Payments
|
|
3
|
+
Version: 3.2.1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
+
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime~=3.2.1.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]~=3.2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]~=3.2.1.0; extra == "all"
|
|
19
|
+
|
|
20
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
|
+
|
|
22
|
+
# winrt-Windows.ApplicationModel.Payments
|
|
23
|
+
|
|
24
|
+
Windows Runtime (WinRT) APIs for for the `Windows.ApplicationModel.Payments` namespace.
|
|
25
|
+
|
|
26
|
+
This package provides the `winrt.windows.applicationmodel.payments` module.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
winrt/_winrt_windows_applicationmodel_payments.cp314-win32.pyd,sha256=-_Rmp2YLnrNQzWNarm8f3pZWc0L-Iroyn4dLOPWlpk8,373248
|
|
2
|
+
winrt/_winrt_windows_applicationmodel_payments.pyi,sha256=5Mvo4UL5W-Ygm1eaDakZ2zyODsimPv-2BfLNz1sDz44,24872
|
|
3
|
+
winrt/windows/applicationmodel/payments/__init__.py,sha256=NWg1nfCAivltSBH8cvJ7ClyOPM4ZZ6-eIWcwnRI9LPw,2124
|
|
4
|
+
winrt/windows/applicationmodel/payments/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_windows_applicationmodel_payments-3.2.1.dist-info/METADATA,sha256=xoBJxHx_7vS-x_pVX0XcN2NmGlq-_mCjpyR7R5Q_W3s,1172
|
|
6
|
+
winrt_windows_applicationmodel_payments-3.2.1.dist-info/WHEEL,sha256=avp3B09fSRXVHn4cshTNKc58MtFVN-cVe0NyrqeYT2s,97
|
|
7
|
+
winrt_windows_applicationmodel_payments-3.2.1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_windows_applicationmodel_payments-3.2.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|