winrt-Windows.ApplicationModel.Payments.Provider 2.0.1__tar.gz → 2.1.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.
Files changed (20) hide show
  1. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/PKG-INFO +5 -5
  2. winrt_windows_applicationmodel_payments_provider-2.1.0/all-requirements.txt +5 -0
  3. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/py.Windows.ApplicationModel.Payments.Provider.cpp +136 -150
  4. winrt_windows_applicationmodel_payments_provider-2.1.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/requirements.txt +2 -2
  6. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/winrt/_winrt_windows_applicationmodel_payments_provider.pyi +14 -14
  7. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/winrt/windows/applicationmodel/payments/provider/__init__.py +1 -1
  8. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/PKG-INFO +5 -5
  9. winrt_windows_applicationmodel_payments_provider-2.1.0/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/requires.txt +6 -0
  10. winrt_windows_applicationmodel_payments_provider-2.0.1/all-requirements.txt +0 -5
  11. winrt_windows_applicationmodel_payments_provider-2.0.1/pywinrt-version.txt +0 -1
  12. winrt_windows_applicationmodel_payments_provider-2.0.1/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/requires.txt +0 -6
  13. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/README.md +0 -0
  14. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/pyproject.toml +0 -0
  15. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/setup.cfg +0 -0
  16. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/setup.py +0 -0
  17. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/winrt/windows/applicationmodel/payments/provider/py.typed +0 -0
  18. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.0}/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_applicationmodel_payments_provider-2.0.1 → winrt_windows_applicationmodel_payments_provider-2.1.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.1
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,11 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.Payments[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Payments[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,5 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
+
3
+ winrt-Windows.ApplicationModel.Payments[all]==2.1.0
4
+ winrt-Windows.Foundation[all]==2.1.0
5
+ winrt-Windows.Foundation.Collections[all]==2.1.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.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,14 @@ 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
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppCanMakePaymentTriggerDetails", L"ReportCanMakePaymentResult", 1))
33
+ {
34
+ py::set_arg_count_version_error(1);
35
+ return nullptr;
36
+ }
37
+
39
38
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Payments::PaymentCanMakePaymentResult>(args, 0);
40
39
 
41
40
  self->obj.ReportCanMakePaymentResult(param0);
@@ -56,14 +55,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
56
55
 
57
56
  static PyObject* PaymentAppCanMakePaymentTriggerDetails_get_Request(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentAppCanMakePaymentTriggerDetails* self, void* /*unused*/) noexcept
58
57
  {
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
58
  try
66
59
  {
60
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppCanMakePaymentTriggerDetails", L"Request"))
61
+ {
62
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
63
+ return nullptr;
64
+ }
65
+
67
66
  return py::convert(self->obj.Request());
68
67
  }
69
68
  catch (...)
@@ -109,23 +108,20 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
109
108
  { }
110
109
  };
111
110
 
112
- static PyType_Slot _type_slots_PaymentAppCanMakePaymentTriggerDetails[] =
113
- {
111
+ static PyType_Slot _type_slots_PaymentAppCanMakePaymentTriggerDetails[] = {
114
112
  { Py_tp_new, reinterpret_cast<void*>(_new_PaymentAppCanMakePaymentTriggerDetails) },
115
113
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaymentAppCanMakePaymentTriggerDetails) },
116
114
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PaymentAppCanMakePaymentTriggerDetails) },
117
115
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PaymentAppCanMakePaymentTriggerDetails) },
118
- { },
116
+ { }
119
117
  };
120
118
 
121
- static PyType_Spec type_spec_PaymentAppCanMakePaymentTriggerDetails =
122
- {
119
+ static PyType_Spec type_spec_PaymentAppCanMakePaymentTriggerDetails = {
123
120
  "winrt._winrt_windows_applicationmodel_payments_provider.PaymentAppCanMakePaymentTriggerDetails",
124
121
  sizeof(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentAppCanMakePaymentTriggerDetails),
125
122
  0,
126
123
  Py_TPFLAGS_DEFAULT,
127
- _type_slots_PaymentAppCanMakePaymentTriggerDetails
128
- };
124
+ _type_slots_PaymentAppCanMakePaymentTriggerDetails};
129
125
 
130
126
  // ----- PaymentAppManager class --------------------
131
127
 
@@ -150,14 +146,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
150
146
 
151
147
  if (arg_count == 1)
