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

Commit 9e82a40

Browse files
authored
Automated update by SDK Generator version:1.4.8 commit:be192d9 (#121)
1 parent 7b28eec commit 9e82a40

File tree

2 files changed

+13
-19
lines changed

2 files changed

+13
-19
lines changed

docs/models/LinkedEcommerceCustomer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ The customer this entity is linked to.
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**id** | **str, none_type** | The ID of the customer this entity is linked to. |
8+
**id** | **str, none_type** | The ID of the customer this entity is linked to. | [optional]
99
**name** | **str, none_type** | Full name of the customer | [optional]
1010
**first_name** | **str, none_type** | First name of the customer | [optional]
1111
**last_name** | **str, none_type** | Last name of the customer | [optional]
1212
**company_name** | **str, none_type** | Company name of the customer | [optional]
13-
**phone_numbers** | [**[PhoneNumber]**](PhoneNumber.md) | | [optional]
14-
**emails** | [**[Email]**](Email.md) | | [optional]
13+
**phone_numbers** | [**[PhoneNumber], none_type**](PhoneNumber.md) | | [optional]
14+
**emails** | [**[Email], none_type**](Email.md) | | [optional]
1515

1616
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
1717

src/apideck/model/linked_ecommerce_customer.py

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def openapi_types():
8888
'first_name': (str, none_type,), # noqa: E501
8989
'last_name': (str, none_type,), # noqa: E501
9090
'company_name': (str, none_type,), # noqa: E501
91-
'phone_numbers': ([PhoneNumber],), # noqa: E501
92-
'emails': ([Email],), # noqa: E501
91+
'phone_numbers': ([PhoneNumber], none_type,), # noqa: E501
92+
'emails': ([Email], none_type,), # noqa: E501
9393
}
9494

9595
@cached_property
@@ -114,12 +114,9 @@ def discriminator():
114114

115115
@classmethod
116116
@convert_js_args_to_python_args
117-
def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
117+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118118
"""LinkedEcommerceCustomer - a model defined in OpenAPI
119119
120-
Args:
121-
id (str, none_type): The ID of the customer this entity is linked to.
122-
123120
Keyword Args:
124121
_check_type (bool): if True, values for parameters in openapi_types
125122
will be type checked and a TypeError will be
@@ -151,12 +148,13 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
151148
Animal class but this time we won't travel
152149
through its discriminator because we passed in
153150
_visited_composed_classes = (Animal,)
151+
id (str, none_type): The ID of the customer this entity is linked to.. [optional] # noqa: E501
154152
name (str, none_type): Full name of the customer. [optional] # noqa: E501
155153
first_name (str, none_type): First name of the customer. [optional] # noqa: E501
156154
last_name (str, none_type): Last name of the customer. [optional] # noqa: E501
157155
company_name (str, none_type): Company name of the customer. [optional] # noqa: E501
158-
phone_numbers ([PhoneNumber]): [optional] # noqa: E501
159-
emails ([Email]): [optional] # noqa: E501
156+
phone_numbers ([PhoneNumber], none_type): [optional] # noqa: E501
157+
emails ([Email], none_type): [optional] # noqa: E501
160158
"""
161159

162160
_check_type = kwargs.pop('_check_type', True)
@@ -184,7 +182,6 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
184182
self._configuration = _configuration
185183
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
186184

187-
self.id = id
188185
for var_name, var_value in kwargs.items():
189186
if var_name not in self.attribute_map and \
190187
self._configuration is not None and \
@@ -205,12 +202,9 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
205202
])
206203

207204
@convert_js_args_to_python_args
208-
def __init__(self, id, *args, **kwargs): # noqa: E501
205+
def __init__(self, *args, **kwargs): # noqa: E501
209206
"""LinkedEcommerceCustomer - a model defined in OpenAPI
210207
211-
Args:
212-
id (str, none_type): The ID of the customer this entity is linked to.
213-
214208
Keyword Args:
215209
_check_type (bool): if True, values for parameters in openapi_types
216210
will be type checked and a TypeError will be
@@ -242,12 +236,13 @@ def __init__(self, id, *args, **kwargs): # noqa: E501
242236
Animal class but this time we won't travel
243237
through its discriminator because we passed in
244238
_visited_composed_classes = (Animal,)
239+
id (str, none_type): The ID of the customer this entity is linked to.. [optional] # noqa: E501
245240
name (str, none_type): Full name of the customer. [optional] # noqa: E501
246241
first_name (str, none_type): First name of the customer. [optional] # noqa: E501
247242
last_name (str, none_type): Last name of the customer. [optional] # noqa: E501
248243
company_name (str, none_type): Company name of the customer. [optional] # noqa: E501
249-
phone_numbers ([PhoneNumber]): [optional] # noqa: E501
250-
emails ([Email]): [optional] # noqa: E501
244+
phone_numbers ([PhoneNumber], none_type): [optional] # noqa: E501
245+
emails ([Email], none_type): [optional] # noqa: E501
251246
"""
252247

253248
_check_type = kwargs.pop('_check_type', True)
@@ -273,7 +268,6 @@ def __init__(self, id, *args, **kwargs): # noqa: E501
273268
self._configuration = _configuration
274269
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
275270

276-
self.id = id
277271
for var_name, var_value in kwargs.items():
278272
if var_name not in self.attribute_map and \
279273
self._configuration is not None and \

0 commit comments

Comments
 (0)