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.
- gr4vy/_version.py +3 -3
- gr4vy/account_updater.py +6 -3
- gr4vy/actions.py +307 -0
- gr4vy/all.py +4 -2
- gr4vy/audit_logs.py +6 -4
- gr4vy/balances.py +4 -2
- gr4vy/basesdk.py +17 -1
- gr4vy/buyers_gift_cards.py +4 -2
- gr4vy/buyers_payment_methods.py +4 -2
- gr4vy/buyers_sdk.py +43 -25
- gr4vy/buyers_shipping_details.py +26 -16
- gr4vy/card_scheme_definitions_sdk.py +4 -2
- gr4vy/checkout_sessions.py +40 -14
- gr4vy/digital_wallets_sdk.py +32 -20
- gr4vy/domains.py +14 -10
- gr4vy/errors/__init__.py +15 -3
- gr4vy/errors/apierror.py +2 -0
- gr4vy/errors/error400.py +4 -6
- gr4vy/errors/error401.py +4 -6
- gr4vy/errors/error403.py +4 -6
- gr4vy/errors/error404.py +4 -6
- gr4vy/errors/error405.py +4 -6
- gr4vy/errors/error409.py +4 -6
- gr4vy/errors/error425.py +4 -6
- gr4vy/errors/error429.py +4 -6
- gr4vy/errors/error500.py +4 -6
- gr4vy/errors/error502.py +4 -6
- gr4vy/errors/error504.py +4 -6
- gr4vy/errors/gr4vyerror.py +11 -7
- gr4vy/errors/httpvalidationerror.py +4 -2
- gr4vy/errors/no_response_error.py +5 -1
- gr4vy/errors/responsevalidationerror.py +2 -0
- gr4vy/events.py +54 -7
- gr4vy/executions.py +38 -8
- gr4vy/gift_cards_sdk.py +29 -19
- gr4vy/httpclient.py +0 -1
- gr4vy/jobs.py +4 -2
- gr4vy/merchant_accounts_sdk.py +30 -10
- gr4vy/models/__init__.py +184 -30
- gr4vy/models/adyenautorescuesepascenariosenum.py +3 -1
- gr4vy/models/adyencardoptions.py +9 -6
- gr4vy/models/adyensepaoptions.py +1 -6
- gr4vy/models/adyensplitsoptions.py +57 -0
- gr4vy/models/airline.py +9 -8
- gr4vy/models/airlineleg.py +9 -7
- gr4vy/models/airlinepassenger.py +9 -7
- gr4vy/models/antifrauddecision.py +9 -1
- gr4vy/models/approvaltarget.py +7 -1
- gr4vy/models/auditlogaction.py +9 -1
- gr4vy/models/auditlogentry.py +3 -3
- gr4vy/models/auditlogentryuser.py +3 -3
- gr4vy/models/{billingdetails_input.py → billingdetails.py} +2 -2
- gr4vy/models/braintreedynamicdatafieldsoptions.py +33 -3
- gr4vy/models/browserinfo.py +9 -5
- gr4vy/models/buyer.py +3 -3
- gr4vy/models/buyercreate.py +3 -3
- gr4vy/models/buyerupdate.py +3 -3
- gr4vy/models/cancel_transactionop.py +43 -0
- gr4vy/models/cancelstatus.py +15 -0
- gr4vy/models/capturestatus.py +7 -1
- gr4vy/models/cardtype.py +8 -1
- gr4vy/models/cartitem.py +53 -8
- gr4vy/models/chaseoptions.py +46 -0
- gr4vy/models/checkoutsession.py +24 -3
- gr4vy/models/checkoutsessioncreate.py +39 -5
- gr4vy/models/checkoutsessionpaymentmethod.py +3 -5
- gr4vy/models/checkoutsessionpaymentmethoddetails.py +2 -6
- gr4vy/models/create_payment_methodop.py +6 -0
- gr4vy/models/create_report_execution_urlop.py +16 -1
- gr4vy/models/createsession.py +3 -3
- gr4vy/models/createsessionstatus.py +7 -1
- gr4vy/models/cvvresponsecode.py +7 -1
- gr4vy/models/cybersourceoptions.py +7 -0
- gr4vy/models/definitionfield.py +1 -6
- gr4vy/models/definitionfieldformat.py +8 -1
- gr4vy/models/digitalwallet.py +3 -5
- gr4vy/models/digitalwalletcreate.py +2 -6
- gr4vy/models/digitalwalletprovider.py +6 -1
- gr4vy/models/dlocalupioptions.py +50 -0
- gr4vy/models/dlocalupirecurringinfooptions.py +47 -0
- gr4vy/models/dlocalupiwalletoptions.py +89 -0
- gr4vy/models/errordetail.py +2 -4
- gr4vy/models/errorlocation.py +8 -1
- gr4vy/models/flow.py +16 -0
- gr4vy/models/flowaction.py +16 -0
- gr4vy/models/forterantifraudoptions.py +8 -8
- gr4vy/models/forterantifraudoptionscartitembasicitemdata.py +10 -8
- gr4vy/models/forterantifraudoptionscartitemdeliverydetails.py +9 -7
- gr4vy/models/giftcardredemption.py +4 -8
- gr4vy/models/giftcardredemptionstatus.py +7 -1
- gr4vy/models/giftcardservice.py +3 -5
- gr4vy/models/giftcardserviceprovider.py +5 -1
- gr4vy/models/giftcardsummary.py +3 -5
- gr4vy/models/{guestbuyer_input.py → guestbuyer.py} +5 -5
- gr4vy/models/instrumenttype.py +1 -0
- gr4vy/models/integrationclient.py +16 -0
- gr4vy/models/internal/__init__.py +14 -1
- gr4vy/models/list_all_report_executionsop.py +2 -14
- gr4vy/models/list_audit_logsop.py +2 -10
- gr4vy/models/list_buyer_payment_methodsop.py +9 -4
- gr4vy/models/list_payment_methodsop.py +2 -14
- gr4vy/models/list_payment_servicesop.py +2 -8
- gr4vy/models/list_reportsop.py +2 -10
- gr4vy/models/list_transaction_actionsop.py +43 -0
- gr4vy/models/list_transaction_eventsop.py +12 -1
- gr4vy/models/list_transactionsop.py +14 -22
- gr4vy/models/merchantaccount.py +9 -5
- gr4vy/models/merchantaccountcreate.py +8 -6
- gr4vy/models/merchantaccountupdate.py +8 -6
- gr4vy/models/merchantprofilescheme.py +7 -7
- gr4vy/models/merchantprofileschemesummary.py +7 -7
- gr4vy/models/method.py +4 -0
- gr4vy/models/mockcardoptions.py +7 -2
- gr4vy/models/mode.py +1 -0
- gr4vy/models/monatospeioptions.py +15 -0
- gr4vy/models/networktoken.py +3 -3
- gr4vy/models/networktokenpaymentmethodcreate.py +11 -9
- gr4vy/models/networktokenstatus.py +7 -1
- gr4vy/models/nuveiidealoptions.py +49 -0
- gr4vy/models/nuveipseoptions.py +70 -0
- gr4vy/models/paymentlink.py +25 -7
- gr4vy/models/paymentlinkcreate.py +23 -28
- gr4vy/models/paymentlinkstatus.py +7 -1
- gr4vy/models/paymentmethod.py +7 -13
- gr4vy/models/paymentmethodcard.py +3 -5
- gr4vy/models/paymentmethoddetailscard.py +2 -6
- gr4vy/models/paymentmethodstatus.py +7 -1
- gr4vy/models/paymentmethodsummary.py +6 -12
- gr4vy/models/paymentoption.py +3 -3
- gr4vy/models/paymentservice.py +4 -6
- gr4vy/models/paymentserviceconfiguration.py +2 -6
- gr4vy/models/paymentservicedefinition.py +11 -5
- gr4vy/models/paymentservicestatus.py +8 -1
- gr4vy/models/paymentservicetoken.py +3 -3
- gr4vy/models/payoutcategory.py +1 -1
- gr4vy/models/payoutcreate.py +5 -9
- gr4vy/models/payoutstatus.py +7 -1
- gr4vy/models/payoutsummary.py +4 -6
- gr4vy/models/paypaloptions.py +8 -2
- gr4vy/models/paypalshippingoptions.py +51 -0
- gr4vy/models/paypalshippingoptionsitem.py +89 -0
- gr4vy/models/paypalshippingoptionsitemamount.py +20 -0
- gr4vy/models/plaidpaymentmethodcreate.py +106 -0
- gr4vy/models/redirectpaymentmethodcreate.py +4 -6
- gr4vy/models/refund.py +4 -4
- gr4vy/models/refundstatus.py +8 -1
- gr4vy/models/refundtargettype.py +5 -1
- gr4vy/models/report.py +4 -6
- gr4vy/models/reportcreate.py +2 -3
- gr4vy/models/reportcreatortype.py +7 -1
- gr4vy/models/reportexecution.py +3 -3
- gr4vy/models/reportexecutionstatus.py +7 -1
- gr4vy/models/reportexecutionsummary.py +3 -3
- gr4vy/models/reportexecutionurlgenerate.py +16 -0
- gr4vy/models/reportschedule.py +9 -1
- gr4vy/models/reportspec.py +2 -4
- gr4vy/models/reportsummary.py +3 -5
- gr4vy/models/settlement.py +32 -32
- gr4vy/models/statementdescriptor.py +7 -0
- gr4vy/models/stripeconnectoptions.py +7 -0
- gr4vy/models/taxid.py +2 -4
- gr4vy/models/taxidkind.py +7 -0
- gr4vy/models/threedsecuredatav1.py +2 -6
- gr4vy/models/threedsecuredatav2.py +2 -6
- gr4vy/models/threedsecuremethod.py +7 -1
- gr4vy/models/threedsecurestatus.py +7 -1
- gr4vy/models/transaction.py +86 -25
- gr4vy/models/transactionaction.py +48 -0
- gr4vy/models/transactionactions.py +17 -0
- gr4vy/models/transactionbuyer.py +3 -3
- gr4vy/models/transactioncancel.py +81 -0
- gr4vy/models/transactioncapture.py +3 -3
- gr4vy/models/transactionconnectionoptions.py +50 -0
- gr4vy/models/transactioncreate.py +76 -12
- gr4vy/models/transactionevent.py +10 -3
- gr4vy/models/transactionintent.py +7 -1
- gr4vy/models/transactionintentoutcome.py +6 -1
- gr4vy/models/transactionpaymentmethod.py +6 -12
- gr4vy/models/transactionpaymentservice.py +3 -3
- gr4vy/models/transactionpaymentsource.py +7 -1
- gr4vy/models/transactionrefundcreate.py +2 -6
- gr4vy/models/transactionsummary.py +11 -10
- gr4vy/models/transactionthreedsecuresummary.py +3 -9
- gr4vy/models/transactionvoid.py +3 -3
- gr4vy/models/userstatus.py +8 -1
- gr4vy/models/voidstatus.py +7 -1
- gr4vy/network_tokens_cryptogram.py +4 -2
- gr4vy/payment_links_sdk.py +36 -16
- gr4vy/payment_methods_network_tokens.py +27 -13
- gr4vy/payment_methods_payment_service_tokens.py +12 -6
- gr4vy/payment_methods_sdk.py +26 -14
- gr4vy/payment_options_sdk.py +4 -2
- gr4vy/payment_service_definitions_sdk.py +14 -8
- gr4vy/payment_services_sdk.py +36 -22
- gr4vy/payouts.py +18 -12
- gr4vy/refunds_sdk.py +4 -2
- gr4vy/report_executions_sdk.py +6 -4
- gr4vy/reports_sdk.py +23 -13
- gr4vy/sdk.py +17 -4
- gr4vy/sessions.py +12 -6
- gr4vy/transactions.py +446 -33
- gr4vy/transactions_refunds.py +17 -9
- gr4vy/transactions_settlements.py +8 -4
- gr4vy/types/basemodel.py +41 -3
- gr4vy/utils/__init__.py +15 -6
- gr4vy/utils/annotations.py +32 -8
- gr4vy/utils/enums.py +60 -0
- gr4vy/utils/eventstreaming.py +10 -0
- gr4vy/utils/forms.py +21 -10
- gr4vy/utils/queryparams.py +14 -2
- gr4vy/utils/requestbodies.py +1 -1
- gr4vy/utils/retries.py +69 -5
- gr4vy/utils/serializers.py +0 -20
- gr4vy/utils/unmarshal_json_response.py +15 -1
- {gr4vy-1.1.29.dist-info → gr4vy-1.10.9.dist-info}/METADATA +43 -41
- {gr4vy-1.1.29.dist-info → gr4vy-1.10.9.dist-info}/RECORD +217 -196
- {gr4vy-1.1.29.dist-info → gr4vy-1.10.9.dist-info}/WHEEL +1 -1
- gr4vy/models/billingdetails_output.py +0 -87
- gr4vy/models/guestbuyer_output.py +0 -80
|
@@ -65,6 +65,7 @@ class PaymentMethodsPaymentServiceTokens(BaseSDK):
|
|
|
65
65
|
merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
|
|
66
66
|
),
|
|
67
67
|
security=self.sdk_configuration.security,
|
|
68
|
+
allow_empty_value=None,
|
|
68
69
|
timeout_ms=timeout_ms,
|
|
69
70
|
)
|
|
70
71
|
|
|
@@ -85,7 +86,7 @@ class PaymentMethodsPaymentServiceTokens(BaseSDK):
|
|
|
85
86
|
config=self.sdk_configuration,
|
|
86
87
|
base_url=base_url or "",
|
|
87
88
|
operation_id="list_payment_method_payment_service_tokens",
|
|
88
|
-
oauth2_scopes=
|
|
89
|
+
oauth2_scopes=None,
|
|
89
90
|
security_source=get_security_from_env(
|
|
90
91
|
self.sdk_configuration.security, models.Security
|
|
91
92
|
),
|
|
@@ -215,6 +216,7 @@ class PaymentMethodsPaymentServiceTokens(BaseSDK):
|
|
|
215
216
|
merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
|
|
216
217
|
),
|
|
217
218
|
security=self.sdk_configuration.security,
|
|
219
|
+
allow_empty_value=None,
|
|
218
220
|
timeout_ms=timeout_ms,
|
|
219
221
|
)
|
|
220
222
|
|
|
@@ -235,7 +237,7 @@ class PaymentMethodsPaymentServiceTokens(BaseSDK):
|
|
|
235
237
|
config=self.sdk_configuration,
|
|
236
238
|
base_url=base_url or "",
|
|
237
239
|
operation_id="list_payment_method_payment_service_tokens",
|
|
238
|
-
oauth2_scopes=
|
|
240
|
+
oauth2_scopes=None,
|
|
239
241
|
security_source=get_security_from_env(
|
|
240
242
|
self.sdk_configuration.security, models.Security
|
|
241
243
|
),
|
|
@@ -380,6 +382,7 @@ class PaymentMethodsPaymentServiceTokens(BaseSDK):
|
|
|
380
382
|
"json",
|
|
381
383
|
models.PaymentServiceTokenCreate,
|
|
382
384
|
),
|
|
385
|
+
allow_empty_value=None,
|
|
383
386
|
timeout_ms=timeout_ms,
|
|
384
387
|
)
|
|
385
388
|
|
|
@@ -396,7 +399,7 @@ class PaymentMethodsPaymentServiceTokens(BaseSDK):
|
|
|
396
399
|
config=self.sdk_configuration,
|
|
397
400
|
base_url=base_url or "",
|
|
398
401
|
operation_id="create_payment_method_payment_service_token",
|
|
399
|
-
oauth2_scopes=
|
|
402
|
+
oauth2_scopes=None,
|
|
400
403
|
security_source=get_security_from_env(
|
|
401
404
|
self.sdk_configuration.security, models.Security
|
|
402
405
|
),
|
|
@@ -541,6 +544,7 @@ class PaymentMethodsPaymentServiceTokens(BaseSDK):
|
|
|
541
544
|
"json",
|
|
542
545
|
models.PaymentServiceTokenCreate,
|
|
543
546
|
),
|
|
547
|
+
allow_empty_value=None,
|
|
544
548
|
timeout_ms=timeout_ms,
|
|
545
549
|
)
|
|
546
550
|
|
|
@@ -557,7 +561,7 @@ class PaymentMethodsPaymentServiceTokens(BaseSDK):
|
|
|
557
561
|
config=self.sdk_configuration,
|
|
558
562
|
base_url=base_url or "",
|
|
559
563
|
operation_id="create_payment_method_payment_service_token",
|
|
560
|
-
oauth2_scopes=
|
|
564
|
+
oauth2_scopes=None,
|
|
561
565
|
security_source=get_security_from_env(
|
|
562
566
|
self.sdk_configuration.security, models.Security
|
|
563
567
|
),
|
|
@@ -687,6 +691,7 @@ class PaymentMethodsPaymentServiceTokens(BaseSDK):
|
|
|
687
691
|
merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
|
|
688
692
|
),
|
|
689
693
|
security=self.sdk_configuration.security,
|
|
694
|
+
allow_empty_value=None,
|
|
690
695
|
timeout_ms=timeout_ms,
|
|
691
696
|
)
|
|
692
697
|
|
|
@@ -703,7 +708,7 @@ class PaymentMethodsPaymentServiceTokens(BaseSDK):
|
|
|
703
708
|
config=self.sdk_configuration,
|
|
704
709
|
base_url=base_url or "",
|
|
705
710
|
operation_id="delete_payment_method_payment_service_token",
|
|
706
|
-
oauth2_scopes=
|
|
711
|
+
oauth2_scopes=None,
|
|
707
712
|
security_source=get_security_from_env(
|
|
708
713
|
self.sdk_configuration.security, models.Security
|
|
709
714
|
),
|
|
@@ -833,6 +838,7 @@ class PaymentMethodsPaymentServiceTokens(BaseSDK):
|
|
|
833
838
|
merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
|
|
834
839
|
),
|
|
835
840
|
security=self.sdk_configuration.security,
|
|
841
|
+
allow_empty_value=None,
|
|
836
842
|
timeout_ms=timeout_ms,
|
|
837
843
|
)
|
|
838
844
|
|
|
@@ -849,7 +855,7 @@ class PaymentMethodsPaymentServiceTokens(BaseSDK):
|
|
|
849
855
|
config=self.sdk_configuration,
|
|
850
856
|
base_url=base_url or "",
|
|
851
857
|
operation_id="delete_payment_method_payment_service_token",
|
|
852
|
-
oauth2_scopes=
|
|
858
|
+
oauth2_scopes=None,
|
|
853
859
|
security_source=get_security_from_env(
|
|
854
860
|
self.sdk_configuration.security, models.Security
|
|
855
861
|
),
|
gr4vy/payment_methods_sdk.py
CHANGED
|
@@ -19,16 +19,20 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
19
19
|
payment_service_tokens: PaymentMethodsPaymentServiceTokens
|
|
20
20
|
network_tokens: PaymentMethodsNetworkTokens
|
|
21
21
|
|
|
22
|
-
def __init__(
|
|
23
|
-
|
|
22
|
+
def __init__(
|
|
23
|
+
self, sdk_config: SDKConfiguration, parent_ref: Optional[object] = None
|
|
24
|
+
) -> None:
|
|
25
|
+
BaseSDK.__init__(self, sdk_config, parent_ref=parent_ref)
|
|
24
26
|
self.sdk_configuration = sdk_config
|
|
25
27
|
self._init_sdks()
|
|
26
28
|
|
|
27
29
|
def _init_sdks(self):
|
|
28
30
|
self.payment_service_tokens = PaymentMethodsPaymentServiceTokens(
|
|
29
|
-
self.sdk_configuration
|
|
31
|
+
self.sdk_configuration, parent_ref=self.parent_ref
|
|
32
|
+
)
|
|
33
|
+
self.network_tokens = PaymentMethodsNetworkTokens(
|
|
34
|
+
self.sdk_configuration, parent_ref=self.parent_ref
|
|
30
35
|
)
|
|
31
|
-
self.network_tokens = PaymentMethodsNetworkTokens(self.sdk_configuration)
|
|
32
36
|
|
|
33
37
|
def list(
|
|
34
38
|
self,
|
|
@@ -97,6 +101,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
97
101
|
merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
|
|
98
102
|
),
|
|
99
103
|
security=self.sdk_configuration.security,
|
|
104
|
+
allow_empty_value=None,
|
|
100
105
|
timeout_ms=timeout_ms,
|
|
101
106
|
)
|
|
102
107
|
|
|
@@ -117,7 +122,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
117
122
|
config=self.sdk_configuration,
|
|
118
123
|
base_url=base_url or "",
|
|
119
124
|
operation_id="list_payment_methods",
|
|
120
|
-
oauth2_scopes=
|
|
125
|
+
oauth2_scopes=None,
|
|
121
126
|
security_source=get_security_from_env(
|
|
122
127
|
self.sdk_configuration.security, models.Security
|
|
123
128
|
),
|
|
@@ -150,7 +155,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
150
155
|
return None
|
|
151
156
|
|
|
152
157
|
next_cursor = next_cursor[0]
|
|
153
|
-
if next_cursor is None:
|
|
158
|
+
if next_cursor is None or str(next_cursor).strip() == "":
|
|
154
159
|
return None
|
|
155
160
|
|
|
156
161
|
return self.list(
|
|
@@ -284,6 +289,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
284
289
|
merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
|
|
285
290
|
),
|
|
286
291
|
security=self.sdk_configuration.security,
|
|
292
|
+
allow_empty_value=None,
|
|
287
293
|
timeout_ms=timeout_ms,
|
|
288
294
|
)
|
|
289
295
|
|
|
@@ -304,7 +310,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
304
310
|
config=self.sdk_configuration,
|
|
305
311
|
base_url=base_url or "",
|
|
306
312
|
operation_id="list_payment_methods",
|
|
307
|
-
oauth2_scopes=
|
|
313
|
+
oauth2_scopes=None,
|
|
308
314
|
security_source=get_security_from_env(
|
|
309
315
|
self.sdk_configuration.security, models.Security
|
|
310
316
|
),
|
|
@@ -337,7 +343,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
337
343
|
return None
|
|
338
344
|
|
|
339
345
|
next_cursor = next_cursor[0]
|
|
340
|
-
if next_cursor is None:
|
|
346
|
+
if next_cursor is None or str(next_cursor).strip() == "":
|
|
341
347
|
return None
|
|
342
348
|
|
|
343
349
|
return self.list(
|
|
@@ -459,6 +465,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
459
465
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
460
466
|
request.request_body, False, False, "json", models.Body
|
|
461
467
|
),
|
|
468
|
+
allow_empty_value=None,
|
|
462
469
|
timeout_ms=timeout_ms,
|
|
463
470
|
)
|
|
464
471
|
|
|
@@ -475,7 +482,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
475
482
|
config=self.sdk_configuration,
|
|
476
483
|
base_url=base_url or "",
|
|
477
484
|
operation_id="create_payment_method",
|
|
478
|
-
oauth2_scopes=
|
|
485
|
+
oauth2_scopes=None,
|
|
479
486
|
security_source=get_security_from_env(
|
|
480
487
|
self.sdk_configuration.security, models.Security
|
|
481
488
|
),
|
|
@@ -605,6 +612,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
605
612
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
606
613
|
request.request_body, False, False, "json", models.Body
|
|
607
614
|
),
|
|
615
|
+
allow_empty_value=None,
|
|
608
616
|
timeout_ms=timeout_ms,
|
|
609
617
|
)
|
|
610
618
|
|
|
@@ -621,7 +629,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
621
629
|
config=self.sdk_configuration,
|
|
622
630
|
base_url=base_url or "",
|
|
623
631
|
operation_id="create_payment_method",
|
|
624
|
-
oauth2_scopes=
|
|
632
|
+
oauth2_scopes=None,
|
|
625
633
|
security_source=get_security_from_env(
|
|
626
634
|
self.sdk_configuration.security, models.Security
|
|
627
635
|
),
|
|
@@ -748,6 +756,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
748
756
|
merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
|
|
749
757
|
),
|
|
750
758
|
security=self.sdk_configuration.security,
|
|
759
|
+
allow_empty_value=None,
|
|
751
760
|
timeout_ms=timeout_ms,
|
|
752
761
|
)
|
|
753
762
|
|
|
@@ -768,7 +777,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
768
777
|
config=self.sdk_configuration,
|
|
769
778
|
base_url=base_url or "",
|
|
770
779
|
operation_id="get_payment_method",
|
|
771
|
-
oauth2_scopes=
|
|
780
|
+
oauth2_scopes=None,
|
|
772
781
|
security_source=get_security_from_env(
|
|
773
782
|
self.sdk_configuration.security, models.Security
|
|
774
783
|
),
|
|
@@ -895,6 +904,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
895
904
|
merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
|
|
896
905
|
),
|
|
897
906
|
security=self.sdk_configuration.security,
|
|
907
|
+
allow_empty_value=None,
|
|
898
908
|
timeout_ms=timeout_ms,
|
|
899
909
|
)
|
|
900
910
|
|
|
@@ -915,7 +925,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
915
925
|
config=self.sdk_configuration,
|
|
916
926
|
base_url=base_url or "",
|
|
917
927
|
operation_id="get_payment_method",
|
|
918
|
-
oauth2_scopes=
|
|
928
|
+
oauth2_scopes=None,
|
|
919
929
|
security_source=get_security_from_env(
|
|
920
930
|
self.sdk_configuration.security, models.Security
|
|
921
931
|
),
|
|
@@ -1042,6 +1052,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
1042
1052
|
merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
|
|
1043
1053
|
),
|
|
1044
1054
|
security=self.sdk_configuration.security,
|
|
1055
|
+
allow_empty_value=None,
|
|
1045
1056
|
timeout_ms=timeout_ms,
|
|
1046
1057
|
)
|
|
1047
1058
|
|
|
@@ -1058,7 +1069,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
1058
1069
|
config=self.sdk_configuration,
|
|
1059
1070
|
base_url=base_url or "",
|
|
1060
1071
|
operation_id="delete_payment_method",
|
|
1061
|
-
oauth2_scopes=
|
|
1072
|
+
oauth2_scopes=None,
|
|
1062
1073
|
security_source=get_security_from_env(
|
|
1063
1074
|
self.sdk_configuration.security, models.Security
|
|
1064
1075
|
),
|
|
@@ -1185,6 +1196,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
1185
1196
|
merchant_account_id=self.sdk_configuration.globals.merchant_account_id,
|
|
1186
1197
|
),
|
|
1187
1198
|
security=self.sdk_configuration.security,
|
|
1199
|
+
allow_empty_value=None,
|
|
1188
1200
|
timeout_ms=timeout_ms,
|
|
1189
1201
|
)
|
|
1190
1202
|
|
|
@@ -1201,7 +1213,7 @@ class PaymentMethodsSDK(BaseSDK):
|
|
|
1201
1213
|
config=self.sdk_configuration,
|
|
1202
1214
|
base_url=base_url or "",
|
|
1203
1215
|
operation_id="delete_payment_method",
|
|
1204
|
-
oauth2_scopes=
|
|
1216
|
+
oauth2_scopes=None,
|
|
1205
1217
|
security_source=get_security_from_env(
|
|
1206
1218
|
self.sdk_configuration.security, models.Security
|
|
1207
1219
|
),
|
gr4vy/payment_options_sdk.py
CHANGED
|
@@ -90,6 +90,7 @@ class PaymentOptionsSDK(BaseSDK):
|
|
|
90
90
|
"json",
|
|
91
91
|
models.PaymentOptionRequest,
|
|
92
92
|
),
|
|
93
|
+
allow_empty_value=None,
|
|
93
94
|
timeout_ms=timeout_ms,
|
|
94
95
|
)
|
|
95
96
|
|
|
@@ -106,7 +107,7 @@ class PaymentOptionsSDK(BaseSDK):
|
|
|
106
107
|
config=self.sdk_configuration,
|
|
107
108
|
base_url=base_url or "",
|
|
108
109
|
operation_id="list_payment_options",
|
|
109
|
-
oauth2_scopes=
|
|
110
|
+
oauth2_scopes=None,
|
|
110
111
|
security_source=get_security_from_env(
|
|
111
112
|
self.sdk_configuration.security, models.Security
|
|
112
113
|
),
|
|
@@ -261,6 +262,7 @@ class PaymentOptionsSDK(BaseSDK):
|
|
|
261
262
|
"json",
|
|
262
263
|
models.PaymentOptionRequest,
|
|
263
264
|
),
|
|
265
|
+
allow_empty_value=None,
|
|
264
266
|
timeout_ms=timeout_ms,
|
|
265
267
|
)
|
|
266
268
|
|
|
@@ -277,7 +279,7 @@ class PaymentOptionsSDK(BaseSDK):
|
|
|
277
279
|
config=self.sdk_configuration,
|
|
278
280
|
base_url=base_url or "",
|
|
279
281
|
operation_id="list_payment_options",
|
|
280
|
-
oauth2_scopes=
|
|
282
|
+
oauth2_scopes=None,
|
|
281
283
|
security_source=get_security_from_env(
|
|
282
284
|
self.sdk_configuration.security, models.Security
|
|
283
285
|
),
|
|
@@ -60,6 +60,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
60
60
|
accept_header_value="application/json",
|
|
61
61
|
http_headers=http_headers,
|
|
62
62
|
security=self.sdk_configuration.security,
|
|
63
|
+
allow_empty_value=None,
|
|
63
64
|
timeout_ms=timeout_ms,
|
|
64
65
|
)
|
|
65
66
|
|
|
@@ -80,7 +81,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
80
81
|
config=self.sdk_configuration,
|
|
81
82
|
base_url=base_url or "",
|
|
82
83
|
operation_id="list_payment_service_definitions",
|
|
83
|
-
oauth2_scopes=
|
|
84
|
+
oauth2_scopes=None,
|
|
84
85
|
security_source=get_security_from_env(
|
|
85
86
|
self.sdk_configuration.security, models.Security
|
|
86
87
|
),
|
|
@@ -113,7 +114,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
113
114
|
return None
|
|
114
115
|
|
|
115
116
|
next_cursor = next_cursor[0]
|
|
116
|
-
if next_cursor is None:
|
|
117
|
+
if next_cursor is None or str(next_cursor).strip() == "":
|
|
117
118
|
return None
|
|
118
119
|
|
|
119
120
|
return self.list(
|
|
@@ -226,6 +227,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
226
227
|
accept_header_value="application/json",
|
|
227
228
|
http_headers=http_headers,
|
|
228
229
|
security=self.sdk_configuration.security,
|
|
230
|
+
allow_empty_value=None,
|
|
229
231
|
timeout_ms=timeout_ms,
|
|
230
232
|
)
|
|
231
233
|
|
|
@@ -246,7 +248,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
246
248
|
config=self.sdk_configuration,
|
|
247
249
|
base_url=base_url or "",
|
|
248
250
|
operation_id="list_payment_service_definitions",
|
|
249
|
-
oauth2_scopes=
|
|
251
|
+
oauth2_scopes=None,
|
|
250
252
|
security_source=get_security_from_env(
|
|
251
253
|
self.sdk_configuration.security, models.Security
|
|
252
254
|
),
|
|
@@ -279,7 +281,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
279
281
|
return None
|
|
280
282
|
|
|
281
283
|
next_cursor = next_cursor[0]
|
|
282
|
-
if next_cursor is None:
|
|
284
|
+
if next_cursor is None or str(next_cursor).strip() == "":
|
|
283
285
|
return None
|
|
284
286
|
|
|
285
287
|
return self.list(
|
|
@@ -389,6 +391,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
389
391
|
accept_header_value="application/json",
|
|
390
392
|
http_headers=http_headers,
|
|
391
393
|
security=self.sdk_configuration.security,
|
|
394
|
+
allow_empty_value=None,
|
|
392
395
|
timeout_ms=timeout_ms,
|
|
393
396
|
)
|
|
394
397
|
|
|
@@ -409,7 +412,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
409
412
|
config=self.sdk_configuration,
|
|
410
413
|
base_url=base_url or "",
|
|
411
414
|
operation_id="get_payment_service_definition",
|
|
412
|
-
oauth2_scopes=
|
|
415
|
+
oauth2_scopes=None,
|
|
413
416
|
security_source=get_security_from_env(
|
|
414
417
|
self.sdk_configuration.security, models.Security
|
|
415
418
|
),
|
|
@@ -530,6 +533,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
530
533
|
accept_header_value="application/json",
|
|
531
534
|
http_headers=http_headers,
|
|
532
535
|
security=self.sdk_configuration.security,
|
|
536
|
+
allow_empty_value=None,
|
|
533
537
|
timeout_ms=timeout_ms,
|
|
534
538
|
)
|
|
535
539
|
|
|
@@ -550,7 +554,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
550
554
|
config=self.sdk_configuration,
|
|
551
555
|
base_url=base_url or "",
|
|
552
556
|
operation_id="get_payment_service_definition",
|
|
553
|
-
oauth2_scopes=
|
|
557
|
+
oauth2_scopes=None,
|
|
554
558
|
security_source=get_security_from_env(
|
|
555
559
|
self.sdk_configuration.security, models.Security
|
|
556
560
|
),
|
|
@@ -677,6 +681,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
677
681
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
678
682
|
request.request_body, False, False, "json", Dict[str, Any]
|
|
679
683
|
),
|
|
684
|
+
allow_empty_value=None,
|
|
680
685
|
timeout_ms=timeout_ms,
|
|
681
686
|
)
|
|
682
687
|
|
|
@@ -693,7 +698,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
693
698
|
config=self.sdk_configuration,
|
|
694
699
|
base_url=base_url or "",
|
|
695
700
|
operation_id="create_payment_service_definition_session",
|
|
696
|
-
oauth2_scopes=
|
|
701
|
+
oauth2_scopes=None,
|
|
697
702
|
security_source=get_security_from_env(
|
|
698
703
|
self.sdk_configuration.security, models.Security
|
|
699
704
|
),
|
|
@@ -820,6 +825,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
820
825
|
get_serialized_body=lambda: utils.serialize_request_body(
|
|
821
826
|
request.request_body, False, False, "json", Dict[str, Any]
|
|
822
827
|
),
|
|
828
|
+
allow_empty_value=None,
|
|
823
829
|
timeout_ms=timeout_ms,
|
|
824
830
|
)
|
|
825
831
|
|
|
@@ -836,7 +842,7 @@ class PaymentServiceDefinitionsSDK(BaseSDK):
|
|
|
836
842
|
config=self.sdk_configuration,
|
|
837
843
|
base_url=base_url or "",
|
|
838
844
|
operation_id="create_payment_service_definition_session",
|
|
839
|
-
oauth2_scopes=
|
|
845
|
+
oauth2_scopes=None,
|
|
840
846
|
security_source=get_security_from_env(
|
|
841
847
|
self.sdk_configuration.security, models.Security
|
|
842
848
|
),
|