diff --git a/README.md b/README.md index d09968612..83d94f7b7 100644 --- a/README.md +++ b/README.md @@ -347,6 +347,7 @@ x_apideck_app_id = "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" # str | The ID of y x_apideck_service_id = "salesforce" # str | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional) filter = AgedReportFilter( customer_id="123abc", + supplier_id="123abc", report_as_of_date="2024-01-01", period_count=3, period_length=30, @@ -1530,8 +1531,9 @@ _WebhookApi_ | [**webhooks_update**](docs/apis/WebhookApi.md#webhooks_update) | - [OrderTenders](docs/models/OrderTenders.md) - [OrderType](docs/models/OrderType.md) - [OrdersSort](docs/models/OrdersSort.md) - - [OutstandingBalance](docs/models/OutstandingBalance.md) - [OutstandingBalanceByCurrency](docs/models/OutstandingBalanceByCurrency.md) + - [OutstandingBalanceByCustomer](docs/models/OutstandingBalanceByCustomer.md) + - [OutstandingBalanceBySupplier](docs/models/OutstandingBalanceBySupplier.md) - [Owner](docs/models/Owner.md) - [PaginationCoverage](docs/models/PaginationCoverage.md) - [PassThroughBody](docs/models/PassThroughBody.md) diff --git a/docs/apis/AccountingApi.md b/docs/apis/AccountingApi.md index c3f6a4f47..4e8faf180 100644 --- a/docs/apis/AccountingApi.md +++ b/docs/apis/AccountingApi.md @@ -152,6 +152,7 @@ with apideck.ApiClient(configuration) as api_client: service_id = "salesforce" # str | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional) filter = AgedReportFilter( customer_id="123abc", + supplier_id="123abc", report_as_of_date="2024-01-01", period_count=3, period_length=30, @@ -262,6 +263,7 @@ with apideck.ApiClient(configuration) as api_client: service_id = "salesforce" # str | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. (optional) filter = AgedReportFilter( customer_id="123abc", + supplier_id="123abc", report_as_of_date="2024-01-01", period_count=3, period_length=30, @@ -1770,6 +1772,14 @@ with apideck.ApiClient(configuration) as api_client: ), ]), row_version="1-12345", + custom_fields=[ + CustomField( + id="2389328923893298", + name="employee_level", + description="Employee Level", + value=None, + ), + ], pass_through=PassThroughBody([ { service_id="service_id_example", @@ -2345,6 +2355,14 @@ with apideck.ApiClient(configuration) as api_client: ), ]), row_version="1-12345", + custom_fields=[ + CustomField( + id="2389328923893298", + name="employee_level", + description="Employee Level", + value=None, + ), + ], pass_through=PassThroughBody([ { service_id="service_id_example", @@ -3548,6 +3566,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 +4134,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([ { @@ -7878,6 +7912,14 @@ with apideck.ApiClient(configuration) as api_client: subsidiaries=[ None, ], + custom_fields=[ + CustomField( + id="2389328923893298", + name="employee_level", + description="Employee Level", + value=None, + ), + ], row_version="1-12345", pass_through=PassThroughBody([ { @@ -8379,6 +8421,14 @@ with apideck.ApiClient(configuration) as api_client: subsidiaries=[ None, ], + custom_fields=[ + CustomField( + id="2389328923893298", + name="employee_level", + description="Employee Level", + value=None, + ), + ], row_version="1-12345", pass_through=PassThroughBody([ { @@ -11538,6 +11588,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([ { @@ -12093,6 +12151,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 +12316,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 +12797,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/AgedCreditors.md b/docs/models/AgedCreditors.md index fbed48f3f..862bd4484 100644 --- a/docs/models/AgedCreditors.md +++ b/docs/models/AgedCreditors.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **report_as_of_date** | **date** | The cutoff date for transactions included in the report. | [optional] **period_count** | **int** | Number of aging periods shown in the report. | [optional] if omitted the server will use the default value of 4 **period_length** | **int** | Length of each aging period in days. | [optional] if omitted the server will use the default value of 30 -**outstanding_balances** | [**[OutstandingBalance]**](OutstandingBalance.md) | | [optional] +**outstanding_balances** | [**[OutstandingBalanceBySupplier]**](OutstandingBalanceBySupplier.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/docs/models/AgedDebtors.md b/docs/models/AgedDebtors.md index 1a7464b5e..e65a87ee7 100644 --- a/docs/models/AgedDebtors.md +++ b/docs/models/AgedDebtors.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **report_as_of_date** | **date** | The cutoff date for transactions included in the report. | [optional] **period_count** | **int** | Number of aging periods shown in the report. | [optional] if omitted the server will use the default value of 4 **period_length** | **int** | Length of each aging period in days. | [optional] if omitted the server will use the default value of 30 -**outstanding_balances** | [**[OutstandingBalance]**](OutstandingBalance.md) | | [optional] +**outstanding_balances** | [**[OutstandingBalanceByCustomer]**](OutstandingBalanceByCustomer.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/docs/models/AgedReportFilter.md b/docs/models/AgedReportFilter.md index 231853392..9f0e79a26 100644 --- a/docs/models/AgedReportFilter.md +++ b/docs/models/AgedReportFilter.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **customer_id** | **str** | Filter by customer id | [optional] +**supplier_id** | **str** | Filter by supplier id | [optional] **report_as_of_date** | **str** | The cutoff date for considering transactions | [optional] **period_count** | **int** | Number of periods to split the aged creditors report into | [optional] **period_length** | **int** | Length of each period in days | [optional] diff --git a/docs/models/BalanceByPeriod.md b/docs/models/BalanceByPeriod.md index a0904c208..a1cd27ed4 100644 --- a/docs/models/BalanceByPeriod.md +++ b/docs/models/BalanceByPeriod.md @@ -4,8 +4,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**start_date** | **date** | Start date of the period. | [optional] -**end_date** | **date** | End date of the period. | [optional] +**start_date** | **date, none_type** | The starting date of the period. If not provided, it represents the oldest period, where all transactions due before the specified `end_date` are included. | [optional] +**end_date** | **date, none_type** | The ending date of the period. If not provided, it represents an open-ended period starting from the `start_date`, typically capturing future-dated transactions that are not yet aged. | [optional] **total_amount** | **float** | Total amount of the period. | [optional] **balances_by_transaction** | [**[BalanceByTransaction]**](BalanceByTransaction.md) | | [optional] diff --git a/docs/models/BalanceByTransaction.md b/docs/models/BalanceByTransaction.md index d397fad31..aa48b2d2e 100644 --- a/docs/models/BalanceByTransaction.md +++ b/docs/models/BalanceByTransaction.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **due_date** | **date** | Due date of the transaction. | [optional] **original_amount** | **float** | Original amount of the transaction. | [optional] **outstanding_balance** | **float** | Outstanding balance of the transaction. | [optional] +**transaction_number** | **str** | Transaction number of the transaction. | [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/docs/models/Bill.md b/docs/models/Bill.md index 75a0fe2c9..628c85036 100644 --- a/docs/models/Bill.md +++ b/docs/models/Bill.md @@ -40,6 +40,7 @@ Name | Type | Description | Notes **updated_at** | **datetime, none_type** | The date and time when the object was last updated. | [optional] [readonly] **created_at** | **datetime, none_type** | The date and time when the object was created. | [optional] [readonly] **row_version** | **str, none_type** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [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] **pass_through** | [**PassThroughBody**](PassThroughBody.md) | | [optional] **accounting_period** | **str, none_type** | Accounting period | [optional] diff --git a/docs/models/Customer.md b/docs/models/Customer.md index e6873f616..121e2445a 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/LedgerAccount.md b/docs/models/LedgerAccount.md index 984b04c53..eef2ec96f 100644 --- a/docs/models/LedgerAccount.md +++ b/docs/models/LedgerAccount.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **last_reconciliation_date** | **date, none_type** | Reconciliation Date means the last calendar day of each Reconciliation Period. | [optional] **subsidiaries** | **[bool, date, datetime, dict, float, int, list, str, none_type]** | The subsidiaries the account belongs to. | [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] +**custom_fields** | [**[CustomField]**](CustomField.md) | | [optional] **row_version** | **str, none_type** | A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. | [optional] **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/OutstandingBalanceByCurrency.md b/docs/models/OutstandingBalanceByCurrency.md index a9ed154f1..28c052ec0 100644 --- a/docs/models/OutstandingBalanceByCurrency.md +++ b/docs/models/OutstandingBalanceByCurrency.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **currency** | [**Currency**](Currency.md) | | [optional] +**total_amount** | **float** | Total amount of the outstanding balance. | [optional] **balances_by_period** | [**[BalanceByPeriod]**](BalanceByPeriod.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/docs/models/OutstandingBalance.md b/docs/models/OutstandingBalanceByCustomer.md similarity index 67% rename from docs/models/OutstandingBalance.md rename to docs/models/OutstandingBalanceByCustomer.md index db7fc4f62..80539c3b0 100644 --- a/docs/models/OutstandingBalance.md +++ b/docs/models/OutstandingBalanceByCustomer.md @@ -1,11 +1,11 @@ -# OutstandingBalance +# OutstandingBalanceByCustomer ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**customer_id** | **str** | Unique identifier for the customer or supplier. | [optional] -**customer_name** | **str** | Full name of the customer or supplier. | [optional] +**customer_id** | **str** | Unique identifier for the customer. | [optional] +**customer_name** | **str** | Full name of the customer. | [optional] **outstanding_balances_by_currency** | [**[OutstandingBalanceByCurrency]**](OutstandingBalanceByCurrency.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/docs/models/OutstandingBalanceBySupplier.md b/docs/models/OutstandingBalanceBySupplier.md new file mode 100644 index 000000000..03c1b9555 --- /dev/null +++ b/docs/models/OutstandingBalanceBySupplier.md @@ -0,0 +1,13 @@ +# OutstandingBalanceBySupplier + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**supplier_id** | **str** | Unique identifier for the supplier. | [optional] +**supplier_name** | **str** | Full name of the supplier. | [optional] +**outstanding_balances_by_currency** | [**[OutstandingBalanceByCurrency]**](OutstandingBalanceByCurrency.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/docs/models/Supplier.md b/docs/models/Supplier.md index 10f3988cc..cc4f4f191 100644 --- a/docs/models/Supplier.md +++ b/docs/models/Supplier.md @@ -30,6 +30,7 @@ Name | Type | Description | Notes **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_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] +**custom_fields** | [**[CustomField]**](CustomField.md) | | [optional] **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] **updated_at** | **datetime, none_type** | The date and time when the object was last updated. | [optional] [readonly] diff --git a/docs/models/TaxRate.md b/docs/models/TaxRate.md index ff7bd5144..b50e8c632 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/.openapi-generator/FILES b/src/.openapi-generator/FILES index b44a2d6a0..c040264dd 100644 --- a/src/.openapi-generator/FILES +++ b/src/.openapi-generator/FILES @@ -559,8 +559,9 @@ apideck/model/order_refunds.py apideck/model/order_tenders.py apideck/model/order_type.py apideck/model/orders_sort.py -apideck/model/outstanding_balance.py apideck/model/outstanding_balance_by_currency.py +apideck/model/outstanding_balance_by_customer.py +apideck/model/outstanding_balance_by_supplier.py apideck/model/owner.py apideck/model/pagination_coverage.py apideck/model/pass_through_body.py @@ -1273,8 +1274,9 @@ docs/OrderRefunds.md docs/OrderTenders.md docs/OrderType.md docs/OrdersSort.md -docs/OutstandingBalance.md docs/OutstandingBalanceByCurrency.md +docs/OutstandingBalanceByCustomer.md +docs/OutstandingBalanceBySupplier.md docs/Owner.md docs/PaginationCoverage.md docs/PassThroughBody.md @@ -1994,8 +1996,9 @@ test/test_order_refunds.py test/test_order_tenders.py test/test_order_type.py test/test_orders_sort.py -test/test_outstanding_balance.py test/test_outstanding_balance_by_currency.py +test/test_outstanding_balance_by_customer.py +test/test_outstanding_balance_by_supplier.py test/test_owner.py test/test_pagination_coverage.py test/test_pass_through_body.py diff --git a/src/apideck/model/aged_creditors.py b/src/apideck/model/aged_creditors.py index f6d47b09e..0c97d6a3e 100644 --- a/src/apideck/model/aged_creditors.py +++ b/src/apideck/model/aged_creditors.py @@ -31,8 +31,8 @@ def lazy_import(): - from apideck.model.outstanding_balance import OutstandingBalance - globals()['OutstandingBalance'] = OutstandingBalance + from apideck.model.outstanding_balance_by_supplier import OutstandingBalanceBySupplier + globals()['OutstandingBalanceBySupplier'] = OutstandingBalanceBySupplier class AgedCreditors(ModelNormal): @@ -85,7 +85,7 @@ def openapi_types(): 'report_as_of_date': (date,), # noqa: E501 'period_count': (int,), # noqa: E501 'period_length': (int,), # noqa: E501 - 'outstanding_balances': ([OutstandingBalance],), # noqa: E501 + 'outstanding_balances': ([OutstandingBalanceBySupplier],), # noqa: E501 } @cached_property @@ -146,7 +146,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 report_as_of_date (date): The cutoff date for transactions included in the report.. [optional] # noqa: E501 period_count (int): Number of aging periods shown in the report.. [optional] if omitted the server will use the default value of 4 # noqa: E501 period_length (int): Length of each aging period in days.. [optional] if omitted the server will use the default value of 30 # noqa: E501 - outstanding_balances ([OutstandingBalance]): [optional] # noqa: E501 + outstanding_balances ([OutstandingBalanceBySupplier]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -232,7 +232,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 report_as_of_date (date): The cutoff date for transactions included in the report.. [optional] # noqa: E501 period_count (int): Number of aging periods shown in the report.. [optional] if omitted the server will use the default value of 4 # noqa: E501 period_length (int): Length of each aging period in days.. [optional] if omitted the server will use the default value of 30 # noqa: E501 - outstanding_balances ([OutstandingBalance]): [optional] # noqa: E501 + outstanding_balances ([OutstandingBalanceBySupplier]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/apideck/model/aged_debtors.py b/src/apideck/model/aged_debtors.py index 8ef02884e..aa0b4e317 100644 --- a/src/apideck/model/aged_debtors.py +++ b/src/apideck/model/aged_debtors.py @@ -31,8 +31,8 @@ def lazy_import(): - from apideck.model.outstanding_balance import OutstandingBalance - globals()['OutstandingBalance'] = OutstandingBalance + from apideck.model.outstanding_balance_by_customer import OutstandingBalanceByCustomer + globals()['OutstandingBalanceByCustomer'] = OutstandingBalanceByCustomer class AgedDebtors(ModelNormal): @@ -85,7 +85,7 @@ def openapi_types(): 'report_as_of_date': (date,), # noqa: E501 'period_count': (int,), # noqa: E501 'period_length': (int,), # noqa: E501 - 'outstanding_balances': ([OutstandingBalance],), # noqa: E501 + 'outstanding_balances': ([OutstandingBalanceByCustomer],), # noqa: E501 } @cached_property @@ -146,7 +146,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 report_as_of_date (date): The cutoff date for transactions included in the report.. [optional] # noqa: E501 period_count (int): Number of aging periods shown in the report.. [optional] if omitted the server will use the default value of 4 # noqa: E501 period_length (int): Length of each aging period in days.. [optional] if omitted the server will use the default value of 30 # noqa: E501 - outstanding_balances ([OutstandingBalance]): [optional] # noqa: E501 + outstanding_balances ([OutstandingBalanceByCustomer]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -232,7 +232,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 report_as_of_date (date): The cutoff date for transactions included in the report.. [optional] # noqa: E501 period_count (int): Number of aging periods shown in the report.. [optional] if omitted the server will use the default value of 4 # noqa: E501 period_length (int): Length of each aging period in days.. [optional] if omitted the server will use the default value of 30 # noqa: E501 - outstanding_balances ([OutstandingBalance]): [optional] # noqa: E501 + outstanding_balances ([OutstandingBalanceByCustomer]): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/apideck/model/aged_report_filter.py b/src/apideck/model/aged_report_filter.py index d225ab736..6d603a0f7 100644 --- a/src/apideck/model/aged_report_filter.py +++ b/src/apideck/model/aged_report_filter.py @@ -85,6 +85,7 @@ def openapi_types(): """ return { 'customer_id': (str,), # noqa: E501 + 'supplier_id': (str,), # noqa: E501 'report_as_of_date': (str,), # noqa: E501 'period_count': (int,), # noqa: E501 'period_length': (int,), # noqa: E501 @@ -97,6 +98,7 @@ def discriminator(): attribute_map = { 'customer_id': 'customer_id', # noqa: E501 + 'supplier_id': 'supplier_id', # noqa: E501 'report_as_of_date': 'report_as_of_date', # noqa: E501 'period_count': 'period_count', # noqa: E501 'period_length': 'period_length', # noqa: E501 @@ -144,6 +146,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) customer_id (str): Filter by customer id. [optional] # noqa: E501 + supplier_id (str): Filter by supplier id. [optional] # noqa: E501 report_as_of_date (str): The cutoff date for considering transactions. [optional] # noqa: E501 period_count (int): Number of periods to split the aged creditors report into. [optional] # noqa: E501 period_length (int): Length of each period in days. [optional] # noqa: E501 @@ -229,6 +232,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) customer_id (str): Filter by customer id. [optional] # noqa: E501 + supplier_id (str): Filter by supplier id. [optional] # noqa: E501 report_as_of_date (str): The cutoff date for considering transactions. [optional] # noqa: E501 period_count (int): Number of periods to split the aged creditors report into. [optional] # noqa: E501 period_length (int): Length of each period in days. [optional] # noqa: E501 diff --git a/src/apideck/model/balance_by_period.py b/src/apideck/model/balance_by_period.py index 0437c9ede..be6f271f9 100644 --- a/src/apideck/model/balance_by_period.py +++ b/src/apideck/model/balance_by_period.py @@ -81,8 +81,8 @@ def openapi_types(): """ lazy_import() return { - 'start_date': (date,), # noqa: E501 - 'end_date': (date,), # noqa: E501 + 'start_date': (date, none_type,), # noqa: E501 + 'end_date': (date, none_type,), # noqa: E501 'total_amount': (float,), # noqa: E501 'balances_by_transaction': ([BalanceByTransaction],), # noqa: E501 } @@ -140,8 +140,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - start_date (date): Start date of the period.. [optional] # noqa: E501 - end_date (date): End date of the period.. [optional] # noqa: E501 + start_date (date, none_type): The starting date of the period. If not provided, it represents the oldest period, where all transactions due before the specified `end_date` are included.. [optional] # noqa: E501 + end_date (date, none_type): The ending date of the period. If not provided, it represents an open-ended period starting from the `start_date`, typically capturing future-dated transactions that are not yet aged.. [optional] # noqa: E501 total_amount (float): Total amount of the period.. [optional] # noqa: E501 balances_by_transaction ([BalanceByTransaction]): [optional] # noqa: E501 """ @@ -225,8 +225,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - start_date (date): Start date of the period.. [optional] # noqa: E501 - end_date (date): End date of the period.. [optional] # noqa: E501 + start_date (date, none_type): The starting date of the period. If not provided, it represents the oldest period, where all transactions due before the specified `end_date` are included.. [optional] # noqa: E501 + end_date (date, none_type): The ending date of the period. If not provided, it represents an open-ended period starting from the `start_date`, typically capturing future-dated transactions that are not yet aged.. [optional] # noqa: E501 total_amount (float): Total amount of the period.. [optional] # noqa: E501 balances_by_transaction ([BalanceByTransaction]): [optional] # noqa: E501 """ diff --git a/src/apideck/model/balance_by_transaction.py b/src/apideck/model/balance_by_transaction.py index d516a5f66..3aa577c93 100644 --- a/src/apideck/model/balance_by_transaction.py +++ b/src/apideck/model/balance_by_transaction.py @@ -61,7 +61,7 @@ class BalanceByTransaction(ModelNormal): 'CREDIT_NOTE': "credit_note", 'BILL': "bill", 'PAYMENT': "payment", - 'BILL-PAYMENT': "bill-payment", + 'BILL_PAYMENT': "bill_payment", }, } @@ -89,6 +89,7 @@ def openapi_types(): 'due_date': (date,), # noqa: E501 'original_amount': (float,), # noqa: E501 'outstanding_balance': (float,), # noqa: E501 + 'transaction_number': (str,), # noqa: E501 } @cached_property @@ -103,6 +104,7 @@ def discriminator(): 'due_date': 'due_date', # noqa: E501 'original_amount': 'original_amount', # noqa: E501 'outstanding_balance': 'outstanding_balance', # noqa: E501 + 'transaction_number': 'transaction_number', # noqa: E501 } read_only_vars = { @@ -152,6 +154,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 due_date (date): Due date of the transaction.. [optional] # noqa: E501 original_amount (float): Original amount of the transaction.. [optional] # noqa: E501 outstanding_balance (float): Outstanding balance of the transaction.. [optional] # noqa: E501 + transaction_number (str): Transaction number of the transaction.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -239,6 +242,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 due_date (date): Due date of the transaction.. [optional] # noqa: E501 original_amount (float): Original amount of the transaction.. [optional] # noqa: E501 outstanding_balance (float): Outstanding balance of the transaction.. [optional] # noqa: E501 + transaction_number (str): Transaction number of the transaction.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/apideck/model/bill.py b/src/apideck/model/bill.py index e5688b0b3..632e3f658 100644 --- a/src/apideck/model/bill.py +++ b/src/apideck/model/bill.py @@ -34,6 +34,7 @@ def lazy_import(): from apideck.model.bank_account import BankAccount from apideck.model.bill_line_item import BillLineItem from apideck.model.currency import Currency + from apideck.model.custom_field import CustomField from apideck.model.linked_ledger_account import LinkedLedgerAccount from apideck.model.linked_supplier import LinkedSupplier from apideck.model.linked_tracking_categories import LinkedTrackingCategories @@ -41,6 +42,7 @@ def lazy_import(): globals()['BankAccount'] = BankAccount globals()['BillLineItem'] = BillLineItem globals()['Currency'] = Currency + globals()['CustomField'] = CustomField globals()['LinkedLedgerAccount'] = LinkedLedgerAccount globals()['LinkedSupplier'] = LinkedSupplier globals()['LinkedTrackingCategories'] = LinkedTrackingCategories @@ -140,6 +142,7 @@ def openapi_types(): 'updated_at': (datetime, none_type,), # noqa: E501 'created_at': (datetime, none_type,), # noqa: E501 'row_version': (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 'pass_through': (PassThroughBody,), # noqa: E501 'accounting_period': (str, none_type,), # noqa: E501 @@ -187,6 +190,7 @@ def discriminator(): 'updated_at': 'updated_at', # noqa: E501 'created_at': 'created_at', # noqa: E501 'row_version': 'row_version', # noqa: E501 + 'custom_fields': 'custom_fields', # noqa: E501 'custom_mappings': 'custom_mappings', # noqa: E501 'pass_through': 'pass_through', # noqa: E501 'accounting_period': 'accounting_period', # noqa: E501 @@ -276,6 +280,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 updated_at (datetime, none_type): The date and time when the object was last updated.. [optional] # noqa: E501 created_at (datetime, none_type): The date and time when the object was created.. [optional] # noqa: E501 row_version (str, none_type): A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.. [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 pass_through (PassThroughBody): [optional] # noqa: E501 accounting_period (str, none_type): Accounting period. [optional] # noqa: E501 @@ -396,6 +401,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 updated_at (datetime, none_type): The date and time when the object was last updated.. [optional] # noqa: E501 created_at (datetime, none_type): The date and time when the object was created.. [optional] # noqa: E501 row_version (str, none_type): A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.. [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 pass_through (PassThroughBody): [optional] # noqa: E501 accounting_period (str, none_type): Accounting period. [optional] # noqa: E501 diff --git a/src/apideck/model/customer.py b/src/apideck/model/customer.py index 8afc76703..ce19a831b 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/ledger_account.py b/src/apideck/model/ledger_account.py index a61316276..67f19a49d 100644 --- a/src/apideck/model/ledger_account.py +++ b/src/apideck/model/ledger_account.py @@ -33,12 +33,14 @@ def lazy_import(): from apideck.model.bank_account import BankAccount from apideck.model.currency import Currency + from apideck.model.custom_field import CustomField from apideck.model.ledger_account_categories import LedgerAccountCategories from apideck.model.ledger_account_parent_account import LedgerAccountParentAccount from apideck.model.linked_tax_rate import LinkedTaxRate from apideck.model.pass_through_body import PassThroughBody globals()['BankAccount'] = BankAccount globals()['Currency'] = Currency + globals()['CustomField'] = CustomField globals()['LedgerAccountCategories'] = LedgerAccountCategories globals()['LedgerAccountParentAccount'] = LedgerAccountParentAccount globals()['LinkedTaxRate'] = LinkedTaxRate @@ -159,6 +161,7 @@ def openapi_types(): 'last_reconciliation_date': (date, none_type,), # noqa: E501 'subsidiaries': ([bool, date, datetime, dict, float, int, list, str, none_type],), # noqa: E501 'custom_mappings': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 + 'custom_fields': ([CustomField],), # noqa: E501 'row_version': (str, none_type,), # noqa: E501 'updated_by': (str, none_type,), # noqa: E501 'created_by': (str, none_type,), # noqa: E501 @@ -200,6 +203,7 @@ def discriminator(): 'last_reconciliation_date': 'last_reconciliation_date', # noqa: E501 'subsidiaries': 'subsidiaries', # noqa: E501 'custom_mappings': 'custom_mappings', # noqa: E501 + 'custom_fields': 'custom_fields', # noqa: E501 'row_version': 'row_version', # noqa: E501 'updated_by': 'updated_by', # noqa: E501 'created_by': 'created_by', # noqa: E501 @@ -284,6 +288,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 last_reconciliation_date (date, none_type): Reconciliation Date means the last calendar day of each Reconciliation Period.. [optional] # noqa: E501 subsidiaries ([bool, date, datetime, dict, float, int, list, str, none_type]): The subsidiaries the account belongs to.. [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 + custom_fields ([CustomField]): [optional] # noqa: E501 row_version (str, none_type): A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.. [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 @@ -398,6 +403,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 last_reconciliation_date (date, none_type): Reconciliation Date means the last calendar day of each Reconciliation Period.. [optional] # noqa: E501 subsidiaries ([bool, date, datetime, dict, float, int, list, str, none_type]): The subsidiaries the account belongs to.. [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 + custom_fields ([CustomField]): [optional] # noqa: E501 row_version (str, none_type): A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object.. [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/outstanding_balance_by_currency.py b/src/apideck/model/outstanding_balance_by_currency.py index 620ee6375..f71241470 100644 --- a/src/apideck/model/outstanding_balance_by_currency.py +++ b/src/apideck/model/outstanding_balance_by_currency.py @@ -84,6 +84,7 @@ def openapi_types(): lazy_import() return { 'currency': (Currency,), # noqa: E501 + 'total_amount': (float,), # noqa: E501 'balances_by_period': ([BalanceByPeriod],), # noqa: E501 } @@ -94,6 +95,7 @@ def discriminator(): attribute_map = { 'currency': 'currency', # noqa: E501 + 'total_amount': 'total_amount', # noqa: E501 'balances_by_period': 'balances_by_period', # noqa: E501 } @@ -139,6 +141,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) currency (Currency): [optional] # noqa: E501 + total_amount (float): Total amount of the outstanding balance.. [optional] # noqa: E501 balances_by_period ([BalanceByPeriod]): [optional] # noqa: E501 """ @@ -222,6 +225,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) currency (Currency): [optional] # noqa: E501 + total_amount (float): Total amount of the outstanding balance.. [optional] # noqa: E501 balances_by_period ([BalanceByPeriod]): [optional] # noqa: E501 """ diff --git a/src/apideck/model/outstanding_balance.py b/src/apideck/model/outstanding_balance_by_customer.py similarity index 96% rename from src/apideck/model/outstanding_balance.py rename to src/apideck/model/outstanding_balance_by_customer.py index 5059657c0..4982300c0 100644 --- a/src/apideck/model/outstanding_balance.py +++ b/src/apideck/model/outstanding_balance_by_customer.py @@ -35,7 +35,7 @@ def lazy_import(): globals()['OutstandingBalanceByCurrency'] = OutstandingBalanceByCurrency -class OutstandingBalance(ModelNormal): +class OutstandingBalanceByCustomer(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -105,7 +105,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """OutstandingBalance - a model defined in OpenAPI + """OutstandingBalanceByCustomer - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -138,8 +138,8 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - customer_id (str): Unique identifier for the customer or supplier.. [optional] # noqa: E501 - customer_name (str): Full name of the customer or supplier.. [optional] # noqa: E501 + customer_id (str): Unique identifier for the customer.. [optional] # noqa: E501 + customer_name (str): Full name of the customer.. [optional] # noqa: E501 outstanding_balances_by_currency ([OutstandingBalanceByCurrency]): [optional] # noqa: E501 """ @@ -189,7 +189,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """OutstandingBalance - a model defined in OpenAPI + """OutstandingBalanceByCustomer - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -222,8 +222,8 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - customer_id (str): Unique identifier for the customer or supplier.. [optional] # noqa: E501 - customer_name (str): Full name of the customer or supplier.. [optional] # noqa: E501 + customer_id (str): Unique identifier for the customer.. [optional] # noqa: E501 + customer_name (str): Full name of the customer.. [optional] # noqa: E501 outstanding_balances_by_currency ([OutstandingBalanceByCurrency]): [optional] # noqa: E501 """ diff --git a/src/apideck/model/outstanding_balance_by_supplier.py b/src/apideck/model/outstanding_balance_by_supplier.py new file mode 100644 index 000000000..964ceaf05 --- /dev/null +++ b/src/apideck/model/outstanding_balance_by_supplier.py @@ -0,0 +1,263 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.9.0 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from apideck.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from apideck.exceptions import ApiAttributeError + + +def lazy_import(): + from apideck.model.outstanding_balance_by_currency import OutstandingBalanceByCurrency + globals()['OutstandingBalanceByCurrency'] = OutstandingBalanceByCurrency + + +class OutstandingBalanceBySupplier(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'supplier_id': (str,), # noqa: E501 + 'supplier_name': (str,), # noqa: E501 + 'outstanding_balances_by_currency': ([OutstandingBalanceByCurrency],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'supplier_id': 'supplier_id', # noqa: E501 + 'supplier_name': 'supplier_name', # noqa: E501 + 'outstanding_balances_by_currency': 'outstanding_balances_by_currency', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """OutstandingBalanceBySupplier - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + supplier_id (str): Unique identifier for the supplier.. [optional] # noqa: E501 + supplier_name (str): Full name of the supplier.. [optional] # noqa: E501 + outstanding_balances_by_currency ([OutstandingBalanceByCurrency]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """OutstandingBalanceBySupplier - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + supplier_id (str): Unique identifier for the supplier.. [optional] # noqa: E501 + supplier_name (str): Full name of the supplier.. [optional] # noqa: E501 + outstanding_balances_by_currency ([OutstandingBalanceByCurrency]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/src/apideck/model/supplier.py b/src/apideck/model/supplier.py index f0fd43fb8..17392bfbd 100644 --- a/src/apideck/model/supplier.py +++ b/src/apideck/model/supplier.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_tax_rate import LinkedTaxRate @@ -43,6 +44,7 @@ def lazy_import(): globals()['Address'] = Address globals()['BankAccount'] = BankAccount globals()['Currency'] = Currency + globals()['CustomField'] = CustomField globals()['Email'] = Email globals()['LinkedLedgerAccount'] = LinkedLedgerAccount globals()['LinkedTaxRate'] = LinkedTaxRate @@ -131,6 +133,7 @@ def openapi_types(): 'payment_method': (str, none_type,), # noqa: E501 'channel': (str, none_type,), # noqa: E501 'custom_mappings': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 + 'custom_fields': ([CustomField],), # noqa: E501 'updated_by': (str, none_type,), # noqa: E501 'created_by': (str, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 @@ -172,6 +175,7 @@ def discriminator(): 'payment_method': 'payment_method', # noqa: E501 'channel': 'channel', # noqa: E501 'custom_mappings': 'custom_mappings', # noqa: E501 + 'custom_fields': 'custom_fields', # noqa: E501 'updated_by': 'updated_by', # noqa: E501 'created_by': 'created_by', # noqa: E501 'updated_at': 'updated_at', # noqa: E501 @@ -257,6 +261,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # 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_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 + custom_fields ([CustomField]): [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 updated_at (datetime, none_type): The date and time when the object was last updated.. [optional] # noqa: E501 @@ -371,6 +376,7 @@ def __init__(self, *args, **kwargs): # 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_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 + custom_fields ([CustomField]): [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 updated_at (datetime, none_type): The date and time when the object was last updated.. [optional] # noqa: E501 diff --git a/src/apideck/model/tax_rate.py b/src/apideck/model/tax_rate.py index c5e2fdb37..92c0549bd 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/apideck/models/__init__.py b/src/apideck/models/__init__.py index e1bfb3e8d..25406bd3f 100644 --- a/src/apideck/models/__init__.py +++ b/src/apideck/models/__init__.py @@ -537,8 +537,9 @@ from apideck.model.order_tenders import OrderTenders from apideck.model.order_type import OrderType from apideck.model.orders_sort import OrdersSort -from apideck.model.outstanding_balance import OutstandingBalance from apideck.model.outstanding_balance_by_currency import OutstandingBalanceByCurrency +from apideck.model.outstanding_balance_by_customer import OutstandingBalanceByCustomer +from apideck.model.outstanding_balance_by_supplier import OutstandingBalanceBySupplier from apideck.model.owner import Owner from apideck.model.pagination_coverage import PaginationCoverage from apideck.model.pass_through_body import PassThroughBody diff --git a/src/test/test_aged_creditors.py b/src/test/test_aged_creditors.py index 43553790e..5cc5dda4a 100644 --- a/src/test/test_aged_creditors.py +++ b/src/test/test_aged_creditors.py @@ -13,8 +13,8 @@ import unittest import apideck -from apideck.model.outstanding_balance import OutstandingBalance -globals()['OutstandingBalance'] = OutstandingBalance +from apideck.model.outstanding_balance_by_supplier import OutstandingBalanceBySupplier +globals()['OutstandingBalanceBySupplier'] = OutstandingBalanceBySupplier from apideck.model.aged_creditors import AgedCreditors diff --git a/src/test/test_aged_debtors.py b/src/test/test_aged_debtors.py index 63aa54c1d..a0522bf8f 100644 --- a/src/test/test_aged_debtors.py +++ b/src/test/test_aged_debtors.py @@ -13,8 +13,8 @@ import unittest import apideck -from apideck.model.outstanding_balance import OutstandingBalance -globals()['OutstandingBalance'] = OutstandingBalance +from apideck.model.outstanding_balance_by_customer import OutstandingBalanceByCustomer +globals()['OutstandingBalanceByCustomer'] = OutstandingBalanceByCustomer from apideck.model.aged_debtors import AgedDebtors diff --git a/src/test/test_bill.py b/src/test/test_bill.py index cf09f92f9..97682422a 100644 --- a/src/test/test_bill.py +++ b/src/test/test_bill.py @@ -16,6 +16,7 @@ from apideck.model.bank_account import BankAccount from apideck.model.bill_line_item import BillLineItem from apideck.model.currency import Currency +from apideck.model.custom_field import CustomField from apideck.model.linked_ledger_account import LinkedLedgerAccount from apideck.model.linked_supplier import LinkedSupplier from apideck.model.linked_tracking_categories import LinkedTrackingCategories @@ -23,6 +24,7 @@ globals()['BankAccount'] = BankAccount globals()['BillLineItem'] = BillLineItem globals()['Currency'] = Currency +globals()['CustomField'] = CustomField globals()['LinkedLedgerAccount'] = LinkedLedgerAccount globals()['LinkedSupplier'] = LinkedSupplier globals()['LinkedTrackingCategories'] = LinkedTrackingCategories diff --git a/src/test/test_customer.py b/src/test/test_customer.py index 5b308a636..0af2efea7 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_ledger_account.py b/src/test/test_ledger_account.py index 3bb9791f5..1368d4984 100644 --- a/src/test/test_ledger_account.py +++ b/src/test/test_ledger_account.py @@ -15,12 +15,14 @@ import apideck from apideck.model.bank_account import BankAccount from apideck.model.currency import Currency +from apideck.model.custom_field import CustomField from apideck.model.ledger_account_categories import LedgerAccountCategories from apideck.model.ledger_account_parent_account import LedgerAccountParentAccount from apideck.model.linked_tax_rate import LinkedTaxRate from apideck.model.pass_through_body import PassThroughBody globals()['BankAccount'] = BankAccount globals()['Currency'] = Currency +globals()['CustomField'] = CustomField globals()['LedgerAccountCategories'] = LedgerAccountCategories globals()['LedgerAccountParentAccount'] = LedgerAccountParentAccount globals()['LinkedTaxRate'] = LinkedTaxRate diff --git a/src/test/test_outstanding_balance.py b/src/test/test_outstanding_balance_by_customer.py similarity index 63% rename from src/test/test_outstanding_balance.py rename to src/test/test_outstanding_balance_by_customer.py index b42578a1d..d69ec434c 100644 --- a/src/test/test_outstanding_balance.py +++ b/src/test/test_outstanding_balance_by_customer.py @@ -15,11 +15,11 @@ import apideck from apideck.model.outstanding_balance_by_currency import OutstandingBalanceByCurrency globals()['OutstandingBalanceByCurrency'] = OutstandingBalanceByCurrency -from apideck.model.outstanding_balance import OutstandingBalance +from apideck.model.outstanding_balance_by_customer import OutstandingBalanceByCustomer -class TestOutstandingBalance(unittest.TestCase): - """OutstandingBalance unit test stubs""" +class TestOutstandingBalanceByCustomer(unittest.TestCase): + """OutstandingBalanceByCustomer unit test stubs""" def setUp(self): pass @@ -27,10 +27,10 @@ def setUp(self): def tearDown(self): pass - def testOutstandingBalance(self): - """Test OutstandingBalance""" + def testOutstandingBalanceByCustomer(self): + """Test OutstandingBalanceByCustomer""" # FIXME: construct object with mandatory attributes with example values - # model = OutstandingBalance() # noqa: E501 + # model = OutstandingBalanceByCustomer() # noqa: E501 pass diff --git a/src/test/test_outstanding_balance_by_supplier.py b/src/test/test_outstanding_balance_by_supplier.py new file mode 100644 index 000000000..f30c5c7ef --- /dev/null +++ b/src/test/test_outstanding_balance_by_supplier.py @@ -0,0 +1,38 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.9.0 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.outstanding_balance_by_currency import OutstandingBalanceByCurrency +globals()['OutstandingBalanceByCurrency'] = OutstandingBalanceByCurrency +from apideck.model.outstanding_balance_by_supplier import OutstandingBalanceBySupplier + + +class TestOutstandingBalanceBySupplier(unittest.TestCase): + """OutstandingBalanceBySupplier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOutstandingBalanceBySupplier(self): + """Test OutstandingBalanceBySupplier""" + # FIXME: construct object with mandatory attributes with example values + # model = OutstandingBalanceBySupplier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_supplier.py b/src/test/test_supplier.py index 3454ac18b..5749fdc74 100644 --- a/src/test/test_supplier.py +++ b/src/test/test_supplier.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_tax_rate import LinkedTaxRate @@ -25,6 +26,7 @@ globals()['Address'] = Address globals()['BankAccount'] = BankAccount globals()['Currency'] = Currency +globals()['CustomField'] = CustomField globals()['Email'] = Email globals()['LinkedLedgerAccount'] = LinkedLedgerAccount globals()['LinkedTaxRate'] = LinkedTaxRate diff --git a/src/test/test_tax_rate.py b/src/test/test_tax_rate.py index d2412a93e..f58d15d44 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