gr4vy 1.1.29__py3-none-any.whl → 1.10.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. gr4vy/_version.py +3 -3
  2. gr4vy/account_updater.py +6 -3
  3. gr4vy/actions.py +307 -0
  4. gr4vy/all.py +4 -2
  5. gr4vy/audit_logs.py +6 -4
  6. gr4vy/balances.py +4 -2
  7. gr4vy/basesdk.py +17 -1
  8. gr4vy/buyers_gift_cards.py +4 -2
  9. gr4vy/buyers_payment_methods.py +4 -2
  10. gr4vy/buyers_sdk.py +43 -25
  11. gr4vy/buyers_shipping_details.py +26 -16
  12. gr4vy/card_scheme_definitions_sdk.py +4 -2
  13. gr4vy/checkout_sessions.py +40 -14
  14. gr4vy/digital_wallets_sdk.py +32 -20
  15. gr4vy/domains.py +14 -10
  16. gr4vy/errors/__init__.py +15 -3
  17. gr4vy/errors/apierror.py +2 -0
  18. gr4vy/errors/error400.py +4 -6
  19. gr4vy/errors/error401.py +4 -6
  20. gr4vy/errors/error403.py +4 -6
  21. gr4vy/errors/error404.py +4 -6
  22. gr4vy/errors/error405.py +4 -6
  23. gr4vy/errors/error409.py +4 -6
  24. gr4vy/errors/error425.py +4 -6
  25. gr4vy/errors/error429.py +4 -6
  26. gr4vy/errors/error500.py +4 -6
  27. gr4vy/errors/error502.py +4 -6
  28. gr4vy/errors/error504.py +4 -6
  29. gr4vy/errors/gr4vyerror.py +11 -7
  30. gr4vy/errors/httpvalidationerror.py +4 -2
  31. gr4vy/errors/no_response_error.py +5 -1
  32. gr4vy/errors/responsevalidationerror.py +2 -0
  33. gr4vy/events.py +54 -7
  34. gr4vy/executions.py +38 -8
  35. gr4vy/gift_cards_sdk.py +29 -19
  36. gr4vy/httpclient.py +0 -1
  37. gr4vy/jobs.py +4 -2
  38. gr4vy/merchant_accounts_sdk.py +30 -10
  39. gr4vy/models/__init__.py +184 -30
  40. gr4vy/models/adyenautorescuesepascenariosenum.py +3 -1
  41. gr4vy/models/adyencardoptions.py +9 -6
  42. gr4vy/models/adyensepaoptions.py +1 -6
  43. gr4vy/models/adyensplitsoptions.py +57 -0
  44. gr4vy/models/airline.py +9 -8
  45. gr4vy/models/airlineleg.py +9 -7
  46. gr4vy/models/airlinepassenger.py +9 -7
  47. gr4vy/models/antifrauddecision.py +9 -1
  48. gr4vy/models/approvaltarget.py +7 -1
  49. gr4vy/models/auditlogaction.py +9 -1
  50. gr4vy/models/auditlogentry.py +3 -3
  51. gr4vy/models/auditlogentryuser.py +3 -3
  52. gr4vy/models/{billingdetails_input.py → billingdetails.py} +2 -2
  53. gr4vy/models/braintreedynamicdatafieldsoptions.py +33 -3
  54. gr4vy/models/browserinfo.py +9 -5
  55. gr4vy/models/buyer.py +3 -3
  56. gr4vy/models/buyercreate.py +3 -3
  57. gr4vy/models/buyerupdate.py +3 -3
  58. gr4vy/models/cancel_transactionop.py +43 -0
  59. gr4vy/models/cancelstatus.py +15 -0
  60. gr4vy/models/capturestatus.py +7 -1
  61. gr4vy/models/cardtype.py +8 -1
  62. gr4vy/models/cartitem.py +53 -8
  63. gr4vy/models/chaseoptions.py +46 -0
  64. gr4vy/models/checkoutsession.py +24 -3
  65. gr4vy/models/checkoutsessioncreate.py +39 -5
  66. gr4vy/models/checkoutsessionpaymentmethod.py +3 -5
  67. gr4vy/models/checkoutsessionpaymentmethoddetails.py +2 -6
  68. gr4vy/models/create_payment_methodop.py +6 -0
  69. gr4vy/models/create_report_execution_urlop.py +16 -1
  70. gr4vy/models/createsession.py +3 -3
  71. gr4vy/models/createsessionstatus.py +7 -1
  72. gr4vy/models/cvvresponsecode.py +7 -1
  73. gr4vy/models/cybersourceoptions.py +7 -0
  74. gr4vy/models/definitionfield.py +1 -6
  75. gr4vy/models/definitionfieldformat.py +8 -1
  76. gr4vy/models/digitalwallet.py +3 -5
  77. gr4vy/models/digitalwalletcreate.py +2 -6
  78. gr4vy/models/digitalwalletprovider.py +6 -1
  79. gr4vy/models/dlocalupioptions.py +50 -0
  80. gr4vy/models/dlocalupirecurringinfooptions.py +47 -0
  81. gr4vy/models/dlocalupiwalletoptions.py +89 -0
  82. gr4vy/models/errordetail.py +2 -4
  83. gr4vy/models/errorlocation.py +8 -1
  84. gr4vy/models/flow.py +16 -0
  85. gr4vy/models/flowaction.py +16 -0
  86. gr4vy/models/forterantifraudoptions.py +8 -8
  87. gr4vy/models/forterantifraudoptionscartitembasicitemdata.py +10 -8
  88. gr4vy/models/forterantifraudoptionscartitemdeliverydetails.py +9 -7
  89. gr4vy/models/giftcardredemption.py +4 -8
  90. gr4vy/models/giftcardredemptionstatus.py +7 -1
  91. gr4vy/models/giftcardservice.py +3 -5
  92. gr4vy/models/giftcardserviceprovider.py +5 -1
  93. gr4vy/models/giftcardsummary.py +3 -5
  94. gr4vy/models/{guestbuyer_input.py → guestbuyer.py} +5 -5
  95. gr4vy/models/instrumenttype.py +1 -0
  96. gr4vy/models/integrationclient.py +16 -0
  97. gr4vy/models/internal/__init__.py +14 -1
  98. gr4vy/models/list_all_report_executionsop.py +2 -14
  99. gr4vy/models/list_audit_logsop.py +2 -10
  100. gr4vy/models/list_buyer_payment_methodsop.py +9 -4
  101. gr4vy/models/list_payment_methodsop.py +2 -14
  102. gr4vy/models/list_payment_servicesop.py +2 -8
  103. gr4vy/models/list_reportsop.py +2 -10
  104. gr4vy/models/list_transaction_actionsop.py +43 -0
  105. gr4vy/models/list_transaction_eventsop.py +12 -1
  106. gr4vy/models/list_transactionsop.py +14 -22
  107. gr4vy/models/merchantaccount.py +9 -5
  108. gr4vy/models/merchantaccountcreate.py +8 -6
  109. gr4vy/models/merchantaccountupdate.py +8 -6
  110. gr4vy/models/merchantprofilescheme.py +7 -7
  111. gr4vy/models/merchantprofileschemesummary.py +7 -7
  112. gr4vy/models/method.py +4 -0
  113. gr4vy/models/mockcardoptions.py +7 -2
  114. gr4vy/models/mode.py +1 -0
  115. gr4vy/models/monatospeioptions.py +15 -0
  116. gr4vy/models/networktoken.py +3 -3
  117. gr4vy/models/networktokenpaymentmethodcreate.py +11 -9
  118. gr4vy/models/networktokenstatus.py +7 -1
  119. gr4vy/models/nuveiidealoptions.py +49 -0
  120. gr4vy/models/nuveipseoptions.py +70 -0
  121. gr4vy/models/paymentlink.py +25 -7
  122. gr4vy/models/paymentlinkcreate.py +23 -28
  123. gr4vy/models/paymentlinkstatus.py +7 -1
  124. gr4vy/models/paymentmethod.py +7 -13
  125. gr4vy/models/paymentmethodcard.py +3 -5
  126. gr4vy/models/paymentmethoddetailscard.py +2 -6
  127. gr4vy/models/paymentmethodstatus.py +7 -1
  128. gr4vy/models/paymentmethodsummary.py +6 -12
  129. gr4vy/models/paymentoption.py +3 -3
  130. gr4vy/models/paymentservice.py +4 -6
  131. gr4vy/models/paymentserviceconfiguration.py +2 -6
  132. gr4vy/models/paymentservicedefinition.py +11 -5
  133. gr4vy/models/paymentservicestatus.py +8 -1
  134. gr4vy/models/paymentservicetoken.py +3 -3
  135. gr4vy/models/payoutcategory.py +1 -1
  136. gr4vy/models/payoutcreate.py +5 -9
  137. gr4vy/models/payoutstatus.py +7 -1
  138. gr4vy/models/payoutsummary.py +4 -6
  139. gr4vy/models/paypaloptions.py +8 -2
  140. gr4vy/models/paypalshippingoptions.py +51 -0
  141. gr4vy/models/paypalshippingoptionsitem.py +89 -0
  142. gr4vy/models/paypalshippingoptionsitemamount.py +20 -0
  143. gr4vy/models/plaidpaymentmethodcreate.py +106 -0
  144. gr4vy/models/redirectpaymentmethodcreate.py +4 -6
  145. gr4vy/models/refund.py +4 -4
  146. gr4vy/models/refundstatus.py +8 -1
  147. gr4vy/models/refundtargettype.py +5 -1
  148. gr4vy/models/report.py +4 -6
  149. gr4vy/models/reportcreate.py +2 -3
  150. gr4vy/models/reportcreatortype.py +7 -1
  151. gr4vy/models/reportexecution.py +3 -3
  152. gr4vy/models/reportexecutionstatus.py +7 -1
  153. gr4vy/models/reportexecutionsummary.py +3 -3
  154. gr4vy/models/reportexecutionurlgenerate.py +16 -0
  155. gr4vy/models/reportschedule.py +9 -1
  156. gr4vy/models/reportspec.py +2 -4
  157. gr4vy/models/reportsummary.py +3 -5
  158. gr4vy/models/settlement.py +32 -32
  159. gr4vy/models/statementdescriptor.py +7 -0
  160. gr4vy/models/stripeconnectoptions.py +7 -0
  161. gr4vy/models/taxid.py +2 -4
  162. gr4vy/models/taxidkind.py +7 -0
  163. gr4vy/models/threedsecuredatav1.py +2 -6
  164. gr4vy/models/threedsecuredatav2.py +2 -6
  165. gr4vy/models/threedsecuremethod.py +7 -1
  166. gr4vy/models/threedsecurestatus.py +7 -1
  167. gr4vy/models/transaction.py +86 -25
  168. gr4vy/models/transactionaction.py +48 -0
  169. gr4vy/models/transactionactions.py +17 -0
  170. gr4vy/models/transactionbuyer.py +3 -3
  171. gr4vy/models/transactioncancel.py +81 -0
  172. gr4vy/models/transactioncapture.py +3 -3
  173. gr4vy/models/transactionconnectionoptions.py +50 -0
  174. gr4vy/models/transactioncreate.py +76 -12
  175. gr4vy/models/transactionevent.py +10 -3
  176. gr4vy/models/transactionintent.py +7 -1
  177. gr4vy/models/transactionintentoutcome.py +6 -1
  178. gr4vy/models/transactionpaymentmethod.py +6 -12
  179. gr4vy/models/transactionpaymentservice.py +3 -3
  180. gr4vy/models/transactionpaymentsource.py +7 -1
  181. gr4vy/models/transactionrefundcreate.py +2 -6
  182. gr4vy/models/transactionsummary.py +11 -10
  183. gr4vy/models/transactionthreedsecuresummary.py +3 -9
  184. gr4vy/models/transactionvoid.py +3 -3
  185. gr4vy/models/userstatus.py +8 -1
  186. gr4vy/models/voidstatus.py +7 -1
  187. gr4vy/network_tokens_cryptogram.py +4 -2
  188. gr4vy/payment_links_sdk.py +36 -16
  189. gr4vy/payment_methods_network_tokens.py +27 -13
  190. gr4vy/payment_methods_payment_service_tokens.py +12 -6
  191. gr4vy/payment_methods_sdk.py +26 -14
  192. gr4vy/payment_options_sdk.py +4 -2
  193. gr4vy/payment_service_definitions_sdk.py +14 -8
  194. gr4vy/payment_services_sdk.py +36 -22
  195. gr4vy/payouts.py +18 -12
  196. gr4vy/refunds_sdk.py +4 -2
  197. gr4vy/report_executions_sdk.py +6 -4
  198. gr4vy/reports_sdk.py +23 -13
  199. gr4vy/sdk.py +17 -4
  200. gr4vy/sessions.py +12 -6
  201. gr4vy/transactions.py +446 -33
  202. gr4vy/transactions_refunds.py +17 -9
  203. gr4vy/transactions_settlements.py +8 -4
  204. gr4vy/types/basemodel.py +41 -3
  205. gr4vy/utils/__init__.py +15 -6
  206. gr4vy/utils/annotations.py +32 -8
  207. gr4vy/utils/enums.py +60 -0
  208. gr4vy/utils/eventstreaming.py +10 -0
  209. gr4vy/utils/forms.py +21 -10
  210. gr4vy/utils/queryparams.py +14 -2
  211. gr4vy/utils/requestbodies.py +1 -1
  212. gr4vy/utils/retries.py +69 -5
  213. gr4vy/utils/serializers.py +0 -20
  214. gr4vy/utils/unmarshal_json_response.py +15 -1
  215. {gr4vy-1.1.29.dist-info → gr4vy-1.10.9.dist-info}/METADATA +43 -41
  216. {gr4vy-1.1.29.dist-info → gr4vy-1.10.9.dist-info}/RECORD +217 -196
  217. {gr4vy-1.1.29.dist-info → gr4vy-1.10.9.dist-info}/WHEEL +1 -1
  218. gr4vy/models/billingdetails_output.py +0 -87
  219. gr4vy/models/guestbuyer_output.py +0 -80
