winrt-Windows.ApplicationModel.Payments.Provider 2.3.0__tar.gz → 3.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 (22) hide show
  1. {winrt_windows_applicationmodel_payments_provider-2.3.0 → winrt_windows_applicationmodel_payments_provider-3.1.0}/PKG-INFO +8 -8
  2. winrt_windows_applicationmodel_payments_provider-3.1.0/all-requirements.txt +5 -0
  3. {winrt_windows_applicationmodel_payments_provider-2.3.0 → winrt_windows_applicationmodel_payments_provider-3.1.0}/py.Windows.ApplicationModel.Payments.Provider.cpp +144 -74
  4. {winrt_windows_applicationmodel_payments_provider-2.3.0 → winrt_windows_applicationmodel_payments_provider-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_applicationmodel_payments_provider-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_applicationmodel_payments_provider-2.3.0 → winrt_windows_applicationmodel_payments_provider-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_applicationmodel_payments_provider-2.3.0 → winrt_windows_applicationmodel_payments_provider-3.1.0}/setup.py +1 -1
  8. winrt_windows_applicationmodel_payments_provider-3.1.0/winrt/_winrt_windows_applicationmodel_payments_provider.pyi +81 -0
  9. winrt_windows_applicationmodel_payments_provider-3.1.0/winrt/windows/applicationmodel/payments/provider/__init__.py +17 -0
  10. {winrt_windows_applicationmodel_payments_provider-2.3.0 → winrt_windows_applicationmodel_payments_provider-3.1.0}/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/PKG-INFO +8 -8
  11. winrt_windows_applicationmodel_payments_provider-3.1.0/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/requires.txt +6 -0
  12. winrt_windows_applicationmodel_payments_provider-2.3.0/all-requirements.txt +0 -5
  13. winrt_windows_applicationmodel_payments_provider-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_applicationmodel_payments_provider-2.3.0/winrt/_winrt_windows_applicationmodel_payments_provider.pyi +0 -71
  15. winrt_windows_applicationmodel_payments_provider-2.3.0/winrt/windows/applicationmodel/payments/provider/__init__.py +0 -16
  16. winrt_windows_applicationmodel_payments_provider-2.3.0/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/requires.txt +0 -6
  17. {winrt_windows_applicationmodel_payments_provider-2.3.0 → winrt_windows_applicationmodel_payments_provider-3.1.0}/README.md +0 -0
  18. {winrt_windows_applicationmodel_payments_provider-2.3.0 → winrt_windows_applicationmodel_payments_provider-3.1.0}/setup.cfg +0 -0
  19. {winrt_windows_applicationmodel_payments_provider-2.3.0 → winrt_windows_applicationmodel_payments_provider-3.1.0}/winrt/windows/applicationmodel/payments/provider/py.typed +0 -0
  20. {winrt_windows_applicationmodel_payments_provider-2.3.0 → winrt_windows_applicationmodel_payments_provider-3.1.0}/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_applicationmodel_payments_provider-2.3.0 → winrt_windows_applicationmodel_payments_provider-3.1.0}/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_applicationmodel_payments_provider-2.3.0 → winrt_windows_applicationmodel_payments_provider-3.1.0}/winrt_Windows.ApplicationModel.Payments.Provider.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.ApplicationModel.Payments.Provider
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.Payments[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Payments[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.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 v3.1.0
2
+
3
+ winrt-Windows.ApplicationModel.Payments[all]==3.1.0
4
+ winrt-Windows.Foundation[all]==3.1.0
5
+ winrt-Windows.Foundation.Collections[all]==3.1.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  #include "py.Windows.ApplicationModel.Payments.Provider.h"
4
4
 
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
23
23
 
24
24
  static PyObject* PaymentAppCanMakePaymentTriggerDetails_ReportCanMakePaymentResult(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentAppCanMakePaymentTriggerDetails* self, PyObject* args) noexcept
25
25
  {
26
- auto arg_count = PyTuple_Size(args);
26
+ auto arg_count = PyTuple_GET_SIZE(args);
27
27
 
28
28
  if (arg_count == 1)
29
29
  {
@@ -44,7 +44,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
44
44
 
45
45
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Payments::PaymentCanMakePaymentResult>(args, 0);
46
46
 
47
- self->obj.ReportCanMakePaymentResult(param0);
47
+ {
48
+ auto _gil = release_gil();
49
+ self->obj.ReportCanMakePaymentResult(param0);
50
+ }
51
+
48
52
  Py_RETURN_NONE;
49
53
  }
50
54
  catch (...)
@@ -77,7 +81,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
77
81
  return nullptr;
78
82
  }
79
83
 
80
- return py::convert(self->obj.Request());
84
+ return py::convert([&]()
85
+ {
86
+ auto _gil = release_gil();
87
+ return self->obj.Request();
88
+ }());
81
89
  }
82
90
  catch (...)
83
91
  {
@@ -114,21 +122,18 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
114
122
  { "report_can_make_payment_result", reinterpret_cast<PyCFunction>(PaymentAppCanMakePaymentTriggerDetails_ReportCanMakePaymentResult), METH_VARARGS, nullptr },
115
123
  { "_assign_array_", _assign_array_PaymentAppCanMakePaymentTriggerDetails, METH_O | METH_STATIC, nullptr },
116
124
  { "_from", reinterpret_cast<PyCFunction>(_from_PaymentAppCanMakePaymentTriggerDetails), METH_O | METH_STATIC, nullptr },
117
- { }
118
- };
125
+ { }};
119
126
 
