gr4vy 1.6.0__py3-none-any.whl → 1.6.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.
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.0"
6
+ __version__: str = "1.6.2"
7
7
  __openapi_doc_version__: str = "1.0.0"
8
- __gen_version__: str = "2.727.9"
9
- __user_agent__: str = "speakeasy-sdk/python 1.6.0 2.727.9 1.0.0 gr4vy"
8
+ __gen_version__: str = "2.730.5"
9
+ __user_agent__: str = "speakeasy-sdk/python 1.6.2 2.730.5 1.0.0 gr4vy"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
gr4vy/models/__init__.py CHANGED
@@ -582,6 +582,7 @@ if TYPE_CHECKING:
582
582
  from .guestbuyer_input import GuestBuyerInput, GuestBuyerInputTypedDict
583
583
  from .guestbuyer_output import GuestBuyerOutput, GuestBuyerOutputTypedDict
584
584
  from .instrumenttype import InstrumentType
585
+ from .integrationclient import IntegrationClient
585
586
  from .latitudeoptions import LatitudeOptions, LatitudeOptionsTypedDict
586
587
  from .list_all_report_executionsop import (
587
588
  ListAllReportExecutionsGlobals,
@@ -1588,6 +1589,7 @@ __all__ = [
1588
1589
  "GuestBuyerOutput",
1589
1590
  "GuestBuyerOutputTypedDict",
1590
1591
  "InstrumentType",
1592
+ "IntegrationClient",
1591
1593
  "Item",
1592
1594
  "ItemTypedDict",
1593
1595
  "LatitudeOptions",
@@ -2496,6 +2498,7 @@ _dynamic_imports: dict[str, str] = {
2496
2498
  "GuestBuyerOutput": ".guestbuyer_output",
2497
2499
  "GuestBuyerOutputTypedDict": ".guestbuyer_output",
2498
2500
  "InstrumentType": ".instrumenttype",
2501
+ "IntegrationClient": ".integrationclient",
2499
2502
  "LatitudeOptions": ".latitudeoptions",
2500
2503
  "LatitudeOptionsTypedDict": ".latitudeoptions",
2501
2504
  "ListAllReportExecutionsGlobals": ".list_all_report_executionsop",
@@ -0,0 +1,16 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from gr4vy.types import UnrecognizedStr
5
+ from typing import Literal, Union
6
+
7
+
8
+ IntegrationClient = Union[
9
+ Literal[
10
+ "redirect",
11
+ "web",
12
+ "android",
13
+ "ios",
14
+ ],
15
+ UnrecognizedStr,
16
+ ]
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
  from .definitionfield import DefinitionField, DefinitionFieldTypedDict
5
+ from .integrationclient import IntegrationClient
5
6
  from .method import Method
6
7
  from .mode import Mode
7
8
  from .paymentserviceconfiguration import (
@@ -41,6 +42,8 @@ class PaymentServiceDefinitionTypedDict(TypedDict):
41
42
  required_checkout_fields: List[RequiredCheckoutFieldsTypedDict]
42
43
  r"""A list of condition that define when some fields must be provided with a transaction request."""
43
44
  configuration: PaymentServiceConfigurationTypedDict
45
+ supported_integration_clients: Nullable[List[IntegrationClient]]
46
+ r"""List of supported integration clients. Defaults to redirect for most redirect connectors."""
44
47
  type: Literal["payment-service-definition"]
45
48
  r"""Always `payment-service-definition`."""
46
49
  icon_url: NotRequired[Nullable[str]]
@@ -78,6 +81,11 @@ class PaymentServiceDefinition(BaseModel):
78
81
 
79
82
  configuration: PaymentServiceConfiguration
80
83
 
84
+ supported_integration_clients: Nullable[
85
+ List[Annotated[IntegrationClient, PlainValidator(validate_open_enum(False))]]
86
+ ]
87
+ r"""List of supported integration clients. Defaults to redirect for most redirect connectors."""
88
+
81
89
  TYPE: Annotated[
82
90
  Annotated[
83
91
  Optional[Literal["payment-service-definition"]],
@@ -93,7 +101,7 @@ class PaymentServiceDefinition(BaseModel):
93
101
  @model_serializer(mode="wrap")
94
102
  def serialize_model(self, handler):
95
103
  optional_fields = ["type", "icon_url"]
96
- nullable_fields = ["icon_url"]
104
+ nullable_fields = ["icon_url", "supported_integration_clients"]
97
105
  null_default_fields = []
98
106
 
99
107
  serialized = handler(self)
@@ -158,6 +158,8 @@ class TransactionTypedDict(TypedDict):
158
158
  r"""An optional merchant advice code which provides insight into the type of transaction or reason why the payment failed."""
159
159
  installment_count: NotRequired[Nullable[int]]
160
160
  r"""The number of installments for this transaction, if applicable."""
161
+ session_token: NotRequired[Nullable[str]]
162
+ r"""A session token that can be used to fetch session data for direct client integrations."""
161
163
  tax_amount: NotRequired[Nullable[int]]
162
164
  r"""The sales tax amount for this transaction, represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`"""
163
165
  merchant_tax_id: NotRequired[Nullable[str]]
@@ -371,6 +373,9 @@ class Transaction(BaseModel):
371
373
  installment_count: OptionalNullable[int] = UNSET
372
374
  r"""The number of installments for this transaction, if applicable."""
373
375
 
376
+ session_token: OptionalNullable[str] = UNSET
377
+ r"""A session token that can be used to fetch session data for direct client integrations."""
378
+
374
379
  tax_amount: OptionalNullable[int] = UNSET
375
380
  r"""The sales tax amount for this transaction, represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`"""
376
381
 
@@ -432,6 +437,7 @@ class Transaction(BaseModel):
432
437
  "recipient",
433
438
  "merchant_advice_code",
434
439
  "installment_count",
440
+ "session_token",
435
441
  "tax_amount",
436
442
  "merchant_tax_id",
437
443
  "customer_reference_number",
@@ -475,6 +481,7 @@ class Transaction(BaseModel):
475
481
  "recipient",
476
482
  "merchant_advice_code",
477
483
  "installment_count",
484
+ "session_token",
478
485
  "tax_amount",
479
486
  "merchant_tax_id",
480
487
  "customer_reference_number",
@@ -41,6 +41,7 @@ from .googlepaypaymentmethodcreate import (
41
41
  GooglePayPaymentMethodCreateTypedDict,
42
42
  )
43
43
  from .guestbuyer_input import GuestBuyerInput, GuestBuyerInputTypedDict
44
+ from .integrationclient import IntegrationClient
44
45
  from .networktokenpaymentmethodcreate import (
45
46
  NetworkTokenPaymentMethodCreate,
46
47
  NetworkTokenPaymentMethodCreateTypedDict,
@@ -226,6 +227,8 @@ class TransactionCreateTypedDict(TypedDict):
226
227
  r"""Total charges for import/export duties."""
227
228
  shipping_amount: NotRequired[Nullable[int]]
228
229
  r"""Total shipping amount."""
230
+ integration_client: NotRequired[Nullable[IntegrationClient]]
231
+ r"""Defines the client where the session for this transaction is going to be used. Please refer to the connections documentation for more guidance."""
229
232
 
230
233
 
231
234
  class TransactionCreate(BaseModel):
@@ -364,6 +367,11 @@ class TransactionCreate(BaseModel):
364
367
  shipping_amount: OptionalNullable[int] = UNSET
365
368
  r"""Total shipping amount."""
366
369
 
370
+ integration_client: Annotated[
371
+ OptionalNullable[IntegrationClient], PlainValidator(validate_open_enum(False))
372
+ ] = UNSET
373
+ r"""Defines the client where the session for this transaction is going to be used. Please refer to the connections documentation for more guidance."""
374
+
367
375
  @model_serializer(mode="wrap")
368
376
  def serialize_model(self, handler):
369
377
  optional_fields = [
@@ -402,6 +410,7 @@ class TransactionCreate(BaseModel):
402
410
  "supplier_order_number",
403
411
  "duty_amount",
404
412
  "shipping_amount",
413
+ "integration_client",
405
414
  ]
406
415
  nullable_fields = [
407
416
  "country",
@@ -431,6 +440,7 @@ class TransactionCreate(BaseModel):
431
440
  "supplier_order_number",
432
441
  "duty_amount",
433
442
  "shipping_amount",
443
+ "integration_client",
434
444
  ]
435
445
  null_default_fields = []
436
446
 
gr4vy/transactions.py CHANGED
@@ -783,6 +783,7 @@ class Transactions(BaseSDK):
783
783
  supplier_order_number: OptionalNullable[str] = UNSET,
784
784
  duty_amount: OptionalNullable[int] = UNSET,
785
785
  shipping_amount: OptionalNullable[int] = UNSET,
786
+ integration_client: OptionalNullable[models.IntegrationClient] = UNSET,
786
787
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
787
788
  server_url: Optional[str] = None,
788
789
  timeout_ms: Optional[int] = None,
@@ -832,6 +833,7 @@ class Transactions(BaseSDK):
832
833
  :param supplier_order_number: The merchant's unique identifier for the sales order or invoice.
833
834
  :param duty_amount: Total charges for import/export duties.
834
835
  :param shipping_amount: Total shipping amount.
836
+ :param integration_client: Defines the client where the session for this transaction is going to be used. Please refer to the connections documentation for more guidance.
835
837
  :param retries: Override the default retry configuration for this method
836
838
  :param server_url: Override the default server URL for this method
837
839
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -911,6 +913,7 @@ class Transactions(BaseSDK):
911
913
  supplier_order_number=supplier_order_number,
912
914
  duty_amount=duty_amount,
913
915
  shipping_amount=shipping_amount,
916
+ integration_client=integration_client,
914
917
  ),
915
918
  )
916
919
 
@@ -1097,6 +1100,7 @@ class Transactions(BaseSDK):
1097
1100
  supplier_order_number: OptionalNullable[str] = UNSET,
1098
1101
  duty_amount: OptionalNullable[int] = UNSET,
1099
1102
  shipping_amount: OptionalNullable[int] = UNSET,
1103
+ integration_client: OptionalNullable[models.IntegrationClient] = UNSET,
1100
1104
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
1101
1105
  server_url: Optional[str] = None,
1102
1106
  timeout_ms: Optional[int] = None,
@@ -1146,6 +1150,7 @@ class Transactions(BaseSDK):
1146
1150
  :param supplier_order_number: The merchant's unique identifier for the sales order or invoice.
1147
1151
  :param duty_amount: Total charges for import/export duties.
1148
1152
  :param shipping_amount: Total shipping amount.
1153
+ :param integration_client: Defines the client where the session for this transaction is going to be used. Please refer to the connections documentation for more guidance.
1149
1154
  :param retries: Override the default retry configuration for this method
1150
1155
  :param server_url: Override the default server URL for this method
1151
1156
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -1225,6 +1230,7 @@ class Transactions(BaseSDK):
1225
1230
  supplier_order_number=supplier_order_number,
1226
1231
  duty_amount=duty_amount,
1227
1232
  shipping_amount=shipping_amount,
1233
+ integration_client=integration_client,
1228
1234
  ),
1229
1235
  )
1230
1236
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gr4vy
3
- Version: 1.6.0
3
+ Version: 1.6.2
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Gr4vy
6
6
  Requires-Python: >=3.9.2
@@ -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=0xjURVvK8qh3H-rUYZ0ax2deTzppD_7lhg2oBMdpak0,452
5
+ gr4vy/_version.py,sha256=KxaTl5r7rk64sV4YisVQ_8ISwYqJgFwSPn0KiTJXkcM,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=JiCvYybQeZVf9BRUhNve7w8nQgoFY81dmI72_YAHLj8,132944
43
+ gr4vy/models/__init__.py,sha256=aXjVilZmHOJIO9-5XL8yA-PVkIoVraGGZqLOvKYCxL8,133069
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
@@ -211,6 +211,7 @@ gr4vy/models/googlepaysessionrequest.py,sha256=Z5kTOUSN707Xz9urjaqfhRwW1oRRbnlzv
211
211
  gr4vy/models/guestbuyer_input.py,sha256=PhJnN3DMRqd6Lc-_JPLjHVHn0lxT_cez86OdLGLwDTQ,2877
212
212
  gr4vy/models/guestbuyer_output.py,sha256=fDSHUtYbZsVoI0Od3Lzxzp6wA-4TrKwHHGGt8aMuTQo,2884
213
213
  gr4vy/models/instrumenttype.py,sha256=cPt9UC0QeqeC2EXKJJD0x8t27OS6lQsnRZ22IGUdf_g,400
214
+ gr4vy/models/integrationclient.py,sha256=9qpWCQeXSlxMfoKLztNNS5saX0h9EjW36LMAlFXjPyQ,323
214
215
  gr4vy/models/internal/__init__.py,sha256=xowceJVTVAP3WRyQ0NEGkm9PAoYU1l0_VYgXZP0ZvlM,1569
215
216
  gr4vy/models/internal/globals.py,sha256=LOin0ZxkLmWMhPRtR0I9rutYwe8KvZ4c-yJyfv9A8Qw,755
216
217
  gr4vy/models/latitudeoptions.py,sha256=dswG3n30p01I1F7R49WvUvu6WSCdQUw0E47ipuWgKds,1546
@@ -279,7 +280,7 @@ gr4vy/models/paymentoptions.py,sha256=UBO33M1pUufA36vL2mck8riIKni1lKBFUkT_EgsjLp
279
280
  gr4vy/models/paymentservice.py,sha256=zKIX8C4gPAR-cJglDxcezutICt2nKdK7mERaYhsvq84,8019
280
281
  gr4vy/models/paymentserviceconfiguration.py,sha256=wD-SYLJsaKafJwlfLvEJgp3fh7tcTy6J1kZ40mtvxMI,1731
281
282
  gr4vy/models/paymentservicecreate.py,sha256=OTOwuJmTD5wavfDcIdNQS-LY5xiJORDuk6eMYFJetU0,5930
282
- gr4vy/models/paymentservicedefinition.py,sha256=kiqXkni1gnX58AQe9x61U9B-O7xmRBsn7im17dEo4Fg,4728
283
+ gr4vy/models/paymentservicedefinition.py,sha256=WGeRdOKpc9mGof7FXdVwhsuE2jn0LsvihB1FqEBlUJk,5219
283
284
  gr4vy/models/paymentservicedefinitions.py,sha256=S_TgLdNAolpMAS9RjTc2bDQO__gxi9LhvUe6CzWNsaE,2279
284
285
  gr4vy/models/paymentservices.py,sha256=5bhZVK6sSWBxDD6IhbXlCLIOctd50Gk3xPyGdowJMTw,2196
285
286
  gr4vy/models/paymentservicestatus.py,sha256=tKYRuNd4ix9d5dRfOlRZChHKDkHgGKac-k2IYe3Pa8Y,313
@@ -345,13 +346,13 @@ gr4vy/models/threedsecuremethod.py,sha256=SZYNn4TSu2K_-VE458NaWtNpNZl1Y8WFJFQwMu
345
346
  gr4vy/models/threedsecurestatus.py,sha256=ok7YxtoF76wJY9htTMKVmZqGWwDkVQPdFs3lEoIg9eI,356
346
347
  gr4vy/models/threedsecurev2.py,sha256=tbl7LU6hrQaC-stDPQYXJApr62A2HgJD17YvD06IsnU,2441
347
348
  gr4vy/models/tokenpaymentmethodcreate.py,sha256=vuhZCgZvu9d7U7DAjBN6Bx8tJ29Yx-LCxrmijXaWUj0,2681
348
- gr4vy/models/transaction.py,sha256=kVgmE9-cM9ONveiuPhEi1PSGXlLexVJmtmeCrwpif-A,24655
349
+ gr4vy/models/transaction.py,sha256=vpzG0BzxZvHA1zEagbsPy7Ka9YwgyoJmThzesIcTAcA,25005
349
350
  gr4vy/models/transactionbuyer.py,sha256=7VxBYmR7IBNA082NqCCdwWtOjyK9ut5dPS4M-6rVHjE,3074
350
351
  gr4vy/models/transactioncancel.py,sha256=OHP0xmmM374aaYXPeV0G2fZn5RRfxbTAzJnNospfCas,3162
351
352
  gr4vy/models/transactioncapture.py,sha256=7WD3uoUyDJ1sejtjIb7b5B5BFtpKEi7KkegVtB0DLTg,3174
352
353
  gr4vy/models/transactioncapturecreate.py,sha256=Hs8tTi8iG3xUBptznKHfUD7rvcGZX0OwDzpXOBegd8E,2188
353
354
  gr4vy/models/transactionconnectionoptions.py,sha256=w0hd7aV9Byy8BrN8qhSbygoiafOzX3A8q9tMZ95WMTI,19123
354
- gr4vy/models/transactioncreate.py,sha256=nrS_YJpqNaa-Om-8AnXzSOG_wKNp0TH79umQwE1fXXE,26445
355
+ gr4vy/models/transactioncreate.py,sha256=F-XjrUKfSf9JtafkUP_qRNFFL6Rp85FKHM8Zi26qUKs,27074
355
356
  gr4vy/models/transactionevent.py,sha256=rZm6VX53piqFWSMMP1rLsRqV2rw6_5J7BHrUt4Nfh2M,3871
356
357
  gr4vy/models/transactionevents.py,sha256=5l2Yc69SMePDlFtcby4i3BxGBkbT62SWQf4X5Xvfypw,2210
357
358
  gr4vy/models/transactiongiftcard.py,sha256=E4f_76ezJJdPlW9kIbrXt-PIx2Zgg3bhqPjVzhWdjpM,2329
@@ -410,7 +411,7 @@ gr4vy/reports_sdk.py,sha256=S7SF4TvPf8DEBMjh9flsDBgfM76Nf-GQzQ3950_7aDI,59641
410
411
  gr4vy/sdk.py,sha256=2hfDkFfqPXyFR8w4J0joQrk_5xirotLtFrRYu5glAq4,10519
411
412
  gr4vy/sdkconfiguration.py,sha256=aBQ8gY9aOjf1TL0kSLat8hEIoH4lCE9_PhihyhBpRE4,1985
412
413
  gr4vy/sessions.py,sha256=xuP2ijGiew7R9Ei4HxGSyysPl_dJ6O_TaKLuLPmnxZU,41621
413
- gr4vy/transactions.py,sha256=yGMQ8byhhFONoUZ1HAGD1poLF6kTCMowOMCnnSdoabM,168119
414
+ gr4vy/transactions.py,sha256=GehlV9-oCOo09fJKI2boy5m8jhDvb47c--uDGB3WjyI,168747
414
415
  gr4vy/transactions_refunds.py,sha256=lpOVupveezk8vzXI8CMUIUV2b889wYYvT4kF42KQU-M,43603
415
416
  gr4vy/transactions_settlements.py,sha256=IHzgj9udsM2xA_-bsjGgnKy8Wo4FDqRoHbCipTZR8uw,27758
416
417
  gr4vy/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
@@ -433,6 +434,6 @@ gr4vy/utils/unmarshal_json_response.py,sha256=H7jxugtMDuagdBXdpGiPf0Vr5-PWLETp8B
433
434
  gr4vy/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
434
435
  gr4vy/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
435
436
  gr4vy/webhooks.py,sha256=2L-ZhdK-XU2X0AkVqgZvhfRqDCKUVs7R4UNCmZJR78w,1359
436
- gr4vy-1.6.0.dist-info/METADATA,sha256=NpfH0teoId3F4laICvqzeOD6mLTVt9XQ3h_CKtnbqNY,44091
437
- gr4vy-1.6.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
438
- gr4vy-1.6.0.dist-info/RECORD,,
437
+ gr4vy-1.6.2.dist-info/METADATA,sha256=OHCjtMRxqBNg1i9kz0B6QJlZKEzTH1cMobfyzDtY2bc,44091
438
+ gr4vy-1.6.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
439
+ gr4vy-1.6.2.dist-info/RECORD,,
File without changes