gr4vy 1.6.4__py3-none-any.whl → 1.6.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 +2 -2
- gr4vy/models/__init__.py +8 -0
- gr4vy/models/create_payment_methodop.py +6 -0
- gr4vy/models/plaidpaymentmethodcreate.py +99 -0
- gr4vy/models/transactioncreate.py +6 -0
- {gr4vy-1.6.4.dist-info → gr4vy-1.6.5.dist-info}/METADATA +1 -1
- {gr4vy-1.6.4.dist-info → gr4vy-1.6.5.dist-info}/RECORD +8 -7
- {gr4vy-1.6.4.dist-info → gr4vy-1.6.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.6.
|
|
6
|
+
__version__: str = "1.6.5"
|
|
7
7
|
__openapi_doc_version__: str = "1.0.0"
|
|
8
8
|
__gen_version__: str = "2.731.6"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 1.6.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 1.6.5 2.731.6 1.0.0 gr4vy"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
gr4vy/models/__init__.py
CHANGED
|
@@ -915,6 +915,10 @@ if TYPE_CHECKING:
|
|
|
915
915
|
PaypalShippingOptionsItemAmount,
|
|
916
916
|
PaypalShippingOptionsItemAmountTypedDict,
|
|
917
917
|
)
|
|
918
|
+
from .plaidpaymentmethodcreate import (
|
|
919
|
+
PlaidPaymentMethodCreate,
|
|
920
|
+
PlaidPaymentMethodCreateTypedDict,
|
|
921
|
+
)
|
|
918
922
|
from .powertranzoptions import PowertranzOptions, PowertranzOptionsTypedDict
|
|
919
923
|
from .producttype import ProductType
|
|
920
924
|
from .recipient import Recipient, RecipientTypedDict
|
|
@@ -1867,6 +1871,8 @@ __all__ = [
|
|
|
1867
1871
|
"PaypalShippingOptionsItemType",
|
|
1868
1872
|
"PaypalShippingOptionsItemTypedDict",
|
|
1869
1873
|
"PaypalShippingOptionsTypedDict",
|
|
1874
|
+
"PlaidPaymentMethodCreate",
|
|
1875
|
+
"PlaidPaymentMethodCreateTypedDict",
|
|
1870
1876
|
"PowertranzOptions",
|
|
1871
1877
|
"PowertranzOptionsTypedDict",
|
|
1872
1878
|
"ProductType",
|
|
@@ -2784,6 +2790,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2784
2790
|
"PaypalShippingOptionsItemTypedDict": ".paypalshippingoptionsitem",
|
|
2785
2791
|
"PaypalShippingOptionsItemAmount": ".paypalshippingoptionsitemamount",
|
|
2786
2792
|
"PaypalShippingOptionsItemAmountTypedDict": ".paypalshippingoptionsitemamount",
|
|
2793
|
+
"PlaidPaymentMethodCreate": ".plaidpaymentmethodcreate",
|
|
2794
|
+
"PlaidPaymentMethodCreateTypedDict": ".plaidpaymentmethodcreate",
|
|
2787
2795
|
"PowertranzOptions": ".powertranzoptions",
|
|
2788
2796
|
"PowertranzOptionsTypedDict": ".powertranzoptions",
|
|
2789
2797
|
"ProductType": ".producttype",
|
|
@@ -9,6 +9,10 @@ from .checkoutsessionpaymentmethodcreate import (
|
|
|
9
9
|
CheckoutSessionPaymentMethodCreate,
|
|
10
10
|
CheckoutSessionPaymentMethodCreateTypedDict,
|
|
11
11
|
)
|
|
12
|
+
from .plaidpaymentmethodcreate import (
|
|
13
|
+
PlaidPaymentMethodCreate,
|
|
14
|
+
PlaidPaymentMethodCreateTypedDict,
|
|
15
|
+
)
|
|
12
16
|
from .redirectpaymentmethodcreate import (
|
|
13
17
|
RedirectPaymentMethodCreate,
|
|
14
18
|
RedirectPaymentMethodCreateTypedDict,
|
|
@@ -38,6 +42,7 @@ BodyTypedDict = TypeAliasType(
|
|
|
38
42
|
"BodyTypedDict",
|
|
39
43
|
Union[
|
|
40
44
|
CheckoutSessionPaymentMethodCreateTypedDict,
|
|
45
|
+
PlaidPaymentMethodCreateTypedDict,
|
|
41
46
|
RedirectPaymentMethodCreateTypedDict,
|
|
42
47
|
CardPaymentMethodCreateTypedDict,
|
|
43
48
|
],
|
|
@@ -48,6 +53,7 @@ Body = TypeAliasType(
|
|
|
48
53
|
"Body",
|
|
49
54
|
Union[
|
|
50
55
|
CheckoutSessionPaymentMethodCreate,
|
|
56
|
+
PlaidPaymentMethodCreate,
|
|
51
57
|
RedirectPaymentMethodCreate,
|
|
52
58
|
CardPaymentMethodCreate,
|
|
53
59
|
],
|
|
@@ -0,0 +1,99 @@
|
|
|
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 gr4vy.utils import validate_const
|
|
6
|
+
import pydantic
|
|
7
|
+
from pydantic import model_serializer
|
|
8
|
+
from pydantic.functional_validators import AfterValidator
|
|
9
|
+
from typing import Literal, Optional
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class PlaidPaymentMethodCreateTypedDict(TypedDict):
|
|
14
|
+
r"""Plaid Payment Method
|
|
15
|
+
|
|
16
|
+
Plaid Payment Method to use in a transaction.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
token: str
|
|
20
|
+
r"""The public token obtained after using Plaid Link."""
|
|
21
|
+
method: Literal["plaid"]
|
|
22
|
+
r"""Always `plaid`."""
|
|
23
|
+
account_id: NotRequired[Nullable[str]]
|
|
24
|
+
r"""The Plaid account ID corresponding to the end-user account. If not provided will be fetched from Plaid API expecting to only have one."""
|
|
25
|
+
payment_service_id: NotRequired[Nullable[str]]
|
|
26
|
+
r"""The ID of the Plaid payment service related to the provided public token. If not provided will be fetched from the currently active expecting to have a single one."""
|
|
27
|
+
buyer_id: NotRequired[Nullable[str]]
|
|
28
|
+
r"""The ID of the buyer to attach the method to."""
|
|
29
|
+
buyer_external_identifier: NotRequired[Nullable[str]]
|
|
30
|
+
r"""The merchant reference for this payment method."""
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class PlaidPaymentMethodCreate(BaseModel):
|
|
34
|
+
r"""Plaid Payment Method
|
|
35
|
+
|
|
36
|
+
Plaid Payment Method to use in a transaction.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
token: str
|
|
40
|
+
r"""The public token obtained after using Plaid Link."""
|
|
41
|
+
|
|
42
|
+
METHOD: Annotated[
|
|
43
|
+
Annotated[Optional[Literal["plaid"]], AfterValidator(validate_const("plaid"))],
|
|
44
|
+
pydantic.Field(alias="method"),
|
|
45
|
+
] = "plaid"
|
|
46
|
+
r"""Always `plaid`."""
|
|
47
|
+
|
|
48
|
+
account_id: OptionalNullable[str] = UNSET
|
|
49
|
+
r"""The Plaid account ID corresponding to the end-user account. If not provided will be fetched from Plaid API expecting to only have one."""
|
|
50
|
+
|
|
51
|
+
payment_service_id: OptionalNullable[str] = UNSET
|
|
52
|
+
r"""The ID of the Plaid payment service related to the provided public token. If not provided will be fetched from the currently active expecting to have a single one."""
|
|
53
|
+
|
|
54
|
+
buyer_id: OptionalNullable[str] = UNSET
|
|
55
|
+
r"""The ID of the buyer to attach the method to."""
|
|
56
|
+
|
|
57
|
+
buyer_external_identifier: OptionalNullable[str] = UNSET
|
|
58
|
+
r"""The merchant reference for this payment method."""
|
|
59
|
+
|
|
60
|
+
@model_serializer(mode="wrap")
|
|
61
|
+
def serialize_model(self, handler):
|
|
62
|
+
optional_fields = [
|
|
63
|
+
"method",
|
|
64
|
+
"account_id",
|
|
65
|
+
"payment_service_id",
|
|
66
|
+
"buyer_id",
|
|
67
|
+
"buyer_external_identifier",
|
|
68
|
+
]
|
|
69
|
+
nullable_fields = [
|
|
70
|
+
"account_id",
|
|
71
|
+
"payment_service_id",
|
|
72
|
+
"buyer_id",
|
|
73
|
+
"buyer_external_identifier",
|
|
74
|
+
]
|
|
75
|
+
null_default_fields = []
|
|
76
|
+
|
|
77
|
+
serialized = handler(self)
|
|
78
|
+
|
|
79
|
+
m = {}
|
|
80
|
+
|
|
81
|
+
for n, f in type(self).model_fields.items():
|
|
82
|
+
k = f.alias or n
|
|
83
|
+
val = serialized.get(k)
|
|
84
|
+
serialized.pop(k, None)
|
|
85
|
+
|
|
86
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
87
|
+
is_set = (
|
|
88
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
89
|
+
or k in null_default_fields
|
|
90
|
+
) # pylint: disable=no-member
|
|
91
|
+
|
|
92
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
93
|
+
m[k] = val
|
|
94
|
+
elif val != UNSET_SENTINEL and (
|
|
95
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
96
|
+
):
|
|
97
|
+
m[k] = val
|
|
98
|
+
|
|
99
|
+
return m
|
|
@@ -46,6 +46,10 @@ from .networktokenpaymentmethodcreate import (
|
|
|
46
46
|
NetworkTokenPaymentMethodCreate,
|
|
47
47
|
NetworkTokenPaymentMethodCreateTypedDict,
|
|
48
48
|
)
|
|
49
|
+
from .plaidpaymentmethodcreate import (
|
|
50
|
+
PlaidPaymentMethodCreate,
|
|
51
|
+
PlaidPaymentMethodCreateTypedDict,
|
|
52
|
+
)
|
|
49
53
|
from .recipient import Recipient, RecipientTypedDict
|
|
50
54
|
from .redirectpaymentmethodcreate import (
|
|
51
55
|
RedirectPaymentMethodCreate,
|
|
@@ -76,6 +80,7 @@ TransactionCreatePaymentMethodTypedDict = TypeAliasType(
|
|
|
76
80
|
"TransactionCreatePaymentMethodTypedDict",
|
|
77
81
|
Union[
|
|
78
82
|
TokenPaymentMethodCreateTypedDict,
|
|
83
|
+
PlaidPaymentMethodCreateTypedDict,
|
|
79
84
|
CheckoutSessionWithURLPaymentMethodCreateTypedDict,
|
|
80
85
|
RedirectPaymentMethodCreateTypedDict,
|
|
81
86
|
ClickToPayPaymentMethodCreateTypedDict,
|
|
@@ -94,6 +99,7 @@ TransactionCreatePaymentMethod = TypeAliasType(
|
|
|
94
99
|
"TransactionCreatePaymentMethod",
|
|
95
100
|
Union[
|
|
96
101
|
TokenPaymentMethodCreate,
|
|
102
|
+
PlaidPaymentMethodCreate,
|
|
97
103
|
CheckoutSessionWithURLPaymentMethodCreate,
|
|
98
104
|
RedirectPaymentMethodCreate,
|
|
99
105
|
ClickToPayPaymentMethodCreate,
|
|
@@ -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=YJOH_kVhqNEuzMqoyX9a3QzeTDXX6OW4ZiSTuEwi288,452
|
|
6
6
|
gr4vy/account_updater.py,sha256=mmTd25Oap80PBqQ3p4MvZ_buT5VS0zWc8s8cqfI7iyA,607
|
|
7
7
|
gr4vy/all.py,sha256=jZtRqz8D1xGrylI95KA2XNwWLVAID1o_AYxA9wpXTzs,15176
|
|
8
8
|
gr4vy/audit_logs.py,sha256=U16uKNF7H514ZBM0cAeSz2U2JT4P-SPGIJU6d6KOH34,17087
|
|
@@ -40,7 +40,7 @@ gr4vy/gift_cards_sdk.py,sha256=bVotXOI7TX5r32YIivU2_6eANtXdekxYbqeYK8MdzGA,57427
|
|
|
40
40
|
gr4vy/httpclient.py,sha256=dqTPONDBpRn4ktXfcetQiRXnG93f0pJkFhqsYFhLUac,3945
|
|
41
41
|
gr4vy/jobs.py,sha256=-UcByXMOnDc5cEiaBaXB_0S5eT2WdRWYcytE2p2j8WE,14569
|
|
42
42
|
gr4vy/merchant_accounts_sdk.py,sha256=tGPWxXP7IOKeZ1Gh8LJ4yTpkSnsL-C56aXKfTCf4z9E,82263
|
|
43
|
-
gr4vy/models/__init__.py,sha256=
|
|
43
|
+
gr4vy/models/__init__.py,sha256=nsHepCMzEbkZFzgDYNl8E_tKQwuDPm7ODGTc22wdufI,135562
|
|
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
|
|
@@ -113,7 +113,7 @@ gr4vy/models/create_google_pay_digital_wallet_sessionop.py,sha256=V9gW3w6MuQaQs1
|
|
|
113
113
|
gr4vy/models/create_payment_method_network_token_cryptogramop.py,sha256=5zvjMjNa-l_3JxarzBPhi_SdAVDfSWcaQCZ5XDsjjbw,2152
|
|
114
114
|
gr4vy/models/create_payment_method_network_tokenop.py,sha256=hlGlYp8PNEN8F4EBS_lTQWvy5uRo6VwqDWS9i67nvXw,1902
|
|
115
115
|
gr4vy/models/create_payment_method_payment_service_tokenop.py,sha256=jCfHSkq9p3xXGskN3DKvu5_2aBjyTCfwe5LRQam0Ueo,1994
|
|
116
|
-
gr4vy/models/create_payment_methodop.py,sha256=
|
|
116
|
+
gr4vy/models/create_payment_methodop.py,sha256=P6nWHpHABPaJWlBsRW0rQhdf94KoiG2gscuk99MtoBY,2415
|
|
117
117
|
gr4vy/models/create_payment_service_definition_sessionop.py,sha256=3eabWTaVZUihnEv9LEZ6UnjCM5i-bwKAdkKyEnOx0WM,780
|
|
118
118
|
gr4vy/models/create_payment_service_sessionop.py,sha256=MxkcRuCzwso_Z-i5iFht0d5HNRSJULdf0worMFyUfpc,1788
|
|
119
119
|
gr4vy/models/create_payment_serviceop.py,sha256=GXk91h_GkGn4XrTDX-xn2wjUVLDHcWTgcKkVB5Hw4u8,1876
|
|
@@ -301,6 +301,7 @@ gr4vy/models/paypaloptions.py,sha256=aY81ZsVtUgXnGmzSxWoHI3KhMs-_gCZpA6hjbS7sFB8
|
|
|
301
301
|
gr4vy/models/paypalshippingoptions.py,sha256=85pRPBHzUzhNnoF8sFRjaQ2d64-hIXr-AMDj6z1FUZQ,1787
|
|
302
302
|
gr4vy/models/paypalshippingoptionsitem.py,sha256=Q09suxnZ3fIxUpOuyGpNljfPfFKoq82V0L0-Wyt7rSI,3424
|
|
303
303
|
gr4vy/models/paypalshippingoptionsitemamount.py,sha256=YuROvTE2ngGuHajoRnIRY3NwSr3mtADnHes3Xao2llA,608
|
|
304
|
+
gr4vy/models/plaidpaymentmethodcreate.py,sha256=toULZY1sWb-7gqsUaCI2h1MjeNOpM7QovBYG0_O9MTo,3581
|
|
304
305
|
gr4vy/models/powertranzoptions.py,sha256=ZJAZVTggH_fMMwvMlNvJGe0RpLcASaWBmH5Ln7SgxrU,1692
|
|
305
306
|
gr4vy/models/producttype.py,sha256=qsHybq-2rssJDt3greV0fng-wnHKVaFWGMvf3-52u70,418
|
|
306
307
|
gr4vy/models/recipient.py,sha256=ORw0V4wDt3ytidIDj0Dmut92naYoRkMznh0LKuK17Rs,2568
|
|
@@ -355,7 +356,7 @@ gr4vy/models/transactioncancel.py,sha256=KIptVtqlwZmoWhB0XgjJfNJS6u1q9Y8o2OH8Mq-
|
|
|
355
356
|
gr4vy/models/transactioncapture_output.py,sha256=PIMt4SUkooYkZKt5k15Z-CdXHu3RBCL9Uez5RaOqEn4,3217
|
|
356
357
|
gr4vy/models/transactioncapturecreate.py,sha256=Hs8tTi8iG3xUBptznKHfUD7rvcGZX0OwDzpXOBegd8E,2188
|
|
357
358
|
gr4vy/models/transactionconnectionoptions.py,sha256=w0hd7aV9Byy8BrN8qhSbygoiafOzX3A8q9tMZ95WMTI,19123
|
|
358
|
-
gr4vy/models/transactioncreate.py,sha256=
|
|
359
|
+
gr4vy/models/transactioncreate.py,sha256=jOCtjiWbnIYDHyrSFC5LUdpwGosFdJppzLgoz039QM4,27262
|
|
359
360
|
gr4vy/models/transactionevent_output.py,sha256=Hj_pdhLQ-pgm3f6nD9NR9GLXKQRn0o3F80_29zMN8T8,3883
|
|
360
361
|
gr4vy/models/transactionevents.py,sha256=BIzlBBLSuci0j_k_HjJaK1QpKBhuqZkkaq1zbPHG6x0,2254
|
|
361
362
|
gr4vy/models/transactiongiftcard.py,sha256=E4f_76ezJJdPlW9kIbrXt-PIx2Zgg3bhqPjVzhWdjpM,2329
|
|
@@ -437,6 +438,6 @@ gr4vy/utils/unmarshal_json_response.py,sha256=H7jxugtMDuagdBXdpGiPf0Vr5-PWLETp8B
|
|
|
437
438
|
gr4vy/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
438
439
|
gr4vy/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
439
440
|
gr4vy/webhooks.py,sha256=2L-ZhdK-XU2X0AkVqgZvhfRqDCKUVs7R4UNCmZJR78w,1359
|
|
440
|
-
gr4vy-1.6.
|
|
441
|
-
gr4vy-1.6.
|
|
442
|
-
gr4vy-1.6.
|
|
441
|
+
gr4vy-1.6.5.dist-info/METADATA,sha256=YX6oIezSwEdQFFL34YOvj_P2lMnnBzHd_SVMTe8yeF8,44091
|
|
442
|
+
gr4vy-1.6.5.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
443
|
+
gr4vy-1.6.5.dist-info/RECORD,,
|
|
File without changes
|