From ea0c7cf2cd5868f83f7b1b7908b36d3bcfc26889 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:34:17 +0000 Subject: [PATCH] Automated update by SDK Generator version:1.5.0 commit:9037cbf --- docs/apis/AccountingApi.md | 32 ++++++++++++++++++++++++++++++++ docs/models/Customer.md | 1 + docs/models/TaxRate.md | 1 + src/apideck/model/customer.py | 6 ++++++ src/apideck/model/tax_rate.py | 6 ++++++ src/test/test_customer.py | 2 ++ src/test/test_tax_rate.py | 2 ++ 7 files changed, 50 insertions(+) diff --git a/docs/apis/AccountingApi.md b/docs/apis/AccountingApi.md index c3f6a4f47a..39397e301e 100644 --- a/docs/apis/AccountingApi.md +++ b/docs/apis/AccountingApi.md @@ -3548,6 +3548,14 @@ with apideck.ApiClient(configuration) as api_client: status="active", payment_method="cash", channel="email", + custom_fields=[ + CustomField( + id="2389328923893298", + name="employee_level", + description="Employee Level", + value=None, + ), + ], row_version="1-12345", pass_through=PassThroughBody([ { @@ -4108,6 +4116,14 @@ with apideck.ApiClient(configuration) as api_client: status="active", payment_method="cash", channel="email", + custom_fields=[ + CustomField( + id="2389328923893298", + name="employee_level", + description="Employee Level", + value=None, + ), + ], row_version="1-12345", pass_through=PassThroughBody([ { @@ -12250,6 +12266,14 @@ with apideck.ApiClient(configuration) as api_client: subsidiaries=[ None, ], + custom_fields=[ + CustomField( + id="2389328923893298", + name="employee_level", + description="Employee Level", + value=None, + ), + ], ) # TaxRate | raw = False # bool | Include raw response. Mostly used for debugging purposes (optional) if omitted the server will use the default value of False consumer_id = "test-consumer" # str | ID of the consumer which you want to get or push data from (optional) @@ -12723,6 +12747,14 @@ with apideck.ApiClient(configuration) as api_client: subsidiaries=[ None, ], + custom_fields=[ + CustomField( + id="2389328923893298", + name="employee_level", + description="Employee Level", + value=None, + ), + ], ) # TaxRate | consumer_id = "test-consumer" # str | ID of the consumer which you want to get or push data from (optional) app_id = "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" # str | The ID of your Unify application (optional) diff --git a/docs/models/Customer.md b/docs/models/Customer.md index e6873f6164..121e2445ac 100644 --- a/docs/models/Customer.md +++ b/docs/models/Customer.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **status** | **str, none_type** | Customer status | [optional] **payment_method** | **str, none_type** | Payment method used for the transaction, such as cash, credit card, bank transfer, or check | [optional] **channel** | **str, none_type** | The channel through which the transaction is processed. | [optional] +**custom_fields** | [**[CustomField]**](CustomField.md) | | [optional] **custom_mappings** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | When custom mappings are configured on the resource, the result is included here. | [optional] [readonly] **updated_by** | **str, none_type** | The user who last updated the object. | [optional] [readonly] **created_by** | **str, none_type** | The user who created the object. | [optional] [readonly] diff --git a/docs/models/TaxRate.md b/docs/models/TaxRate.md index ff7bd51444..b50e8c632d 100644 --- a/docs/models/TaxRate.md +++ b/docs/models/TaxRate.md @@ -25,6 +25,7 @@ Name | Type | Description | Notes **created_at** | **datetime, none_type** | The date and time when the object was created. | [optional] [readonly] **pass_through** | [**PassThroughBody**](PassThroughBody.md) | | [optional] **subsidiaries** | **[bool, date, datetime, dict, float, int, list, str, none_type]** | The subsidiaries this belongs to. | [optional] +**custom_fields** | [**[CustomField]**](CustomField.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) diff --git a/src/apideck/model/customer.py b/src/apideck/model/customer.py index 8afc76703a..ce19a831bd 100644 --- a/src/apideck/model/customer.py +++ b/src/apideck/model/customer.py @@ -34,6 +34,7 @@ def lazy_import(): from apideck.model.address import Address from apideck.model.bank_account import BankAccount from apideck.model.currency import Currency + from apideck.model.custom_field import CustomField from apideck.model.email import Email from apideck.model.linked_ledger_account import LinkedLedgerAccount from apideck.model.linked_parent_customer import LinkedParentCustomer @@ -44,6 +45,7 @@ def lazy_import(): globals()['Address'] = Address globals()['BankAccount'] = BankAccount globals()['Currency'] = Currency + globals()['CustomField'] = CustomField globals()['Email'] = Email globals()['LinkedLedgerAccount'] = LinkedLedgerAccount globals()['LinkedParentCustomer'] = LinkedParentCustomer @@ -134,6 +136,7 @@ def openapi_types(): 'status': (str, none_type,), # noqa: E501 'payment_method': (str, none_type,), # noqa: E501 'channel': (str, none_type,), # noqa: E501 + 'custom_fields': ([CustomField],), # noqa: E501 'custom_mappings': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 'updated_by': (str, none_type,), # noqa: E501 'created_by': (str, none_type,), # noqa: E501 @@ -176,6 +179,7 @@ def discriminator(): 'status': 'status', # noqa: E501 'payment_method': 'payment_method', # noqa: E501 'channel': 'channel', # noqa: E501 + 'custom_fields': 'custom_fields', # noqa: E501 'custom_mappings': 'custom_mappings', # noqa: E501 'updated_by': 'updated_by', # noqa: E501 'created_by': 'created_by', # noqa: E501 @@ -262,6 +266,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 status (str, none_type): Customer status. [optional] # noqa: E501 payment_method (str, none_type): Payment method used for the transaction, such as cash, credit card, bank transfer, or check. [optional] # noqa: E501 channel (str, none_type): The channel through which the transaction is processed.. [optional] # noqa: E501 + custom_fields ([CustomField]): [optional] # noqa: E501 custom_mappings ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): When custom mappings are configured on the resource, the result is included here.. [optional] # noqa: E501 updated_by (str, none_type): The user who last updated the object.. [optional] # noqa: E501 created_by (str, none_type): The user who created the object.. [optional] # noqa: E501 @@ -377,6 +382,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 status (str, none_type): Customer status. [optional] # noqa: E501 payment_method (str, none_type): Payment method used for the transaction, such as cash, credit card, bank transfer, or check. [optional] # noqa: E501 channel (str, none_type): The channel through which the transaction is processed.. [optional] # noqa: E501 + custom_fields ([CustomField]): [optional] # noqa: E501 custom_mappings ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): When custom mappings are configured on the resource, the result is included here.. [optional] # noqa: E501 updated_by (str, none_type): The user who last updated the object.. [optional] # noqa: E501 created_by (str, none_type): The user who created the object.. [optional] # noqa: E501 diff --git a/src/apideck/model/tax_rate.py b/src/apideck/model/tax_rate.py index c5e2fdb379..92c0549bdf 100644 --- a/src/apideck/model/tax_rate.py +++ b/src/apideck/model/tax_rate.py @@ -31,7 +31,9 @@ def lazy_import(): + from apideck.model.custom_field import CustomField from apideck.model.pass_through_body import PassThroughBody + globals()['CustomField'] = CustomField globals()['PassThroughBody'] = PassThroughBody @@ -111,6 +113,7 @@ def openapi_types(): 'created_at': (datetime, none_type,), # noqa: E501 'pass_through': (PassThroughBody,), # noqa: E501 'subsidiaries': ([bool, date, datetime, dict, float, int, list, str, none_type],), # noqa: E501 + 'custom_fields': ([CustomField],), # noqa: E501 } @cached_property @@ -140,6 +143,7 @@ def discriminator(): 'created_at': 'created_at', # noqa: E501 'pass_through': 'pass_through', # noqa: E501 'subsidiaries': 'subsidiaries', # noqa: E501 + 'custom_fields': 'custom_fields', # noqa: E501 } read_only_vars = { @@ -209,6 +213,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 created_at (datetime, none_type): The date and time when the object was created.. [optional] # noqa: E501 pass_through (PassThroughBody): [optional] # noqa: E501 subsidiaries ([bool, date, datetime, dict, float, int, list, str, none_type]): The subsidiaries this belongs to.. [optional] # noqa: E501 + custom_fields ([CustomField]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -311,6 +316,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 created_at (datetime, none_type): The date and time when the object was created.. [optional] # noqa: E501 pass_through (PassThroughBody): [optional] # noqa: E501 subsidiaries ([bool, date, datetime, dict, float, int, list, str, none_type]): The subsidiaries this belongs to.. [optional] # noqa: E501 + custom_fields ([CustomField]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/test/test_customer.py b/src/test/test_customer.py index 5b308a6365..0af2efea72 100644 --- a/src/test/test_customer.py +++ b/src/test/test_customer.py @@ -16,6 +16,7 @@ from apideck.model.address import Address from apideck.model.bank_account import BankAccount from apideck.model.currency import Currency +from apideck.model.custom_field import CustomField from apideck.model.email import Email from apideck.model.linked_ledger_account import LinkedLedgerAccount from apideck.model.linked_parent_customer import LinkedParentCustomer @@ -26,6 +27,7 @@ globals()['Address'] = Address globals()['BankAccount'] = BankAccount globals()['Currency'] = Currency +globals()['CustomField'] = CustomField globals()['Email'] = Email globals()['LinkedLedgerAccount'] = LinkedLedgerAccount globals()['LinkedParentCustomer'] = LinkedParentCustomer diff --git a/src/test/test_tax_rate.py b/src/test/test_tax_rate.py index d2412a93e0..f58d15d44b 100644 --- a/src/test/test_tax_rate.py +++ b/src/test/test_tax_rate.py @@ -13,7 +13,9 @@ import unittest import apideck +from apideck.model.custom_field import CustomField from apideck.model.pass_through_body import PassThroughBody +globals()['CustomField'] = CustomField globals()['PassThroughBody'] = PassThroughBody from apideck.model.tax_rate import TaxRate