152
148
  {
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
149
  try
160
150
  {
151
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppManager", L"RegisterAsync", 1))
152
+ {
153
+ py::set_arg_count_version_error(1);
154
+ return nullptr;
155
+ }
156
+
161
157
  auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
162
158
 
163
159
  return py::convert(self->obj.RegisterAsync(param0));
@@ -181,14 +177,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
181
177
 
182
178
  if (arg_count == 0)
183
179
  {
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
180
  try
191
181
  {
182
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppManager", L"UnregisterAsync", 0))
183
+ {
184
+ py::set_arg_count_version_error(0);
185
+ return nullptr;
186
+ }
187
+
192
188
  return py::convert(self->obj.UnregisterAsync());
193
189
  }
194
190
  catch (...)
@@ -206,14 +202,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
206
202
 
207
203
  static PyObject* PaymentAppManager_get_Current(PyObject* /*unused*/, void* /*unused*/) noexcept
208
204
  {
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
205
  try
216
206
  {
207
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentAppManager", L"Current"))
208
+ {
209
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
210
+ return nullptr;
211
+ }
212
+
217
213
  return py::convert(winrt::Windows::ApplicationModel::Payments::Provider::PaymentAppManager::Current());
218
214
  }
219
215
  catch (...)
@@ -259,23 +255,20 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
259
255
  { }
260
256
  };
261
257
 
262
- static PyType_Slot _type_slots_PaymentAppManager[] =
263
- {
258
+ static PyType_Slot _type_slots_PaymentAppManager[] = {
264
259
  { Py_tp_new, reinterpret_cast<void*>(_new_PaymentAppManager) },
265
260
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaymentAppManager) },
266
261
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PaymentAppManager) },
267
262
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PaymentAppManager) },
268
- { },
263
+ { }
269
264
  };
270
265
 
271
- static PyType_Spec type_spec_PaymentAppManager =
272
- {
266
+ static PyType_Spec type_spec_PaymentAppManager = {
273
267
  "winrt._winrt_windows_applicationmodel_payments_provider.PaymentAppManager",
274
268
  sizeof(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentAppManager),
275
269
  0,
276
270
  Py_TPFLAGS_DEFAULT,
277
- _type_slots_PaymentAppManager
278
- };
271
+ _type_slots_PaymentAppManager};
279
272
 
280
273
  static PyGetSetDef getset_PaymentAppManager_Static[] = {
281
274
  { "current", reinterpret_cast<getter>(PaymentAppManager_get_Current), nullptr, nullptr, nullptr },
@@ -326,14 +319,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
326
319
 
327
320
  if (arg_count == 1)
328
321
  {
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
322
  try
336
323
  {
324
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"AcceptAsync", 1))
325
+ {
326
+ py::set_arg_count_version_error(1);
327
+ return nullptr;
328
+ }
329
+
337
330
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Payments::PaymentToken>(args, 0);
338
331
 
339
332
  return py::convert(self->obj.AcceptAsync(param0));
@@ -357,14 +350,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
357
350
 
358
351
  if (arg_count == 1)
359
352
  {
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
353
  try
367
354
  {
355
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"FromIdAsync", 1))
356
+ {
357
+ py::set_arg_count_version_error(1);
358
+ return nullptr;
359
+ }
360
+
368
361
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
369
362
 
370
363
  return py::convert(winrt::Windows::ApplicationModel::Payments::Provider::PaymentTransaction::FromIdAsync(param0));
@@ -388,14 +381,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
388
381
 
389
382
  if (arg_count == 0)
390
383
  {
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
384
  try
398
385
  {
386
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"Reject", 0))
387
+ {
388
+ py::set_arg_count_version_error(0);
389
+ return nullptr;
390
+ }
391
+
399
392
  self->obj.Reject();
400
393
  Py_RETURN_NONE;
401
394
  }
@@ -418,14 +411,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
418
411
 
419
412
  if (arg_count == 1)
420
413
  {
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
414
  try
428
415
  {
416
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"UpdateSelectedShippingOptionAsync", 1))
417
+ {
418
+ py::set_arg_count_version_error(1);
419
+ return nullptr;
420
+ }
421
+
429
422
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Payments::PaymentShippingOption>(args, 0);
430
423
 
431
424
  return py::convert(self->obj.UpdateSelectedShippingOptionAsync(param0));
@@ -449,14 +442,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
449
442
 
450
443
  if (arg_count == 1)
451
444
  {
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
445
  try
459
446
  {
447
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"UpdateShippingAddressAsync", 1))
448
+ {
449
+ py::set_arg_count_version_error(1);
450
+ return nullptr;
451
+ }
452
+
460
453
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Payments::PaymentAddress>(args, 0);
461
454
 
462
455
  return py::convert(self->obj.UpdateShippingAddressAsync(param0));
@@ -476,14 +469,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
476
469
 
