winrt-Windows.ApplicationModel.Payments.Provider 2.0.1__tar.gz → 2.2.0__tar.gz
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_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/PKG-INFO +6 -6
- winrt_windows_applicationmodel_payments_provider-2.2.0/all-requirements.txt +5 -0
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/py.Windows.ApplicationModel.Payments.Provider.cpp +270 -154
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_payments_provider-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/winrt/_winrt_windows_applicationmodel_payments_provider.pyi +14 -14
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/winrt/windows/applicationmodel/payments/provider/__init__.py +1 -1
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/PKG-INFO +6 -6
- winrt_windows_applicationmodel_payments_provider-2.2.0/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/requires.txt +6 -0
- winrt_windows_applicationmodel_payments_provider-2.0.1/all-requirements.txt +0 -5
- winrt_windows_applicationmodel_payments_provider-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_payments_provider-2.0.1/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/requires.txt +0 -6
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/winrt/windows/applicationmodel/payments/provider/py.typed +0 -0
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.2.0}/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Payments.Provider
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.ApplicationModel.Payments[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Payments[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.Payments.Provider.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
7
6
|
{
|
|
8
7
|
// ----- PaymentAppCanMakePaymentTriggerDetails class --------------------
|
|
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 1)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppCanMakePaymentTriggerDetails", L"ReportCanMakePaymentResult", 1))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(1);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppCanMakePaymentTriggerDetails", L"ReportCanMakePaymentResult", 1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
40
|
+
{
|
|
41
|
+
py::set_arg_count_version_error(1);
|
|
42
|
+
return nullptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Payments::PaymentCanMakePaymentResult>(args, 0);
|
|
40
46
|
|
|
41
47
|
self->obj.ReportCanMakePaymentResult(param0);
|
|
@@ -56,14 +62,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
56
62
|
|
|
57
63
|
static PyObject* PaymentAppCanMakePaymentTriggerDetails_get_Request(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentAppCanMakePaymentTriggerDetails* self, void* /*unused*/) noexcept
|
|
58
64
|
{
|
|
59
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppCanMakePaymentTriggerDetails", L"Request"))
|
|
60
|
-
{
|
|
61
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
62
|
-
return nullptr;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
65
|
try
|
|
66
66
|
{
|
|
67
|
+
static std::optional<bool> is_property_present{};
|
|
68
|
+
|
|
69
|
+
if (!is_property_present.has_value())
|
|
70
|
+
{
|
|
71
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppCanMakePaymentTriggerDetails", L"Request");
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (!is_property_present.value())
|
|
75
|
+
{
|
|
76
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
77
|
+
return nullptr;
|
|
78
|
+
}
|
|
79
|
+
|
|
67
80
|
return py::convert(self->obj.Request());
|
|
68
81
|
}
|
|
69
82
|
catch (...)
|
|
@@ -109,23 +122,20 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
109
122
|
{ }
|
|
110
123
|
};
|
|
111
124
|
|
|
112
|
-
static PyType_Slot _type_slots_PaymentAppCanMakePaymentTriggerDetails[] =
|
|
113
|
-
{
|
|
125
|
+
static PyType_Slot _type_slots_PaymentAppCanMakePaymentTriggerDetails[] = {
|
|
114
126
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PaymentAppCanMakePaymentTriggerDetails) },
|
|
115
127
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaymentAppCanMakePaymentTriggerDetails) },
|
|
116
128
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PaymentAppCanMakePaymentTriggerDetails) },
|
|
117
129
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PaymentAppCanMakePaymentTriggerDetails) },
|
|
118
|
-
{ }
|
|
130
|
+
{ }
|
|
119
131
|
};
|
|
120
132
|
|
|
121
|
-
static PyType_Spec type_spec_PaymentAppCanMakePaymentTriggerDetails =
|
|
122
|
-
{
|
|
133
|
+
static PyType_Spec type_spec_PaymentAppCanMakePaymentTriggerDetails = {
|
|
123
134
|
"winrt._winrt_windows_applicationmodel_payments_provider.PaymentAppCanMakePaymentTriggerDetails",
|
|
124
135
|
sizeof(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentAppCanMakePaymentTriggerDetails),
|
|
125
136
|
0,
|
|
126
137
|
Py_TPFLAGS_DEFAULT,
|
|
127
|
-
_type_slots_PaymentAppCanMakePaymentTriggerDetails
|
|
128
|
-
};
|
|
138
|
+
_type_slots_PaymentAppCanMakePaymentTriggerDetails};
|
|
129
139
|
|
|
130
140
|
// ----- PaymentAppManager class --------------------
|
|
131
141
|
|
|
@@ -150,14 +160,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
150
160
|
|
|
151
161
|
if (arg_count == 1)
|
|
152
162
|
{
|
|
153
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppManager", L"RegisterAsync", 1))
|
|
154
|
-
{
|
|
155
|
-
py::set_arg_count_version_error(1);
|
|
156
|
-
return nullptr;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
163
|
try
|
|
160
164
|
{
|
|
165
|
+
static std::optional<bool> is_overload_present{};
|
|
166
|
+
|
|
167
|
+
if (!is_overload_present.has_value())
|
|
168
|
+
{
|
|
169
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppManager", L"RegisterAsync", 1);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (!is_overload_present.value())
|
|
173
|
+
{
|
|
174
|
+
py::set_arg_count_version_error(1);
|
|
175
|
+
return nullptr;
|
|
176
|
+
}
|
|
177
|
+
|
|
161
178
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
|
|
162
179
|
|
|
163
180
|
return py::convert(self->obj.RegisterAsync(param0));
|
|
@@ -181,14 +198,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
181
198
|
|
|
182
199
|
if (arg_count == 0)
|
|
183
200
|
{
|
|
184
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppManager", L"UnregisterAsync", 0))
|
|
185
|
-
{
|
|
186
|
-
py::set_arg_count_version_error(0);
|
|
187
|
-
return nullptr;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
201
|
try
|
|
191
202
|
{
|
|
203
|
+
static std::optional<bool> is_overload_present{};
|
|
204
|
+
|
|
205
|
+
if (!is_overload_present.has_value())
|
|
206
|
+
{
|
|
207
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppManager", L"UnregisterAsync", 0);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (!is_overload_present.value())
|
|
211
|
+
{
|
|
212
|
+
py::set_arg_count_version_error(0);
|
|
213
|
+
return nullptr;
|
|
214
|
+
}
|
|
215
|
+
|
|
192
216
|
return py::convert(self->obj.UnregisterAsync());
|
|
193
217
|
}
|
|
194
218
|
catch (...)
|
|
@@ -206,14 +230,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
206
230
|
|
|
207
231
|
static PyObject* PaymentAppManager_get_Current(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
208
232
|
{
|
|
209
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppManager", L"Current"))
|
|
210
|
-
{
|
|
211
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
212
|
-
return nullptr;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
233
|
try
|
|
216
234
|
{
|
|
235
|
+
static std::optional<bool> is_property_present{};
|
|
236
|
+
|
|
237
|
+
if (!is_property_present.has_value())
|
|
238
|
+
{
|
|
239
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppManager", L"Current");
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
if (!is_property_present.value())
|
|
243
|
+
{
|
|
244
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
245
|
+
return nullptr;
|
|
246
|
+
}
|
|
247
|
+
|
|
217
248
|
return py::convert(winrt::Windows::ApplicationModel::Payments::Provider::PaymentAppManager::Current());
|
|
218
249
|
}
|
|
219
250
|
catch (...)
|
|
@@ -259,23 +290,20 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
259
290
|
{ }
|
|
260
291
|
};
|
|
261
292
|
|
|
262
|
-
static PyType_Slot _type_slots_PaymentAppManager[] =
|
|
263
|
-
{
|
|
293
|
+
static PyType_Slot _type_slots_PaymentAppManager[] = {
|
|
264
294
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PaymentAppManager) },
|
|
265
295
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaymentAppManager) },
|
|
266
296
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PaymentAppManager) },
|
|
267
297
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PaymentAppManager) },
|
|
268
|
-
{ }
|
|
298
|
+
{ }
|
|
269
299
|
};
|
|
270
300
|
|
|
271
|
-
static PyType_Spec type_spec_PaymentAppManager =
|
|
272
|
-
{
|
|
301
|
+
static PyType_Spec type_spec_PaymentAppManager = {
|
|
273
302
|
"winrt._winrt_windows_applicationmodel_payments_provider.PaymentAppManager",
|
|
274
303
|
sizeof(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentAppManager),
|
|
275
304
|
0,
|
|
276
305
|
Py_TPFLAGS_DEFAULT,
|
|
277
|
-
_type_slots_PaymentAppManager
|
|
278
|
-
};
|
|
306
|
+
_type_slots_PaymentAppManager};
|
|
279
307
|
|
|
280
308
|
static PyGetSetDef getset_PaymentAppManager_Static[] = {
|
|
281
309
|
{ "current", reinterpret_cast<getter>(PaymentAppManager_get_Current), nullptr, nullptr, nullptr },
|
|
@@ -326,14 +354,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
326
354
|
|
|
327
355
|
if (arg_count == 1)
|
|
328
356
|
{
|
|
329
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"AcceptAsync", 1))
|
|
330
|
-
{
|
|
331
|
-
py::set_arg_count_version_error(1);
|
|
332
|
-
return nullptr;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
357
|
try
|
|
336
358
|
{
|
|
359
|
+
static std::optional<bool> is_overload_present{};
|
|
360
|
+
|
|
361
|
+
if (!is_overload_present.has_value())
|
|
362
|
+
{
|
|
363
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"AcceptAsync", 1);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
if (!is_overload_present.value())
|
|
367
|
+
{
|
|
368
|
+
py::set_arg_count_version_error(1);
|
|
369
|
+
return nullptr;
|
|
370
|
+
}
|
|
371
|
+
|
|
337
372
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Payments::PaymentToken>(args, 0);
|
|
338
373
|
|
|
339
374
|
return py::convert(self->obj.AcceptAsync(param0));
|
|
@@ -357,14 +392,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
357
392
|
|
|
358
393
|
if (arg_count == 1)
|
|
359
394
|
{
|
|
360
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"FromIdAsync", 1))
|
|
361
|
-
{
|
|
362
|
-
py::set_arg_count_version_error(1);
|
|
363
|
-
return nullptr;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
395
|
try
|
|
367
396
|
{
|
|
397
|
+
static std::optional<bool> is_overload_present{};
|
|
398
|
+
|
|
399
|
+
if (!is_overload_present.has_value())
|
|
400
|
+
{
|
|
401
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"FromIdAsync", 1);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
if (!is_overload_present.value())
|
|
405
|
+
{
|
|
406
|
+
py::set_arg_count_version_error(1);
|
|
407
|
+
return nullptr;
|
|
408
|
+
}
|
|
409
|
+
|
|
368
410
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
369
411
|
|
|
370
412
|
return py::convert(winrt::Windows::ApplicationModel::Payments::Provider::PaymentTransaction::FromIdAsync(param0));
|
|
@@ -388,14 +430,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
388
430
|
|
|
389
431
|
if (arg_count == 0)
|
|
390
432
|
{
|
|
391
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"Reject", 0))
|
|
392
|
-
{
|
|
393
|
-
py::set_arg_count_version_error(0);
|
|
394
|
-
return nullptr;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
433
|
try
|
|
398
434
|
{
|
|
435
|
+
static std::optional<bool> is_overload_present{};
|
|
436
|
+
|
|
437
|
+
if (!is_overload_present.has_value())
|
|
438
|
+
{
|
|
439
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"Reject", 0);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
if (!is_overload_present.value())
|
|
443
|
+
{
|
|
444
|
+
py::set_arg_count_version_error(0);
|
|
445
|
+
return nullptr;
|
|
446
|
+
}
|
|
447
|
+
|
|
399
448
|
self->obj.Reject();
|
|
400
449
|
Py_RETURN_NONE;
|
|
401
450
|
}
|
|
@@ -418,14 +467,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
418
467
|
|
|
419
468
|
if (arg_count == 1)
|
|
420
469
|
{
|
|
421
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"UpdateSelectedShippingOptionAsync", 1))
|
|
422
|
-
{
|
|
423
|
-
py::set_arg_count_version_error(1);
|
|
424
|
-
return nullptr;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
470
|
try
|
|
428
471
|
{
|
|
472
|
+
static std::optional<bool> is_overload_present{};
|
|
473
|
+
|
|
474
|
+
if (!is_overload_present.has_value())
|
|
475
|
+
{
|
|
476
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"UpdateSelectedShippingOptionAsync", 1);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
if (!is_overload_present.value())
|
|
480
|
+
{
|
|
481
|
+
py::set_arg_count_version_error(1);
|
|
482
|
+
return nullptr;
|
|
483
|
+
}
|
|
484
|
+
|
|
429
485
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Payments::PaymentShippingOption>(args, 0);
|
|
430
486
|
|
|
431
487
|
return py::convert(self->obj.UpdateSelectedShippingOptionAsync(param0));
|
|
@@ -449,14 +505,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
449
505
|
|
|
450
506
|
if (arg_count == 1)
|
|
451
507
|
{
|
|
452
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"UpdateShippingAddressAsync", 1))
|
|
453
|
-
{
|
|
454
|
-
py::set_arg_count_version_error(1);
|
|
455
|
-
return nullptr;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
508
|
try
|
|
459
509
|
{
|
|
510
|
+
static std::optional<bool> is_overload_present{};
|
|
511
|
+
|
|
512
|
+
if (!is_overload_present.has_value())
|
|
513
|
+
{
|
|
514
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"UpdateShippingAddressAsync", 1);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
if (!is_overload_present.value())
|
|
518
|
+
{
|
|
519
|
+
py::set_arg_count_version_error(1);
|
|
520
|
+
return nullptr;
|
|
521
|
+
}
|
|
522
|
+
|
|
460
523
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Payments::PaymentAddress>(args, 0);
|
|
461
524
|
|
|
462
525
|
return py::convert(self->obj.UpdateShippingAddressAsync(param0));
|
|
@@ -476,14 +539,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
476
539
|
|
|
477
540
|
static PyObject* PaymentTransaction_get_PayerPhoneNumber(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, void* /*unused*/) noexcept
|
|
478
541
|
{
|
|
479
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerPhoneNumber"))
|
|
480
|
-
{
|
|
481
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
482
|
-
return nullptr;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
542
|
try
|
|
486
543
|
{
|
|
544
|
+
static std::optional<bool> is_property_present{};
|
|
545
|
+
|
|
546
|
+
if (!is_property_present.has_value())
|
|
547
|
+
{
|
|
548
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerPhoneNumber");
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
if (!is_property_present.value())
|
|
552
|
+
{
|
|
553
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
554
|
+
return nullptr;
|
|
555
|
+
}
|
|
556
|
+
|
|
487
557
|
return py::convert(self->obj.PayerPhoneNumber());
|
|
488
558
|
}
|
|
489
559
|
catch (...)
|
|
@@ -495,12 +565,6 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
495
565
|
|
|
496
566
|
static int PaymentTransaction_put_PayerPhoneNumber(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* arg, void* /*unused*/) noexcept
|
|
497
567
|
{
|
|
498
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerPhoneNumber"))
|
|
499
|
-
{
|
|
500
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
501
|
-
return -1;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
568
|
if (arg == nullptr)
|
|
505
569
|
{
|
|
506
570
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -509,6 +573,19 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
509
573
|
|
|
510
574
|
try
|
|
511
575
|
{
|
|
576
|
+
static std::optional<bool> is_property_present{};
|
|
577
|
+
|
|
578
|
+
if (!is_property_present.has_value())
|
|
579
|
+
{
|
|
580
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerPhoneNumber");
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
if (!is_property_present.value())
|
|
584
|
+
{
|
|
585
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
586
|
+
return -1;
|
|
587
|
+
}
|
|
588
|
+
|
|
512
589
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
513
590
|
|
|
514
591
|
self->obj.PayerPhoneNumber(param0);
|
|
@@ -523,14 +600,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
523
600
|
|
|
524
601
|
static PyObject* PaymentTransaction_get_PayerName(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, void* /*unused*/) noexcept
|
|
525
602
|
{
|
|
526
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerName"))
|
|
527
|
-
{
|
|
528
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
529
|
-
return nullptr;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
603
|
try
|
|
533
604
|
{
|
|
605
|
+
static std::optional<bool> is_property_present{};
|
|
606
|
+
|
|
607
|
+
if (!is_property_present.has_value())
|
|
608
|
+
{
|
|
609
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerName");
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
if (!is_property_present.value())
|
|
613
|
+
{
|
|
614
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
615
|
+
return nullptr;
|
|
616
|
+
}
|
|
617
|
+
|
|
534
618
|
return py::convert(self->obj.PayerName());
|
|
535
619
|
}
|
|
536
620
|
catch (...)
|
|
@@ -542,12 +626,6 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
542
626
|
|
|
543
627
|
static int PaymentTransaction_put_PayerName(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* arg, void* /*unused*/) noexcept
|
|
544
628
|
{
|
|
545
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerName"))
|
|
546
|
-
{
|
|
547
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
548
|
-
return -1;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
629
|
if (arg == nullptr)
|
|
552
630
|
{
|
|
553
631
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -556,6 +634,19 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
556
634
|
|
|
557
635
|
try
|
|
558
636
|
{
|
|
637
|
+
static std::optional<bool> is_property_present{};
|
|
638
|
+
|
|
639
|
+
if (!is_property_present.has_value())
|
|
640
|
+
{
|
|
641
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerName");
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
if (!is_property_present.value())
|
|
645
|
+
{
|
|
646
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
647
|
+
return -1;
|
|
648
|
+
}
|
|
649
|
+
|
|
559
650
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
560
651
|
|
|
561
652
|
self->obj.PayerName(param0);
|
|
@@ -570,14 +661,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
570
661
|
|
|
571
662
|
static PyObject* PaymentTransaction_get_PayerEmail(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, void* /*unused*/) noexcept
|
|
572
663
|
{
|
|
573
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerEmail"))
|
|
574
|
-
{
|
|
575
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
576
|
-
return nullptr;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
664
|
try
|
|
580
665
|
{
|
|
666
|
+
static std::optional<bool> is_property_present{};
|
|
667
|
+
|
|
668
|
+
if (!is_property_present.has_value())
|
|
669
|
+
{
|
|
670
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerEmail");
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
if (!is_property_present.value())
|
|
674
|
+
{
|
|
675
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
676
|
+
return nullptr;
|
|
677
|
+
}
|
|
678
|
+
|
|
581
679
|
return py::convert(self->obj.PayerEmail());
|
|
582
680
|
}
|
|
583
681
|
catch (...)
|
|
@@ -589,12 +687,6 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
589
687
|
|
|
590
688
|
static int PaymentTransaction_put_PayerEmail(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* arg, void* /*unused*/) noexcept
|
|
591
689
|
{
|
|
592
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerEmail"))
|
|
593
|
-
{
|
|
594
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
595
|
-
return -1;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
690
|
if (arg == nullptr)
|
|
599
691
|
{
|
|
600
692
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
@@ -603,6 +695,19 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
603
695
|
|
|
604
696
|
try
|
|
605
697
|
{
|
|
698
|
+
static std::optional<bool> is_property_present{};
|
|
699
|
+
|
|
700
|
+
if (!is_property_present.has_value())
|
|
701
|
+
{
|
|
702
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerEmail");
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
if (!is_property_present.value())
|
|
706
|
+
{
|
|
707
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
708
|
+
return -1;
|
|
709
|
+
}
|
|
710
|
+
|
|
606
711
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
607
712
|
|
|
608
713
|
self->obj.PayerEmail(param0);
|
|
@@ -617,14 +722,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
617
722
|
|
|
618
723
|
static PyObject* PaymentTransaction_get_PaymentRequest(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, void* /*unused*/) noexcept
|
|
619
724
|
{
|
|
620
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PaymentRequest"))
|
|
621
|
-
{
|
|
622
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
623
|
-
return nullptr;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
725
|
try
|
|
627
726
|
{
|
|
727
|
+
static std::optional<bool> is_property_present{};
|
|
728
|
+
|
|
729
|
+
if (!is_property_present.has_value())
|
|
730
|
+
{
|
|
731
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PaymentRequest");
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
if (!is_property_present.value())
|
|
735
|
+
{
|
|
736
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
737
|
+
return nullptr;
|
|
738
|
+
}
|
|
739
|
+
|
|
628
740
|
return py::convert(self->obj.PaymentRequest());
|
|
629
741
|
}
|
|
630
742
|
catch (...)
|
|
@@ -676,23 +788,20 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
676
788
|
{ }
|
|
677
789
|
};
|
|
678
790
|
|
|
679
|
-
static PyType_Slot _type_slots_PaymentTransaction[] =
|
|
680
|
-
{
|
|
791
|
+
static PyType_Slot _type_slots_PaymentTransaction[] = {
|
|
681
792
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PaymentTransaction) },
|
|
682
793
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaymentTransaction) },
|
|
683
794
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PaymentTransaction) },
|
|
684
795
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PaymentTransaction) },
|
|
685
|
-
{ }
|
|
796
|
+
{ }
|
|
686
797
|
};
|
|
687
798
|
|
|
688
|
-
static PyType_Spec type_spec_PaymentTransaction =
|
|
689
|
-
{
|
|
799
|
+
static PyType_Spec type_spec_PaymentTransaction = {
|
|
690
800
|
"winrt._winrt_windows_applicationmodel_payments_provider.PaymentTransaction",
|
|
691
801
|
sizeof(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction),
|
|
692
802
|
0,
|
|
693
803
|
Py_TPFLAGS_DEFAULT,
|
|
694
|
-
_type_slots_PaymentTransaction
|
|
695
|
-
};
|
|
804
|
+
_type_slots_PaymentTransaction};
|
|
696
805
|
|
|
697
806
|
static PyGetSetDef getset_PaymentTransaction_Static[] = {
|
|
698
807
|
{ }
|
|
@@ -739,14 +848,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
739
848
|
|
|
740
849
|
static PyObject* PaymentTransactionAcceptResult_get_Status(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransactionAcceptResult* self, void* /*unused*/) noexcept
|
|
741
850
|
{
|
|
742
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransactionAcceptResult", L"Status"))
|
|
743
|
-
{
|
|
744
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
745
|
-
return nullptr;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
851
|
try
|
|
749
852
|
{
|
|
853
|
+
static std::optional<bool> is_property_present{};
|
|
854
|
+
|
|
855
|
+
if (!is_property_present.has_value())
|
|
856
|
+
{
|
|
857
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransactionAcceptResult", L"Status");
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
if (!is_property_present.value())
|
|
861
|
+
{
|
|
862
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
863
|
+
return nullptr;
|
|
864
|
+
}
|
|
865
|
+
|
|
750
866
|
return py::convert(self->obj.Status());
|
|
751
867
|
}
|
|
752
868
|
catch (...)
|
|
@@ -791,39 +907,35 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
|
791
907
|
{ }
|
|
792
908
|
};
|
|
793
909
|
|
|
794
|
-
static PyType_Slot _type_slots_PaymentTransactionAcceptResult[] =
|
|
795
|
-
{
|
|
910
|
+
static PyType_Slot _type_slots_PaymentTransactionAcceptResult[] = {
|
|
796
911
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PaymentTransactionAcceptResult) },
|
|
797
912
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaymentTransactionAcceptResult) },
|
|
798
913
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PaymentTransactionAcceptResult) },
|
|
799
914
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PaymentTransactionAcceptResult) },
|
|
800
|
-
{ }
|
|
915
|
+
{ }
|
|
801
916
|
};
|
|
802
917
|
|
|
803
|
-
static PyType_Spec type_spec_PaymentTransactionAcceptResult =
|
|
804
|
-
{
|
|
918
|
+
static PyType_Spec type_spec_PaymentTransactionAcceptResult = {
|
|
805
919
|
"winrt._winrt_windows_applicationmodel_payments_provider.PaymentTransactionAcceptResult",
|
|
806
920
|
sizeof(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransactionAcceptResult),
|
|
807
921
|
0,
|
|
808
922
|
Py_TPFLAGS_DEFAULT,
|
|
809
|
-
_type_slots_PaymentTransactionAcceptResult
|
|
810
|
-
};
|
|
923
|
+
_type_slots_PaymentTransactionAcceptResult};
|
|
811
924
|
|
|
812
925
|
// ----- Windows.ApplicationModel.Payments.Provider Initialization --------------------
|
|
813
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Payments::Provider");
|
|
814
|
-
|
|
815
926
|
|
|
816
|
-
|
|
817
|
-
= {PyModuleDef_HEAD_INIT,
|
|
818
|
-
"_winrt_windows_applicationmodel_payments_provider",
|
|
819
|
-
module_doc,
|
|
820
|
-
0,
|
|
821
|
-
nullptr,
|
|
822
|
-
nullptr,
|
|
823
|
-
nullptr,
|
|
824
|
-
nullptr,
|
|
825
|
-
nullptr};
|
|
927
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Payments.Provider");
|
|
826
928
|
|
|
929
|
+
static PyModuleDef module_def = {
|
|
930
|
+
PyModuleDef_HEAD_INIT,
|
|
931
|
+
"_winrt_windows_applicationmodel_payments_provider",
|
|
932
|
+
module_doc,
|
|
933
|
+
0,
|
|
934
|
+
nullptr,
|
|
935
|
+
nullptr,
|
|
936
|
+
nullptr,
|
|
937
|
+
nullptr,
|
|
938
|
+
nullptr};
|
|
827
939
|
} // py::cpp::Windows::ApplicationModel::Payments::Provider
|
|
828
940
|
|
|
829
941
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_payments_provider(void) noexcept
|
|
@@ -855,7 +967,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_payments_provider(void) no
|
|
|
855
967
|
return nullptr;
|
|
856
968
|
}
|
|
857
969
|
|
|
858
|
-
|
|
970
|
+
py::pytype_handle PaymentAppCanMakePaymentTriggerDetails_type{py::register_python_type(module.get(), &type_spec_PaymentAppCanMakePaymentTriggerDetails, object_bases.get(), nullptr)};
|
|
971
|
+
if (!PaymentAppCanMakePaymentTriggerDetails_type)
|
|
859
972
|
{
|
|
860
973
|
return nullptr;
|
|
861
974
|
}
|
|
@@ -866,7 +979,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_payments_provider(void) no
|
|
|
866
979
|
return nullptr;
|
|
867
980
|
}
|
|
868
981
|
|
|
869
|
-
|
|
982
|
+
py::pytype_handle PaymentAppManager_type{py::register_python_type(module.get(), &type_spec_PaymentAppManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PaymentAppManager_Static.get()))};
|
|
983
|
+
if (!PaymentAppManager_type)
|
|
870
984
|
{
|
|
871
985
|
return nullptr;
|
|
872
986
|
}
|
|
@@ -877,12 +991,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_payments_provider(void) no
|
|
|
877
991
|
return nullptr;
|
|
878
992
|
}
|
|
879
993
|
|
|
880
|
-
|
|
994
|
+
py::pytype_handle PaymentTransaction_type{py::register_python_type(module.get(), &type_spec_PaymentTransaction, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PaymentTransaction_Static.get()))};
|
|
995
|
+
if (!PaymentTransaction_type)
|
|
881
996
|
{
|
|
882
997
|
return nullptr;
|
|
883
998
|
}
|
|
884
999
|
|
|
885
|
-
|
|
1000
|
+
py::pytype_handle PaymentTransactionAcceptResult_type{py::register_python_type(module.get(), &type_spec_PaymentTransactionAcceptResult, object_bases.get(), nullptr)};
|
|
1001
|
+
if (!PaymentTransactionAcceptResult_type)
|
|
886
1002
|
{
|
|
887
1003
|
return nullptr;
|
|
888
1004
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,9 +9,9 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.applicationmodel.payments
|
|
13
|
-
import winrt.windows.foundation
|
|
14
|
-
import winrt.windows.foundation.collections
|
|
12
|
+
import winrt.windows.applicationmodel.payments as windows_applicationmodel_payments
|
|
13
|
+
import winrt.windows.foundation as windows_foundation
|
|
14
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
15
15
|
|
|
16
16
|
Self = typing.TypeVar('Self')
|
|
17
17
|
|
|
@@ -19,9 +19,9 @@ Self = typing.TypeVar('Self')
|
|
|
19
19
|
class PaymentAppCanMakePaymentTriggerDetails(winrt.system.Object):
|
|
20
20
|
@staticmethod
|
|
21
21
|
def _from(obj: winrt.system.Object, /) -> PaymentAppCanMakePaymentTriggerDetails: ...
|
|
22
|
-
def report_can_make_payment_result(self, value: typing.Optional[
|
|
22
|
+
def report_can_make_payment_result(self, value: typing.Optional[windows_applicationmodel_payments.PaymentCanMakePaymentResult], /) -> None: ...
|
|
23
23
|
@_property
|
|
24
|
-
def request(self) -> typing.Optional[
|
|
24
|
+
def request(self) -> typing.Optional[windows_applicationmodel_payments.PaymentRequest]: ...
|
|
25
25
|
|
|
26
26
|
@typing.final
|
|
27
27
|
class PaymentAppManager_Static(type):
|
|
@@ -32,21 +32,21 @@ class PaymentAppManager_Static(type):
|
|
|
32
32
|
class PaymentAppManager(winrt.system.Object, metaclass=PaymentAppManager_Static):
|
|
33
33
|
@staticmethod
|
|
34
34
|
def _from(obj: winrt.system.Object, /) -> PaymentAppManager: ...
|
|
35
|
-
def register_async(self, supported_payment_method_ids: typing.Iterable[str], /) ->
|
|
36
|
-
def unregister_async(self) ->
|
|
35
|
+
def register_async(self, supported_payment_method_ids: typing.Iterable[str], /) -> windows_foundation.IAsyncAction: ...
|
|
36
|
+
def unregister_async(self) -> windows_foundation.IAsyncAction: ...
|
|
37
37
|
|
|
38
38
|
@typing.final
|
|
39
39
|
class PaymentTransaction_Static(type):
|
|
40
|
-
def from_id_async(cls, id: str, /) ->
|
|
40
|
+
def from_id_async(cls, id: str, /) -> windows_foundation.IAsyncOperation[PaymentTransaction]: ...
|
|
41
41
|
|
|
42
42
|
@typing.final
|
|
43
43
|
class PaymentTransaction(winrt.system.Object, metaclass=PaymentTransaction_Static):
|
|
44
44
|
@staticmethod
|
|
45
45
|
def _from(obj: winrt.system.Object, /) -> PaymentTransaction: ...
|
|
46
|
-
def accept_async(self, payment_token: typing.Optional[
|
|
46
|
+
def accept_async(self, payment_token: typing.Optional[windows_applicationmodel_payments.PaymentToken], /) -> windows_foundation.IAsyncOperation[PaymentTransactionAcceptResult]: ...
|
|
47
47
|
def reject(self) -> None: ...
|
|
48
|
-
def update_selected_shipping_option_async(self, selected_shipping_option: typing.Optional[
|
|
49
|
-
def update_shipping_address_async(self, shipping_address: typing.Optional[
|
|
48
|
+
def update_selected_shipping_option_async(self, selected_shipping_option: typing.Optional[windows_applicationmodel_payments.PaymentShippingOption], /) -> windows_foundation.IAsyncOperation[windows_applicationmodel_payments.PaymentRequestChangedResult]: ...
|
|
49
|
+
def update_shipping_address_async(self, shipping_address: typing.Optional[windows_applicationmodel_payments.PaymentAddress], /) -> windows_foundation.IAsyncOperation[windows_applicationmodel_payments.PaymentRequestChangedResult]: ...
|
|
50
50
|
@_property
|
|
51
51
|
def payer_phone_number(self) -> str: ...
|
|
52
52
|
@payer_phone_number.setter
|
|
@@ -60,12 +60,12 @@ class PaymentTransaction(winrt.system.Object, metaclass=PaymentTransaction_Stati
|
|
|
60
60
|
@payer_email.setter
|
|
61
61
|
def payer_email(self, value: str) -> None: ...
|
|
62
62
|
@_property
|
|
63
|
-
def payment_request(self) -> typing.Optional[
|
|
63
|
+
def payment_request(self) -> typing.Optional[windows_applicationmodel_payments.PaymentRequest]: ...
|
|
64
64
|
|
|
65
65
|
@typing.final
|
|
66
66
|
class PaymentTransactionAcceptResult(winrt.system.Object):
|
|
67
67
|
@staticmethod
|
|
68
68
|
def _from(obj: winrt.system.Object, /) -> PaymentTransactionAcceptResult: ...
|
|
69
69
|
@_property
|
|
70
|
-
def status(self) ->
|
|
70
|
+
def status(self) -> windows_applicationmodel_payments.PaymentRequestCompletionStatus: ...
|
|
71
71
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Payments.Provider
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.ApplicationModel.Payments[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Payments[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|