120
127
  static PyGetSetDef _getset_PaymentAppCanMakePaymentTriggerDetails[] = {
121
128
  { "request", reinterpret_cast<getter>(PaymentAppCanMakePaymentTriggerDetails_get_Request), nullptr, nullptr, nullptr },
122
- { }
123
- };
129
+ { }};
124
130
 
125
131
  static PyType_Slot _type_slots_PaymentAppCanMakePaymentTriggerDetails[] = {
126
132
  { Py_tp_new, reinterpret_cast<void*>(_new_PaymentAppCanMakePaymentTriggerDetails) },
127
133
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaymentAppCanMakePaymentTriggerDetails) },
128
134
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PaymentAppCanMakePaymentTriggerDetails) },
129
135
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PaymentAppCanMakePaymentTriggerDetails) },
130
- { }
131
- };
136
+ { }};
132
137
 
133
138
  static PyType_Spec type_spec_PaymentAppCanMakePaymentTriggerDetails = {
134
139
  "winrt._winrt_windows_applicationmodel_payments_provider.PaymentAppCanMakePaymentTriggerDetails",
@@ -156,7 +161,7 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
156
161
 
157
162
  static PyObject* PaymentAppManager_RegisterAsync(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentAppManager* self, PyObject* args) noexcept
158
163
  {
159
- auto arg_count = PyTuple_Size(args);
164
+ auto arg_count = PyTuple_GET_SIZE(args);
160
165
 
161
166
  if (arg_count == 1)
162
167
  {
@@ -177,7 +182,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
177
182
 
178
183
  auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
179
184
 
180
- return py::convert(self->obj.RegisterAsync(param0));
185
+ return py::convert([&]()
186
+ {
187
+ auto _gil = release_gil();
188
+ return self->obj.RegisterAsync(param0);
189
+ }());
181
190
  }
182
191
  catch (...)
183
192
  {
@@ -194,7 +203,7 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
194
203
 
195
204
  static PyObject* PaymentAppManager_UnregisterAsync(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentAppManager* self, PyObject* args) noexcept
196
205
  {
197
- auto arg_count = PyTuple_Size(args);
206
+ auto arg_count = PyTuple_GET_SIZE(args);
198
207
 
199
208
  if (arg_count == 0)
200
209
  {
@@ -213,7 +222,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
213
222
  return nullptr;
214
223
  }
215
224
 
216
- return py::convert(self->obj.UnregisterAsync());
225
+ return py::convert([&]()
226
+ {
227
+ auto _gil = release_gil();
228
+ return self->obj.UnregisterAsync();
229
+ }());
217
230
  }
218
231
  catch (...)
219
232
  {
@@ -245,7 +258,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
245
258
  return nullptr;
246
259
  }
247
260
 
248
- return py::convert(winrt::Windows::ApplicationModel::Payments::Provider::PaymentAppManager::Current());
261
+ return py::convert([&]()
262
+ {
263
+ auto _gil = release_gil();
264
+ return winrt::Windows::ApplicationModel::Payments::Provider::PaymentAppManager::Current();
265
+ }());
249
266
  }
250
267
  catch (...)
251
268
  {
@@ -283,20 +300,17 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
283
300
  { "unregister_async", reinterpret_cast<PyCFunction>(PaymentAppManager_UnregisterAsync), METH_VARARGS, nullptr },
284
301
  { "_assign_array_", _assign_array_PaymentAppManager, METH_O | METH_STATIC, nullptr },
285
302
  { "_from", reinterpret_cast<PyCFunction>(_from_PaymentAppManager), METH_O | METH_STATIC, nullptr },
286
- { }
287
- };
303
+ { }};
288
304
 
289
305
  static PyGetSetDef _getset_PaymentAppManager[] = {
290
- { }
291
- };
306
+ { }};
292
307
 
293
308
  static PyType_Slot _type_slots_PaymentAppManager[] = {
294
309
  { Py_tp_new, reinterpret_cast<void*>(_new_PaymentAppManager) },
295
310
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaymentAppManager) },
296
311
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PaymentAppManager) },
297
312
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PaymentAppManager) },
298
- { }
299
- };
313
+ { }};
300
314
 
