diff --git a/README.md b/README.md index 723fc9596..1231ffa64 100644 --- a/README.md +++ b/README.md @@ -186,12 +186,16 @@ from apideck.model.aged_report_filter import AgedReportFilter from apideck.model.attachment_reference_type import AttachmentReferenceType from apideck.model.bad_request_response import BadRequestResponse from apideck.model.balance_sheet_filter import BalanceSheetFilter +from apideck.model.bank_feed_account import BankFeedAccount +from apideck.model.bank_feed_statement import BankFeedStatement from apideck.model.bill import Bill from apideck.model.bill_payment import BillPayment from apideck.model.bills_filter import BillsFilter from apideck.model.bills_sort import BillsSort from apideck.model.create_accounting_department_response import CreateAccountingDepartmentResponse from apideck.model.create_accounting_location_response import CreateAccountingLocationResponse +from apideck.model.create_bank_feed_account_response import CreateBankFeedAccountResponse +from apideck.model.create_bank_feed_statement_response import CreateBankFeedStatementResponse from apideck.model.create_bill_payment_response import CreateBillPaymentResponse from apideck.model.create_bill_response import CreateBillResponse from apideck.model.create_credit_note_response import CreateCreditNoteResponse @@ -216,6 +220,8 @@ from apideck.model.customers_sort import CustomersSort from apideck.model.delete_accounting_department_response import DeleteAccountingDepartmentResponse from apideck.model.delete_accounting_location_response import DeleteAccountingLocationResponse from apideck.model.delete_attachment_response import DeleteAttachmentResponse +from apideck.model.delete_bank_feed_account_response import DeleteBankFeedAccountResponse +from apideck.model.delete_bank_feed_statement_response import DeleteBankFeedStatementResponse from apideck.model.delete_bill_payment_response import DeleteBillPaymentResponse from apideck.model.delete_bill_response import DeleteBillResponse from apideck.model.delete_credit_note_response import DeleteCreditNoteResponse @@ -240,6 +246,10 @@ from apideck.model.get_aged_debtors_response import GetAgedDebtorsResponse from apideck.model.get_attachment_response import GetAttachmentResponse from apideck.model.get_attachments_response import GetAttachmentsResponse from apideck.model.get_balance_sheet_response import GetBalanceSheetResponse +from apideck.model.get_bank_feed_account_response import GetBankFeedAccountResponse +from apideck.model.get_bank_feed_accounts_response import GetBankFeedAccountsResponse +from apideck.model.get_bank_feed_statement_response import GetBankFeedStatementResponse +from apideck.model.get_bank_feed_statements_response import GetBankFeedStatementsResponse from apideck.model.get_bill_payment_response import GetBillPaymentResponse from apideck.model.get_bill_payments_response import GetBillPaymentsResponse from apideck.model.get_bill_response import GetBillResponse @@ -307,6 +317,8 @@ from apideck.model.unexpected_error_response import UnexpectedErrorResponse from apideck.model.unprocessable_response import UnprocessableResponse from apideck.model.update_accounting_department_response import UpdateAccountingDepartmentResponse from apideck.model.update_accounting_location_response import UpdateAccountingLocationResponse +from apideck.model.update_bank_feed_account_response import UpdateBankFeedAccountResponse +from apideck.model.update_bank_feed_statement_response import UpdateBankFeedStatementResponse from apideck.model.update_bill_payment_response import UpdateBillPaymentResponse from apideck.model.update_bill_response import UpdateBillResponse from apideck.model.update_credit_note_response import UpdateCreditNoteResponse @@ -386,6 +398,26 @@ _AccountingApi_ | [**attachments_one**](docs/apis/AccountingApi.md#attachments_o _AccountingApi_ | [**balance_sheet_one**](docs/apis/AccountingApi.md#balance_sheet_one) | **GET** /accounting/balance-sheet | Get BalanceSheet | +_AccountingApi_ | [**bank_feed_accounts_add**](docs/apis/AccountingApi.md#bank_feed_accounts_add) | **POST** /accounting/bank-feed-accounts | Create Bank Feed Account | + +_AccountingApi_ | [**bank_feed_accounts_all**](docs/apis/AccountingApi.md#bank_feed_accounts_all) | **GET** /accounting/bank-feed-accounts | List Bank Feed Accounts | + +_AccountingApi_ | [**bank_feed_accounts_delete**](docs/apis/AccountingApi.md#bank_feed_accounts_delete) | **DELETE** /accounting/bank-feed-accounts/{id} | Delete Bank Feed Account | + +_AccountingApi_ | [**bank_feed_accounts_one**](docs/apis/AccountingApi.md#bank_feed_accounts_one) | **GET** /accounting/bank-feed-accounts/{id} | Get Bank Feed Account | + +_AccountingApi_ | [**bank_feed_accounts_update**](docs/apis/AccountingApi.md#bank_feed_accounts_update) | **PATCH** /accounting/bank-feed-accounts/{id} | Update Bank Feed Account | + +_AccountingApi_ | [**bank_feed_statements_add**](docs/apis/AccountingApi.md#bank_feed_statements_add) | **POST** /accounting/bank-feed-statements | Create Bank Feed Statement | + +_AccountingApi_ | [**bank_feed_statements_all**](docs/apis/AccountingApi.md#bank_feed_statements_all) | **GET** /accounting/bank-feed-statements | List Bank Feed Statements | + +_AccountingApi_ | [**bank_feed_statements_delete**](docs/apis/AccountingApi.md#bank_feed_statements_delete) | **DELETE** /accounting/bank-feed-statements/{id} | Delete Bank Feed Statement | + +_AccountingApi_ | [**bank_feed_statements_one**](docs/apis/AccountingApi.md#bank_feed_statements_one) | **GET** /accounting/bank-feed-statements/{id} | Get Bank Feed Statement | + +_AccountingApi_ | [**bank_feed_statements_update**](docs/apis/AccountingApi.md#bank_feed_statements_update) | **PATCH** /accounting/bank-feed-statements/{id} | Update Bank Feed Statement | + _AccountingApi_ | [**bill_payments_add**](docs/apis/AccountingApi.md#bill_payments_add) | **POST** /accounting/bill-payments | Create Bill Payment | _AccountingApi_ | [**bill_payments_all**](docs/apis/AccountingApi.md#bill_payments_all) | **GET** /accounting/bill-payments | List Bill Payments | @@ -1056,6 +1088,9 @@ _WebhookApi_ | [**webhooks_update**](docs/apis/WebhookApi.md#webhooks_update) | - [BalanceSheetReports](docs/models/BalanceSheetReports.md) - [BalanceSheetUncategorizedItemsAccount](docs/models/BalanceSheetUncategorizedItemsAccount.md) - [BankAccount](docs/models/BankAccount.md) + - [BankFeedAccount](docs/models/BankFeedAccount.md) + - [BankFeedStatement](docs/models/BankFeedStatement.md) + - [BankFeedStatementTransactions](docs/models/BankFeedStatementTransactions.md) - [Benefit](docs/models/Benefit.md) - [Bill](docs/models/Bill.md) - [BillLineItem](docs/models/BillLineItem.md) @@ -1114,6 +1149,8 @@ _WebhookApi_ | [**webhooks_update**](docs/apis/WebhookApi.md#webhooks_update) | - [CreateApplicationResponse](docs/models/CreateApplicationResponse.md) - [CreateAttachmentRequest](docs/models/CreateAttachmentRequest.md) - [CreateAttachmentResponse](docs/models/CreateAttachmentResponse.md) + - [CreateBankFeedAccountResponse](docs/models/CreateBankFeedAccountResponse.md) + - [CreateBankFeedStatementResponse](docs/models/CreateBankFeedStatementResponse.md) - [CreateBillPaymentResponse](docs/models/CreateBillPaymentResponse.md) - [CreateBillResponse](docs/models/CreateBillResponse.md) - [CreateCallbackState](docs/models/CreateCallbackState.md) @@ -1179,6 +1216,7 @@ _WebhookApi_ | [**webhooks_update**](docs/apis/WebhookApi.md#webhooks_update) | - [CreditNote](docs/models/CreditNote.md) - [CreditNotesFilter](docs/models/CreditNotesFilter.md) - [CreditNotesSort](docs/models/CreditNotesSort.md) + - [CreditOrDebit](docs/models/CreditOrDebit.md) - [CrmEventType](docs/models/CrmEventType.md) - [Currency](docs/models/Currency.md) - [CustomField](docs/models/CustomField.md) @@ -1194,6 +1232,8 @@ _WebhookApi_ | [**webhooks_update**](docs/apis/WebhookApi.md#webhooks_update) | - [DeleteApplicantResponse](docs/models/DeleteApplicantResponse.md) - [DeleteApplicationResponse](docs/models/DeleteApplicationResponse.md) - [DeleteAttachmentResponse](docs/models/DeleteAttachmentResponse.md) + - [DeleteBankFeedAccountResponse](docs/models/DeleteBankFeedAccountResponse.md) + - [DeleteBankFeedStatementResponse](docs/models/DeleteBankFeedStatementResponse.md) - [DeleteBillPaymentResponse](docs/models/DeleteBillPaymentResponse.md) - [DeleteBillResponse](docs/models/DeleteBillResponse.md) - [DeleteCommentResponse](docs/models/DeleteCommentResponse.md) @@ -1320,6 +1360,10 @@ _WebhookApi_ | [**webhooks_update**](docs/apis/WebhookApi.md#webhooks_update) | - [GetAttachmentResponse](docs/models/GetAttachmentResponse.md) - [GetAttachmentsResponse](docs/models/GetAttachmentsResponse.md) - [GetBalanceSheetResponse](docs/models/GetBalanceSheetResponse.md) + - [GetBankFeedAccountResponse](docs/models/GetBankFeedAccountResponse.md) + - [GetBankFeedAccountsResponse](docs/models/GetBankFeedAccountsResponse.md) + - [GetBankFeedStatementResponse](docs/models/GetBankFeedStatementResponse.md) + - [GetBankFeedStatementsResponse](docs/models/GetBankFeedStatementsResponse.md) - [GetBillPaymentResponse](docs/models/GetBillPaymentResponse.md) - [GetBillPaymentsResponse](docs/models/GetBillPaymentsResponse.md) - [GetBillResponse](docs/models/GetBillResponse.md) @@ -1639,6 +1683,8 @@ _WebhookApi_ | [**webhooks_update**](docs/apis/WebhookApi.md#webhooks_update) | - [UpdateActivityResponse](docs/models/UpdateActivityResponse.md) - [UpdateApplicantResponse](docs/models/UpdateApplicantResponse.md) - [UpdateApplicationResponse](docs/models/UpdateApplicationResponse.md) + - [UpdateBankFeedAccountResponse](docs/models/UpdateBankFeedAccountResponse.md) + - [UpdateBankFeedStatementResponse](docs/models/UpdateBankFeedStatementResponse.md) - [UpdateBillPaymentResponse](docs/models/UpdateBillPaymentResponse.md) - [UpdateBillResponse](docs/models/UpdateBillResponse.md) - [UpdateCommentResponse](docs/models/UpdateCommentResponse.md) diff --git a/docs/apis/AccountingApi.md b/docs/apis/AccountingApi.md index c55f2c785..9cdfca5c5 100644 --- a/docs/apis/AccountingApi.md +++ b/docs/apis/AccountingApi.md @@ -11,6 +11,16 @@ Method | HTTP request | Description [**attachments_download**](AccountingApi.md#attachments_download) | **GET** /accounting/attachments/{reference_type}/{reference_id}/{id}/download | Download Attachment [**attachments_one**](AccountingApi.md#attachments_one) | **GET** /accounting/attachments/{reference_type}/{reference_id}/{id} | Get Attachment [**balance_sheet_one**](AccountingApi.md#balance_sheet_one) | **GET** /accounting/balance-sheet | Get BalanceSheet +[**bank_feed_accounts_add**](AccountingApi.md#bank_feed_accounts_add) | **POST** /accounting/bank-feed-accounts | Create Bank Feed Account +[**bank_feed_accounts_all**](AccountingApi.md#bank_feed_accounts_all) | **GET** /accounting/bank-feed-accounts | List Bank Feed Accounts +[**bank_feed_accounts_delete**](AccountingApi.md#bank_feed_accounts_delete) | **DELETE** /accounting/bank-feed-accounts/{id} | Delete Bank Feed Account +[**bank_feed_accounts_one**](AccountingApi.md#bank_feed_accounts_one) | **GET** /accounting/bank-feed-accounts/{id} | Get Bank Feed Account +[**bank_feed_accounts_update**](AccountingApi.md#bank_feed_accounts_update) | **PATCH** /accounting/bank-feed-accounts/{id} | Update Bank Feed Account +[**bank_feed_statements_add**](AccountingApi.md#bank_feed_statements_add) | **POST** /accounting/bank-feed-statements | Create Bank Feed Statement +[**bank_feed_statements_all**](AccountingApi.md#bank_feed_statements_all) | **GET** /accounting/bank-feed-statements | List Bank Feed Statements +[**bank_feed_statements_delete**](AccountingApi.md#bank_feed_statements_delete) | **DELETE** /accounting/bank-feed-statements/{id} | Delete Bank Feed Statement +[**bank_feed_statements_one**](AccountingApi.md#bank_feed_statements_one) | **GET** /accounting/bank-feed-statements/{id} | Get Bank Feed Statement +[**bank_feed_statements_update**](AccountingApi.md#bank_feed_statements_update) | **PATCH** /accounting/bank-feed-statements/{id} | Update Bank Feed Statement [**bill_payments_add**](AccountingApi.md#bill_payments_add) | **POST** /accounting/bill-payments | Create Bill Payment [**bill_payments_all**](AccountingApi.md#bill_payments_all) | **GET** /accounting/bill-payments | List Bill Payments [**bill_payments_delete**](AccountingApi.md#bill_payments_delete) | **DELETE** /accounting/bill-payments/{id} | Delete Bill Payment @@ -883,6 +893,1162 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) +# **bank_feed_accounts_add** +> CreateBankFeedAccountResponse bank_feed_accounts_add(bank_feed_account) + +Create Bank Feed Account + +Create Bank Feed Account + +### Example + +* Api Key Authentication (apiKey): + +```python +import time +import apideck +from apideck.api import accounting_api +from apideck.model.bad_request_response import BadRequestResponse +from apideck.model.create_bank_feed_account_response import CreateBankFeedAccountResponse +from apideck.model.payment_required_response import PaymentRequiredResponse +from apideck.model.bank_feed_account import BankFeedAccount +from apideck.model.unexpected_error_response import UnexpectedErrorResponse +from apideck.model.unauthorized_response import UnauthorizedResponse +from apideck.model.unprocessable_response import UnprocessableResponse +from apideck.model.not_found_response import NotFoundResponse +from pprint import pprint +# Defining the host is optional and defaults to https://unify.apideck.com +# See configuration.py for a list of all supported configuration parameters. +configuration = apideck.Configuration( + host = "https://unify.apideck.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apiKey +configuration.api_key['apiKey'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apiKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with apideck.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounting_api.AccountingApi(api_client) + bank_feed_account = BankFeedAccount( + bank_account_type="bank", + source_account_id="src_456", + target_account_id="tgt_789", + target_account_name="Main Company Checking", + target_account_number="NL91ABNA0417164300", + currency=Currency("USD"), + feed_status="pending", + country="US", + custom_fields=[ + CustomField( + id="2389328923893298", + name="employee_level", + description="Employee Level", + value=None, + ), + ], + ) # BankFeedAccount | + 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) + app_id = "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" # str | The ID of your Unify application (optional) + 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) + + # example passing only required values which don't have defaults set + try: + # Create Bank Feed Account + api_response = api_instance.bank_feed_accounts_add(bank_feed_account) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_accounts_add: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Create Bank Feed Account + api_response = api_instance.bank_feed_accounts_add(bank_feed_account, raw=raw, consumer_id=consumer_id, app_id=app_id, service_id=service_id) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_accounts_add: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bank_feed_account** | [**BankFeedAccount**](BankFeedAccount.md)| | + **raw** | **bool**| Include raw response. Mostly used for debugging purposes | [optional] if omitted the server will use the default value of False + **consumer_id** | **str**| ID of the consumer which you want to get or push data from | [optional] + **app_id** | **str**| The ID of your Unify application | [optional] + **service_id** | **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] + +### Return type + +[**CreateBankFeedAccountResponse**](CreateBankFeedAccountResponse.md) + +### Authorization + +[apiKey](../../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Bank Feed Accounts | - | +**400** | Bad Request | - | +**401** | Unauthorized | - | +**402** | Payment Required | - | +**404** | The specified resource was not found | - | +**422** | Unprocessable | - | +**0** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **bank_feed_accounts_all** +> GetBankFeedAccountsResponse bank_feed_accounts_all() + +List Bank Feed Accounts + +List Bank Feed Accounts + +### Example + +* Api Key Authentication (apiKey): + +```python +import time +import apideck +from apideck.api import accounting_api +from apideck.model.pass_through_query import PassThroughQuery +from apideck.model.bad_request_response import BadRequestResponse +from apideck.model.payment_required_response import PaymentRequiredResponse +from apideck.model.get_bank_feed_accounts_response import GetBankFeedAccountsResponse +from apideck.model.unexpected_error_response import UnexpectedErrorResponse +from apideck.model.unauthorized_response import UnauthorizedResponse +from apideck.model.unprocessable_response import UnprocessableResponse +from apideck.model.not_found_response import NotFoundResponse +from pprint import pprint +# Defining the host is optional and defaults to https://unify.apideck.com +# See configuration.py for a list of all supported configuration parameters. +configuration = apideck.Configuration( + host = "https://unify.apideck.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apiKey +configuration.api_key['apiKey'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apiKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with apideck.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounting_api.AccountingApi(api_client) + 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) + app_id = "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" # str | The ID of your Unify application (optional) + 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) + cursor = "cursor_example" # str, none_type | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional) + limit = 20 # int | Number of results to return. Minimum 1, Maximum 200, Default 20 (optional) if omitted the server will use the default value of 20 + pass_through = PassThroughQuery() # PassThroughQuery | Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional) + fields = "id,updated_at" # str, none_type | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + # List Bank Feed Accounts + api_response = api_instance.bank_feed_accounts_all(raw=raw, consumer_id=consumer_id, app_id=app_id, service_id=service_id, cursor=cursor, limit=limit, pass_through=pass_through, fields=fields) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_accounts_all: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **raw** | **bool**| Include raw response. Mostly used for debugging purposes | [optional] if omitted the server will use the default value of False + **consumer_id** | **str**| ID of the consumer which you want to get or push data from | [optional] + **app_id** | **str**| The ID of your Unify application | [optional] + **service_id** | **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] + **cursor** | **str, none_type**| Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | [optional] + **limit** | **int**| Number of results to return. Minimum 1, Maximum 200, Default 20 | [optional] if omitted the server will use the default value of 20 + **pass_through** | **PassThroughQuery**| Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads | [optional] + **fields** | **str, none_type**| The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. | [optional] + +### Return type + +[**GetBankFeedAccountsResponse**](GetBankFeedAccountsResponse.md) + +### Authorization + +[apiKey](../../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Bank Feed Accounts | - | +**400** | Bad Request | - | +**401** | Unauthorized | - | +**402** | Payment Required | - | +**404** | The specified resource was not found | - | +**422** | Unprocessable | - | +**0** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **bank_feed_accounts_delete** +> DeleteBankFeedAccountResponse bank_feed_accounts_delete(id) + +Delete Bank Feed Account + +Delete Bank Feed Account + +### Example + +* Api Key Authentication (apiKey): + +```python +import time +import apideck +from apideck.api import accounting_api +from apideck.model.delete_bank_feed_account_response import DeleteBankFeedAccountResponse +from apideck.model.bad_request_response import BadRequestResponse +from apideck.model.payment_required_response import PaymentRequiredResponse +from apideck.model.unexpected_error_response import UnexpectedErrorResponse +from apideck.model.unauthorized_response import UnauthorizedResponse +from apideck.model.unprocessable_response import UnprocessableResponse +from apideck.model.not_found_response import NotFoundResponse +from pprint import pprint +# Defining the host is optional and defaults to https://unify.apideck.com +# See configuration.py for a list of all supported configuration parameters. +configuration = apideck.Configuration( + host = "https://unify.apideck.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apiKey +configuration.api_key['apiKey'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apiKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with apideck.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounting_api.AccountingApi(api_client) + id = "id_example" # str | ID of the record you are acting upon. + 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) + 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) + raw = False # bool | Include raw response. Mostly used for debugging purposes (optional) if omitted the server will use the default value of False + + # example passing only required values which don't have defaults set + try: + # Delete Bank Feed Account + api_response = api_instance.bank_feed_accounts_delete(id) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_accounts_delete: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Delete Bank Feed Account + api_response = api_instance.bank_feed_accounts_delete(id, consumer_id=consumer_id, app_id=app_id, service_id=service_id, raw=raw) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_accounts_delete: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the record you are acting upon. | + **consumer_id** | **str**| ID of the consumer which you want to get or push data from | [optional] + **app_id** | **str**| The ID of your Unify application | [optional] + **service_id** | **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] + **raw** | **bool**| Include raw response. Mostly used for debugging purposes | [optional] if omitted the server will use the default value of False + +### Return type + +[**DeleteBankFeedAccountResponse**](DeleteBankFeedAccountResponse.md) + +### Authorization + +[apiKey](../../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Bank Feed Accounts | - | +**400** | Bad Request | - | +**401** | Unauthorized | - | +**402** | Payment Required | - | +**404** | The specified resource was not found | - | +**422** | Unprocessable | - | +**0** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **bank_feed_accounts_one** +> GetBankFeedAccountResponse bank_feed_accounts_one(id) + +Get Bank Feed Account + +Get Bank Feed Account + +### Example + +* Api Key Authentication (apiKey): + +```python +import time +import apideck +from apideck.api import accounting_api +from apideck.model.bad_request_response import BadRequestResponse +from apideck.model.payment_required_response import PaymentRequiredResponse +from apideck.model.unexpected_error_response import UnexpectedErrorResponse +from apideck.model.get_bank_feed_account_response import GetBankFeedAccountResponse +from apideck.model.unauthorized_response import UnauthorizedResponse +from apideck.model.unprocessable_response import UnprocessableResponse +from apideck.model.not_found_response import NotFoundResponse +from pprint import pprint +# Defining the host is optional and defaults to https://unify.apideck.com +# See configuration.py for a list of all supported configuration parameters. +configuration = apideck.Configuration( + host = "https://unify.apideck.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apiKey +configuration.api_key['apiKey'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apiKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with apideck.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounting_api.AccountingApi(api_client) + id = "id_example" # str | ID of the record you are acting upon. + 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) + 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) + raw = False # bool | Include raw response. Mostly used for debugging purposes (optional) if omitted the server will use the default value of False + fields = "id,updated_at" # str, none_type | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional) + + # example passing only required values which don't have defaults set + try: + # Get Bank Feed Account + api_response = api_instance.bank_feed_accounts_one(id) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_accounts_one: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Get Bank Feed Account + api_response = api_instance.bank_feed_accounts_one(id, consumer_id=consumer_id, app_id=app_id, service_id=service_id, raw=raw, fields=fields) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_accounts_one: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the record you are acting upon. | + **consumer_id** | **str**| ID of the consumer which you want to get or push data from | [optional] + **app_id** | **str**| The ID of your Unify application | [optional] + **service_id** | **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] + **raw** | **bool**| Include raw response. Mostly used for debugging purposes | [optional] if omitted the server will use the default value of False + **fields** | **str, none_type**| The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. | [optional] + +### Return type + +[**GetBankFeedAccountResponse**](GetBankFeedAccountResponse.md) + +### Authorization + +[apiKey](../../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Bank Feed Accounts | - | +**400** | Bad Request | - | +**401** | Unauthorized | - | +**402** | Payment Required | - | +**404** | The specified resource was not found | - | +**422** | Unprocessable | - | +**0** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **bank_feed_accounts_update** +> UpdateBankFeedAccountResponse bank_feed_accounts_update(id, bank_feed_account) + +Update Bank Feed Account + +Update Bank Feed Account + +### Example + +* Api Key Authentication (apiKey): + +```python +import time +import apideck +from apideck.api import accounting_api +from apideck.model.update_bank_feed_account_response import UpdateBankFeedAccountResponse +from apideck.model.bad_request_response import BadRequestResponse +from apideck.model.payment_required_response import PaymentRequiredResponse +from apideck.model.bank_feed_account import BankFeedAccount +from apideck.model.unexpected_error_response import UnexpectedErrorResponse +from apideck.model.unauthorized_response import UnauthorizedResponse +from apideck.model.unprocessable_response import UnprocessableResponse +from apideck.model.not_found_response import NotFoundResponse +from pprint import pprint +# Defining the host is optional and defaults to https://unify.apideck.com +# See configuration.py for a list of all supported configuration parameters. +configuration = apideck.Configuration( + host = "https://unify.apideck.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apiKey +configuration.api_key['apiKey'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apiKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with apideck.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounting_api.AccountingApi(api_client) + id = "id_example" # str | ID of the record you are acting upon. + bank_feed_account = BankFeedAccount( + bank_account_type="bank", + source_account_id="src_456", + target_account_id="tgt_789", + target_account_name="Main Company Checking", + target_account_number="NL91ABNA0417164300", + currency=Currency("USD"), + feed_status="pending", + country="US", + custom_fields=[ + CustomField( + id="2389328923893298", + name="employee_level", + description="Employee Level", + value=None, + ), + ], + ) # BankFeedAccount | + 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) + 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) + raw = False # bool | Include raw response. Mostly used for debugging purposes (optional) if omitted the server will use the default value of False + + # example passing only required values which don't have defaults set + try: + # Update Bank Feed Account + api_response = api_instance.bank_feed_accounts_update(id, bank_feed_account) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_accounts_update: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Update Bank Feed Account + api_response = api_instance.bank_feed_accounts_update(id, bank_feed_account, consumer_id=consumer_id, app_id=app_id, service_id=service_id, raw=raw) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_accounts_update: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the record you are acting upon. | + **bank_feed_account** | [**BankFeedAccount**](BankFeedAccount.md)| | + **consumer_id** | **str**| ID of the consumer which you want to get or push data from | [optional] + **app_id** | **str**| The ID of your Unify application | [optional] + **service_id** | **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] + **raw** | **bool**| Include raw response. Mostly used for debugging purposes | [optional] if omitted the server will use the default value of False + +### Return type + +[**UpdateBankFeedAccountResponse**](UpdateBankFeedAccountResponse.md) + +### Authorization + +[apiKey](../../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Bank Feed Accounts | - | +**400** | Bad Request | - | +**401** | Unauthorized | - | +**402** | Payment Required | - | +**404** | The specified resource was not found | - | +**422** | Unprocessable | - | +**0** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **bank_feed_statements_add** +> CreateBankFeedStatementResponse bank_feed_statements_add(bank_feed_statement) + +Create Bank Feed Statement + +Create Bank Feed Statement + +### Example + +* Api Key Authentication (apiKey): + +```python +import time +import apideck +from apideck.api import accounting_api +from apideck.model.create_bank_feed_statement_response import CreateBankFeedStatementResponse +from apideck.model.bad_request_response import BadRequestResponse +from apideck.model.payment_required_response import PaymentRequiredResponse +from apideck.model.unexpected_error_response import UnexpectedErrorResponse +from apideck.model.unauthorized_response import UnauthorizedResponse +from apideck.model.bank_feed_statement import BankFeedStatement +from apideck.model.unprocessable_response import UnprocessableResponse +from apideck.model.not_found_response import NotFoundResponse +from pprint import pprint +# Defining the host is optional and defaults to https://unify.apideck.com +# See configuration.py for a list of all supported configuration parameters. +configuration = apideck.Configuration( + host = "https://unify.apideck.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apiKey +configuration.api_key['apiKey'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apiKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with apideck.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounting_api.AccountingApi(api_client) + bank_feed_statement = BankFeedStatement( + bank_feed_account_id="acc_456", + status="pending", + start_date=dateutil_parser('2021-05-01T12:00:00Z'), + end_date=dateutil_parser('2025-01-31T12:00:00Z'), + start_balance=10500.25, + start_balance_credit_or_debit=CreditOrDebit("debit"), + end_balance=9800.5, + end_balance_credit_or_debit=CreditOrDebit("debit"), + transactions=[ + BankFeedStatementTransactions( + posted_date=dateutil_parser('2025-01-15T12:00:00Z'), + description="Payment received from ACME Corp", + amount=250, + credit_or_debit=CreditOrDebit("debit"), + source_transaction_id="txn_987", + counterparty="ACME Corp", + reference="INV-2025-01", + transaction_type="payment", + ), + ], + ) # BankFeedStatement | + 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) + app_id = "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" # str | The ID of your Unify application (optional) + 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) + + # example passing only required values which don't have defaults set + try: + # Create Bank Feed Statement + api_response = api_instance.bank_feed_statements_add(bank_feed_statement) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_statements_add: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Create Bank Feed Statement + api_response = api_instance.bank_feed_statements_add(bank_feed_statement, raw=raw, consumer_id=consumer_id, app_id=app_id, service_id=service_id) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_statements_add: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bank_feed_statement** | [**BankFeedStatement**](BankFeedStatement.md)| | + **raw** | **bool**| Include raw response. Mostly used for debugging purposes | [optional] if omitted the server will use the default value of False + **consumer_id** | **str**| ID of the consumer which you want to get or push data from | [optional] + **app_id** | **str**| The ID of your Unify application | [optional] + **service_id** | **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] + +### Return type + +[**CreateBankFeedStatementResponse**](CreateBankFeedStatementResponse.md) + +### Authorization + +[apiKey](../../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Bank Feed Statements | - | +**400** | Bad Request | - | +**401** | Unauthorized | - | +**402** | Payment Required | - | +**404** | The specified resource was not found | - | +**422** | Unprocessable | - | +**0** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **bank_feed_statements_all** +> GetBankFeedStatementsResponse bank_feed_statements_all() + +List Bank Feed Statements + +List Bank Feed Statements + +### Example + +* Api Key Authentication (apiKey): + +```python +import time +import apideck +from apideck.api import accounting_api +from apideck.model.pass_through_query import PassThroughQuery +from apideck.model.get_bank_feed_statements_response import GetBankFeedStatementsResponse +from apideck.model.bad_request_response import BadRequestResponse +from apideck.model.payment_required_response import PaymentRequiredResponse +from apideck.model.unexpected_error_response import UnexpectedErrorResponse +from apideck.model.unauthorized_response import UnauthorizedResponse +from apideck.model.unprocessable_response import UnprocessableResponse +from apideck.model.not_found_response import NotFoundResponse +from pprint import pprint +# Defining the host is optional and defaults to https://unify.apideck.com +# See configuration.py for a list of all supported configuration parameters. +configuration = apideck.Configuration( + host = "https://unify.apideck.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apiKey +configuration.api_key['apiKey'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apiKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with apideck.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounting_api.AccountingApi(api_client) + 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) + app_id = "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" # str | The ID of your Unify application (optional) + 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) + cursor = "cursor_example" # str, none_type | Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. (optional) + limit = 20 # int | Number of results to return. Minimum 1, Maximum 200, Default 20 (optional) if omitted the server will use the default value of 20 + pass_through = PassThroughQuery() # PassThroughQuery | Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads (optional) + fields = "id,updated_at" # str, none_type | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + # List Bank Feed Statements + api_response = api_instance.bank_feed_statements_all(raw=raw, consumer_id=consumer_id, app_id=app_id, service_id=service_id, cursor=cursor, limit=limit, pass_through=pass_through, fields=fields) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_statements_all: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **raw** | **bool**| Include raw response. Mostly used for debugging purposes | [optional] if omitted the server will use the default value of False + **consumer_id** | **str**| ID of the consumer which you want to get or push data from | [optional] + **app_id** | **str**| The ID of your Unify application | [optional] + **service_id** | **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] + **cursor** | **str, none_type**| Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response. | [optional] + **limit** | **int**| Number of results to return. Minimum 1, Maximum 200, Default 20 | [optional] if omitted the server will use the default value of 20 + **pass_through** | **PassThroughQuery**| Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads | [optional] + **fields** | **str, none_type**| The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. | [optional] + +### Return type + +[**GetBankFeedStatementsResponse**](GetBankFeedStatementsResponse.md) + +### Authorization + +[apiKey](../../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Bank Feed Statements | - | +**400** | Bad Request | - | +**401** | Unauthorized | - | +**402** | Payment Required | - | +**404** | The specified resource was not found | - | +**422** | Unprocessable | - | +**0** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **bank_feed_statements_delete** +> DeleteBankFeedStatementResponse bank_feed_statements_delete(id) + +Delete Bank Feed Statement + +Delete Bank Feed Statement + +### Example + +* Api Key Authentication (apiKey): + +```python +import time +import apideck +from apideck.api import accounting_api +from apideck.model.bad_request_response import BadRequestResponse +from apideck.model.payment_required_response import PaymentRequiredResponse +from apideck.model.unexpected_error_response import UnexpectedErrorResponse +from apideck.model.unauthorized_response import UnauthorizedResponse +from apideck.model.delete_bank_feed_statement_response import DeleteBankFeedStatementResponse +from apideck.model.unprocessable_response import UnprocessableResponse +from apideck.model.not_found_response import NotFoundResponse +from pprint import pprint +# Defining the host is optional and defaults to https://unify.apideck.com +# See configuration.py for a list of all supported configuration parameters. +configuration = apideck.Configuration( + host = "https://unify.apideck.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apiKey +configuration.api_key['apiKey'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apiKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with apideck.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounting_api.AccountingApi(api_client) + id = "id_example" # str | ID of the record you are acting upon. + 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) + 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) + raw = False # bool | Include raw response. Mostly used for debugging purposes (optional) if omitted the server will use the default value of False + + # example passing only required values which don't have defaults set + try: + # Delete Bank Feed Statement + api_response = api_instance.bank_feed_statements_delete(id) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_statements_delete: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Delete Bank Feed Statement + api_response = api_instance.bank_feed_statements_delete(id, consumer_id=consumer_id, app_id=app_id, service_id=service_id, raw=raw) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_statements_delete: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the record you are acting upon. | + **consumer_id** | **str**| ID of the consumer which you want to get or push data from | [optional] + **app_id** | **str**| The ID of your Unify application | [optional] + **service_id** | **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] + **raw** | **bool**| Include raw response. Mostly used for debugging purposes | [optional] if omitted the server will use the default value of False + +### Return type + +[**DeleteBankFeedStatementResponse**](DeleteBankFeedStatementResponse.md) + +### Authorization + +[apiKey](../../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Bank Feed Statements | - | +**400** | Bad Request | - | +**401** | Unauthorized | - | +**402** | Payment Required | - | +**404** | The specified resource was not found | - | +**422** | Unprocessable | - | +**0** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **bank_feed_statements_one** +> GetBankFeedStatementResponse bank_feed_statements_one(id) + +Get Bank Feed Statement + +Get Bank Feed Statement + +### Example + +* Api Key Authentication (apiKey): + +```python +import time +import apideck +from apideck.api import accounting_api +from apideck.model.bad_request_response import BadRequestResponse +from apideck.model.payment_required_response import PaymentRequiredResponse +from apideck.model.unexpected_error_response import UnexpectedErrorResponse +from apideck.model.unauthorized_response import UnauthorizedResponse +from apideck.model.get_bank_feed_statement_response import GetBankFeedStatementResponse +from apideck.model.unprocessable_response import UnprocessableResponse +from apideck.model.not_found_response import NotFoundResponse +from pprint import pprint +# Defining the host is optional and defaults to https://unify.apideck.com +# See configuration.py for a list of all supported configuration parameters. +configuration = apideck.Configuration( + host = "https://unify.apideck.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apiKey +configuration.api_key['apiKey'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apiKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with apideck.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounting_api.AccountingApi(api_client) + id = "id_example" # str | ID of the record you are acting upon. + 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) + 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) + raw = False # bool | Include raw response. Mostly used for debugging purposes (optional) if omitted the server will use the default value of False + fields = "id,updated_at" # str, none_type | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. (optional) + + # example passing only required values which don't have defaults set + try: + # Get Bank Feed Statement + api_response = api_instance.bank_feed_statements_one(id) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_statements_one: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Get Bank Feed Statement + api_response = api_instance.bank_feed_statements_one(id, consumer_id=consumer_id, app_id=app_id, service_id=service_id, raw=raw, fields=fields) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_statements_one: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the record you are acting upon. | + **consumer_id** | **str**| ID of the consumer which you want to get or push data from | [optional] + **app_id** | **str**| The ID of your Unify application | [optional] + **service_id** | **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] + **raw** | **bool**| Include raw response. Mostly used for debugging purposes | [optional] if omitted the server will use the default value of False + **fields** | **str, none_type**| The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded. | [optional] + +### Return type + +[**GetBankFeedStatementResponse**](GetBankFeedStatementResponse.md) + +### Authorization + +[apiKey](../../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Bank Feed Statements | - | +**400** | Bad Request | - | +**401** | Unauthorized | - | +**402** | Payment Required | - | +**404** | The specified resource was not found | - | +**422** | Unprocessable | - | +**0** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + +# **bank_feed_statements_update** +> UpdateBankFeedStatementResponse bank_feed_statements_update(id, bank_feed_statement) + +Update Bank Feed Statement + +Update Bank Feed Statement + +### Example + +* Api Key Authentication (apiKey): + +```python +import time +import apideck +from apideck.api import accounting_api +from apideck.model.bad_request_response import BadRequestResponse +from apideck.model.payment_required_response import PaymentRequiredResponse +from apideck.model.update_bank_feed_statement_response import UpdateBankFeedStatementResponse +from apideck.model.unexpected_error_response import UnexpectedErrorResponse +from apideck.model.unauthorized_response import UnauthorizedResponse +from apideck.model.bank_feed_statement import BankFeedStatement +from apideck.model.unprocessable_response import UnprocessableResponse +from apideck.model.not_found_response import NotFoundResponse +from pprint import pprint +# Defining the host is optional and defaults to https://unify.apideck.com +# See configuration.py for a list of all supported configuration parameters. +configuration = apideck.Configuration( + host = "https://unify.apideck.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: apiKey +configuration.api_key['apiKey'] = 'YOUR_API_KEY' + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['apiKey'] = 'Bearer' + +# Enter a context with an instance of the API client +with apideck.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = accounting_api.AccountingApi(api_client) + id = "id_example" # str | ID of the record you are acting upon. + bank_feed_statement = BankFeedStatement( + bank_feed_account_id="acc_456", + status="pending", + start_date=dateutil_parser('2021-05-01T12:00:00Z'), + end_date=dateutil_parser('2025-01-31T12:00:00Z'), + start_balance=10500.25, + start_balance_credit_or_debit=CreditOrDebit("debit"), + end_balance=9800.5, + end_balance_credit_or_debit=CreditOrDebit("debit"), + transactions=[ + BankFeedStatementTransactions( + posted_date=dateutil_parser('2025-01-15T12:00:00Z'), + description="Payment received from ACME Corp", + amount=250, + credit_or_debit=CreditOrDebit("debit"), + source_transaction_id="txn_987", + counterparty="ACME Corp", + reference="INV-2025-01", + transaction_type="payment", + ), + ], + ) # BankFeedStatement | + 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) + 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) + raw = False # bool | Include raw response. Mostly used for debugging purposes (optional) if omitted the server will use the default value of False + + # example passing only required values which don't have defaults set + try: + # Update Bank Feed Statement + api_response = api_instance.bank_feed_statements_update(id, bank_feed_statement) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_statements_update: %s\n" % e) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Update Bank Feed Statement + api_response = api_instance.bank_feed_statements_update(id, bank_feed_statement, consumer_id=consumer_id, app_id=app_id, service_id=service_id, raw=raw) + pprint(api_response) + except apideck.ApiException as e: + print("Exception when calling AccountingApi->bank_feed_statements_update: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the record you are acting upon. | + **bank_feed_statement** | [**BankFeedStatement**](BankFeedStatement.md)| | + **consumer_id** | **str**| ID of the consumer which you want to get or push data from | [optional] + **app_id** | **str**| The ID of your Unify application | [optional] + **service_id** | **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] + **raw** | **bool**| Include raw response. Mostly used for debugging purposes | [optional] if omitted the server will use the default value of False + +### Return type + +[**UpdateBankFeedStatementResponse**](UpdateBankFeedStatementResponse.md) + +### Authorization + +[apiKey](../../README.md#apiKey) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Bank Feed Statements | - | +**400** | Bad Request | - | +**401** | Unauthorized | - | +**402** | Payment Required | - | +**404** | The specified resource was not found | - | +**422** | Unprocessable | - | +**0** | Unexpected error | - | + +[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md) + # **bill_payments_add** > CreateBillPaymentResponse bill_payments_add(bill_payment) diff --git a/docs/models/BankFeedAccount.md b/docs/models/BankFeedAccount.md new file mode 100644 index 000000000..80ffddeab --- /dev/null +++ b/docs/models/BankFeedAccount.md @@ -0,0 +1,25 @@ +# BankFeedAccount + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | A unique identifier for an object. | [readonly] +**bank_account_type** | **str** | Type of the bank account. | [optional] +**source_account_id** | **str** | The source account's unique identifier. | [optional] +**target_account_id** | **str** | The target account's unique identifier in the accounting connector. | [optional] +**target_account_name** | **str** | Name associated with the target account. | [optional] +**target_account_number** | **str** | Account number of the destination bank account. | [optional] +**currency** | [**Currency**](Currency.md) | | [optional] +**feed_status** | **str** | Current status of the bank feed. | [optional] +**country** | **str, none_type** | Country code according to ISO 3166-1 alpha-2. | [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] +**created_at** | **datetime, none_type** | The date and time when the object was created. | [optional] [readonly] +**updated_at** | **datetime, none_type** | The date and time when the object was last updated. | [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] + +[[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/BankFeedStatement.md b/docs/models/BankFeedStatement.md new file mode 100644 index 000000000..89a84c80b --- /dev/null +++ b/docs/models/BankFeedStatement.md @@ -0,0 +1,24 @@ +# BankFeedStatement + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | A unique identifier for an object. | [readonly] +**bank_feed_account_id** | **str** | The ID of the bank feed account this statement belongs to. | [optional] +**status** | **str** | The current status of the bank feed statement. | [optional] +**start_date** | **datetime** | Start date of the bank feed statement. | [optional] +**end_date** | **datetime** | End date of the bank feed statement. | [optional] +**start_balance** | **float** | Balance amount at the start of the period. | [optional] +**start_balance_credit_or_debit** | [**CreditOrDebit**](CreditOrDebit.md) | | [optional] +**end_balance** | **float** | Balance amount at the end of the period. | [optional] +**end_balance_credit_or_debit** | [**CreditOrDebit**](CreditOrDebit.md) | | [optional] +**transactions** | [**[BankFeedStatementTransactions]**](BankFeedStatementTransactions.md) | List of transactions in the bank feed statement. | [optional] +**created_at** | **datetime, none_type** | The date and time when the object was created. | [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] +**updated_by** | **str, none_type** | The user who last updated the object. | [optional] [readonly] + +[[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/BankFeedStatementTransactions.md b/docs/models/BankFeedStatementTransactions.md new file mode 100644 index 000000000..ff888c92f --- /dev/null +++ b/docs/models/BankFeedStatementTransactions.md @@ -0,0 +1,19 @@ +# BankFeedStatementTransactions + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**posted_date** | **datetime** | The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD | +**amount** | **float** | The amount of the transaction. | +**credit_or_debit** | [**CreditOrDebit**](CreditOrDebit.md) | | +**source_transaction_id** | **str** | The ID of the source transaction. | +**description** | **str** | A description of the transaction. | [optional] +**counterparty** | **str** | The counterparty of the transaction. | [optional] +**reference** | **str** | The reference of the transaction. | [optional] +**transaction_type** | **str** | Type of transaction. | [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) + + diff --git a/docs/models/CreateBankFeedAccountResponse.md b/docs/models/CreateBankFeedAccountResponse.md new file mode 100644 index 000000000..5dec913c4 --- /dev/null +++ b/docs/models/CreateBankFeedAccountResponse.md @@ -0,0 +1,18 @@ +# CreateBankFeedAccountResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP Response Status Code | +**status** | **str** | HTTP Response Status | +**service** | **str** | Apideck ID of service provider | +**resource** | **str** | Unified API resource name | +**operation** | **str** | Operation performed | +**data** | [**UnifiedId**](UnifiedId.md) | | +**raw** | [**Raw**](Raw.md) | | [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) + + diff --git a/docs/models/CreateBankFeedStatementResponse.md b/docs/models/CreateBankFeedStatementResponse.md new file mode 100644 index 000000000..1342d4791 --- /dev/null +++ b/docs/models/CreateBankFeedStatementResponse.md @@ -0,0 +1,18 @@ +# CreateBankFeedStatementResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP Response Status Code | +**status** | **str** | HTTP Response Status | +**service** | **str** | Apideck ID of service provider | +**resource** | **str** | Unified API resource name | +**operation** | **str** | Operation performed | +**data** | [**UnifiedId**](UnifiedId.md) | | +**raw** | [**Raw**](Raw.md) | | [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) + + diff --git a/docs/models/CreditOrDebit.md b/docs/models/CreditOrDebit.md new file mode 100644 index 000000000..452c9b25e --- /dev/null +++ b/docs/models/CreditOrDebit.md @@ -0,0 +1,12 @@ +# CreditOrDebit + +Whether the amount is a credit or debit. + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | Whether the amount is a credit or debit. | must be one of ["credit", "debit", ] + +[[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/DeleteBankFeedAccountResponse.md b/docs/models/DeleteBankFeedAccountResponse.md new file mode 100644 index 000000000..cfa3f1265 --- /dev/null +++ b/docs/models/DeleteBankFeedAccountResponse.md @@ -0,0 +1,18 @@ +# DeleteBankFeedAccountResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP Response Status Code | +**status** | **str** | HTTP Response Status | +**service** | **str** | Apideck ID of service provider | +**resource** | **str** | Unified API resource name | +**operation** | **str** | Operation performed | +**data** | [**UnifiedId**](UnifiedId.md) | | +**raw** | [**Raw**](Raw.md) | | [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) + + diff --git a/docs/models/DeleteBankFeedStatementResponse.md b/docs/models/DeleteBankFeedStatementResponse.md new file mode 100644 index 000000000..95afcd23d --- /dev/null +++ b/docs/models/DeleteBankFeedStatementResponse.md @@ -0,0 +1,18 @@ +# DeleteBankFeedStatementResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP Response Status Code | +**status** | **str** | HTTP Response Status | +**service** | **str** | Apideck ID of service provider | +**resource** | **str** | Unified API resource name | +**operation** | **str** | Operation performed | +**data** | [**UnifiedId**](UnifiedId.md) | | +**raw** | [**Raw**](Raw.md) | | [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) + + diff --git a/docs/models/GetBankFeedAccountResponse.md b/docs/models/GetBankFeedAccountResponse.md new file mode 100644 index 000000000..7fac2c94a --- /dev/null +++ b/docs/models/GetBankFeedAccountResponse.md @@ -0,0 +1,18 @@ +# GetBankFeedAccountResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP Response Status Code | +**status** | **str** | HTTP Response Status | +**service** | **str** | Apideck ID of service provider | +**resource** | **str** | Unified API resource name | +**operation** | **str** | Operation performed | +**data** | [**BankFeedAccount**](BankFeedAccount.md) | | +**raw** | [**Raw**](Raw.md) | | [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) + + diff --git a/docs/models/GetBankFeedAccountsResponse.md b/docs/models/GetBankFeedAccountsResponse.md new file mode 100644 index 000000000..7198edc16 --- /dev/null +++ b/docs/models/GetBankFeedAccountsResponse.md @@ -0,0 +1,20 @@ +# GetBankFeedAccountsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP Response Status Code | +**status** | **str** | HTTP Response Status | +**service** | **str** | Apideck ID of service provider | +**resource** | **str** | Unified API resource name | +**operation** | **str** | Operation performed | +**data** | [**[BankFeedAccount]**](BankFeedAccount.md) | | +**meta** | [**Meta**](Meta.md) | | [optional] +**links** | [**Links**](Links.md) | | [optional] +**raw** | [**Raw**](Raw.md) | | [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) + + diff --git a/docs/models/GetBankFeedStatementResponse.md b/docs/models/GetBankFeedStatementResponse.md new file mode 100644 index 000000000..067b8e983 --- /dev/null +++ b/docs/models/GetBankFeedStatementResponse.md @@ -0,0 +1,18 @@ +# GetBankFeedStatementResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP Response Status Code | +**status** | **str** | HTTP Response Status | +**service** | **str** | Apideck ID of service provider | +**resource** | **str** | Unified API resource name | +**operation** | **str** | Operation performed | +**data** | [**BankFeedStatement**](BankFeedStatement.md) | | +**raw** | [**Raw**](Raw.md) | | [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) + + diff --git a/docs/models/GetBankFeedStatementsResponse.md b/docs/models/GetBankFeedStatementsResponse.md new file mode 100644 index 000000000..b11bd1903 --- /dev/null +++ b/docs/models/GetBankFeedStatementsResponse.md @@ -0,0 +1,20 @@ +# GetBankFeedStatementsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP Response Status Code | +**status** | **str** | HTTP Response Status | +**service** | **str** | Apideck ID of service provider | +**resource** | **str** | Unified API resource name | +**operation** | **str** | Operation performed | +**data** | [**[BankFeedStatement]**](BankFeedStatement.md) | | +**meta** | [**Meta**](Meta.md) | | [optional] +**links** | [**Links**](Links.md) | | [optional] +**raw** | [**Raw**](Raw.md) | | [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) + + diff --git a/docs/models/UpdateBankFeedAccountResponse.md b/docs/models/UpdateBankFeedAccountResponse.md new file mode 100644 index 000000000..d5b7cb9a1 --- /dev/null +++ b/docs/models/UpdateBankFeedAccountResponse.md @@ -0,0 +1,18 @@ +# UpdateBankFeedAccountResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP Response Status Code | +**status** | **str** | HTTP Response Status | +**service** | **str** | Apideck ID of service provider | +**resource** | **str** | Unified API resource name | +**operation** | **str** | Operation performed | +**data** | [**UnifiedId**](UnifiedId.md) | | +**raw** | [**Raw**](Raw.md) | | [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) + + diff --git a/docs/models/UpdateBankFeedStatementResponse.md b/docs/models/UpdateBankFeedStatementResponse.md new file mode 100644 index 000000000..090a3fcf4 --- /dev/null +++ b/docs/models/UpdateBankFeedStatementResponse.md @@ -0,0 +1,18 @@ +# UpdateBankFeedStatementResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status_code** | **int** | HTTP Response Status Code | +**status** | **str** | HTTP Response Status | +**service** | **str** | Apideck ID of service provider | +**resource** | **str** | Unified API resource name | +**operation** | **str** | Operation performed | +**data** | [**UnifiedId**](UnifiedId.md) | | +**raw** | [**Raw**](Raw.md) | | [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) + + diff --git a/src/.openapi-generator/FILES b/src/.openapi-generator/FILES index 513a834d4..3f69653e9 100644 --- a/src/.openapi-generator/FILES +++ b/src/.openapi-generator/FILES @@ -81,6 +81,9 @@ apideck/model/balance_sheet_liabilities_account.py apideck/model/balance_sheet_reports.py apideck/model/balance_sheet_uncategorized_items_account.py apideck/model/bank_account.py +apideck/model/bank_feed_account.py +apideck/model/bank_feed_statement.py +apideck/model/bank_feed_statement_transactions.py apideck/model/benefit.py apideck/model/bill.py apideck/model/bill_line_item.py @@ -139,6 +142,8 @@ apideck/model/create_applicant_response.py apideck/model/create_application_response.py apideck/model/create_attachment_request.py apideck/model/create_attachment_response.py +apideck/model/create_bank_feed_account_response.py +apideck/model/create_bank_feed_statement_response.py apideck/model/create_bill_payment_response.py apideck/model/create_bill_response.py apideck/model/create_callback_state.py @@ -204,6 +209,7 @@ apideck/model/create_webhook_response.py apideck/model/credit_note.py apideck/model/credit_notes_filter.py apideck/model/credit_notes_sort.py +apideck/model/credit_or_debit.py apideck/model/crm_event_type.py apideck/model/currency.py apideck/model/custom_field.py @@ -219,6 +225,8 @@ apideck/model/delete_activity_response.py apideck/model/delete_applicant_response.py apideck/model/delete_application_response.py apideck/model/delete_attachment_response.py +apideck/model/delete_bank_feed_account_response.py +apideck/model/delete_bank_feed_statement_response.py apideck/model/delete_bill_payment_response.py apideck/model/delete_bill_response.py apideck/model/delete_comment_response.py @@ -345,6 +353,10 @@ apideck/model/get_applications_response.py apideck/model/get_attachment_response.py apideck/model/get_attachments_response.py apideck/model/get_balance_sheet_response.py +apideck/model/get_bank_feed_account_response.py +apideck/model/get_bank_feed_accounts_response.py +apideck/model/get_bank_feed_statement_response.py +apideck/model/get_bank_feed_statements_response.py apideck/model/get_bill_payment_response.py apideck/model/get_bill_payments_response.py apideck/model/get_bill_response.py @@ -664,6 +676,8 @@ apideck/model/update_accounting_location_response.py apideck/model/update_activity_response.py apideck/model/update_applicant_response.py apideck/model/update_application_response.py +apideck/model/update_bank_feed_account_response.py +apideck/model/update_bank_feed_statement_response.py apideck/model/update_bill_payment_response.py apideck/model/update_bill_response.py apideck/model/update_comment_response.py @@ -796,6 +810,9 @@ docs/BalanceSheetLiabilitiesAccount.md docs/BalanceSheetReports.md docs/BalanceSheetUncategorizedItemsAccount.md docs/BankAccount.md +docs/BankFeedAccount.md +docs/BankFeedStatement.md +docs/BankFeedStatementTransactions.md docs/Benefit.md docs/Bill.md docs/BillLineItem.md @@ -855,6 +872,8 @@ docs/CreateApplicantResponse.md docs/CreateApplicationResponse.md docs/CreateAttachmentRequest.md docs/CreateAttachmentResponse.md +docs/CreateBankFeedAccountResponse.md +docs/CreateBankFeedStatementResponse.md docs/CreateBillPaymentResponse.md docs/CreateBillResponse.md docs/CreateCallbackState.md @@ -920,6 +939,7 @@ docs/CreateWebhookResponse.md docs/CreditNote.md docs/CreditNotesFilter.md docs/CreditNotesSort.md +docs/CreditOrDebit.md docs/CrmApi.md docs/CrmEventType.md docs/Currency.md @@ -936,6 +956,8 @@ docs/DeleteActivityResponse.md docs/DeleteApplicantResponse.md docs/DeleteApplicationResponse.md docs/DeleteAttachmentResponse.md +docs/DeleteBankFeedAccountResponse.md +docs/DeleteBankFeedStatementResponse.md docs/DeleteBillPaymentResponse.md docs/DeleteBillResponse.md docs/DeleteCommentResponse.md @@ -1064,6 +1086,10 @@ docs/GetApplicationsResponse.md docs/GetAttachmentResponse.md docs/GetAttachmentsResponse.md docs/GetBalanceSheetResponse.md +docs/GetBankFeedAccountResponse.md +docs/GetBankFeedAccountsResponse.md +docs/GetBankFeedStatementResponse.md +docs/GetBankFeedStatementsResponse.md docs/GetBillPaymentResponse.md docs/GetBillPaymentsResponse.md docs/GetBillResponse.md @@ -1388,6 +1414,8 @@ docs/UpdateAccountingLocationResponse.md docs/UpdateActivityResponse.md docs/UpdateApplicantResponse.md docs/UpdateApplicationResponse.md +docs/UpdateBankFeedAccountResponse.md +docs/UpdateBankFeedStatementResponse.md docs/UpdateBillPaymentResponse.md docs/UpdateBillResponse.md docs/UpdateCommentResponse.md @@ -1525,6 +1553,9 @@ test/test_balance_sheet_liabilities_account.py test/test_balance_sheet_reports.py test/test_balance_sheet_uncategorized_items_account.py test/test_bank_account.py +test/test_bank_feed_account.py +test/test_bank_feed_statement.py +test/test_bank_feed_statement_transactions.py test/test_benefit.py test/test_bill.py test/test_bill_line_item.py @@ -1584,6 +1615,8 @@ test/test_create_applicant_response.py test/test_create_application_response.py test/test_create_attachment_request.py test/test_create_attachment_response.py +test/test_create_bank_feed_account_response.py +test/test_create_bank_feed_statement_response.py test/test_create_bill_payment_response.py test/test_create_bill_response.py test/test_create_callback_state.py @@ -1649,6 +1682,7 @@ test/test_create_webhook_response.py test/test_credit_note.py test/test_credit_notes_filter.py test/test_credit_notes_sort.py +test/test_credit_or_debit.py test/test_crm_api.py test/test_crm_event_type.py test/test_currency.py @@ -1665,6 +1699,8 @@ test/test_delete_activity_response.py test/test_delete_applicant_response.py test/test_delete_application_response.py test/test_delete_attachment_response.py +test/test_delete_bank_feed_account_response.py +test/test_delete_bank_feed_statement_response.py test/test_delete_bill_payment_response.py test/test_delete_bill_response.py test/test_delete_comment_response.py @@ -1793,6 +1829,10 @@ test/test_get_applications_response.py test/test_get_attachment_response.py test/test_get_attachments_response.py test/test_get_balance_sheet_response.py +test/test_get_bank_feed_account_response.py +test/test_get_bank_feed_accounts_response.py +test/test_get_bank_feed_statement_response.py +test/test_get_bank_feed_statements_response.py test/test_get_bill_payment_response.py test/test_get_bill_payments_response.py test/test_get_bill_response.py @@ -2117,6 +2157,8 @@ test/test_update_accounting_location_response.py test/test_update_activity_response.py test/test_update_applicant_response.py test/test_update_application_response.py +test/test_update_bank_feed_account_response.py +test/test_update_bank_feed_statement_response.py test/test_update_bill_payment_response.py test/test_update_bill_response.py test/test_update_comment_response.py diff --git a/src/apideck/api/accounting_api.py b/src/apideck/api/accounting_api.py index 95dca8146..214e20323 100644 --- a/src/apideck/api/accounting_api.py +++ b/src/apideck/api/accounting_api.py @@ -30,12 +30,16 @@ from apideck.model.attachment_reference_type import AttachmentReferenceType from apideck.model.bad_request_response import BadRequestResponse from apideck.model.balance_sheet_filter import BalanceSheetFilter +from apideck.model.bank_feed_account import BankFeedAccount +from apideck.model.bank_feed_statement import BankFeedStatement from apideck.model.bill import Bill from apideck.model.bill_payment import BillPayment from apideck.model.bills_filter import BillsFilter from apideck.model.bills_sort import BillsSort from apideck.model.create_accounting_department_response import CreateAccountingDepartmentResponse from apideck.model.create_accounting_location_response import CreateAccountingLocationResponse +from apideck.model.create_bank_feed_account_response import CreateBankFeedAccountResponse +from apideck.model.create_bank_feed_statement_response import CreateBankFeedStatementResponse from apideck.model.create_bill_payment_response import CreateBillPaymentResponse from apideck.model.create_bill_response import CreateBillResponse from apideck.model.create_credit_note_response import CreateCreditNoteResponse @@ -60,6 +64,8 @@ from apideck.model.delete_accounting_department_response import DeleteAccountingDepartmentResponse from apideck.model.delete_accounting_location_response import DeleteAccountingLocationResponse from apideck.model.delete_attachment_response import DeleteAttachmentResponse +from apideck.model.delete_bank_feed_account_response import DeleteBankFeedAccountResponse +from apideck.model.delete_bank_feed_statement_response import DeleteBankFeedStatementResponse from apideck.model.delete_bill_payment_response import DeleteBillPaymentResponse from apideck.model.delete_bill_response import DeleteBillResponse from apideck.model.delete_credit_note_response import DeleteCreditNoteResponse @@ -84,6 +90,10 @@ from apideck.model.get_attachment_response import GetAttachmentResponse from apideck.model.get_attachments_response import GetAttachmentsResponse from apideck.model.get_balance_sheet_response import GetBalanceSheetResponse +from apideck.model.get_bank_feed_account_response import GetBankFeedAccountResponse +from apideck.model.get_bank_feed_accounts_response import GetBankFeedAccountsResponse +from apideck.model.get_bank_feed_statement_response import GetBankFeedStatementResponse +from apideck.model.get_bank_feed_statements_response import GetBankFeedStatementsResponse from apideck.model.get_bill_payment_response import GetBillPaymentResponse from apideck.model.get_bill_payments_response import GetBillPaymentsResponse from apideck.model.get_bill_response import GetBillResponse @@ -151,6 +161,8 @@ from apideck.model.unprocessable_response import UnprocessableResponse from apideck.model.update_accounting_department_response import UpdateAccountingDepartmentResponse from apideck.model.update_accounting_location_response import UpdateAccountingLocationResponse +from apideck.model.update_bank_feed_account_response import UpdateBankFeedAccountResponse +from apideck.model.update_bank_feed_statement_response import UpdateBankFeedStatementResponse from apideck.model.update_bill_payment_response import UpdateBillPaymentResponse from apideck.model.update_bill_response import UpdateBillResponse from apideck.model.update_credit_note_response import UpdateCreditNoteResponse @@ -770,27 +782,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.bill_payments_add_endpoint = _Endpoint( + self.bank_feed_accounts_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateBillPaymentResponse,), + 'response_type': (CreateBankFeedAccountResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/bill-payments', - 'operation_id': 'bill_payments_add', + 'endpoint_path': '/accounting/bank-feed-accounts', + 'operation_id': 'bank_feed_accounts_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'bill_payment', + 'bank_feed_account', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'bill_payment', + 'bank_feed_account', ], 'nullable': [ ], @@ -805,8 +817,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'bill_payment': - (BillPayment,), + 'bank_feed_account': + (BankFeedAccount,), 'raw': (bool,), 'consumer_id': @@ -823,7 +835,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'bill_payment': 'body', + 'bank_feed_account': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -842,14 +854,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.bill_payments_all_endpoint = _Endpoint( + self.bank_feed_accounts_all_endpoint = _Endpoint( settings={ - 'response_type': (GetBillPaymentsResponse,), + 'response_type': (GetBankFeedAccountsResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/bill-payments', - 'operation_id': 'bill_payments_all', + 'endpoint_path': '/accounting/bank-feed-accounts', + 'operation_id': 'bank_feed_accounts_all', 'http_method': 'GET', 'servers': None, }, @@ -861,8 +873,6 @@ def __init__(self, api_client=None): 'service_id', 'cursor', 'limit', - 'filter', - 'sort', 'pass_through', 'fields', ], @@ -900,10 +910,6 @@ def __init__(self, api_client=None): (str, none_type,), 'limit': (int,), - 'filter': - (PaymentsFilter,), - 'sort': - (PaymentsSort,), 'pass_through': (PassThroughQuery,), 'fields': @@ -916,8 +922,6 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', 'cursor': 'cursor', 'limit': 'limit', - 'filter': 'filter', - 'sort': 'sort', 'pass_through': 'pass_through', 'fields': 'fields', }, @@ -928,8 +932,6 @@ def __init__(self, api_client=None): 'service_id': 'header', 'cursor': 'query', 'limit': 'query', - 'filter': 'query', - 'sort': 'query', 'pass_through': 'query', 'fields': 'query', }, @@ -944,14 +946,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.bill_payments_delete_endpoint = _Endpoint( + self.bank_feed_accounts_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteBillPaymentResponse,), + 'response_type': (DeleteBankFeedAccountResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/bill-payments/{id}', - 'operation_id': 'bill_payments_delete', + 'endpoint_path': '/accounting/bank-feed-accounts/{id}', + 'operation_id': 'bank_feed_accounts_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -1015,14 +1017,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.bill_payments_one_endpoint = _Endpoint( + self.bank_feed_accounts_one_endpoint = _Endpoint( settings={ - 'response_type': (GetBillPaymentResponse,), + 'response_type': (GetBankFeedAccountResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/bill-payments/{id}', - 'operation_id': 'bill_payments_one', + 'endpoint_path': '/accounting/bank-feed-accounts/{id}', + 'operation_id': 'bank_feed_accounts_one', 'http_method': 'GET', 'servers': None, }, @@ -1092,21 +1094,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.bill_payments_update_endpoint = _Endpoint( + self.bank_feed_accounts_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateBillPaymentResponse,), + 'response_type': (UpdateBankFeedAccountResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/bill-payments/{id}', - 'operation_id': 'bill_payments_update', + 'endpoint_path': '/accounting/bank-feed-accounts/{id}', + 'operation_id': 'bank_feed_accounts_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'bill_payment', + 'bank_feed_account', 'consumer_id', 'app_id', 'service_id', @@ -1114,7 +1116,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'bill_payment', + 'bank_feed_account', ], 'nullable': [ ], @@ -1131,8 +1133,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'bill_payment': - (BillPayment,), + 'bank_feed_account': + (BankFeedAccount,), 'consumer_id': (str,), 'app_id': @@ -1151,7 +1153,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'bill_payment': 'body', + 'bank_feed_account': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -1170,27 +1172,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.bills_add_endpoint = _Endpoint( + self.bank_feed_statements_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateBillResponse,), + 'response_type': (CreateBankFeedStatementResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/bills', - 'operation_id': 'bills_add', + 'endpoint_path': '/accounting/bank-feed-statements', + 'operation_id': 'bank_feed_statements_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'bill', + 'bank_feed_statement', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'bill', + 'bank_feed_statement', ], 'nullable': [ ], @@ -1205,8 +1207,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'bill': - (Bill,), + 'bank_feed_statement': + (BankFeedStatement,), 'raw': (bool,), 'consumer_id': @@ -1223,7 +1225,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'bill': 'body', + 'bank_feed_statement': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -1242,14 +1244,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.bills_all_endpoint = _Endpoint( + self.bank_feed_statements_all_endpoint = _Endpoint( settings={ - 'response_type': (GetBillsResponse,), + 'response_type': (GetBankFeedStatementsResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/bills', - 'operation_id': 'bills_all', + 'endpoint_path': '/accounting/bank-feed-statements', + 'operation_id': 'bank_feed_statements_all', 'http_method': 'GET', 'servers': None, }, @@ -1261,8 +1263,6 @@ def __init__(self, api_client=None): 'service_id', 'cursor', 'limit', - 'filter', - 'sort', 'pass_through', 'fields', ], @@ -1300,10 +1300,6 @@ def __init__(self, api_client=None): (str, none_type,), 'limit': (int,), - 'filter': - (BillsFilter,), - 'sort': - (BillsSort,), 'pass_through': (PassThroughQuery,), 'fields': @@ -1316,8 +1312,6 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', 'cursor': 'cursor', 'limit': 'limit', - 'filter': 'filter', - 'sort': 'sort', 'pass_through': 'pass_through', 'fields': 'fields', }, @@ -1328,8 +1322,6 @@ def __init__(self, api_client=None): 'service_id': 'header', 'cursor': 'query', 'limit': 'query', - 'filter': 'query', - 'sort': 'query', 'pass_through': 'query', 'fields': 'query', }, @@ -1344,14 +1336,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.bills_delete_endpoint = _Endpoint( + self.bank_feed_statements_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteBillResponse,), + 'response_type': (DeleteBankFeedStatementResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/bills/{id}', - 'operation_id': 'bills_delete', + 'endpoint_path': '/accounting/bank-feed-statements/{id}', + 'operation_id': 'bank_feed_statements_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -1415,14 +1407,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.bills_one_endpoint = _Endpoint( + self.bank_feed_statements_one_endpoint = _Endpoint( settings={ - 'response_type': (GetBillResponse,), + 'response_type': (GetBankFeedStatementResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/bills/{id}', - 'operation_id': 'bills_one', + 'endpoint_path': '/accounting/bank-feed-statements/{id}', + 'operation_id': 'bank_feed_statements_one', 'http_method': 'GET', 'servers': None, }, @@ -1492,21 +1484,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.bills_update_endpoint = _Endpoint( + self.bank_feed_statements_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateBillResponse,), + 'response_type': (UpdateBankFeedStatementResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/bills/{id}', - 'operation_id': 'bills_update', + 'endpoint_path': '/accounting/bank-feed-statements/{id}', + 'operation_id': 'bank_feed_statements_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'bill', + 'bank_feed_statement', 'consumer_id', 'app_id', 'service_id', @@ -1514,7 +1506,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'bill', + 'bank_feed_statement', ], 'nullable': [ ], @@ -1531,8 +1523,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'bill': - (Bill,), + 'bank_feed_statement': + (BankFeedStatement,), 'consumer_id': (str,), 'app_id': @@ -1551,7 +1543,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'bill': 'body', + 'bank_feed_statement': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -1570,97 +1562,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.company_info_one_endpoint = _Endpoint( - settings={ - 'response_type': (GetCompanyInfoResponse,), - 'auth': [ - 'apiKey' - ], - 'endpoint_path': '/accounting/company-info', - 'operation_id': 'company_info_one', - 'http_method': 'GET', - 'servers': None, - }, - params_map={ - 'all': [ - 'raw', - 'consumer_id', - 'app_id', - 'service_id', - 'fields', - ], - 'required': [], - 'nullable': [ - 'fields', - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'raw': - (bool,), - 'consumer_id': - (str,), - 'app_id': - (str,), - 'service_id': - (str,), - 'fields': - (str, none_type,), - }, - 'attribute_map': { - 'raw': 'raw', - 'consumer_id': 'x-apideck-consumer-id', - 'app_id': 'x-apideck-app-id', - 'service_id': 'x-apideck-service-id', - 'fields': 'fields', - }, - 'location_map': { - 'raw': 'query', - 'consumer_id': 'header', - 'app_id': 'header', - 'service_id': 'header', - 'fields': 'query', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [], - }, - api_client=api_client - ) - self.credit_notes_add_endpoint = _Endpoint( + self.bill_payments_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateCreditNoteResponse,), + 'response_type': (CreateBillPaymentResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/credit-notes', - 'operation_id': 'credit_notes_add', + 'endpoint_path': '/accounting/bill-payments', + 'operation_id': 'bill_payments_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'credit_note', + 'bill_payment', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'credit_note', + 'bill_payment', ], 'nullable': [ ], @@ -1675,8 +1597,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'credit_note': - (CreditNote,), + 'bill_payment': + (BillPayment,), 'raw': (bool,), 'consumer_id': @@ -1693,7 +1615,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'credit_note': 'body', + 'bill_payment': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -1712,14 +1634,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.credit_notes_all_endpoint = _Endpoint( + self.bill_payments_all_endpoint = _Endpoint( settings={ - 'response_type': (GetCreditNotesResponse,), + 'response_type': (GetBillPaymentsResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/credit-notes', - 'operation_id': 'credit_notes_all', + 'endpoint_path': '/accounting/bill-payments', + 'operation_id': 'bill_payments_all', 'http_method': 'GET', 'servers': None, }, @@ -1771,9 +1693,9 @@ def __init__(self, api_client=None): 'limit': (int,), 'filter': - (CreditNotesFilter,), + (PaymentsFilter,), 'sort': - (CreditNotesSort,), + (PaymentsSort,), 'pass_through': (PassThroughQuery,), 'fields': @@ -1814,14 +1736,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.credit_notes_delete_endpoint = _Endpoint( + self.bill_payments_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteCreditNoteResponse,), + 'response_type': (DeleteBillPaymentResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/credit-notes/{id}', - 'operation_id': 'credit_notes_delete', + 'endpoint_path': '/accounting/bill-payments/{id}', + 'operation_id': 'bill_payments_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -1885,14 +1807,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.credit_notes_one_endpoint = _Endpoint( + self.bill_payments_one_endpoint = _Endpoint( settings={ - 'response_type': (GetCreditNoteResponse,), + 'response_type': (GetBillPaymentResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/credit-notes/{id}', - 'operation_id': 'credit_notes_one', + 'endpoint_path': '/accounting/bill-payments/{id}', + 'operation_id': 'bill_payments_one', 'http_method': 'GET', 'servers': None, }, @@ -1962,21 +1884,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.credit_notes_update_endpoint = _Endpoint( + self.bill_payments_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateCreditNoteResponse,), + 'response_type': (UpdateBillPaymentResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/credit-notes/{id}', - 'operation_id': 'credit_notes_update', + 'endpoint_path': '/accounting/bill-payments/{id}', + 'operation_id': 'bill_payments_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'credit_note', + 'bill_payment', 'consumer_id', 'app_id', 'service_id', @@ -1984,7 +1906,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'credit_note', + 'bill_payment', ], 'nullable': [ ], @@ -2001,8 +1923,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'credit_note': - (CreditNote,), + 'bill_payment': + (BillPayment,), 'consumer_id': (str,), 'app_id': @@ -2021,7 +1943,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'credit_note': 'body', + 'bill_payment': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -2040,27 +1962,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.customers_add_endpoint = _Endpoint( + self.bills_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateCustomerResponse,), + 'response_type': (CreateBillResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/customers', - 'operation_id': 'customers_add', + 'endpoint_path': '/accounting/bills', + 'operation_id': 'bills_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'customer', + 'bill', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'customer', + 'bill', ], 'nullable': [ ], @@ -2075,8 +1997,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'customer': - (Customer,), + 'bill': + (Bill,), 'raw': (bool,), 'consumer_id': @@ -2093,7 +2015,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'customer': 'body', + 'bill': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -2112,14 +2034,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.customers_all_endpoint = _Endpoint( + self.bills_all_endpoint = _Endpoint( settings={ - 'response_type': (GetCustomersResponse,), + 'response_type': (GetBillsResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/customers', - 'operation_id': 'customers_all', + 'endpoint_path': '/accounting/bills', + 'operation_id': 'bills_all', 'http_method': 'GET', 'servers': None, }, @@ -2171,9 +2093,9 @@ def __init__(self, api_client=None): 'limit': (int,), 'filter': - (CustomersFilter,), + (BillsFilter,), 'sort': - (CustomersSort,), + (BillsSort,), 'pass_through': (PassThroughQuery,), 'fields': @@ -2214,14 +2136,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.customers_delete_endpoint = _Endpoint( + self.bills_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteCustomerResponse,), + 'response_type': (DeleteBillResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/customers/{id}', - 'operation_id': 'customers_delete', + 'endpoint_path': '/accounting/bills/{id}', + 'operation_id': 'bills_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -2285,14 +2207,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.customers_one_endpoint = _Endpoint( + self.bills_one_endpoint = _Endpoint( settings={ - 'response_type': (GetCustomerResponse,), + 'response_type': (GetBillResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/customers/{id}', - 'operation_id': 'customers_one', + 'endpoint_path': '/accounting/bills/{id}', + 'operation_id': 'bills_one', 'http_method': 'GET', 'servers': None, }, @@ -2362,21 +2284,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.customers_update_endpoint = _Endpoint( + self.bills_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateCustomerResponse,), + 'response_type': (UpdateBillResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/customers/{id}', - 'operation_id': 'customers_update', + 'endpoint_path': '/accounting/bills/{id}', + 'operation_id': 'bills_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'customer', + 'bill', 'consumer_id', 'app_id', 'service_id', @@ -2384,7 +2306,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'customer', + 'bill', ], 'nullable': [ ], @@ -2401,8 +2323,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'customer': - (Customer,), + 'bill': + (Bill,), 'consumer_id': (str,), 'app_id': @@ -2421,7 +2343,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'customer': 'body', + 'bill': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -2440,27 +2362,97 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.departments_add_endpoint = _Endpoint( + self.company_info_one_endpoint = _Endpoint( settings={ - 'response_type': (CreateAccountingDepartmentResponse,), + 'response_type': (GetCompanyInfoResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/departments', - 'operation_id': 'departments_add', + 'endpoint_path': '/accounting/company-info', + 'operation_id': 'company_info_one', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'raw', + 'consumer_id', + 'app_id', + 'service_id', + 'fields', + ], + 'required': [], + 'nullable': [ + 'fields', + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'raw': + (bool,), + 'consumer_id': + (str,), + 'app_id': + (str,), + 'service_id': + (str,), + 'fields': + (str, none_type,), + }, + 'attribute_map': { + 'raw': 'raw', + 'consumer_id': 'x-apideck-consumer-id', + 'app_id': 'x-apideck-app-id', + 'service_id': 'x-apideck-service-id', + 'fields': 'fields', + }, + 'location_map': { + 'raw': 'query', + 'consumer_id': 'header', + 'app_id': 'header', + 'service_id': 'header', + 'fields': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.credit_notes_add_endpoint = _Endpoint( + settings={ + 'response_type': (CreateCreditNoteResponse,), + 'auth': [ + 'apiKey' + ], + 'endpoint_path': '/accounting/credit-notes', + 'operation_id': 'credit_notes_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'accounting_department', + 'credit_note', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'accounting_department', + 'credit_note', ], 'nullable': [ ], @@ -2475,8 +2467,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'accounting_department': - (AccountingDepartment,), + 'credit_note': + (CreditNote,), 'raw': (bool,), 'consumer_id': @@ -2493,7 +2485,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'accounting_department': 'body', + 'credit_note': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -2512,14 +2504,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.departments_all_endpoint = _Endpoint( + self.credit_notes_all_endpoint = _Endpoint( settings={ - 'response_type': (GetAccountingDepartmentsResponse,), + 'response_type': (GetCreditNotesResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/departments', - 'operation_id': 'departments_all', + 'endpoint_path': '/accounting/credit-notes', + 'operation_id': 'credit_notes_all', 'http_method': 'GET', 'servers': None, }, @@ -2531,8 +2523,10 @@ def __init__(self, api_client=None): 'service_id', 'cursor', 'limit', - 'fields', 'filter', + 'sort', + 'pass_through', + 'fields', ], 'required': [], 'nullable': [ @@ -2568,10 +2562,14 @@ def __init__(self, api_client=None): (str, none_type,), 'limit': (int,), + 'filter': + (CreditNotesFilter,), + 'sort': + (CreditNotesSort,), + 'pass_through': + (PassThroughQuery,), 'fields': (str, none_type,), - 'filter': - (AccountingDepartmentsFilter,), }, 'attribute_map': { 'raw': 'raw', @@ -2580,8 +2578,10 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', 'cursor': 'cursor', 'limit': 'limit', - 'fields': 'fields', 'filter': 'filter', + 'sort': 'sort', + 'pass_through': 'pass_through', + 'fields': 'fields', }, 'location_map': { 'raw': 'query', @@ -2590,8 +2590,10 @@ def __init__(self, api_client=None): 'service_id': 'header', 'cursor': 'query', 'limit': 'query', - 'fields': 'query', 'filter': 'query', + 'sort': 'query', + 'pass_through': 'query', + 'fields': 'query', }, 'collection_format_map': { } @@ -2604,14 +2606,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.departments_delete_endpoint = _Endpoint( + self.credit_notes_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteAccountingDepartmentResponse,), + 'response_type': (DeleteCreditNoteResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/departments/{id}', - 'operation_id': 'departments_delete', + 'endpoint_path': '/accounting/credit-notes/{id}', + 'operation_id': 'credit_notes_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -2675,14 +2677,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.departments_one_endpoint = _Endpoint( + self.credit_notes_one_endpoint = _Endpoint( settings={ - 'response_type': (GetAccountingDepartmentResponse,), + 'response_type': (GetCreditNoteResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/departments/{id}', - 'operation_id': 'departments_one', + 'endpoint_path': '/accounting/credit-notes/{id}', + 'operation_id': 'credit_notes_one', 'http_method': 'GET', 'servers': None, }, @@ -2752,21 +2754,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.departments_update_endpoint = _Endpoint( + self.credit_notes_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateAccountingDepartmentResponse,), + 'response_type': (UpdateCreditNoteResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/departments/{id}', - 'operation_id': 'departments_update', + 'endpoint_path': '/accounting/credit-notes/{id}', + 'operation_id': 'credit_notes_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'accounting_department', + 'credit_note', 'consumer_id', 'app_id', 'service_id', @@ -2774,7 +2776,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'accounting_department', + 'credit_note', ], 'nullable': [ ], @@ -2791,8 +2793,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'accounting_department': - (AccountingDepartment,), + 'credit_note': + (CreditNote,), 'consumer_id': (str,), 'app_id': @@ -2811,7 +2813,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'accounting_department': 'body', + 'credit_note': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -2830,27 +2832,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.expenses_add_endpoint = _Endpoint( + self.customers_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateExpenseResponse,), + 'response_type': (CreateCustomerResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/expenses', - 'operation_id': 'expenses_add', + 'endpoint_path': '/accounting/customers', + 'operation_id': 'customers_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'expense', + 'customer', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'expense', + 'customer', ], 'nullable': [ ], @@ -2865,8 +2867,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'expense': - (Expense,), + 'customer': + (Customer,), 'raw': (bool,), 'consumer_id': @@ -2883,7 +2885,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'expense': 'body', + 'customer': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -2902,14 +2904,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.expenses_all_endpoint = _Endpoint( + self.customers_all_endpoint = _Endpoint( settings={ - 'response_type': (GetExpensesResponse,), + 'response_type': (GetCustomersResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/expenses', - 'operation_id': 'expenses_all', + 'endpoint_path': '/accounting/customers', + 'operation_id': 'customers_all', 'http_method': 'GET', 'servers': None, }, @@ -2921,10 +2923,15 @@ def __init__(self, api_client=None): 'service_id', 'cursor', 'limit', + 'filter', + 'sort', + 'pass_through', + 'fields', ], 'required': [], 'nullable': [ 'cursor', + 'fields', ], 'enum': [ ], @@ -2955,6 +2962,14 @@ def __init__(self, api_client=None): (str, none_type,), 'limit': (int,), + 'filter': + (CustomersFilter,), + 'sort': + (CustomersSort,), + 'pass_through': + (PassThroughQuery,), + 'fields': + (str, none_type,), }, 'attribute_map': { 'raw': 'raw', @@ -2963,6 +2978,10 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', 'cursor': 'cursor', 'limit': 'limit', + 'filter': 'filter', + 'sort': 'sort', + 'pass_through': 'pass_through', + 'fields': 'fields', }, 'location_map': { 'raw': 'query', @@ -2971,6 +2990,10 @@ def __init__(self, api_client=None): 'service_id': 'header', 'cursor': 'query', 'limit': 'query', + 'filter': 'query', + 'sort': 'query', + 'pass_through': 'query', + 'fields': 'query', }, 'collection_format_map': { } @@ -2983,14 +3006,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.expenses_delete_endpoint = _Endpoint( + self.customers_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteExpenseResponse,), + 'response_type': (DeleteCustomerResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/expenses/{id}', - 'operation_id': 'expenses_delete', + 'endpoint_path': '/accounting/customers/{id}', + 'operation_id': 'customers_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -3054,14 +3077,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.expenses_one_endpoint = _Endpoint( + self.customers_one_endpoint = _Endpoint( settings={ - 'response_type': (GetExpenseResponse,), + 'response_type': (GetCustomerResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/expenses/{id}', - 'operation_id': 'expenses_one', + 'endpoint_path': '/accounting/customers/{id}', + 'operation_id': 'customers_one', 'http_method': 'GET', 'servers': None, }, @@ -3072,11 +3095,13 @@ def __init__(self, api_client=None): 'app_id', 'service_id', 'raw', + 'fields', ], 'required': [ 'id', ], 'nullable': [ + 'fields', ], 'enum': [ ], @@ -3099,6 +3124,8 @@ def __init__(self, api_client=None): (str,), 'raw': (bool,), + 'fields': + (str, none_type,), }, 'attribute_map': { 'id': 'id', @@ -3106,6 +3133,7 @@ def __init__(self, api_client=None): 'app_id': 'x-apideck-app-id', 'service_id': 'x-apideck-service-id', 'raw': 'raw', + 'fields': 'fields', }, 'location_map': { 'id': 'path', @@ -3113,6 +3141,7 @@ def __init__(self, api_client=None): 'app_id': 'header', 'service_id': 'header', 'raw': 'query', + 'fields': 'query', }, 'collection_format_map': { } @@ -3125,21 +3154,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.expenses_update_endpoint = _Endpoint( + self.customers_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateExpenseResponse,), + 'response_type': (UpdateCustomerResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/expenses/{id}', - 'operation_id': 'expenses_update', + 'endpoint_path': '/accounting/customers/{id}', + 'operation_id': 'customers_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'expense', + 'customer', 'consumer_id', 'app_id', 'service_id', @@ -3147,7 +3176,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'expense', + 'customer', ], 'nullable': [ ], @@ -3164,9 +3193,9 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'expense': - (Expense,), - 'consumer_id': + 'customer': + (Customer,), + 'consumer_id': (str,), 'app_id': (str,), @@ -3184,7 +3213,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'expense': 'body', + 'customer': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -3203,27 +3232,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.invoice_items_add_endpoint = _Endpoint( + self.departments_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateInvoiceItemResponse,), + 'response_type': (CreateAccountingDepartmentResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/invoice-items', - 'operation_id': 'invoice_items_add', + 'endpoint_path': '/accounting/departments', + 'operation_id': 'departments_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'invoice_item', + 'accounting_department', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'invoice_item', + 'accounting_department', ], 'nullable': [ ], @@ -3238,8 +3267,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'invoice_item': - (InvoiceItem,), + 'accounting_department': + (AccountingDepartment,), 'raw': (bool,), 'consumer_id': @@ -3256,7 +3285,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'invoice_item': 'body', + 'accounting_department': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -3275,14 +3304,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.invoice_items_all_endpoint = _Endpoint( + self.departments_all_endpoint = _Endpoint( settings={ - 'response_type': (GetInvoiceItemsResponse,), + 'response_type': (GetAccountingDepartmentsResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/invoice-items', - 'operation_id': 'invoice_items_all', + 'endpoint_path': '/accounting/departments', + 'operation_id': 'departments_all', 'http_method': 'GET', 'servers': None, }, @@ -3294,10 +3323,8 @@ def __init__(self, api_client=None): 'service_id', 'cursor', 'limit', - 'filter', - 'sort', - 'pass_through', 'fields', + 'filter', ], 'required': [], 'nullable': [ @@ -3333,14 +3360,10 @@ def __init__(self, api_client=None): (str, none_type,), 'limit': (int,), - 'filter': - (InvoiceItemsFilter,), - 'sort': - (InvoiceItemsSort,), - 'pass_through': - (PassThroughQuery,), 'fields': (str, none_type,), + 'filter': + (AccountingDepartmentsFilter,), }, 'attribute_map': { 'raw': 'raw', @@ -3349,10 +3372,8 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', 'cursor': 'cursor', 'limit': 'limit', - 'filter': 'filter', - 'sort': 'sort', - 'pass_through': 'pass_through', 'fields': 'fields', + 'filter': 'filter', }, 'location_map': { 'raw': 'query', @@ -3361,10 +3382,8 @@ def __init__(self, api_client=None): 'service_id': 'header', 'cursor': 'query', 'limit': 'query', - 'filter': 'query', - 'sort': 'query', - 'pass_through': 'query', 'fields': 'query', + 'filter': 'query', }, 'collection_format_map': { } @@ -3377,14 +3396,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.invoice_items_delete_endpoint = _Endpoint( + self.departments_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteTaxRateResponse,), + 'response_type': (DeleteAccountingDepartmentResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/invoice-items/{id}', - 'operation_id': 'invoice_items_delete', + 'endpoint_path': '/accounting/departments/{id}', + 'operation_id': 'departments_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -3448,14 +3467,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.invoice_items_one_endpoint = _Endpoint( + self.departments_one_endpoint = _Endpoint( settings={ - 'response_type': (GetInvoiceItemResponse,), + 'response_type': (GetAccountingDepartmentResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/invoice-items/{id}', - 'operation_id': 'invoice_items_one', + 'endpoint_path': '/accounting/departments/{id}', + 'operation_id': 'departments_one', 'http_method': 'GET', 'servers': None, }, @@ -3467,7 +3486,6 @@ def __init__(self, api_client=None): 'service_id', 'raw', 'fields', - 'filter', ], 'required': [ 'id', @@ -3498,8 +3516,6 @@ def __init__(self, api_client=None): (bool,), 'fields': (str, none_type,), - 'filter': - (InvoiceItemFilter,), }, 'attribute_map': { 'id': 'id', @@ -3508,7 +3524,6 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', 'raw': 'raw', 'fields': 'fields', - 'filter': 'filter', }, 'location_map': { 'id': 'path', @@ -3517,7 +3532,6 @@ def __init__(self, api_client=None): 'service_id': 'header', 'raw': 'query', 'fields': 'query', - 'filter': 'query', }, 'collection_format_map': { } @@ -3530,21 +3544,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.invoice_items_update_endpoint = _Endpoint( + self.departments_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateInvoiceItemsResponse,), + 'response_type': (UpdateAccountingDepartmentResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/invoice-items/{id}', - 'operation_id': 'invoice_items_update', + 'endpoint_path': '/accounting/departments/{id}', + 'operation_id': 'departments_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'invoice_item', + 'accounting_department', 'consumer_id', 'app_id', 'service_id', @@ -3552,7 +3566,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'invoice_item', + 'accounting_department', ], 'nullable': [ ], @@ -3569,8 +3583,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'invoice_item': - (InvoiceItem,), + 'accounting_department': + (AccountingDepartment,), 'consumer_id': (str,), 'app_id': @@ -3589,7 +3603,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'invoice_item': 'body', + 'accounting_department': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -3608,27 +3622,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.invoices_add_endpoint = _Endpoint( + self.expenses_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateInvoiceResponse,), + 'response_type': (CreateExpenseResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/invoices', - 'operation_id': 'invoices_add', + 'endpoint_path': '/accounting/expenses', + 'operation_id': 'expenses_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'invoice', + 'expense', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'invoice', + 'expense', ], 'nullable': [ ], @@ -3643,8 +3657,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'invoice': - (Invoice,), + 'expense': + (Expense,), 'raw': (bool,), 'consumer_id': @@ -3661,7 +3675,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'invoice': 'body', + 'expense': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -3680,14 +3694,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.invoices_all_endpoint = _Endpoint( + self.expenses_all_endpoint = _Endpoint( settings={ - 'response_type': (GetInvoicesResponse,), + 'response_type': (GetExpensesResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/invoices', - 'operation_id': 'invoices_all', + 'endpoint_path': '/accounting/expenses', + 'operation_id': 'expenses_all', 'http_method': 'GET', 'servers': None, }, @@ -3699,15 +3713,10 @@ def __init__(self, api_client=None): 'service_id', 'cursor', 'limit', - 'filter', - 'sort', - 'pass_through', - 'fields', ], 'required': [], 'nullable': [ 'cursor', - 'fields', ], 'enum': [ ], @@ -3738,14 +3747,6 @@ def __init__(self, api_client=None): (str, none_type,), 'limit': (int,), - 'filter': - (InvoicesFilter,), - 'sort': - (InvoicesSort,), - 'pass_through': - (PassThroughQuery,), - 'fields': - (str, none_type,), }, 'attribute_map': { 'raw': 'raw', @@ -3754,10 +3755,6 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', 'cursor': 'cursor', 'limit': 'limit', - 'filter': 'filter', - 'sort': 'sort', - 'pass_through': 'pass_through', - 'fields': 'fields', }, 'location_map': { 'raw': 'query', @@ -3766,10 +3763,6 @@ def __init__(self, api_client=None): 'service_id': 'header', 'cursor': 'query', 'limit': 'query', - 'filter': 'query', - 'sort': 'query', - 'pass_through': 'query', - 'fields': 'query', }, 'collection_format_map': { } @@ -3782,14 +3775,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.invoices_delete_endpoint = _Endpoint( + self.expenses_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteInvoiceResponse,), + 'response_type': (DeleteExpenseResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/invoices/{id}', - 'operation_id': 'invoices_delete', + 'endpoint_path': '/accounting/expenses/{id}', + 'operation_id': 'expenses_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -3853,14 +3846,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.invoices_one_endpoint = _Endpoint( + self.expenses_one_endpoint = _Endpoint( settings={ - 'response_type': (GetInvoiceResponse,), + 'response_type': (GetExpenseResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/invoices/{id}', - 'operation_id': 'invoices_one', + 'endpoint_path': '/accounting/expenses/{id}', + 'operation_id': 'expenses_one', 'http_method': 'GET', 'servers': None, }, @@ -3871,13 +3864,11 @@ def __init__(self, api_client=None): 'app_id', 'service_id', 'raw', - 'fields', ], 'required': [ 'id', ], 'nullable': [ - 'fields', ], 'enum': [ ], @@ -3900,8 +3891,6 @@ def __init__(self, api_client=None): (str,), 'raw': (bool,), - 'fields': - (str, none_type,), }, 'attribute_map': { 'id': 'id', @@ -3909,7 +3898,6 @@ def __init__(self, api_client=None): 'app_id': 'x-apideck-app-id', 'service_id': 'x-apideck-service-id', 'raw': 'raw', - 'fields': 'fields', }, 'location_map': { 'id': 'path', @@ -3917,7 +3905,6 @@ def __init__(self, api_client=None): 'app_id': 'header', 'service_id': 'header', 'raw': 'query', - 'fields': 'query', }, 'collection_format_map': { } @@ -3930,21 +3917,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.invoices_update_endpoint = _Endpoint( + self.expenses_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateInvoiceResponse,), + 'response_type': (UpdateExpenseResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/invoices/{id}', - 'operation_id': 'invoices_update', + 'endpoint_path': '/accounting/expenses/{id}', + 'operation_id': 'expenses_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'invoice', + 'expense', 'consumer_id', 'app_id', 'service_id', @@ -3952,7 +3939,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'invoice', + 'expense', ], 'nullable': [ ], @@ -3969,8 +3956,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'invoice': - (Invoice,), + 'expense': + (Expense,), 'consumer_id': (str,), 'app_id': @@ -3989,7 +3976,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'invoice': 'body', + 'expense': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -4008,27 +3995,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.journal_entries_add_endpoint = _Endpoint( + self.invoice_items_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateJournalEntryResponse,), + 'response_type': (CreateInvoiceItemResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/journal-entries', - 'operation_id': 'journal_entries_add', + 'endpoint_path': '/accounting/invoice-items', + 'operation_id': 'invoice_items_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'journal_entry', + 'invoice_item', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'journal_entry', + 'invoice_item', ], 'nullable': [ ], @@ -4043,8 +4030,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'journal_entry': - (JournalEntry,), + 'invoice_item': + (InvoiceItem,), 'raw': (bool,), 'consumer_id': @@ -4061,7 +4048,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'journal_entry': 'body', + 'invoice_item': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -4080,14 +4067,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.journal_entries_all_endpoint = _Endpoint( + self.invoice_items_all_endpoint = _Endpoint( settings={ - 'response_type': (GetJournalEntriesResponse,), + 'response_type': (GetInvoiceItemsResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/journal-entries', - 'operation_id': 'journal_entries_all', + 'endpoint_path': '/accounting/invoice-items', + 'operation_id': 'invoice_items_all', 'http_method': 'GET', 'servers': None, }, @@ -4139,9 +4126,9 @@ def __init__(self, api_client=None): 'limit': (int,), 'filter': - (JournalEntriesFilter,), + (InvoiceItemsFilter,), 'sort': - (JournalEntriesSort,), + (InvoiceItemsSort,), 'pass_through': (PassThroughQuery,), 'fields': @@ -4182,14 +4169,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.journal_entries_delete_endpoint = _Endpoint( + self.invoice_items_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteJournalEntryResponse,), + 'response_type': (DeleteTaxRateResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/journal-entries/{id}', - 'operation_id': 'journal_entries_delete', + 'endpoint_path': '/accounting/invoice-items/{id}', + 'operation_id': 'invoice_items_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -4253,14 +4240,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.journal_entries_one_endpoint = _Endpoint( + self.invoice_items_one_endpoint = _Endpoint( settings={ - 'response_type': (GetJournalEntryResponse,), + 'response_type': (GetInvoiceItemResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/journal-entries/{id}', - 'operation_id': 'journal_entries_one', + 'endpoint_path': '/accounting/invoice-items/{id}', + 'operation_id': 'invoice_items_one', 'http_method': 'GET', 'servers': None, }, @@ -4272,6 +4259,7 @@ def __init__(self, api_client=None): 'service_id', 'raw', 'fields', + 'filter', ], 'required': [ 'id', @@ -4302,6 +4290,8 @@ def __init__(self, api_client=None): (bool,), 'fields': (str, none_type,), + 'filter': + (InvoiceItemFilter,), }, 'attribute_map': { 'id': 'id', @@ -4310,6 +4300,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', 'raw': 'raw', 'fields': 'fields', + 'filter': 'filter', }, 'location_map': { 'id': 'path', @@ -4318,6 +4309,7 @@ def __init__(self, api_client=None): 'service_id': 'header', 'raw': 'query', 'fields': 'query', + 'filter': 'query', }, 'collection_format_map': { } @@ -4330,21 +4322,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.journal_entries_update_endpoint = _Endpoint( + self.invoice_items_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateJournalEntryResponse,), + 'response_type': (UpdateInvoiceItemsResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/journal-entries/{id}', - 'operation_id': 'journal_entries_update', + 'endpoint_path': '/accounting/invoice-items/{id}', + 'operation_id': 'invoice_items_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'journal_entry', + 'invoice_item', 'consumer_id', 'app_id', 'service_id', @@ -4352,7 +4344,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'journal_entry', + 'invoice_item', ], 'nullable': [ ], @@ -4369,8 +4361,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'journal_entry': - (JournalEntry,), + 'invoice_item': + (InvoiceItem,), 'consumer_id': (str,), 'app_id': @@ -4389,7 +4381,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'journal_entry': 'body', + 'invoice_item': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -4408,27 +4400,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.ledger_accounts_add_endpoint = _Endpoint( + self.invoices_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateLedgerAccountResponse,), + 'response_type': (CreateInvoiceResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/ledger-accounts', - 'operation_id': 'ledger_accounts_add', + 'endpoint_path': '/accounting/invoices', + 'operation_id': 'invoices_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'ledger_account', + 'invoice', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'ledger_account', + 'invoice', ], 'nullable': [ ], @@ -4443,8 +4435,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'ledger_account': - (LedgerAccount,), + 'invoice': + (Invoice,), 'raw': (bool,), 'consumer_id': @@ -4461,7 +4453,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'ledger_account': 'body', + 'invoice': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -4480,14 +4472,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.ledger_accounts_all_endpoint = _Endpoint( + self.invoices_all_endpoint = _Endpoint( settings={ - 'response_type': (GetLedgerAccountsResponse,), + 'response_type': (GetInvoicesResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/ledger-accounts', - 'operation_id': 'ledger_accounts_all', + 'endpoint_path': '/accounting/invoices', + 'operation_id': 'invoices_all', 'http_method': 'GET', 'servers': None, }, @@ -4539,9 +4531,9 @@ def __init__(self, api_client=None): 'limit': (int,), 'filter': - (LedgerAccountsFilter,), + (InvoicesFilter,), 'sort': - (LedgerAccountsSort,), + (InvoicesSort,), 'pass_through': (PassThroughQuery,), 'fields': @@ -4582,14 +4574,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.ledger_accounts_delete_endpoint = _Endpoint( + self.invoices_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteLedgerAccountResponse,), + 'response_type': (DeleteInvoiceResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/ledger-accounts/{id}', - 'operation_id': 'ledger_accounts_delete', + 'endpoint_path': '/accounting/invoices/{id}', + 'operation_id': 'invoices_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -4653,14 +4645,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.ledger_accounts_one_endpoint = _Endpoint( + self.invoices_one_endpoint = _Endpoint( settings={ - 'response_type': (GetLedgerAccountResponse,), + 'response_type': (GetInvoiceResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/ledger-accounts/{id}', - 'operation_id': 'ledger_accounts_one', + 'endpoint_path': '/accounting/invoices/{id}', + 'operation_id': 'invoices_one', 'http_method': 'GET', 'servers': None, }, @@ -4730,21 +4722,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.ledger_accounts_update_endpoint = _Endpoint( + self.invoices_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateLedgerAccountResponse,), + 'response_type': (UpdateInvoiceResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/ledger-accounts/{id}', - 'operation_id': 'ledger_accounts_update', + 'endpoint_path': '/accounting/invoices/{id}', + 'operation_id': 'invoices_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'ledger_account', + 'invoice', 'consumer_id', 'app_id', 'service_id', @@ -4752,7 +4744,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'ledger_account', + 'invoice', ], 'nullable': [ ], @@ -4769,8 +4761,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'ledger_account': - (LedgerAccount,), + 'invoice': + (Invoice,), 'consumer_id': (str,), 'app_id': @@ -4789,7 +4781,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'ledger_account': 'body', + 'invoice': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -4808,27 +4800,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.locations_add_endpoint = _Endpoint( + self.journal_entries_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateAccountingLocationResponse,), + 'response_type': (CreateJournalEntryResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/locations', - 'operation_id': 'locations_add', + 'endpoint_path': '/accounting/journal-entries', + 'operation_id': 'journal_entries_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'accounting_location', + 'journal_entry', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'accounting_location', + 'journal_entry', ], 'nullable': [ ], @@ -4843,8 +4835,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'accounting_location': - (AccountingLocation,), + 'journal_entry': + (JournalEntry,), 'raw': (bool,), 'consumer_id': @@ -4861,7 +4853,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'accounting_location': 'body', + 'journal_entry': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -4880,14 +4872,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.locations_all_endpoint = _Endpoint( + self.journal_entries_all_endpoint = _Endpoint( settings={ - 'response_type': (GetAccountingLocationsResponse,), + 'response_type': (GetJournalEntriesResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/locations', - 'operation_id': 'locations_all', + 'endpoint_path': '/accounting/journal-entries', + 'operation_id': 'journal_entries_all', 'http_method': 'GET', 'servers': None, }, @@ -4899,8 +4891,10 @@ def __init__(self, api_client=None): 'service_id', 'cursor', 'limit', - 'fields', 'filter', + 'sort', + 'pass_through', + 'fields', ], 'required': [], 'nullable': [ @@ -4936,10 +4930,14 @@ def __init__(self, api_client=None): (str, none_type,), 'limit': (int,), + 'filter': + (JournalEntriesFilter,), + 'sort': + (JournalEntriesSort,), + 'pass_through': + (PassThroughQuery,), 'fields': (str, none_type,), - 'filter': - (AccountingLocationsFilter,), }, 'attribute_map': { 'raw': 'raw', @@ -4948,8 +4946,10 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', 'cursor': 'cursor', 'limit': 'limit', - 'fields': 'fields', 'filter': 'filter', + 'sort': 'sort', + 'pass_through': 'pass_through', + 'fields': 'fields', }, 'location_map': { 'raw': 'query', @@ -4958,8 +4958,10 @@ def __init__(self, api_client=None): 'service_id': 'header', 'cursor': 'query', 'limit': 'query', - 'fields': 'query', 'filter': 'query', + 'sort': 'query', + 'pass_through': 'query', + 'fields': 'query', }, 'collection_format_map': { } @@ -4972,14 +4974,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.locations_delete_endpoint = _Endpoint( + self.journal_entries_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteAccountingLocationResponse,), + 'response_type': (DeleteJournalEntryResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/locations/{id}', - 'operation_id': 'locations_delete', + 'endpoint_path': '/accounting/journal-entries/{id}', + 'operation_id': 'journal_entries_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -5043,14 +5045,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.locations_one_endpoint = _Endpoint( + self.journal_entries_one_endpoint = _Endpoint( settings={ - 'response_type': (GetAccountingLocationResponse,), + 'response_type': (GetJournalEntryResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/locations/{id}', - 'operation_id': 'locations_one', + 'endpoint_path': '/accounting/journal-entries/{id}', + 'operation_id': 'journal_entries_one', 'http_method': 'GET', 'servers': None, }, @@ -5120,21 +5122,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.locations_update_endpoint = _Endpoint( + self.journal_entries_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateAccountingLocationResponse,), + 'response_type': (UpdateJournalEntryResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/locations/{id}', - 'operation_id': 'locations_update', + 'endpoint_path': '/accounting/journal-entries/{id}', + 'operation_id': 'journal_entries_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'accounting_location', + 'journal_entry', 'consumer_id', 'app_id', 'service_id', @@ -5142,7 +5144,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'accounting_location', + 'journal_entry', ], 'nullable': [ ], @@ -5159,8 +5161,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'accounting_location': - (AccountingLocation,), + 'journal_entry': + (JournalEntry,), 'consumer_id': (str,), 'app_id': @@ -5179,7 +5181,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'accounting_location': 'body', + 'journal_entry': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -5198,27 +5200,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.payments_add_endpoint = _Endpoint( + self.ledger_accounts_add_endpoint = _Endpoint( settings={ - 'response_type': (CreatePaymentResponse,), + 'response_type': (CreateLedgerAccountResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/payments', - 'operation_id': 'payments_add', + 'endpoint_path': '/accounting/ledger-accounts', + 'operation_id': 'ledger_accounts_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'payment', + 'ledger_account', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'payment', + 'ledger_account', ], 'nullable': [ ], @@ -5233,8 +5235,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'payment': - (Payment,), + 'ledger_account': + (LedgerAccount,), 'raw': (bool,), 'consumer_id': @@ -5251,7 +5253,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'payment': 'body', + 'ledger_account': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -5270,14 +5272,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.payments_all_endpoint = _Endpoint( + self.ledger_accounts_all_endpoint = _Endpoint( settings={ - 'response_type': (GetPaymentsResponse,), + 'response_type': (GetLedgerAccountsResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/payments', - 'operation_id': 'payments_all', + 'endpoint_path': '/accounting/ledger-accounts', + 'operation_id': 'ledger_accounts_all', 'http_method': 'GET', 'servers': None, }, @@ -5329,9 +5331,9 @@ def __init__(self, api_client=None): 'limit': (int,), 'filter': - (PaymentsFilter,), + (LedgerAccountsFilter,), 'sort': - (PaymentsSort,), + (LedgerAccountsSort,), 'pass_through': (PassThroughQuery,), 'fields': @@ -5372,14 +5374,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.payments_delete_endpoint = _Endpoint( + self.ledger_accounts_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeletePaymentResponse,), + 'response_type': (DeleteLedgerAccountResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/payments/{id}', - 'operation_id': 'payments_delete', + 'endpoint_path': '/accounting/ledger-accounts/{id}', + 'operation_id': 'ledger_accounts_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -5443,14 +5445,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.payments_one_endpoint = _Endpoint( + self.ledger_accounts_one_endpoint = _Endpoint( settings={ - 'response_type': (GetPaymentResponse,), + 'response_type': (GetLedgerAccountResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/payments/{id}', - 'operation_id': 'payments_one', + 'endpoint_path': '/accounting/ledger-accounts/{id}', + 'operation_id': 'ledger_accounts_one', 'http_method': 'GET', 'servers': None, }, @@ -5520,21 +5522,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.payments_update_endpoint = _Endpoint( + self.ledger_accounts_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdatePaymentResponse,), + 'response_type': (UpdateLedgerAccountResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/payments/{id}', - 'operation_id': 'payments_update', + 'endpoint_path': '/accounting/ledger-accounts/{id}', + 'operation_id': 'ledger_accounts_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'payment', + 'ledger_account', 'consumer_id', 'app_id', 'service_id', @@ -5542,7 +5544,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'payment', + 'ledger_account', ], 'nullable': [ ], @@ -5559,8 +5561,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'payment': - (Payment,), + 'ledger_account': + (LedgerAccount,), 'consumer_id': (str,), 'app_id': @@ -5579,7 +5581,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'payment': 'body', + 'ledger_account': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -5598,30 +5600,29 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.profit_and_loss_one_endpoint = _Endpoint( + self.locations_add_endpoint = _Endpoint( settings={ - 'response_type': (GetProfitAndLossResponse,), + 'response_type': (CreateAccountingLocationResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/profit-and-loss', - 'operation_id': 'profit_and_loss_one', - 'http_method': 'GET', + 'endpoint_path': '/accounting/locations', + 'operation_id': 'locations_add', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ + 'accounting_location', 'raw', 'consumer_id', 'app_id', 'service_id', - 'filter', - 'pass_through', - 'fields', ], - 'required': [], + 'required': [ + 'accounting_location', + ], 'nullable': [ - 'fields', ], 'enum': [ ], @@ -5634,6 +5635,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { + 'accounting_location': + (AccountingLocation,), 'raw': (bool,), 'consumer_id': @@ -5642,30 +5645,19 @@ def __init__(self, api_client=None): (str,), 'service_id': (str,), - 'filter': - (ProfitAndLossFilter,), - 'pass_through': - (PassThroughQuery,), - 'fields': - (str, none_type,), }, 'attribute_map': { 'raw': 'raw', 'consumer_id': 'x-apideck-consumer-id', 'app_id': 'x-apideck-app-id', 'service_id': 'x-apideck-service-id', - 'filter': 'filter', - 'pass_through': 'pass_through', - 'fields': 'fields', }, 'location_map': { + 'accounting_location': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', - 'filter': 'query', - 'pass_through': 'query', - 'fields': 'query', }, 'collection_format_map': { } @@ -5674,108 +5666,38 @@ def __init__(self, api_client=None): 'accept': [ 'application/json' ], - 'content_type': [], + 'content_type': [ + 'application/json' + ] }, api_client=api_client ) - self.purchase_orders_add_endpoint = _Endpoint( + self.locations_all_endpoint = _Endpoint( settings={ - 'response_type': (CreatePurchaseOrderResponse,), + 'response_type': (GetAccountingLocationsResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/purchase-orders', - 'operation_id': 'purchase_orders_add', - 'http_method': 'POST', + 'endpoint_path': '/accounting/locations', + 'operation_id': 'locations_all', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'purchase_order', 'raw', 'consumer_id', 'app_id', 'service_id', + 'cursor', + 'limit', + 'fields', + 'filter', ], - 'required': [ - 'purchase_order', - ], - 'nullable': [ - ], - 'enum': [ - ], - 'validation': [ - ] - }, - root_map={ - 'validations': { - }, - 'allowed_values': { - }, - 'openapi_types': { - 'purchase_order': - (PurchaseOrder,), - 'raw': - (bool,), - 'consumer_id': - (str,), - 'app_id': - (str,), - 'service_id': - (str,), - }, - 'attribute_map': { - 'raw': 'raw', - 'consumer_id': 'x-apideck-consumer-id', - 'app_id': 'x-apideck-app-id', - 'service_id': 'x-apideck-service-id', - }, - 'location_map': { - 'purchase_order': 'body', - 'raw': 'query', - 'consumer_id': 'header', - 'app_id': 'header', - 'service_id': 'header', - }, - 'collection_format_map': { - } - }, - headers_map={ - 'accept': [ - 'application/json' - ], - 'content_type': [ - 'application/json' - ] - }, - api_client=api_client - ) - self.purchase_orders_all_endpoint = _Endpoint( - settings={ - 'response_type': (GetPurchaseOrdersResponse,), - 'auth': [ - 'apiKey' - ], - 'endpoint_path': '/accounting/purchase-orders', - 'operation_id': 'purchase_orders_all', - 'http_method': 'GET', - 'servers': None, - }, - params_map={ - 'all': [ - 'raw', - 'consumer_id', - 'app_id', - 'service_id', - 'cursor', - 'pass_through', - 'limit', - 'filter', - 'sort', - ], - 'required': [], + 'required': [], 'nullable': [ 'cursor', + 'fields', ], 'enum': [ ], @@ -5804,14 +5726,12 @@ def __init__(self, api_client=None): (str,), 'cursor': (str, none_type,), - 'pass_through': - (PassThroughQuery,), 'limit': (int,), + 'fields': + (str, none_type,), 'filter': - (PurchaseOrdersFilter,), - 'sort': - (PurchaseOrdersSort,), + (AccountingLocationsFilter,), }, 'attribute_map': { 'raw': 'raw', @@ -5819,10 +5739,9 @@ def __init__(self, api_client=None): 'app_id': 'x-apideck-app-id', 'service_id': 'x-apideck-service-id', 'cursor': 'cursor', - 'pass_through': 'pass_through', 'limit': 'limit', + 'fields': 'fields', 'filter': 'filter', - 'sort': 'sort', }, 'location_map': { 'raw': 'query', @@ -5830,10 +5749,9 @@ def __init__(self, api_client=None): 'app_id': 'header', 'service_id': 'header', 'cursor': 'query', - 'pass_through': 'query', 'limit': 'query', + 'fields': 'query', 'filter': 'query', - 'sort': 'query', }, 'collection_format_map': { } @@ -5846,14 +5764,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.purchase_orders_delete_endpoint = _Endpoint( + self.locations_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeletePurchaseOrderResponse,), + 'response_type': (DeleteAccountingLocationResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/purchase-orders/{id}', - 'operation_id': 'purchase_orders_delete', + 'endpoint_path': '/accounting/locations/{id}', + 'operation_id': 'locations_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -5917,14 +5835,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.purchase_orders_one_endpoint = _Endpoint( + self.locations_one_endpoint = _Endpoint( settings={ - 'response_type': (GetPurchaseOrderResponse,), + 'response_type': (GetAccountingLocationResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/purchase-orders/{id}', - 'operation_id': 'purchase_orders_one', + 'endpoint_path': '/accounting/locations/{id}', + 'operation_id': 'locations_one', 'http_method': 'GET', 'servers': None, }, @@ -5935,11 +5853,13 @@ def __init__(self, api_client=None): 'app_id', 'service_id', 'raw', + 'fields', ], 'required': [ 'id', ], 'nullable': [ + 'fields', ], 'enum': [ ], @@ -5962,6 +5882,8 @@ def __init__(self, api_client=None): (str,), 'raw': (bool,), + 'fields': + (str, none_type,), }, 'attribute_map': { 'id': 'id', @@ -5969,6 +5891,7 @@ def __init__(self, api_client=None): 'app_id': 'x-apideck-app-id', 'service_id': 'x-apideck-service-id', 'raw': 'raw', + 'fields': 'fields', }, 'location_map': { 'id': 'path', @@ -5976,6 +5899,7 @@ def __init__(self, api_client=None): 'app_id': 'header', 'service_id': 'header', 'raw': 'query', + 'fields': 'query', }, 'collection_format_map': { } @@ -5988,21 +5912,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.purchase_orders_update_endpoint = _Endpoint( + self.locations_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdatePurchaseOrderResponse,), + 'response_type': (UpdateAccountingLocationResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/purchase-orders/{id}', - 'operation_id': 'purchase_orders_update', + 'endpoint_path': '/accounting/locations/{id}', + 'operation_id': 'locations_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'purchase_order', + 'accounting_location', 'consumer_id', 'app_id', 'service_id', @@ -6010,7 +5934,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'purchase_order', + 'accounting_location', ], 'nullable': [ ], @@ -6027,8 +5951,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'purchase_order': - (PurchaseOrder,), + 'accounting_location': + (AccountingLocation,), 'consumer_id': (str,), 'app_id': @@ -6047,7 +5971,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'purchase_order': 'body', + 'accounting_location': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -6066,27 +5990,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.subsidiaries_add_endpoint = _Endpoint( + self.payments_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateSubsidiaryResponse,), + 'response_type': (CreatePaymentResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/subsidiaries', - 'operation_id': 'subsidiaries_add', + 'endpoint_path': '/accounting/payments', + 'operation_id': 'payments_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'subsidiary', + 'payment', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'subsidiary', + 'payment', ], 'nullable': [ ], @@ -6101,8 +6025,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'subsidiary': - (Subsidiary,), + 'payment': + (Payment,), 'raw': (bool,), 'consumer_id': @@ -6119,7 +6043,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'subsidiary': 'body', + 'payment': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -6138,14 +6062,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.subsidiaries_all_endpoint = _Endpoint( + self.payments_all_endpoint = _Endpoint( settings={ - 'response_type': (GetSubsidiariesResponse,), + 'response_type': (GetPaymentsResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/subsidiaries', - 'operation_id': 'subsidiaries_all', + 'endpoint_path': '/accounting/payments', + 'operation_id': 'payments_all', 'http_method': 'GET', 'servers': None, }, @@ -6157,6 +6081,9 @@ def __init__(self, api_client=None): 'service_id', 'cursor', 'limit', + 'filter', + 'sort', + 'pass_through', 'fields', ], 'required': [], @@ -6193,6 +6120,12 @@ def __init__(self, api_client=None): (str, none_type,), 'limit': (int,), + 'filter': + (PaymentsFilter,), + 'sort': + (PaymentsSort,), + 'pass_through': + (PassThroughQuery,), 'fields': (str, none_type,), }, @@ -6203,6 +6136,9 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', 'cursor': 'cursor', 'limit': 'limit', + 'filter': 'filter', + 'sort': 'sort', + 'pass_through': 'pass_through', 'fields': 'fields', }, 'location_map': { @@ -6212,6 +6148,9 @@ def __init__(self, api_client=None): 'service_id': 'header', 'cursor': 'query', 'limit': 'query', + 'filter': 'query', + 'sort': 'query', + 'pass_through': 'query', 'fields': 'query', }, 'collection_format_map': { @@ -6225,14 +6164,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.subsidiaries_delete_endpoint = _Endpoint( + self.payments_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteSubsidiaryResponse,), + 'response_type': (DeletePaymentResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/subsidiaries/{id}', - 'operation_id': 'subsidiaries_delete', + 'endpoint_path': '/accounting/payments/{id}', + 'operation_id': 'payments_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -6296,14 +6235,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.subsidiaries_one_endpoint = _Endpoint( + self.payments_one_endpoint = _Endpoint( settings={ - 'response_type': (GetSubsidiaryResponse,), + 'response_type': (GetPaymentResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/subsidiaries/{id}', - 'operation_id': 'subsidiaries_one', + 'endpoint_path': '/accounting/payments/{id}', + 'operation_id': 'payments_one', 'http_method': 'GET', 'servers': None, }, @@ -6373,21 +6312,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.subsidiaries_update_endpoint = _Endpoint( + self.payments_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateSubsidiaryResponse,), + 'response_type': (UpdatePaymentResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/subsidiaries/{id}', - 'operation_id': 'subsidiaries_update', + 'endpoint_path': '/accounting/payments/{id}', + 'operation_id': 'payments_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'subsidiary', + 'payment', 'consumer_id', 'app_id', 'service_id', @@ -6395,7 +6334,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'subsidiary', + 'payment', ], 'nullable': [ ], @@ -6412,8 +6351,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'subsidiary': - (Subsidiary,), + 'payment': + (Payment,), 'consumer_id': (str,), 'app_id': @@ -6432,7 +6371,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'subsidiary': 'body', + 'payment': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -6451,29 +6390,30 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.suppliers_add_endpoint = _Endpoint( + self.profit_and_loss_one_endpoint = _Endpoint( settings={ - 'response_type': (CreateSupplierResponse,), + 'response_type': (GetProfitAndLossResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/suppliers', - 'operation_id': 'suppliers_add', - 'http_method': 'POST', + 'endpoint_path': '/accounting/profit-and-loss', + 'operation_id': 'profit_and_loss_one', + 'http_method': 'GET', 'servers': None, }, params_map={ 'all': [ - 'supplier', 'raw', 'consumer_id', 'app_id', 'service_id', + 'filter', + 'pass_through', + 'fields', ], - 'required': [ - 'supplier', - ], + 'required': [], 'nullable': [ + 'fields', ], 'enum': [ ], @@ -6486,8 +6426,6 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'supplier': - (Supplier,), 'raw': (bool,), 'consumer_id': @@ -6496,19 +6434,30 @@ def __init__(self, api_client=None): (str,), 'service_id': (str,), + 'filter': + (ProfitAndLossFilter,), + 'pass_through': + (PassThroughQuery,), + 'fields': + (str, none_type,), }, 'attribute_map': { 'raw': 'raw', 'consumer_id': 'x-apideck-consumer-id', 'app_id': 'x-apideck-app-id', 'service_id': 'x-apideck-service-id', + 'filter': 'filter', + 'pass_through': 'pass_through', + 'fields': 'fields', }, 'location_map': { - 'supplier': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', + 'filter': 'query', + 'pass_through': 'query', + 'fields': 'query', }, 'collection_format_map': { } @@ -6517,40 +6466,108 @@ def __init__(self, api_client=None): 'accept': [ 'application/json' ], - 'content_type': [ - 'application/json' - ] + 'content_type': [], }, api_client=api_client ) - self.suppliers_all_endpoint = _Endpoint( + self.purchase_orders_add_endpoint = _Endpoint( settings={ - 'response_type': (GetSuppliersResponse,), + 'response_type': (CreatePurchaseOrderResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/suppliers', - 'operation_id': 'suppliers_all', - 'http_method': 'GET', + 'endpoint_path': '/accounting/purchase-orders', + 'operation_id': 'purchase_orders_add', + 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ + 'purchase_order', 'raw', 'consumer_id', 'app_id', 'service_id', - 'cursor', - 'limit', - 'filter', - 'sort', + ], + 'required': [ + 'purchase_order', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'purchase_order': + (PurchaseOrder,), + 'raw': + (bool,), + 'consumer_id': + (str,), + 'app_id': + (str,), + 'service_id': + (str,), + }, + 'attribute_map': { + 'raw': 'raw', + 'consumer_id': 'x-apideck-consumer-id', + 'app_id': 'x-apideck-app-id', + 'service_id': 'x-apideck-service-id', + }, + 'location_map': { + 'purchase_order': 'body', + 'raw': 'query', + 'consumer_id': 'header', + 'app_id': 'header', + 'service_id': 'header', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.purchase_orders_all_endpoint = _Endpoint( + settings={ + 'response_type': (GetPurchaseOrdersResponse,), + 'auth': [ + 'apiKey' + ], + 'endpoint_path': '/accounting/purchase-orders', + 'operation_id': 'purchase_orders_all', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'raw', + 'consumer_id', + 'app_id', + 'service_id', + 'cursor', 'pass_through', - 'fields', + 'limit', + 'filter', + 'sort', ], 'required': [], 'nullable': [ 'cursor', - 'fields', ], 'enum': [ ], @@ -6579,16 +6596,14 @@ def __init__(self, api_client=None): (str,), 'cursor': (str, none_type,), + 'pass_through': + (PassThroughQuery,), 'limit': (int,), 'filter': - (SuppliersFilter,), + (PurchaseOrdersFilter,), 'sort': - (SuppliersSort,), - 'pass_through': - (PassThroughQuery,), - 'fields': - (str, none_type,), + (PurchaseOrdersSort,), }, 'attribute_map': { 'raw': 'raw', @@ -6596,11 +6611,10 @@ def __init__(self, api_client=None): 'app_id': 'x-apideck-app-id', 'service_id': 'x-apideck-service-id', 'cursor': 'cursor', + 'pass_through': 'pass_through', 'limit': 'limit', 'filter': 'filter', 'sort': 'sort', - 'pass_through': 'pass_through', - 'fields': 'fields', }, 'location_map': { 'raw': 'query', @@ -6608,11 +6622,10 @@ def __init__(self, api_client=None): 'app_id': 'header', 'service_id': 'header', 'cursor': 'query', + 'pass_through': 'query', 'limit': 'query', 'filter': 'query', 'sort': 'query', - 'pass_through': 'query', - 'fields': 'query', }, 'collection_format_map': { } @@ -6625,14 +6638,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.suppliers_delete_endpoint = _Endpoint( + self.purchase_orders_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteSupplierResponse,), + 'response_type': (DeletePurchaseOrderResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/suppliers/{id}', - 'operation_id': 'suppliers_delete', + 'endpoint_path': '/accounting/purchase-orders/{id}', + 'operation_id': 'purchase_orders_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -6696,14 +6709,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.suppliers_one_endpoint = _Endpoint( + self.purchase_orders_one_endpoint = _Endpoint( settings={ - 'response_type': (GetSupplierResponse,), + 'response_type': (GetPurchaseOrderResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/suppliers/{id}', - 'operation_id': 'suppliers_one', + 'endpoint_path': '/accounting/purchase-orders/{id}', + 'operation_id': 'purchase_orders_one', 'http_method': 'GET', 'servers': None, }, @@ -6714,13 +6727,11 @@ def __init__(self, api_client=None): 'app_id', 'service_id', 'raw', - 'fields', ], 'required': [ 'id', ], 'nullable': [ - 'fields', ], 'enum': [ ], @@ -6743,8 +6754,6 @@ def __init__(self, api_client=None): (str,), 'raw': (bool,), - 'fields': - (str, none_type,), }, 'attribute_map': { 'id': 'id', @@ -6752,7 +6761,6 @@ def __init__(self, api_client=None): 'app_id': 'x-apideck-app-id', 'service_id': 'x-apideck-service-id', 'raw': 'raw', - 'fields': 'fields', }, 'location_map': { 'id': 'path', @@ -6760,7 +6768,6 @@ def __init__(self, api_client=None): 'app_id': 'header', 'service_id': 'header', 'raw': 'query', - 'fields': 'query', }, 'collection_format_map': { } @@ -6773,21 +6780,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.suppliers_update_endpoint = _Endpoint( + self.purchase_orders_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateSupplierResponse,), + 'response_type': (UpdatePurchaseOrderResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/suppliers/{id}', - 'operation_id': 'suppliers_update', + 'endpoint_path': '/accounting/purchase-orders/{id}', + 'operation_id': 'purchase_orders_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'supplier', + 'purchase_order', 'consumer_id', 'app_id', 'service_id', @@ -6795,7 +6802,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'supplier', + 'purchase_order', ], 'nullable': [ ], @@ -6812,8 +6819,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'supplier': - (Supplier,), + 'purchase_order': + (PurchaseOrder,), 'consumer_id': (str,), 'app_id': @@ -6832,7 +6839,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'supplier': 'body', + 'purchase_order': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -6851,27 +6858,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.tax_rates_add_endpoint = _Endpoint( + self.subsidiaries_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateTaxRateResponse,), + 'response_type': (CreateSubsidiaryResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/tax-rates', - 'operation_id': 'tax_rates_add', + 'endpoint_path': '/accounting/subsidiaries', + 'operation_id': 'subsidiaries_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'tax_rate', + 'subsidiary', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'tax_rate', + 'subsidiary', ], 'nullable': [ ], @@ -6886,8 +6893,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'tax_rate': - (TaxRate,), + 'subsidiary': + (Subsidiary,), 'raw': (bool,), 'consumer_id': @@ -6904,7 +6911,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'tax_rate': 'body', + 'subsidiary': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -6923,14 +6930,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.tax_rates_all_endpoint = _Endpoint( + self.subsidiaries_all_endpoint = _Endpoint( settings={ - 'response_type': (GetTaxRatesResponse,), + 'response_type': (GetSubsidiariesResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/tax-rates', - 'operation_id': 'tax_rates_all', + 'endpoint_path': '/accounting/subsidiaries', + 'operation_id': 'subsidiaries_all', 'http_method': 'GET', 'servers': None, }, @@ -6942,8 +6949,6 @@ def __init__(self, api_client=None): 'service_id', 'cursor', 'limit', - 'filter', - 'pass_through', 'fields', ], 'required': [], @@ -6980,10 +6985,6 @@ def __init__(self, api_client=None): (str, none_type,), 'limit': (int,), - 'filter': - (TaxRatesFilter,), - 'pass_through': - (PassThroughQuery,), 'fields': (str, none_type,), }, @@ -6994,8 +6995,6 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', 'cursor': 'cursor', 'limit': 'limit', - 'filter': 'filter', - 'pass_through': 'pass_through', 'fields': 'fields', }, 'location_map': { @@ -7005,8 +7004,6 @@ def __init__(self, api_client=None): 'service_id': 'header', 'cursor': 'query', 'limit': 'query', - 'filter': 'query', - 'pass_through': 'query', 'fields': 'query', }, 'collection_format_map': { @@ -7020,14 +7017,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.tax_rates_delete_endpoint = _Endpoint( + self.subsidiaries_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteTaxRateResponse,), + 'response_type': (DeleteSubsidiaryResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/tax-rates/{id}', - 'operation_id': 'tax_rates_delete', + 'endpoint_path': '/accounting/subsidiaries/{id}', + 'operation_id': 'subsidiaries_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -7091,14 +7088,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.tax_rates_one_endpoint = _Endpoint( + self.subsidiaries_one_endpoint = _Endpoint( settings={ - 'response_type': (GetTaxRateResponse,), + 'response_type': (GetSubsidiaryResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/tax-rates/{id}', - 'operation_id': 'tax_rates_one', + 'endpoint_path': '/accounting/subsidiaries/{id}', + 'operation_id': 'subsidiaries_one', 'http_method': 'GET', 'servers': None, }, @@ -7168,21 +7165,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.tax_rates_update_endpoint = _Endpoint( + self.subsidiaries_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateTaxRateResponse,), + 'response_type': (UpdateSubsidiaryResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/tax-rates/{id}', - 'operation_id': 'tax_rates_update', + 'endpoint_path': '/accounting/subsidiaries/{id}', + 'operation_id': 'subsidiaries_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'tax_rate', + 'subsidiary', 'consumer_id', 'app_id', 'service_id', @@ -7190,7 +7187,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'tax_rate', + 'subsidiary', ], 'nullable': [ ], @@ -7207,8 +7204,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'tax_rate': - (TaxRate,), + 'subsidiary': + (Subsidiary,), 'consumer_id': (str,), 'app_id': @@ -7227,7 +7224,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'tax_rate': 'body', + 'subsidiary': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -7246,27 +7243,27 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.tracking_categories_add_endpoint = _Endpoint( + self.suppliers_add_endpoint = _Endpoint( settings={ - 'response_type': (CreateTrackingCategoryResponse,), + 'response_type': (CreateSupplierResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/tracking-categories', - 'operation_id': 'tracking_categories_add', + 'endpoint_path': '/accounting/suppliers', + 'operation_id': 'suppliers_add', 'http_method': 'POST', 'servers': None, }, params_map={ 'all': [ - 'tracking_category', + 'supplier', 'raw', 'consumer_id', 'app_id', 'service_id', ], 'required': [ - 'tracking_category', + 'supplier', ], 'nullable': [ ], @@ -7281,8 +7278,8 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { - 'tracking_category': - (TrackingCategory,), + 'supplier': + (Supplier,), 'raw': (bool,), 'consumer_id': @@ -7299,7 +7296,7 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', }, 'location_map': { - 'tracking_category': 'body', + 'supplier': 'body', 'raw': 'query', 'consumer_id': 'header', 'app_id': 'header', @@ -7318,14 +7315,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.tracking_categories_all_endpoint = _Endpoint( + self.suppliers_all_endpoint = _Endpoint( settings={ - 'response_type': (GetTrackingCategoriesResponse,), + 'response_type': (GetSuppliersResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/tracking-categories', - 'operation_id': 'tracking_categories_all', + 'endpoint_path': '/accounting/suppliers', + 'operation_id': 'suppliers_all', 'http_method': 'GET', 'servers': None, }, @@ -7337,6 +7334,8 @@ def __init__(self, api_client=None): 'service_id', 'cursor', 'limit', + 'filter', + 'sort', 'pass_through', 'fields', ], @@ -7374,6 +7373,10 @@ def __init__(self, api_client=None): (str, none_type,), 'limit': (int,), + 'filter': + (SuppliersFilter,), + 'sort': + (SuppliersSort,), 'pass_through': (PassThroughQuery,), 'fields': @@ -7386,6 +7389,8 @@ def __init__(self, api_client=None): 'service_id': 'x-apideck-service-id', 'cursor': 'cursor', 'limit': 'limit', + 'filter': 'filter', + 'sort': 'sort', 'pass_through': 'pass_through', 'fields': 'fields', }, @@ -7396,6 +7401,8 @@ def __init__(self, api_client=None): 'service_id': 'header', 'cursor': 'query', 'limit': 'query', + 'filter': 'query', + 'sort': 'query', 'pass_through': 'query', 'fields': 'query', }, @@ -7410,14 +7417,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.tracking_categories_delete_endpoint = _Endpoint( + self.suppliers_delete_endpoint = _Endpoint( settings={ - 'response_type': (DeleteTrackingCategoryResponse,), + 'response_type': (DeleteSupplierResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/tracking-categories/{id}', - 'operation_id': 'tracking_categories_delete', + 'endpoint_path': '/accounting/suppliers/{id}', + 'operation_id': 'suppliers_delete', 'http_method': 'DELETE', 'servers': None, }, @@ -7481,14 +7488,14 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.tracking_categories_one_endpoint = _Endpoint( + self.suppliers_one_endpoint = _Endpoint( settings={ - 'response_type': (GetTrackingCategoryResponse,), + 'response_type': (GetSupplierResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/tracking-categories/{id}', - 'operation_id': 'tracking_categories_one', + 'endpoint_path': '/accounting/suppliers/{id}', + 'operation_id': 'suppliers_one', 'http_method': 'GET', 'servers': None, }, @@ -7558,21 +7565,21 @@ def __init__(self, api_client=None): }, api_client=api_client ) - self.tracking_categories_update_endpoint = _Endpoint( + self.suppliers_update_endpoint = _Endpoint( settings={ - 'response_type': (UpdateTrackingCategoryResponse,), + 'response_type': (UpdateSupplierResponse,), 'auth': [ 'apiKey' ], - 'endpoint_path': '/accounting/tracking-categories/{id}', - 'operation_id': 'tracking_categories_update', + 'endpoint_path': '/accounting/suppliers/{id}', + 'operation_id': 'suppliers_update', 'http_method': 'PATCH', 'servers': None, }, params_map={ 'all': [ 'id', - 'tracking_category', + 'supplier', 'consumer_id', 'app_id', 'service_id', @@ -7580,7 +7587,7 @@ def __init__(self, api_client=None): ], 'required': [ 'id', - 'tracking_category', + 'supplier', ], 'nullable': [ ], @@ -7597,8 +7604,8 @@ def __init__(self, api_client=None): 'openapi_types': { 'id': (str,), - 'tracking_category': - (TrackingCategory,), + 'supplier': + (Supplier,), 'consumer_id': (str,), 'app_id': @@ -7617,7 +7624,7 @@ def __init__(self, api_client=None): }, 'location_map': { 'id': 'path', - 'tracking_category': 'body', + 'supplier': 'body', 'consumer_id': 'header', 'app_id': 'header', 'service_id': 'header', @@ -7636,18 +7643,1484 @@ def __init__(self, api_client=None): }, api_client=api_client ) + self.tax_rates_add_endpoint = _Endpoint( + settings={ + 'response_type': (CreateTaxRateResponse,), + 'auth': [ + 'apiKey' + ], + 'endpoint_path': '/accounting/tax-rates', + 'operation_id': 'tax_rates_add', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'tax_rate', + 'raw', + 'consumer_id', + 'app_id', + 'service_id', + ], + 'required': [ + 'tax_rate', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'tax_rate': + (TaxRate,), + 'raw': + (bool,), + 'consumer_id': + (str,), + 'app_id': + (str,), + 'service_id': + (str,), + }, + 'attribute_map': { + 'raw': 'raw', + 'consumer_id': 'x-apideck-consumer-id', + 'app_id': 'x-apideck-app-id', + 'service_id': 'x-apideck-service-id', + }, + 'location_map': { + 'tax_rate': 'body', + 'raw': 'query', + 'consumer_id': 'header', + 'app_id': 'header', + 'service_id': 'header', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.tax_rates_all_endpoint = _Endpoint( + settings={ + 'response_type': (GetTaxRatesResponse,), + 'auth': [ + 'apiKey' + ], + 'endpoint_path': '/accounting/tax-rates', + 'operation_id': 'tax_rates_all', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'raw', + 'consumer_id', + 'app_id', + 'service_id', + 'cursor', + 'limit', + 'filter', + 'pass_through', + 'fields', + ], + 'required': [], + 'nullable': [ + 'cursor', + 'fields', + ], + 'enum': [ + ], + 'validation': [ + 'limit', + ] + }, + root_map={ + 'validations': { + ('limit',): { + + 'inclusive_maximum': 200, + 'inclusive_minimum': 1, + }, + }, + 'allowed_values': { + }, + 'openapi_types': { + 'raw': + (bool,), + 'consumer_id': + (str,), + 'app_id': + (str,), + 'service_id': + (str,), + 'cursor': + (str, none_type,), + 'limit': + (int,), + 'filter': + (TaxRatesFilter,), + 'pass_through': + (PassThroughQuery,), + 'fields': + (str, none_type,), + }, + 'attribute_map': { + 'raw': 'raw', + 'consumer_id': 'x-apideck-consumer-id', + 'app_id': 'x-apideck-app-id', + 'service_id': 'x-apideck-service-id', + 'cursor': 'cursor', + 'limit': 'limit', + 'filter': 'filter', + 'pass_through': 'pass_through', + 'fields': 'fields', + }, + 'location_map': { + 'raw': 'query', + 'consumer_id': 'header', + 'app_id': 'header', + 'service_id': 'header', + 'cursor': 'query', + 'limit': 'query', + 'filter': 'query', + 'pass_through': 'query', + 'fields': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.tax_rates_delete_endpoint = _Endpoint( + settings={ + 'response_type': (DeleteTaxRateResponse,), + 'auth': [ + 'apiKey' + ], + 'endpoint_path': '/accounting/tax-rates/{id}', + 'operation_id': 'tax_rates_delete', + 'http_method': 'DELETE', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'consumer_id', + 'app_id', + 'service_id', + 'raw', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'consumer_id': + (str,), + 'app_id': + (str,), + 'service_id': + (str,), + 'raw': + (bool,), + }, + 'attribute_map': { + 'id': 'id', + 'consumer_id': 'x-apideck-consumer-id', + 'app_id': 'x-apideck-app-id', + 'service_id': 'x-apideck-service-id', + 'raw': 'raw', + }, + 'location_map': { + 'id': 'path', + 'consumer_id': 'header', + 'app_id': 'header', + 'service_id': 'header', + 'raw': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.tax_rates_one_endpoint = _Endpoint( + settings={ + 'response_type': (GetTaxRateResponse,), + 'auth': [ + 'apiKey' + ], + 'endpoint_path': '/accounting/tax-rates/{id}', + 'operation_id': 'tax_rates_one', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'consumer_id', + 'app_id', + 'service_id', + 'raw', + 'fields', + ], + 'required': [ + 'id', + ], + 'nullable': [ + 'fields', + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'consumer_id': + (str,), + 'app_id': + (str,), + 'service_id': + (str,), + 'raw': + (bool,), + 'fields': + (str, none_type,), + }, + 'attribute_map': { + 'id': 'id', + 'consumer_id': 'x-apideck-consumer-id', + 'app_id': 'x-apideck-app-id', + 'service_id': 'x-apideck-service-id', + 'raw': 'raw', + 'fields': 'fields', + }, + 'location_map': { + 'id': 'path', + 'consumer_id': 'header', + 'app_id': 'header', + 'service_id': 'header', + 'raw': 'query', + 'fields': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.tax_rates_update_endpoint = _Endpoint( + settings={ + 'response_type': (UpdateTaxRateResponse,), + 'auth': [ + 'apiKey' + ], + 'endpoint_path': '/accounting/tax-rates/{id}', + 'operation_id': 'tax_rates_update', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'tax_rate', + 'consumer_id', + 'app_id', + 'service_id', + 'raw', + ], + 'required': [ + 'id', + 'tax_rate', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'tax_rate': + (TaxRate,), + 'consumer_id': + (str,), + 'app_id': + (str,), + 'service_id': + (str,), + 'raw': + (bool,), + }, + 'attribute_map': { + 'id': 'id', + 'consumer_id': 'x-apideck-consumer-id', + 'app_id': 'x-apideck-app-id', + 'service_id': 'x-apideck-service-id', + 'raw': 'raw', + }, + 'location_map': { + 'id': 'path', + 'tax_rate': 'body', + 'consumer_id': 'header', + 'app_id': 'header', + 'service_id': 'header', + 'raw': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.tracking_categories_add_endpoint = _Endpoint( + settings={ + 'response_type': (CreateTrackingCategoryResponse,), + 'auth': [ + 'apiKey' + ], + 'endpoint_path': '/accounting/tracking-categories', + 'operation_id': 'tracking_categories_add', + 'http_method': 'POST', + 'servers': None, + }, + params_map={ + 'all': [ + 'tracking_category', + 'raw', + 'consumer_id', + 'app_id', + 'service_id', + ], + 'required': [ + 'tracking_category', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'tracking_category': + (TrackingCategory,), + 'raw': + (bool,), + 'consumer_id': + (str,), + 'app_id': + (str,), + 'service_id': + (str,), + }, + 'attribute_map': { + 'raw': 'raw', + 'consumer_id': 'x-apideck-consumer-id', + 'app_id': 'x-apideck-app-id', + 'service_id': 'x-apideck-service-id', + }, + 'location_map': { + 'tracking_category': 'body', + 'raw': 'query', + 'consumer_id': 'header', + 'app_id': 'header', + 'service_id': 'header', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + self.tracking_categories_all_endpoint = _Endpoint( + settings={ + 'response_type': (GetTrackingCategoriesResponse,), + 'auth': [ + 'apiKey' + ], + 'endpoint_path': '/accounting/tracking-categories', + 'operation_id': 'tracking_categories_all', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'raw', + 'consumer_id', + 'app_id', + 'service_id', + 'cursor', + 'limit', + 'pass_through', + 'fields', + ], + 'required': [], + 'nullable': [ + 'cursor', + 'fields', + ], + 'enum': [ + ], + 'validation': [ + 'limit', + ] + }, + root_map={ + 'validations': { + ('limit',): { + + 'inclusive_maximum': 200, + 'inclusive_minimum': 1, + }, + }, + 'allowed_values': { + }, + 'openapi_types': { + 'raw': + (bool,), + 'consumer_id': + (str,), + 'app_id': + (str,), + 'service_id': + (str,), + 'cursor': + (str, none_type,), + 'limit': + (int,), + 'pass_through': + (PassThroughQuery,), + 'fields': + (str, none_type,), + }, + 'attribute_map': { + 'raw': 'raw', + 'consumer_id': 'x-apideck-consumer-id', + 'app_id': 'x-apideck-app-id', + 'service_id': 'x-apideck-service-id', + 'cursor': 'cursor', + 'limit': 'limit', + 'pass_through': 'pass_through', + 'fields': 'fields', + }, + 'location_map': { + 'raw': 'query', + 'consumer_id': 'header', + 'app_id': 'header', + 'service_id': 'header', + 'cursor': 'query', + 'limit': 'query', + 'pass_through': 'query', + 'fields': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.tracking_categories_delete_endpoint = _Endpoint( + settings={ + 'response_type': (DeleteTrackingCategoryResponse,), + 'auth': [ + 'apiKey' + ], + 'endpoint_path': '/accounting/tracking-categories/{id}', + 'operation_id': 'tracking_categories_delete', + 'http_method': 'DELETE', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'consumer_id', + 'app_id', + 'service_id', + 'raw', + ], + 'required': [ + 'id', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'consumer_id': + (str,), + 'app_id': + (str,), + 'service_id': + (str,), + 'raw': + (bool,), + }, + 'attribute_map': { + 'id': 'id', + 'consumer_id': 'x-apideck-consumer-id', + 'app_id': 'x-apideck-app-id', + 'service_id': 'x-apideck-service-id', + 'raw': 'raw', + }, + 'location_map': { + 'id': 'path', + 'consumer_id': 'header', + 'app_id': 'header', + 'service_id': 'header', + 'raw': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.tracking_categories_one_endpoint = _Endpoint( + settings={ + 'response_type': (GetTrackingCategoryResponse,), + 'auth': [ + 'apiKey' + ], + 'endpoint_path': '/accounting/tracking-categories/{id}', + 'operation_id': 'tracking_categories_one', + 'http_method': 'GET', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'consumer_id', + 'app_id', + 'service_id', + 'raw', + 'fields', + ], + 'required': [ + 'id', + ], + 'nullable': [ + 'fields', + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'consumer_id': + (str,), + 'app_id': + (str,), + 'service_id': + (str,), + 'raw': + (bool,), + 'fields': + (str, none_type,), + }, + 'attribute_map': { + 'id': 'id', + 'consumer_id': 'x-apideck-consumer-id', + 'app_id': 'x-apideck-app-id', + 'service_id': 'x-apideck-service-id', + 'raw': 'raw', + 'fields': 'fields', + }, + 'location_map': { + 'id': 'path', + 'consumer_id': 'header', + 'app_id': 'header', + 'service_id': 'header', + 'raw': 'query', + 'fields': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [], + }, + api_client=api_client + ) + self.tracking_categories_update_endpoint = _Endpoint( + settings={ + 'response_type': (UpdateTrackingCategoryResponse,), + 'auth': [ + 'apiKey' + ], + 'endpoint_path': '/accounting/tracking-categories/{id}', + 'operation_id': 'tracking_categories_update', + 'http_method': 'PATCH', + 'servers': None, + }, + params_map={ + 'all': [ + 'id', + 'tracking_category', + 'consumer_id', + 'app_id', + 'service_id', + 'raw', + ], + 'required': [ + 'id', + 'tracking_category', + ], + 'nullable': [ + ], + 'enum': [ + ], + 'validation': [ + ] + }, + root_map={ + 'validations': { + }, + 'allowed_values': { + }, + 'openapi_types': { + 'id': + (str,), + 'tracking_category': + (TrackingCategory,), + 'consumer_id': + (str,), + 'app_id': + (str,), + 'service_id': + (str,), + 'raw': + (bool,), + }, + 'attribute_map': { + 'id': 'id', + 'consumer_id': 'x-apideck-consumer-id', + 'app_id': 'x-apideck-app-id', + 'service_id': 'x-apideck-service-id', + 'raw': 'raw', + }, + 'location_map': { + 'id': 'path', + 'tracking_category': 'body', + 'consumer_id': 'header', + 'app_id': 'header', + 'service_id': 'header', + 'raw': 'query', + }, + 'collection_format_map': { + } + }, + headers_map={ + 'accept': [ + 'application/json' + ], + 'content_type': [ + 'application/json' + ] + }, + api_client=api_client + ) + + def aged_creditors_one( + self, + **kwargs + ): + """Get Aged Creditors # noqa: E501 + + Get Aged Creditors # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.aged_creditors_one(async_req=True) + >>> result = thread.get() + + + Keyword Args: + raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False + consumer_id (str): ID of the consumer which you want to get or push data from. [optional] + app_id (str): The ID of your Unify application. [optional] + service_id (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): Apply filters. [optional] + pass_through (PassThroughQuery): Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads. [optional] + fields (str, none_type): The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + async_req (bool): execute request asynchronously + + Returns: + GetAgedCreditorsResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + return self.aged_creditors_one_endpoint.call_with_http_info(**kwargs) + + def aged_debtors_one( + self, + **kwargs + ): + """Get Aged Debtors # noqa: E501 + + Get Aged Debtors # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.aged_debtors_one(async_req=True) + >>> result = thread.get() + + + Keyword Args: + raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False + consumer_id (str): ID of the consumer which you want to get or push data from. [optional] + app_id (str): The ID of your Unify application. [optional] + service_id (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): Apply filters. [optional] + pass_through (PassThroughQuery): Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads. [optional] + fields (str, none_type): The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + async_req (bool): execute request asynchronously + + Returns: + GetAgedDebtorsResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + return self.aged_debtors_one_endpoint.call_with_http_info(**kwargs) + + def attachments_all( + self, + reference_type, + reference_id, + **kwargs + ): + """List Attachments # noqa: E501 + + List Attachments # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.attachments_all(reference_type, reference_id, async_req=True) + >>> result = thread.get() + + Args: + reference_type (AttachmentReferenceType): The reference type of the document. + reference_id (str): The reference id of the object to retrieve. + + Keyword Args: + raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False + consumer_id (str): ID of the consumer which you want to get or push data from. [optional] + app_id (str): The ID of your Unify application. [optional] + service_id (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] + cursor (str, none_type): Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response.. [optional] + limit (int): Number of results to return. Minimum 1, Maximum 200, Default 20. [optional] if omitted the server will use the default value of 20 + fields (str, none_type): The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + async_req (bool): execute request asynchronously + + Returns: + GetAttachmentsResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['reference_type'] = \ + reference_type + kwargs['reference_id'] = \ + reference_id + return self.attachments_all_endpoint.call_with_http_info(**kwargs) + + def attachments_delete( + self, + reference_type, + reference_id, + id, + **kwargs + ): + """Delete Attachment # noqa: E501 + + Delete Attachment # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.attachments_delete(reference_type, reference_id, id, async_req=True) + >>> result = thread.get() + + Args: + reference_type (AttachmentReferenceType): The reference type of the document. + reference_id (str): The reference id of the object to retrieve. + id (str): ID of the record you are acting upon. + + Keyword Args: + consumer_id (str): ID of the consumer which you want to get or push data from. [optional] + app_id (str): The ID of your Unify application. [optional] + service_id (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] + raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + async_req (bool): execute request asynchronously + + Returns: + DeleteAttachmentResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['reference_type'] = \ + reference_type + kwargs['reference_id'] = \ + reference_id + kwargs['id'] = \ + id + return self.attachments_delete_endpoint.call_with_http_info(**kwargs) + + def attachments_download( + self, + reference_type, + reference_id, + id, + **kwargs + ): + """Download Attachment # noqa: E501 + + Download Attachment # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.attachments_download(reference_type, reference_id, id, async_req=True) + >>> result = thread.get() + + Args: + reference_type (AttachmentReferenceType): The reference type of the document. + reference_id (str): The reference id of the object to retrieve. + id (str): ID of the record you are acting upon. + + Keyword Args: + consumer_id (str): ID of the consumer which you want to get or push data from. [optional] + app_id (str): The ID of your Unify application. [optional] + service_id (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] + fields (str, none_type): The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + async_req (bool): execute request asynchronously + + Returns: + file_type + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['reference_type'] = \ + reference_type + kwargs['reference_id'] = \ + reference_id + kwargs['id'] = \ + id + return self.attachments_download_endpoint.call_with_http_info(**kwargs) + + def attachments_one( + self, + reference_type, + reference_id, + id, + **kwargs + ): + """Get Attachment # noqa: E501 + + Get Attachment # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.attachments_one(reference_type, reference_id, id, async_req=True) + >>> result = thread.get() + + Args: + reference_type (AttachmentReferenceType): The reference type of the document. + reference_id (str): The reference id of the object to retrieve. + id (str): ID of the record you are acting upon. + + Keyword Args: + consumer_id (str): ID of the consumer which you want to get or push data from. [optional] + app_id (str): The ID of your Unify application. [optional] + service_id (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] + raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False + fields (str, none_type): The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + async_req (bool): execute request asynchronously + + Returns: + GetAttachmentResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['reference_type'] = \ + reference_type + kwargs['reference_id'] = \ + reference_id + kwargs['id'] = \ + id + return self.attachments_one_endpoint.call_with_http_info(**kwargs) + + def balance_sheet_one( + self, + **kwargs + ): + """Get BalanceSheet # noqa: E501 + + Get BalanceSheet # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.balance_sheet_one(async_req=True) + >>> result = thread.get() + + + Keyword Args: + consumer_id (str): ID of the consumer which you want to get or push data from. [optional] + app_id (str): The ID of your Unify application. [optional] + service_id (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] + pass_through (PassThroughQuery): Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads. [optional] + filter (BalanceSheetFilter): Apply filters. [optional] + raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + async_req (bool): execute request asynchronously + + Returns: + GetBalanceSheetResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + return self.balance_sheet_one_endpoint.call_with_http_info(**kwargs) + + def bank_feed_accounts_add( + self, + bank_feed_account, + **kwargs + ): + """Create Bank Feed Account # noqa: E501 + + Create Bank Feed Account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.bank_feed_accounts_add(bank_feed_account, async_req=True) + >>> result = thread.get() + + Args: + bank_feed_account (BankFeedAccount): + + Keyword Args: + raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False + consumer_id (str): ID of the consumer which you want to get or push data from. [optional] + app_id (str): The ID of your Unify application. [optional] + service_id (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] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + async_req (bool): execute request asynchronously + + Returns: + CreateBankFeedAccountResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['bank_feed_account'] = \ + bank_feed_account + return self.bank_feed_accounts_add_endpoint.call_with_http_info(**kwargs) - def aged_creditors_one( + def bank_feed_accounts_all( self, **kwargs ): - """Get Aged Creditors # noqa: E501 + """List Bank Feed Accounts # noqa: E501 - Get Aged Creditors # noqa: E501 + List Bank Feed Accounts # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.aged_creditors_one(async_req=True) + >>> thread = api.bank_feed_accounts_all(async_req=True) >>> result = thread.get() @@ -7656,7 +9129,8 @@ def aged_creditors_one( consumer_id (str): ID of the consumer which you want to get or push data from. [optional] app_id (str): The ID of your Unify application. [optional] service_id (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): Apply filters. [optional] + cursor (str, none_type): Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response.. [optional] + limit (int): Number of results to return. Minimum 1, Maximum 200, Default 20. [optional] if omitted the server will use the default value of 20 pass_through (PassThroughQuery): Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads. [optional] fields (str, none_type): The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded.. [optional] _return_http_data_only (bool): response data without head status @@ -7687,7 +9161,7 @@ def aged_creditors_one( async_req (bool): execute request asynchronously Returns: - GetAgedCreditorsResponse + GetBankFeedAccountsResponse If the method is called asynchronously, returns the request thread. """ @@ -7715,30 +9189,30 @@ def aged_creditors_one( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') - return self.aged_creditors_one_endpoint.call_with_http_info(**kwargs) + return self.bank_feed_accounts_all_endpoint.call_with_http_info(**kwargs) - def aged_debtors_one( + def bank_feed_accounts_delete( self, + id, **kwargs ): - """Get Aged Debtors # noqa: E501 + """Delete Bank Feed Account # noqa: E501 - Get Aged Debtors # noqa: E501 + Delete Bank Feed Account # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.aged_debtors_one(async_req=True) + >>> thread = api.bank_feed_accounts_delete(id, async_req=True) >>> result = thread.get() + Args: + id (str): ID of the record you are acting upon. Keyword Args: - raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False consumer_id (str): ID of the consumer which you want to get or push data from. [optional] app_id (str): The ID of your Unify application. [optional] service_id (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): Apply filters. [optional] - pass_through (PassThroughQuery): Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads. [optional] - fields (str, none_type): The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded.. [optional] + raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -7767,7 +9241,7 @@ def aged_debtors_one( async_req (bool): execute request asynchronously Returns: - GetAgedDebtorsResponse + DeleteBankFeedAccountResponse If the method is called asynchronously, returns the request thread. """ @@ -7795,34 +9269,32 @@ def aged_debtors_one( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') - return self.aged_debtors_one_endpoint.call_with_http_info(**kwargs) + kwargs['id'] = \ + id + return self.bank_feed_accounts_delete_endpoint.call_with_http_info(**kwargs) - def attachments_all( + def bank_feed_accounts_one( self, - reference_type, - reference_id, + id, **kwargs ): - """List Attachments # noqa: E501 + """Get Bank Feed Account # noqa: E501 - List Attachments # noqa: E501 + Get Bank Feed Account # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.attachments_all(reference_type, reference_id, async_req=True) + >>> thread = api.bank_feed_accounts_one(id, async_req=True) >>> result = thread.get() Args: - reference_type (AttachmentReferenceType): The reference type of the document. - reference_id (str): The reference id of the object to retrieve. + id (str): ID of the record you are acting upon. Keyword Args: - raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False consumer_id (str): ID of the consumer which you want to get or push data from. [optional] app_id (str): The ID of your Unify application. [optional] service_id (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] - cursor (str, none_type): Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response.. [optional] - limit (int): Number of results to return. Minimum 1, Maximum 200, Default 20. [optional] if omitted the server will use the default value of 20 + raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False fields (str, none_type): The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. @@ -7852,7 +9324,7 @@ def attachments_all( async_req (bool): execute request asynchronously Returns: - GetAttachmentsResponse + GetBankFeedAccountResponse If the method is called asynchronously, returns the request thread. """ @@ -7880,32 +9352,28 @@ def attachments_all( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['reference_type'] = \ - reference_type - kwargs['reference_id'] = \ - reference_id - return self.attachments_all_endpoint.call_with_http_info(**kwargs) + kwargs['id'] = \ + id + return self.bank_feed_accounts_one_endpoint.call_with_http_info(**kwargs) - def attachments_delete( + def bank_feed_accounts_update( self, - reference_type, - reference_id, id, + bank_feed_account, **kwargs ): - """Delete Attachment # noqa: E501 + """Update Bank Feed Account # noqa: E501 - Delete Attachment # noqa: E501 + Update Bank Feed Account # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.attachments_delete(reference_type, reference_id, id, async_req=True) + >>> thread = api.bank_feed_accounts_update(id, bank_feed_account, async_req=True) >>> result = thread.get() Args: - reference_type (AttachmentReferenceType): The reference type of the document. - reference_id (str): The reference id of the object to retrieve. id (str): ID of the record you are acting upon. + bank_feed_account (BankFeedAccount): Keyword Args: consumer_id (str): ID of the consumer which you want to get or push data from. [optional] @@ -7940,7 +9408,7 @@ def attachments_delete( async_req (bool): execute request asynchronously Returns: - DeleteAttachmentResponse + UpdateBankFeedAccountResponse If the method is called asynchronously, returns the request thread. """ @@ -7968,40 +9436,197 @@ def attachments_delete( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['reference_type'] = \ - reference_type - kwargs['reference_id'] = \ - reference_id kwargs['id'] = \ id - return self.attachments_delete_endpoint.call_with_http_info(**kwargs) + kwargs['bank_feed_account'] = \ + bank_feed_account + return self.bank_feed_accounts_update_endpoint.call_with_http_info(**kwargs) - def attachments_download( + def bank_feed_statements_add( + self, + bank_feed_statement, + **kwargs + ): + """Create Bank Feed Statement # noqa: E501 + + Create Bank Feed Statement # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.bank_feed_statements_add(bank_feed_statement, async_req=True) + >>> result = thread.get() + + Args: + bank_feed_statement (BankFeedStatement): + + Keyword Args: + raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False + consumer_id (str): ID of the consumer which you want to get or push data from. [optional] + app_id (str): The ID of your Unify application. [optional] + service_id (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] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + async_req (bool): execute request asynchronously + + Returns: + CreateBankFeedStatementResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + kwargs['bank_feed_statement'] = \ + bank_feed_statement + return self.bank_feed_statements_add_endpoint.call_with_http_info(**kwargs) + + def bank_feed_statements_all( + self, + **kwargs + ): + """List Bank Feed Statements # noqa: E501 + + List Bank Feed Statements # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.bank_feed_statements_all(async_req=True) + >>> result = thread.get() + + + Keyword Args: + raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False + consumer_id (str): ID of the consumer which you want to get or push data from. [optional] + app_id (str): The ID of your Unify application. [optional] + service_id (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] + cursor (str, none_type): Cursor to start from. You can find cursors for next/previous pages in the meta.cursors property of the response.. [optional] + limit (int): Number of results to return. Minimum 1, Maximum 200, Default 20. [optional] if omitted the server will use the default value of 20 + pass_through (PassThroughQuery): Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads. [optional] + fields (str, none_type): The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded.. [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): timeout setting for this request. If + one number provided, it will be total request timeout. It can also + be a pair (tuple) of (connection, read) timeouts. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _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) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + async_req (bool): execute request asynchronously + + Returns: + GetBankFeedStatementsResponse + If the method is called asynchronously, returns the request + thread. + """ + kwargs['async_req'] = kwargs.get( + 'async_req', False + ) + kwargs['_return_http_data_only'] = kwargs.get( + '_return_http_data_only', True + ) + kwargs['_preload_content'] = kwargs.get( + '_preload_content', True + ) + kwargs['_request_timeout'] = kwargs.get( + '_request_timeout', None + ) + kwargs['_check_input_type'] = kwargs.get( + '_check_input_type', True + ) + kwargs['_check_return_type'] = kwargs.get( + '_check_return_type', True + ) + kwargs['_spec_property_naming'] = kwargs.get( + '_spec_property_naming', False + ) + kwargs['_content_type'] = kwargs.get( + '_content_type') + kwargs['_host_index'] = kwargs.get('_host_index') + return self.bank_feed_statements_all_endpoint.call_with_http_info(**kwargs) + + def bank_feed_statements_delete( self, - reference_type, - reference_id, id, **kwargs ): - """Download Attachment # noqa: E501 + """Delete Bank Feed Statement # noqa: E501 - Download Attachment # noqa: E501 + Delete Bank Feed Statement # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.attachments_download(reference_type, reference_id, id, async_req=True) + >>> thread = api.bank_feed_statements_delete(id, async_req=True) >>> result = thread.get() Args: - reference_type (AttachmentReferenceType): The reference type of the document. - reference_id (str): The reference id of the object to retrieve. id (str): ID of the record you are acting upon. Keyword Args: consumer_id (str): ID of the consumer which you want to get or push data from. [optional] app_id (str): The ID of your Unify application. [optional] service_id (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] - fields (str, none_type): The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.

Example: `fields=name,email,addresses.city`

In the example above, the response will only include the fields \"name\", \"email\" and \"addresses.city\". If any other fields are available, they will be excluded.. [optional] + raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -8030,7 +9655,7 @@ def attachments_download( async_req (bool): execute request asynchronously Returns: - file_type + DeleteBankFeedStatementResponse If the method is called asynchronously, returns the request thread. """ @@ -8058,33 +9683,25 @@ def attachments_download( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['reference_type'] = \ - reference_type - kwargs['reference_id'] = \ - reference_id kwargs['id'] = \ id - return self.attachments_download_endpoint.call_with_http_info(**kwargs) + return self.bank_feed_statements_delete_endpoint.call_with_http_info(**kwargs) - def attachments_one( + def bank_feed_statements_one( self, - reference_type, - reference_id, id, **kwargs ): - """Get Attachment # noqa: E501 + """Get Bank Feed Statement # noqa: E501 - Get Attachment # noqa: E501 + Get Bank Feed Statement # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.attachments_one(reference_type, reference_id, id, async_req=True) + >>> thread = api.bank_feed_statements_one(id, async_req=True) >>> result = thread.get() Args: - reference_type (AttachmentReferenceType): The reference type of the document. - reference_id (str): The reference id of the object to retrieve. id (str): ID of the record you are acting upon. Keyword Args: @@ -8121,7 +9738,7 @@ def attachments_one( async_req (bool): execute request asynchronously Returns: - GetAttachmentResponse + GetBankFeedStatementResponse If the method is called asynchronously, returns the request thread. """ @@ -8149,34 +9766,33 @@ def attachments_one( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') - kwargs['reference_type'] = \ - reference_type - kwargs['reference_id'] = \ - reference_id kwargs['id'] = \ id - return self.attachments_one_endpoint.call_with_http_info(**kwargs) + return self.bank_feed_statements_one_endpoint.call_with_http_info(**kwargs) - def balance_sheet_one( + def bank_feed_statements_update( self, + id, + bank_feed_statement, **kwargs ): - """Get BalanceSheet # noqa: E501 + """Update Bank Feed Statement # noqa: E501 - Get BalanceSheet # noqa: E501 + Update Bank Feed Statement # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.balance_sheet_one(async_req=True) + >>> thread = api.bank_feed_statements_update(id, bank_feed_statement, async_req=True) >>> result = thread.get() + Args: + id (str): ID of the record you are acting upon. + bank_feed_statement (BankFeedStatement): Keyword Args: consumer_id (str): ID of the consumer which you want to get or push data from. [optional] app_id (str): The ID of your Unify application. [optional] service_id (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] - pass_through (PassThroughQuery): Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads. [optional] - filter (BalanceSheetFilter): Apply filters. [optional] raw (bool): Include raw response. Mostly used for debugging purposes. [optional] if omitted the server will use the default value of False _return_http_data_only (bool): response data without head status code and headers. Default is True. @@ -8206,7 +9822,7 @@ def balance_sheet_one( async_req (bool): execute request asynchronously Returns: - GetBalanceSheetResponse + UpdateBankFeedStatementResponse If the method is called asynchronously, returns the request thread. """ @@ -8234,7 +9850,11 @@ def balance_sheet_one( kwargs['_content_type'] = kwargs.get( '_content_type') kwargs['_host_index'] = kwargs.get('_host_index') - return self.balance_sheet_one_endpoint.call_with_http_info(**kwargs) + kwargs['id'] = \ + id + kwargs['bank_feed_statement'] = \ + bank_feed_statement + return self.bank_feed_statements_update_endpoint.call_with_http_info(**kwargs) def bill_payments_add( self, diff --git a/src/apideck/model/bank_feed_account.py b/src/apideck/model/bank_feed_account.py new file mode 100644 index 000000000..f224f0aa9 --- /dev/null +++ b/src/apideck/model/bank_feed_account.py @@ -0,0 +1,333 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.currency import Currency + from apideck.model.custom_field import CustomField + globals()['Currency'] = Currency + globals()['CustomField'] = CustomField + + +class BankFeedAccount(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 = { + ('bank_account_type',): { + 'BANK': "bank", + 'CREDIT_CARD': "credit_card", + }, + ('feed_status',): { + 'PENDING': "pending", + 'REJECTED': "rejected", + }, + } + + validations = { + ('country',): { + 'max_length': 2, + 'min_length': 2, + }, + } + + 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 { + 'id': (str,), # noqa: E501 + 'bank_account_type': (str,), # noqa: E501 + 'source_account_id': (str,), # noqa: E501 + 'target_account_id': (str,), # noqa: E501 + 'target_account_name': (str,), # noqa: E501 + 'target_account_number': (str,), # noqa: E501 + 'currency': (Currency,), # noqa: E501 + 'feed_status': (str,), # noqa: E501 + 'country': (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 + 'created_at': (datetime, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'updated_by': (str, none_type,), # noqa: E501 + 'created_by': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'bank_account_type': 'bank_account_type', # noqa: E501 + 'source_account_id': 'source_account_id', # noqa: E501 + 'target_account_id': 'target_account_id', # noqa: E501 + 'target_account_name': 'target_account_name', # noqa: E501 + 'target_account_number': 'target_account_number', # noqa: E501 + 'currency': 'currency', # noqa: E501 + 'feed_status': 'feed_status', # noqa: E501 + 'country': 'country', # noqa: E501 + 'custom_fields': 'custom_fields', # noqa: E501 + 'custom_mappings': 'custom_mappings', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'updated_by': 'updated_by', # noqa: E501 + 'created_by': 'created_by', # noqa: E501 + } + + read_only_vars = { + 'id', # noqa: E501 + 'custom_mappings', # noqa: E501 + 'created_at', # noqa: E501 + 'updated_at', # noqa: E501 + 'updated_by', # noqa: E501 + 'created_by', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 + """BankFeedAccount - a model defined in OpenAPI + + Args: + id (str): A unique identifier for an object. + + 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,) + bank_account_type (str): Type of the bank account.. [optional] # noqa: E501 + source_account_id (str): The source account's unique identifier.. [optional] # noqa: E501 + target_account_id (str): The target account's unique identifier in the accounting connector.. [optional] # noqa: E501 + target_account_name (str): Name associated with the target account.. [optional] # noqa: E501 + target_account_number (str): Account number of the destination bank account.. [optional] # noqa: E501 + currency (Currency): [optional] # noqa: E501 + feed_status (str): Current status of the bank feed.. [optional] # noqa: E501 + country (str, none_type): Country code according to ISO 3166-1 alpha-2.. [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 + created_at (datetime, none_type): The date and time when the object was created.. [optional] # noqa: E501 + updated_at (datetime, none_type): The date and time when the object was last updated.. [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 + """ + + _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__,) + + self.id = id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + 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 + """BankFeedAccount - 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,) + bank_account_type (str): Type of the bank account.. [optional] # noqa: E501 + source_account_id (str): The source account's unique identifier.. [optional] # noqa: E501 + target_account_id (str): The target account's unique identifier in the accounting connector.. [optional] # noqa: E501 + target_account_name (str): Name associated with the target account.. [optional] # noqa: E501 + target_account_number (str): Account number of the destination bank account.. [optional] # noqa: E501 + currency (Currency): [optional] # noqa: E501 + feed_status (str): Current status of the bank feed.. [optional] # noqa: E501 + country (str, none_type): Country code according to ISO 3166-1 alpha-2.. [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 + created_at (datetime, none_type): The date and time when the object was created.. [optional] # noqa: E501 + updated_at (datetime, none_type): The date and time when the object was last updated.. [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 + """ + + _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/bank_feed_statement.py b/src/apideck/model/bank_feed_statement.py new file mode 100644 index 000000000..4f1a4c07e --- /dev/null +++ b/src/apideck/model/bank_feed_statement.py @@ -0,0 +1,321 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.bank_feed_statement_transactions import BankFeedStatementTransactions + from apideck.model.credit_or_debit import CreditOrDebit + globals()['BankFeedStatementTransactions'] = BankFeedStatementTransactions + globals()['CreditOrDebit'] = CreditOrDebit + + +class BankFeedStatement(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 = { + ('status',): { + 'PENDING': "pending", + 'REJECTED': "rejected", + 'SUCCESS': "success", + }, + } + + 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 { + 'id': (str,), # noqa: E501 + 'bank_feed_account_id': (str,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'start_date': (datetime,), # noqa: E501 + 'end_date': (datetime,), # noqa: E501 + 'start_balance': (float,), # noqa: E501 + 'start_balance_credit_or_debit': (CreditOrDebit,), # noqa: E501 + 'end_balance': (float,), # noqa: E501 + 'end_balance_credit_or_debit': (CreditOrDebit,), # noqa: E501 + 'transactions': ([BankFeedStatementTransactions],), # noqa: E501 + 'created_at': (datetime, none_type,), # noqa: E501 + 'created_by': (str, none_type,), # noqa: E501 + 'updated_at': (datetime, none_type,), # noqa: E501 + 'updated_by': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'id': 'id', # noqa: E501 + 'bank_feed_account_id': 'bank_feed_account_id', # noqa: E501 + 'status': 'status', # noqa: E501 + 'start_date': 'start_date', # noqa: E501 + 'end_date': 'end_date', # noqa: E501 + 'start_balance': 'start_balance', # noqa: E501 + 'start_balance_credit_or_debit': 'start_balance_credit_or_debit', # noqa: E501 + 'end_balance': 'end_balance', # noqa: E501 + 'end_balance_credit_or_debit': 'end_balance_credit_or_debit', # noqa: E501 + 'transactions': 'transactions', # noqa: E501 + 'created_at': 'created_at', # noqa: E501 + 'created_by': 'created_by', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'updated_by': 'updated_by', # noqa: E501 + } + + read_only_vars = { + 'id', # noqa: E501 + 'created_at', # noqa: E501 + 'created_by', # noqa: E501 + 'updated_at', # noqa: E501 + 'updated_by', # noqa: E501 + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501 + """BankFeedStatement - a model defined in OpenAPI + + Args: + id (str): A unique identifier for an object. + + 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,) + bank_feed_account_id (str): The ID of the bank feed account this statement belongs to.. [optional] # noqa: E501 + status (str): The current status of the bank feed statement.. [optional] # noqa: E501 + start_date (datetime): Start date of the bank feed statement.. [optional] # noqa: E501 + end_date (datetime): End date of the bank feed statement.. [optional] # noqa: E501 + start_balance (float): Balance amount at the start of the period.. [optional] # noqa: E501 + start_balance_credit_or_debit (CreditOrDebit): [optional] # noqa: E501 + end_balance (float): Balance amount at the end of the period.. [optional] # noqa: E501 + end_balance_credit_or_debit (CreditOrDebit): [optional] # noqa: E501 + transactions ([BankFeedStatementTransactions]): List of transactions in the bank feed statement.. [optional] # noqa: E501 + created_at (datetime, none_type): The date and time when the object was created.. [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 + updated_by (str, none_type): The user who last updated the object.. [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__,) + + self.id = id + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + 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 + """BankFeedStatement - 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,) + bank_feed_account_id (str): The ID of the bank feed account this statement belongs to.. [optional] # noqa: E501 + status (str): The current status of the bank feed statement.. [optional] # noqa: E501 + start_date (datetime): Start date of the bank feed statement.. [optional] # noqa: E501 + end_date (datetime): End date of the bank feed statement.. [optional] # noqa: E501 + start_balance (float): Balance amount at the start of the period.. [optional] # noqa: E501 + start_balance_credit_or_debit (CreditOrDebit): [optional] # noqa: E501 + end_balance (float): Balance amount at the end of the period.. [optional] # noqa: E501 + end_balance_credit_or_debit (CreditOrDebit): [optional] # noqa: E501 + transactions ([BankFeedStatementTransactions]): List of transactions in the bank feed statement.. [optional] # noqa: E501 + created_at (datetime, none_type): The date and time when the object was created.. [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 + updated_by (str, none_type): The user who last updated the object.. [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/bank_feed_statement_transactions.py b/src/apideck/model/bank_feed_statement_transactions.py new file mode 100644 index 000000000..374a06f45 --- /dev/null +++ b/src/apideck/model/bank_feed_statement_transactions.py @@ -0,0 +1,310 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.credit_or_debit import CreditOrDebit + globals()['CreditOrDebit'] = CreditOrDebit + + +class BankFeedStatementTransactions(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 = { + ('transaction_type',): { + 'CREDIT': "credit", + 'DEBIT': "debit", + 'DEPOSIT': "deposit", + 'TRANSFER': "transfer", + 'PAYMENT': "payment", + 'OTHER': "other", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _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 { + 'posted_date': (datetime,), # noqa: E501 + 'amount': (float,), # noqa: E501 + 'credit_or_debit': (CreditOrDebit,), # noqa: E501 + 'source_transaction_id': (str,), # noqa: E501 + 'description': (str,), # noqa: E501 + 'counterparty': (str,), # noqa: E501 + 'reference': (str,), # noqa: E501 + 'transaction_type': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'posted_date': 'posted_date', # noqa: E501 + 'amount': 'amount', # noqa: E501 + 'credit_or_debit': 'credit_or_debit', # noqa: E501 + 'source_transaction_id': 'source_transaction_id', # noqa: E501 + 'description': 'description', # noqa: E501 + 'counterparty': 'counterparty', # noqa: E501 + 'reference': 'reference', # noqa: E501 + 'transaction_type': 'transaction_type', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, posted_date, amount, credit_or_debit, source_transaction_id, *args, **kwargs): # noqa: E501 + """BankFeedStatementTransactions - a model defined in OpenAPI + + Args: + posted_date (datetime): The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD + amount (float): The amount of the transaction. + credit_or_debit (CreditOrDebit): + source_transaction_id (str): The ID of the source transaction. + + 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,) + description (str): A description of the transaction.. [optional] # noqa: E501 + counterparty (str): The counterparty of the transaction.. [optional] # noqa: E501 + reference (str): The reference of the transaction.. [optional] # noqa: E501 + transaction_type (str): Type of transaction.. [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__,) + + self.posted_date = posted_date + self.amount = amount + self.credit_or_debit = credit_or_debit + self.source_transaction_id = source_transaction_id + 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, posted_date, amount, credit_or_debit, source_transaction_id, *args, **kwargs): # noqa: E501 + """BankFeedStatementTransactions - a model defined in OpenAPI + + Args: + posted_date (datetime): The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD + amount (float): The amount of the transaction. + credit_or_debit (CreditOrDebit): + source_transaction_id (str): The ID of the source transaction. + + 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,) + description (str): A description of the transaction.. [optional] # noqa: E501 + counterparty (str): The counterparty of the transaction.. [optional] # noqa: E501 + reference (str): The reference of the transaction.. [optional] # noqa: E501 + transaction_type (str): Type of transaction.. [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__,) + + self.posted_date = posted_date + self.amount = amount + self.credit_or_debit = credit_or_debit + self.source_transaction_id = source_transaction_id + 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/create_bank_feed_account_response.py b/src/apideck/model/create_bank_feed_account_response.py new file mode 100644 index 000000000..1206548ec --- /dev/null +++ b/src/apideck/model/create_bank_feed_account_response.py @@ -0,0 +1,304 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.raw import Raw + from apideck.model.unified_id import UnifiedId + globals()['Raw'] = Raw + globals()['UnifiedId'] = UnifiedId + + +class CreateBankFeedAccountResponse(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 = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _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 { + 'status_code': (int,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'service': (str,), # noqa: E501 + 'resource': (str,), # noqa: E501 + 'operation': (str,), # noqa: E501 + 'data': (UnifiedId,), # noqa: E501 + 'raw': (Raw,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status_code': 'status_code', # noqa: E501 + 'status': 'status', # noqa: E501 + 'service': 'service', # noqa: E501 + 'resource': 'resource', # noqa: E501 + 'operation': 'operation', # noqa: E501 + 'data': 'data', # noqa: E501 + 'raw': '_raw', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """CreateBankFeedAccountResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (UnifiedId): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """CreateBankFeedAccountResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (UnifiedId): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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/create_bank_feed_statement_response.py b/src/apideck/model/create_bank_feed_statement_response.py new file mode 100644 index 000000000..732de151a --- /dev/null +++ b/src/apideck/model/create_bank_feed_statement_response.py @@ -0,0 +1,304 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.raw import Raw + from apideck.model.unified_id import UnifiedId + globals()['Raw'] = Raw + globals()['UnifiedId'] = UnifiedId + + +class CreateBankFeedStatementResponse(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 = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _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 { + 'status_code': (int,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'service': (str,), # noqa: E501 + 'resource': (str,), # noqa: E501 + 'operation': (str,), # noqa: E501 + 'data': (UnifiedId,), # noqa: E501 + 'raw': (Raw,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status_code': 'status_code', # noqa: E501 + 'status': 'status', # noqa: E501 + 'service': 'service', # noqa: E501 + 'resource': 'resource', # noqa: E501 + 'operation': 'operation', # noqa: E501 + 'data': 'data', # noqa: E501 + 'raw': '_raw', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """CreateBankFeedStatementResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (UnifiedId): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """CreateBankFeedStatementResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (UnifiedId): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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/credit_or_debit.py b/src/apideck/model/credit_or_debit.py new file mode 100644 index 000000000..0f605f2ca --- /dev/null +++ b/src/apideck/model/credit_or_debit.py @@ -0,0 +1,283 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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 + + + +class CreditOrDebit(ModelSimple): + """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. + 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 = { + ('value',): { + 'CREDIT': "credit", + 'DEBIT': "debit", + }, + } + + 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. + """ + return { + 'value': (str,), + } + + @cached_property + def discriminator(): + return None + + + attribute_map = {} + + read_only_vars = set() + + _composed_schemas = None + + 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): + """CreditOrDebit - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str): Whether the amount is a credit or debit.., must be one of ["credit", "debit", ] # noqa: E501 + + Keyword Args: + value (str): Whether the amount is a credit or debit.., must be one of ["credit", "debit", ] # noqa: E501 + _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,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _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__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): + """CreditOrDebit - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str): Whether the amount is a credit or debit.., must be one of ["credit", "debit", ] # noqa: E501 + + Keyword Args: + value (str): Whether the amount is a credit or debit.., must be one of ["credit", "debit", ] # noqa: E501 + _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,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _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__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + return self diff --git a/src/apideck/model/delete_bank_feed_account_response.py b/src/apideck/model/delete_bank_feed_account_response.py new file mode 100644 index 000000000..e4eab8297 --- /dev/null +++ b/src/apideck/model/delete_bank_feed_account_response.py @@ -0,0 +1,304 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.raw import Raw + from apideck.model.unified_id import UnifiedId + globals()['Raw'] = Raw + globals()['UnifiedId'] = UnifiedId + + +class DeleteBankFeedAccountResponse(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 = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _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 { + 'status_code': (int,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'service': (str,), # noqa: E501 + 'resource': (str,), # noqa: E501 + 'operation': (str,), # noqa: E501 + 'data': (UnifiedId,), # noqa: E501 + 'raw': (Raw,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status_code': 'status_code', # noqa: E501 + 'status': 'status', # noqa: E501 + 'service': 'service', # noqa: E501 + 'resource': 'resource', # noqa: E501 + 'operation': 'operation', # noqa: E501 + 'data': 'data', # noqa: E501 + 'raw': '_raw', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """DeleteBankFeedAccountResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (UnifiedId): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """DeleteBankFeedAccountResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (UnifiedId): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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/delete_bank_feed_statement_response.py b/src/apideck/model/delete_bank_feed_statement_response.py new file mode 100644 index 000000000..f09277c26 --- /dev/null +++ b/src/apideck/model/delete_bank_feed_statement_response.py @@ -0,0 +1,304 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.raw import Raw + from apideck.model.unified_id import UnifiedId + globals()['Raw'] = Raw + globals()['UnifiedId'] = UnifiedId + + +class DeleteBankFeedStatementResponse(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 = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _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 { + 'status_code': (int,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'service': (str,), # noqa: E501 + 'resource': (str,), # noqa: E501 + 'operation': (str,), # noqa: E501 + 'data': (UnifiedId,), # noqa: E501 + 'raw': (Raw,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status_code': 'status_code', # noqa: E501 + 'status': 'status', # noqa: E501 + 'service': 'service', # noqa: E501 + 'resource': 'resource', # noqa: E501 + 'operation': 'operation', # noqa: E501 + 'data': 'data', # noqa: E501 + 'raw': '_raw', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """DeleteBankFeedStatementResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (UnifiedId): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """DeleteBankFeedStatementResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (UnifiedId): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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/get_bank_feed_account_response.py b/src/apideck/model/get_bank_feed_account_response.py new file mode 100644 index 000000000..5daf5de2e --- /dev/null +++ b/src/apideck/model/get_bank_feed_account_response.py @@ -0,0 +1,304 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.bank_feed_account import BankFeedAccount + from apideck.model.raw import Raw + globals()['BankFeedAccount'] = BankFeedAccount + globals()['Raw'] = Raw + + +class GetBankFeedAccountResponse(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 = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _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 { + 'status_code': (int,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'service': (str,), # noqa: E501 + 'resource': (str,), # noqa: E501 + 'operation': (str,), # noqa: E501 + 'data': (BankFeedAccount,), # noqa: E501 + 'raw': (Raw,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status_code': 'status_code', # noqa: E501 + 'status': 'status', # noqa: E501 + 'service': 'service', # noqa: E501 + 'resource': 'resource', # noqa: E501 + 'operation': 'operation', # noqa: E501 + 'data': 'data', # noqa: E501 + 'raw': '_raw', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """GetBankFeedAccountResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (BankFeedAccount): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """GetBankFeedAccountResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (BankFeedAccount): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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/get_bank_feed_accounts_response.py b/src/apideck/model/get_bank_feed_accounts_response.py new file mode 100644 index 000000000..4d1bb507f --- /dev/null +++ b/src/apideck/model/get_bank_feed_accounts_response.py @@ -0,0 +1,316 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.bank_feed_account import BankFeedAccount + from apideck.model.links import Links + from apideck.model.meta import Meta + from apideck.model.raw import Raw + globals()['BankFeedAccount'] = BankFeedAccount + globals()['Links'] = Links + globals()['Meta'] = Meta + globals()['Raw'] = Raw + + +class GetBankFeedAccountsResponse(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 = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _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 { + 'status_code': (int,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'service': (str,), # noqa: E501 + 'resource': (str,), # noqa: E501 + 'operation': (str,), # noqa: E501 + 'data': ([BankFeedAccount],), # noqa: E501 + 'meta': (Meta,), # noqa: E501 + 'links': (Links,), # noqa: E501 + 'raw': (Raw,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status_code': 'status_code', # noqa: E501 + 'status': 'status', # noqa: E501 + 'service': 'service', # noqa: E501 + 'resource': 'resource', # noqa: E501 + 'operation': 'operation', # noqa: E501 + 'data': 'data', # noqa: E501 + 'meta': 'meta', # noqa: E501 + 'links': 'links', # noqa: E501 + 'raw': '_raw', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """GetBankFeedAccountsResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data ([BankFeedAccount]): + + 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,) + meta (Meta): [optional] # noqa: E501 + links (Links): [optional] # noqa: E501 + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """GetBankFeedAccountsResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data ([BankFeedAccount]): + + 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,) + meta (Meta): [optional] # noqa: E501 + links (Links): [optional] # noqa: E501 + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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/get_bank_feed_statement_response.py b/src/apideck/model/get_bank_feed_statement_response.py new file mode 100644 index 000000000..6916fe92d --- /dev/null +++ b/src/apideck/model/get_bank_feed_statement_response.py @@ -0,0 +1,304 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.bank_feed_statement import BankFeedStatement + from apideck.model.raw import Raw + globals()['BankFeedStatement'] = BankFeedStatement + globals()['Raw'] = Raw + + +class GetBankFeedStatementResponse(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 = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _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 { + 'status_code': (int,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'service': (str,), # noqa: E501 + 'resource': (str,), # noqa: E501 + 'operation': (str,), # noqa: E501 + 'data': (BankFeedStatement,), # noqa: E501 + 'raw': (Raw,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status_code': 'status_code', # noqa: E501 + 'status': 'status', # noqa: E501 + 'service': 'service', # noqa: E501 + 'resource': 'resource', # noqa: E501 + 'operation': 'operation', # noqa: E501 + 'data': 'data', # noqa: E501 + 'raw': '_raw', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """GetBankFeedStatementResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (BankFeedStatement): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """GetBankFeedStatementResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (BankFeedStatement): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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/get_bank_feed_statements_response.py b/src/apideck/model/get_bank_feed_statements_response.py new file mode 100644 index 000000000..a0800c2e0 --- /dev/null +++ b/src/apideck/model/get_bank_feed_statements_response.py @@ -0,0 +1,316 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.bank_feed_statement import BankFeedStatement + from apideck.model.links import Links + from apideck.model.meta import Meta + from apideck.model.raw import Raw + globals()['BankFeedStatement'] = BankFeedStatement + globals()['Links'] = Links + globals()['Meta'] = Meta + globals()['Raw'] = Raw + + +class GetBankFeedStatementsResponse(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 = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _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 { + 'status_code': (int,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'service': (str,), # noqa: E501 + 'resource': (str,), # noqa: E501 + 'operation': (str,), # noqa: E501 + 'data': ([BankFeedStatement],), # noqa: E501 + 'meta': (Meta,), # noqa: E501 + 'links': (Links,), # noqa: E501 + 'raw': (Raw,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status_code': 'status_code', # noqa: E501 + 'status': 'status', # noqa: E501 + 'service': 'service', # noqa: E501 + 'resource': 'resource', # noqa: E501 + 'operation': 'operation', # noqa: E501 + 'data': 'data', # noqa: E501 + 'meta': 'meta', # noqa: E501 + 'links': 'links', # noqa: E501 + 'raw': '_raw', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """GetBankFeedStatementsResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data ([BankFeedStatement]): + + 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,) + meta (Meta): [optional] # noqa: E501 + links (Links): [optional] # noqa: E501 + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """GetBankFeedStatementsResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data ([BankFeedStatement]): + + 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,) + meta (Meta): [optional] # noqa: E501 + links (Links): [optional] # noqa: E501 + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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/update_bank_feed_account_response.py b/src/apideck/model/update_bank_feed_account_response.py new file mode 100644 index 000000000..3194f5433 --- /dev/null +++ b/src/apideck/model/update_bank_feed_account_response.py @@ -0,0 +1,304 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.raw import Raw + from apideck.model.unified_id import UnifiedId + globals()['Raw'] = Raw + globals()['UnifiedId'] = UnifiedId + + +class UpdateBankFeedAccountResponse(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 = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _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 { + 'status_code': (int,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'service': (str,), # noqa: E501 + 'resource': (str,), # noqa: E501 + 'operation': (str,), # noqa: E501 + 'data': (UnifiedId,), # noqa: E501 + 'raw': (Raw,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status_code': 'status_code', # noqa: E501 + 'status': 'status', # noqa: E501 + 'service': 'service', # noqa: E501 + 'resource': 'resource', # noqa: E501 + 'operation': 'operation', # noqa: E501 + 'data': 'data', # noqa: E501 + 'raw': '_raw', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """UpdateBankFeedAccountResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (UnifiedId): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """UpdateBankFeedAccountResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (UnifiedId): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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/update_bank_feed_statement_response.py b/src/apideck/model/update_bank_feed_statement_response.py new file mode 100644 index 000000000..ee1d34d81 --- /dev/null +++ b/src/apideck/model/update_bank_feed_statement_response.py @@ -0,0 +1,304 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + 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.raw import Raw + from apideck.model.unified_id import UnifiedId + globals()['Raw'] = Raw + globals()['UnifiedId'] = UnifiedId + + +class UpdateBankFeedStatementResponse(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 = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _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 { + 'status_code': (int,), # noqa: E501 + 'status': (str,), # noqa: E501 + 'service': (str,), # noqa: E501 + 'resource': (str,), # noqa: E501 + 'operation': (str,), # noqa: E501 + 'data': (UnifiedId,), # noqa: E501 + 'raw': (Raw,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'status_code': 'status_code', # noqa: E501 + 'status': 'status', # noqa: E501 + 'service': 'service', # noqa: E501 + 'resource': 'resource', # noqa: E501 + 'operation': 'operation', # noqa: E501 + 'data': 'data', # noqa: E501 + 'raw': '_raw', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """UpdateBankFeedStatementResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (UnifiedId): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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, status_code, status, service, resource, operation, data, *args, **kwargs): # noqa: E501 + """UpdateBankFeedStatementResponse - a model defined in OpenAPI + + Args: + status_code (int): HTTP Response Status Code + status (str): HTTP Response Status + service (str): Apideck ID of service provider + resource (str): Unified API resource name + operation (str): Operation performed + data (UnifiedId): + + 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,) + raw (Raw): [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__,) + + self.status_code = status_code + self.status = status + self.service = service + self.resource = resource + self.operation = operation + self.data = data + 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/models/__init__.py b/src/apideck/models/__init__.py index d8b6f9029..c6dd0b6ff 100644 --- a/src/apideck/models/__init__.py +++ b/src/apideck/models/__init__.py @@ -59,6 +59,9 @@ from apideck.model.balance_sheet_reports import BalanceSheetReports from apideck.model.balance_sheet_uncategorized_items_account import BalanceSheetUncategorizedItemsAccount from apideck.model.bank_account import BankAccount +from apideck.model.bank_feed_account import BankFeedAccount +from apideck.model.bank_feed_statement import BankFeedStatement +from apideck.model.bank_feed_statement_transactions import BankFeedStatementTransactions from apideck.model.benefit import Benefit from apideck.model.bill import Bill from apideck.model.bill_line_item import BillLineItem @@ -117,6 +120,8 @@ from apideck.model.create_application_response import CreateApplicationResponse from apideck.model.create_attachment_request import CreateAttachmentRequest from apideck.model.create_attachment_response import CreateAttachmentResponse +from apideck.model.create_bank_feed_account_response import CreateBankFeedAccountResponse +from apideck.model.create_bank_feed_statement_response import CreateBankFeedStatementResponse from apideck.model.create_bill_payment_response import CreateBillPaymentResponse from apideck.model.create_bill_response import CreateBillResponse from apideck.model.create_callback_state import CreateCallbackState @@ -182,6 +187,7 @@ from apideck.model.credit_note import CreditNote from apideck.model.credit_notes_filter import CreditNotesFilter from apideck.model.credit_notes_sort import CreditNotesSort +from apideck.model.credit_or_debit import CreditOrDebit from apideck.model.crm_event_type import CrmEventType from apideck.model.currency import Currency from apideck.model.custom_field import CustomField @@ -197,6 +203,8 @@ from apideck.model.delete_applicant_response import DeleteApplicantResponse from apideck.model.delete_application_response import DeleteApplicationResponse from apideck.model.delete_attachment_response import DeleteAttachmentResponse +from apideck.model.delete_bank_feed_account_response import DeleteBankFeedAccountResponse +from apideck.model.delete_bank_feed_statement_response import DeleteBankFeedStatementResponse from apideck.model.delete_bill_payment_response import DeleteBillPaymentResponse from apideck.model.delete_bill_response import DeleteBillResponse from apideck.model.delete_comment_response import DeleteCommentResponse @@ -323,6 +331,10 @@ from apideck.model.get_attachment_response import GetAttachmentResponse from apideck.model.get_attachments_response import GetAttachmentsResponse from apideck.model.get_balance_sheet_response import GetBalanceSheetResponse +from apideck.model.get_bank_feed_account_response import GetBankFeedAccountResponse +from apideck.model.get_bank_feed_accounts_response import GetBankFeedAccountsResponse +from apideck.model.get_bank_feed_statement_response import GetBankFeedStatementResponse +from apideck.model.get_bank_feed_statements_response import GetBankFeedStatementsResponse from apideck.model.get_bill_payment_response import GetBillPaymentResponse from apideck.model.get_bill_payments_response import GetBillPaymentsResponse from apideck.model.get_bill_response import GetBillResponse @@ -642,6 +654,8 @@ from apideck.model.update_activity_response import UpdateActivityResponse from apideck.model.update_applicant_response import UpdateApplicantResponse from apideck.model.update_application_response import UpdateApplicationResponse +from apideck.model.update_bank_feed_account_response import UpdateBankFeedAccountResponse +from apideck.model.update_bank_feed_statement_response import UpdateBankFeedStatementResponse from apideck.model.update_bill_payment_response import UpdateBillPaymentResponse from apideck.model.update_bill_response import UpdateBillResponse from apideck.model.update_comment_response import UpdateCommentResponse diff --git a/src/test/test_accounting_api.py b/src/test/test_accounting_api.py index 060a36352..38835c3f5 100644 --- a/src/test/test_accounting_api.py +++ b/src/test/test_accounting_api.py @@ -73,6 +73,76 @@ def test_balance_sheet_one(self): """ pass + def test_bank_feed_accounts_add(self): + """Test case for bank_feed_accounts_add + + Create Bank Feed Account # noqa: E501 + """ + pass + + def test_bank_feed_accounts_all(self): + """Test case for bank_feed_accounts_all + + List Bank Feed Accounts # noqa: E501 + """ + pass + + def test_bank_feed_accounts_delete(self): + """Test case for bank_feed_accounts_delete + + Delete Bank Feed Account # noqa: E501 + """ + pass + + def test_bank_feed_accounts_one(self): + """Test case for bank_feed_accounts_one + + Get Bank Feed Account # noqa: E501 + """ + pass + + def test_bank_feed_accounts_update(self): + """Test case for bank_feed_accounts_update + + Update Bank Feed Account # noqa: E501 + """ + pass + + def test_bank_feed_statements_add(self): + """Test case for bank_feed_statements_add + + Create Bank Feed Statement # noqa: E501 + """ + pass + + def test_bank_feed_statements_all(self): + """Test case for bank_feed_statements_all + + List Bank Feed Statements # noqa: E501 + """ + pass + + def test_bank_feed_statements_delete(self): + """Test case for bank_feed_statements_delete + + Delete Bank Feed Statement # noqa: E501 + """ + pass + + def test_bank_feed_statements_one(self): + """Test case for bank_feed_statements_one + + Get Bank Feed Statement # noqa: E501 + """ + pass + + def test_bank_feed_statements_update(self): + """Test case for bank_feed_statements_update + + Update Bank Feed Statement # noqa: E501 + """ + pass + def test_bill_payments_add(self): """Test case for bill_payments_add diff --git a/src/test/test_bank_feed_account.py b/src/test/test_bank_feed_account.py new file mode 100644 index 000000000..35aeb3ebc --- /dev/null +++ b/src/test/test_bank_feed_account.py @@ -0,0 +1,40 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.currency import Currency +from apideck.model.custom_field import CustomField +globals()['Currency'] = Currency +globals()['CustomField'] = CustomField +from apideck.model.bank_feed_account import BankFeedAccount + + +class TestBankFeedAccount(unittest.TestCase): + """BankFeedAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBankFeedAccount(self): + """Test BankFeedAccount""" + # FIXME: construct object with mandatory attributes with example values + # model = BankFeedAccount() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_bank_feed_statement.py b/src/test/test_bank_feed_statement.py new file mode 100644 index 000000000..d190171ef --- /dev/null +++ b/src/test/test_bank_feed_statement.py @@ -0,0 +1,40 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.bank_feed_statement_transactions import BankFeedStatementTransactions +from apideck.model.credit_or_debit import CreditOrDebit +globals()['BankFeedStatementTransactions'] = BankFeedStatementTransactions +globals()['CreditOrDebit'] = CreditOrDebit +from apideck.model.bank_feed_statement import BankFeedStatement + + +class TestBankFeedStatement(unittest.TestCase): + """BankFeedStatement unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBankFeedStatement(self): + """Test BankFeedStatement""" + # FIXME: construct object with mandatory attributes with example values + # model = BankFeedStatement() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_bank_feed_statement_transactions.py b/src/test/test_bank_feed_statement_transactions.py new file mode 100644 index 000000000..c8d2687f3 --- /dev/null +++ b/src/test/test_bank_feed_statement_transactions.py @@ -0,0 +1,38 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.credit_or_debit import CreditOrDebit +globals()['CreditOrDebit'] = CreditOrDebit +from apideck.model.bank_feed_statement_transactions import BankFeedStatementTransactions + + +class TestBankFeedStatementTransactions(unittest.TestCase): + """BankFeedStatementTransactions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBankFeedStatementTransactions(self): + """Test BankFeedStatementTransactions""" + # FIXME: construct object with mandatory attributes with example values + # model = BankFeedStatementTransactions() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_create_bank_feed_account_response.py b/src/test/test_create_bank_feed_account_response.py new file mode 100644 index 000000000..be03617d2 --- /dev/null +++ b/src/test/test_create_bank_feed_account_response.py @@ -0,0 +1,40 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.raw import Raw +from apideck.model.unified_id import UnifiedId +globals()['Raw'] = Raw +globals()['UnifiedId'] = UnifiedId +from apideck.model.create_bank_feed_account_response import CreateBankFeedAccountResponse + + +class TestCreateBankFeedAccountResponse(unittest.TestCase): + """CreateBankFeedAccountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateBankFeedAccountResponse(self): + """Test CreateBankFeedAccountResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = CreateBankFeedAccountResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_create_bank_feed_statement_response.py b/src/test/test_create_bank_feed_statement_response.py new file mode 100644 index 000000000..d8765f530 --- /dev/null +++ b/src/test/test_create_bank_feed_statement_response.py @@ -0,0 +1,40 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.raw import Raw +from apideck.model.unified_id import UnifiedId +globals()['Raw'] = Raw +globals()['UnifiedId'] = UnifiedId +from apideck.model.create_bank_feed_statement_response import CreateBankFeedStatementResponse + + +class TestCreateBankFeedStatementResponse(unittest.TestCase): + """CreateBankFeedStatementResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateBankFeedStatementResponse(self): + """Test CreateBankFeedStatementResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = CreateBankFeedStatementResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_credit_or_debit.py b/src/test/test_credit_or_debit.py new file mode 100644 index 000000000..d1d24a1f9 --- /dev/null +++ b/src/test/test_credit_or_debit.py @@ -0,0 +1,36 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.credit_or_debit import CreditOrDebit + + +class TestCreditOrDebit(unittest.TestCase): + """CreditOrDebit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreditOrDebit(self): + """Test CreditOrDebit""" + # FIXME: construct object with mandatory attributes with example values + # model = CreditOrDebit() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_delete_bank_feed_account_response.py b/src/test/test_delete_bank_feed_account_response.py new file mode 100644 index 000000000..7c70a70be --- /dev/null +++ b/src/test/test_delete_bank_feed_account_response.py @@ -0,0 +1,40 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.raw import Raw +from apideck.model.unified_id import UnifiedId +globals()['Raw'] = Raw +globals()['UnifiedId'] = UnifiedId +from apideck.model.delete_bank_feed_account_response import DeleteBankFeedAccountResponse + + +class TestDeleteBankFeedAccountResponse(unittest.TestCase): + """DeleteBankFeedAccountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeleteBankFeedAccountResponse(self): + """Test DeleteBankFeedAccountResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = DeleteBankFeedAccountResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_delete_bank_feed_statement_response.py b/src/test/test_delete_bank_feed_statement_response.py new file mode 100644 index 000000000..e5aa81f0b --- /dev/null +++ b/src/test/test_delete_bank_feed_statement_response.py @@ -0,0 +1,40 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.raw import Raw +from apideck.model.unified_id import UnifiedId +globals()['Raw'] = Raw +globals()['UnifiedId'] = UnifiedId +from apideck.model.delete_bank_feed_statement_response import DeleteBankFeedStatementResponse + + +class TestDeleteBankFeedStatementResponse(unittest.TestCase): + """DeleteBankFeedStatementResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeleteBankFeedStatementResponse(self): + """Test DeleteBankFeedStatementResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = DeleteBankFeedStatementResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_get_bank_feed_account_response.py b/src/test/test_get_bank_feed_account_response.py new file mode 100644 index 000000000..e3c211108 --- /dev/null +++ b/src/test/test_get_bank_feed_account_response.py @@ -0,0 +1,40 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.bank_feed_account import BankFeedAccount +from apideck.model.raw import Raw +globals()['BankFeedAccount'] = BankFeedAccount +globals()['Raw'] = Raw +from apideck.model.get_bank_feed_account_response import GetBankFeedAccountResponse + + +class TestGetBankFeedAccountResponse(unittest.TestCase): + """GetBankFeedAccountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetBankFeedAccountResponse(self): + """Test GetBankFeedAccountResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = GetBankFeedAccountResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_get_bank_feed_accounts_response.py b/src/test/test_get_bank_feed_accounts_response.py new file mode 100644 index 000000000..9151e944f --- /dev/null +++ b/src/test/test_get_bank_feed_accounts_response.py @@ -0,0 +1,44 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.bank_feed_account import BankFeedAccount +from apideck.model.links import Links +from apideck.model.meta import Meta +from apideck.model.raw import Raw +globals()['BankFeedAccount'] = BankFeedAccount +globals()['Links'] = Links +globals()['Meta'] = Meta +globals()['Raw'] = Raw +from apideck.model.get_bank_feed_accounts_response import GetBankFeedAccountsResponse + + +class TestGetBankFeedAccountsResponse(unittest.TestCase): + """GetBankFeedAccountsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetBankFeedAccountsResponse(self): + """Test GetBankFeedAccountsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = GetBankFeedAccountsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_get_bank_feed_statement_response.py b/src/test/test_get_bank_feed_statement_response.py new file mode 100644 index 000000000..0fe2aa50e --- /dev/null +++ b/src/test/test_get_bank_feed_statement_response.py @@ -0,0 +1,40 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.bank_feed_statement import BankFeedStatement +from apideck.model.raw import Raw +globals()['BankFeedStatement'] = BankFeedStatement +globals()['Raw'] = Raw +from apideck.model.get_bank_feed_statement_response import GetBankFeedStatementResponse + + +class TestGetBankFeedStatementResponse(unittest.TestCase): + """GetBankFeedStatementResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetBankFeedStatementResponse(self): + """Test GetBankFeedStatementResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = GetBankFeedStatementResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_get_bank_feed_statements_response.py b/src/test/test_get_bank_feed_statements_response.py new file mode 100644 index 000000000..62954a597 --- /dev/null +++ b/src/test/test_get_bank_feed_statements_response.py @@ -0,0 +1,44 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.bank_feed_statement import BankFeedStatement +from apideck.model.links import Links +from apideck.model.meta import Meta +from apideck.model.raw import Raw +globals()['BankFeedStatement'] = BankFeedStatement +globals()['Links'] = Links +globals()['Meta'] = Meta +globals()['Raw'] = Raw +from apideck.model.get_bank_feed_statements_response import GetBankFeedStatementsResponse + + +class TestGetBankFeedStatementsResponse(unittest.TestCase): + """GetBankFeedStatementsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetBankFeedStatementsResponse(self): + """Test GetBankFeedStatementsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = GetBankFeedStatementsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_update_bank_feed_account_response.py b/src/test/test_update_bank_feed_account_response.py new file mode 100644 index 000000000..0a4f8d776 --- /dev/null +++ b/src/test/test_update_bank_feed_account_response.py @@ -0,0 +1,40 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.raw import Raw +from apideck.model.unified_id import UnifiedId +globals()['Raw'] = Raw +globals()['UnifiedId'] = UnifiedId +from apideck.model.update_bank_feed_account_response import UpdateBankFeedAccountResponse + + +class TestUpdateBankFeedAccountResponse(unittest.TestCase): + """UpdateBankFeedAccountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateBankFeedAccountResponse(self): + """Test UpdateBankFeedAccountResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = UpdateBankFeedAccountResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/src/test/test_update_bank_feed_statement_response.py b/src/test/test_update_bank_feed_statement_response.py new file mode 100644 index 000000000..6324a252f --- /dev/null +++ b/src/test/test_update_bank_feed_statement_response.py @@ -0,0 +1,40 @@ +""" + Apideck + + The Apideck OpenAPI Spec: SDK Optimized # noqa: E501 + + The version of the OpenAPI document: 10.16.5 + Contact: support@apideck.com + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import apideck +from apideck.model.raw import Raw +from apideck.model.unified_id import UnifiedId +globals()['Raw'] = Raw +globals()['UnifiedId'] = UnifiedId +from apideck.model.update_bank_feed_statement_response import UpdateBankFeedStatementResponse + + +class TestUpdateBankFeedStatementResponse(unittest.TestCase): + """UpdateBankFeedStatementResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateBankFeedStatementResponse(self): + """Test UpdateBankFeedStatementResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = UpdateBankFeedStatementResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main()