@@ -72,6 +72,7 @@ class PaymentServicesSDK(BaseSDK):
72
72
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
73
73
  ),
74
74
  security=self.sdk_configuration.security,
75
+ allow_empty_value=None,
75
76
  timeout_ms=timeout_ms,
76
77
  )
77
78
 
@@ -92,7 +93,7 @@ class PaymentServicesSDK(BaseSDK):
92
93
  config=self.sdk_configuration,
93
94
  base_url=base_url or "",
94
95
  operation_id="list_payment_services",
95
- oauth2_scopes=[],
96
+ oauth2_scopes=None,
96
97
  security_source=get_security_from_env(
97
98
  self.sdk_configuration.security, models.Security
98
99
  ),
@@ -125,7 +126,7 @@ class PaymentServicesSDK(BaseSDK):
125
126
  return None
126
127
 
127
128
  next_cursor = next_cursor[0]
128
- if next_cursor is None:
129
+ if next_cursor is None or str(next_cursor).strip() == "":
129
130
  return None
130
131
 
131
132
  return self.list(
@@ -251,6 +252,7 @@ class PaymentServicesSDK(BaseSDK):
251
252
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
252
253
  ),
253
254
  security=self.sdk_configuration.security,
255
+ allow_empty_value=None,
254
256
  timeout_ms=timeout_ms,