301
315
  static PyType_Spec type_spec_PaymentAppManager = {
302
316
  "winrt._winrt_windows_applicationmodel_payments_provider.PaymentAppManager",
@@ -307,12 +321,10 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
307
321
 
308
322
  static PyGetSetDef getset_PaymentAppManager_Static[] = {
309
323
  { "current", reinterpret_cast<getter>(PaymentAppManager_get_Current), nullptr, nullptr, nullptr },
310
- { }
311
- };
324
+ { }};
312
325
 
313
326
  static PyMethodDef methods_PaymentAppManager_Static[] = {
314
- { }
315
- };
327
+ { }};
316
328
 
317
329
  static PyType_Slot type_slots_PaymentAppManager_Static[] =
318
330
  {
@@ -322,14 +334,12 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
322
334
  { }
323
335
  };
324
336
 
325
- static PyType_Spec type_spec_PaymentAppManager_Static =
326
- {
337
+ static PyType_Spec type_spec_PaymentAppManager_Static = {
327
338
  "winrt._winrt_windows_applicationmodel_payments_provider.PaymentAppManager_Static",
328
339
  static_cast<int>(PyType_Type.tp_basicsize),
329
340
  static_cast<int>(PyType_Type.tp_itemsize),
330
341
  Py_TPFLAGS_DEFAULT,
331
- type_slots_PaymentAppManager_Static
332
- };
342
+ type_slots_PaymentAppManager_Static};
333
343
 
334
344
  // ----- PaymentTransaction class --------------------
335
345
 
@@ -350,7 +360,7 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
350
360
 
351
361
  static PyObject* PaymentTransaction_AcceptAsync(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* args) noexcept
