gr4vy 1.7.0__py3-none-any.whl → 1.7.2__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/checkout_sessions.py +18 -0
- gr4vy/models/checkoutsession.py +21 -0
- gr4vy/models/checkoutsessioncreate.py +34 -2
- {gr4vy-1.7.0.dist-info → gr4vy-1.7.2.dist-info}/METADATA +1 -1
- {gr4vy-1.7.0.dist-info → gr4vy-1.7.2.dist-info}/RECORD +7 -7
- {gr4vy-1.7.0.dist-info → gr4vy-1.7.2.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.7.
|
|
6
|
+
__version__: str = "1.7.2"
|
|
7
7
|
__openapi_doc_version__: str = "1.0.0"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 1.7.
|
|
8
|
+
__gen_version__: str = "2.739.1"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 1.7.2 2.739.1 1.0.0 gr4vy"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
gr4vy/checkout_sessions.py
CHANGED
|
@@ -333,6 +333,9 @@ class CheckoutSessions(BaseSDK):
|
|
|
333
333
|
airline: OptionalNullable[
|
|
334
334
|
Union[models.Airline, models.AirlineTypedDict]
|
|
335
335
|
] = UNSET,
|
|
336
|
+
amount: OptionalNullable[int] = UNSET,
|
|
337
|
+
currency: OptionalNullable[str] = UNSET,
|
|
338
|
+
payment_service_id: OptionalNullable[str] = UNSET,
|
|
336
339
|
expires_in: Optional[float] = 3600,
|
|
337
340
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
338
341
|
server_url: Optional[str] = None,
|
|
@@ -349,6 +352,9 @@ class CheckoutSessions(BaseSDK):
|
|
|
349
352
|
:param metadata: Any additional information about the transaction that you would like to store as key-value pairs. This data is passed to payment service providers that support it.
|
|
350
353
|
:param buyer: Provide buyer details for the transaction. No buyer resource will be created on Gr4vy when used.
|
|
351
354
|
:param airline: The airline addendum data which describes the airline booking associated with this transaction.
|
|
355
|
+
:param amount: The total amount for this transaction.
|
|
356
|
+
:param currency: The currency code for this transaction.
|
|
357
|
+
:param payment_service_id: The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped.
|
|
352
358
|
:param expires_in: The time in seconds when this checkout session expires.
|
|
353
359
|
:param retries: Override the default retry configuration for this method
|
|
354
360
|
:param server_url: Override the default server URL for this method
|
|
@@ -379,6 +385,9 @@ class CheckoutSessions(BaseSDK):
|
|
|
379
385
|
airline=utils.get_pydantic_model(
|
|
380
386
|
airline, OptionalNullable[models.Airline]
|
|
381
387
|
),
|
|
388
|
+
amount=amount,
|
|
389
|
+
currency=currency,
|
|
390
|
+
payment_service_id=payment_service_id,
|
|
382
391
|
expires_in=expires_in,
|
|
383
392
|
),
|
|
384
393
|
)
|
|
@@ -512,6 +521,9 @@ class CheckoutSessions(BaseSDK):
|
|
|
512
521
|
airline: OptionalNullable[
|
|
513
522
|
Union[models.Airline, models.AirlineTypedDict]
|
|
514
523
|
] = UNSET,
|
|
524
|
+
amount: OptionalNullable[int] = UNSET,
|
|
525
|
+
currency: OptionalNullable[str] = UNSET,
|
|
526
|
+
payment_service_id: OptionalNullable[str] = UNSET,
|
|
515
527
|
expires_in: Optional[float] = 3600,
|
|
516
528
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
517
529
|
server_url: Optional[str] = None,
|
|
@@ -528,6 +540,9 @@ class CheckoutSessions(BaseSDK):
|
|
|
528
540
|
:param metadata: Any additional information about the transaction that you would like to store as key-value pairs. This data is passed to payment service providers that support it.
|
|
529
541
|
:param buyer: Provide buyer details for the transaction. No buyer resource will be created on Gr4vy when used.
|
|
530
542
|
:param airline: The airline addendum data which describes the airline booking associated with this transaction.
|
|
543
|
+
:param amount: The total amount for this transaction.
|
|
544
|
+
:param currency: The currency code for this transaction.
|
|
545
|
+
:param payment_service_id: The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped.
|
|
531
546
|
:param expires_in: The time in seconds when this checkout session expires.
|
|
532
547
|
:param retries: Override the default retry configuration for this method
|
|
533
548
|
:param server_url: Override the default server URL for this method
|
|
@@ -558,6 +573,9 @@ class CheckoutSessions(BaseSDK):
|
|
|
558
573
|
airline=utils.get_pydantic_model(
|
|
559
574
|
airline, OptionalNullable[models.Airline]
|
|
560
575
|
),
|
|
576
|
+
amount=amount,
|
|
577
|
+
currency=currency,
|
|
578
|
+
payment_service_id=payment_service_id,
|
|
561
579
|
expires_in=expires_in,
|
|
562
580
|
),
|
|
563
581
|
)
|
gr4vy/models/checkoutsession.py
CHANGED
|
@@ -31,6 +31,12 @@ class CheckoutSessionTypedDict(TypedDict):
|
|
|
31
31
|
r"""Provide buyer details for the transaction. No buyer resource will be created on Gr4vy when used."""
|
|
32
32
|
airline: NotRequired[Nullable[AirlineTypedDict]]
|
|
33
33
|
r"""The airline addendum data which describes the airline booking associated with this transaction."""
|
|
34
|
+
amount: NotRequired[Nullable[int]]
|
|
35
|
+
r"""The total amount for this transaction."""
|
|
36
|
+
currency: NotRequired[Nullable[str]]
|
|
37
|
+
r"""The currency code for this transaction."""
|
|
38
|
+
payment_service_id: NotRequired[Nullable[str]]
|
|
39
|
+
r"""The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped."""
|
|
34
40
|
type: Literal["checkout-session"]
|
|
35
41
|
r"""Always `checkout-session`"""
|
|
36
42
|
payment_method: NotRequired[Nullable[CheckoutSessionPaymentMethodOutputTypedDict]]
|
|
@@ -56,6 +62,15 @@ class CheckoutSession(BaseModel):
|
|
|
56
62
|
airline: OptionalNullable[Airline] = UNSET
|
|
57
63
|
r"""The airline addendum data which describes the airline booking associated with this transaction."""
|
|
58
64
|
|
|
65
|
+
amount: OptionalNullable[int] = UNSET
|
|
66
|
+
r"""The total amount for this transaction."""
|
|
67
|
+
|
|
68
|
+
currency: OptionalNullable[str] = UNSET
|
|
69
|
+
r"""The currency code for this transaction."""
|
|
70
|
+
|
|
71
|
+
payment_service_id: OptionalNullable[str] = UNSET
|
|
72
|
+
r"""The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped."""
|
|
73
|
+
|
|
59
74
|
TYPE: Annotated[
|
|
60
75
|
Annotated[
|
|
61
76
|
Optional[Literal["checkout-session"]],
|
|
@@ -75,6 +90,9 @@ class CheckoutSession(BaseModel):
|
|
|
75
90
|
"metadata",
|
|
76
91
|
"buyer",
|
|
77
92
|
"airline",
|
|
93
|
+
"amount",
|
|
94
|
+
"currency",
|
|
95
|
+
"payment_service_id",
|
|
78
96
|
"type",
|
|
79
97
|
"payment_method",
|
|
80
98
|
]
|
|
@@ -83,6 +101,9 @@ class CheckoutSession(BaseModel):
|
|
|
83
101
|
"metadata",
|
|
84
102
|
"buyer",
|
|
85
103
|
"airline",
|
|
104
|
+
"amount",
|
|
105
|
+
"currency",
|
|
106
|
+
"payment_service_id",
|
|
86
107
|
"payment_method",
|
|
87
108
|
]
|
|
88
109
|
null_default_fields = []
|
|
@@ -19,6 +19,12 @@ class CheckoutSessionCreateTypedDict(TypedDict):
|
|
|
19
19
|
r"""Provide buyer details for the transaction. No buyer resource will be created on Gr4vy when used."""
|
|
20
20
|
airline: NotRequired[Nullable[AirlineTypedDict]]
|
|
21
21
|
r"""The airline addendum data which describes the airline booking associated with this transaction."""
|
|
22
|
+
amount: NotRequired[Nullable[int]]
|
|
23
|
+
r"""The total amount for this transaction."""
|
|
24
|
+
currency: NotRequired[Nullable[str]]
|
|
25
|
+
r"""The currency code for this transaction."""
|
|
26
|
+
payment_service_id: NotRequired[Nullable[str]]
|
|
27
|
+
r"""The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped."""
|
|
22
28
|
expires_in: NotRequired[float]
|
|
23
29
|
r"""The time in seconds when this checkout session expires."""
|
|
24
30
|
|
|
@@ -36,13 +42,39 @@ class CheckoutSessionCreate(BaseModel):
|
|
|
36
42
|
airline: OptionalNullable[Airline] = UNSET
|
|
37
43
|
r"""The airline addendum data which describes the airline booking associated with this transaction."""
|
|
38
44
|
|
|
45
|
+
amount: OptionalNullable[int] = UNSET
|
|
46
|
+
r"""The total amount for this transaction."""
|
|
47
|
+
|
|
48
|
+
currency: OptionalNullable[str] = UNSET
|
|
49
|
+
r"""The currency code for this transaction."""
|
|
50
|
+
|
|
51
|
+
payment_service_id: OptionalNullable[str] = UNSET
|
|
52
|
+
r"""The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped."""
|
|
53
|
+
|
|
39
54
|
expires_in: Optional[float] = 3600
|
|
40
55
|
r"""The time in seconds when this checkout session expires."""
|
|
41
56
|
|
|
42
57
|
@model_serializer(mode="wrap")
|
|
43
58
|
def serialize_model(self, handler):
|
|
44
|
-
optional_fields = [
|
|
45
|
-
|
|
59
|
+
optional_fields = [
|
|
60
|
+
"cart_items",
|
|
61
|
+
"metadata",
|
|
62
|
+
"buyer",
|
|
63
|
+
"airline",
|
|
64
|
+
"amount",
|
|
65
|
+
"currency",
|
|
66
|
+
"payment_service_id",
|
|
67
|
+
"expires_in",
|
|
68
|
+
]
|
|
69
|
+
nullable_fields = [
|
|
70
|
+
"cart_items",
|
|
71
|
+
"metadata",
|
|
72
|
+
"buyer",
|
|
73
|
+
"airline",
|
|
74
|
+
"amount",
|
|
75
|
+
"currency",
|
|
76
|
+
"payment_service_id",
|
|
77
|
+
]
|
|
46
78
|
null_default_fields = []
|
|
47
79
|
|
|
48
80
|
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=u2w9xm4qx2XJWfUhA0H1U0i8BtcfwcPPGktUQUsV1N4,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
|
|
@@ -14,7 +14,7 @@ gr4vy/buyers_payment_methods.py,sha256=K6rwQM7c8TgjwYO97sHe4XmYrcWmHJ8FUWJMTs9tt
|
|
|
14
14
|
gr4vy/buyers_sdk.py,sha256=6akr8Xr7QdyQ3tTz9lF4BR4GKyt-6lHlVCOOYw-FIFI,73614
|
|
15
15
|
gr4vy/buyers_shipping_details.py,sha256=8Sd5_cRQYm4fXpQHkOhma87rF-tuzGOpbDJKXQ-LZtE,73297
|
|
16
16
|
gr4vy/card_scheme_definitions_sdk.py,sha256=s3pLvYyofq-okz88ze9vZIHKgX06vy4uvBviLyuus4Q,13643
|
|
17
|
-
gr4vy/checkout_sessions.py,sha256=
|
|
17
|
+
gr4vy/checkout_sessions.py,sha256=G4wG5_DXGrCSMLp3f_PKTuzd-ASdONeSWgzj_qox77I,58492
|
|
18
18
|
gr4vy/digital_wallets_sdk.py,sha256=Z91FxlJVqJ0-__eM7J0XSv_4kUmx-7KW8McKyfnIxEU,71131
|
|
19
19
|
gr4vy/domains.py,sha256=TxljWTn-RodSg5Ey0aXzOLa08v8gCGAMooSxx8nQiSw,28472
|
|
20
20
|
gr4vy/errors/__init__.py,sha256=ZDz7v86-UM-FLysIfPwSWRu-TH_1Xfu8xo8SCpVeFY8,3697
|
|
@@ -93,8 +93,8 @@ gr4vy/models/cardtype.py,sha256=NKubknj2_Bps4G8-TEZC3sOjpeKRGX42R3eXmmyzR2I,299
|
|
|
93
93
|
gr4vy/models/cardwithurlpaymentmethodcreate.py,sha256=-wb5hnuwpgpG9PGDIapbHuqYZibKfTojiP1S0DuXL88,3934
|
|
94
94
|
gr4vy/models/cartitem.py,sha256=Hii-sbOSu0EaGze0P0GrSvW-Tlu2eeB_s8v_23LUtpM,7830
|
|
95
95
|
gr4vy/models/checkoutpayoutoptions.py,sha256=TVvoTLsY4NYo6MJyEDEPZIU7FWodTvo-H-LfGdDiUtY,638
|
|
96
|
-
gr4vy/models/checkoutsession.py,sha256=
|
|
97
|
-
gr4vy/models/checkoutsessioncreate.py,sha256=
|
|
96
|
+
gr4vy/models/checkoutsession.py,sha256=pgqhwelO1pWIw4RuYQr1vDmNbk8Yq2E9Ec3wnscOr9Q,5433
|
|
97
|
+
gr4vy/models/checkoutsessioncreate.py,sha256=HDav30XrLnQLV0VQXs-GZELW2u8qd-A6fXBkQL6CgfU,4323
|
|
98
98
|
gr4vy/models/checkoutsessionpaymentmethod_output.py,sha256=UprdKWlazKjng81UVnUU50LRYsgcMSKHi3jw9ilDwIw,3501
|
|
99
99
|
gr4vy/models/checkoutsessionpaymentmethodcreate.py,sha256=0s5A8q7GtMIzXm_yFh_HCDL-WkQFLmi-1SHvV_D_Czw,3076
|
|
100
100
|
gr4vy/models/checkoutsessionpaymentmethoddetails.py,sha256=qs8nac4BrRov9q7lT1FmqfsoOy7XO3UiMjq5ZJlSOm4,2297
|
|
@@ -439,6 +439,6 @@ gr4vy/utils/unmarshal_json_response.py,sha256=H7jxugtMDuagdBXdpGiPf0Vr5-PWLETp8B
|
|
|
439
439
|
gr4vy/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
440
440
|
gr4vy/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
441
441
|
gr4vy/webhooks.py,sha256=2L-ZhdK-XU2X0AkVqgZvhfRqDCKUVs7R4UNCmZJR78w,1359
|
|
442
|
-
gr4vy-1.7.
|
|
443
|
-
gr4vy-1.7.
|
|
444
|
-
gr4vy-1.7.
|
|
442
|
+
gr4vy-1.7.2.dist-info/METADATA,sha256=ZCT9CdeVc0jxL1lgi9O5uhInzVr-Q-sVi6a80Mw3rDI,44092
|
|
443
|
+
gr4vy-1.7.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
444
|
+
gr4vy-1.7.2.dist-info/RECORD,,
|
|
File without changes
|