gr4vy 1.10.12__py3-none-any.whl → 1.10.15__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/basesdk.py +20 -6
- gr4vy/models/__init__.py +132 -0
- gr4vy/models/accountsreceivablesreportspec.py +18 -1
- gr4vy/models/accountupdaterinquirysummary.py +18 -1
- gr4vy/models/accountupdaterjob.py +18 -1
- gr4vy/models/accountupdateroptions.py +30 -31
- gr4vy/models/add_buyer_shipping_detailsop.py +34 -1
- gr4vy/models/add_buyerop.py +34 -1
- gr4vy/models/add_payment_linkop.py +34 -1
- gr4vy/models/add_reportop.py +34 -1
- gr4vy/models/address.py +38 -39
- gr4vy/models/adyencardoptions.py +32 -33
- gr4vy/models/adyenoptions.py +14 -19
- gr4vy/models/adyensepaoptions.py +30 -31
- gr4vy/models/adyensplitsoptions.py +14 -19
- gr4vy/models/affirmitineraryoptions.py +34 -35
- gr4vy/models/affirmoptions.py +14 -19
- gr4vy/models/airline.py +58 -59
- gr4vy/models/airlineleg.py +66 -67
- gr4vy/models/airlinepassenger.py +42 -43
- gr4vy/models/applepaypaymentmethodcreate.py +34 -35
- gr4vy/models/auditlogentries.py +14 -19
- gr4vy/models/auditlogentry.py +14 -19
- gr4vy/models/auditlogentryuser.py +14 -19
- gr4vy/models/billingdetails.py +32 -33
- gr4vy/models/braintreedynamicdatafieldsoptions.py +26 -27
- gr4vy/models/braintreeoptions.py +18 -19
- gr4vy/models/browserinfo.py +14 -19
- gr4vy/models/buyer.py +31 -32
- gr4vy/models/buyercreate.py +18 -29
- gr4vy/models/buyers.py +14 -19
- gr4vy/models/buyerupdate.py +18 -29
- gr4vy/models/cancel_transactionop.py +34 -1
- gr4vy/models/capture_transactionop.py +30 -19
- gr4vy/models/cardpaymentmethodcreate.py +31 -32
- gr4vy/models/cardschemedefinition.py +18 -1
- gr4vy/models/cardwithurlpaymentmethodcreate.py +33 -34
- gr4vy/models/cartitem.py +52 -53
- gr4vy/models/chaseoptions.py +14 -19
- gr4vy/models/checkoutsession.py +37 -38
- gr4vy/models/checkoutsessioncreate.py +35 -36
- gr4vy/models/checkoutsessionpaymentmethod.py +16 -27
- gr4vy/models/checkoutsessionpaymentmethodcreate.py +18 -28
- gr4vy/models/checkoutsessionpaymentmethoddetails.py +14 -19
- gr4vy/models/checkoutsessionwithurlpaymentmethodcreate.py +29 -30
- gr4vy/models/clicktopayfpanpaymentmethodcreate.py +32 -33
- gr4vy/models/clicktopaypaymentmethodcreate.py +28 -29
- gr4vy/models/configure_digital_walletop.py +34 -1
- gr4vy/models/create_account_updater_jobop.py +34 -1
- gr4vy/models/create_apple_pay_digital_wallet_sessionop.py +34 -1
- gr4vy/models/create_checkout_sessionop.py +34 -1
- gr4vy/models/create_full_transaction_refundop.py +30 -19
- gr4vy/models/create_gift_cardop.py +34 -1
- gr4vy/models/create_google_pay_digital_wallet_sessionop.py +34 -1
- gr4vy/models/create_payment_method_network_token_cryptogramop.py +34 -1
- gr4vy/models/create_payment_method_network_tokenop.py +34 -1
- gr4vy/models/create_payment_method_payment_service_tokenop.py +34 -1
- gr4vy/models/create_payment_methodop.py +34 -1
- gr4vy/models/create_payment_service_sessionop.py +34 -1
- gr4vy/models/create_payment_serviceop.py +34 -1
- gr4vy/models/create_payoutop.py +34 -1
- gr4vy/models/create_report_execution_urlop.py +34 -1
- gr4vy/models/create_three_ds_scenarioop.py +79 -0
- gr4vy/models/create_transaction_refundop.py +34 -1
- gr4vy/models/create_transactionop.py +32 -19
- gr4vy/models/createsession.py +14 -19
- gr4vy/models/cryptogram.py +18 -1
- gr4vy/models/cybersourceantifraudoptions.py +18 -27
- gr4vy/models/cybersourceoptions.py +27 -28
- gr4vy/models/delete_buyer_shipping_detailsop.py +34 -1
- gr4vy/models/delete_buyerop.py +34 -1
- gr4vy/models/delete_checkout_sessionop.py +34 -1
- gr4vy/models/delete_digital_walletop.py +34 -1
- gr4vy/models/delete_gift_cardop.py +34 -1
- gr4vy/models/delete_payment_method_network_tokenop.py +34 -1
- gr4vy/models/delete_payment_method_payment_service_tokenop.py +34 -1
- gr4vy/models/delete_payment_methodop.py +34 -1
- gr4vy/models/delete_payment_serviceop.py +34 -1
- gr4vy/models/delete_three_ds_scenarioop.py +76 -0
- gr4vy/models/detailedsettlementreportspec.py +18 -1
- gr4vy/models/digitalwallet.py +27 -33
- gr4vy/models/digitalwalletcreate.py +23 -28
- gr4vy/models/digitalwalletupdate.py +30 -31
- gr4vy/models/dlocaloptions.py +14 -19
- gr4vy/models/dlocalupioptions.py +14 -19
- gr4vy/models/dlocalupiwalletoptions.py +18 -33
- gr4vy/models/dlocalwalletoptions.py +14 -19
- gr4vy/models/expire_payment_linkop.py +34 -1
- gr4vy/models/fiservinstallmentoptions.py +27 -28
- gr4vy/models/fiservoptions.py +14 -19
- gr4vy/models/forterantifraudoptions.py +30 -31
- gr4vy/models/forterantifraudoptionscartitem.py +13 -18
- gr4vy/models/forterantifraudoptionscartitembasicitemdata.py +14 -19
- gr4vy/models/forterantifraudoptionscartitembeneficiary.py +13 -18
- gr4vy/models/forterantifraudoptionscartitembeneficiaryaddress.py +18 -19
- gr4vy/models/forterantifraudoptionscartitembeneficiarycomments.py +18 -27
- gr4vy/models/forterantifraudoptionscartitembeneficiarypersonaldetails.py +14 -19
- gr4vy/models/forterantifraudoptionscartitemdeliverydetails.py +13 -18
- gr4vy/models/forterantifraudoptionsdiscount.py +13 -18
- gr4vy/models/forterantifraudoptionsdiscountcoupondiscountamount.py +14 -19
- gr4vy/models/get_buyer_shipping_detailsop.py +34 -1
- gr4vy/models/get_buyerop.py +34 -1
- gr4vy/models/get_checkout_sessionop.py +34 -1
- gr4vy/models/get_digital_walletop.py +34 -1
- gr4vy/models/get_gift_cardop.py +34 -1
- gr4vy/models/get_payment_linkop.py +34 -1
- gr4vy/models/get_payment_methodop.py +34 -1
- gr4vy/models/get_payment_serviceop.py +34 -1
- gr4vy/models/get_payoutop.py +34 -1
- gr4vy/models/get_refundop.py +34 -1
- gr4vy/models/get_report_executionop.py +34 -1
- gr4vy/models/get_reportop.py +34 -1
- gr4vy/models/get_three_ds_scenarioop.py +105 -0
- gr4vy/models/get_transaction_refundop.py +34 -1
- gr4vy/models/get_transaction_settlementop.py +34 -1
- gr4vy/models/get_transactionop.py +34 -1
- gr4vy/models/giftcard.py +14 -19
- gr4vy/models/giftcardcreate.py +14 -19
- gr4vy/models/giftcardredemption.py +29 -30
- gr4vy/models/giftcards.py +14 -19
- gr4vy/models/giftcardservice.py +18 -1
- gr4vy/models/giftcardsummary.py +35 -36
- gr4vy/models/givingblockoptions.py +14 -19
- gr4vy/models/googlepayassurancedetails.py +14 -19
- gr4vy/models/googlepayfpanpaymentmethodcreate.py +32 -33
- gr4vy/models/googlepaypaymentmethodcreate.py +36 -37
- gr4vy/models/guestbuyer.py +30 -31
- gr4vy/models/internal/globals.py +18 -1
- gr4vy/models/latitudeoptions.py +14 -19
- gr4vy/models/list_all_report_executionsop.py +50 -35
- gr4vy/models/list_audit_logsop.py +39 -26
- gr4vy/models/list_buyer_gift_cardsop.py +32 -23
- gr4vy/models/list_buyer_payment_methodsop.py +42 -33
- gr4vy/models/list_buyer_shipping_detailsop.py +34 -1
- gr4vy/models/list_buyersop.py +32 -25
- gr4vy/models/list_card_scheme_definitionsop.py +34 -1
- gr4vy/models/list_digital_walletsop.py +34 -1
- gr4vy/models/list_gift_card_balancesop.py +34 -1
- gr4vy/models/list_gift_cardsop.py +38 -25
- gr4vy/models/list_merchant_accountsop.py +14 -19
- gr4vy/models/list_payment_linksop.py +32 -19
- gr4vy/models/list_payment_method_network_tokensop.py +34 -1
- gr4vy/models/list_payment_method_payment_service_tokensop.py +30 -19
- gr4vy/models/list_payment_methodsop.py +48 -33
- gr4vy/models/list_payment_optionsop.py +34 -1
- gr4vy/models/list_payment_service_definitionsop.py +14 -19
- gr4vy/models/list_payment_servicesop.py +32 -25
- gr4vy/models/list_payoutsop.py +30 -19
- gr4vy/models/list_report_executionsop.py +30 -19
- gr4vy/models/list_reportsop.py +39 -26
- gr4vy/models/list_transaction_actionsop.py +34 -1
- gr4vy/models/list_transaction_eventsop.py +30 -19
- gr4vy/models/list_transaction_refundsop.py +34 -1
- gr4vy/models/list_transaction_settlementsop.py +34 -1
- gr4vy/models/list_transactionsop.py +124 -109
- gr4vy/models/mattildatapioptions.py +14 -19
- gr4vy/models/merchantaccount.py +52 -53
- gr4vy/models/merchantaccountcreate.py +52 -53
- gr4vy/models/merchantaccounts.py +14 -19
- gr4vy/models/merchantaccountupdate.py +54 -55
- gr4vy/models/method.py +1 -0
- gr4vy/models/mockcardmerchantadvicecodeoptions.py +14 -19
- gr4vy/models/mockcardoptions.py +14 -19
- gr4vy/models/networktoken.py +18 -1
- gr4vy/models/networktokencreate.py +14 -19
- gr4vy/models/networktokenpaymentmethodcreate.py +34 -35
- gr4vy/models/nuveiairlinedataoptions.py +14 -19
- gr4vy/models/nuveiidealoptions.py +14 -19
- gr4vy/models/nuveioptions.py +14 -19
- gr4vy/models/nuveipseoptions.py +13 -18
- gr4vy/models/oxxooptions.py +14 -19
- gr4vy/models/paymentlink.py +59 -60
- gr4vy/models/paymentlinkcreate.py +59 -60
- gr4vy/models/paymentlinks.py +14 -19
- gr4vy/models/paymentmethod.py +51 -52
- gr4vy/models/paymentmethodcard.py +14 -19
- gr4vy/models/paymentmethoddetailscard.py +14 -19
- gr4vy/models/paymentmethods.py +14 -19
- gr4vy/models/paymentmethodstoredcard.py +18 -1
- gr4vy/models/paymentmethodsummary.py +47 -48
- gr4vy/models/paymentoption.py +14 -19
- gr4vy/models/paymentoptioncontext.py +14 -19
- gr4vy/models/paymentoptioncontextapprovalui.py +14 -19
- gr4vy/models/paymentoptionrequest.py +18 -26
- gr4vy/models/paymentservice.py +35 -36
- gr4vy/models/paymentservicecreate.py +36 -37
- gr4vy/models/paymentservicedefinition.py +14 -19
- gr4vy/models/paymentservicedefinitions.py +14 -19
- gr4vy/models/paymentservices.py +14 -19
- gr4vy/models/paymentservicetoken.py +14 -19
- gr4vy/models/paymentservicetokencreate.py +14 -19
- gr4vy/models/paymentserviceupdate.py +45 -46
- gr4vy/models/payoutconnectionoptions.py +14 -19
- gr4vy/models/payoutcreate.py +34 -35
- gr4vy/models/payoutmerchant.py +14 -19
- gr4vy/models/payoutmerchantsummary.py +14 -19
- gr4vy/models/payoutpaymentservice.py +14 -19
- gr4vy/models/payoutsummaries.py +14 -19
- gr4vy/models/payoutsummary.py +35 -36
- gr4vy/models/paypaloptions.py +14 -19
- gr4vy/models/paypalshippingoptions.py +14 -19
- gr4vy/models/paypalshippingoptionsitem.py +14 -19
- gr4vy/models/plaidpaymentmethodcreate.py +31 -32
- gr4vy/models/powertranzoptions.py +14 -19
- gr4vy/models/recipient.py +14 -19
- gr4vy/models/redirectpaymentmethodcreate.py +19 -27
- gr4vy/models/refund.py +39 -40
- gr4vy/models/refunds.py +14 -19
- gr4vy/models/register_digital_wallet_domainop.py +34 -1
- gr4vy/models/report.py +33 -34
- gr4vy/models/reportcreate.py +14 -19
- gr4vy/models/reportexecution.py +18 -1
- gr4vy/models/reportexecutions.py +14 -19
- gr4vy/models/reportexecutionsummary.py +18 -1
- gr4vy/models/reportexecutionurlgenerate.py +18 -1
- gr4vy/models/reports.py +14 -19
- gr4vy/models/reportsummary.py +16 -19
- gr4vy/models/reportupdate.py +14 -19
- gr4vy/models/requiredcheckoutfields.py +14 -19
- gr4vy/models/resume_payment_method_network_tokenop.py +34 -1
- gr4vy/models/security.py +18 -1
- gr4vy/models/settlement.py +16 -25
- gr4vy/models/shippingdetails.py +35 -36
- gr4vy/models/shippingdetailscreate.py +18 -31
- gr4vy/models/shippingdetailsupdate.py +18 -31
- gr4vy/models/statementdescriptor.py +34 -35
- gr4vy/models/stripeconnectoptions.py +30 -31
- gr4vy/models/stripeoptions.py +14 -19
- gr4vy/models/suspend_payment_method_network_tokenop.py +34 -1
- gr4vy/models/sync_transactionop.py +34 -1
- gr4vy/models/threedsecure.py +14 -19
- gr4vy/models/threedsecuredatav1.py +14 -19
- gr4vy/models/threedsecuredatav2.py +14 -19
- gr4vy/models/threedsecureerror.py +14 -19
- gr4vy/models/threedsecurescenario.py +77 -0
- gr4vy/models/threedsecurescenarioconditions.py +84 -0
- gr4vy/models/threedsecurescenariocreate.py +24 -0
- gr4vy/models/threedsecurescenariooutcome.py +57 -0
- gr4vy/models/threedsecurescenariooutcomeauthentication.py +31 -0
- gr4vy/models/threedsecurescenariooutcomeresult.py +27 -0
- gr4vy/models/threedsecurescenarios.py +58 -0
- gr4vy/models/threedsecurescenarioupdate.py +54 -0
- gr4vy/models/threedsecurev2.py +34 -35
- gr4vy/models/tokenpaymentmethodcreate.py +14 -19
- gr4vy/models/transaction.py +111 -112
- gr4vy/models/transactionaction.py +18 -1
- gr4vy/models/transactionbuyer.py +31 -32
- gr4vy/models/transactioncancel.py +14 -19
- gr4vy/models/transactioncapture.py +14 -19
- gr4vy/models/transactioncapturecreate.py +14 -19
- gr4vy/models/transactionconnectionoptions.py +104 -105
- gr4vy/models/transactioncreate.py +88 -89
- gr4vy/models/transactionevent.py +18 -1
- gr4vy/models/transactionevents.py +14 -19
- gr4vy/models/transactiongiftcard.py +14 -19
- gr4vy/models/transactionpaymentmethod.py +49 -50
- gr4vy/models/transactionpaymentservice.py +18 -1
- gr4vy/models/transactionrefundallcreate.py +14 -19
- gr4vy/models/transactionrefundcreate.py +16 -25
- gr4vy/models/transactionretriesreportspec.py +18 -1
- gr4vy/models/transactionsreportspec.py +18 -1
- gr4vy/models/transactionsummaries.py +14 -19
- gr4vy/models/transactionsummary.py +50 -51
- gr4vy/models/transactionthreedsecuresummary.py +18 -33
- gr4vy/models/transactionupdate.py +14 -19
- gr4vy/models/transactionvoid.py +14 -19
- gr4vy/models/travelhubcustomdata.py +14 -19
- gr4vy/models/travelhuboptions.py +14 -19
- gr4vy/models/trustlyoptions.py +14 -19
- gr4vy/models/unregister_digital_wallet_domainop.py +34 -1
- gr4vy/models/update_buyer_shipping_detailsop.py +34 -1
- gr4vy/models/update_buyerop.py +34 -1
- gr4vy/models/update_checkout_sessionop.py +34 -1
- gr4vy/models/update_digital_walletop.py +34 -1
- gr4vy/models/update_payment_serviceop.py +34 -1
- gr4vy/models/update_reportop.py +34 -1
- gr4vy/models/update_three_ds_scenarioop.py +91 -0
- gr4vy/models/update_transactionop.py +34 -1
- gr4vy/models/verify_payment_service_credentialsop.py +34 -1
- gr4vy/models/verifycredentials.py +14 -19
- gr4vy/models/void_transactionop.py +30 -19
- gr4vy/models/wpayeverdaypayoptions.py +30 -31
- gr4vy/models/wpaypaytooptions.py +14 -19
- gr4vy/models/wpaypaytoresourceoptions.py +14 -19
- gr4vy/models/wpaypaytosimulationoptions.py +14 -19
- gr4vy/sdk.py +3 -0
- gr4vy/three_ds_scenarios.py +1322 -0
- gr4vy/utils/__init__.py +13 -1
- {gr4vy-1.10.12.dist-info → gr4vy-1.10.15.dist-info}/METADATA +8 -1
- gr4vy-1.10.15.dist-info/RECORD +464 -0
- gr4vy-1.10.12.dist-info/RECORD +0 -451
- {gr4vy-1.10.12.dist-info → gr4vy-1.10.15.dist-info}/WHEEL +0 -0
|
@@ -67,30 +67,25 @@ class PaymentServiceToken(BaseModel):
|
|
|
67
67
|
|
|
68
68
|
@model_serializer(mode="wrap")
|
|
69
69
|
def serialize_model(self, handler):
|
|
70
|
-
optional_fields = ["type", "approval_url", "token"]
|
|
71
|
-
nullable_fields = ["approval_url", "token"]
|
|
72
|
-
null_default_fields = []
|
|
73
|
-
|
|
70
|
+
optional_fields = set(["type", "approval_url", "token"])
|
|
71
|
+
nullable_fields = set(["approval_url", "token"])
|
|
74
72
|
serialized = handler(self)
|
|
75
|
-
|
|
76
73
|
m = {}
|
|
77
74
|
|
|
78
75
|
for n, f in type(self).model_fields.items():
|
|
79
76
|
k = f.alias or n
|
|
80
77
|
val = serialized.get(k)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
):
|
|
94
|
-
m[k] = val
|
|
78
|
+
is_nullable_and_explicitly_set = (
|
|
79
|
+
k in nullable_fields
|
|
80
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
if val != UNSET_SENTINEL:
|
|
84
|
+
if (
|
|
85
|
+
val is not None
|
|
86
|
+
or k not in optional_fields
|
|
87
|
+
or is_nullable_and_explicitly_set
|
|
88
|
+
):
|
|
89
|
+
m[k] = val
|
|
95
90
|
|
|
96
91
|
return m
|
|
@@ -27,30 +27,25 @@ class PaymentServiceTokenCreate(BaseModel):
|
|
|
27
27
|
|
|
28
28
|
@model_serializer(mode="wrap")
|
|
29
29
|
def serialize_model(self, handler):
|
|
30
|
-
optional_fields = ["security_code"]
|
|
31
|
-
nullable_fields = ["security_code"]
|
|
32
|
-
null_default_fields = []
|
|
33
|
-
|
|
30
|
+
optional_fields = set(["security_code"])
|
|
31
|
+
nullable_fields = set(["security_code"])
|
|
34
32
|
serialized = handler(self)
|
|
35
|
-
|
|
36
33
|
m = {}
|
|
37
34
|
|
|
38
35
|
for n, f in type(self).model_fields.items():
|
|
39
36
|
k = f.alias or n
|
|
40
37
|
val = serialized.get(k)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
):
|
|
54
|
-
m[k] = val
|
|
38
|
+
is_nullable_and_explicitly_set = (
|
|
39
|
+
k in nullable_fields
|
|
40
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
if val != UNSET_SENTINEL:
|
|
44
|
+
if (
|
|
45
|
+
val is not None
|
|
46
|
+
or k not in optional_fields
|
|
47
|
+
or is_nullable_and_explicitly_set
|
|
48
|
+
):
|
|
49
|
+
m[k] = val
|
|
55
50
|
|
|
56
51
|
return m
|
|
@@ -88,57 +88,56 @@ class PaymentServiceUpdate(BaseModel):
|
|
|
88
88
|
|
|
89
89
|
@model_serializer(mode="wrap")
|
|
90
90
|
def serialize_model(self, handler):
|
|
91
|
-
optional_fields =
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
91
|
+
optional_fields = set(
|
|
92
|
+
[
|
|
93
|
+
"display_name",
|
|
94
|
+
"fields",
|
|
95
|
+
"reporting_fields",
|
|
96
|
+
"position",
|
|
97
|
+
"accepted_currencies",
|
|
98
|
+
"accepted_countries",
|
|
99
|
+
"active",
|
|
100
|
+
"three_d_secure_enabled",
|
|
101
|
+
"merchant_profile",
|
|
102
|
+
"payment_method_tokenization_enabled",
|
|
103
|
+
"network_tokens_enabled",
|
|
104
|
+
"open_loop",
|
|
105
|
+
"settlement_reporting_enabled",
|
|
106
|
+
]
|
|
107
|
+
)
|
|
108
|
+
nullable_fields = set(
|
|
109
|
+
[
|
|
110
|
+
"display_name",
|
|
111
|
+
"fields",
|
|
112
|
+
"reporting_fields",
|
|
113
|
+
"position",
|
|
114
|
+
"accepted_currencies",
|
|
115
|
+
"accepted_countries",
|
|
116
|
+
"active",
|
|
117
|
+
"three_d_secure_enabled",
|
|
118
|
+
"merchant_profile",
|
|
119
|
+
"payment_method_tokenization_enabled",
|
|
120
|
+
"network_tokens_enabled",
|
|
121
|
+
"open_loop",
|
|
122
|
+
]
|
|
123
|
+
)
|
|
122
124
|
serialized = handler(self)
|
|
123
|
-
|
|
124
125
|
m = {}
|
|
125
126
|
|
|
126
127
|
for n, f in type(self).model_fields.items():
|
|
127
128
|
k = f.alias or n
|
|
128
129
|
val = serialized.get(k)
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
):
|
|
142
|
-
m[k] = val
|
|
130
|
+
is_nullable_and_explicitly_set = (
|
|
131
|
+
k in nullable_fields
|
|
132
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
if val != UNSET_SENTINEL:
|
|
136
|
+
if (
|
|
137
|
+
val is not None
|
|
138
|
+
or k not in optional_fields
|
|
139
|
+
or is_nullable_and_explicitly_set
|
|
140
|
+
):
|
|
141
|
+
m[k] = val
|
|
143
142
|
|
|
144
143
|
return m
|
|
@@ -21,30 +21,25 @@ class PayoutConnectionOptions(BaseModel):
|
|
|
21
21
|
|
|
22
22
|
@model_serializer(mode="wrap")
|
|
23
23
|
def serialize_model(self, handler):
|
|
24
|
-
optional_fields = ["checkout-card"]
|
|
25
|
-
nullable_fields = ["checkout-card"]
|
|
26
|
-
null_default_fields = []
|
|
27
|
-
|
|
24
|
+
optional_fields = set(["checkout-card"])
|
|
25
|
+
nullable_fields = set(["checkout-card"])
|
|
28
26
|
serialized = handler(self)
|
|
29
|
-
|
|
30
27
|
m = {}
|
|
31
28
|
|
|
32
29
|
for n, f in type(self).model_fields.items():
|
|
33
30
|
k = f.alias or n
|
|
34
31
|
val = serialized.get(k)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
):
|
|
48
|
-
m[k] = val
|
|
32
|
+
is_nullable_and_explicitly_set = (
|
|
33
|
+
k in nullable_fields
|
|
34
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
if val != UNSET_SENTINEL:
|
|
38
|
+
if (
|
|
39
|
+
val is not None
|
|
40
|
+
or k not in optional_fields
|
|
41
|
+
or is_nullable_and_explicitly_set
|
|
42
|
+
):
|
|
43
|
+
m[k] = val
|
|
49
44
|
|
|
50
45
|
return m
|
gr4vy/models/payoutcreate.py
CHANGED
|
@@ -103,46 +103,45 @@ class PayoutCreate(BaseModel):
|
|
|
103
103
|
|
|
104
104
|
@model_serializer(mode="wrap")
|
|
105
105
|
def serialize_model(self, handler):
|
|
106
|
-
optional_fields =
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
106
|
+
optional_fields = set(
|
|
107
|
+
[
|
|
108
|
+
"category",
|
|
109
|
+
"external_identifier",
|
|
110
|
+
"buyer_id",
|
|
111
|
+
"buyer",
|
|
112
|
+
"buyer_external_identifier",
|
|
113
|
+
"merchant",
|
|
114
|
+
"connection_options",
|
|
115
|
+
]
|
|
116
|
+
)
|
|
117
|
+
nullable_fields = set(
|
|
118
|
+
[
|
|
119
|
+
"category",
|
|
120
|
+
"external_identifier",
|
|
121
|
+
"buyer_id",
|
|
122
|
+
"buyer",
|
|
123
|
+
"buyer_external_identifier",
|
|
124
|
+
"merchant",
|
|
125
|
+
"connection_options",
|
|
126
|
+
]
|
|
127
|
+
)
|
|
126
128
|
serialized = handler(self)
|
|
127
|
-
|
|
128
129
|
m = {}
|
|
129
130
|
|
|
130
131
|
for n, f in type(self).model_fields.items():
|
|
131
132
|
k = f.alias or n
|
|
132
133
|
val = serialized.get(k)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
):
|
|
146
|
-
m[k] = val
|
|
134
|
+
is_nullable_and_explicitly_set = (
|
|
135
|
+
k in nullable_fields
|
|
136
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
if val != UNSET_SENTINEL:
|
|
140
|
+
if (
|
|
141
|
+
val is not None
|
|
142
|
+
or k not in optional_fields
|
|
143
|
+
or is_nullable_and_explicitly_set
|
|
144
|
+
):
|
|
145
|
+
m[k] = val
|
|
147
146
|
|
|
148
147
|
return m
|
gr4vy/models/payoutmerchant.py
CHANGED
|
@@ -48,30 +48,25 @@ class PayoutMerchant(BaseModel):
|
|
|
48
48
|
|
|
49
49
|
@model_serializer(mode="wrap")
|
|
50
50
|
def serialize_model(self, handler):
|
|
51
|
-
optional_fields = ["address"]
|
|
52
|
-
nullable_fields = ["address"]
|
|
53
|
-
null_default_fields = []
|
|
54
|
-
|
|
51
|
+
optional_fields = set(["address"])
|
|
52
|
+
nullable_fields = set(["address"])
|
|
55
53
|
serialized = handler(self)
|
|
56
|
-
|
|
57
54
|
m = {}
|
|
58
55
|
|
|
59
56
|
for n, f in type(self).model_fields.items():
|
|
60
57
|
k = f.alias or n
|
|
61
58
|
val = serialized.get(k)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
):
|
|
75
|
-
m[k] = val
|
|
59
|
+
is_nullable_and_explicitly_set = (
|
|
60
|
+
k in nullable_fields
|
|
61
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
if val != UNSET_SENTINEL:
|
|
65
|
+
if (
|
|
66
|
+
val is not None
|
|
67
|
+
or k not in optional_fields
|
|
68
|
+
or is_nullable_and_explicitly_set
|
|
69
|
+
):
|
|
70
|
+
m[k] = val
|
|
76
71
|
|
|
77
72
|
return m
|
|
@@ -72,30 +72,25 @@ class PayoutMerchantSummary(BaseModel):
|
|
|
72
72
|
|
|
73
73
|
@model_serializer(mode="wrap")
|
|
74
74
|
def serialize_model(self, handler):
|
|
75
|
-
optional_fields = ["type", "statement_descriptor", "address"]
|
|
76
|
-
nullable_fields = ["statement_descriptor", "address"]
|
|
77
|
-
null_default_fields = []
|
|
78
|
-
|
|
75
|
+
optional_fields = set(["type", "statement_descriptor", "address"])
|
|
76
|
+
nullable_fields = set(["statement_descriptor", "address"])
|
|
79
77
|
serialized = handler(self)
|
|
80
|
-
|
|
81
78
|
m = {}
|
|
82
79
|
|
|
83
80
|
for n, f in type(self).model_fields.items():
|
|
84
81
|
k = f.alias or n
|
|
85
82
|
val = serialized.get(k)
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
):
|
|
99
|
-
m[k] = val
|
|
83
|
+
is_nullable_and_explicitly_set = (
|
|
84
|
+
k in nullable_fields
|
|
85
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
if val != UNSET_SENTINEL:
|
|
89
|
+
if (
|
|
90
|
+
val is not None
|
|
91
|
+
or k not in optional_fields
|
|
92
|
+
or is_nullable_and_explicitly_set
|
|
93
|
+
):
|
|
94
|
+
m[k] = val
|
|
100
95
|
|
|
101
96
|
return m
|
|
@@ -50,30 +50,25 @@ class PayoutPaymentService(BaseModel):
|
|
|
50
50
|
|
|
51
51
|
@model_serializer(mode="wrap")
|
|
52
52
|
def serialize_model(self, handler):
|
|
53
|
-
optional_fields = ["type", "id", "method", "display_name"]
|
|
54
|
-
nullable_fields = ["id", "display_name"]
|
|
55
|
-
null_default_fields = []
|
|
56
|
-
|
|
53
|
+
optional_fields = set(["type", "id", "method", "display_name"])
|
|
54
|
+
nullable_fields = set(["id", "display_name"])
|
|
57
55
|
serialized = handler(self)
|
|
58
|
-
|
|
59
56
|
m = {}
|
|
60
57
|
|
|
61
58
|
for n, f in type(self).model_fields.items():
|
|
62
59
|
k = f.alias or n
|
|
63
60
|
val = serialized.get(k)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
):
|
|
77
|
-
m[k] = val
|
|
61
|
+
is_nullable_and_explicitly_set = (
|
|
62
|
+
k in nullable_fields
|
|
63
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
if val != UNSET_SENTINEL:
|
|
67
|
+
if (
|
|
68
|
+
val is not None
|
|
69
|
+
or k not in optional_fields
|
|
70
|
+
or is_nullable_and_explicitly_set
|
|
71
|
+
):
|
|
72
|
+
m[k] = val
|
|
78
73
|
|
|
79
74
|
return m
|
gr4vy/models/payoutsummaries.py
CHANGED
|
@@ -34,30 +34,25 @@ class PayoutSummaries(BaseModel):
|
|
|
34
34
|
|
|
35
35
|
@model_serializer(mode="wrap")
|
|
36
36
|
def serialize_model(self, handler):
|
|
37
|
-
optional_fields = ["limit", "next_cursor", "previous_cursor"]
|
|
38
|
-
nullable_fields = ["next_cursor", "previous_cursor"]
|
|
39
|
-
null_default_fields = []
|
|
40
|
-
|
|
37
|
+
optional_fields = set(["limit", "next_cursor", "previous_cursor"])
|
|
38
|
+
nullable_fields = set(["next_cursor", "previous_cursor"])
|
|
41
39
|
serialized = handler(self)
|
|
42
|
-
|
|
43
40
|
m = {}
|
|
44
41
|
|
|
45
42
|
for n, f in type(self).model_fields.items():
|
|
46
43
|
k = f.alias or n
|
|
47
44
|
val = serialized.get(k)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
):
|
|
61
|
-
m[k] = val
|
|
45
|
+
is_nullable_and_explicitly_set = (
|
|
46
|
+
k in nullable_fields
|
|
47
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
if val != UNSET_SENTINEL:
|
|
51
|
+
if (
|
|
52
|
+
val is not None
|
|
53
|
+
or k not in optional_fields
|
|
54
|
+
or is_nullable_and_explicitly_set
|
|
55
|
+
):
|
|
56
|
+
m[k] = val
|
|
62
57
|
|
|
63
58
|
return m
|
gr4vy/models/payoutsummary.py
CHANGED
|
@@ -110,47 +110,46 @@ class PayoutSummary(BaseModel):
|
|
|
110
110
|
|
|
111
111
|
@model_serializer(mode="wrap")
|
|
112
112
|
def serialize_model(self, handler):
|
|
113
|
-
optional_fields =
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
113
|
+
optional_fields = set(
|
|
114
|
+
[
|
|
115
|
+
"type",
|
|
116
|
+
"id",
|
|
117
|
+
"buyer",
|
|
118
|
+
"category",
|
|
119
|
+
"external_identifier",
|
|
120
|
+
"merchant",
|
|
121
|
+
"merchant_account_id",
|
|
122
|
+
"payment_service_payout_id",
|
|
123
|
+
]
|
|
124
|
+
)
|
|
125
|
+
nullable_fields = set(
|
|
126
|
+
[
|
|
127
|
+
"id",
|
|
128
|
+
"buyer",
|
|
129
|
+
"category",
|
|
130
|
+
"external_identifier",
|
|
131
|
+
"merchant",
|
|
132
|
+
"merchant_account_id",
|
|
133
|
+
"payment_service_payout_id",
|
|
134
|
+
]
|
|
135
|
+
)
|
|
134
136
|
serialized = handler(self)
|
|
135
|
-
|
|
136
137
|
m = {}
|
|
137
138
|
|
|
138
139
|
for n, f in type(self).model_fields.items():
|
|
139
140
|
k = f.alias or n
|
|
140
141
|
val = serialized.get(k)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
):
|
|
154
|
-
m[k] = val
|
|
142
|
+
is_nullable_and_explicitly_set = (
|
|
143
|
+
k in nullable_fields
|
|
144
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
if val != UNSET_SENTINEL:
|
|
148
|
+
if (
|
|
149
|
+
val is not None
|
|
150
|
+
or k not in optional_fields
|
|
151
|
+
or is_nullable_and_explicitly_set
|
|
152
|
+
):
|
|
153
|
+
m[k] = val
|
|
155
154
|
|
|
156
155
|
return m
|
gr4vy/models/paypaloptions.py
CHANGED
|
@@ -24,30 +24,25 @@ class PaypalOptions(BaseModel):
|
|
|
24
24
|
|
|
25
25
|
@model_serializer(mode="wrap")
|
|
26
26
|
def serialize_model(self, handler):
|
|
27
|
-
optional_fields = ["additional_data", "shipping"]
|
|
28
|
-
nullable_fields = ["additional_data", "shipping"]
|
|
29
|
-
null_default_fields = []
|
|
30
|
-
|
|
27
|
+
optional_fields = set(["additional_data", "shipping"])
|
|
28
|
+
nullable_fields = set(["additional_data", "shipping"])
|
|
31
29
|
serialized = handler(self)
|
|
32
|
-
|
|
33
30
|
m = {}
|
|
34
31
|
|
|
35
32
|
for n, f in type(self).model_fields.items():
|
|
36
33
|
k = f.alias or n
|
|
37
34
|
val = serialized.get(k)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
):
|
|
51
|
-
m[k] = val
|
|
35
|
+
is_nullable_and_explicitly_set = (
|
|
36
|
+
k in nullable_fields
|
|
37
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
if val != UNSET_SENTINEL:
|
|
41
|
+
if (
|
|
42
|
+
val is not None
|
|
43
|
+
or k not in optional_fields
|
|
44
|
+
or is_nullable_and_explicitly_set
|
|
45
|
+
):
|
|
46
|
+
m[k] = val
|
|
52
47
|
|
|
53
48
|
return m
|