352
362
  {
353
- auto arg_count = PyTuple_Size(args);
363
+ auto arg_count = PyTuple_GET_SIZE(args);
354
364
 
355
365
  if (arg_count == 1)
356
366
  {
@@ -371,7 +381,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
371
381
 
372
382
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Payments::PaymentToken>(args, 0);
373
383
 
374
- return py::convert(self->obj.AcceptAsync(param0));
384
+ return py::convert([&]()
385
+ {
386
+ auto _gil = release_gil();
387
+ return self->obj.AcceptAsync(param0);
388
+ }());
375
389
  }
376
390
  catch (...)
377
391
  {
@@ -388,7 +402,7 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
388
402
 
389
403
  static PyObject* PaymentTransaction_FromIdAsync(PyObject* /*unused*/, PyObject* args) noexcept
390
404
  {
391
- auto arg_count = PyTuple_Size(args);
405
+ auto arg_count = PyTuple_GET_SIZE(args);
392
406
 
393
407
  if (arg_count == 1)
394
408
  {
@@ -409,7 +423,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
409
423
 
410
424
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
411
425
 
412
- return py::convert(winrt::Windows::ApplicationModel::Payments::Provider::PaymentTransaction::FromIdAsync(param0));
426
+ return py::convert([&]()
427
+ {
428
+ auto _gil = release_gil();
429
+ return winrt::Windows::ApplicationModel::Payments::Provider::PaymentTransaction::FromIdAsync(param0);
430
+ }());
413
431
  }
414
432
  catch (...)
415
433
  {
@@ -426,7 +444,7 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
426
444
 
427
445
  static PyObject* PaymentTransaction_Reject(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* args) noexcept
428
446
  {
429
- auto arg_count = PyTuple_Size(args);
447
+ auto arg_count = PyTuple_GET_SIZE(args);
430
448
 
431
449
  if (arg_count == 0)
432
450
  {
@@ -445,7 +463,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
445
463
  return nullptr;
446
464
  }
447
465
 
448
- self->obj.Reject();
466
+ {
467
+ auto _gil = release_gil();
468
+ self->obj.Reject();
469
+ }
470
+
449
471
  Py_RETURN_NONE;
450
472
  }
451
473
  catch (...)
@@ -463,7 +485,7 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
463
485
 
464
486
  static PyObject* PaymentTransaction_UpdateSelectedShippingOptionAsync(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* args) noexcept
465
487
  {
466
- auto arg_count = PyTuple_Size(args);
488
+ auto arg_count = PyTuple_GET_SIZE(args);
467
489
 
468
490
  if (arg_count == 1)
469
491
  {
@@ -484,7 +506,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
484
506
 
485
507
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Payments::PaymentShippingOption>(args, 0);
486
508
 
487
- return py::convert(self->obj.UpdateSelectedShippingOptionAsync(param0));
509
+ return py::convert([&]()
510
+ {
511
+ auto _gil = release_gil();
512
+ return self->obj.UpdateSelectedShippingOptionAsync(param0);
513
+ }());
488
514
  }
489
515
  catch (...)
490
516
  {
@@ -501,7 +527,7 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
501
527
 
502
528
  static PyObject* PaymentTransaction_UpdateShippingAddressAsync(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* args) noexcept
503
529
  {
504
- auto arg_count = PyTuple_Size(args);
530
+ auto arg_count = PyTuple_GET_SIZE(args);
505
531
 
506
532
  if (arg_count == 1)
507
533
  {
@@ -522,7 +548,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
522
548
 
523
549
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Payments::PaymentAddress>(args, 0);
524
550
 
525
- return py::convert(self->obj.UpdateShippingAddressAsync(param0));
551
+ return py::convert([&]()
552
+ {
553
+ auto _gil = release_gil();
554
+ return self->obj.UpdateShippingAddressAsync(param0);
555
+ }());
526
556
  }
527
557
  catch (...)
528
558
  {
@@ -554,7 +584,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
554
584
  return nullptr;
555
585
  }
556
586
 
557
- return py::convert(self->obj.PayerPhoneNumber());
587
+ return py::convert([&]()
588
+ {
589
+ auto _gil = release_gil();
590
+ return self->obj.PayerPhoneNumber();
591
+ }());
558
592
  }
559
593
  catch (...)
560
594
  {
@@ -565,7 +599,7 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
565
599
 
566
600
  static int PaymentTransaction_put_PayerPhoneNumber(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* arg, void* /*unused*/) noexcept
567
601
  {
568
- if (arg == nullptr)
602
+ if (!arg)
569
603
  {
570
604
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
571
605
  return -1;
@@ -588,7 +622,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
588
622
 
589
623
  auto param0 = py::convert_to<winrt::hstring>(arg);
590
624
 
591
- self->obj.PayerPhoneNumber(param0);
625
+ {
626
+ auto _gil = release_gil();
627
+ self->obj.PayerPhoneNumber(param0);
628
+ }
629
+
592
630
  return 0;
593
631
  }
594
632
  catch (...)
@@ -615,7 +653,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
615
653
  return nullptr;
616
654
  }
617
655
 
618
- return py::convert(self->obj.PayerName());
656
+ return py::convert([&]()
657
+ {
658
+ auto _gil = release_gil();
659
+ return self->obj.PayerName();
660
+ }());
619
661
  }
620
662
  catch (...)
621
663
  {
@@ -626,7 +668,7 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
626
668
 
627
669
  static int PaymentTransaction_put_PayerName(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* arg, void* /*unused*/) noexcept
628
670
  {
629
- if (arg == nullptr)
671
+ if (!arg)
630
672
  {
631
673
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
632
674
  return -1;
@@ -649,7 +691,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
649
691
 
650
692
  auto param0 = py::convert_to<winrt::hstring>(arg);
651
693
 
652
- self->obj.PayerName(param0);
694
+ {
695
+ auto _gil = release_gil();
696
+ self->obj.PayerName(param0);
697
+ }
698
+
653
699
  return 0;
654
700
  }
655
701
  catch (...)
@@ -676,7 +722,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
676
722
  return nullptr;
677
723
  }
678
724
 
679
- return py::convert(self->obj.PayerEmail());
725
+ return py::convert([&]()
726
+ {
727
+ auto _gil = release_gil();
728
+ return self->obj.PayerEmail();
729
+ }());
680
730
  }
681
731
  catch (...)
682
732
  {
@@ -687,7 +737,7 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
687
737
 
688
738
  static int PaymentTransaction_put_PayerEmail(py::wrapper::Windows::ApplicationModel::Payments::Provider::PaymentTransaction* self, PyObject* arg, void* /*unused*/) noexcept
689
739
  {
690
- if (arg == nullptr)
740
+ if (!arg)
691
741
  {
692
742
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
693
743
  return -1;
@@ -710,7 +760,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
710
760
 
711
761
  auto param0 = py::convert_to<winrt::hstring>(arg);
712
762
 
713
- self->obj.PayerEmail(param0);
763
+ {
764
+ auto _gil = release_gil();
765
+ self->obj.PayerEmail(param0);
766
+ }
767
+
714
768
  return 0;
715
769
  }
716
770
  catch (...)
@@ -737,7 +791,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
737
791
  return nullptr;
738
792
  }
739
793
 
740
- return py::convert(self->obj.PaymentRequest());
794
+ return py::convert([&]()
795
+ {
796
+ auto _gil = release_gil();
797
+ return self->obj.PaymentRequest();
798
+ }());
741
799
  }
742
800
  catch (...)
743
801
  {
@@ -777,24 +835,21 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
777
835
  { "update_shipping_address_async", reinterpret_cast<PyCFunction>(PaymentTransaction_UpdateShippingAddressAsync), METH_VARARGS, nullptr },
778
836
  { "_assign_array_", _assign_array_PaymentTransaction, METH_O | METH_STATIC, nullptr },
779
837
  { "_from", reinterpret_cast<PyCFunction>(_from_PaymentTransaction), METH_O | METH_STATIC, nullptr },
780
- { }
781
- };
838
+ { }};
782
839
 
783
840
  static PyGetSetDef _getset_PaymentTransaction[] = {
784
841
  { "payer_phone_number", reinterpret_cast<getter>(PaymentTransaction_get_PayerPhoneNumber), reinterpret_cast<setter>(PaymentTransaction_put_PayerPhoneNumber), nullptr, nullptr },
785
842
  { "payer_name", reinterpret_cast<getter>(PaymentTransaction_get_PayerName), reinterpret_cast<setter>(PaymentTransaction_put_PayerName), nullptr, nullptr },
786
843
  { "payer_email", reinterpret_cast<getter>(PaymentTransaction_get_PayerEmail), reinterpret_cast<setter>(PaymentTransaction_put_PayerEmail), nullptr, nullptr },
787
844
  { "payment_request", reinterpret_cast<getter>(PaymentTransaction_get_PaymentRequest), nullptr, nullptr, nullptr },
788
- { }
789
- };
845
+ { }};
790
846
 
791
847
  static PyType_Slot _type_slots_PaymentTransaction[] = {
792
848
  { Py_tp_new, reinterpret_cast<void*>(_new_PaymentTransaction) },
793
849
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaymentTransaction) },
794
850
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PaymentTransaction) },
795
851
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PaymentTransaction) },
796
- { }
797
- };
852
+ { }};
798
853
 