255
257
  )
256
258
 
@@ -271,7 +273,7 @@ class PaymentServicesSDK(BaseSDK):
271
273
  config=self.sdk_configuration,
272
274
  base_url=base_url or "",
273
275
  operation_id="list_payment_services",
274
- oauth2_scopes=[],
276
+ oauth2_scopes=None,
275
277
  security_source=get_security_from_env(
276
278
  self.sdk_configuration.security, models.Security
277
279
  ),
@@ -304,7 +306,7 @@ class PaymentServicesSDK(BaseSDK):
304
306
  return None
305
307
 
306
308
  next_cursor = next_cursor[0]
307
- if next_cursor is None:
309
+ if next_cursor is None or str(next_cursor).strip() == "":
308
310
  return None
309
311
 
310
312
  return self.list(
@@ -481,6 +483,7 @@ class PaymentServicesSDK(BaseSDK):
481
483
  "json",
482
484
  models.PaymentServiceCreate,
483
485
  ),
486
+ allow_empty_value=None,
484
487
  timeout_ms=timeout_ms,
485
488
  )
486
489
 
@@ -497,7 +500,7 @@ class PaymentServicesSDK(BaseSDK):
497
500
  config=self.sdk_configuration,
498
501
  base_url=base_url or "",
499
502
  operation_id="update_payment_service",
500
- oauth2_scopes=[],
503
+ oauth2_scopes=None,
501
504
  security_source=get_security_from_env(
502
505
  self.sdk_configuration.security, models.Security
503
506
  ),
@@ -684,6 +687,7 @@ class PaymentServicesSDK(BaseSDK):
684
687
  "json",
685
688
  models.PaymentServiceCreate,
686
689
  ),
