gr4vy 1.2.6__py3-none-any.whl → 1.2.7__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.2.6"
6
+ __version__: str = "1.2.7"
7
7
  __openapi_doc_version__: str = "1.0.0"
8
8
  __gen_version__: str = "2.698.4"
9
- __user_agent__: str = "speakeasy-sdk/python 1.2.6 2.698.4 1.0.0 gr4vy"
9
+ __user_agent__: str = "speakeasy-sdk/python 1.2.7 2.698.4 1.0.0 gr4vy"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
gr4vy/models/cartitem.py CHANGED
@@ -24,7 +24,7 @@ class CartItemTypedDict(TypedDict):
24
24
  external_identifier: NotRequired[Nullable[str]]
25
25
  r"""An external identifier for the cart item. This can be set to any value and is not sent to the payment service."""
26
26
  sku: NotRequired[Nullable[str]]
27
- r"""The SKU for the item."""
27
+ r"""The SKU or product code for the item."""
28
28
  product_url: NotRequired[Nullable[str]]
29
29
  r"""The product URL for the item."""
30
30
  image_url: NotRequired[Nullable[str]]
@@ -35,6 +35,18 @@ class CartItemTypedDict(TypedDict):
35
35
  r"""The product type of the cart item."""
36
36
  seller_country: NotRequired[Nullable[str]]
37
37
  r"""The seller country of the cart item."""
38
+ tax_exempt: NotRequired[Nullable[bool]]
39
+ r"""Whether the item is exempt of tax."""
40
+ unit_of_measure: NotRequired[Nullable[str]]
41
+ r"""The unit of measure or the unit of measure code."""
42
+ commodity_code: NotRequired[Nullable[str]]
43
+ r"""Item commodity code. Generally a UNSPSC code."""
44
+ description: NotRequired[Nullable[str]]
45
+ r"""Brief item description."""
46
+ duty_amount: NotRequired[Nullable[int]]
47
+ r"""Item import or export duties 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`"""
48
+ shipping_amount: NotRequired[Nullable[int]]
49
+ r"""Freight/shipping amount 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`"""
38
50
 
39
51
 
40
52
  class CartItem(BaseModel):
@@ -57,7 +69,7 @@ class CartItem(BaseModel):
57
69
  r"""An external identifier for the cart item. This can be set to any value and is not sent to the payment service."""
58
70
 
59
71
  sku: OptionalNullable[str] = UNSET
60
- r"""The SKU for the item."""
72
+ r"""The SKU or product code for the item."""
61
73
 
62
74
  product_url: OptionalNullable[str] = UNSET
63
75
  r"""The product URL for the item."""
@@ -76,6 +88,24 @@ class CartItem(BaseModel):
76
88
  seller_country: OptionalNullable[str] = UNSET
77
89
  r"""The seller country of the cart item."""
78
90
 
91
+ tax_exempt: OptionalNullable[bool] = UNSET
92
+ r"""Whether the item is exempt of tax."""
93
+
94
+ unit_of_measure: OptionalNullable[str] = UNSET
95
+ r"""The unit of measure or the unit of measure code."""
96
+
97
+ commodity_code: OptionalNullable[str] = UNSET
98
+ r"""Item commodity code. Generally a UNSPSC code."""
99
+
100
+ description: OptionalNullable[str] = UNSET
101
+ r"""Brief item description."""
102
+
103
+ duty_amount: OptionalNullable[int] = UNSET
104
+ r"""Item import or export duties 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`"""
105
+
106
+ shipping_amount: OptionalNullable[int] = UNSET
107
+ r"""Freight/shipping amount 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`"""
108
+
79
109
  @model_serializer(mode="wrap")
80
110
  def serialize_model(self, handler):
81
111
  optional_fields = [
@@ -88,6 +118,12 @@ class CartItem(BaseModel):
88
118
  "categories",
89
119
  "product_type",
90
120
  "seller_country",
121
+ "tax_exempt",
122
+ "unit_of_measure",
123
+ "commodity_code",
124
+ "description",
125
+ "duty_amount",
126
+ "shipping_amount",
91
127
  ]
92
128
  nullable_fields = [
93
129
  "discount_amount",
@@ -99,6 +135,12 @@ class CartItem(BaseModel):
99
135
  "categories",
100
136
  "product_type",
101
137
  "seller_country",
138
+ "tax_exempt",
139
+ "unit_of_measure",
140
+ "commodity_code",
141
+ "description",
142
+ "duty_amount",
143
+ "shipping_amount",
102
144
  ]
103
145
  null_default_fields = []
104
146
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: gr4vy
3
- Version: 1.2.6
3
+ Version: 1.2.7
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=ELOtV-VVQ99or_-3rl283R7AOp_waDfETodu_bX4e80,452
5
+ gr4vy/_version.py,sha256=q0HytcT-Ufu2eb9cR1kd39ChMZwWbInsDBleGYQb_4o,452
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
@@ -91,7 +91,7 @@ gr4vy/models/cardschemedefinition.py,sha256=MgFLopNSUGKdizom3RE8iJlfNk1AjB4YWEZn
91
91
  gr4vy/models/cardschemedefinitions.py,sha256=rFbZPBCYXCXltVYffBpjbck5VHSq44rALhfkaWf-WXw,578
92
92
  gr4vy/models/cardtype.py,sha256=leKYKJbtfriVyNQM6Bsl6rMXgB1L6dp9lzuUQ3olTWE,257
93
93
  gr4vy/models/cardwithurlpaymentmethodcreate.py,sha256=-wb5hnuwpgpG9PGDIapbHuqYZibKfTojiP1S0DuXL88,3934
94
- gr4vy/models/cartitem.py,sha256=hXYCflKMqjnjepVMNuW-XuU2nk8gPuKGkGmcD934n08,5726
94
+ gr4vy/models/cartitem.py,sha256=Hii-sbOSu0EaGze0P0GrSvW-Tlu2eeB_s8v_23LUtpM,7830
95
95
  gr4vy/models/checkoutpayoutoptions.py,sha256=TVvoTLsY4NYo6MJyEDEPZIU7FWodTvo-H-LfGdDiUtY,638
96
96
  gr4vy/models/checkoutsession.py,sha256=8F2605WfA_m7wZp-ifpHywytaXTMbVPEvQ7MuIP46HA,4386
97
97
  gr4vy/models/checkoutsessioncreate.py,sha256=-anN5QD3pAsvD4TBdUpKgp105_tAQ-qPwYoGDsupWH0,3043
@@ -428,6 +428,6 @@ gr4vy/utils/unmarshal_json_response.py,sha256=H7jxugtMDuagdBXdpGiPf0Vr5-PWLETp8B
428
428
  gr4vy/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
429
429
  gr4vy/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
430
430
  gr4vy/webhooks.py,sha256=2L-ZhdK-XU2X0AkVqgZvhfRqDCKUVs7R4UNCmZJR78w,1359
431
- gr4vy-1.2.6.dist-info/METADATA,sha256=Y-47ImpcrBpchgm5lf-Qb6ERCvzDORohx5gEJF9J3oQ,44151
432
- gr4vy-1.2.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
433
- gr4vy-1.2.6.dist-info/RECORD,,
431
+ gr4vy-1.2.7.dist-info/METADATA,sha256=36ThfcfEGya25tajoz9iu0Sk6JNTABf7A03ADR_XK-I,44151
432
+ gr4vy-1.2.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
433
+ gr4vy-1.2.7.dist-info/RECORD,,
File without changes