799
854
  static PyType_Spec type_spec_PaymentTransaction = {
800
855
  "winrt._winrt_windows_applicationmodel_payments_provider.PaymentTransaction",
@@ -804,13 +859,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
804
859
  _type_slots_PaymentTransaction};
805
860
 
806
861
  static PyGetSetDef getset_PaymentTransaction_Static[] = {
807
- { }
808
- };
862
+ { }};
809
863
 
810
864
  static PyMethodDef methods_PaymentTransaction_Static[] = {
811
865
  { "from_id_async", reinterpret_cast<PyCFunction>(PaymentTransaction_FromIdAsync), METH_VARARGS, nullptr },
812
- { }
813
- };
866
+ { }};
814
867
 
815
868
  static PyType_Slot type_slots_PaymentTransaction_Static[] =
816
869
  {
@@ -820,14 +873,12 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
820
873
  { }
821
874
  };
822
875
 
823
- static PyType_Spec type_spec_PaymentTransaction_Static =
824
- {
876
+ static PyType_Spec type_spec_PaymentTransaction_Static = {
825
877
  "winrt._winrt_windows_applicationmodel_payments_provider.PaymentTransaction_Static",
826
878
  static_cast<int>(PyType_Type.tp_basicsize),
827
879
  static_cast<int>(PyType_Type.tp_itemsize),
828
880
  Py_TPFLAGS_DEFAULT,
829
- type_slots_PaymentTransaction_Static
830
- };
881
+ type_slots_PaymentTransaction_Static};
831
882
 
832
883
  // ----- PaymentTransactionAcceptResult class --------------------
833
884
 
@@ -863,7 +914,11 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
863
914
  return nullptr;
864
915
  }
865
916
 
866
- return py::convert(self->obj.Status());
917
+ return py::convert([&]()
918
+ {
919
+ auto _gil = release_gil();
920
+ return self->obj.Status();
921
+ }());
867
922
  }
868
923
  catch (...)
869
924
  {
@@ -899,21 +954,18 @@ namespace py::cpp::Windows::ApplicationModel::Payments::Provider
899
954
  static PyMethodDef _methods_PaymentTransactionAcceptResult[] = {
900
955
  { "_assign_array_", _assign_array_PaymentTransactionAcceptResult, METH_O | METH_STATIC, nullptr },
901
956
  { "_from", reinterpret_cast<PyCFunction>(_from_PaymentTransactionAcceptResult), METH_O | METH_STATIC, nullptr },
902
- { }
903
- };
957
+ { }};
904
958
 
905
959
  static PyGetSetDef _getset_PaymentTransactionAcceptResult[] = {
906
960
  { "status", reinterpret_cast<getter>(PaymentTransactionAcceptResult_get_Status), nullptr, nullptr, nullptr },
907
- { }
908
- };
961
+ { }};
909
962
 
910
963
  static PyType_Slot _type_slots_PaymentTransactionAcceptResult[] = {
911
964
  { Py_tp_new, reinterpret_cast<void*>(_new_PaymentTransactionAcceptResult) },
912
965
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaymentTransactionAcceptResult) },
913
966
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PaymentTransactionAcceptResult) },
914
967
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PaymentTransactionAcceptResult) },
915
- { }
916
- };
968
+ { }};
917
969
 
918
970
  static PyType_Spec type_spec_PaymentTransactionAcceptResult = {
919
971
  "winrt._winrt_windows_applicationmodel_payments_provider.PaymentTransactionAcceptResult",
@@ -954,6 +1006,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_payments_provider(void) no
954
1006
  return nullptr;
955
1007
  }
956
1008
 
1009
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
1010
+ if (!inspectable_meta_type)
1011
+ {
1012
+ return nullptr;
1013
+ }
1014
+
957
1015
  auto object_type = py::get_object_type();
958
1016
  if (!object_type)