690
+ allow_empty_value=None,
687
691
  timeout_ms=timeout_ms,
688
692
  )
689
693
 
@@ -700,7 +704,7 @@ class PaymentServicesSDK(BaseSDK):
700
704
  config=self.sdk_configuration,
701
705
  base_url=base_url or "",
702
706
  operation_id="update_payment_service",
703
- oauth2_scopes=[],
707
+ oauth2_scopes=None,
704
708
  security_source=get_security_from_env(
705
709
  self.sdk_configuration.security, models.Security
706
710
  ),
@@ -827,6 +831,7 @@ class PaymentServicesSDK(BaseSDK):
827
831
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
828
832
  ),
829
833
  security=self.sdk_configuration.security,
834
+ allow_empty_value=None,
830
835
  timeout_ms=timeout_ms,
831
836
  )
832
837
 
@@ -847,7 +852,7 @@ class PaymentServicesSDK(BaseSDK):
847
852
  config=self.sdk_configuration,
848
853
  base_url=base_url or "",
849
854
  operation_id="get_payment_service",
850
- oauth2_scopes=[],
855
+ oauth2_scopes=None,
851
856
  security_source=get_security_from_env(
852
857
  self.sdk_configuration.security, models.Security
853
858
  ),
@@ -974,6 +979,7 @@ class PaymentServicesSDK(BaseSDK):
974
979
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
975
980
  ),
976
981
  security=self.sdk_configuration.security,
982
+ allow_empty_value=None,
977
983
  timeout_ms=timeout_ms,
978
984
  )
979
985
 
@@ -994,7 +1000,7 @@ class PaymentServicesSDK(BaseSDK):
994
1000
  config=self.sdk_configuration,
995
1001
  base_url=base_url or "",
996
1002
  operation_id="get_payment_service",
997
- oauth2_scopes=[],
1003
+ oauth2_scopes=None,
998
1004
  security_source=get_security_from_env(
999
1005
  self.sdk_configuration.security, models.Security
1000
1006
  ),
@@ -1185,6 +1191,7 @@ class PaymentServicesSDK(BaseSDK):
1185
1191
  "json",
1186
1192
  models.PaymentServiceUpdate,
1187
1193
  ),
1194
+ allow_empty_value=None,
1188
1195
  timeout_ms=timeout_ms,
1189
1196
  )
1190
1197
 
@@ -1201,7 +1208,7 @@ class PaymentServicesSDK(BaseSDK):
1201
1208
  config=self.sdk_configuration,
1202
1209
  base_url=base_url or "",
1203
1210
  operation_id="create_payment_service",
1204
- oauth2_scopes=[],
1211
+ oauth2_scopes=None,
1205
1212
  security_source=get_security_from_env(
1206
1213
  self.sdk_configuration.security, models.Security
1207
1214
  ),
@@ -1392,6 +1399,7 @@ class PaymentServicesSDK(BaseSDK):
1392
1399
  "json",
1393
1400
  models.PaymentServiceUpdate,
1394
1401
  ),
1402
+ allow_empty_value=None,
1395
1403
  timeout_ms=timeout_ms,
1396
1404
  )
1397
1405
 
@@ -1408,7 +1416,7 @@ class PaymentServicesSDK(BaseSDK):
1408
1416
  config=self.sdk_configuration,
1409
1417
  base_url=base_url or "",
1410
1418
  operation_id="create_payment_service",
1411
- oauth2_scopes=[],
1419
+ oauth2_scopes=None,
1412
1420
  security_source=get_security_from_env(
1413
1421
  self.sdk_configuration.security, models.Security
1414
1422
  ),
@@ -1492,7 +1500,7 @@ class PaymentServicesSDK(BaseSDK):
1492
1500
  server_url: Optional[str] = None,
1493
1501
  timeout_ms: Optional[int] = None,
1494
1502
  http_headers: Optional[Mapping[str, str]] = None,
1495
- ) -> Any:
1503
+ ):
1496
1504
  r"""Delete a configured payment service
1497
1505
 
1498
1506
  Deletes all the configuration of a payment service.
@@ -1535,6 +1543,7 @@ class PaymentServicesSDK(BaseSDK):
1535
1543
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
1536
1544
  ),
1537
1545
  security=self.sdk_configuration.security,
1546
+ allow_empty_value=None,
1538
1547
  timeout_ms=timeout_ms,
1539
1548
  )
1540
1549
 
@@ -1551,7 +1560,7 @@ class PaymentServicesSDK(BaseSDK):
1551
1560
  config=self.sdk_configuration,
1552
1561
  base_url=base_url or "",
1553
1562
  operation_id="delete_payment_service",
1554
- oauth2_scopes=[],
1563
+ oauth2_scopes=None,
1555
1564
  security_source=get_security_from_env(
1556
1565
  self.sdk_configuration.security, models.Security
1557
1566
  ),
@@ -1577,8 +1586,8 @@ class PaymentServicesSDK(BaseSDK):
1577
1586
  )
1578
1587
 
1579
1588
  response_data: Any = None
1580
- if utils.match_response(http_res, "200", "application/json"):
1581
- return unmarshal_json_response(Any, http_res)
1589
+ if utils.match_response(http_res, "204", "*"):
1590
+ return
1582
1591
  if utils.match_response(http_res, "400", "application/json"):
1583
1592
  response_data = unmarshal_json_response(errors.Error400Data, http_res)
1584
1593
  raise errors.Error400(response_data, http_res)
@@ -1635,7 +1644,7 @@ class PaymentServicesSDK(BaseSDK):
1635
1644
  server_url: Optional[str] = None,
1636
1645
  timeout_ms: Optional[int] = None,
1637
1646
  http_headers: Optional[Mapping[str, str]] = None,
1638
- ) -> Any:
1647
+ ):
1639
1648
  r"""Delete a configured payment service
