gr4vy 1.6.1__py3-none-any.whl → 1.6.3__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.1"
6
+ __version__: str = "1.6.3"
7
7
  __openapi_doc_version__: str = "1.0.0"
8
- __gen_version__: str = "2.728.0"
9
- __user_agent__: str = "speakeasy-sdk/python 1.6.1 2.728.0 1.0.0 gr4vy"
8
+ __gen_version__: str = "2.731.4"
9
+ __user_agent__: str = "speakeasy-sdk/python 1.6.3 2.731.4 1.0.0 gr4vy"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
gr4vy/models/__init__.py CHANGED
@@ -392,8 +392,8 @@ if TYPE_CHECKING:
392
392
  )
393
393
  from .forterantifraudoptionscartitembasicitemdata import (
394
394
  ForterAntiFraudOptionsCartItemBasicItemData,
395
+ ForterAntiFraudOptionsCartItemBasicItemDataType,
395
396
  ForterAntiFraudOptionsCartItemBasicItemDataTypedDict,
396
- Type,
397
397
  )
398
398
  from .forterantifraudoptionscartitembeneficiary import (
399
399
  ForterAntiFraudOptionsCartItemBeneficiary,
@@ -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,
@@ -901,6 +902,19 @@ if TYPE_CHECKING:
901
902
  from .payoutsummaries import PayoutSummaries, PayoutSummariesTypedDict
902
903
  from .payoutsummary import PayoutSummary, PayoutSummaryTypedDict
903
904
  from .paypaloptions import PaypalOptions, PaypalOptionsTypedDict
905
+ from .paypalshippingoptions import (
906
+ PaypalShippingOptions,
907
+ PaypalShippingOptionsTypedDict,
908
+ )
909
+ from .paypalshippingoptionsitem import (
910
+ PaypalShippingOptionsItem,
911
+ PaypalShippingOptionsItemType,
912
+ PaypalShippingOptionsItemTypedDict,
913
+ )
914
+ from .paypalshippingoptionsitemamount import (
915
+ PaypalShippingOptionsItemAmount,
916
+ PaypalShippingOptionsItemAmountTypedDict,
917
+ )
904
918
  from .powertranzoptions import PowertranzOptions, PowertranzOptionsTypedDict
905
919
  from .producttype import ProductType
906
920
  from .recipient import Recipient, RecipientTypedDict
@@ -1455,6 +1469,7 @@ __all__ = [
1455
1469
  "ForterAntiFraudOptions",
1456
1470
  "ForterAntiFraudOptionsCartItem",
1457
1471
  "ForterAntiFraudOptionsCartItemBasicItemData",
1472
+ "ForterAntiFraudOptionsCartItemBasicItemDataType",
1458
1473
  "ForterAntiFraudOptionsCartItemBasicItemDataTypedDict",
1459
1474
  "ForterAntiFraudOptionsCartItemBeneficiary",
1460
1475
  "ForterAntiFraudOptionsCartItemBeneficiaryAddress",
@@ -1588,6 +1603,7 @@ __all__ = [
1588
1603
  "GuestBuyerOutput",
1589
1604
  "GuestBuyerOutputTypedDict",
1590
1605
  "InstrumentType",
1606
+ "IntegrationClient",
1591
1607
  "Item",
1592
1608
  "ItemTypedDict",
1593
1609
  "LatitudeOptions",
@@ -1828,6 +1844,13 @@ __all__ = [
1828
1844
  "PayoutSummaryTypedDict",
1829
1845
  "PaypalOptions",
1830
1846
  "PaypalOptionsTypedDict",
1847
+ "PaypalShippingOptions",
1848
+ "PaypalShippingOptionsItem",
1849
+ "PaypalShippingOptionsItemAmount",
1850
+ "PaypalShippingOptionsItemAmountTypedDict",
1851
+ "PaypalShippingOptionsItemType",
1852
+ "PaypalShippingOptionsItemTypedDict",
1853
+ "PaypalShippingOptionsTypedDict",
1831
1854
  "PowertranzOptions",
1832
1855
  "PowertranzOptionsTypedDict",
1833
1856
  "ProductType",
@@ -1996,7 +2019,6 @@ __all__ = [
1996
2019
  "TravelhubOptionsTypedDict",
1997
2020
  "TrustlyOptions",
1998
2021
  "TrustlyOptionsTypedDict",
1999
- "Type",
2000
2022
  "UnregisterDigitalWalletDomainGlobals",
2001
2023
  "UnregisterDigitalWalletDomainGlobalsTypedDict",
2002
2024
  "UnregisterDigitalWalletDomainRequest",
@@ -2363,8 +2385,8 @@ _dynamic_imports: dict[str, str] = {
2363
2385
  "ForterAntiFraudOptionsCartItem": ".forterantifraudoptionscartitem",
2364
2386
  "ForterAntiFraudOptionsCartItemTypedDict": ".forterantifraudoptionscartitem",
2365
2387
  "ForterAntiFraudOptionsCartItemBasicItemData": ".forterantifraudoptionscartitembasicitemdata",
2388
+ "ForterAntiFraudOptionsCartItemBasicItemDataType": ".forterantifraudoptionscartitembasicitemdata",
2366
2389
  "ForterAntiFraudOptionsCartItemBasicItemDataTypedDict": ".forterantifraudoptionscartitembasicitemdata",
2367
- "Type": ".forterantifraudoptionscartitembasicitemdata",
2368
2390
  "ForterAntiFraudOptionsCartItemBeneficiary": ".forterantifraudoptionscartitembeneficiary",
2369
2391
  "ForterAntiFraudOptionsCartItemBeneficiaryTypedDict": ".forterantifraudoptionscartitembeneficiary",
2370
2392
  "ForterAntiFraudOptionsCartItemBeneficiaryAddress": ".forterantifraudoptionscartitembeneficiaryaddress",
@@ -2496,6 +2518,7 @@ _dynamic_imports: dict[str, str] = {
2496
2518
  "GuestBuyerOutput": ".guestbuyer_output",
2497
2519
  "GuestBuyerOutputTypedDict": ".guestbuyer_output",
2498
2520
  "InstrumentType": ".instrumenttype",
2521
+ "IntegrationClient": ".integrationclient",
2499
2522
  "LatitudeOptions": ".latitudeoptions",
2500
2523
  "LatitudeOptionsTypedDict": ".latitudeoptions",
2501
2524
  "ListAllReportExecutionsGlobals": ".list_all_report_executionsop",
@@ -2738,6 +2761,13 @@ _dynamic_imports: dict[str, str] = {
2738
2761
  "PayoutSummaryTypedDict": ".payoutsummary",
2739
2762
  "PaypalOptions": ".paypaloptions",
2740
2763
  "PaypalOptionsTypedDict": ".paypaloptions",
2764
+ "PaypalShippingOptions": ".paypalshippingoptions",
2765
+ "PaypalShippingOptionsTypedDict": ".paypalshippingoptions",
2766
+ "PaypalShippingOptionsItem": ".paypalshippingoptionsitem",
2767
+ "PaypalShippingOptionsItemType": ".paypalshippingoptionsitem",
2768
+ "PaypalShippingOptionsItemTypedDict": ".paypalshippingoptionsitem",
2769
+ "PaypalShippingOptionsItemAmount": ".paypalshippingoptionsitemamount",
2770
+ "PaypalShippingOptionsItemAmountTypedDict": ".paypalshippingoptionsitemamount",
2741
2771
  "PowertranzOptions": ".powertranzoptions",
2742
2772
  "PowertranzOptionsTypedDict": ".powertranzoptions",
2743
2773
  "ProductType": ".producttype",
@@ -16,7 +16,7 @@ from typing import Literal, Union
16
16
  from typing_extensions import Annotated, NotRequired, TypedDict
17
17
 
18
18
 
19
- Type = Union[
19
+ ForterAntiFraudOptionsCartItemBasicItemDataType = Union[
20
20
  Literal[
21
21
  "TANGIBLE",
22
22
  "NON_TANGIBLE",
@@ -26,13 +26,14 @@ Type = Union[
26
26
 
27
27
 
28
28
  class ForterAntiFraudOptionsCartItemBasicItemDataTypedDict(TypedDict):
29
- type: NotRequired[Nullable[Type]]
29
+ type: NotRequired[Nullable[ForterAntiFraudOptionsCartItemBasicItemDataType]]
30
30
  r"""Indicates whether the item is a physical good or a service/digital item."""
31
31
 
32
32
 
33
33
  class ForterAntiFraudOptionsCartItemBasicItemData(BaseModel):
34
34
  type: Annotated[
35
- OptionalNullable[Type], PlainValidator(validate_open_enum(False))
35
+ OptionalNullable[ForterAntiFraudOptionsCartItemBasicItemDataType],
36
+ PlainValidator(validate_open_enum(False)),
36
37
  ] = UNSET
37
38
  r"""Indicates whether the item is a physical good or a service/digital item."""
38
39
 
@@ -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)
@@ -1,6 +1,7 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
+ from .paypalshippingoptions import PaypalShippingOptions, PaypalShippingOptionsTypedDict
4
5
  from gr4vy.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
5
6
  from pydantic import model_serializer
6
7
  from typing import Dict, List
@@ -10,16 +11,21 @@ from typing_extensions import NotRequired, TypedDict
10
11
  class PaypalOptionsTypedDict(TypedDict):
11
12
  additional_data: NotRequired[Nullable[List[Dict[str, str]]]]
12
13
  r"""Additional Set Transaction Context Values (STC) to be sent to PayPal as part of the transaction."""
14
+ shipping: NotRequired[Nullable[PaypalShippingOptionsTypedDict]]
15
+ r"""Shipping information to be passed to the PayPal API."""
13
16
 
14
17
 
15
18
  class PaypalOptions(BaseModel):
16
19
  additional_data: OptionalNullable[List[Dict[str, str]]] = UNSET
17
20
  r"""Additional Set Transaction Context Values (STC) to be sent to PayPal as part of the transaction."""
18
21
 
22
+ shipping: OptionalNullable[PaypalShippingOptions] = UNSET
23
+ r"""Shipping information to be passed to the PayPal API."""
24
+
19
25
  @model_serializer(mode="wrap")
20
26
  def serialize_model(self, handler):
21
- optional_fields = ["additional_data"]
22
- nullable_fields = ["additional_data"]
27
+ optional_fields = ["additional_data", "shipping"]
28
+ nullable_fields = ["additional_data", "shipping"]
23
29
  null_default_fields = []
24
30
 
25
31
  serialized = handler(self)
@@ -0,0 +1,51 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .paypalshippingoptionsitem import (
5
+ PaypalShippingOptionsItem,
6
+ PaypalShippingOptionsItemTypedDict,
7
+ )
8
+ from gr4vy.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
9
+ from pydantic import model_serializer
10
+ from typing import List
11
+ from typing_extensions import NotRequired, TypedDict
12
+
13
+
14
+ class PaypalShippingOptionsTypedDict(TypedDict):
15
+ options: NotRequired[Nullable[List[PaypalShippingOptionsItemTypedDict]]]
16
+ r"""Shipping options that the payee or merchant offers to the payer to ship or pick up their items."""
17
+
18
+
19
+ class PaypalShippingOptions(BaseModel):
20
+ options: OptionalNullable[List[PaypalShippingOptionsItem]] = UNSET
21
+ r"""Shipping options that the payee or merchant offers to the payer to ship or pick up their items."""
22
+
23
+ @model_serializer(mode="wrap")
24
+ def serialize_model(self, handler):
25
+ optional_fields = ["options"]
26
+ nullable_fields = ["options"]
27
+ null_default_fields = []
28
+
29
+ serialized = handler(self)
30
+
31
+ m = {}
32
+
33
+ for n, f in type(self).model_fields.items():
34
+ k = f.alias or n
35
+ val = serialized.get(k)
36
+ serialized.pop(k, None)
37
+
38
+ optional_nullable = k in optional_fields and k in nullable_fields
39
+ is_set = (
40
+ self.__pydantic_fields_set__.intersection({n})
41
+ or k in null_default_fields
42
+ ) # pylint: disable=no-member
43
+
44
+ if val is not None and val != UNSET_SENTINEL:
45
+ m[k] = val
46
+ elif val != UNSET_SENTINEL and (
47
+ not k in optional_fields or (optional_nullable and is_set)
48
+ ):
49
+ m[k] = val
50
+
51
+ return m
@@ -0,0 +1,94 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .paypalshippingoptionsitemamount import (
5
+ PaypalShippingOptionsItemAmount,
6
+ PaypalShippingOptionsItemAmountTypedDict,
7
+ )
8
+ from gr4vy.types import (
9
+ BaseModel,
10
+ Nullable,
11
+ OptionalNullable,
12
+ UNSET,
13
+ UNSET_SENTINEL,
14
+ UnrecognizedStr,
15
+ )
16
+ from gr4vy.utils import validate_open_enum
17
+ from pydantic import model_serializer
18
+ from pydantic.functional_validators import PlainValidator
19
+ from typing import Literal, Union
20
+ from typing_extensions import Annotated, NotRequired, TypedDict
21
+
22
+
23
+ PaypalShippingOptionsItemType = Union[
24
+ Literal[
25
+ "SHIPPING",
26
+ "PICKUP",
27
+ "PICKUP_IN_STORE",
28
+ "PICKUP_FROM_PERSON",
29
+ ],
30
+ UnrecognizedStr,
31
+ ]
32
+
33
+
34
+ class PaypalShippingOptionsItemTypedDict(TypedDict):
35
+ id: str
36
+ r"""A unique ID that identifies a payer-selected shipping option."""
37
+ label: str
38
+ r"""A description that the payer sees, which helps them choose an appropriate shipping option."""
39
+ selected: bool
40
+ r"""If the API request sets selected = true, it represents the shipping option that the payee or merchant expects to be pre-selected for the payer when they first view the shipping.options in the PayPal Checkout experience. Only one shipping.option can be set to selected=true."""
41
+ type: NotRequired[Nullable[PaypalShippingOptionsItemType]]
42
+ r"""A classification for the method of purchase fulfillment."""
43
+ amount: NotRequired[Nullable[PaypalShippingOptionsItemAmountTypedDict]]
44
+ r"""The shipping cost for the selected option."""
45
+
46
+
47
+ class PaypalShippingOptionsItem(BaseModel):
48
+ id: str
49
+ r"""A unique ID that identifies a payer-selected shipping option."""
50
+
51
+ label: str
52
+ r"""A description that the payer sees, which helps them choose an appropriate shipping option."""
53
+
54
+ selected: bool
55
+ r"""If the API request sets selected = true, it represents the shipping option that the payee or merchant expects to be pre-selected for the payer when they first view the shipping.options in the PayPal Checkout experience. Only one shipping.option can be set to selected=true."""
56
+
57
+ type: Annotated[
58
+ OptionalNullable[PaypalShippingOptionsItemType],
59
+ PlainValidator(validate_open_enum(False)),
60
+ ] = UNSET
61
+ r"""A classification for the method of purchase fulfillment."""
62
+
63
+ amount: OptionalNullable[PaypalShippingOptionsItemAmount] = UNSET
64
+ r"""The shipping cost for the selected option."""
65
+
66
+ @model_serializer(mode="wrap")
67
+ def serialize_model(self, handler):
68
+ optional_fields = ["type", "amount"]
69
+ nullable_fields = ["type", "amount"]
70
+ null_default_fields = []
71
+
72
+ serialized = handler(self)
73
+
74
+ m = {}
75
+
76
+ for n, f in type(self).model_fields.items():
77
+ k = f.alias or n
78
+ val = serialized.get(k)
79
+ serialized.pop(k, None)
80
+
81
+ optional_nullable = k in optional_fields and k in nullable_fields
82
+ is_set = (
83
+ self.__pydantic_fields_set__.intersection({n})
84
+ or k in null_default_fields
85
+ ) # pylint: disable=no-member
86
+
87
+ if val is not None and val != UNSET_SENTINEL:
88
+ m[k] = val
89
+ elif val != UNSET_SENTINEL and (
90
+ not k in optional_fields or (optional_nullable and is_set)
91
+ ):
92
+ m[k] = val
93
+
94
+ return m
@@ -0,0 +1,20 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from gr4vy.types import BaseModel
5
+ from typing_extensions import TypedDict
6
+
7
+
8
+ class PaypalShippingOptionsItemAmountTypedDict(TypedDict):
9
+ currency_code: str
10
+ r"""The three-character ISO currency code."""
11
+ value: str
12
+ r"""The amount value, which might include a decimal portion."""
13
+
14
+
15
+ class PaypalShippingOptionsItemAmount(BaseModel):
16
+ currency_code: str
17
+ r"""The three-character ISO currency code."""
18
+
19
+ value: str
20
+ r"""The amount value, which might include a decimal portion."""
@@ -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.1
3
+ Version: 1.6.3
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=ekwBrERTu3ltlrV7WlyQcjjHLjzV5snu0zxlHyF13OE,452
5
+ gr4vy/_version.py,sha256=X_n2-s-UjtAOy6PfMwer4AUVgC_Gs_hns_pmy9aqiw0,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=m-3vS_ftlfy4mycslUCZlBDB8K-ZxujUhR6NCNLQwz4,134379
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
@@ -160,7 +160,7 @@ gr4vy/models/fiservinstallmentoptions.py,sha256=gkEIrbECotEMSZ1uzjxQ-q6CM1q6s_0P
160
160
  gr4vy/models/fiservoptions.py,sha256=vrA5y1DRsVbFFZ3y1f3y9XZWahrPtAPa0uYr-dZ5Xf0,1885
161
161
  gr4vy/models/forterantifraudoptions.py,sha256=ZdH4nFBPoFiCzpXGcge1s9aAeK0fSqqXuzkxXQ-uOR8,3457
162
162
  gr4vy/models/forterantifraudoptionscartitem.py,sha256=Pp0YWzKCgwMM_RyZVyFd2q9vwNWQJ8cZsr6yJW3lfcM,2923
163
- gr4vy/models/forterantifraudoptionscartitembasicitemdata.py,sha256=_uwQEgi6aBv-RYzir9DVpadzzdmpNKWMg6HHXPRAPP0,1935
163
+ gr4vy/models/forterantifraudoptionscartitembasicitemdata.py,sha256=MZ-FP7_7VN49N1f3SjXUyExUHAqzKKm-biLs7i-NTWo,2073
164
164
  gr4vy/models/forterantifraudoptionscartitembeneficiary.py,sha256=NaS2eNRglddg4YQctkjZlg6TNCWHry92W59Y0x7heLU,3258
165
165
  gr4vy/models/forterantifraudoptionscartitembeneficiaryaddress.py,sha256=GOEOm7F2fTEkUpDWs4cSlPgDNMTJXw6LMqCNLkxjiG8,2751
166
166
  gr4vy/models/forterantifraudoptionscartitembeneficiarycomments.py,sha256=CT2Bql-VBK_ovcoUVN5I4MsmPVVccgg1aIrbWZeU8Rg,2252
@@ -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
@@ -296,7 +297,10 @@ gr4vy/models/payoutpaymentservice.py,sha256=hdY8gf6uG9GHxBKve9OatNiRoKSCsoDClGlv
296
297
  gr4vy/models/payoutstatus.py,sha256=noJUkRfZ4ShNUbU9Lo1c8x5UzPVy3bselJ3-fcN_yKM,327
297
298
  gr4vy/models/payoutsummaries.py,sha256=n9rCKfAKn77Cyvy8WCfkKtCTI-wDxSJNraJBqT_RnV8,2191
298
299
  gr4vy/models/payoutsummary.py,sha256=qnx3ShxDXmkKk8LXgGDtVatyxPqPjXneYarXGK_AiOQ,5435
299
- gr4vy/models/paypaloptions.py,sha256=NIFg4LSHHC0V0SOFvJ6Q5ya3WtzFLeqNKYNt2mIK9oQ,1666
300
+ gr4vy/models/paypaloptions.py,sha256=aY81ZsVtUgXnGmzSxWoHI3KhMs-_gCZpA6hjbS7sFB8,2038
301
+ gr4vy/models/paypalshippingoptions.py,sha256=85pRPBHzUzhNnoF8sFRjaQ2d64-hIXr-AMDj6z1FUZQ,1787
302
+ gr4vy/models/paypalshippingoptionsitem.py,sha256=Q09suxnZ3fIxUpOuyGpNljfPfFKoq82V0L0-Wyt7rSI,3424
303
+ gr4vy/models/paypalshippingoptionsitemamount.py,sha256=YuROvTE2ngGuHajoRnIRY3NwSr3mtADnHes3Xao2llA,608
300
304
  gr4vy/models/powertranzoptions.py,sha256=ZJAZVTggH_fMMwvMlNvJGe0RpLcASaWBmH5Ln7SgxrU,1692
301
305
  gr4vy/models/producttype.py,sha256=qsHybq-2rssJDt3greV0fng-wnHKVaFWGMvf3-52u70,418
302
306
  gr4vy/models/recipient.py,sha256=ORw0V4wDt3ytidIDj0Dmut92naYoRkMznh0LKuK17Rs,2568
@@ -345,13 +349,13 @@ gr4vy/models/threedsecuremethod.py,sha256=SZYNn4TSu2K_-VE458NaWtNpNZl1Y8WFJFQwMu
345
349
  gr4vy/models/threedsecurestatus.py,sha256=ok7YxtoF76wJY9htTMKVmZqGWwDkVQPdFs3lEoIg9eI,356
346
350
  gr4vy/models/threedsecurev2.py,sha256=tbl7LU6hrQaC-stDPQYXJApr62A2HgJD17YvD06IsnU,2441
347
351
  gr4vy/models/tokenpaymentmethodcreate.py,sha256=vuhZCgZvu9d7U7DAjBN6Bx8tJ29Yx-LCxrmijXaWUj0,2681
348
- gr4vy/models/transaction.py,sha256=kVgmE9-cM9ONveiuPhEi1PSGXlLexVJmtmeCrwpif-A,24655
352
+ gr4vy/models/transaction.py,sha256=vpzG0BzxZvHA1zEagbsPy7Ka9YwgyoJmThzesIcTAcA,25005
349
353
  gr4vy/models/transactionbuyer.py,sha256=7VxBYmR7IBNA082NqCCdwWtOjyK9ut5dPS4M-6rVHjE,3074
350
354
  gr4vy/models/transactioncancel.py,sha256=OHP0xmmM374aaYXPeV0G2fZn5RRfxbTAzJnNospfCas,3162
351
355
  gr4vy/models/transactioncapture.py,sha256=7WD3uoUyDJ1sejtjIb7b5B5BFtpKEi7KkegVtB0DLTg,3174
352
356
  gr4vy/models/transactioncapturecreate.py,sha256=Hs8tTi8iG3xUBptznKHfUD7rvcGZX0OwDzpXOBegd8E,2188
353
357
  gr4vy/models/transactionconnectionoptions.py,sha256=w0hd7aV9Byy8BrN8qhSbygoiafOzX3A8q9tMZ95WMTI,19123
354
- gr4vy/models/transactioncreate.py,sha256=nrS_YJpqNaa-Om-8AnXzSOG_wKNp0TH79umQwE1fXXE,26445
358
+ gr4vy/models/transactioncreate.py,sha256=F-XjrUKfSf9JtafkUP_qRNFFL6Rp85FKHM8Zi26qUKs,27074
355
359
  gr4vy/models/transactionevent.py,sha256=rZm6VX53piqFWSMMP1rLsRqV2rw6_5J7BHrUt4Nfh2M,3871
356
360
  gr4vy/models/transactionevents.py,sha256=5l2Yc69SMePDlFtcby4i3BxGBkbT62SWQf4X5Xvfypw,2210
357
361
  gr4vy/models/transactiongiftcard.py,sha256=E4f_76ezJJdPlW9kIbrXt-PIx2Zgg3bhqPjVzhWdjpM,2329
@@ -410,7 +414,7 @@ gr4vy/reports_sdk.py,sha256=S7SF4TvPf8DEBMjh9flsDBgfM76Nf-GQzQ3950_7aDI,59641
410
414
  gr4vy/sdk.py,sha256=2hfDkFfqPXyFR8w4J0joQrk_5xirotLtFrRYu5glAq4,10519
411
415
  gr4vy/sdkconfiguration.py,sha256=aBQ8gY9aOjf1TL0kSLat8hEIoH4lCE9_PhihyhBpRE4,1985
412
416
  gr4vy/sessions.py,sha256=xuP2ijGiew7R9Ei4HxGSyysPl_dJ6O_TaKLuLPmnxZU,41621
413
- gr4vy/transactions.py,sha256=yGMQ8byhhFONoUZ1HAGD1poLF6kTCMowOMCnnSdoabM,168119
417
+ gr4vy/transactions.py,sha256=GehlV9-oCOo09fJKI2boy5m8jhDvb47c--uDGB3WjyI,168747
414
418
  gr4vy/transactions_refunds.py,sha256=lpOVupveezk8vzXI8CMUIUV2b889wYYvT4kF42KQU-M,43603
415
419
  gr4vy/transactions_settlements.py,sha256=IHzgj9udsM2xA_-bsjGgnKy8Wo4FDqRoHbCipTZR8uw,27758
416
420
  gr4vy/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
@@ -433,6 +437,6 @@ gr4vy/utils/unmarshal_json_response.py,sha256=H7jxugtMDuagdBXdpGiPf0Vr5-PWLETp8B
433
437
  gr4vy/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
434
438
  gr4vy/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
435
439
  gr4vy/webhooks.py,sha256=2L-ZhdK-XU2X0AkVqgZvhfRqDCKUVs7R4UNCmZJR78w,1359
436
- gr4vy-1.6.1.dist-info/METADATA,sha256=G-u5rJ1los0KwoooCUBcv_6rxGtSaKcog6HPph8K5qc,44091
437
- gr4vy-1.6.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
438
- gr4vy-1.6.1.dist-info/RECORD,,
440
+ gr4vy-1.6.3.dist-info/METADATA,sha256=LT2_tvVh-aaSq5805wefm0glYh4C4ly-1ypAPO23jHA,44091
441
+ gr4vy-1.6.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
442
+ gr4vy-1.6.3.dist-info/RECORD,,
File without changes