959
1017
  {
@@ -967,13 +1025,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_payments_provider(void) no
967
1025
  return nullptr;
968
1026
  }
969
1027
 
970
- py::pytype_handle PaymentAppCanMakePaymentTriggerDetails_type{py::register_python_type(module.get(), &type_spec_PaymentAppCanMakePaymentTriggerDetails, object_bases.get(), nullptr)};
1028
+ py::pytype_handle PaymentAppCanMakePaymentTriggerDetails_type{py::register_python_type(module.get(), &type_spec_PaymentAppCanMakePaymentTriggerDetails, object_bases.get(), inspectable_meta_type)};
971
1029
  if (!PaymentAppCanMakePaymentTriggerDetails_type)
972
1030
  {
973
1031
  return nullptr;
974
1032
  }
975
1033
 
976
- py::pyobj_handle type_PaymentAppManager_Static{PyType_FromSpec(&type_spec_PaymentAppManager_Static)};
1034
+ py::pyobj_handle PaymentAppManager_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
1035
+ if (!PaymentAppManager_Static_bases)
1036
+ {
1037
+ return nullptr;
1038
+ }
1039
+
1040
+ py::pyobj_handle type_PaymentAppManager_Static{PyType_FromSpecWithBases(&type_spec_PaymentAppManager_Static, PaymentAppManager_Static_bases.get())};
977
1041
  if (!type_PaymentAppManager_Static)
978
1042
  {
979
1043
  return nullptr;
@@ -985,7 +1049,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_payments_provider(void) no
985
1049
  return nullptr;
986
1050
  }
987
1051
 
988
- py::pyobj_handle type_PaymentTransaction_Static{PyType_FromSpec(&type_spec_PaymentTransaction_Static)};
1052
+ py::pyobj_handle PaymentTransaction_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
1053
+ if (!PaymentTransaction_Static_bases)
1054
+ {
1055
+ return nullptr;
1056
+ }
1057
+
1058
+ py::pyobj_handle type_PaymentTransaction_Static{PyType_FromSpecWithBases(&type_spec_PaymentTransaction_Static, PaymentTransaction_Static_bases.get())};
989
1059
  if (!type_PaymentTransaction_Static)
990
1060
  {
991
1061
  return nullptr;
@@ -997,7 +1067,7 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_payments_provider(void) no
997
1067
  return nullptr;
998
1068
  }
999
1069
 
1000
- py::pytype_handle PaymentTransactionAcceptResult_type{py::register_python_type(module.get(), &type_spec_PaymentTransactionAcceptResult, object_bases.get(), nullptr)};
1070
+ py::pytype_handle PaymentTransactionAcceptResult_type{py::register_python_type(module.get(), &type_spec_PaymentTransactionAcceptResult, object_bases.get(), inspectable_meta_type)};
1001
1071
  if (!PaymentTransactionAcceptResult_type)