1640
1649
 
1641
1650
  Deletes all the configuration of a payment service.
@@ -1678,6 +1687,7 @@ class PaymentServicesSDK(BaseSDK):
1678
1687
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
1679
1688
  ),
1680
1689
  security=self.sdk_configuration.security,
1690
+ allow_empty_value=None,
1681
1691
  timeout_ms=timeout_ms,
1682
1692
  )
1683
1693
 
@@ -1694,7 +1704,7 @@ class PaymentServicesSDK(BaseSDK):
1694
1704
  config=self.sdk_configuration,
1695
1705
  base_url=base_url or "",
1696
1706
  operation_id="delete_payment_service",
1697
- oauth2_scopes=[],
1707
+ oauth2_scopes=None,
1698
1708
  security_source=get_security_from_env(
1699
1709
  self.sdk_configuration.security, models.Security
1700
1710
  ),
@@ -1720,8 +1730,8 @@ class PaymentServicesSDK(BaseSDK):
1720
1730
  )
1721
1731
 
1722
1732
  response_data: Any = None
1723
- if utils.match_response(http_res, "200", "application/json"):
1724
- return unmarshal_json_response(Any, http_res)
1733
+ if utils.match_response(http_res, "204", "*"):
1734
+ return
1725
1735
  if utils.match_response(http_res, "400", "application/json"):
1726
1736
  response_data = unmarshal_json_response(errors.Error400Data, http_res)
1727
1737
  raise errors.Error400(response_data, http_res)
@@ -1836,6 +1846,7 @@ class PaymentServicesSDK(BaseSDK):
1836
1846
  "json",
1837
1847
  models.VerifyCredentials,
1838
1848
  ),
1849
+ allow_empty_value=None,
1839
1850
  timeout_ms=timeout_ms,
1840
1851
  )
1841
1852
 
@@ -1852,7 +1863,7 @@ class PaymentServicesSDK(BaseSDK):
1852
1863
  config=self.sdk_configuration,
1853
1864
  base_url=base_url or "",
1854
1865
  operation_id="verify_payment_service_credentials",
1855
- oauth2_scopes=[],
1866
+ oauth2_scopes=None,
1856
1867
  security_source=get_security_from_env(
1857
1868
  self.sdk_configuration.security, models.Security
1858
1869
  ),
@@ -1994,6 +2005,7 @@ class PaymentServicesSDK(BaseSDK):
1994
2005
  "json",
1995
2006
  models.VerifyCredentials,
1996
2007
  ),
2008
+ allow_empty_value=None,
1997
2009
  timeout_ms=timeout_ms,
1998
2010
  )
1999
2011
 
@@ -2010,7 +2022,7 @@ class PaymentServicesSDK(BaseSDK):
2010
2022
  config=self.sdk_configuration,
2011
2023
  base_url=base_url or "",
2012
2024
  operation_id="verify_payment_service_credentials",
2013
- oauth2_scopes=[],
2025
+ oauth2_scopes=None,
2014
2026
  security_source=get_security_from_env(
2015
2027
  self.sdk_configuration.security, models.Security
2016
2028
  ),
@@ -2143,6 +2155,7 @@ class PaymentServicesSDK(BaseSDK):
2143
2155
  get_serialized_body=lambda: utils.serialize_request_body(
2144
2156
  request.request_body, False, False, "json", Dict[str, Any]
2145
2157
  ),
2158
+ allow_empty_value=None,
2146
2159
  timeout_ms=timeout_ms,
2147
2160
  )
2148
2161
 
@@ -2159,7 +2172,7 @@ class PaymentServicesSDK(BaseSDK):
2159
2172
  config=self.sdk_configuration,
2160
2173
  base_url=base_url or "",
2161
2174
  operation_id="create_payment_service_session",
2162
- oauth2_scopes=[],
2175
+ oauth2_scopes=None,
2163
2176
  security_source=get_security_from_env(
2164
2177
  self.sdk_configuration.security, models.Security
2165
2178
  ),
@@ -2292,6 +2305,7 @@ class PaymentServicesSDK(BaseSDK):
2292
2305
  get_serialized_body=lambda: utils.serialize_request_body(
2293
2306
  request.request_body, False, False, "json", Dict[str, Any]
2294
2307
  ),
2308
+ allow_empty_value=None,
2295
2309
  timeout_ms=timeout_ms,
2296
2310
  )
2297
2311
 
@@ -2308,7 +2322,7 @@ class PaymentServicesSDK(BaseSDK):
2308
2322
  config=self.sdk_configuration,
2309
2323
  base_url=base_url or "",
2310
2324
  operation_id="create_payment_service_session",
2311
- oauth2_scopes=[],
2325
+ oauth2_scopes=None,
2312
2326
  security_source=get_security_from_env(
2313
2327
  self.sdk_configuration.security, models.Security
2314
2328
  ),
gr4vy/payouts.py CHANGED
@@ -66,6 +66,7 @@ class Payouts(BaseSDK):
66
66
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
67
67
  ),
68
68
  security=self.sdk_configuration.security,
69
+ allow_empty_value=None,
69
70
  timeout_ms=timeout_ms,
70
71
  )
71
72
 
@@ -86,7 +87,7 @@ class Payouts(BaseSDK):
86
87
  config=self.sdk_configuration,
87
88
  base_url=base_url or "",
88
89
  operation_id="list_payouts",
89
- oauth2_scopes=[],
90
+ oauth2_scopes=None,
90
91
  security_source=get_security_from_env(
91
92
  self.sdk_configuration.security, models.Security
92
93
  ),
@@ -119,7 +120,7 @@ class Payouts(BaseSDK):
119
120
  return None
120
121
 
121
122
  next_cursor = next_cursor[0]
122
- if next_cursor is None:
123
+ if next_cursor is None or str(next_cursor).strip() == "":
123
124
  return None
