gr4vy 1.10.4__py3-none-any.whl → 1.10.5__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.
Potentially problematic release.
This version of gr4vy might be problematic. Click here for more details.
- gr4vy/_version.py +3 -3
- gr4vy/models/__init__.py +5 -0
- gr4vy/models/chaseoptions.py +46 -0
- gr4vy/models/transactionconnectionoptions.py +10 -0
- gr4vy/models/trustlyoptions.py +2 -9
- {gr4vy-1.10.4.dist-info → gr4vy-1.10.5.dist-info}/METADATA +1 -1
- {gr4vy-1.10.4.dist-info → gr4vy-1.10.5.dist-info}/RECORD +8 -7
- {gr4vy-1.10.4.dist-info → gr4vy-1.10.5.dist-info}/WHEEL +0 -0
gr4vy/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "gr4vy"
|
|
6
|
-
__version__: str = "1.10.
|
|
6
|
+
__version__: str = "1.10.5"
|
|
7
7
|
__openapi_doc_version__: str = "1.0.0"
|
|
8
|
-
__gen_version__: str = "2.787.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 1.10.
|
|
8
|
+
__gen_version__: str = "2.787.5"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 1.10.5 2.787.5 1.0.0 gr4vy"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
gr4vy/models/__init__.py
CHANGED
|
@@ -128,6 +128,7 @@ if TYPE_CHECKING:
|
|
|
128
128
|
CardWithURLPaymentMethodCreateTypedDict,
|
|
129
129
|
)
|
|
130
130
|
from .cartitem import CartItem, CartItemTypedDict
|
|
131
|
+
from .chaseoptions import ChaseOptions, ChaseOptionsTypedDict
|
|
131
132
|
from .checkoutpayoutoptions import (
|
|
132
133
|
CheckoutPayoutOptions,
|
|
133
134
|
CheckoutPayoutOptionsTypedDict,
|
|
@@ -1285,6 +1286,8 @@ __all__ = [
|
|
|
1285
1286
|
"CardWithURLPaymentMethodCreateTypedDict",
|
|
1286
1287
|
"CartItem",
|
|
1287
1288
|
"CartItemTypedDict",
|
|
1289
|
+
"ChaseOptions",
|
|
1290
|
+
"ChaseOptionsTypedDict",
|
|
1288
1291
|
"CheckoutPayoutOptions",
|
|
1289
1292
|
"CheckoutPayoutOptionsTypedDict",
|
|
1290
1293
|
"CheckoutSession",
|
|
@@ -2200,6 +2203,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2200
2203
|
"CardWithURLPaymentMethodCreateTypedDict": ".cardwithurlpaymentmethodcreate",
|
|
2201
2204
|
"CartItem": ".cartitem",
|
|
2202
2205
|
"CartItemTypedDict": ".cartitem",
|
|
2206
|
+
"ChaseOptions": ".chaseoptions",
|
|
2207
|
+
"ChaseOptionsTypedDict": ".chaseoptions",
|
|
2203
2208
|
"CheckoutPayoutOptions": ".checkoutpayoutoptions",
|
|
2204
2209
|
"CheckoutPayoutOptionsTypedDict": ".checkoutpayoutoptions",
|
|
2205
2210
|
"CheckoutSession": ".checkoutsession",
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from gr4vy.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
|
|
5
|
+
from pydantic import model_serializer
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ChaseOptionsTypedDict(TypedDict):
|
|
10
|
+
comments: NotRequired[Nullable[str]]
|
|
11
|
+
r"""Custom order comment"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ChaseOptions(BaseModel):
|
|
15
|
+
comments: OptionalNullable[str] = UNSET
|
|
16
|
+
r"""Custom order comment"""
|
|
17
|
+
|
|
18
|
+
@model_serializer(mode="wrap")
|
|
19
|
+
def serialize_model(self, handler):
|
|
20
|
+
optional_fields = ["comments"]
|
|
21
|
+
nullable_fields = ["comments"]
|
|
22
|
+
null_default_fields = []
|
|
23
|
+
|
|
24
|
+
serialized = handler(self)
|
|
25
|
+
|
|
26
|
+
m = {}
|
|
27
|
+
|
|
28
|
+
for n, f in type(self).model_fields.items():
|
|
29
|
+
k = f.alias or n
|
|
30
|
+
val = serialized.get(k)
|
|
31
|
+
serialized.pop(k, None)
|
|
32
|
+
|
|
33
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
34
|
+
is_set = (
|
|
35
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
36
|
+
or k in null_default_fields
|
|
37
|
+
) # pylint: disable=no-member
|
|
38
|
+
|
|
39
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
40
|
+
m[k] = val
|
|
41
|
+
elif val != UNSET_SENTINEL and (
|
|
42
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
43
|
+
):
|
|
44
|
+
m[k] = val
|
|
45
|
+
|
|
46
|
+
return m
|
|
@@ -7,6 +7,7 @@ from .adyenoptions import AdyenOptions, AdyenOptionsTypedDict
|
|
|
7
7
|
from .adyensepaoptions import AdyenSepaOptions, AdyenSepaOptionsTypedDict
|
|
8
8
|
from .affirmoptions import AffirmOptions, AffirmOptionsTypedDict
|
|
9
9
|
from .braintreeoptions import BraintreeOptions, BraintreeOptionsTypedDict
|
|
10
|
+
from .chaseoptions import ChaseOptions, ChaseOptionsTypedDict
|
|
10
11
|
from .cybersourceantifraudoptions import (
|
|
11
12
|
CybersourceAntiFraudOptions,
|
|
12
13
|
CybersourceAntiFraudOptionsTypedDict,
|
|
@@ -66,6 +67,8 @@ class TransactionConnectionOptionsTypedDict(TypedDict):
|
|
|
66
67
|
r"""Custom options to be passed to the `affirm-affirm` connector."""
|
|
67
68
|
braintree_card: NotRequired[Nullable[BraintreeOptionsTypedDict]]
|
|
68
69
|
r"""Custom options to be passed to the `braintree-card` connector."""
|
|
70
|
+
chaseorbital_card: NotRequired[Nullable[ChaseOptionsTypedDict]]
|
|
71
|
+
r"""Custom options to be passed to the `chaseorbital-card` connector."""
|
|
69
72
|
cybersource_anti_fraud: NotRequired[Nullable[CybersourceAntiFraudOptionsTypedDict]]
|
|
70
73
|
r"""Custom options to be passed to the `cybersource-anti-fraud` connector."""
|
|
71
74
|
cybersource_card: NotRequired[Nullable[CybersourceOptionsTypedDict]]
|
|
@@ -187,6 +190,11 @@ class TransactionConnectionOptions(BaseModel):
|
|
|
187
190
|
] = UNSET
|
|
188
191
|
r"""Custom options to be passed to the `braintree-card` connector."""
|
|
189
192
|
|
|
193
|
+
chaseorbital_card: Annotated[
|
|
194
|
+
OptionalNullable[ChaseOptions], pydantic.Field(alias="chaseorbital-card")
|
|
195
|
+
] = UNSET
|
|
196
|
+
r"""Custom options to be passed to the `chaseorbital-card` connector."""
|
|
197
|
+
|
|
190
198
|
cybersource_anti_fraud: Annotated[
|
|
191
199
|
OptionalNullable[CybersourceAntiFraudOptions],
|
|
192
200
|
pydantic.Field(alias="cybersource-anti-fraud"),
|
|
@@ -352,6 +360,7 @@ class TransactionConnectionOptions(BaseModel):
|
|
|
352
360
|
"adyen-vipps",
|
|
353
361
|
"affirm-affirm",
|
|
354
362
|
"braintree-card",
|
|
363
|
+
"chaseorbital-card",
|
|
355
364
|
"cybersource-anti-fraud",
|
|
356
365
|
"cybersource-card",
|
|
357
366
|
"cybersource-ideal",
|
|
@@ -395,6 +404,7 @@ class TransactionConnectionOptions(BaseModel):
|
|
|
395
404
|
"adyen-vipps",
|
|
396
405
|
"affirm-affirm",
|
|
397
406
|
"braintree-card",
|
|
407
|
+
"chaseorbital-card",
|
|
398
408
|
"cybersource-anti-fraud",
|
|
399
409
|
"cybersource-card",
|
|
400
410
|
"cybersource-ideal",
|
gr4vy/models/trustlyoptions.py
CHANGED
|
@@ -10,8 +10,6 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
10
10
|
class TrustlyOptionsTypedDict(TypedDict):
|
|
11
11
|
refresh_split_token: NotRequired[Nullable[bool]]
|
|
12
12
|
r"""Indicates to Gr4vy whether or not the stored Trustly agreement needs refreshing."""
|
|
13
|
-
url_scheme: NotRequired[Nullable[str]]
|
|
14
|
-
r"""URL scheme for an app."""
|
|
15
13
|
|
|
16
14
|
|
|
17
15
|
class TrustlyOptions(BaseModel):
|
|
@@ -20,15 +18,10 @@ class TrustlyOptions(BaseModel):
|
|
|
20
18
|
] = UNSET
|
|
21
19
|
r"""Indicates to Gr4vy whether or not the stored Trustly agreement needs refreshing."""
|
|
22
20
|
|
|
23
|
-
url_scheme: Annotated[OptionalNullable[str], pydantic.Field(alias="urlScheme")] = (
|
|
24
|
-
UNSET
|
|
25
|
-
)
|
|
26
|
-
r"""URL scheme for an app."""
|
|
27
|
-
|
|
28
21
|
@model_serializer(mode="wrap")
|
|
29
22
|
def serialize_model(self, handler):
|
|
30
|
-
optional_fields = ["refreshSplitToken"
|
|
31
|
-
nullable_fields = ["refreshSplitToken"
|
|
23
|
+
optional_fields = ["refreshSplitToken"]
|
|
24
|
+
nullable_fields = ["refreshSplitToken"]
|
|
32
25
|
null_default_fields = []
|
|
33
26
|
|
|
34
27
|
serialized = handler(self)
|
|
@@ -2,7 +2,7 @@ gr4vy/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,401
|
|
|
2
2
|
gr4vy/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,118
|
|
3
3
|
gr4vy/_hooks/sdkhooks.py,sha256=3jKTs2B1lcAxBMJge9C-qL0RGbKGLcrHvikzi67Tbdo,2493
|
|
4
4
|
gr4vy/_hooks/types.py,sha256=0O7dbbolkiFAnHkNULvwoLsiXJu0_Wmhev163bvZbW8,3039
|
|
5
|
-
gr4vy/_version.py,sha256=
|
|
5
|
+
gr4vy/_version.py,sha256=_O_ETevWbGjY38YriYEBPoBCfT80fSMz-VRXODHZmaE,454
|
|
6
6
|
gr4vy/account_updater.py,sha256=mmTd25Oap80PBqQ3p4MvZ_buT5VS0zWc8s8cqfI7iyA,607
|
|
7
7
|
gr4vy/all.py,sha256=dSRtcZcQ7gc9MYmgUFdExz077A5UjbLns7Zg48BQPtg,15248
|
|
8
8
|
gr4vy/audit_logs.py,sha256=xbdj2X5OfgDu8SE5yk8aRlJcNlU-k7AZRFTQMGJGGVM,17159
|
|
@@ -40,7 +40,7 @@ gr4vy/gift_cards_sdk.py,sha256=Jbd6p4M8u-_n2y727-uD-7FuQcnV1a2xy4eOacUznCY,57715
|
|
|
40
40
|
gr4vy/httpclient.py,sha256=dqTPONDBpRn4ktXfcetQiRXnG93f0pJkFhqsYFhLUac,3945
|
|
41
41
|
gr4vy/jobs.py,sha256=tJe0qDHFSNbZgUL9r3AkyVVmkxszX2Qw8N8SkhvRDgo,14641
|
|
42
42
|
gr4vy/merchant_accounts_sdk.py,sha256=wBpZs-xeBU5ro32k-tkDgPPYmpMsA_DgjBQfmEsFZrs,82551
|
|
43
|
-
gr4vy/models/__init__.py,sha256=
|
|
43
|
+
gr4vy/models/__init__.py,sha256=ykv-YuZPvmCt6LvzyFh89Ry2UfKd0H1Sz9mzOdRRrXQ,135076
|
|
44
44
|
gr4vy/models/accountsreceivablesreportspec.py,sha256=X4YKJ5TII4KFi1I47BYt1Egxsfs84EaqXsb7g90IpLw,1012
|
|
45
45
|
gr4vy/models/accountupdaterinquirysummary.py,sha256=rOJn5uG7cNFUkd6BbsAve6ueUlAJzU5_d_zeDu6RBTg,1097
|
|
46
46
|
gr4vy/models/accountupdaterjob.py,sha256=JKuRwrc5yYSAQ9lD5Ta4MALtfXBF7tn_37lllQsH2B0,1972
|
|
@@ -91,6 +91,7 @@ gr4vy/models/cardschemedefinitions.py,sha256=rFbZPBCYXCXltVYffBpjbck5VHSq44rALhf
|
|
|
91
91
|
gr4vy/models/cardtype.py,sha256=NKubknj2_Bps4G8-TEZC3sOjpeKRGX42R3eXmmyzR2I,299
|
|
92
92
|
gr4vy/models/cardwithurlpaymentmethodcreate.py,sha256=-wb5hnuwpgpG9PGDIapbHuqYZibKfTojiP1S0DuXL88,3934
|
|
93
93
|
gr4vy/models/cartitem.py,sha256=5zyz-nkvAuA3MoXjVfE_OZ0onbgZCxcCuC8TWEbTxqg,8010
|
|
94
|
+
gr4vy/models/chaseoptions.py,sha256=8PpuwAxezkFy6p0cpsfwdsHkV0u3x4dqHzoVvLc9htY,1420
|
|
94
95
|
gr4vy/models/checkoutpayoutoptions.py,sha256=TVvoTLsY4NYo6MJyEDEPZIU7FWodTvo-H-LfGdDiUtY,638
|
|
95
96
|
gr4vy/models/checkoutsession.py,sha256=rSODmOZ0537xPxRjLOMewzxjdeqKQBpn9F5QdoD-QdY,5371
|
|
96
97
|
gr4vy/models/checkoutsessioncreate.py,sha256=5bnHldhHGe29la_RFvItf7WTZyewmZN6Aepby9KkYOI,4297
|
|
@@ -355,7 +356,7 @@ gr4vy/models/transactionbuyer.py,sha256=eSEbXcZMur5RmSWHLlW6W_Gqg8mIv9Rfrjn6J00k
|
|
|
355
356
|
gr4vy/models/transactioncancel.py,sha256=OHP0xmmM374aaYXPeV0G2fZn5RRfxbTAzJnNospfCas,3162
|
|
356
357
|
gr4vy/models/transactioncapture.py,sha256=7WD3uoUyDJ1sejtjIb7b5B5BFtpKEi7KkegVtB0DLTg,3174
|
|
357
358
|
gr4vy/models/transactioncapturecreate.py,sha256=Hs8tTi8iG3xUBptznKHfUD7rvcGZX0OwDzpXOBegd8E,2188
|
|
358
|
-
gr4vy/models/transactionconnectionoptions.py,sha256=
|
|
359
|
+
gr4vy/models/transactionconnectionoptions.py,sha256=peSwyZ-6A9a389rUB8QM3R2VX21faHwD51BR2cKNOhU,20532
|
|
359
360
|
gr4vy/models/transactioncreate.py,sha256=HWsWkpdYUVdbrUfbjagwrKVuvp4BrWcQofZQ8cxVI_Y,27526
|
|
360
361
|
gr4vy/models/transactionevent.py,sha256=206mMW32EO7Fpyah2r8_Skw4Cpl-MgVPCzBTz4e-PYI,3902
|
|
361
362
|
gr4vy/models/transactionevents.py,sha256=5l2Yc69SMePDlFtcby4i3BxGBkbT62SWQf4X5Xvfypw,2210
|
|
@@ -377,7 +378,7 @@ gr4vy/models/transactionupdate.py,sha256=BnCR-1aNA40v0L0ayps0NtiSSclYh6Zhvi4Py1G
|
|
|
377
378
|
gr4vy/models/transactionvoid.py,sha256=z0Rk_1Yrq9zT79UDbJt7OyG_fILUHCcY0p0C9b5Si70,3138
|
|
378
379
|
gr4vy/models/travelhubcustomdata.py,sha256=qVMavG75E8LRhu-FlNNuu_I863VWYCUp29XH7NjOlqk,1690
|
|
379
380
|
gr4vy/models/travelhuboptions.py,sha256=KAg0lkauHtpiwRueJWqzpp9T2Dh1EiVgU4cF8PAkqIg,2062
|
|
380
|
-
gr4vy/models/trustlyoptions.py,sha256=
|
|
381
|
+
gr4vy/models/trustlyoptions.py,sha256=SRaY8jG5ZJnr3jq5UnQLY7JaMei5RW8STUaeytvIZ2o,1681
|
|
381
382
|
gr4vy/models/unregister_digital_wallet_domainop.py,sha256=Smnqsxxfn7TPXQeUm_Zkk34yMUF_4ehBkmkMnALqxac,1821
|
|
382
383
|
gr4vy/models/update_buyer_shipping_detailsop.py,sha256=9TirpUXVF_vLAmnD3iCxgloQTOaG0J12_03YFsQs0SA,2191
|
|
383
384
|
gr4vy/models/update_buyerop.py,sha256=ep8B9zX537-eryV-WCPs4QAO6c6eZOwBmjUi-rR5-SY,1753
|
|
@@ -438,6 +439,6 @@ gr4vy/utils/unmarshal_json_response.py,sha256=G4h8gLOK09kjhPiUZjgIMm6zntcbxpvb_m
|
|
|
438
439
|
gr4vy/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
439
440
|
gr4vy/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
440
441
|
gr4vy/webhooks.py,sha256=2L-ZhdK-XU2X0AkVqgZvhfRqDCKUVs7R4UNCmZJR78w,1359
|
|
441
|
-
gr4vy-1.10.
|
|
442
|
-
gr4vy-1.10.
|
|
443
|
-
gr4vy-1.10.
|
|
442
|
+
gr4vy-1.10.5.dist-info/METADATA,sha256=z27BfBIupmdFsikTr14KYm_qILvKWB-dG7kmmtnF2xk,44066
|
|
443
|
+
gr4vy-1.10.5.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
444
|
+
gr4vy-1.10.5.dist-info/RECORD,,
|
|
File without changes
|