1002
1072
  {
1003
1073
  return nullptr;
@@ -1,14 +1,14 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "winrt-sdk"]
4
+ requires = ["setuptools>=78", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "winrt-Windows.ApplicationModel.Payments.Provider"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
11
+ license = "MIT"
12
12
  classifiers = [
13
13
  "Operating System :: Microsoft :: Windows",
14
14
  "Programming Language :: Python :: 3",
@@ -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.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.1.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_applicationmodel_payments_provider",
@@ -0,0 +1,81 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.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.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
+
16
+ Self = typing.TypeVar('Self')
17
+
18
+ @typing.final
19
+ class PaymentAppCanMakePaymentTriggerDetails(winrt.system.Object):
20
+ # System.Void Windows.ApplicationModel.Payments.Provider.PaymentAppCanMakePaymentTriggerDetails::ReportCanMakePaymentResult(Windows.ApplicationModel.Payments.PaymentCanMakePaymentResult)
21
+ def report_can_make_payment_result(self, value: windows_applicationmodel_payments.PaymentCanMakePaymentResult, /) -> None: ...
22
+ # Windows.ApplicationModel.Payments.PaymentRequest Windows.ApplicationModel.Payments.Provider.PaymentAppCanMakePaymentTriggerDetails::get_Request()
23
+ @_property
24
+ def request(self) -> windows_applicationmodel_payments.PaymentRequest: ...
25
+
26
+ @typing.final
27
+ class PaymentAppManager_Static(winrt._winrt.IInspectable_Static):
28
+ # Windows.ApplicationModel.Payments.Provider.PaymentAppManager Windows.ApplicationModel.Payments.Provider.PaymentAppManager::get_Current()
29
+ @_property
30
+ def current(cls) -> PaymentAppManager: ...
31
+
32
+ @typing.final
33
+ class PaymentAppManager(winrt.system.Object, metaclass=PaymentAppManager_Static):
34
+ # Windows.Foundation.IAsyncAction Windows.ApplicationModel.Payments.Provider.PaymentAppManager::RegisterAsync(Windows.Foundation.Collections.IIterable`1<System.String>)
35
+ def register_async(self, supported_payment_method_ids: typing.Iterable[str], /) -> windows_foundation.IAsyncAction: ...
36
+ # Windows.Foundation.IAsyncAction Windows.ApplicationModel.Payments.Provider.PaymentAppManager::UnregisterAsync()
37
+ def unregister_async(self) -> windows_foundation.IAsyncAction: ...
38
+
39
+ @typing.final
40
+ class PaymentTransaction_Static(winrt._winrt.IInspectable_Static):
41
+ # Windows.Foundation.IAsyncOperation`1<Windows.ApplicationModel.Payments.Provider.PaymentTransaction> Windows.ApplicationModel.Payments.Provider.PaymentTransaction::FromIdAsync(System.String)
42
+ def from_id_async(cls, id: str, /) -> windows_foundation.IAsyncOperation[PaymentTransaction]: ...
43
+
44
+ @typing.final
45
+ class PaymentTransaction(winrt.system.Object, metaclass=PaymentTransaction_Static):
46
+ # Windows.Foundation.IAsyncOperation`1<Windows.ApplicationModel.Payments.Provider.PaymentTransactionAcceptResult> Windows.ApplicationModel.Payments.Provider.PaymentTransaction::AcceptAsync(Windows.ApplicationModel.Payments.PaymentToken)
47
+ def accept_async(self, payment_token: windows_applicationmodel_payments.PaymentToken, /) -> windows_foundation.IAsyncOperation[PaymentTransactionAcceptResult]: ...
48
+ # System.Void Windows.ApplicationModel.Payments.Provider.PaymentTransaction::Reject()
49
+ def reject(self) -> None: ...
50
+ # Windows.Foundation.IAsyncOperation`1<Windows.ApplicationModel.Payments.PaymentRequestChangedResult> Windows.ApplicationModel.Payments.Provider.PaymentTransaction::UpdateSelectedShippingOptionAsync(Windows.ApplicationModel.Payments.PaymentShippingOption)
51
+ def update_selected_shipping_option_async(self, selected_shipping_option: windows_applicationmodel_payments.PaymentShippingOption, /) -> windows_foundation.IAsyncOperation[windows_applicationmodel_payments.PaymentRequestChangedResult]: ...
52
+ # Windows.Foundation.IAsyncOperation`1<Windows.ApplicationModel.Payments.PaymentRequestChangedResult> Windows.ApplicationModel.Payments.Provider.PaymentTransaction::UpdateShippingAddressAsync(Windows.ApplicationModel.Payments.PaymentAddress)
53
+ def update_shipping_address_async(self, shipping_address: windows_applicationmodel_payments.PaymentAddress, /) -> windows_foundation.IAsyncOperation[windows_applicationmodel_payments.PaymentRequestChangedResult]: ...
54
+ # System.String Windows.ApplicationModel.Payments.Provider.PaymentTransaction::get_PayerPhoneNumber()
55
+ @_property
56
+ def payer_phone_number(self) -> str: ...
57
+ # System.Void Windows.ApplicationModel.Payments.Provider.PaymentTransaction::put_PayerPhoneNumber(System.String)
58
+ @payer_phone_number.setter
59
+ def payer_phone_number(self, value: str) -> None: ...
60
+ # System.String Windows.ApplicationModel.Payments.Provider.PaymentTransaction::get_PayerName()
61
+ @_property
62
+ def payer_name(self) -> str: ...
63
+ # System.Void Windows.ApplicationModel.Payments.Provider.PaymentTransaction::put_PayerName(System.String)
64
+ @payer_name.setter
65
+ def payer_name(self, value: str) -> None: ...
66
+ # System.String Windows.ApplicationModel.Payments.Provider.PaymentTransaction::get_PayerEmail()
67
+ @_property
68
+ def payer_email(self) -> str: ...
69
+ # System.Void Windows.ApplicationModel.Payments.Provider.PaymentTransaction::put_PayerEmail(System.String)
70
+ @payer_email.setter
71
+ def payer_email(self, value: str) -> None: ...
72
+ # Windows.ApplicationModel.Payments.PaymentRequest Windows.ApplicationModel.Payments.Provider.PaymentTransaction::get_PaymentRequest()
73
+ @_property
74
+ def payment_request(self) -> windows_applicationmodel_payments.PaymentRequest: ...
75
+
76
+ @typing.final
77
+ class PaymentTransactionAcceptResult(winrt.system.Object):
78
+ # Windows.ApplicationModel.Payments.PaymentRequestCompletionStatus Windows.ApplicationModel.Payments.Provider.PaymentTransactionAcceptResult::get_Status()
79
+ @_property
80
+ def status(self) -> windows_applicationmodel_payments.PaymentRequestCompletionStatus: ...
81
+
@@ -0,0 +1,17 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import winrt.system
4
+ from winrt._winrt_windows_applicationmodel_payments_provider import (
5
+ PaymentAppCanMakePaymentTriggerDetails,
6
+ PaymentAppManager,
7
+ PaymentTransaction,
8
+ PaymentTransactionAcceptResult,
9
+ )
10
+
11
+ __all__ = [
12
+ "PaymentAppCanMakePaymentTriggerDetails",
13
+ "PaymentAppManager",
14
+ "PaymentTransaction",
15
+ "PaymentTransactionAcceptResult",
16
+ ]
17
+
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.ApplicationModel.Payments.Provider
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.ApplicationModel.Payments[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Payments[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.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==3.1.0
2
+
3
+ [all]
4
+ winrt-Windows.ApplicationModel.Payments[all]==3.1.0
5
+ winrt-Windows.Foundation[all]==3.1.0
6
+ winrt-Windows.Foundation.Collections[all]==3.1.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- winrt-Windows.ApplicationModel.Payments[all]==2.3.0
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.Foundation.Collections[all]==2.3.0
@@ -1,71 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.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.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
-
16
- Self = typing.TypeVar('Self')
17
-
18
- @typing.final
19
- class PaymentAppCanMakePaymentTriggerDetails(winrt.system.Object):
20
- @staticmethod
21
- def _from(obj: winrt.system.Object, /) -> PaymentAppCanMakePaymentTriggerDetails: ...
22
- def report_can_make_payment_result(self, value: typing.Optional[windows_applicationmodel_payments.PaymentCanMakePaymentResult], /) -> None: ...
23
- @_property
24
- def request(self) -> typing.Optional[windows_applicationmodel_payments.PaymentRequest]: ...
25
-
26
- @typing.final
27
- class PaymentAppManager_Static(type):
28
- @_property
29
- def current(cls) -> typing.Optional[PaymentAppManager]: ...
30
-
31
- @typing.final
32
- class PaymentAppManager(winrt.system.Object, metaclass=PaymentAppManager_Static):
33
- @staticmethod
34
- def _from(obj: winrt.system.Object, /) -> PaymentAppManager: ...
35
- def register_async(self, supported_payment_method_ids: typing.Iterable[str], /) -> windows_foundation.IAsyncAction: ...
36
- def unregister_async(self) -> windows_foundation.IAsyncAction: ...
37
-
38
- @typing.final
39
- class PaymentTransaction_Static(type):
40
- def from_id_async(cls, id: str, /) -> windows_foundation.IAsyncOperation[PaymentTransaction]: ...
41
-
42
- @typing.final
43
- class PaymentTransaction(winrt.system.Object, metaclass=PaymentTransaction_Static):
44
- @staticmethod
45
- def _from(obj: winrt.system.Object, /) -> PaymentTransaction: ...
46
- def accept_async(self, payment_token: typing.Optional[windows_applicationmodel_payments.PaymentToken], /) -> windows_foundation.IAsyncOperation[PaymentTransactionAcceptResult]: ...
47
- def reject(self) -> None: ...
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
- @_property
51
- def payer_phone_number(self) -> str: ...
52
- @payer_phone_number.setter
53
- def payer_phone_number(self, value: str) -> None: ...
54
- @_property
55
- def payer_name(self) -> str: ...
56
- @payer_name.setter
57
- def payer_name(self, value: str) -> None: ...
58
- @_property
59
- def payer_email(self) -> str: ...
60
- @payer_email.setter
61
- def payer_email(self, value: str) -> None: ...
62
- @_property
63
- def payment_request(self) -> typing.Optional[windows_applicationmodel_payments.PaymentRequest]: ...
64
-
65
- @typing.final
66
- class PaymentTransactionAcceptResult(winrt.system.Object):
67
- @staticmethod
68
- def _from(obj: winrt.system.Object, /) -> PaymentTransactionAcceptResult: ...
69
- @_property
70
- def status(self) -> windows_applicationmodel_payments.PaymentRequestCompletionStatus: ...
71
-
@@ -1,16 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import winrt.system
4
- from winrt import _winrt_windows_applicationmodel_payments_provider
5
-
6
- __all__ = [
7
- "PaymentAppCanMakePaymentTriggerDetails",
8
- "PaymentAppManager",
9
- "PaymentTransaction",
10
- "PaymentTransactionAcceptResult",
11
- ]
12
-
13
- PaymentAppCanMakePaymentTriggerDetails = _winrt_windows_applicationmodel_payments_provider.PaymentAppCanMakePaymentTriggerDetails
14
- PaymentAppManager = _winrt_windows_applicationmodel_payments_provider.PaymentAppManager
15
- PaymentTransaction = _winrt_windows_applicationmodel_payments_provider.PaymentTransaction
16
- PaymentTransactionAcceptResult = _winrt_windows_applicationmodel_payments_provider.PaymentTransactionAcceptResult
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.ApplicationModel.Payments[all]==2.3.0
5
- winrt-Windows.Foundation[all]==2.3.0
6
- winrt-Windows.Foundation.Collections[all]==2.3.0