Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/models/LinkedEcommerceCustomer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ The customer this entity is linked to.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str, none_type** | The ID of the customer this entity is linked to. |
**id** | **str, none_type** | The ID of the customer this entity is linked to. | [optional]
**name** | **str, none_type** | Full name of the customer | [optional]
**first_name** | **str, none_type** | First name of the customer | [optional]
**last_name** | **str, none_type** | Last name of the customer | [optional]
**company_name** | **str, none_type** | Company name of the customer | [optional]
**phone_numbers** | [**[PhoneNumber]**](PhoneNumber.md) | | [optional]
**emails** | [**[Email]**](Email.md) | | [optional]
**phone_numbers** | [**[PhoneNumber], none_type**](PhoneNumber.md) | | [optional]
**emails** | [**[Email], none_type**](Email.md) | | [optional]

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

Expand Down
26 changes: 10 additions & 16 deletions src/apideck/model/linked_ecommerce_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def openapi_types():
'first_name': (str, none_type,), # noqa: E501
'last_name': (str, none_type,), # noqa: E501
'company_name': (str, none_type,), # noqa: E501
'phone_numbers': ([PhoneNumber],), # noqa: E501
'emails': ([Email],), # noqa: E501
'phone_numbers': ([PhoneNumber], none_type,), # noqa: E501
'emails': ([Email], none_type,), # noqa: E501
}

@cached_property
Expand All @@ -114,12 +114,9 @@ def discriminator():

@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
"""LinkedEcommerceCustomer - a model defined in OpenAPI

Args:
id (str, none_type): The ID of the customer this entity is linked to.

Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
Expand Down Expand Up @@ -151,12 +148,13 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
id (str, none_type): The ID of the customer this entity is linked to.. [optional] # noqa: E501
name (str, none_type): Full name of the customer. [optional] # noqa: E501
first_name (str, none_type): First name of the customer. [optional] # noqa: E501
last_name (str, none_type): Last name of the customer. [optional] # noqa: E501
company_name (str, none_type): Company name of the customer. [optional] # noqa: E501
phone_numbers ([PhoneNumber]): [optional] # noqa: E501
emails ([Email]): [optional] # noqa: E501
phone_numbers ([PhoneNumber], none_type): [optional] # noqa: E501
emails ([Email], none_type): [optional] # noqa: E501
"""

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

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

@convert_js_args_to_python_args
def __init__(self, id, *args, **kwargs): # noqa: E501
def __init__(self, *args, **kwargs): # noqa: E501
"""LinkedEcommerceCustomer - a model defined in OpenAPI

Args:
id (str, none_type): The ID of the customer this entity is linked to.

Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
Expand Down Expand Up @@ -242,12 +236,13 @@ def __init__(self, id, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
id (str, none_type): The ID of the customer this entity is linked to.. [optional] # noqa: E501
name (str, none_type): Full name of the customer. [optional] # noqa: E501
first_name (str, none_type): First name of the customer. [optional] # noqa: E501
last_name (str, none_type): Last name of the customer. [optional] # noqa: E501
company_name (str, none_type): Company name of the customer. [optional] # noqa: E501
phone_numbers ([PhoneNumber]): [optional] # noqa: E501
emails ([Email]): [optional] # noqa: E501
phone_numbers ([PhoneNumber], none_type): [optional] # noqa: E501
emails ([Email], none_type): [optional] # noqa: E501
"""

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

self.id = id
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
self._configuration is not None and \
Expand Down
Loading