477
470
  static PyObject* PaymentTransaction_get_PayerPhoneNumber(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, void* /*unused*/) noexcept
478
471
  {
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
472
  try
486
473
  {
474
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerPhoneNumber"))
475
+ {
476
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
477
+ return nullptr;
478
+ }
479
+
487
480
  return py::convert(self->obj.PayerPhoneNumber());
488
481
  }
489
482
  catch (...)
@@ -495,12 +488,6 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
495
488
 
496
489
  static int PaymentTransaction_put_PayerPhoneNumber(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* arg, void* /*unused*/) noexcept
497
490
  {
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
491
  if (arg == nullptr)
505
492
  {
506
493
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -509,6 +496,12 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
509
496
 
510
497
  try
511
498
  {
499
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerPhoneNumber"))
500
+ {
501
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
502
+ return -1;
503
+ }
504
+
512
505
  auto param0 = py::convert_to<winrt::hstring>(arg);
513
506
 
514
507
  self->obj.PayerPhoneNumber(param0);
@@ -523,14 +516,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
523
516
 
524
517
  static PyObject* PaymentTransaction_get_PayerName(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, void* /*unused*/) noexcept
525
518
  {
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
519
  try
533
520
  {
521
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerName"))
522
+ {
523
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
524
+ return nullptr;
525
+ }
526
+
534
527
  return py::convert(self->obj.PayerName());
535
528
  }
536
529
  catch (...)
@@ -542,12 +535,6 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
542
535
 
543
536
  static int PaymentTransaction_put_PayerName(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* arg, void* /*unused*/) noexcept
544
537
  {
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
538
  if (arg == nullptr)
552
539
  {
553
540
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -556,6 +543,12 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
556
543
 
557
544
  try
558
545
  {
546
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerName"))
547
+ {
548
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
549
+ return -1;
550
+ }
551
+
559
552
  auto param0 = py::convert_to<winrt::hstring>(arg);
560
553
 
561
554
  self->obj.PayerName(param0);
@@ -570,14 +563,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
570
563
 
571
564
  static PyObject* PaymentTransaction_get_PayerEmail(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, void* /*unused*/) noexcept
572
565
  {
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
566
  try
580
567
  {
568
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerEmail"))
569
+ {
570
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
571
+ return nullptr;
572
+ }
573
+
581
574
  return py::convert(self->obj.PayerEmail());
582
575
  }
583
576
  catch (...)
@@ -589,12 +582,6 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
589
582
 
590
583
  static int PaymentTransaction_put_PayerEmail(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* arg, void* /*unused*/) noexcept
591
584
  {
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
585
  if (arg == nullptr)
599
586
  {
600
587
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -603,6 +590,12 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
603
590
 
604
591
  try
605
592
  {
593
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PayerEmail"))
594
+ {
595
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
596
+ return -1;
597
+ }
598
+
606
599
  auto param0 = py::convert_to<winrt::hstring>(arg);
607
600
 
608
601
  self->obj.PayerEmail(param0);
@@ -617,14 +610,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
617
610
 
618
611
  static PyObject* PaymentTransaction_get_PaymentRequest(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, void* /*unused*/) noexcept
619
612
  {
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
613
  try
627
614
  {
615
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransaction", L"PaymentRequest"))
616
+ {
617
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
618
+ return nullptr;
619
+ }
620
+
628
621
  return py::convert(self->obj.PaymentRequest());
629
622
  }
630
623
  catch (...)
@@ -676,23 +669,20 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
676
669
  { }
677
670
  };
678
671
 
679
- static PyType_Slot _type_slots_PaymentTransaction[] =
680
- {
672
+ static PyType_Slot _type_slots_PaymentTransaction[] = {
681
673
  { Py_tp_new, reinterpret_cast<void*>(_new_PaymentTransaction) },
682
674
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaymentTransaction) },
683
675
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PaymentTransaction) },
684
676
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PaymentTransaction) },
685
- { },
677
+ { }
686
678
  };
687
679
 
688
- static PyType_Spec type_spec_PaymentTransaction =
689
- {
680
+ static PyType_Spec type_spec_PaymentTransaction = {
690
681
  "winrt._winrt_windows_applicationmodel_payments_provider.PaymentTransaction",
691
682
  sizeof(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction),
692
683
  0,
693
684
  Py_TPFLAGS_DEFAULT,
694
- _type_slots_PaymentTransaction
695
- };
685
+ _type_slots_PaymentTransaction};
696
686
 
697
687
  static PyGetSetDef getset_PaymentTransaction_Static[] = {
698
688
  { }
@@ -739,14 +729,14 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
739
729
 
740
730
  static PyObject* PaymentTransactionAcceptResult_get_Status(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransactionAcceptResult* self, void* /*unused*/) noexcept
741
731
  {
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
732
  try
749
733
  {
734
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Payments.Provider.PaymentTransactionAcceptResult", L"Status"))
735
+ {
736
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
737
+ return nullptr;
738
+ }
739
+
750
740
  return py::convert(self->obj.Status());
751
741
  }
752
742
  catch (...)
@@ -791,39 +781,35 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
791
781
  { }
792
782
  };
793
783
 
794
- static PyType_Slot _type_slots_PaymentTransactionAcceptResult[] =
795
- {
784
+ static PyType_Slot _type_slots_PaymentTransactionAcceptResult[] = {
796
785
  { Py_tp_new, reinterpret_cast<void*>(_new_PaymentTransactionAcceptResult) },
797
786
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaymentTransactionAcceptResult) },
798
787
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PaymentTransactionAcceptResult) },
799
788
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PaymentTransactionAcceptResult) },
800
- { },
789
+ { }
801
790
  };
802
791
 
803
- static PyType_Spec type_spec_PaymentTransactionAcceptResult =
804
- {
792
+ static PyType_Spec type_spec_PaymentTransactionAcceptResult = {
805
793
  "winrt._winrt_windows_applicationmodel_payments_provider.PaymentTransactionAcceptResult",
806
794
  sizeof(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransactionAcceptResult),
807
795
  0,
808
796
  Py_TPFLAGS_DEFAULT,
809
- _type_slots_PaymentTransactionAcceptResult
810
- };
797
+ _type_slots_PaymentTransactionAcceptResult};
811
798
 
812
799
  // ----- Windows.ApplicationModel.Payments.Provider Initialization --------------------
813
- PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Payments::Provider");
814
800
 
801
+ PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Payments.Provider");
815
802
 
816
- static PyModuleDef module_def
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};
826
-
803
+ static PyModuleDef module_def = {
804
+ PyModuleDef_HEAD_INIT,
805
+ "_winrt_windows_applicationmodel_payments_provider",
806
+ module_doc,
807
+ 0,
808
+ nullptr,
809
+ nullptr,
810
+ nullptr,
811
+ nullptr,
812
+ nullptr};
827
813
  } // py::cpp::Windows::ApplicationModel::Payments::Provider
828
814
 
829
815
  PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_payments_provider(void) noexcept
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.1
3
+ winrt-runtime==2.1.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.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[winrt.windows.applicationmodel.payments.PaymentCanMakePaymentResult], /) -> None: ...
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[winrt.windows.applicationmodel.payments.PaymentRequest]: ...
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], /) -> winrt.windows.foundation.IAsyncAction: ...
36
- def unregister_async(self) -> winrt.windows.foundation.IAsyncAction: ...
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, /) -> winrt.windows.foundation.IAsyncOperation[PaymentTransaction]: ...
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[winrt.windows.applicationmodel.payments.PaymentToken], /) -> winrt.windows.foundation.IAsyncOperation[PaymentTransactionAcceptResult]: ...
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[winrt.windows.applicationmodel.payments.PaymentShippingOption], /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.applicationmodel.payments.PaymentRequestChangedResult]: ...
49
- def update_shipping_address_async(self, shipping_address: typing.Optional[winrt.windows.applicationmodel.payments.PaymentAddress], /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.applicationmodel.payments.PaymentRequestChangedResult]: ...
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[winrt.windows.applicationmodel.payments.PaymentRequest]: ...
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) -> winrt.windows.applicationmodel.payments.PaymentRequestCompletionStatus: ...
70
+ def status(self) -> windows_applicationmodel_payments.PaymentRequestCompletionStatus: ...
71
71
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import winrt.system
4
4
  from winrt import _winrt_windows_applicationmodel_payments_provider
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Payments.Provider
3
- Version: 2.0.1
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,11 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.Payments[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Payments[all]==2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,6 @@
1
+ winrt-runtime==2.1.0
2
+
3
+ [all]
4
+ winrt-Windows.ApplicationModel.Payments[all]==2.1.0
5
+ winrt-Windows.Foundation[all]==2.1.0
6
+ winrt-Windows.Foundation.Collections[all]==2.1.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- winrt-Windows.ApplicationModel.Payments[all]==2.0.1
4
- winrt-Windows.Foundation[all]==2.0.1
5
- winrt-Windows.Foundation.Collections[all]==2.0.1
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.ApplicationModel.Payments[all]==2.0.1
5
- winrt-Windows.Foundation[all]==2.0.1
6
- winrt-Windows.Foundation.Collections[all]==2.0.1