124
125
 
125
126
  return self.list(
@@ -237,6 +238,7 @@ class Payouts(BaseSDK):
237
238
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
238
239
  ),
239
240
  security=self.sdk_configuration.security,
241
+ allow_empty_value=None,
240
242
  timeout_ms=timeout_ms,
241
243
  )
242
244
 
@@ -257,7 +259,7 @@ class Payouts(BaseSDK):
257
259
  config=self.sdk_configuration,
258
260
  base_url=base_url or "",
259
261
  operation_id="list_payouts",
260
- oauth2_scopes=[],
262
+ oauth2_scopes=None,
261
263
  security_source=get_security_from_env(
262
264
  self.sdk_configuration.security, models.Security
263
265
  ),
@@ -290,7 +292,7 @@ class Payouts(BaseSDK):
290
292
  return None
291
293
 
292
294
  next_cursor = next_cursor[0]
293
- if next_cursor is None:
295
+ if next_cursor is None or str(next_cursor).strip() == "":
294
296
  return None
295
297
 
296
298
  return self.list(
@@ -367,7 +369,7 @@ class Payouts(BaseSDK):
367
369
  external_identifier: OptionalNullable[str] = UNSET,
368
370
  buyer_id: OptionalNullable[str] = UNSET,
369
371
  buyer: OptionalNullable[
370
- Union[models.GuestBuyerInput, models.GuestBuyerInputTypedDict]
372
+ Union[models.GuestBuyer, models.GuestBuyerTypedDict]
371
373
  ] = UNSET,
372
374
  buyer_external_identifier: OptionalNullable[str] = UNSET,
373
375
  merchant: OptionalNullable[
@@ -427,7 +429,7 @@ class Payouts(BaseSDK):
427
429
  external_identifier=external_identifier,
428
430
  buyer_id=buyer_id,
429
431
  buyer=utils.get_pydantic_model(
430
- buyer, OptionalNullable[models.GuestBuyerInput]
432
+ buyer, OptionalNullable[models.GuestBuyer]
431
433
  ),
432
434
  buyer_external_identifier=buyer_external_identifier,
433
435
  merchant=utils.get_pydantic_model(
@@ -458,6 +460,7 @@ class Payouts(BaseSDK):
458
460
  get_serialized_body=lambda: utils.serialize_request_body(
459
461
  request.payout_create, False, False, "json", models.PayoutCreate
460
462
  ),
463
+ allow_empty_value=None,
461
464
  timeout_ms=timeout_ms,
462
465
  )
463
466
 
@@ -474,7 +477,7 @@ class Payouts(BaseSDK):
474
477
  config=self.sdk_configuration,
475
478
  base_url=base_url or "",
476
479
  operation_id="create_payout",
477
- oauth2_scopes=[],
480
+ oauth2_scopes=None,
478
481
  security_source=get_security_from_env(
479
482
  self.sdk_configuration.security, models.Security
480
483
  ),
@@ -563,7 +566,7 @@ class Payouts(BaseSDK):
563
566
  external_identifier: OptionalNullable[str] = UNSET,
564
567
  buyer_id: OptionalNullable[str] = UNSET,
565
568
  buyer: OptionalNullable[
566
- Union[models.GuestBuyerInput, models.GuestBuyerInputTypedDict]
569
+ Union[models.GuestBuyer, models.GuestBuyerTypedDict]
567
570
  ] = UNSET,
568
571
  buyer_external_identifier: OptionalNullable[str] = UNSET,
569
572
  merchant: OptionalNullable[
@@ -623,7 +626,7 @@ class Payouts(BaseSDK):
623
626
  external_identifier=external_identifier,
624
627
  buyer_id=buyer_id,
625
628
  buyer=utils.get_pydantic_model(
626
- buyer, OptionalNullable[models.GuestBuyerInput]
629
+ buyer, OptionalNullable[models.GuestBuyer]
627
630
  ),
628
631
  buyer_external_identifier=buyer_external_identifier,
629
632
  merchant=utils.get_pydantic_model(
@@ -654,6 +657,7 @@ class Payouts(BaseSDK):
654
657
  get_serialized_body=lambda: utils.serialize_request_body(
655
658
  request.payout_create, False, False, "json", models.PayoutCreate
656
659
  ),
660
+ allow_empty_value=None,
657
661
  timeout_ms=timeout_ms,
658
662
  )
659
663
 
@@ -670,7 +674,7 @@ class Payouts(BaseSDK):
670
674
  config=self.sdk_configuration,
671
675
  base_url=base_url or "",
672
676
  operation_id="create_payout",
673
- oauth2_scopes=[],
677
+ oauth2_scopes=None,
674
678
  security_source=get_security_from_env(
675
679
  self.sdk_configuration.security, models.Security
676
680
  ),
@@ -797,6 +801,7 @@ class Payouts(BaseSDK):
797
801
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
798
802
  ),
799
803
  security=self.sdk_configuration.security,
804
+ allow_empty_value=None,
800
805
  timeout_ms=timeout_ms,
801
806
  )
802
807
 
@@ -817,7 +822,7 @@ class Payouts(BaseSDK):
817
822
  config=self.sdk_configuration,
818
823
  base_url=base_url or "",
819
824
  operation_id="get_payout",
820
- oauth2_scopes=[],
825
+ oauth2_scopes=None,
821
826
  security_source=get_security_from_env(
822
827
  self.sdk_configuration.security, models.Security
823
828
  ),
@@ -944,6 +949,7 @@ class Payouts(BaseSDK):
944
949
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
945
950
  ),
946
951
  security=self.sdk_configuration.security,
952
+ allow_empty_value=None,
947
953
  timeout_ms=timeout_ms,
948
954
  )
949
955
 
