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

Automated update by SDK Generator #137

Merged
merged 1 commit into from
May 20, 2025
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
2 changes: 1 addition & 1 deletion docs/models/Lead.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | Full name of the lead. |
**company_name** | **str, none_type** | The name of the company the lead is associated with. |
**id** | **str** | Unique identifier for the contact. | [optional] [readonly]
**company_name** | **str, none_type** | The name of the company the lead is associated with. | [optional]
**owner_id** | **str, none_type** | The owner of the lead. | [optional]
**owner_name** | **str, none_type** | The name of the owner of the lead. | [optional]
**company_id** | **str, none_type** | The company the lead is associated with. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/models/OtherExpenses.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ The other expenses accounts
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**total** | **float, none_type** | The aggregated total of all accounts within this category. |
**records** | [**ProfitAndLossRecords**](ProfitAndLossRecords.md) | |
**id** | **str** | A unique identifier for an object. | [optional] [readonly]
**code** | **str** | The account code of the account | [optional] [readonly]
**title** | **str** | The name of the account. | [optional] [readonly]
**type** | [**ProfitAndLossType**](ProfitAndLossType.md) | | [optional]
**total** | **float, none_type** | The aggregated total of all accounts within this category. | [optional]
**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]

[[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
2 changes: 1 addition & 1 deletion docs/models/OtherIncome.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ The other income accounts
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**total** | **float, none_type** | The aggregated total of all accounts within this category. |
**records** | [**ProfitAndLossRecords**](ProfitAndLossRecords.md) | |
**id** | **str** | A unique identifier for an object. | [optional] [readonly]
**code** | **str** | The account code of the account | [optional] [readonly]
**title** | **str** | The name of the account. | [optional] [readonly]
**type** | [**ProfitAndLossType**](ProfitAndLossType.md) | | [optional]
**total** | **float, none_type** | The aggregated total of all accounts within this category. | [optional]
**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]

[[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
14 changes: 6 additions & 8 deletions src/apideck/model/lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def openapi_types():
lazy_import()
return {
'name': (str,), # noqa: E501
'company_name': (str, none_type,), # noqa: E501
'id': (str,), # noqa: E501
'company_name': (str, none_type,), # noqa: E501
'owner_id': (str, none_type,), # noqa: E501
'owner_name': (str, none_type,), # noqa: E501
'company_id': (str, none_type,), # noqa: E501
Expand Down Expand Up @@ -145,8 +145,8 @@ def discriminator():

attribute_map = {
'name': 'name', # noqa: E501
'company_name': 'company_name', # noqa: E501
'id': 'id', # noqa: E501
'company_name': 'company_name', # noqa: E501
'owner_id': 'owner_id', # noqa: E501
'owner_name': 'owner_name', # noqa: E501
'company_id': 'company_id', # noqa: E501
Expand Down Expand Up @@ -186,12 +186,11 @@ def discriminator():

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

Args:
name (str): Full name of the lead.
company_name (str, none_type): The name of the company the lead is associated with.

Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
Expand Down Expand Up @@ -225,6 +224,7 @@ def _from_openapi_data(cls, name, company_name, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
id (str): Unique identifier for the contact.. [optional] # noqa: E501
company_name (str, none_type): The name of the company the lead is associated with.. [optional] # noqa: E501
owner_id (str, none_type): The owner of the lead.. [optional] # noqa: E501
owner_name (str, none_type): The name of the owner of the lead.. [optional] # noqa: E501
company_id (str, none_type): The company the lead is associated with.. [optional] # noqa: E501
Expand Down Expand Up @@ -279,7 +279,6 @@ def _from_openapi_data(cls, name, company_name, *args, **kwargs): # noqa: E501
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

self.name = name
self.company_name = company_name
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 @@ -300,12 +299,11 @@ def _from_openapi_data(cls, name, company_name, *args, **kwargs): # noqa: E501
])

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

Args:
name (str): Full name of the lead.
company_name (str, none_type): The name of the company the lead is associated with.

Keyword Args:
_check_type (bool): if True, values for parameters in openapi_types
Expand Down Expand Up @@ -339,6 +337,7 @@ def __init__(self, name, company_name, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
id (str): Unique identifier for the contact.. [optional] # noqa: E501
company_name (str, none_type): The name of the company the lead is associated with.. [optional] # noqa: E501
owner_id (str, none_type): The owner of the lead.. [optional] # noqa: E501
owner_name (str, none_type): The name of the owner of the lead.. [optional] # noqa: E501
company_id (str, none_type): The company the lead is associated with.. [optional] # noqa: E501
Expand Down Expand Up @@ -391,7 +390,6 @@ def __init__(self, name, company_name, *args, **kwargs): # noqa: E501
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)

self.name = name
self.company_name = company_name
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
14 changes: 6 additions & 8 deletions src/apideck/model/other_expenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ def openapi_types():
"""
lazy_import()
return {
'total': (float, none_type,), # noqa: E501
'records': (ProfitAndLossRecords,), # noqa: E501
'id': (str,), # noqa: E501
'code': (str,), # noqa: E501
'title': (str,), # noqa: E501
'type': (ProfitAndLossType,), # noqa: E501
'total': (float, none_type,), # noqa: E501
}

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


attribute_map = {
'total': 'total', # noqa: E501
'records': 'records', # noqa: E501
'id': 'id', # noqa: E501
'code': 'code', # noqa: E501
'title': 'title', # noqa: E501
'type': 'type', # noqa: E501
'total': 'total', # noqa: E501
}

read_only_vars = {
Expand All @@ -122,11 +122,10 @@ def discriminator():

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

Args:
total (float, none_type): The aggregated total of all accounts within this category.
records (ProfitAndLossRecords):

Keyword Args:
Expand Down Expand Up @@ -164,6 +163,7 @@ def _from_openapi_data(cls, total, records, *args, **kwargs): # noqa: E501
code (str): The account code of the account. [optional] # noqa: E501
title (str): The name of the account.. [optional] # noqa: E501
type (ProfitAndLossType): [optional] # noqa: E501
total (float, none_type): The aggregated total of all accounts within this category.. [optional] # noqa: E501
"""

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

self.total = total
self.records = records
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
Expand All @@ -213,11 +212,10 @@ def _from_openapi_data(cls, total, records, *args, **kwargs): # noqa: E501
])

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

Args:
total (float, none_type): The aggregated total of all accounts within this category.
records (ProfitAndLossRecords):

Keyword Args:
Expand Down Expand Up @@ -255,6 +253,7 @@ def __init__(self, total, records, *args, **kwargs): # noqa: E501
code (str): The account code of the account. [optional] # noqa: E501
title (str): The name of the account.. [optional] # noqa: E501
type (ProfitAndLossType): [optional] # noqa: E501
total (float, none_type): The aggregated total of all accounts within this category.. [optional] # noqa: E501
"""

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

self.total = total
self.records = records
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
Expand Down
14 changes: 6 additions & 8 deletions src/apideck/model/other_income.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ def openapi_types():
"""
lazy_import()
return {
'total': (float, none_type,), # noqa: E501
'records': (ProfitAndLossRecords,), # noqa: E501
'id': (str,), # noqa: E501
'code': (str,), # noqa: E501
'title': (str,), # noqa: E501
'type': (ProfitAndLossType,), # noqa: E501
'total': (float, none_type,), # noqa: E501
}

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


attribute_map = {
'total': 'total', # noqa: E501
'records': 'records', # noqa: E501
'id': 'id', # noqa: E501
'code': 'code', # noqa: E501
'title': 'title', # noqa: E501
'type': 'type', # noqa: E501
'total': 'total', # noqa: E501
}

read_only_vars = {
Expand All @@ -122,11 +122,10 @@ def discriminator():

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

Args:
total (float, none_type): The aggregated total of all accounts within this category.
records (ProfitAndLossRecords):

Keyword Args:
Expand Down Expand Up @@ -164,6 +163,7 @@ def _from_openapi_data(cls, total, records, *args, **kwargs): # noqa: E501
code (str): The account code of the account. [optional] # noqa: E501
title (str): The name of the account.. [optional] # noqa: E501
type (ProfitAndLossType): [optional] # noqa: E501
total (float, none_type): The aggregated total of all accounts within this category.. [optional] # noqa: E501
"""

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

self.total = total
self.records = records
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
Expand All @@ -213,11 +212,10 @@ def _from_openapi_data(cls, total, records, *args, **kwargs): # noqa: E501
])

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

Args:
total (float, none_type): The aggregated total of all accounts within this category.
records (ProfitAndLossRecords):

Keyword Args:
Expand Down Expand Up @@ -255,6 +253,7 @@ def __init__(self, total, records, *args, **kwargs): # noqa: E501
code (str): The account code of the account. [optional] # noqa: E501
title (str): The name of the account.. [optional] # noqa: E501
type (ProfitAndLossType): [optional] # noqa: E501
total (float, none_type): The aggregated total of all accounts within this category.. [optional] # noqa: E501
"""

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

self.total = total
self.records = records
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
Expand Down
Loading