gr4vy 1.2.9__py3-none-any.whl → 1.2.10__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/models/__init__.py +5 -0
- gr4vy/models/nuveipseoptions.py +70 -0
- gr4vy/models/transactionconnectionoptions.py +10 -0
- {gr4vy-1.2.9.dist-info → gr4vy-1.2.10.dist-info}/METADATA +1 -1
- {gr4vy-1.2.9.dist-info → gr4vy-1.2.10.dist-info}/RECORD +7 -6
- {gr4vy-1.2.9.dist-info → gr4vy-1.2.10.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.2.
|
|
6
|
+
__version__: str = "1.2.10"
|
|
7
7
|
__openapi_doc_version__: str = "1.0.0"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 1.2.
|
|
8
|
+
__gen_version__: str = "2.701.8"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 1.2.10 2.701.8 1.0.0 gr4vy"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
gr4vy/models/__init__.py
CHANGED
|
@@ -786,6 +786,7 @@ if TYPE_CHECKING:
|
|
|
786
786
|
NuveiAirlineDataOptionsTypedDict,
|
|
787
787
|
)
|
|
788
788
|
from .nuveioptions import NuveiOptions, NuveiOptionsTypedDict
|
|
789
|
+
from .nuveipseoptions import NuveiPSEOptions, NuveiPSEOptionsTypedDict
|
|
789
790
|
from .oxxooptions import OxxoOptions, OxxoOptionsTypedDict
|
|
790
791
|
from .paymentlink import PaymentLink, PaymentLinkTypedDict
|
|
791
792
|
from .paymentlinkcreate import Locale, PaymentLinkCreate, PaymentLinkCreateTypedDict
|
|
@@ -1730,6 +1731,8 @@ __all__ = [
|
|
|
1730
1731
|
"NuveiAirlineDataOptionsTypedDict",
|
|
1731
1732
|
"NuveiOptions",
|
|
1732
1733
|
"NuveiOptionsTypedDict",
|
|
1734
|
+
"NuveiPSEOptions",
|
|
1735
|
+
"NuveiPSEOptionsTypedDict",
|
|
1733
1736
|
"OrderBy",
|
|
1734
1737
|
"OxxoOptions",
|
|
1735
1738
|
"OxxoOptionsTypedDict",
|
|
@@ -2623,6 +2626,8 @@ _dynamic_imports: dict[str, str] = {
|
|
|
2623
2626
|
"NuveiAirlineDataOptionsTypedDict": ".nuveiairlinedataoptions",
|
|
2624
2627
|
"NuveiOptions": ".nuveioptions",
|
|
2625
2628
|
"NuveiOptionsTypedDict": ".nuveioptions",
|
|
2629
|
+
"NuveiPSEOptions": ".nuveipseoptions",
|
|
2630
|
+
"NuveiPSEOptionsTypedDict": ".nuveipseoptions",
|
|
2626
2631
|
"OxxoOptions": ".oxxooptions",
|
|
2627
2632
|
"OxxoOptionsTypedDict": ".oxxooptions",
|
|
2628
2633
|
"PaymentLink": ".paymentlink",
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
import pydantic
|
|
6
|
+
from pydantic import model_serializer
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class NuveiPSEOptionsTypedDict(TypedDict):
|
|
11
|
+
user_type: NotRequired[Nullable[str]]
|
|
12
|
+
r"""Customer type (\"N\" for persona natural, \"J\" for persona jurídica)"""
|
|
13
|
+
user_fis_number: NotRequired[Nullable[str]]
|
|
14
|
+
r"""Customer’s document type"""
|
|
15
|
+
fiscal_number: NotRequired[Nullable[str]]
|
|
16
|
+
r"""Customer’s document number"""
|
|
17
|
+
bank_code: NotRequired[Nullable[str]]
|
|
18
|
+
r"""The bank code of the selected bank"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class NuveiPSEOptions(BaseModel):
|
|
22
|
+
user_type: Annotated[OptionalNullable[str], pydantic.Field(alias="userType")] = (
|
|
23
|
+
UNSET
|
|
24
|
+
)
|
|
25
|
+
r"""Customer type (\"N\" for persona natural, \"J\" for persona jurídica)"""
|
|
26
|
+
|
|
27
|
+
user_fis_number: Annotated[
|
|
28
|
+
OptionalNullable[str], pydantic.Field(alias="userFisNumber")
|
|
29
|
+
] = UNSET
|
|
30
|
+
r"""Customer’s document type"""
|
|
31
|
+
|
|
32
|
+
fiscal_number: Annotated[
|
|
33
|
+
OptionalNullable[str], pydantic.Field(alias="fiscalNumber")
|
|
34
|
+
] = UNSET
|
|
35
|
+
r"""Customer’s document number"""
|
|
36
|
+
|
|
37
|
+
bank_code: Annotated[OptionalNullable[str], pydantic.Field(alias="bankCode")] = (
|
|
38
|
+
UNSET
|
|
39
|
+
)
|
|
40
|
+
r"""The bank code of the selected bank"""
|
|
41
|
+
|
|
42
|
+
@model_serializer(mode="wrap")
|
|
43
|
+
def serialize_model(self, handler):
|
|
44
|
+
optional_fields = ["userType", "userFisNumber", "fiscalNumber", "bankCode"]
|
|
45
|
+
nullable_fields = ["userType", "userFisNumber", "fiscalNumber", "bankCode"]
|
|
46
|
+
null_default_fields = []
|
|
47
|
+
|
|
48
|
+
serialized = handler(self)
|
|
49
|
+
|
|
50
|
+
m = {}
|
|
51
|
+
|
|
52
|
+
for n, f in type(self).model_fields.items():
|
|
53
|
+
k = f.alias or n
|
|
54
|
+
val = serialized.get(k)
|
|
55
|
+
serialized.pop(k, None)
|
|
56
|
+
|
|
57
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
58
|
+
is_set = (
|
|
59
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
60
|
+
or k in null_default_fields
|
|
61
|
+
) # pylint: disable=no-member
|
|
62
|
+
|
|
63
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
64
|
+
m[k] = val
|
|
65
|
+
elif val != UNSET_SENTINEL and (
|
|
66
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
67
|
+
):
|
|
68
|
+
m[k] = val
|
|
69
|
+
|
|
70
|
+
return m
|
|
@@ -23,6 +23,7 @@ from .latitudeoptions import LatitudeOptions, LatitudeOptionsTypedDict
|
|
|
23
23
|
from .mattildatapioptions import MattildaTapiOptions, MattildaTapiOptionsTypedDict
|
|
24
24
|
from .mockcardoptions import MockCardOptions, MockCardOptionsTypedDict
|
|
25
25
|
from .nuveioptions import NuveiOptions, NuveiOptionsTypedDict
|
|
26
|
+
from .nuveipseoptions import NuveiPSEOptions, NuveiPSEOptionsTypedDict
|
|
26
27
|
from .oxxooptions import OxxoOptions, OxxoOptionsTypedDict
|
|
27
28
|
from .paypaloptions import PaypalOptions, PaypalOptionsTypedDict
|
|
28
29
|
from .powertranzoptions import PowertranzOptions, PowertranzOptionsTypedDict
|
|
@@ -94,6 +95,8 @@ class TransactionConnectionOptionsTypedDict(TypedDict):
|
|
|
94
95
|
r"""Custom options to be passed to the `mock-card` connector."""
|
|
95
96
|
nuvei_card: NotRequired[Nullable[NuveiOptionsTypedDict]]
|
|
96
97
|
r"""Custom options to be passed to the `nuvei-card` connector."""
|
|
98
|
+
nuvei_pse: NotRequired[Nullable[NuveiPSEOptionsTypedDict]]
|
|
99
|
+
r"""Custom options to be passed to the `nuvei-pse` connector."""
|
|
97
100
|
oxxo_oxxo: NotRequired[Nullable[OxxoOptionsTypedDict]]
|
|
98
101
|
r"""Custom options to be passed to the `oxxo-oxxo` connector."""
|
|
99
102
|
paypal_paypal: NotRequired[Nullable[PaypalOptionsTypedDict]]
|
|
@@ -259,6 +262,11 @@ class TransactionConnectionOptions(BaseModel):
|
|
|
259
262
|
] = UNSET
|
|
260
263
|
r"""Custom options to be passed to the `nuvei-card` connector."""
|
|
261
264
|
|
|
265
|
+
nuvei_pse: Annotated[
|
|
266
|
+
OptionalNullable[NuveiPSEOptions], pydantic.Field(alias="nuvei-pse")
|
|
267
|
+
] = UNSET
|
|
268
|
+
r"""Custom options to be passed to the `nuvei-pse` connector."""
|
|
269
|
+
|
|
262
270
|
oxxo_oxxo: Annotated[
|
|
263
271
|
OptionalNullable[OxxoOptions], pydantic.Field(alias="oxxo-oxxo")
|
|
264
272
|
] = UNSET
|
|
@@ -336,6 +344,7 @@ class TransactionConnectionOptions(BaseModel):
|
|
|
336
344
|
"mattilda-tapifintechs",
|
|
337
345
|
"mock-card",
|
|
338
346
|
"nuvei-card",
|
|
347
|
+
"nuvei-pse",
|
|
339
348
|
"oxxo-oxxo",
|
|
340
349
|
"paypal-paypal",
|
|
341
350
|
"paypal-paypalpaylater",
|
|
@@ -375,6 +384,7 @@ class TransactionConnectionOptions(BaseModel):
|
|
|
375
384
|
"mattilda-tapifintechs",
|
|
376
385
|
"mock-card",
|
|
377
386
|
"nuvei-card",
|
|
387
|
+
"nuvei-pse",
|
|
378
388
|
"oxxo-oxxo",
|
|
379
389
|
"paypal-paypal",
|
|
380
390
|
"paypal-paypalpaylater",
|
|
@@ -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=8-RsX0bngdlwEMf37xnmrJqlLKSqlQtylSGAiCfbq2U,454
|
|
6
6
|
gr4vy/account_updater.py,sha256=mmTd25Oap80PBqQ3p4MvZ_buT5VS0zWc8s8cqfI7iyA,607
|
|
7
7
|
gr4vy/all.py,sha256=WwnLoNn3RgXNpf4Xoz12ct94JD7NMpLz-kzesHHh4m8,15172
|
|
8
8
|
gr4vy/audit_logs.py,sha256=duh_c9mO8vIcpCnB-c77EYn1tkuCp1cRT6a7l0VdZqc,17083
|
|
@@ -40,7 +40,7 @@ gr4vy/gift_cards_sdk.py,sha256=vAyP-0LNSYKvgLQ0k6QQ-cj-cW2NN7cu2ekj5b3zJkI,57411
|
|
|
40
40
|
gr4vy/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
41
41
|
gr4vy/jobs.py,sha256=WHx0epnlxOMHFSXTJPwuI5dhOO_acGTX72Lbz6fvD8A,14565
|
|
42
42
|
gr4vy/merchant_accounts_sdk.py,sha256=itqNYsJi_j9qGVSRvfbP1gYjbLbOIpy-6qRWhrqofOk,82247
|
|
43
|
-
gr4vy/models/__init__.py,sha256=
|
|
43
|
+
gr4vy/models/__init__.py,sha256=CCgk3x_8oePwtAqIEBGvqE6EFl9EvOF9-zNQmSUOqfo,131595
|
|
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
|
|
@@ -254,6 +254,7 @@ gr4vy/models/networktokens.py,sha256=JlNLQ7_ovv-VUIEnxEgtKObHq2CijkgZszlyTgbX5eY
|
|
|
254
254
|
gr4vy/models/networktokenstatus.py,sha256=aA7_PzRiJRFtNm7aUkvqei0zOrPBT8vOOBfDxpmEriw,289
|
|
255
255
|
gr4vy/models/nuveiairlinedataoptions.py,sha256=LRvIzboyvbAK83iIxfkDDLfspgA2hB04id4l5Vmjn4I,1925
|
|
256
256
|
gr4vy/models/nuveioptions.py,sha256=ms46xui6MunqvGv_SK9S1Q7VQo1UI0hju2kqjUFNeRE,2063
|
|
257
|
+
gr4vy/models/nuveipseoptions.py,sha256=0CtBMe2cxU6XToQamYy25jCD0rMAl2Ko2KETtNyta1Q,2426
|
|
257
258
|
gr4vy/models/oxxooptions.py,sha256=UjdEwwdwr-N7b8_3gwE1rgxjmfadQRghk9vzZmS4uPU,1910
|
|
258
259
|
gr4vy/models/paymentlink.py,sha256=8fg_b72DMH3V3c3mhvVW7sy4HmEuUgce11wp3Hmnhfo,8050
|
|
259
260
|
gr4vy/models/paymentlinkcreate.py,sha256=Ck-veBcEWPfZoNqDcDiYKyhld4trzQJWG4lvzfSKFbs,7369
|
|
@@ -345,7 +346,7 @@ gr4vy/models/transactionbuyer.py,sha256=7VxBYmR7IBNA082NqCCdwWtOjyK9ut5dPS4M-6rV
|
|
|
345
346
|
gr4vy/models/transactioncancel.py,sha256=OHP0xmmM374aaYXPeV0G2fZn5RRfxbTAzJnNospfCas,3162
|
|
346
347
|
gr4vy/models/transactioncapture.py,sha256=7WD3uoUyDJ1sejtjIb7b5B5BFtpKEi7KkegVtB0DLTg,3174
|
|
347
348
|
gr4vy/models/transactioncapturecreate.py,sha256=Hs8tTi8iG3xUBptznKHfUD7rvcGZX0OwDzpXOBegd8E,2188
|
|
348
|
-
gr4vy/models/transactionconnectionoptions.py,sha256=
|
|
349
|
+
gr4vy/models/transactionconnectionoptions.py,sha256=8bXN4Vkj3yviZzhXjkPoz-rJkFgSYn3kgARJ85yuGh0,18671
|
|
349
350
|
gr4vy/models/transactioncreate.py,sha256=nrS_YJpqNaa-Om-8AnXzSOG_wKNp0TH79umQwE1fXXE,26445
|
|
350
351
|
gr4vy/models/transactionevent.py,sha256=rZm6VX53piqFWSMMP1rLsRqV2rw6_5J7BHrUt4Nfh2M,3871
|
|
351
352
|
gr4vy/models/transactionevents.py,sha256=5l2Yc69SMePDlFtcby4i3BxGBkbT62SWQf4X5Xvfypw,2210
|
|
@@ -428,6 +429,6 @@ gr4vy/utils/unmarshal_json_response.py,sha256=H7jxugtMDuagdBXdpGiPf0Vr5-PWLETp8B
|
|
|
428
429
|
gr4vy/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
429
430
|
gr4vy/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
430
431
|
gr4vy/webhooks.py,sha256=2L-ZhdK-XU2X0AkVqgZvhfRqDCKUVs7R4UNCmZJR78w,1359
|
|
431
|
-
gr4vy-1.2.
|
|
432
|
-
gr4vy-1.2.
|
|
433
|
-
gr4vy-1.2.
|
|
432
|
+
gr4vy-1.2.10.dist-info/METADATA,sha256=J4F9D66rX3RtEr1HwlEgHi1A-U4iQ3x_M57j2JSIJn4,44203
|
|
433
|
+
gr4vy-1.2.10.dist-info/WHEEL,sha256=M5asmiAlL6HEcOq52Yi5mmk9KmTVjY2RDPtO4p9DMrc,88
|
|
434
|
+
gr4vy-1.2.10.dist-info/RECORD,,
|
|
File without changes
|