Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit fee1f09

Browse files
Automated update by SDK Generator version:1.4.8 commit:5dec7ad
1 parent 755441e commit fee1f09

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

docs/models/EcommerceOrderLineItem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**name** | **str, none_type** | The name of the product or variant associated with the line item. |
99
**quantity** | **str, none_type** | The quantity of the product or variant associated with the line item. |
10-
**total_amount** | **str, none_type** | The total amount for the product(s) or variant associated with the line item, including taxes and discounts. |
1110
**id** | **str, none_type** | A unique identifier for an object. | [optional] [readonly]
1211
**product_id** | **str, none_type** | A unique identifier for the product associated with the line item. | [optional]
1312
**variant_id** | **str, none_type** | A unique identifier for the variant of the product associated with the line item, if applicable. | [optional]
@@ -21,6 +20,7 @@ Name | Type | Description | Notes
2120
**refunded_amount** | **str, none_type** | The amount of the line item that has been refunded. | [optional]
2221
**refunded_quantity** | **str, none_type** | The quantity of the line item that has been refunded. | [optional]
2322
**sub_total** | **str, none_type** | The sub total for the product(s) or variant associated with the line item, excluding taxes and discounts. | [optional]
23+
**total_amount** | **str, none_type** | The total amount for the product(s) or variant associated with the line item, including taxes and discounts. | [optional]
2424
**discounts** | [**[EcommerceDiscount]**](EcommerceDiscount.md) | | [optional]
2525
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
2626

src/apideck/model/ecommerce_order_line_item.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ def openapi_types():
9090
return {
9191
'name': (str, none_type,), # noqa: E501
9292
'quantity': (str, none_type,), # noqa: E501
93-
'total_amount': (str, none_type,), # noqa: E501
9493
'id': (str, none_type,), # noqa: E501
9594
'product_id': (str, none_type,), # noqa: E501
9695
'variant_id': (str, none_type,), # noqa: E501
@@ -104,6 +103,7 @@ def openapi_types():
104103
'refunded_amount': (str, none_type,), # noqa: E501
105104
'refunded_quantity': (str, none_type,), # noqa: E501
106105
'sub_total': (str, none_type,), # noqa: E501
106+
'total_amount': (str, none_type,), # noqa: E501
107107
'discounts': ([EcommerceDiscount],), # noqa: E501
108108
}
109109

@@ -115,7 +115,6 @@ def discriminator():
115115
attribute_map = {
116116
'name': 'name', # noqa: E501
117117
'quantity': 'quantity', # noqa: E501
118-
'total_amount': 'total_amount', # noqa: E501
119118
'id': 'id', # noqa: E501
120119
'product_id': 'product_id', # noqa: E501
121120
'variant_id': 'variant_id', # noqa: E501
@@ -129,6 +128,7 @@ def discriminator():
129128
'refunded_amount': 'refunded_amount', # noqa: E501
130129
'refunded_quantity': 'refunded_quantity', # noqa: E501
131130
'sub_total': 'sub_total', # noqa: E501
131+
'total_amount': 'total_amount', # noqa: E501
132132
'discounts': 'discounts', # noqa: E501
133133
}
134134

@@ -140,13 +140,12 @@ def discriminator():
140140

141141
@classmethod
142142
@convert_js_args_to_python_args
143-
def _from_openapi_data(cls, name, quantity, total_amount, *args, **kwargs): # noqa: E501
143+
def _from_openapi_data(cls, name, quantity, *args, **kwargs): # noqa: E501
144144
"""EcommerceOrderLineItem - a model defined in OpenAPI
145145
146146
Args:
147147
name (str, none_type): The name of the product or variant associated with the line item.
148148
quantity (str, none_type): The quantity of the product or variant associated with the line item.
149-
total_amount (str, none_type): The total amount for the product(s) or variant associated with the line item, including taxes and discounts.
150149
151150
Keyword Args:
152151
_check_type (bool): if True, values for parameters in openapi_types
@@ -192,6 +191,7 @@ def _from_openapi_data(cls, name, quantity, total_amount, *args, **kwargs): # n
192191
refunded_amount (str, none_type): The amount of the line item that has been refunded.. [optional] # noqa: E501
193192
refunded_quantity (str, none_type): The quantity of the line item that has been refunded.. [optional] # noqa: E501
194193
sub_total (str, none_type): The sub total for the product(s) or variant associated with the line item, excluding taxes and discounts.. [optional] # noqa: E501
194+
total_amount (str, none_type): The total amount for the product(s) or variant associated with the line item, including taxes and discounts.. [optional] # noqa: E501
195195
discounts ([EcommerceDiscount]): [optional] # noqa: E501
196196
"""
197197

@@ -222,7 +222,6 @@ def _from_openapi_data(cls, name, quantity, total_amount, *args, **kwargs): # n
222222

223223
self.name = name
224224
self.quantity = quantity
225-
self.total_amount = total_amount
226225
for var_name, var_value in kwargs.items():
227226
if var_name not in self.attribute_map and \
228227
self._configuration is not None and \
@@ -243,13 +242,12 @@ def _from_openapi_data(cls, name, quantity, total_amount, *args, **kwargs): # n
243242
])
244243

245244
@convert_js_args_to_python_args
246-
def __init__(self, name, quantity, total_amount, *args, **kwargs): # noqa: E501
245+
def __init__(self, name, quantity, *args, **kwargs): # noqa: E501
247246
"""EcommerceOrderLineItem - a model defined in OpenAPI
248247
249248
Args:
250249
name (str, none_type): The name of the product or variant associated with the line item.
251250
quantity (str, none_type): The quantity of the product or variant associated with the line item.
252-
total_amount (str, none_type): The total amount for the product(s) or variant associated with the line item, including taxes and discounts.
253251
254252
Keyword Args:
255253
_check_type (bool): if True, values for parameters in openapi_types
@@ -295,6 +293,7 @@ def __init__(self, name, quantity, total_amount, *args, **kwargs): # noqa: E501
295293
refunded_amount (str, none_type): The amount of the line item that has been refunded.. [optional] # noqa: E501
296294
refunded_quantity (str, none_type): The quantity of the line item that has been refunded.. [optional] # noqa: E501
297295
sub_total (str, none_type): The sub total for the product(s) or variant associated with the line item, excluding taxes and discounts.. [optional] # noqa: E501
296+
total_amount (str, none_type): The total amount for the product(s) or variant associated with the line item, including taxes and discounts.. [optional] # noqa: E501
298297
discounts ([EcommerceDiscount]): [optional] # noqa: E501
299298
"""
300299

@@ -323,7 +322,6 @@ def __init__(self, name, quantity, total_amount, *args, **kwargs): # noqa: E501
323322

324323
self.name = name
325324
self.quantity = quantity
326-
self.total_amount = total_amount
327325
for var_name, var_value in kwargs.items():
328326
if var_name not in self.attribute_map and \
329327
self._configuration is not None and \

0 commit comments

Comments
 (0)