gr4vy 1.5.2__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/actions.py +307 -0
- gr4vy/all.py +4 -2
- gr4vy/audit_logs.py +4 -2
- gr4vy/balances.py +4 -2
- gr4vy/basesdk.py +6 -0
- gr4vy/buyers_gift_cards.py +4 -2
- gr4vy/buyers_payment_methods.py +4 -2
- gr4vy/buyers_sdk.py +28 -18
- gr4vy/buyers_shipping_details.py +20 -10
- gr4vy/card_scheme_definitions_sdk.py +4 -2
- gr4vy/checkout_sessions.py +40 -14
- gr4vy/digital_wallets_sdk.py +20 -10
- gr4vy/domains.py +8 -4
- gr4vy/errors/apierror.py +1 -1
- gr4vy/errors/error400.py +1 -5
- gr4vy/errors/error401.py +1 -5
- gr4vy/errors/error403.py +1 -5
- gr4vy/errors/error404.py +1 -5
- gr4vy/errors/error405.py +1 -5
- gr4vy/errors/error409.py +1 -5
- gr4vy/errors/error425.py +1 -5
- gr4vy/errors/error429.py +1 -5
- gr4vy/errors/error500.py +1 -5
- gr4vy/errors/error502.py +1 -5
- gr4vy/errors/error504.py +1 -5
- gr4vy/errors/gr4vyerror.py +1 -1
- gr4vy/errors/httpvalidationerror.py +1 -1
- gr4vy/errors/no_response_error.py +1 -1
- gr4vy/errors/responsevalidationerror.py +1 -1
- gr4vy/events.py +54 -7
- gr4vy/executions.py +12 -6
- gr4vy/gift_cards_sdk.py +16 -8
- gr4vy/jobs.py +4 -2
- gr4vy/merchant_accounts_sdk.py +16 -8
- gr4vy/models/__init__.py +103 -29
- gr4vy/models/adyencardoptions.py +1 -6
- gr4vy/models/adyensepaoptions.py +1 -6
- gr4vy/models/airline.py +2 -7
- gr4vy/models/airlineleg.py +2 -6
- gr4vy/models/airlinepassenger.py +2 -6
- 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 +2 -7
- gr4vy/models/browserinfo.py +2 -4
- gr4vy/models/buyer.py +3 -3
- gr4vy/models/buyercreate.py +3 -3
- gr4vy/models/buyerupdate.py +3 -3
- gr4vy/models/cartitem.py +9 -6
- 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/createsession.py +3 -3
- gr4vy/models/cybersourceoptions.py +7 -0
- gr4vy/models/definitionfield.py +1 -6
- gr4vy/models/digitalwallet.py +3 -5
- gr4vy/models/digitalwalletcreate.py +2 -6
- gr4vy/models/dlocalupirecurringinfooptions.py +13 -15
- gr4vy/models/errordetail.py +2 -4
- gr4vy/models/flow.py +16 -0
- gr4vy/models/flowaction.py +16 -0
- gr4vy/models/forterantifraudoptions.py +2 -7
- gr4vy/models/forterantifraudoptionscartitembasicitemdata.py +4 -8
- gr4vy/models/forterantifraudoptionscartitemdeliverydetails.py +3 -6
- gr4vy/models/giftcardredemption.py +4 -8
- gr4vy/models/giftcardservice.py +3 -5
- 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/list_all_report_executionsop.py +2 -14
- gr4vy/models/list_audit_logsop.py +2 -10
- gr4vy/models/list_buyer_payment_methodsop.py +2 -3
- 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 +4 -22
- gr4vy/models/merchantaccount.py +3 -5
- gr4vy/models/merchantaccountcreate.py +2 -6
- gr4vy/models/merchantaccountupdate.py +2 -6
- gr4vy/models/method.py +3 -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 +4 -8
- gr4vy/models/nuveiidealoptions.py +49 -0
- gr4vy/models/paymentlink.py +18 -7
- gr4vy/models/paymentlinkcreate.py +23 -37
- gr4vy/models/paymentmethod.py +7 -13
- gr4vy/models/paymentmethodcard.py +3 -5
- gr4vy/models/paymentmethoddetailscard.py +2 -6
- 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/paymentservicetoken.py +3 -3
- gr4vy/models/payoutcreate.py +5 -9
- 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 +3 -6
- gr4vy/models/refund.py +4 -4
- gr4vy/models/report.py +4 -6
- gr4vy/models/reportcreate.py +2 -3
- gr4vy/models/reportexecution.py +3 -3
- gr4vy/models/reportexecutionsummary.py +3 -3
- gr4vy/models/reportspec.py +2 -4
- gr4vy/models/reportsummary.py +3 -5
- gr4vy/models/taxid.py +2 -4
- gr4vy/models/taxidkind.py +6 -0
- gr4vy/models/threedsecuredatav1.py +2 -6
- gr4vy/models/threedsecuredatav2.py +2 -6
- gr4vy/models/transaction.py +74 -25
- gr4vy/models/transactionaction.py +48 -0
- gr4vy/models/transactionactions.py +17 -0
- gr4vy/models/transactionbuyer.py +3 -3
- gr4vy/models/transactioncancel.py +3 -3
- gr4vy/models/transactioncapture.py +3 -3
- gr4vy/models/transactionconnectionoptions.py +30 -0
- gr4vy/models/transactioncreate.py +27 -12
- gr4vy/models/transactionevent.py +5 -3
- gr4vy/models/transactionpaymentmethod.py +6 -12
- gr4vy/models/transactionpaymentservice.py +3 -3
- gr4vy/models/transactionrefundcreate.py +2 -6
- gr4vy/models/transactionsummary.py +6 -10
- gr4vy/models/transactionthreedsecuresummary.py +3 -9
- gr4vy/models/transactionvoid.py +3 -3
- gr4vy/models/trustlyoptions.py +2 -9
- gr4vy/network_tokens_cryptogram.py +4 -2
- gr4vy/payment_links_sdk.py +34 -14
- gr4vy/payment_methods_network_tokens.py +20 -10
- gr4vy/payment_methods_payment_service_tokens.py +12 -6
- gr4vy/payment_methods_sdk.py +16 -8
- gr4vy/payment_options_sdk.py +4 -2
- gr4vy/payment_service_definitions_sdk.py +12 -6
- gr4vy/payment_services_sdk.py +28 -14
- gr4vy/payouts.py +16 -10
- gr4vy/refunds_sdk.py +4 -2
- gr4vy/report_executions_sdk.py +4 -2
- gr4vy/reports_sdk.py +16 -8
- gr4vy/sessions.py +12 -6
- gr4vy/transactions.py +99 -28
- gr4vy/transactions_refunds.py +12 -6
- gr4vy/transactions_settlements.py +8 -4
- gr4vy/types/basemodel.py +41 -3
- gr4vy/utils/__init__.py +0 -3
- gr4vy/utils/enums.py +60 -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.5.2.dist-info → gr4vy-1.10.9.dist-info}/METADATA +39 -39
- {gr4vy-1.5.2.dist-info → gr4vy-1.10.9.dist-info}/RECORD +167 -155
- gr4vy/models/billingdetails_output.py +0 -87
- gr4vy/models/guestbuyer_output.py +0 -80
- {gr4vy-1.5.2.dist-info → gr4vy-1.10.9.dist-info}/WHEEL +0 -0
gr4vy/models/__init__.py
CHANGED
|
@@ -81,11 +81,7 @@ if TYPE_CHECKING:
|
|
|
81
81
|
)
|
|
82
82
|
from .auditlogentryuser import AuditLogEntryUser, AuditLogEntryUserTypedDict
|
|
83
83
|
from .avsresponsecode import AVSResponseCode
|
|
84
|
-
from .
|
|
85
|
-
from .billingdetails_output import (
|
|
86
|
-
BillingDetailsOutput,
|
|
87
|
-
BillingDetailsOutputTypedDict,
|
|
88
|
-
)
|
|
84
|
+
from .billingdetails import BillingDetails, BillingDetailsTypedDict
|
|
89
85
|
from .braintreedynamicdatafieldsoptions import (
|
|
90
86
|
BraintreeDynamicDataFieldsOptions,
|
|
91
87
|
BraintreeDynamicDataFieldsOptionsTypedDict,
|
|
@@ -132,6 +128,7 @@ if TYPE_CHECKING:
|
|
|
132
128
|
CardWithURLPaymentMethodCreateTypedDict,
|
|
133
129
|
)
|
|
134
130
|
from .cartitem import CartItem, CartItemTypedDict
|
|
131
|
+
from .chaseoptions import ChaseOptions, ChaseOptionsTypedDict
|
|
135
132
|
from .checkoutpayoutoptions import (
|
|
136
133
|
CheckoutPayoutOptions,
|
|
137
134
|
CheckoutPayoutOptionsTypedDict,
|
|
@@ -381,6 +378,8 @@ if TYPE_CHECKING:
|
|
|
381
378
|
FiservInstallmentOptionsTypedDict,
|
|
382
379
|
)
|
|
383
380
|
from .fiservoptions import FiservOptions, FiservOptionsTypedDict
|
|
381
|
+
from .flow import Flow
|
|
382
|
+
from .flowaction import FlowAction
|
|
384
383
|
from .forterantifraudoptions import (
|
|
385
384
|
ForterAntiFraudOptions,
|
|
386
385
|
ForterAntiFraudOptionsDeliveryType,
|
|
@@ -392,8 +391,8 @@ if TYPE_CHECKING:
|
|
|
392
391
|
)
|
|
393
392
|
from .forterantifraudoptionscartitembasicitemdata import (
|
|
394
393
|
ForterAntiFraudOptionsCartItemBasicItemData,
|
|
394
|
+
ForterAntiFraudOptionsCartItemBasicItemDataType,
|
|
395
395
|
ForterAntiFraudOptionsCartItemBasicItemDataTypedDict,
|
|
396
|
-
Type,
|
|
397
396
|
)
|
|
398
397
|
from .forterantifraudoptionscartitembeneficiary import (
|
|
399
398
|
ForterAntiFraudOptionsCartItemBeneficiary,
|
|
@@ -579,9 +578,9 @@ if TYPE_CHECKING:
|
|
|
579
578
|
GooglePaySessionRequest,
|
|
580
579
|
GooglePaySessionRequestTypedDict,
|
|
581
580
|
)
|
|
582
|
-
from .
|
|
583
|
-
from .guestbuyer_output import GuestBuyerOutput, GuestBuyerOutputTypedDict
|
|
581
|
+
from .guestbuyer import GuestBuyer, GuestBuyerTypedDict
|
|
584
582
|
from .instrumenttype import InstrumentType
|
|
583
|
+
from .integrationclient import IntegrationClient
|
|
585
584
|
from .latitudeoptions import LatitudeOptions, LatitudeOptionsTypedDict
|
|
586
585
|
from .list_all_report_executionsop import (
|
|
587
586
|
ListAllReportExecutionsGlobals,
|
|
@@ -730,11 +729,19 @@ if TYPE_CHECKING:
|
|
|
730
729
|
ListReportsResponse,
|
|
731
730
|
ListReportsResponseTypedDict,
|
|
732
731
|
)
|
|
732
|
+
from .list_transaction_actionsop import (
|
|
733
|
+
ListTransactionActionsGlobals,
|
|
734
|
+
ListTransactionActionsGlobalsTypedDict,
|
|
735
|
+
ListTransactionActionsRequest,
|
|
736
|
+
ListTransactionActionsRequestTypedDict,
|
|
737
|
+
)
|
|
733
738
|
from .list_transaction_eventsop import (
|
|
734
739
|
ListTransactionEventsGlobals,
|
|
735
740
|
ListTransactionEventsGlobalsTypedDict,
|
|
736
741
|
ListTransactionEventsRequest,
|
|
737
742
|
ListTransactionEventsRequestTypedDict,
|
|
743
|
+
ListTransactionEventsResponse,
|
|
744
|
+
ListTransactionEventsResponseTypedDict,
|
|
738
745
|
)
|
|
739
746
|
from .list_transaction_refundsop import (
|
|
740
747
|
ListTransactionRefundsGlobals,
|
|
@@ -782,6 +789,7 @@ if TYPE_CHECKING:
|
|
|
782
789
|
)
|
|
783
790
|
from .mockcardoptions import MockCardOptions, MockCardOptionsTypedDict
|
|
784
791
|
from .mode import Mode
|
|
792
|
+
from .monatospeioptions import MonatoSpeiOptions, MonatoSpeiOptionsTypedDict
|
|
785
793
|
from .networktoken import NetworkToken, NetworkTokenTypedDict
|
|
786
794
|
from .networktokencreate import NetworkTokenCreate, NetworkTokenCreateTypedDict
|
|
787
795
|
from .networktokenpaymentmethodcreate import (
|
|
@@ -795,11 +803,12 @@ if TYPE_CHECKING:
|
|
|
795
803
|
NuveiAirlineDataOptions,
|
|
796
804
|
NuveiAirlineDataOptionsTypedDict,
|
|
797
805
|
)
|
|
806
|
+
from .nuveiidealoptions import NuveiIDealOptions, NuveiIDealOptionsTypedDict
|
|
798
807
|
from .nuveioptions import NuveiOptions, NuveiOptionsTypedDict
|
|
799
808
|
from .nuveipseoptions import NuveiPSEOptions, NuveiPSEOptionsTypedDict
|
|
800
809
|
from .oxxooptions import OxxoOptions, OxxoOptionsTypedDict
|
|
801
810
|
from .paymentlink import PaymentLink, PaymentLinkTypedDict
|
|
802
|
-
from .paymentlinkcreate import
|
|
811
|
+
from .paymentlinkcreate import PaymentLinkCreate, PaymentLinkCreateTypedDict
|
|
803
812
|
from .paymentlinks import PaymentLinks, PaymentLinksTypedDict
|
|
804
813
|
from .paymentlinkstatus import PaymentLinkStatus
|
|
805
814
|
from .paymentmethod import PaymentMethod, PaymentMethodTypedDict
|
|
@@ -901,6 +910,23 @@ if TYPE_CHECKING:
|
|
|
901
910
|
from .payoutsummaries import PayoutSummaries, PayoutSummariesTypedDict
|
|
902
911
|
from .payoutsummary import PayoutSummary, PayoutSummaryTypedDict
|
|
903
912
|
from .paypaloptions import PaypalOptions, PaypalOptionsTypedDict
|
|
913
|
+
from .paypalshippingoptions import (
|
|
914
|
+
PaypalShippingOptions,
|
|
915
|
+
PaypalShippingOptionsTypedDict,
|
|
916
|
+
)
|
|
917
|
+
from .paypalshippingoptionsitem import (
|
|
918
|
+
PaypalShippingOptionsItem,
|
|
919
|
+
PaypalShippingOptionsItemType,
|
|
920
|
+
PaypalShippingOptionsItemTypedDict,
|
|
921
|
+
)
|
|
922
|
+
from .paypalshippingoptionsitemamount import (
|
|
923
|
+
PaypalShippingOptionsItemAmount,
|
|
924
|
+
PaypalShippingOptionsItemAmountTypedDict,
|
|
925
|
+
)
|
|
926
|
+
from .plaidpaymentmethodcreate import (
|
|
927
|
+
PlaidPaymentMethodCreate,
|
|
928
|
+
PlaidPaymentMethodCreateTypedDict,
|
|
929
|
+
)
|
|
904
930
|
from .powertranzoptions import PowertranzOptions, PowertranzOptionsTypedDict
|
|
905
931
|
from .producttype import ProductType
|
|
906
932
|
from .recipient import Recipient, RecipientTypedDict
|
|
@@ -998,6 +1024,8 @@ if TYPE_CHECKING:
|
|
|
998
1024
|
TokenPaymentMethodCreateTypedDict,
|
|
999
1025
|
)
|
|
1000
1026
|
from .transaction import Transaction, TransactionTypedDict
|
|
1027
|
+
from .transactionaction import TransactionAction, TransactionActionTypedDict
|
|
1028
|
+
from .transactionactions import TransactionActions, TransactionActionsTypedDict
|
|
1001
1029
|
from .transactionbuyer import TransactionBuyer, TransactionBuyerTypedDict
|
|
1002
1030
|
from .transactioncancel import TransactionCancel, TransactionCancelTypedDict
|
|
1003
1031
|
from .transactioncapture import TransactionCapture, TransactionCaptureTypedDict
|
|
@@ -1226,10 +1254,8 @@ __all__ = [
|
|
|
1226
1254
|
"AuditLogEntryTypedDict",
|
|
1227
1255
|
"AuditLogEntryUser",
|
|
1228
1256
|
"AuditLogEntryUserTypedDict",
|
|
1229
|
-
"
|
|
1230
|
-
"
|
|
1231
|
-
"BillingDetailsOutput",
|
|
1232
|
-
"BillingDetailsOutputTypedDict",
|
|
1257
|
+
"BillingDetails",
|
|
1258
|
+
"BillingDetailsTypedDict",
|
|
1233
1259
|
"Body",
|
|
1234
1260
|
"BodyTypedDict",
|
|
1235
1261
|
"BraintreeDynamicDataFieldsOptions",
|
|
@@ -1270,6 +1296,8 @@ __all__ = [
|
|
|
1270
1296
|
"CardWithURLPaymentMethodCreateTypedDict",
|
|
1271
1297
|
"CartItem",
|
|
1272
1298
|
"CartItemTypedDict",
|
|
1299
|
+
"ChaseOptions",
|
|
1300
|
+
"ChaseOptionsTypedDict",
|
|
1273
1301
|
"CheckoutPayoutOptions",
|
|
1274
1302
|
"CheckoutPayoutOptionsTypedDict",
|
|
1275
1303
|
"CheckoutSession",
|
|
@@ -1452,9 +1480,12 @@ __all__ = [
|
|
|
1452
1480
|
"FiservInstallmentOptionsTypedDict",
|
|
1453
1481
|
"FiservOptions",
|
|
1454
1482
|
"FiservOptionsTypedDict",
|
|
1483
|
+
"Flow",
|
|
1484
|
+
"FlowAction",
|
|
1455
1485
|
"ForterAntiFraudOptions",
|
|
1456
1486
|
"ForterAntiFraudOptionsCartItem",
|
|
1457
1487
|
"ForterAntiFraudOptionsCartItemBasicItemData",
|
|
1488
|
+
"ForterAntiFraudOptionsCartItemBasicItemDataType",
|
|
1458
1489
|
"ForterAntiFraudOptionsCartItemBasicItemDataTypedDict",
|
|
1459
1490
|
"ForterAntiFraudOptionsCartItemBeneficiary",
|
|
1460
1491
|
"ForterAntiFraudOptionsCartItemBeneficiaryAddress",
|
|
@@ -1583,11 +1614,10 @@ __all__ = [
|
|
|
1583
1614
|
"GooglePaySessionRequest",
|
|
1584
1615
|
"GooglePaySessionRequestTypedDict",
|
|
1585
1616
|
"GooglePaySessionTypedDict",
|
|
1586
|
-
"
|
|
1587
|
-
"
|
|
1588
|
-
"GuestBuyerOutput",
|
|
1589
|
-
"GuestBuyerOutputTypedDict",
|
|
1617
|
+
"GuestBuyer",
|
|
1618
|
+
"GuestBuyerTypedDict",
|
|
1590
1619
|
"InstrumentType",
|
|
1620
|
+
"IntegrationClient",
|
|
1591
1621
|
"Item",
|
|
1592
1622
|
"ItemTypedDict",
|
|
1593
1623
|
"LatitudeOptions",
|
|
@@ -1696,10 +1726,16 @@ __all__ = [
|
|
|
1696
1726
|
"ListReportsRequestTypedDict",
|
|
1697
1727
|
"ListReportsResponse",
|
|
1698
1728
|
"ListReportsResponseTypedDict",
|
|
1729
|
+
"ListTransactionActionsGlobals",
|
|
1730
|
+
"ListTransactionActionsGlobalsTypedDict",
|
|
1731
|
+
"ListTransactionActionsRequest",
|
|
1732
|
+
"ListTransactionActionsRequestTypedDict",
|
|
1699
1733
|
"ListTransactionEventsGlobals",
|
|
1700
1734
|
"ListTransactionEventsGlobalsTypedDict",
|
|
1701
1735
|
"ListTransactionEventsRequest",
|
|
1702
1736
|
"ListTransactionEventsRequestTypedDict",
|
|
1737
|
+
"ListTransactionEventsResponse",
|
|
1738
|
+
"ListTransactionEventsResponseTypedDict",
|
|
1703
1739
|
"ListTransactionRefundsGlobals",
|
|
1704
1740
|
"ListTransactionRefundsGlobalsTypedDict",
|
|
1705
1741
|
"ListTransactionRefundsRequest",
|
|
@@ -1716,7 +1752,6 @@ __all__ = [
|
|
|
1716
1752
|
"ListTransactionsResponseTypedDict",
|
|
1717
1753
|
"Loc",
|
|
1718
1754
|
"LocTypedDict",
|
|
1719
|
-
"Locale",
|
|
1720
1755
|
"MattildaTapiOptions",
|
|
1721
1756
|
"MattildaTapiOptionsTypedDict",
|
|
1722
1757
|
"MerchantAccount",
|
|
@@ -1737,6 +1772,8 @@ __all__ = [
|
|
|
1737
1772
|
"MockCardOptions",
|
|
1738
1773
|
"MockCardOptionsTypedDict",
|
|
1739
1774
|
"Mode",
|
|
1775
|
+
"MonatoSpeiOptions",
|
|
1776
|
+
"MonatoSpeiOptionsTypedDict",
|
|
1740
1777
|
"Name",
|
|
1741
1778
|
"NetworkToken",
|
|
1742
1779
|
"NetworkTokenCreate",
|
|
@@ -1749,6 +1786,8 @@ __all__ = [
|
|
|
1749
1786
|
"NetworkTokensTypedDict",
|
|
1750
1787
|
"NuveiAirlineDataOptions",
|
|
1751
1788
|
"NuveiAirlineDataOptionsTypedDict",
|
|
1789
|
+
"NuveiIDealOptions",
|
|
1790
|
+
"NuveiIDealOptionsTypedDict",
|
|
1752
1791
|
"NuveiOptions",
|
|
1753
1792
|
"NuveiOptionsTypedDict",
|
|
1754
1793
|
"NuveiPSEOptions",
|
|
@@ -1829,6 +1868,15 @@ __all__ = [
|
|
|
1829
1868
|
"PayoutSummaryTypedDict",
|
|
1830
1869
|
"PaypalOptions",
|
|
1831
1870
|
"PaypalOptionsTypedDict",
|
|
1871
|
+
"PaypalShippingOptions",
|
|
1872
|
+
"PaypalShippingOptionsItem",
|
|
1873
|
+
"PaypalShippingOptionsItemAmount",
|
|
1874
|
+
"PaypalShippingOptionsItemAmountTypedDict",
|
|
1875
|
+
"PaypalShippingOptionsItemType",
|
|
1876
|
+
"PaypalShippingOptionsItemTypedDict",
|
|
1877
|
+
"PaypalShippingOptionsTypedDict",
|
|
1878
|
+
"PlaidPaymentMethodCreate",
|
|
1879
|
+
"PlaidPaymentMethodCreateTypedDict",
|
|
1832
1880
|
"PowertranzOptions",
|
|
1833
1881
|
"PowertranzOptionsTypedDict",
|
|
1834
1882
|
"ProductType",
|
|
@@ -1944,6 +1992,10 @@ __all__ = [
|
|
|
1944
1992
|
"TokenPaymentMethodCreateTypedDict",
|
|
1945
1993
|
"TokenTypedDict",
|
|
1946
1994
|
"Transaction",
|
|
1995
|
+
"TransactionAction",
|
|
1996
|
+
"TransactionActionTypedDict",
|
|
1997
|
+
"TransactionActions",
|
|
1998
|
+
"TransactionActionsTypedDict",
|
|
1947
1999
|
"TransactionBuyer",
|
|
1948
2000
|
"TransactionBuyerTypedDict",
|
|
1949
2001
|
"TransactionCancel",
|
|
@@ -1997,7 +2049,6 @@ __all__ = [
|
|
|
1997
2049
|
"TravelhubOptionsTypedDict",
|
|
1998
2050
|
"TrustlyOptions",
|
|
1999
2051
|
"TrustlyOptionsTypedDict",
|
|
2000
|
-
"Type",
|
|
2001
2052
|
"UnregisterDigitalWalletDomainGlobals",
|
|
2002
2053
|
"UnregisterDigitalWalletDomainGlobalsTypedDict",
|
|
2003
2054
|
"UnregisterDigitalWalletDomainRequest",
|
|
@@ -2130,10 +2181,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2130
2181
|
"AuditLogEntryUser": ".auditlogentryuser",
|
|
2131
2182
|
"AuditLogEntryUserTypedDict": ".auditlogentryuser",
|
|
2132
2183
|
"AVSResponseCode": ".avsresponsecode",
|
|
2133
|
-
"
|
|
2134
|
-
"
|
|
2135
|
-
"BillingDetailsOutput": ".billingdetails_output",
|
|
2136
|
-
"BillingDetailsOutputTypedDict": ".billingdetails_output",
|
|
2184
|
+
"BillingDetails": ".billingdetails",
|
|
2185
|
+
"BillingDetailsTypedDict": ".billingdetails",
|
|
2137
2186
|
"BraintreeDynamicDataFieldsOptions": ".braintreedynamicdatafieldsoptions",
|
|
2138
2187
|
"BraintreeDynamicDataFieldsOptionsTypedDict": ".braintreedynamicdatafieldsoptions",
|
|
2139
2188
|
"VaultPaymentMethodCriteria": ".braintreedynamicdatafieldsoptions",
|
|
@@ -2174,6 +2223,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2174
2223
|
"CardWithURLPaymentMethodCreateTypedDict": ".cardwithurlpaymentmethodcreate",
|
|
2175
2224
|
"CartItem": ".cartitem",
|
|
2176
2225
|
"CartItemTypedDict": ".cartitem",
|
|
2226
|
+
"ChaseOptions": ".chaseoptions",
|
|
2227
|
+
"ChaseOptionsTypedDict": ".chaseoptions",
|
|
2177
2228
|
"CheckoutPayoutOptions": ".checkoutpayoutoptions",
|
|
2178
2229
|
"CheckoutPayoutOptionsTypedDict": ".checkoutpayoutoptions",
|
|
2179
2230
|
"CheckoutSession": ".checkoutsession",
|
|
@@ -2358,14 +2409,16 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2358
2409
|
"FiservInstallmentOptionsTypedDict": ".fiservinstallmentoptions",
|
|
2359
2410
|
"FiservOptions": ".fiservoptions",
|
|
2360
2411
|
"FiservOptionsTypedDict": ".fiservoptions",
|
|
2412
|
+
"Flow": ".flow",
|
|
2413
|
+
"FlowAction": ".flowaction",
|
|
2361
2414
|
"ForterAntiFraudOptions": ".forterantifraudoptions",
|
|
2362
2415
|
"ForterAntiFraudOptionsDeliveryType": ".forterantifraudoptions",
|
|
2363
2416
|
"ForterAntiFraudOptionsTypedDict": ".forterantifraudoptions",
|
|
2364
2417
|
"ForterAntiFraudOptionsCartItem": ".forterantifraudoptionscartitem",
|
|
2365
2418
|
"ForterAntiFraudOptionsCartItemTypedDict": ".forterantifraudoptionscartitem",
|
|
2366
2419
|
"ForterAntiFraudOptionsCartItemBasicItemData": ".forterantifraudoptionscartitembasicitemdata",
|
|
2420
|
+
"ForterAntiFraudOptionsCartItemBasicItemDataType": ".forterantifraudoptionscartitembasicitemdata",
|
|
2367
2421
|
"ForterAntiFraudOptionsCartItemBasicItemDataTypedDict": ".forterantifraudoptionscartitembasicitemdata",
|
|
2368
|
-
"Type": ".forterantifraudoptionscartitembasicitemdata",
|
|
2369
2422
|
"ForterAntiFraudOptionsCartItemBeneficiary": ".forterantifraudoptionscartitembeneficiary",
|
|
2370
2423
|
"ForterAntiFraudOptionsCartItemBeneficiaryTypedDict": ".forterantifraudoptionscartitembeneficiary",
|
|
2371
2424
|
"ForterAntiFraudOptionsCartItemBeneficiaryAddress": ".forterantifraudoptionscartitembeneficiaryaddress",
|
|
@@ -2492,11 +2545,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2492
2545
|
"GooglePaySessionTypedDict": ".googlepaysession",
|
|
2493
2546
|
"GooglePaySessionRequest": ".googlepaysessionrequest",
|
|
2494
2547
|
"GooglePaySessionRequestTypedDict": ".googlepaysessionrequest",
|
|
2495
|
-
"
|
|
2496
|
-
"
|
|
2497
|
-
"GuestBuyerOutput": ".guestbuyer_output",
|
|
2498
|
-
"GuestBuyerOutputTypedDict": ".guestbuyer_output",
|
|
2548
|
+
"GuestBuyer": ".guestbuyer",
|
|
2549
|
+
"GuestBuyerTypedDict": ".guestbuyer",
|
|
2499
2550
|
"InstrumentType": ".instrumenttype",
|
|
2551
|
+
"IntegrationClient": ".integrationclient",
|
|
2500
2552
|
"LatitudeOptions": ".latitudeoptions",
|
|
2501
2553
|
"LatitudeOptionsTypedDict": ".latitudeoptions",
|
|
2502
2554
|
"ListAllReportExecutionsGlobals": ".list_all_report_executionsop",
|
|
@@ -2604,10 +2656,16 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2604
2656
|
"ListReportsRequestTypedDict": ".list_reportsop",
|
|
2605
2657
|
"ListReportsResponse": ".list_reportsop",
|
|
2606
2658
|
"ListReportsResponseTypedDict": ".list_reportsop",
|
|
2659
|
+
"ListTransactionActionsGlobals": ".list_transaction_actionsop",
|
|
2660
|
+
"ListTransactionActionsGlobalsTypedDict": ".list_transaction_actionsop",
|
|
2661
|
+
"ListTransactionActionsRequest": ".list_transaction_actionsop",
|
|
2662
|
+
"ListTransactionActionsRequestTypedDict": ".list_transaction_actionsop",
|
|
2607
2663
|
"ListTransactionEventsGlobals": ".list_transaction_eventsop",
|
|
2608
2664
|
"ListTransactionEventsGlobalsTypedDict": ".list_transaction_eventsop",
|
|
2609
2665
|
"ListTransactionEventsRequest": ".list_transaction_eventsop",
|
|
2610
2666
|
"ListTransactionEventsRequestTypedDict": ".list_transaction_eventsop",
|
|
2667
|
+
"ListTransactionEventsResponse": ".list_transaction_eventsop",
|
|
2668
|
+
"ListTransactionEventsResponseTypedDict": ".list_transaction_eventsop",
|
|
2611
2669
|
"ListTransactionRefundsGlobals": ".list_transaction_refundsop",
|
|
2612
2670
|
"ListTransactionRefundsGlobalsTypedDict": ".list_transaction_refundsop",
|
|
2613
2671
|
"ListTransactionRefundsRequest": ".list_transaction_refundsop",
|
|
@@ -2642,6 +2700,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2642
2700
|
"MockCardOptions": ".mockcardoptions",
|
|
2643
2701
|
"MockCardOptionsTypedDict": ".mockcardoptions",
|
|
2644
2702
|
"Mode": ".mode",
|
|
2703
|
+
"MonatoSpeiOptions": ".monatospeioptions",
|
|
2704
|
+
"MonatoSpeiOptionsTypedDict": ".monatospeioptions",
|
|
2645
2705
|
"NetworkToken": ".networktoken",
|
|
2646
2706
|
"NetworkTokenTypedDict": ".networktoken",
|
|
2647
2707
|
"NetworkTokenCreate": ".networktokencreate",
|
|
@@ -2654,6 +2714,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2654
2714
|
"NetworkTokenStatus": ".networktokenstatus",
|
|
2655
2715
|
"NuveiAirlineDataOptions": ".nuveiairlinedataoptions",
|
|
2656
2716
|
"NuveiAirlineDataOptionsTypedDict": ".nuveiairlinedataoptions",
|
|
2717
|
+
"NuveiIDealOptions": ".nuveiidealoptions",
|
|
2718
|
+
"NuveiIDealOptionsTypedDict": ".nuveiidealoptions",
|
|
2657
2719
|
"NuveiOptions": ".nuveioptions",
|
|
2658
2720
|
"NuveiOptionsTypedDict": ".nuveioptions",
|
|
2659
2721
|
"NuveiPSEOptions": ".nuveipseoptions",
|
|
@@ -2662,7 +2724,6 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2662
2724
|
"OxxoOptionsTypedDict": ".oxxooptions",
|
|
2663
2725
|
"PaymentLink": ".paymentlink",
|
|
2664
2726
|
"PaymentLinkTypedDict": ".paymentlink",
|
|
2665
|
-
"Locale": ".paymentlinkcreate",
|
|
2666
2727
|
"PaymentLinkCreate": ".paymentlinkcreate",
|
|
2667
2728
|
"PaymentLinkCreateTypedDict": ".paymentlinkcreate",
|
|
2668
2729
|
"PaymentLinks": ".paymentlinks",
|
|
@@ -2740,6 +2801,15 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2740
2801
|
"PayoutSummaryTypedDict": ".payoutsummary",
|
|
2741
2802
|
"PaypalOptions": ".paypaloptions",
|
|
2742
2803
|
"PaypalOptionsTypedDict": ".paypaloptions",
|
|
2804
|
+
"PaypalShippingOptions": ".paypalshippingoptions",
|
|
2805
|
+
"PaypalShippingOptionsTypedDict": ".paypalshippingoptions",
|
|
2806
|
+
"PaypalShippingOptionsItem": ".paypalshippingoptionsitem",
|
|
2807
|
+
"PaypalShippingOptionsItemType": ".paypalshippingoptionsitem",
|
|
2808
|
+
"PaypalShippingOptionsItemTypedDict": ".paypalshippingoptionsitem",
|
|
2809
|
+
"PaypalShippingOptionsItemAmount": ".paypalshippingoptionsitemamount",
|
|
2810
|
+
"PaypalShippingOptionsItemAmountTypedDict": ".paypalshippingoptionsitemamount",
|
|
2811
|
+
"PlaidPaymentMethodCreate": ".plaidpaymentmethodcreate",
|
|
2812
|
+
"PlaidPaymentMethodCreateTypedDict": ".plaidpaymentmethodcreate",
|
|
2743
2813
|
"PowertranzOptions": ".powertranzoptions",
|
|
2744
2814
|
"PowertranzOptionsTypedDict": ".powertranzoptions",
|
|
2745
2815
|
"ProductType": ".producttype",
|
|
@@ -2839,6 +2909,10 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2839
2909
|
"TokenPaymentMethodCreateTypedDict": ".tokenpaymentmethodcreate",
|
|
2840
2910
|
"Transaction": ".transaction",
|
|
2841
2911
|
"TransactionTypedDict": ".transaction",
|
|
2912
|
+
"TransactionAction": ".transactionaction",
|
|
2913
|
+
"TransactionActionTypedDict": ".transactionaction",
|
|
2914
|
+
"TransactionActions": ".transactionactions",
|
|
2915
|
+
"TransactionActionsTypedDict": ".transactionactions",
|
|
2842
2916
|
"TransactionBuyer": ".transactionbuyer",
|
|
2843
2917
|
"TransactionBuyerTypedDict": ".transactionbuyer",
|
|
2844
2918
|
"TransactionCancel": ".transactioncancel",
|
gr4vy/models/adyencardoptions.py
CHANGED
|
@@ -4,10 +4,8 @@ from __future__ import annotations
|
|
|
4
4
|
from .adyencardautorescuescenariosenum import AdyenCardAutoRescueScenariosEnum
|
|
5
5
|
from .adyensplitsoptions import AdyenSplitsOptions, AdyenSplitsOptionsTypedDict
|
|
6
6
|
from gr4vy.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
|
7
|
-
from gr4vy.utils import validate_open_enum
|
|
8
7
|
import pydantic
|
|
9
8
|
from pydantic import model_serializer
|
|
10
|
-
from pydantic.functional_validators import PlainValidator
|
|
11
9
|
from typing import Dict
|
|
12
10
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
11
|
|
|
@@ -44,10 +42,7 @@ class AdyenCardOptions(BaseModel):
|
|
|
44
42
|
r"""Passes additional data to the Adyen API when creating a transaction."""
|
|
45
43
|
|
|
46
44
|
auto_rescue_scenario: Annotated[
|
|
47
|
-
|
|
48
|
-
OptionalNullable[AdyenCardAutoRescueScenariosEnum],
|
|
49
|
-
PlainValidator(validate_open_enum(False)),
|
|
50
|
-
],
|
|
45
|
+
OptionalNullable[AdyenCardAutoRescueScenariosEnum],
|
|
51
46
|
pydantic.Field(alias="autoRescueScenario"),
|
|
52
47
|
] = UNSET
|
|
53
48
|
r"""The rescue scenario to simulate for a transaction, when `autoRescue` is set to `true`."""
|
gr4vy/models/adyensepaoptions.py
CHANGED
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .adyenautorescuesepascenariosenum import AdyenAutoRescueSepaScenariosEnum
|
|
5
5
|
from gr4vy.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
|
6
|
-
from gr4vy.utils import validate_open_enum
|
|
7
6
|
import pydantic
|
|
8
7
|
from pydantic import model_serializer
|
|
9
|
-
from pydantic.functional_validators import PlainValidator
|
|
10
8
|
from typing import Dict
|
|
11
9
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
12
10
|
|
|
@@ -41,10 +39,7 @@ class AdyenSepaOptions(BaseModel):
|
|
|
41
39
|
r"""Passes additional data to the Adyen API when creating a transaction."""
|
|
42
40
|
|
|
43
41
|
auto_rescue_sepa_scenario: Annotated[
|
|
44
|
-
|
|
45
|
-
OptionalNullable[AdyenAutoRescueSepaScenariosEnum],
|
|
46
|
-
PlainValidator(validate_open_enum(False)),
|
|
47
|
-
],
|
|
42
|
+
OptionalNullable[AdyenAutoRescueSepaScenariosEnum],
|
|
48
43
|
pydantic.Field(alias="autoRescueSepaScenario"),
|
|
49
44
|
] = UNSET
|
|
50
45
|
r"""The rescue scenario to simulate for a transaction, when `autoRescue` is set to `true`."""
|
gr4vy/models/airline.py
CHANGED
|
@@ -12,11 +12,9 @@ from gr4vy.types import (
|
|
|
12
12
|
UNSET_SENTINEL,
|
|
13
13
|
UnrecognizedStr,
|
|
14
14
|
)
|
|
15
|
-
from gr4vy.utils import validate_open_enum
|
|
16
15
|
from pydantic import model_serializer
|
|
17
|
-
from pydantic.functional_validators import PlainValidator
|
|
18
16
|
from typing import List, Literal, Union
|
|
19
|
-
from typing_extensions import
|
|
17
|
+
from typing_extensions import NotRequired, TypedDict
|
|
20
18
|
|
|
21
19
|
|
|
22
20
|
TicketDeliveryMethod = Union[
|
|
@@ -113,10 +111,7 @@ class Airline(BaseModel):
|
|
|
113
111
|
restricted_ticket: OptionalNullable[bool] = UNSET
|
|
114
112
|
r"""Indicates whether the ticket is restricted (refundable)."""
|
|
115
113
|
|
|
116
|
-
ticket_delivery_method:
|
|
117
|
-
OptionalNullable[TicketDeliveryMethod],
|
|
118
|
-
PlainValidator(validate_open_enum(False)),
|
|
119
|
-
] = UNSET
|
|
114
|
+
ticket_delivery_method: OptionalNullable[TicketDeliveryMethod] = UNSET
|
|
120
115
|
r"""The delivery method of the ticket."""
|
|
121
116
|
|
|
122
117
|
ticket_number: OptionalNullable[str] = UNSET
|
gr4vy/models/airlineleg.py
CHANGED
|
@@ -10,11 +10,9 @@ from gr4vy.types import (
|
|
|
10
10
|
UNSET_SENTINEL,
|
|
11
11
|
UnrecognizedStr,
|
|
12
12
|
)
|
|
13
|
-
from gr4vy.utils import validate_open_enum
|
|
14
13
|
from pydantic import model_serializer
|
|
15
|
-
from pydantic.functional_validators import PlainValidator
|
|
16
14
|
from typing import Literal, Union
|
|
17
|
-
from typing_extensions import
|
|
15
|
+
from typing_extensions import NotRequired, TypedDict
|
|
18
16
|
|
|
19
17
|
|
|
20
18
|
RouteType = Union[
|
|
@@ -133,9 +131,7 @@ class AirlineLeg(BaseModel):
|
|
|
133
131
|
flight_number: OptionalNullable[str] = UNSET
|
|
134
132
|
r"""Unique identifier of the flight number."""
|
|
135
133
|
|
|
136
|
-
route_type:
|
|
137
|
-
OptionalNullable[RouteType], PlainValidator(validate_open_enum(False))
|
|
138
|
-
] = UNSET
|
|
134
|
+
route_type: OptionalNullable[RouteType] = UNSET
|
|
139
135
|
r"""The route type of the flight."""
|
|
140
136
|
|
|
141
137
|
seat_class: OptionalNullable[str] = UNSET
|
gr4vy/models/airlinepassenger.py
CHANGED
|
@@ -10,11 +10,9 @@ from gr4vy.types import (
|
|
|
10
10
|
UNSET_SENTINEL,
|
|
11
11
|
UnrecognizedStr,
|
|
12
12
|
)
|
|
13
|
-
from gr4vy.utils import validate_open_enum
|
|
14
13
|
from pydantic import model_serializer
|
|
15
|
-
from pydantic.functional_validators import PlainValidator
|
|
16
14
|
from typing import Literal, Union
|
|
17
|
-
from typing_extensions import
|
|
15
|
+
from typing_extensions import NotRequired, TypedDict
|
|
18
16
|
|
|
19
17
|
|
|
20
18
|
AgeGroup = Union[
|
|
@@ -52,9 +50,7 @@ class AirlinePassengerTypedDict(TypedDict):
|
|
|
52
50
|
|
|
53
51
|
|
|
54
52
|
class AirlinePassenger(BaseModel):
|
|
55
|
-
age_group:
|
|
56
|
-
OptionalNullable[AgeGroup], PlainValidator(validate_open_enum(False))
|
|
57
|
-
] = UNSET
|
|
53
|
+
age_group: OptionalNullable[AgeGroup] = UNSET
|
|
58
54
|
r"""The age group for the passenger."""
|
|
59
55
|
|
|
60
56
|
date_of_birth: OptionalNullable[date] = UNSET
|
gr4vy/models/auditlogentry.py
CHANGED
|
@@ -6,10 +6,10 @@ from .auditlogentryresource import AuditLogEntryResource, AuditLogEntryResourceT
|
|
|
6
6
|
from .auditlogentryuser import AuditLogEntryUser, AuditLogEntryUserTypedDict
|
|
7
7
|
from datetime import datetime
|
|
8
8
|
from gr4vy.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
|
9
|
-
from gr4vy.utils import validate_const
|
|
9
|
+
from gr4vy.utils import validate_const
|
|
10
10
|
import pydantic
|
|
11
11
|
from pydantic import model_serializer
|
|
12
|
-
from pydantic.functional_validators import AfterValidator
|
|
12
|
+
from pydantic.functional_validators import AfterValidator
|
|
13
13
|
from typing import Literal, Optional
|
|
14
14
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
15
|
|
|
@@ -31,7 +31,7 @@ class AuditLogEntryTypedDict(TypedDict):
|
|
|
31
31
|
class AuditLogEntry(BaseModel):
|
|
32
32
|
resource: AuditLogEntryResource
|
|
33
33
|
|
|
34
|
-
action:
|
|
34
|
+
action: AuditLogAction
|
|
35
35
|
|
|
36
36
|
user: AuditLogEntryUser
|
|
37
37
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .userstatus import UserStatus
|
|
5
5
|
from gr4vy.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
|
6
|
-
from gr4vy.utils import validate_const
|
|
6
|
+
from gr4vy.utils import validate_const
|
|
7
7
|
import pydantic
|
|
8
8
|
from pydantic import model_serializer
|
|
9
|
-
from pydantic.functional_validators import AfterValidator
|
|
9
|
+
from pydantic.functional_validators import AfterValidator
|
|
10
10
|
from typing import Literal, Optional
|
|
11
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
12
12
|
|
|
@@ -32,7 +32,7 @@ class AuditLogEntryUser(BaseModel):
|
|
|
32
32
|
is_staff: bool
|
|
33
33
|
r"""Whether this is a Gr4vy staff user."""
|
|
34
34
|
|
|
35
|
-
status:
|
|
35
|
+
status: UserStatus
|
|
36
36
|
|
|
37
37
|
TYPE: Annotated[
|
|
38
38
|
Annotated[Optional[Literal["user"]], AfterValidator(validate_const("user"))],
|
|
@@ -8,7 +8,7 @@ from pydantic import model_serializer
|
|
|
8
8
|
from typing_extensions import NotRequired, TypedDict
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class BillingDetailsTypedDict(TypedDict):
|
|
12
12
|
first_name: NotRequired[Nullable[str]]
|
|
13
13
|
r"""The first name(s) or given name for the buyer."""
|
|
14
14
|
last_name: NotRequired[Nullable[str]]
|
|
@@ -23,7 +23,7 @@ class BillingDetailsInputTypedDict(TypedDict):
|
|
|
23
23
|
r"""The tax ID information associated with the billing details."""
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class BillingDetails(BaseModel):
|
|
27
27
|
first_name: OptionalNullable[str] = UNSET
|
|
28
28
|
r"""The first name(s) or given name for the buyer."""
|
|
29
29
|
|
|
@@ -9,11 +9,9 @@ from gr4vy.types import (
|
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
UnrecognizedStr,
|
|
11
11
|
)
|
|
12
|
-
from gr4vy.utils import validate_open_enum
|
|
13
12
|
from pydantic import model_serializer
|
|
14
|
-
from pydantic.functional_validators import PlainValidator
|
|
15
13
|
from typing import Literal, Union
|
|
16
|
-
from typing_extensions import
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict
|
|
17
15
|
|
|
18
16
|
|
|
19
17
|
VaultPaymentMethodCriteria = Union[
|
|
@@ -41,10 +39,7 @@ class BraintreeDynamicDataFieldsOptions(BaseModel):
|
|
|
41
39
|
purchase_order_number: OptionalNullable[str] = UNSET
|
|
42
40
|
r"""Passes the `transaction.purchaseOrderNumber` field when creating a new transaction."""
|
|
43
41
|
|
|
44
|
-
vault_payment_method_criteria:
|
|
45
|
-
OptionalNullable[VaultPaymentMethodCriteria],
|
|
46
|
-
PlainValidator(validate_open_enum(False)),
|
|
47
|
-
] = UNSET
|
|
42
|
+
vault_payment_method_criteria: OptionalNullable[VaultPaymentMethodCriteria] = UNSET
|
|
48
43
|
r"""Passes the `vaultPaymentMethodCriteria` field when creating a new transaction."""
|
|
49
44
|
|
|
50
45
|
@model_serializer(mode="wrap")
|
gr4vy/models/browserinfo.py
CHANGED
|
@@ -9,11 +9,9 @@ from gr4vy.types import (
|
|
|
9
9
|
UNSET_SENTINEL,
|
|
10
10
|
UnrecognizedStr,
|
|
11
11
|
)
|
|
12
|
-
from gr4vy.utils import validate_open_enum
|
|
13
12
|
from pydantic import model_serializer
|
|
14
|
-
from pydantic.functional_validators import PlainValidator
|
|
15
13
|
from typing import Literal, Union
|
|
16
|
-
from typing_extensions import
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict
|
|
17
15
|
|
|
18
16
|
|
|
19
17
|
UserDevice = Union[
|
|
@@ -64,7 +62,7 @@ class BrowserInfo(BaseModel):
|
|
|
64
62
|
user_agent: str
|
|
65
63
|
r"""Exact content of the HTTP user-agent header."""
|
|
66
64
|
|
|
67
|
-
user_device:
|
|
65
|
+
user_device: UserDevice
|
|
68
66
|
r"""The platform that is being used to access the website."""
|
|
69
67
|
|
|
70
68
|
accept_header: OptionalNullable[str] = UNSET
|
gr4vy/models/buyer.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
4
|
+
from .billingdetails import BillingDetails, BillingDetailsTypedDict
|
|
5
5
|
from datetime import datetime
|
|
6
6
|
from gr4vy.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
|
7
7
|
from gr4vy.utils import validate_const
|
|
@@ -27,7 +27,7 @@ class BuyerTypedDict(TypedDict):
|
|
|
27
27
|
r"""The display name for the buyer."""
|
|
28
28
|
external_identifier: NotRequired[Nullable[str]]
|
|
29
29
|
r"""The merchant identifier for this buyer."""
|
|
30
|
-
billing_details: NotRequired[Nullable[
|
|
30
|
+
billing_details: NotRequired[Nullable[BillingDetailsTypedDict]]
|
|
31
31
|
r"""The billing name, address, email, and other fields for this buyer."""
|
|
32
32
|
account_number: NotRequired[Nullable[str]]
|
|
33
33
|
r"""The buyer account number"""
|
|
@@ -58,7 +58,7 @@ class Buyer(BaseModel):
|
|
|
58
58
|
external_identifier: OptionalNullable[str] = UNSET
|
|
59
59
|
r"""The merchant identifier for this buyer."""
|
|
60
60
|
|
|
61
|
-
billing_details: OptionalNullable[
|
|
61
|
+
billing_details: OptionalNullable[BillingDetails] = UNSET
|
|
62
62
|
r"""The billing name, address, email, and other fields for this buyer."""
|
|
63
63
|
|
|
64
64
|
account_number: OptionalNullable[str] = UNSET
|
gr4vy/models/buyercreate.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from .
|
|
4
|
+
from .billingdetails import BillingDetails, BillingDetailsTypedDict
|
|
5
5
|
from gr4vy.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
|
6
6
|
from pydantic import model_serializer
|
|
7
7
|
from typing_extensions import NotRequired, TypedDict
|
|
@@ -14,7 +14,7 @@ class BuyerCreateTypedDict(TypedDict):
|
|
|
14
14
|
r"""The display name for the buyer."""
|
|
15
15
|
external_identifier: NotRequired[Nullable[str]]
|
|
16
16
|
r"""The merchant identifier for this buyer."""
|
|
17
|
-
billing_details: NotRequired[Nullable[
|
|
17
|
+
billing_details: NotRequired[Nullable[BillingDetailsTypedDict]]
|
|
18
18
|
r"""The billing name, address, email, and other fields for this buyer."""
|
|
19
19
|
account_number: NotRequired[Nullable[str]]
|
|
20
20
|
r"""The buyer account number"""
|
|
@@ -29,7 +29,7 @@ class BuyerCreate(BaseModel):
|
|
|
29
29
|
external_identifier: OptionalNullable[str] = UNSET
|
|
30
30
|
r"""The merchant identifier for this buyer."""
|
|
31
31
|
|
|
32
|
-
billing_details: OptionalNullable[
|
|
32
|
+
billing_details: OptionalNullable[BillingDetails] = UNSET
|
|
33
33
|
r"""The billing name, address, email, and other fields for this buyer."""
|
|
34
34
|
|
|
35
35
|
account_number: OptionalNullable[str] = UNSET
|