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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from gr4vy.types import BaseModel
|
|
4
|
+
from gr4vy.types import BaseModel, UNSET_SENTINEL
|
|
5
5
|
from gr4vy.utils import FieldMetadata, HeaderMetadata
|
|
6
6
|
import pydantic
|
|
7
|
+
from pydantic import model_serializer
|
|
7
8
|
from typing import Optional
|
|
8
9
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
10
|
|
|
@@ -21,6 +22,22 @@ class ListCardSchemeDefinitionsGlobals(BaseModel):
|
|
|
21
22
|
] = None
|
|
22
23
|
r"""The ID of the merchant account to use for this request."""
|
|
23
24
|
|
|
25
|
+
@model_serializer(mode="wrap")
|
|
26
|
+
def serialize_model(self, handler):
|
|
27
|
+
optional_fields = set(["merchant_account_id"])
|
|
28
|
+
serialized = handler(self)
|
|
29
|
+
m = {}
|
|
30
|
+
|
|
31
|
+
for n, f in type(self).model_fields.items():
|
|
32
|
+
k = f.alias or n
|
|
33
|
+
val = serialized.get(k)
|
|
34
|
+
|
|
35
|
+
if val != UNSET_SENTINEL:
|
|
36
|
+
if val is not None or k not in optional_fields:
|
|
37
|
+
m[k] = val
|
|
38
|
+
|
|
39
|
+
return m
|
|
40
|
+
|
|
24
41
|
|
|
25
42
|
class ListCardSchemeDefinitionsRequestTypedDict(TypedDict):
|
|
26
43
|
merchant_account_id: NotRequired[str]
|
|
@@ -34,3 +51,19 @@ class ListCardSchemeDefinitionsRequest(BaseModel):
|
|
|
34
51
|
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
|
35
52
|
] = None
|
|
36
53
|
r"""The ID of the merchant account to use for this request."""
|
|
54
|
+
|
|
55
|
+
@model_serializer(mode="wrap")
|
|
56
|
+
def serialize_model(self, handler):
|
|
57
|
+
optional_fields = set(["merchant_account_id"])
|
|
58
|
+
serialized = handler(self)
|
|
59
|
+
m = {}
|
|
60
|
+
|
|
61
|
+
for n, f in type(self).model_fields.items():
|
|
62
|
+
k = f.alias or n
|
|
63
|
+
val = serialized.get(k)
|
|
64
|
+
|
|
65
|
+
if val != UNSET_SENTINEL:
|
|
66
|
+
if val is not None or k not in optional_fields:
|
|
67
|
+
m[k] = val
|
|
68
|
+
|
|
69
|
+
return m
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from gr4vy.types import BaseModel
|
|
4
|
+
from gr4vy.types import BaseModel, UNSET_SENTINEL
|
|
5
5
|
from gr4vy.utils import FieldMetadata, HeaderMetadata
|
|
6
6
|
import pydantic
|
|
7
|
+
from pydantic import model_serializer
|
|
7
8
|
from typing import Optional
|
|
8
9
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
10
|
|
|
@@ -21,6 +22,22 @@ class ListDigitalWalletsGlobals(BaseModel):
|
|
|
21
22
|
] = None
|
|
22
23
|
r"""The ID of the merchant account to use for this request."""
|
|
23
24
|
|
|
25
|
+
@model_serializer(mode="wrap")
|
|
26
|
+
def serialize_model(self, handler):
|
|
27
|
+
optional_fields = set(["merchant_account_id"])
|
|
28
|
+
serialized = handler(self)
|
|
29
|
+
m = {}
|
|
30
|
+
|
|
31
|
+
for n, f in type(self).model_fields.items():
|
|
32
|
+
k = f.alias or n
|
|
33
|
+
val = serialized.get(k)
|
|
34
|
+
|
|
35
|
+
if val != UNSET_SENTINEL:
|
|
36
|
+
if val is not None or k not in optional_fields:
|
|
37
|
+
m[k] = val
|
|
38
|
+
|
|
39
|
+
return m
|
|
40
|
+
|
|
24
41
|
|
|
25
42
|
class ListDigitalWalletsRequestTypedDict(TypedDict):
|
|
26
43
|
merchant_account_id: NotRequired[str]
|
|
@@ -34,3 +51,19 @@ class ListDigitalWalletsRequest(BaseModel):
|
|
|
34
51
|
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
|
35
52
|
] = None
|
|
36
53
|
r"""The ID of the merchant account to use for this request."""
|
|
54
|
+
|
|
55
|
+
@model_serializer(mode="wrap")
|
|
56
|
+
def serialize_model(self, handler):
|
|
57
|
+
optional_fields = set(["merchant_account_id"])
|
|
58
|
+
serialized = handler(self)
|
|
59
|
+
m = {}
|
|
60
|
+
|
|
61
|
+
for n, f in type(self).model_fields.items():
|
|
62
|
+
k = f.alias or n
|
|
63
|
+
val = serialized.get(k)
|
|
64
|
+
|
|
65
|
+
if val != UNSET_SENTINEL:
|
|
66
|
+
if val is not None or k not in optional_fields:
|
|
67
|
+
m[k] = val
|
|
68
|
+
|
|
69
|
+
return m
|
|
@@ -5,9 +5,10 @@ from .giftcardbalancerequest import (
|
|
|
5
5
|
GiftCardBalanceRequest,
|
|
6
6
|
GiftCardBalanceRequestTypedDict,
|
|
7
7
|
)
|
|
8
|
-
from gr4vy.types import BaseModel
|
|
8
|
+
from gr4vy.types import BaseModel, UNSET_SENTINEL
|
|
9
9
|
from gr4vy.utils import FieldMetadata, HeaderMetadata, RequestMetadata
|
|
10
10
|
import pydantic
|
|
11
|
+
from pydantic import model_serializer
|
|
11
12
|
from typing import Optional
|
|
12
13
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
14
|
|
|
@@ -25,6 +26,22 @@ class ListGiftCardBalancesGlobals(BaseModel):
|
|
|
25
26
|
] = None
|
|
26
27
|
r"""The ID of the merchant account to use for this request."""
|
|
27
28
|
|
|
29
|
+
@model_serializer(mode="wrap")
|
|
30
|
+
def serialize_model(self, handler):
|
|
31
|
+
optional_fields = set(["merchant_account_id"])
|
|
32
|
+
serialized = handler(self)
|
|
33
|
+
m = {}
|
|
34
|
+
|
|
35
|
+
for n, f in type(self).model_fields.items():
|
|
36
|
+
k = f.alias or n
|
|
37
|
+
val = serialized.get(k)
|
|
38
|
+
|
|
39
|
+
if val != UNSET_SENTINEL:
|
|
40
|
+
if val is not None or k not in optional_fields:
|
|
41
|
+
m[k] = val
|
|
42
|
+
|
|
43
|
+
return m
|
|
44
|
+
|
|
28
45
|
|
|
29
46
|
class ListGiftCardBalancesRequestTypedDict(TypedDict):
|
|
30
47
|
gift_card_balance_request: GiftCardBalanceRequestTypedDict
|
|
@@ -44,3 +61,19 @@ class ListGiftCardBalancesRequest(BaseModel):
|
|
|
44
61
|
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
|
45
62
|
] = None
|
|
46
63
|
r"""The ID of the merchant account to use for this request."""
|
|
64
|
+
|
|
65
|
+
@model_serializer(mode="wrap")
|
|
66
|
+
def serialize_model(self, handler):
|
|
67
|
+
optional_fields = set(["merchant_account_id"])
|
|
68
|
+
serialized = handler(self)
|
|
69
|
+
m = {}
|
|
70
|
+
|
|
71
|
+
for n, f in type(self).model_fields.items():
|
|
72
|
+
k = f.alias or n
|
|
73
|
+
val = serialized.get(k)
|
|
74
|
+
|
|
75
|
+
if val != UNSET_SENTINEL:
|
|
76
|
+
if val is not None or k not in optional_fields:
|
|
77
|
+
m[k] = val
|
|
78
|
+
|
|
79
|
+
return m
|
|
@@ -23,6 +23,22 @@ class ListGiftCardsGlobals(BaseModel):
|
|
|
23
23
|
] = None
|
|
24
24
|
r"""The ID of the merchant account to use for this request."""
|
|
25
25
|
|
|
26
|
+
@model_serializer(mode="wrap")
|
|
27
|
+
def serialize_model(self, handler):
|
|
28
|
+
optional_fields = set(["merchant_account_id"])
|
|
29
|
+
serialized = handler(self)
|
|
30
|
+
m = {}
|
|
31
|
+
|
|
32
|
+
for n, f in type(self).model_fields.items():
|
|
33
|
+
k = f.alias or n
|
|
34
|
+
val = serialized.get(k)
|
|
35
|
+
|
|
36
|
+
if val != UNSET_SENTINEL:
|
|
37
|
+
if val is not None or k not in optional_fields:
|
|
38
|
+
m[k] = val
|
|
39
|
+
|
|
40
|
+
return m
|
|
41
|
+
|
|
26
42
|
|
|
27
43
|
class ListGiftCardsRequestTypedDict(TypedDict):
|
|
28
44
|
buyer_external_identifier: NotRequired[Nullable[str]]
|
|
@@ -63,37 +79,34 @@ class ListGiftCardsRequest(BaseModel):
|
|
|
63
79
|
|
|
64
80
|
@model_serializer(mode="wrap")
|
|
65
81
|
def serialize_model(self, handler):
|
|
66
|
-
optional_fields =
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
optional_fields = set(
|
|
83
|
+
[
|
|
84
|
+
"buyer_external_identifier",
|
|
85
|
+
"buyer_id",
|
|
86
|
+
"cursor",
|
|
87
|
+
"limit",
|
|
88
|
+
"merchant_account_id",
|
|
89
|
+
]
|
|
90
|
+
)
|
|
91
|
+
nullable_fields = set(["buyer_external_identifier", "buyer_id", "cursor"])
|
|
76
92
|
serialized = handler(self)
|
|
77
|
-
|
|
78
93
|
m = {}
|
|
79
94
|
|
|
80
95
|
for n, f in type(self).model_fields.items():
|
|
81
96
|
k = f.alias or n
|
|
82
97
|
val = serialized.get(k)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
):
|
|
96
|
-
m[k] = val
|
|
98
|
+
is_nullable_and_explicitly_set = (
|
|
99
|
+
k in nullable_fields
|
|
100
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
if val != UNSET_SENTINEL:
|
|
104
|
+
if (
|
|
105
|
+
val is not None
|
|
106
|
+
or k not in optional_fields
|
|
107
|
+
or is_nullable_and_explicitly_set
|
|
108
|
+
):
|
|
109
|
+
m[k] = val
|
|
97
110
|
|
|
98
111
|
return m
|
|
99
112
|
|
|
@@ -39,31 +39,26 @@ class ListMerchantAccountsRequest(BaseModel):
|
|
|
39
39
|
|
|
40
40
|
@model_serializer(mode="wrap")
|
|
41
41
|
def serialize_model(self, handler):
|
|
42
|
-
optional_fields = ["cursor", "limit", "search"]
|
|
43
|
-
nullable_fields = ["cursor", "search"]
|
|
44
|
-
null_default_fields = []
|
|
45
|
-
|
|
42
|
+
optional_fields = set(["cursor", "limit", "search"])
|
|
43
|
+
nullable_fields = set(["cursor", "search"])
|
|
46
44
|
serialized = handler(self)
|
|
47
|
-
|
|
48
45
|
m = {}
|
|
49
46
|
|
|
50
47
|
for n, f in type(self).model_fields.items():
|
|
51
48
|
k = f.alias or n
|
|
52
49
|
val = serialized.get(k)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
):
|
|
66
|
-
m[k] = val
|
|
50
|
+
is_nullable_and_explicitly_set = (
|
|
51
|
+
k in nullable_fields
|
|
52
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
if val != UNSET_SENTINEL:
|
|
56
|
+
if (
|
|
57
|
+
val is not None
|
|
58
|
+
or k not in optional_fields
|
|
59
|
+
or is_nullable_and_explicitly_set
|
|
60
|
+
):
|
|
61
|
+
m[k] = val
|
|
67
62
|
|
|
68
63
|
return m
|
|
69
64
|
|
|
@@ -23,6 +23,22 @@ class ListPaymentLinksGlobals(BaseModel):
|
|
|
23
23
|
] = None
|
|
24
24
|
r"""The ID of the merchant account to use for this request."""
|
|
25
25
|
|
|
26
|
+
@model_serializer(mode="wrap")
|
|
27
|
+
def serialize_model(self, handler):
|
|
28
|
+
optional_fields = set(["merchant_account_id"])
|
|
29
|
+
serialized = handler(self)
|
|
30
|
+
m = {}
|
|
31
|
+
|
|
32
|
+
for n, f in type(self).model_fields.items():
|
|
33
|
+
k = f.alias or n
|
|
34
|
+
val = serialized.get(k)
|
|
35
|
+
|
|
36
|
+
if val != UNSET_SENTINEL:
|
|
37
|
+
if val is not None or k not in optional_fields:
|
|
38
|
+
m[k] = val
|
|
39
|
+
|
|
40
|
+
return m
|
|
41
|
+
|
|
26
42
|
|
|
27
43
|
class ListPaymentLinksRequestTypedDict(TypedDict):
|
|
28
44
|
cursor: NotRequired[Nullable[str]]
|
|
@@ -63,31 +79,28 @@ class ListPaymentLinksRequest(BaseModel):
|
|
|
63
79
|
|
|
64
80
|
@model_serializer(mode="wrap")
|
|
65
81
|
def serialize_model(self, handler):
|
|
66
|
-
optional_fields =
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
82
|
+
optional_fields = set(
|
|
83
|
+
["cursor", "limit", "buyer_search", "merchant_account_id"]
|
|
84
|
+
)
|
|
85
|
+
nullable_fields = set(["cursor", "buyer_search"])
|
|
70
86
|
serialized = handler(self)
|
|
71
|
-
|
|
72
87
|
m = {}
|
|
73
88
|
|
|
74
89
|
for n, f in type(self).model_fields.items():
|
|
75
90
|
k = f.alias or n
|
|
76
91
|
val = serialized.get(k)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
):
|
|
90
|
-
m[k] = val
|
|
92
|
+
is_nullable_and_explicitly_set = (
|
|
93
|
+
k in nullable_fields
|
|
94
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
if val != UNSET_SENTINEL:
|
|
98
|
+
if (
|
|
99
|
+
val is not None
|
|
100
|
+
or k not in optional_fields
|
|
101
|
+
or is_nullable_and_explicitly_set
|
|
102
|
+
):
|
|
103
|
+
m[k] = val
|
|
91
104
|
|
|
92
105
|
return m
|
|
93
106
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from gr4vy.types import BaseModel
|
|
4
|
+
from gr4vy.types import BaseModel, UNSET_SENTINEL
|
|
5
5
|
from gr4vy.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
|
|
6
6
|
import pydantic
|
|
7
|
+
from pydantic import model_serializer
|
|
7
8
|
from typing import Optional
|
|
8
9
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
10
|
|
|
@@ -21,6 +22,22 @@ class ListPaymentMethodNetworkTokensGlobals(BaseModel):
|
|
|
21
22
|
] = None
|
|
22
23
|
r"""The ID of the merchant account to use for this request."""
|
|
23
24
|
|
|
25
|
+
@model_serializer(mode="wrap")
|
|
26
|
+
def serialize_model(self, handler):
|
|
27
|
+
optional_fields = set(["merchant_account_id"])
|
|
28
|
+
serialized = handler(self)
|
|
29
|
+
m = {}
|
|
30
|
+
|
|
31
|
+
for n, f in type(self).model_fields.items():
|
|
32
|
+
k = f.alias or n
|
|
33
|
+
val = serialized.get(k)
|
|
34
|
+
|
|
35
|
+
if val != UNSET_SENTINEL:
|
|
36
|
+
if val is not None or k not in optional_fields:
|
|
37
|
+
m[k] = val
|
|
38
|
+
|
|
39
|
+
return m
|
|
40
|
+
|
|
24
41
|
|
|
25
42
|
class ListPaymentMethodNetworkTokensRequestTypedDict(TypedDict):
|
|
26
43
|
payment_method_id: str
|
|
@@ -41,3 +58,19 @@ class ListPaymentMethodNetworkTokensRequest(BaseModel):
|
|
|
41
58
|
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
|
42
59
|
] = None
|
|
43
60
|
r"""The ID of the merchant account to use for this request."""
|
|
61
|
+
|
|
62
|
+
@model_serializer(mode="wrap")
|
|
63
|
+
def serialize_model(self, handler):
|
|
64
|
+
optional_fields = set(["merchant_account_id"])
|
|
65
|
+
serialized = handler(self)
|
|
66
|
+
m = {}
|
|
67
|
+
|
|
68
|
+
for n, f in type(self).model_fields.items():
|
|
69
|
+
k = f.alias or n
|
|
70
|
+
val = serialized.get(k)
|
|
71
|
+
|
|
72
|
+
if val != UNSET_SENTINEL:
|
|
73
|
+
if val is not None or k not in optional_fields:
|
|
74
|
+
m[k] = val
|
|
75
|
+
|
|
76
|
+
return m
|
|
@@ -27,6 +27,22 @@ class ListPaymentMethodPaymentServiceTokensGlobals(BaseModel):
|
|
|
27
27
|
] = None
|
|
28
28
|
r"""The ID of the merchant account to use for this request."""
|
|
29
29
|
|
|
30
|
+
@model_serializer(mode="wrap")
|
|
31
|
+
def serialize_model(self, handler):
|
|
32
|
+
optional_fields = set(["merchant_account_id"])
|
|
33
|
+
serialized = handler(self)
|
|
34
|
+
m = {}
|
|
35
|
+
|
|
36
|
+
for n, f in type(self).model_fields.items():
|
|
37
|
+
k = f.alias or n
|
|
38
|
+
val = serialized.get(k)
|
|
39
|
+
|
|
40
|
+
if val != UNSET_SENTINEL:
|
|
41
|
+
if val is not None or k not in optional_fields:
|
|
42
|
+
m[k] = val
|
|
43
|
+
|
|
44
|
+
return m
|
|
45
|
+
|
|
30
46
|
|
|
31
47
|
class ListPaymentMethodPaymentServiceTokensRequestTypedDict(TypedDict):
|
|
32
48
|
payment_method_id: str
|
|
@@ -58,30 +74,25 @@ class ListPaymentMethodPaymentServiceTokensRequest(BaseModel):
|
|
|
58
74
|
|
|
59
75
|
@model_serializer(mode="wrap")
|
|
60
76
|
def serialize_model(self, handler):
|
|
61
|
-
optional_fields = ["payment_service_id", "merchant_account_id"]
|
|
62
|
-
nullable_fields = ["payment_service_id"]
|
|
63
|
-
null_default_fields = []
|
|
64
|
-
|
|
77
|
+
optional_fields = set(["payment_service_id", "merchant_account_id"])
|
|
78
|
+
nullable_fields = set(["payment_service_id"])
|
|
65
79
|
serialized = handler(self)
|
|
66
|
-
|
|
67
80
|
m = {}
|
|
68
81
|
|
|
69
82
|
for n, f in type(self).model_fields.items():
|
|
70
83
|
k = f.alias or n
|
|
71
84
|
val = serialized.get(k)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
):
|
|
85
|
-
m[k] = val
|
|
85
|
+
is_nullable_and_explicitly_set = (
|
|
86
|
+
k in nullable_fields
|
|
87
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
if val != UNSET_SENTINEL:
|
|
91
|
+
if (
|
|
92
|
+
val is not None
|
|
93
|
+
or k not in optional_fields
|
|
94
|
+
or is_nullable_and_explicitly_set
|
|
95
|
+
):
|
|
96
|
+
m[k] = val
|
|
86
97
|
|
|
87
98
|
return m
|
|
@@ -24,6 +24,22 @@ class ListPaymentMethodsGlobals(BaseModel):
|
|
|
24
24
|
] = None
|
|
25
25
|
r"""The ID of the merchant account to use for this request."""
|
|
26
26
|
|
|
27
|
+
@model_serializer(mode="wrap")
|
|
28
|
+
def serialize_model(self, handler):
|
|
29
|
+
optional_fields = set(["merchant_account_id"])
|
|
30
|
+
serialized = handler(self)
|
|
31
|
+
m = {}
|
|
32
|
+
|
|
33
|
+
for n, f in type(self).model_fields.items():
|
|
34
|
+
k = f.alias or n
|
|
35
|
+
val = serialized.get(k)
|
|
36
|
+
|
|
37
|
+
if val != UNSET_SENTINEL:
|
|
38
|
+
if val is not None or k not in optional_fields:
|
|
39
|
+
m[k] = val
|
|
40
|
+
|
|
41
|
+
return m
|
|
42
|
+
|
|
27
43
|
|
|
28
44
|
class ListPaymentMethodsRequestTypedDict(TypedDict):
|
|
29
45
|
cursor: NotRequired[Nullable[str]]
|
|
@@ -86,45 +102,44 @@ class ListPaymentMethodsRequest(BaseModel):
|
|
|
86
102
|
|
|
87
103
|
@model_serializer(mode="wrap")
|
|
88
104
|
def serialize_model(self, handler):
|
|
89
|
-
optional_fields =
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
optional_fields = set(
|
|
106
|
+
[
|
|
107
|
+
"cursor",
|
|
108
|
+
"limit",
|
|
109
|
+
"buyer_id",
|
|
110
|
+
"buyer_external_identifier",
|
|
111
|
+
"status",
|
|
112
|
+
"external_identifier",
|
|
113
|
+
"merchant_account_id",
|
|
114
|
+
]
|
|
115
|
+
)
|
|
116
|
+
nullable_fields = set(
|
|
117
|
+
[
|
|
118
|
+
"cursor",
|
|
119
|
+
"buyer_id",
|
|
120
|
+
"buyer_external_identifier",
|
|
121
|
+
"status",
|
|
122
|
+
"external_identifier",
|
|
123
|
+
]
|
|
124
|
+
)
|
|
107
125
|
serialized = handler(self)
|
|
108
|
-
|
|
109
126
|
m = {}
|
|
110
127
|
|
|
111
128
|
for n, f in type(self).model_fields.items():
|
|
112
129
|
k = f.alias or n
|
|
113
130
|
val = serialized.get(k)
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
):
|
|
127
|
-
m[k] = val
|
|
131
|
+
is_nullable_and_explicitly_set = (
|
|
132
|
+
k in nullable_fields
|
|
133
|
+
and (self.__pydantic_fields_set__.intersection({n})) # pylint: disable=no-member
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
if val != UNSET_SENTINEL:
|
|
137
|
+
if (
|
|
138
|
+
val is not None
|
|
139
|
+
or k not in optional_fields
|
|
140
|
+
or is_nullable_and_explicitly_set
|
|
141
|
+
):
|
|
142
|
+
m[k] = val
|
|
128
143
|
|
|
129
144
|
return m
|
|
130
145
|
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .paymentoptionrequest import PaymentOptionRequest, PaymentOptionRequestTypedDict
|
|
5
|
-
from gr4vy.types import BaseModel
|
|
5
|
+
from gr4vy.types import BaseModel, UNSET_SENTINEL
|
|
6
6
|
from gr4vy.utils import FieldMetadata, HeaderMetadata, RequestMetadata
|
|
7
7
|
import pydantic
|
|
8
|
+
from pydantic import model_serializer
|
|
8
9
|
from typing import Optional
|
|
9
10
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
10
11
|
|
|
@@ -22,6 +23,22 @@ class ListPaymentOptionsGlobals(BaseModel):
|
|
|
22
23
|
] = None
|
|
23
24
|
r"""The ID of the merchant account to use for this request."""
|
|
24
25
|
|
|
26
|
+
@model_serializer(mode="wrap")
|
|
27
|
+
def serialize_model(self, handler):
|
|
28
|
+
optional_fields = set(["merchant_account_id"])
|
|
29
|
+
serialized = handler(self)
|
|
30
|
+
m = {}
|
|
31
|
+
|
|
32
|
+
for n, f in type(self).model_fields.items():
|
|
33
|
+
k = f.alias or n
|
|
34
|
+
val = serialized.get(k)
|
|
35
|
+
|
|
36
|
+
if val != UNSET_SENTINEL:
|
|
37
|
+
if val is not None or k not in optional_fields:
|
|
38
|
+
m[k] = val
|
|
39
|
+
|
|
40
|
+
return m
|
|
41
|
+
|
|
25
42
|
|
|
26
43
|
class ListPaymentOptionsRequestTypedDict(TypedDict):
|
|
27
44
|
payment_option_request: PaymentOptionRequestTypedDict
|
|
@@ -41,3 +58,19 @@ class ListPaymentOptionsRequest(BaseModel):
|
|
|
41
58
|
FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
|
|
42
59
|
] = None
|
|
43
60
|
r"""The ID of the merchant account to use for this request."""
|
|
61
|
+
|
|
62
|
+
@model_serializer(mode="wrap")
|
|
63
|
+
def serialize_model(self, handler):
|
|
64
|
+
optional_fields = set(["merchant_account_id"])
|
|
65
|
+
serialized = handler(self)
|
|
66
|
+
m = {}
|
|
67
|
+
|
|
68
|
+
for n, f in type(self).model_fields.items():
|
|
69
|
+
k = f.alias or n
|
|
70
|
+
val = serialized.get(k)
|
|
71
|
+
|
|
72
|
+
if val != UNSET_SENTINEL:
|
|
73
|
+
if val is not None or k not in optional_fields:
|
|
74
|
+
m[k] = val
|
|
75
|
+
|
|
76
|
+
return m
|