@@ -964,7 +970,7 @@ class Payouts(BaseSDK):
964
970
  config=self.sdk_configuration,
965
971
  base_url=base_url or "",
966
972
  operation_id="get_payout",
967
- oauth2_scopes=[],
973
+ oauth2_scopes=None,
968
974
  security_source=get_security_from_env(
969
975
  self.sdk_configuration.security, models.Security
970
976
  ),
gr4vy/refunds_sdk.py CHANGED
@@ -62,6 +62,7 @@ class RefundsSDK(BaseSDK):
62
62
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
63
63
  ),
64
64
  security=self.sdk_configuration.security,
65
+ allow_empty_value=None,
65
66
  timeout_ms=timeout_ms,
66
67
  )
67
68
 
@@ -82,7 +83,7 @@ class RefundsSDK(BaseSDK):
82
83
  config=self.sdk_configuration,
83
84
  base_url=base_url or "",
84
85
  operation_id="get_refund",
85
- oauth2_scopes=[],
86
+ oauth2_scopes=None,
86
87
  security_source=get_security_from_env(
87
88
  self.sdk_configuration.security, models.Security
88
89
  ),
@@ -209,6 +210,7 @@ class RefundsSDK(BaseSDK):
209
210
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
210
211
  ),
211
212
  security=self.sdk_configuration.security,
213
+ allow_empty_value=None,
212
214
  timeout_ms=timeout_ms,
213
215
  )
214
216
 
@@ -229,7 +231,7 @@ class RefundsSDK(BaseSDK):
229
231
  config=self.sdk_configuration,
230
232
  base_url=base_url or "",
231
233
  operation_id="get_refund",
232
- oauth2_scopes=[],
234
+ oauth2_scopes=None,
233
235
  security_source=get_security_from_env(
234
236
  self.sdk_configuration.security, models.Security
235
237
  ),
@@ -82,6 +82,7 @@ class ReportExecutionsSDK(BaseSDK):
82
82
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
83
83
  ),
84
84
  security=self.sdk_configuration.security,
85
+ allow_empty_value=None,
85
86
  timeout_ms=timeout_ms,
86
87
  )
87
88
 
@@ -102,7 +103,7 @@ class ReportExecutionsSDK(BaseSDK):
102
103
  config=self.sdk_configuration,
103
104
  base_url=base_url or "",
104
105
  operation_id="list_all_report_executions",
105
- oauth2_scopes=[],
106
+ oauth2_scopes=None,
106
107
  security_source=get_security_from_env(
107
108
  self.sdk_configuration.security, models.Security
108
109
  ),
@@ -135,7 +136,7 @@ class ReportExecutionsSDK(BaseSDK):
135
136
  return None
136
137
 
137
138
  next_cursor = next_cursor[0]
138
- if next_cursor is None:
139
+ if next_cursor is None or str(next_cursor).strip() == "":
139
140
  return None
140
141
 
141
142
  return self.list(
@@ -273,6 +274,7 @@ class ReportExecutionsSDK(BaseSDK):
273
274
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
274
275
  ),
275
276
  security=self.sdk_configuration.security,
277
+ allow_empty_value=None,
276
278
  timeout_ms=timeout_ms,
277
279
  )
278
280
 
@@ -293,7 +295,7 @@ class ReportExecutionsSDK(BaseSDK):
293
295
  config=self.sdk_configuration,
294
296
  base_url=base_url or "",
295
297
  operation_id="list_all_report_executions",
296
- oauth2_scopes=[],
298
+ oauth2_scopes=None,
297
299
  security_source=get_security_from_env(
298
300
  self.sdk_configuration.security, models.Security
299
301
  ),
@@ -326,7 +328,7 @@ class ReportExecutionsSDK(BaseSDK):
326
328
  return None
327
329
 
328
330
  next_cursor = next_cursor[0]
329
- if next_cursor is None:
331
+ if next_cursor is None or str(next_cursor).strip() == "":
330
332
  return None
331
333
 
332
334
  return self.list(
gr4vy/reports_sdk.py CHANGED
@@ -15,13 +15,15 @@ from typing import Any, Dict, List, Mapping, Optional, Union
15
15
  class ReportsSDK(BaseSDK):
16
16
  executions: Executions
17
17
 
18
- def __init__(self, sdk_config: SDKConfiguration) -> None:
19
- BaseSDK.__init__(self, sdk_config)
18
+ def __init__(
19
+ self, sdk_config: SDKConfiguration, parent_ref: Optional[object] = None
20
+ ) -> None:
21
+ BaseSDK.__init__(self, sdk_config, parent_ref=parent_ref)
20
22
  self.sdk_configuration = sdk_config
21
23
  self._init_sdks()
22
24
 
23
25
  def _init_sdks(self):
24
- self.executions = Executions(self.sdk_configuration)
26
+ self.executions = Executions(self.sdk_configuration, parent_ref=self.parent_ref)
25
27
 
26
28
  def list(
27
29
  self,
@@ -87,6 +89,7 @@ class ReportsSDK(BaseSDK):
87
89
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
88
90
  ),
89
91
  security=self.sdk_configuration.security,
92
+ allow_empty_value=None,
90
93
  timeout_ms=timeout_ms,
91
94
  )
92
95
 
@@ -107,7 +110,7 @@ class ReportsSDK(BaseSDK):
107
110
  config=self.sdk_configuration,
108
111
  base_url=base_url or "",
109
112
  operation_id="list_reports",
110
- oauth2_scopes=[],
113
+ oauth2_scopes=None,
111
114
  security_source=get_security_from_env(
112
115
  self.sdk_configuration.security, models.Security
113
116
  ),
@@ -140,7 +143,7 @@ class ReportsSDK(BaseSDK):
140
143
  return None
141
144
 
142
145
  next_cursor = next_cursor[0]
