winrt-Windows.ApplicationModel.Payments 2.2.0__cp313-cp313-win_arm64.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.cp313-win_arm64.pyd +0 -0
- winrt/_winrt_windows_applicationmodel_payments.pyi +351 -0
- winrt/windows/applicationmodel/payments/__init__.py +87 -0
- winrt/windows/applicationmodel/payments/py.typed +0 -0
- winrt_Windows.ApplicationModel.Payments-2.2.0.dist-info/METADATA +26 -0
- winrt_Windows.ApplicationModel.Payments-2.2.0.dist-info/RECORD +8 -0
- winrt_Windows.ApplicationModel.Payments-2.2.0.dist-info/WHEEL +5 -0
- winrt_Windows.ApplicationModel.Payments-2.2.0.dist-info/top_level.txt +1 -0
|
Binary file
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
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
|
+
@staticmethod
|
|
23
|
+
def _from(obj: winrt.system.Object, /) -> PaymentAddress: ...
|
|
24
|
+
def __new__(cls: typing.Type[PaymentAddress]) -> PaymentAddress: ...
|
|
25
|
+
@_property
|
|
26
|
+
def sorting_code(self) -> str: ...
|
|
27
|
+
@sorting_code.setter
|
|
28
|
+
def sorting_code(self, value: str) -> None: ...
|
|
29
|
+
@_property
|
|
30
|
+
def region(self) -> str: ...
|
|
31
|
+
@region.setter
|
|
32
|
+
def region(self, value: str) -> None: ...
|
|
33
|
+
@_property
|
|
34
|
+
def recipient(self) -> str: ...
|
|
35
|
+
@recipient.setter
|
|
36
|
+
def recipient(self, value: str) -> None: ...
|
|
37
|
+
@_property
|
|
38
|
+
def postal_code(self) -> str: ...
|
|
39
|
+
@postal_code.setter
|
|
40
|
+
def postal_code(self, value: str) -> None: ...
|
|
41
|
+
@_property
|
|
42
|
+
def phone_number(self) -> str: ...
|
|
43
|
+
@phone_number.setter
|
|
44
|
+
def phone_number(self, value: str) -> None: ...
|
|
45
|
+
@_property
|
|
46
|
+
def organization(self) -> str: ...
|
|
47
|
+
@organization.setter
|
|
48
|
+
def organization(self, value: str) -> None: ...
|
|
49
|
+
@_property
|
|
50
|
+
def language_code(self) -> str: ...
|
|
51
|
+
@language_code.setter
|
|
52
|
+
def language_code(self, value: str) -> None: ...
|
|
53
|
+
@_property
|
|
54
|
+
def dependent_locality(self) -> str: ...
|
|
55
|
+
@dependent_locality.setter
|
|
56
|
+
def dependent_locality(self, value: str) -> None: ...
|
|
57
|
+
@_property
|
|
58
|
+
def country(self) -> str: ...
|
|
59
|
+
@country.setter
|
|
60
|
+
def country(self, value: str) -> None: ...
|
|
61
|
+
@_property
|
|
62
|
+
def city(self) -> str: ...
|
|
63
|
+
@city.setter
|
|
64
|
+
def city(self, value: str) -> None: ...
|
|
65
|
+
@_property
|
|
66
|
+
def address_lines(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
67
|
+
@address_lines.setter
|
|
68
|
+
def address_lines(self, value: typing.Optional[windows_foundation_collections.IVectorView[str]]) -> None: ...
|
|
69
|
+
@_property
|
|
70
|
+
def properties(self) -> typing.Optional[windows_foundation_collections.ValueSet]: ...
|
|
71
|
+
|
|
72
|
+
@typing.final
|
|
73
|
+
class PaymentCanMakePaymentResult(winrt.system.Object):
|
|
74
|
+
@staticmethod
|
|
75
|
+
def _from(obj: winrt.system.Object, /) -> PaymentCanMakePaymentResult: ...
|
|
76
|
+
def __new__(cls: typing.Type[PaymentCanMakePaymentResult], value: PaymentCanMakePaymentResultStatus) -> PaymentCanMakePaymentResult: ...
|
|
77
|
+
@_property
|
|
78
|
+
def status(self) -> PaymentCanMakePaymentResultStatus: ...
|
|
79
|
+
|
|
80
|
+
@typing.final
|
|
81
|
+
class PaymentCurrencyAmount(winrt.system.Object):
|
|
82
|
+
@staticmethod
|
|
83
|
+
def _from(obj: winrt.system.Object, /) -> PaymentCurrencyAmount: ...
|
|
84
|
+
@typing.overload
|
|
85
|
+
def __new__(cls: typing.Type[PaymentCurrencyAmount], value: str, currency: str) -> PaymentCurrencyAmount: ...
|
|
86
|
+
@typing.overload
|
|
87
|
+
def __new__(cls: typing.Type[PaymentCurrencyAmount], value: str, currency: str, currency_system: str) -> PaymentCurrencyAmount: ...
|
|
88
|
+
@_property
|
|
89
|
+
def value(self) -> str: ...
|
|
90
|
+
@value.setter
|
|
91
|
+
def value(self, value: str) -> None: ...
|
|
92
|
+
@_property
|
|
93
|
+
def currency_system(self) -> str: ...
|
|
94
|
+
@currency_system.setter
|
|
95
|
+
def currency_system(self, value: str) -> None: ...
|
|
96
|
+
@_property
|
|
97
|
+
def currency(self) -> str: ...
|
|
98
|
+
@currency.setter
|
|
99
|
+
def currency(self, value: str) -> None: ...
|
|
100
|
+
|
|
101
|
+
@typing.final
|
|
102
|
+
class PaymentDetails(winrt.system.Object):
|
|
103
|
+
@staticmethod
|
|
104
|
+
def _from(obj: winrt.system.Object, /) -> PaymentDetails: ...
|
|
105
|
+
@typing.overload
|
|
106
|
+
def __new__(cls: typing.Type[PaymentDetails], total: typing.Optional[PaymentItem]) -> PaymentDetails: ...
|
|
107
|
+
@typing.overload
|
|
108
|
+
def __new__(cls: typing.Type[PaymentDetails], total: typing.Optional[PaymentItem], display_items: typing.Iterable[PaymentItem]) -> PaymentDetails: ...
|
|
109
|
+
@typing.overload
|
|
110
|
+
def __new__(cls: typing.Type[PaymentDetails]) -> PaymentDetails: ...
|
|
111
|
+
@_property
|
|
112
|
+
def total(self) -> typing.Optional[PaymentItem]: ...
|
|
113
|
+
@total.setter
|
|
114
|
+
def total(self, value: typing.Optional[PaymentItem]) -> None: ...
|
|
115
|
+
@_property
|
|
116
|
+
def shipping_options(self) -> typing.Optional[windows_foundation_collections.IVectorView[PaymentShippingOption]]: ...
|
|
117
|
+
@shipping_options.setter
|
|
118
|
+
def shipping_options(self, value: typing.Optional[windows_foundation_collections.IVectorView[PaymentShippingOption]]) -> None: ...
|
|
119
|
+
@_property
|
|
120
|
+
def modifiers(self) -> typing.Optional[windows_foundation_collections.IVectorView[PaymentDetailsModifier]]: ...
|
|
121
|
+
@modifiers.setter
|
|
122
|
+
def modifiers(self, value: typing.Optional[windows_foundation_collections.IVectorView[PaymentDetailsModifier]]) -> None: ...
|
|
123
|
+
@_property
|
|
124
|
+
def display_items(self) -> typing.Optional[windows_foundation_collections.IVectorView[PaymentItem]]: ...
|
|
125
|
+
@display_items.setter
|
|
126
|
+
def display_items(self, value: typing.Optional[windows_foundation_collections.IVectorView[PaymentItem]]) -> None: ...
|
|
127
|
+
|
|
128
|
+
@typing.final
|
|
129
|
+
class PaymentDetailsModifier(winrt.system.Object):
|
|
130
|
+
@staticmethod
|
|
131
|
+
def _from(obj: winrt.system.Object, /) -> PaymentDetailsModifier: ...
|
|
132
|
+
@typing.overload
|
|
133
|
+
def __new__(cls: typing.Type[PaymentDetailsModifier], supported_method_ids: typing.Iterable[str], total: typing.Optional[PaymentItem]) -> PaymentDetailsModifier: ...
|
|
134
|
+
@typing.overload
|
|
135
|
+
def __new__(cls: typing.Type[PaymentDetailsModifier], supported_method_ids: typing.Iterable[str], total: typing.Optional[PaymentItem], additional_display_items: typing.Iterable[PaymentItem]) -> PaymentDetailsModifier: ...
|
|
136
|
+
@typing.overload
|
|
137
|
+
def __new__(cls: typing.Type[PaymentDetailsModifier], supported_method_ids: typing.Iterable[str], total: typing.Optional[PaymentItem], additional_display_items: typing.Iterable[PaymentItem], json_data: str) -> PaymentDetailsModifier: ...
|
|
138
|
+
@_property
|
|
139
|
+
def additional_display_items(self) -> typing.Optional[windows_foundation_collections.IVectorView[PaymentItem]]: ...
|
|
140
|
+
@_property
|
|
141
|
+
def json_data(self) -> str: ...
|
|
142
|
+
@_property
|
|
143
|
+
def supported_method_ids(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
144
|
+
@_property
|
|
145
|
+
def total(self) -> typing.Optional[PaymentItem]: ...
|
|
146
|
+
|
|
147
|
+
@typing.final
|
|
148
|
+
class PaymentItem(winrt.system.Object):
|
|
149
|
+
@staticmethod
|
|
150
|
+
def _from(obj: winrt.system.Object, /) -> PaymentItem: ...
|
|
151
|
+
def __new__(cls: typing.Type[PaymentItem], label: str, amount: typing.Optional[PaymentCurrencyAmount]) -> PaymentItem: ...
|
|
152
|
+
@_property
|
|
153
|
+
def pending(self) -> bool: ...
|
|
154
|
+
@pending.setter
|
|
155
|
+
def pending(self, value: bool) -> None: ...
|
|
156
|
+
@_property
|
|
157
|
+
def label(self) -> str: ...
|
|
158
|
+
@label.setter
|
|
159
|
+
def label(self, value: str) -> None: ...
|
|
160
|
+
@_property
|
|
161
|
+
def amount(self) -> typing.Optional[PaymentCurrencyAmount]: ...
|
|
162
|
+
@amount.setter
|
|
163
|
+
def amount(self, value: typing.Optional[PaymentCurrencyAmount]) -> None: ...
|
|
164
|
+
|
|
165
|
+
@typing.final
|
|
166
|
+
class PaymentMediator(winrt.system.Object):
|
|
167
|
+
@staticmethod
|
|
168
|
+
def _from(obj: winrt.system.Object, /) -> PaymentMediator: ...
|
|
169
|
+
def __new__(cls: typing.Type[PaymentMediator]) -> PaymentMediator: ...
|
|
170
|
+
def can_make_payment_async(self, payment_request: typing.Optional[PaymentRequest], /) -> windows_foundation.IAsyncOperation[PaymentCanMakePaymentResult]: ...
|
|
171
|
+
def get_supported_method_ids_async(self) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[str]]: ...
|
|
172
|
+
@typing.overload
|
|
173
|
+
def submit_payment_request_async(self, payment_request: typing.Optional[PaymentRequest], /) -> windows_foundation.IAsyncOperation[PaymentRequestSubmitResult]: ...
|
|
174
|
+
@typing.overload
|
|
175
|
+
def submit_payment_request_async(self, payment_request: typing.Optional[PaymentRequest], change_handler: typing.Optional[PaymentRequestChangedHandler], /) -> windows_foundation.IAsyncOperation[PaymentRequestSubmitResult]: ...
|
|
176
|
+
|
|
177
|
+
@typing.final
|
|
178
|
+
class PaymentMerchantInfo(winrt.system.Object):
|
|
179
|
+
@staticmethod
|
|
180
|
+
def _from(obj: winrt.system.Object, /) -> PaymentMerchantInfo: ...
|
|
181
|
+
@typing.overload
|
|
182
|
+
def __new__(cls: typing.Type[PaymentMerchantInfo], uri: typing.Optional[windows_foundation.Uri]) -> PaymentMerchantInfo: ...
|
|
183
|
+
@typing.overload
|
|
184
|
+
def __new__(cls: typing.Type[PaymentMerchantInfo]) -> PaymentMerchantInfo: ...
|
|
185
|
+
@_property
|
|
186
|
+
def package_full_name(self) -> str: ...
|
|
187
|
+
@_property
|
|
188
|
+
def uri(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
189
|
+
|
|
190
|
+
@typing.final
|
|
191
|
+
class PaymentMethodData(winrt.system.Object):
|
|
192
|
+
@staticmethod
|
|
193
|
+
def _from(obj: winrt.system.Object, /) -> PaymentMethodData: ...
|
|
194
|
+
@typing.overload
|
|
195
|
+
def __new__(cls: typing.Type[PaymentMethodData], supported_method_ids: typing.Iterable[str]) -> PaymentMethodData: ...
|
|
196
|
+
@typing.overload
|
|
197
|
+
def __new__(cls: typing.Type[PaymentMethodData], supported_method_ids: typing.Iterable[str], json_data: str) -> PaymentMethodData: ...
|
|
198
|
+
@_property
|
|
199
|
+
def json_data(self) -> str: ...
|
|
200
|
+
@_property
|
|
201
|
+
def supported_method_ids(self) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
|
|
202
|
+
|
|
203
|
+
@typing.final
|
|
204
|
+
class PaymentOptions(winrt.system.Object):
|
|
205
|
+
@staticmethod
|
|
206
|
+
def _from(obj: winrt.system.Object, /) -> PaymentOptions: ...
|
|
207
|
+
def __new__(cls: typing.Type[PaymentOptions]) -> PaymentOptions: ...
|
|
208
|
+
@_property
|
|
209
|
+
def shipping_type(self) -> PaymentShippingType: ...
|
|
210
|
+
@shipping_type.setter
|
|
211
|
+
def shipping_type(self, value: PaymentShippingType) -> None: ...
|
|
212
|
+
@_property
|
|
213
|
+
def request_shipping(self) -> bool: ...
|
|
214
|
+
@request_shipping.setter
|
|
215
|
+
def request_shipping(self, value: bool) -> None: ...
|
|
216
|
+
@_property
|
|
217
|
+
def request_payer_phone_number(self) -> PaymentOptionPresence: ...
|
|
218
|
+
@request_payer_phone_number.setter
|
|
219
|
+
def request_payer_phone_number(self, value: PaymentOptionPresence) -> None: ...
|
|
220
|
+
@_property
|
|
221
|
+
def request_payer_name(self) -> PaymentOptionPresence: ...
|
|
222
|
+
@request_payer_name.setter
|
|
223
|
+
def request_payer_name(self, value: PaymentOptionPresence) -> None: ...
|
|
224
|
+
@_property
|
|
225
|
+
def request_payer_email(self) -> PaymentOptionPresence: ...
|
|
226
|
+
@request_payer_email.setter
|
|
227
|
+
def request_payer_email(self, value: PaymentOptionPresence) -> None: ...
|
|
228
|
+
|
|
229
|
+
@typing.final
|
|
230
|
+
class PaymentRequest(winrt.system.Object):
|
|
231
|
+
@staticmethod
|
|
232
|
+
def _from(obj: winrt.system.Object, /) -> PaymentRequest: ...
|
|
233
|
+
@typing.overload
|
|
234
|
+
def __new__(cls: typing.Type[PaymentRequest], details: typing.Optional[PaymentDetails], method_data: typing.Iterable[PaymentMethodData], merchant_info: typing.Optional[PaymentMerchantInfo], options: typing.Optional[PaymentOptions], id: str) -> PaymentRequest: ...
|
|
235
|
+
@typing.overload
|
|
236
|
+
def __new__(cls: typing.Type[PaymentRequest], details: typing.Optional[PaymentDetails], method_data: typing.Iterable[PaymentMethodData]) -> PaymentRequest: ...
|
|
237
|
+
@typing.overload
|
|
238
|
+
def __new__(cls: typing.Type[PaymentRequest], details: typing.Optional[PaymentDetails], method_data: typing.Iterable[PaymentMethodData], merchant_info: typing.Optional[PaymentMerchantInfo]) -> PaymentRequest: ...
|
|
239
|
+
@typing.overload
|
|
240
|
+
def __new__(cls: typing.Type[PaymentRequest], details: typing.Optional[PaymentDetails], method_data: typing.Iterable[PaymentMethodData], merchant_info: typing.Optional[PaymentMerchantInfo], options: typing.Optional[PaymentOptions]) -> PaymentRequest: ...
|
|
241
|
+
@_property
|
|
242
|
+
def details(self) -> typing.Optional[PaymentDetails]: ...
|
|
243
|
+
@_property
|
|
244
|
+
def merchant_info(self) -> typing.Optional[PaymentMerchantInfo]: ...
|
|
245
|
+
@_property
|
|
246
|
+
def method_data(self) -> typing.Optional[windows_foundation_collections.IVectorView[PaymentMethodData]]: ...
|
|
247
|
+
@_property
|
|
248
|
+
def options(self) -> typing.Optional[PaymentOptions]: ...
|
|
249
|
+
@_property
|
|
250
|
+
def id(self) -> str: ...
|
|
251
|
+
|
|
252
|
+
@typing.final
|
|
253
|
+
class PaymentRequestChangedArgs(winrt.system.Object):
|
|
254
|
+
@staticmethod
|
|
255
|
+
def _from(obj: winrt.system.Object, /) -> PaymentRequestChangedArgs: ...
|
|
256
|
+
def acknowledge(self, change_result: typing.Optional[PaymentRequestChangedResult], /) -> None: ...
|
|
257
|
+
@_property
|
|
258
|
+
def change_kind(self) -> PaymentRequestChangeKind: ...
|
|
259
|
+
@_property
|
|
260
|
+
def selected_shipping_option(self) -> typing.Optional[PaymentShippingOption]: ...
|
|
261
|
+
@_property
|
|
262
|
+
def shipping_address(self) -> typing.Optional[PaymentAddress]: ...
|
|
263
|
+
|
|
264
|
+
@typing.final
|
|
265
|
+
class PaymentRequestChangedResult(winrt.system.Object):
|
|
266
|
+
@staticmethod
|
|
267
|
+
def _from(obj: winrt.system.Object, /) -> PaymentRequestChangedResult: ...
|
|
268
|
+
@typing.overload
|
|
269
|
+
def __new__(cls: typing.Type[PaymentRequestChangedResult], change_accepted_by_merchant: bool) -> PaymentRequestChangedResult: ...
|
|
270
|
+
@typing.overload
|
|
271
|
+
def __new__(cls: typing.Type[PaymentRequestChangedResult], change_accepted_by_merchant: bool, updated_payment_details: typing.Optional[PaymentDetails]) -> PaymentRequestChangedResult: ...
|
|
272
|
+
@_property
|
|
273
|
+
def updated_payment_details(self) -> typing.Optional[PaymentDetails]: ...
|
|
274
|
+
@updated_payment_details.setter
|
|
275
|
+
def updated_payment_details(self, value: typing.Optional[PaymentDetails]) -> None: ...
|
|
276
|
+
@_property
|
|
277
|
+
def message(self) -> str: ...
|
|
278
|
+
@message.setter
|
|
279
|
+
def message(self, value: str) -> None: ...
|
|
280
|
+
@_property
|
|
281
|
+
def change_accepted_by_merchant(self) -> bool: ...
|
|
282
|
+
@change_accepted_by_merchant.setter
|
|
283
|
+
def change_accepted_by_merchant(self, value: bool) -> None: ...
|
|
284
|
+
|
|
285
|
+
@typing.final
|
|
286
|
+
class PaymentRequestSubmitResult(winrt.system.Object):
|
|
287
|
+
@staticmethod
|
|
288
|
+
def _from(obj: winrt.system.Object, /) -> PaymentRequestSubmitResult: ...
|
|
289
|
+
@_property
|
|
290
|
+
def response(self) -> typing.Optional[PaymentResponse]: ...
|
|
291
|
+
@_property
|
|
292
|
+
def status(self) -> PaymentRequestStatus: ...
|
|
293
|
+
|
|
294
|
+
@typing.final
|
|
295
|
+
class PaymentResponse(winrt.system.Object):
|
|
296
|
+
@staticmethod
|
|
297
|
+
def _from(obj: winrt.system.Object, /) -> PaymentResponse: ...
|
|
298
|
+
def complete_async(self, status: PaymentRequestCompletionStatus, /) -> windows_foundation.IAsyncAction: ...
|
|
299
|
+
@_property
|
|
300
|
+
def payer_email(self) -> str: ...
|
|
301
|
+
@_property
|
|
302
|
+
def payer_name(self) -> str: ...
|
|
303
|
+
@_property
|
|
304
|
+
def payer_phone_number(self) -> str: ...
|
|
305
|
+
@_property
|
|
306
|
+
def payment_token(self) -> typing.Optional[PaymentToken]: ...
|
|
307
|
+
@_property
|
|
308
|
+
def shipping_address(self) -> typing.Optional[PaymentAddress]: ...
|
|
309
|
+
@_property
|
|
310
|
+
def shipping_option(self) -> typing.Optional[PaymentShippingOption]: ...
|
|
311
|
+
|
|
312
|
+
@typing.final
|
|
313
|
+
class PaymentShippingOption(winrt.system.Object):
|
|
314
|
+
@staticmethod
|
|
315
|
+
def _from(obj: winrt.system.Object, /) -> PaymentShippingOption: ...
|
|
316
|
+
@typing.overload
|
|
317
|
+
def __new__(cls: typing.Type[PaymentShippingOption], label: str, amount: typing.Optional[PaymentCurrencyAmount]) -> PaymentShippingOption: ...
|
|
318
|
+
@typing.overload
|
|
319
|
+
def __new__(cls: typing.Type[PaymentShippingOption], label: str, amount: typing.Optional[PaymentCurrencyAmount], selected: bool) -> PaymentShippingOption: ...
|
|
320
|
+
@typing.overload
|
|
321
|
+
def __new__(cls: typing.Type[PaymentShippingOption], label: str, amount: typing.Optional[PaymentCurrencyAmount], selected: bool, tag: str) -> PaymentShippingOption: ...
|
|
322
|
+
@_property
|
|
323
|
+
def tag(self) -> str: ...
|
|
324
|
+
@tag.setter
|
|
325
|
+
def tag(self, value: str) -> None: ...
|
|
326
|
+
@_property
|
|
327
|
+
def label(self) -> str: ...
|
|
328
|
+
@label.setter
|
|
329
|
+
def label(self, value: str) -> None: ...
|
|
330
|
+
@_property
|
|
331
|
+
def is_selected(self) -> bool: ...
|
|
332
|
+
@is_selected.setter
|
|
333
|
+
def is_selected(self, value: bool) -> None: ...
|
|
334
|
+
@_property
|
|
335
|
+
def amount(self) -> typing.Optional[PaymentCurrencyAmount]: ...
|
|
336
|
+
@amount.setter
|
|
337
|
+
def amount(self, value: typing.Optional[PaymentCurrencyAmount]) -> None: ...
|
|
338
|
+
|
|
339
|
+
@typing.final
|
|
340
|
+
class PaymentToken(winrt.system.Object):
|
|
341
|
+
@staticmethod
|
|
342
|
+
def _from(obj: winrt.system.Object, /) -> PaymentToken: ...
|
|
343
|
+
@typing.overload
|
|
344
|
+
def __new__(cls: typing.Type[PaymentToken], payment_method_id: str) -> PaymentToken: ...
|
|
345
|
+
@typing.overload
|
|
346
|
+
def __new__(cls: typing.Type[PaymentToken], payment_method_id: str, json_details: str) -> PaymentToken: ...
|
|
347
|
+
@_property
|
|
348
|
+
def json_details(self) -> str: ...
|
|
349
|
+
@_property
|
|
350
|
+
def payment_method_id(self) -> str: ...
|
|
351
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import enum
|
|
4
|
+
import typing
|
|
5
|
+
import uuid as _uuid
|
|
6
|
+
|
|
7
|
+
import winrt.system
|
|
8
|
+
from winrt import _winrt_windows_applicationmodel_payments
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"PaymentCanMakePaymentResultStatus",
|
|
12
|
+
"PaymentOptionPresence",
|
|
13
|
+
"PaymentRequestChangeKind",
|
|
14
|
+
"PaymentRequestCompletionStatus",
|
|
15
|
+
"PaymentRequestStatus",
|
|
16
|
+
"PaymentShippingType",
|
|
17
|
+
"PaymentAddress",
|
|
18
|
+
"PaymentCanMakePaymentResult",
|
|
19
|
+
"PaymentCurrencyAmount",
|
|
20
|
+
"PaymentDetails",
|
|
21
|
+
"PaymentDetailsModifier",
|
|
22
|
+
"PaymentItem",
|
|
23
|
+
"PaymentMediator",
|
|
24
|
+
"PaymentMerchantInfo",
|
|
25
|
+
"PaymentMethodData",
|
|
26
|
+
"PaymentOptions",
|
|
27
|
+
"PaymentRequest",
|
|
28
|
+
"PaymentRequestChangedArgs",
|
|
29
|
+
"PaymentRequestChangedResult",
|
|
30
|
+
"PaymentRequestSubmitResult",
|
|
31
|
+
"PaymentResponse",
|
|
32
|
+
"PaymentShippingOption",
|
|
33
|
+
"PaymentToken",
|
|
34
|
+
"PaymentRequestChangedHandler",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
class PaymentCanMakePaymentResultStatus(enum.IntEnum):
|
|
38
|
+
UNKNOWN = 0
|
|
39
|
+
YES = 1
|
|
40
|
+
NO = 2
|
|
41
|
+
NOT_ALLOWED = 3
|
|
42
|
+
USER_NOT_SIGNED_IN = 4
|
|
43
|
+
SPECIFIED_PAYMENT_METHOD_IDS_NOT_SUPPORTED = 5
|
|
44
|
+
NO_QUALIFYING_CARD_ON_FILE = 6
|
|
45
|
+
|
|
46
|
+
class PaymentOptionPresence(enum.IntEnum):
|
|
47
|
+
NONE = 0
|
|
48
|
+
OPTIONAL = 1
|
|
49
|
+
REQUIRED = 2
|
|
50
|
+
|
|
51
|
+
class PaymentRequestChangeKind(enum.IntEnum):
|
|
52
|
+
SHIPPING_OPTION = 0
|
|
53
|
+
SHIPPING_ADDRESS = 1
|
|
54
|
+
|
|
55
|
+
class PaymentRequestCompletionStatus(enum.IntEnum):
|
|
56
|
+
SUCCEEDED = 0
|
|
57
|
+
FAILED = 1
|
|
58
|
+
UNKNOWN = 2
|
|
59
|
+
|
|
60
|
+
class PaymentRequestStatus(enum.IntEnum):
|
|
61
|
+
SUCCEEDED = 0
|
|
62
|
+
FAILED = 1
|
|
63
|
+
CANCELED = 2
|
|
64
|
+
|
|
65
|
+
class PaymentShippingType(enum.IntEnum):
|
|
66
|
+
SHIPPING = 0
|
|
67
|
+
DELIVERY = 1
|
|
68
|
+
PICKUP = 2
|
|
69
|
+
|
|
70
|
+
PaymentAddress = _winrt_windows_applicationmodel_payments.PaymentAddress
|
|
71
|
+
PaymentCanMakePaymentResult = _winrt_windows_applicationmodel_payments.PaymentCanMakePaymentResult
|
|
72
|
+
PaymentCurrencyAmount = _winrt_windows_applicationmodel_payments.PaymentCurrencyAmount
|
|
73
|
+
PaymentDetails = _winrt_windows_applicationmodel_payments.PaymentDetails
|
|
74
|
+
PaymentDetailsModifier = _winrt_windows_applicationmodel_payments.PaymentDetailsModifier
|
|
75
|
+
PaymentItem = _winrt_windows_applicationmodel_payments.PaymentItem
|
|
76
|
+
PaymentMediator = _winrt_windows_applicationmodel_payments.PaymentMediator
|
|
77
|
+
PaymentMerchantInfo = _winrt_windows_applicationmodel_payments.PaymentMerchantInfo
|
|
78
|
+
PaymentMethodData = _winrt_windows_applicationmodel_payments.PaymentMethodData
|
|
79
|
+
PaymentOptions = _winrt_windows_applicationmodel_payments.PaymentOptions
|
|
80
|
+
PaymentRequest = _winrt_windows_applicationmodel_payments.PaymentRequest
|
|
81
|
+
PaymentRequestChangedArgs = _winrt_windows_applicationmodel_payments.PaymentRequestChangedArgs
|
|
82
|
+
PaymentRequestChangedResult = _winrt_windows_applicationmodel_payments.PaymentRequestChangedResult
|
|
83
|
+
PaymentRequestSubmitResult = _winrt_windows_applicationmodel_payments.PaymentRequestSubmitResult
|
|
84
|
+
PaymentResponse = _winrt_windows_applicationmodel_payments.PaymentResponse
|
|
85
|
+
PaymentShippingOption = _winrt_windows_applicationmodel_payments.PaymentShippingOption
|
|
86
|
+
PaymentToken = _winrt_windows_applicationmodel_payments.PaymentToken
|
|
87
|
+
PaymentRequestChangedHandler = typing.Callable[[typing.Optional[PaymentRequest], typing.Optional[PaymentRequestChangedArgs]], None]
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.ApplicationModel.Payments
|
|
3
|
+
Version: 2.2.0
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: 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.14,>=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime ==2.2.0
|
|
16
|
+
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.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.cp313-win_arm64.pyd,sha256=682tt7KV2akD31Bymqps7GUq4p9koydx7dyCQxjrVAA,377344
|
|
2
|
+
winrt/_winrt_windows_applicationmodel_payments.pyi,sha256=rpTUknRRwjVo4yMKkvfBF2VvmuZLqRE45-2Fyl40JJo,16290
|
|
3
|
+
winrt/windows/applicationmodel/payments/__init__.py,sha256=4PzTM0_l6HZH37UlB94dKA7ZHfnrclvR_OxM1j-9Vws,3131
|
|
4
|
+
winrt/windows/applicationmodel/payments/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
winrt_Windows.ApplicationModel.Payments-2.2.0.dist-info/METADATA,sha256=5gOdsRracJt5ASCNK4TFHP4ukBiHhbqZUMPYWPWEvLo,1166
|
|
6
|
+
winrt_Windows.ApplicationModel.Payments-2.2.0.dist-info/WHEEL,sha256=Bc3zGnBzvnkuBaMd-KCqScACPFmA-93PSEDjeXqCzu8,101
|
|
7
|
+
winrt_Windows.ApplicationModel.Payments-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
|
|
8
|
+
winrt_Windows.ApplicationModel.Payments-2.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|