143
- if next_cursor is None:
146
+ if next_cursor is None or str(next_cursor).strip() == "":
144
147
  return None
145
148
 
146
149
  return self.list(
@@ -269,6 +272,7 @@ class ReportsSDK(BaseSDK):
269
272
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
270
273
  ),
271
274
  security=self.sdk_configuration.security,
275
+ allow_empty_value=None,
272
276
  timeout_ms=timeout_ms,
273
277
  )
274
278
 
@@ -289,7 +293,7 @@ class ReportsSDK(BaseSDK):
289
293
  config=self.sdk_configuration,
290
294
  base_url=base_url or "",
291
295
  operation_id="list_reports",
292
- oauth2_scopes=[],
296
+ oauth2_scopes=None,
293
297
  security_source=get_security_from_env(
294
298
  self.sdk_configuration.security, models.Security
295
299
  ),
@@ -322,7 +326,7 @@ class ReportsSDK(BaseSDK):
322
326
  return None
323
327
 
324
328
  next_cursor = next_cursor[0]
325
- if next_cursor is None:
329
+ if next_cursor is None or str(next_cursor).strip() == "":
326
330
  return None
327
331
 
328
332
  return self.list(
@@ -459,6 +463,7 @@ class ReportsSDK(BaseSDK):
459
463
  get_serialized_body=lambda: utils.serialize_request_body(
460
464
  request.report_create, False, False, "json", models.ReportCreate
461
465
  ),
466
+ allow_empty_value=None,
462
467
  timeout_ms=timeout_ms,
463
468
  )
464
469
 
@@ -475,7 +480,7 @@ class ReportsSDK(BaseSDK):
475
480
  config=self.sdk_configuration,
476
481
  base_url=base_url or "",
477
482
  operation_id="add_report",
478
- oauth2_scopes=[],
483
+ oauth2_scopes=None,
479
484
  security_source=get_security_from_env(
480
485
  self.sdk_configuration.security, models.Security
481
486
  ),
@@ -622,6 +627,7 @@ class ReportsSDK(BaseSDK):
622
627
  get_serialized_body=lambda: utils.serialize_request_body(
623
628
  request.report_create, False, False, "json", models.ReportCreate
624
629
  ),
630
+ allow_empty_value=None,
625
631
  timeout_ms=timeout_ms,
626
632
  )
627
633
 
@@ -638,7 +644,7 @@ class ReportsSDK(BaseSDK):
638
644
  config=self.sdk_configuration,
639
645
  base_url=base_url or "",
640
646
  operation_id="add_report",
641
- oauth2_scopes=[],
647
+ oauth2_scopes=None,
642
648
  security_source=get_security_from_env(
643
649
  self.sdk_configuration.security, models.Security
644
650
  ),
@@ -765,6 +771,7 @@ class ReportsSDK(BaseSDK):
765
771
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
766
772
  ),
767
773
  security=self.sdk_configuration.security,
774
+ allow_empty_value=None,
768
775
  timeout_ms=timeout_ms,
769
776
  )
770
777
 
@@ -785,7 +792,7 @@ class ReportsSDK(BaseSDK):
785
792
  config=self.sdk_configuration,
786
793
  base_url=base_url or "",
787
794
  operation_id="get_report",
788
- oauth2_scopes=[],
795
+ oauth2_scopes=None,
789
796
  security_source=get_security_from_env(
790
797
  self.sdk_configuration.security, models.Security
791
798
  ),
@@ -912,6 +919,7 @@ class ReportsSDK(BaseSDK):
912
919
  merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
913
920
  ),
914
921
  security=self.sdk_configuration.security,
922
+ allow_empty_value=None,
915
923
  timeout_ms=timeout_ms,
916
924
  )
917
925
 
@@ -932,7 +940,7 @@ class ReportsSDK(BaseSDK):
932
940
  config=self.sdk_configuration,
933
941
  base_url=base_url or "",
934
942
  operation_id="get_report",
935
- oauth2_scopes=[],
943
+ oauth2_scopes=None,
936
944
  security_source=get_security_from_env(
937
945
  self.sdk_configuration.security, models.Security
938
946
  ),
@@ -1073,6 +1081,7 @@ class ReportsSDK(BaseSDK):
1073
1081
  get_serialized_body=lambda: utils.serialize_request_body(
1074
1082
  request.report_update, False, False, "json", models.ReportUpdate
1075
1083
  ),
1084
+ allow_empty_value=None,
1076
1085
  timeout_ms=timeout_ms,
1077
1086
  )
1078
1087
 
@@ -1089,7 +1098,7 @@ class ReportsSDK(BaseSDK):
1089
1098
  config=self.sdk_configuration,
1090
1099
  base_url=base_url or "",
1091
1100
  operation_id="update_report",
1092
- oauth2_scopes=[],
1101
+ oauth2_scopes=None,
1093
1102
  security_source=get_security_from_env(
1094
1103
  self.sdk_configuration.security, models.Security
1095
1104
  ),
@@ -1230,6 +1239,7 @@ class ReportsSDK(BaseSDK):
1230
1239
  get_serialized_body=lambda: utils.serialize_request_body(
1231
1240
  request.report_update, False, False, "json", models.ReportUpdate
1232
1241
  ),
1242
+ allow_empty_value=None,
1233
1243
  timeout_ms=timeout_ms,
1234
1244
  )
1235
1245
 
@@ -1246,7 +1256,7 @@ class ReportsSDK(BaseSDK):
1246
1256
  config=self.sdk_configuration,
1247
1257
  base_url=base_url or "",
1248
1258
  operation_id="update_report",
1249
- oauth2_scopes=[],
1259
+ oauth2_scopes=None,
1250
1260
  security_source=get_security_from_env(
1251
1261
  self.sdk_configuration.security, models.Security
1252
1262
  ),