From d89e4a9c93fe57f21d878810795e1a89f7a5a70f Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 18 Sep 2023 21:45:23 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 3.0.0, Speakeay CLI 1.87.0 --- lending/README.md | 68 +++++++++---------- lending/RELEASES.md | 12 +++- .../shared/accountcategoriesupdatedwebhook.md | 18 +++++ .../accountcategoriesupdatedwebhookdata.md | 8 +++ ...addressesitems.md => accountingaddress.md} | 2 +- .../models/shared/accountingbillcreditnote.md | 2 +- .../models/shared/accountingcompanyinfo.md | 6 +- .../accountingcompanyinfoaccountingaddress.md | 14 ---- .../shared/accountingcompanyinfoweblink.md | 11 --- .../accountingcompanyinfoweblinktype.md | 12 ---- .../models/shared/accountingcreditnote.md | 2 +- .../docs/models/shared/accountingcustomer.md | 2 +- .../docs/models/shared/accountinginvoice.md | 2 +- .../docs/models/shared/accountingsupplier.md | 2 +- .../shared/clientratelimitreachedwebhook.md | 16 +++++ .../clientratelimitreachedwebhookdata.md | 9 +++ .../shared/clientratelimitresetwebhook.md | 16 +++++ .../shared/clientratelimitresetwebhookdata.md | 11 +++ .../docs/models/shared/commercecompanyinfo.md | 4 +- lending/docs/models/shared/contact.md | 4 +- lending/docs/models/shared/items.md | 8 +-- ...tingcompanyinfophone.md => phonenumber.md} | 2 +- lending/docs/models/shared/weblink.md | 11 +++ lending/docs/models/shared/weblinksitems.md | 11 --- .../shared/{itemstype.md => weblinktype.md} | 2 +- .../docs/models/shared/withholdingtaxitems.md | 9 --- .../accountcategoriesupdatedresponse.md | 10 +++ .../clientratelimitreachedresponse.md | 10 +++ .../webhooks/clientratelimitresetresponse.md | 10 +++ .../docs/sdks/accountingbankdata/README.md | 2 +- .../sdks/accountingbankdataaccounts/README.md | 6 +- lending/docs/sdks/accountspayable/README.md | 2 +- .../accountspayablebillcreditnotes/README.md | 6 +- .../accountspayablebillpayments/README.md | 6 +- .../docs/sdks/accountspayablebills/README.md | 12 ++-- .../sdks/accountspayablesuppliers/README.md | 12 ++-- .../docs/sdks/accountsreceivable/README.md | 2 +- .../accountsreceivablecreditnotes/README.md | 6 +- .../accountsreceivablecustomers/README.md | 12 ++-- .../accountsreceivabledirectincomes/README.md | 12 ++-- .../sdks/accountsreceivableinvoices/README.md | 16 ++--- .../sdks/accountsreceivablepayments/README.md | 6 +- .../sdks/accountsreceivablereports/README.md | 10 +-- lending/docs/sdks/banking/README.md | 2 +- .../sdks/bankingaccountbalances/README.md | 4 +- .../bankingcategorizedstatement/README.md | 4 +- .../bankingtransactioncategories/README.md | 6 +- lending/docs/sdks/companies/README.md | 2 +- lending/docs/sdks/companyinfo/README.md | 2 +- lending/docs/sdks/connections/README.md | 2 +- lending/docs/sdks/dataintegrity/README.md | 2 +- lending/docs/sdks/excelreports/README.md | 2 +- lending/docs/sdks/fileupload/README.md | 2 +- .../docs/sdks/financialstatements/README.md | 2 +- .../financialstatementsaccounts/README.md | 6 +- .../financialstatementsbalancesheet/README.md | 6 +- .../financialstatementscashflow/README.md | 4 +- .../README.md | 6 +- lending/docs/sdks/liabilities/README.md | 2 +- lending/docs/sdks/managedata/README.md | 2 +- .../sdks/managedatapulloperations/README.md | 6 +- lending/docs/sdks/managedatarefresh/README.md | 6 +- lending/docs/sdks/sales/README.md | 2 +- .../docs/sdks/salespaymentmethods/README.md | 6 +- .../sdks/salesproductcategories/README.md | 6 +- lending/docs/sdks/transactions/README.md | 2 +- .../transactionsaccounttransactions/README.md | 6 +- .../sdks/transactionsdirectcosts/README.md | 12 ++-- .../sdks/transactionsjournalentries/README.md | 6 +- lending/files.gen | 41 +++++++---- lending/gen.yaml | 10 +-- lending/setup.py | 2 +- .../codatlending/models/shared/__init__.py | 14 ++-- .../shared/accountcategoriesupdatedwebhook.py | 34 ++++++++++ .../accountcategoriesupdatedwebhookdata.py | 17 +++++ ...addressesitems.py => accountingaddress.py} | 2 +- .../models/shared/accountingbillcreditnote.py | 4 +- .../models/shared/accountingcompanyinfo.py | 65 ++---------------- .../models/shared/accountingcreditnote.py | 4 +- .../models/shared/accountingcustomer.py | 4 +- .../models/shared/accountinginvoice.py | 4 +- .../models/shared/accountingsupplier.py | 4 +- .../shared/clientratelimitreachedwebhook.py | 30 ++++++++ .../clientratelimitreachedwebhookdata.py | 38 +++++++++++ .../shared/clientratelimitresetwebhook.py | 30 ++++++++ .../shared/clientratelimitresetwebhookdata.py | 42 ++++++++++++ .../models/shared/commercecompanyinfo.py | 8 +-- .../src/codatlending/models/shared/contact.py | 8 +-- .../src/codatlending/models/shared/items.py | 8 +-- .../codatlending/models/shared/phonenumber.py | 19 ++++++ .../shared/{weblinksitems.py => weblink.py} | 6 +- .../models/shared/withholdingtaxitems.py | 17 ----- .../codatlending/models/webhooks/__init__.py | 7 ++ .../webhooks/account_categories_updated.py | 16 +++++ .../webhooks/client_rate_limit_reached.py | 16 +++++ .../webhooks/client_rate_limit_reset.py | 16 +++++ lending/src/codatlending/sdkconfiguration.py | 4 +- 97 files changed, 634 insertions(+), 348 deletions(-) create mode 100755 lending/docs/models/shared/accountcategoriesupdatedwebhook.md create mode 100755 lending/docs/models/shared/accountcategoriesupdatedwebhookdata.md rename lending/docs/models/shared/{addressesitems.md => accountingaddress.md} (99%) delete mode 100755 lending/docs/models/shared/accountingcompanyinfoaccountingaddress.md delete mode 100755 lending/docs/models/shared/accountingcompanyinfoweblink.md delete mode 100755 lending/docs/models/shared/accountingcompanyinfoweblinktype.md create mode 100755 lending/docs/models/shared/clientratelimitreachedwebhook.md create mode 100755 lending/docs/models/shared/clientratelimitreachedwebhookdata.md create mode 100755 lending/docs/models/shared/clientratelimitresetwebhook.md create mode 100755 lending/docs/models/shared/clientratelimitresetwebhookdata.md rename lending/docs/models/shared/{accountingcompanyinfophone.md => phonenumber.md} (97%) create mode 100755 lending/docs/models/shared/weblink.md delete mode 100755 lending/docs/models/shared/weblinksitems.md rename lending/docs/models/shared/{itemstype.md => weblinktype.md} (92%) delete mode 100755 lending/docs/models/shared/withholdingtaxitems.md create mode 100755 lending/docs/models/webhooks/accountcategoriesupdatedresponse.md create mode 100755 lending/docs/models/webhooks/clientratelimitreachedresponse.md create mode 100755 lending/docs/models/webhooks/clientratelimitresetresponse.md create mode 100755 lending/src/codatlending/models/shared/accountcategoriesupdatedwebhook.py create mode 100755 lending/src/codatlending/models/shared/accountcategoriesupdatedwebhookdata.py rename lending/src/codatlending/models/shared/{addressesitems.py => accountingaddress.py} (98%) create mode 100755 lending/src/codatlending/models/shared/clientratelimitreachedwebhook.py create mode 100755 lending/src/codatlending/models/shared/clientratelimitreachedwebhookdata.py create mode 100755 lending/src/codatlending/models/shared/clientratelimitresetwebhook.py create mode 100755 lending/src/codatlending/models/shared/clientratelimitresetwebhookdata.py create mode 100755 lending/src/codatlending/models/shared/phonenumber.py rename lending/src/codatlending/models/shared/{weblinksitems.py => weblink.py} (76%) delete mode 100755 lending/src/codatlending/models/shared/withholdingtaxitems.py create mode 100755 lending/src/codatlending/models/webhooks/__init__.py create mode 100755 lending/src/codatlending/models/webhooks/account_categories_updated.py create mode 100755 lending/src/codatlending/models/webhooks/client_rate_limit_reached.py create mode 100755 lending/src/codatlending/models/webhooks/client_rate_limit_reset.py diff --git a/lending/README.md b/lending/README.md index cc749b5d9..3ec5e7d7f 100644 --- a/lending/README.md +++ b/lending/README.md @@ -45,16 +45,16 @@ if res.accounting_bank_transactions is not None: ## Available Resources and Operations -### [accounting_bank_data](docs/sdks/accountingbankdata/README.md) +### [AccountingBankData](docs/sdks/accountingbankdata/README.md) * [list_transactions](docs/sdks/accountingbankdata/README.md#list_transactions) - List bank account transactions -### [accounting_bank_data_accounts](docs/sdks/accountingbankdataaccounts/README.md) +### [AccountingBankData.Accounts](docs/sdks/accountingbankdataaccounts/README.md) * [get](docs/sdks/accountingbankdataaccounts/README.md#get) - Get bank account * [list](docs/sdks/accountingbankdataaccounts/README.md#list) - List bank accounts -### [companies](docs/sdks/companies/README.md) +### [Companies](docs/sdks/companies/README.md) * [create](docs/sdks/companies/README.md#create) - Create company * [delete](docs/sdks/companies/README.md#delete) - Delete a company @@ -62,12 +62,12 @@ if res.accounting_bank_transactions is not None: * [list](docs/sdks/companies/README.md#list) - List companies * [update](docs/sdks/companies/README.md#update) - Update company -### [company_info](docs/sdks/companyinfo/README.md) +### [CompanyInfo](docs/sdks/companyinfo/README.md) * [get_accounting_profile](docs/sdks/companyinfo/README.md#get_accounting_profile) - Get company accounting profile * [get_commerce_profile](docs/sdks/companyinfo/README.md#get_commerce_profile) - Get company commerce profile -### [connections](docs/sdks/connections/README.md) +### [Connections](docs/sdks/connections/README.md) * [create](docs/sdks/connections/README.md#create) - Create connection * [delete](docs/sdks/connections/README.md#delete) - Delete connection @@ -75,41 +75,41 @@ if res.accounting_bank_transactions is not None: * [list](docs/sdks/connections/README.md#list) - List connections * [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection -### [data_integrity](docs/sdks/dataintegrity/README.md) +### [DataIntegrity](docs/sdks/dataintegrity/README.md) * [details](docs/sdks/dataintegrity/README.md#details) - List data integrity details * [status](docs/sdks/dataintegrity/README.md#status) - Get data integrity status * [summaries](docs/sdks/dataintegrity/README.md#summaries) - Get data integrity summaries -### [excel_reports](docs/sdks/excelreports/README.md) +### [ExcelReports](docs/sdks/excelreports/README.md) * [download](docs/sdks/excelreports/README.md#download) - Download Excel report * [generate](docs/sdks/excelreports/README.md#generate) - Generate Excel report * [get_status](docs/sdks/excelreports/README.md#get_status) - Get Excel report status -### [file_upload](docs/sdks/fileupload/README.md) +### [FileUpload](docs/sdks/fileupload/README.md) * [download](docs/sdks/fileupload/README.md#download) - Download all files for a company * [list_uploaded](docs/sdks/fileupload/README.md#list_uploaded) - List all files uploaded by a company * [upload](docs/sdks/fileupload/README.md#upload) - Upload files for a company -### [liabilities](docs/sdks/liabilities/README.md) +### [Liabilities](docs/sdks/liabilities/README.md) * [get_loan_summary](docs/sdks/liabilities/README.md#get_loan_summary) - Get loan summaries * [list_loan_transactions](docs/sdks/liabilities/README.md#list_loan_transactions) - List loan transactions -### [accounts_payable_bill_credit_notes](docs/sdks/accountspayablebillcreditnotes/README.md) +### [AccountsPayable.BillCreditNotes](docs/sdks/accountspayablebillcreditnotes/README.md) * [get](docs/sdks/accountspayablebillcreditnotes/README.md#get) - Get bill credit note * [list](docs/sdks/accountspayablebillcreditnotes/README.md#list) - List bill credit notes -### [accounts_payable_bill_payments](docs/sdks/accountspayablebillpayments/README.md) +### [AccountsPayable.BillPayments](docs/sdks/accountspayablebillpayments/README.md) * [get](docs/sdks/accountspayablebillpayments/README.md#get) - Get bill payment * [list](docs/sdks/accountspayablebillpayments/README.md#list) - List bill payments -### [accounts_payable_bills](docs/sdks/accountspayablebills/README.md) +### [AccountsPayable.Bills](docs/sdks/accountspayablebills/README.md) * [download_attachment](docs/sdks/accountspayablebills/README.md#download_attachment) - Download bill attachment * [get](docs/sdks/accountspayablebills/README.md#get) - Get bill @@ -117,7 +117,7 @@ if res.accounting_bank_transactions is not None: * [list](docs/sdks/accountspayablebills/README.md#list) - List bills * [list_attachments](docs/sdks/accountspayablebills/README.md#list_attachments) - List bill attachments -### [accounts_payable_suppliers](docs/sdks/accountspayablesuppliers/README.md) +### [AccountsPayable.Suppliers](docs/sdks/accountspayablesuppliers/README.md) * [download_attachment](docs/sdks/accountspayablesuppliers/README.md#download_attachment) - Download supplier attachment * [get](docs/sdks/accountspayablesuppliers/README.md#get) - Get supplier @@ -126,12 +126,12 @@ if res.accounting_bank_transactions is not None: * [list_attachments](docs/sdks/accountspayablesuppliers/README.md#list_attachments) - List supplier attachments -### [accounts_receivable_credit_notes](docs/sdks/accountsreceivablecreditnotes/README.md) +### [AccountsReceivable.CreditNotes](docs/sdks/accountsreceivablecreditnotes/README.md) * [get](docs/sdks/accountsreceivablecreditnotes/README.md#get) - Get credit note * [list](docs/sdks/accountsreceivablecreditnotes/README.md#list) - List credit notes -### [accounts_receivable_customers](docs/sdks/accountsreceivablecustomers/README.md) +### [AccountsReceivable.Customers](docs/sdks/accountsreceivablecustomers/README.md) * [download_attachment](docs/sdks/accountsreceivablecustomers/README.md#download_attachment) - Download customer attachment * [get](docs/sdks/accountsreceivablecustomers/README.md#get) - Get customer @@ -139,7 +139,7 @@ if res.accounting_bank_transactions is not None: * [list](docs/sdks/accountsreceivablecustomers/README.md#list) - List customers * [list_attachments](docs/sdks/accountsreceivablecustomers/README.md#list_attachments) - List customer attachments -### [accounts_receivable_direct_incomes](docs/sdks/accountsreceivabledirectincomes/README.md) +### [AccountsReceivable.DirectIncomes](docs/sdks/accountsreceivabledirectincomes/README.md) * [download_attachment](docs/sdks/accountsreceivabledirectincomes/README.md#download_attachment) - Download direct income attachment * [get](docs/sdks/accountsreceivabledirectincomes/README.md#get) - Get direct income @@ -147,7 +147,7 @@ if res.accounting_bank_transactions is not None: * [list](docs/sdks/accountsreceivabledirectincomes/README.md#list) - List direct incomes * [list_attachments](docs/sdks/accountsreceivabledirectincomes/README.md#list_attachments) - List direct income attachments -### [accounts_receivable_invoices](docs/sdks/accountsreceivableinvoices/README.md) +### [AccountsReceivable.Invoices](docs/sdks/accountsreceivableinvoices/README.md) * [download_attachment](docs/sdks/accountsreceivableinvoices/README.md#download_attachment) - Download invoice attachment * [download_pdf](docs/sdks/accountsreceivableinvoices/README.md#download_pdf) - Get invoice as PDF @@ -157,12 +157,12 @@ if res.accounting_bank_transactions is not None: * [list_attachments](docs/sdks/accountsreceivableinvoices/README.md#list_attachments) - List invoice attachments * [list_reconciled](docs/sdks/accountsreceivableinvoices/README.md#list_reconciled) - List reconciled invoices -### [accounts_receivable_payments](docs/sdks/accountsreceivablepayments/README.md) +### [AccountsReceivable.Payments](docs/sdks/accountsreceivablepayments/README.md) * [get](docs/sdks/accountsreceivablepayments/README.md#get) - Get payment * [list](docs/sdks/accountsreceivablepayments/README.md#list) - List payments -### [accounts_receivable_reports](docs/sdks/accountsreceivablereports/README.md) +### [AccountsReceivable.Reports](docs/sdks/accountsreceivablereports/README.md) * [get_aged_creditors](docs/sdks/accountsreceivablereports/README.md#get_aged_creditors) - Aged creditors report * [get_aged_debtors](docs/sdks/accountsreceivablereports/README.md#get_aged_debtors) - Aged debtors report @@ -170,7 +170,7 @@ if res.accounting_bank_transactions is not None: * [is_aged_debtors_available](docs/sdks/accountsreceivablereports/README.md#is_aged_debtors_available) - Aged debtors report available -### [banking_account_balances](docs/sdks/bankingaccountbalances/README.md) +### [Banking.AccountBalances](docs/sdks/bankingaccountbalances/README.md) * [list](docs/sdks/bankingaccountbalances/README.md#list) - List account balances @@ -179,11 +179,11 @@ if res.accounting_bank_transactions is not None: * [get](docs/sdks/bankingaccounts/README.md#get) - Get account * [list](docs/sdks/bankingaccounts/README.md#list) - List accounts -### [banking_categorized_statement](docs/sdks/bankingcategorizedstatement/README.md) +### [Banking.CategorizedStatement](docs/sdks/bankingcategorizedstatement/README.md) * [get](docs/sdks/bankingcategorizedstatement/README.md#get) - Get categorized bank statement -### [banking_transaction_categories](docs/sdks/bankingtransactioncategories/README.md) +### [Banking.TransactionCategories](docs/sdks/bankingtransactioncategories/README.md) * [get](docs/sdks/bankingtransactioncategories/README.md#get) - Get transaction category * [list](docs/sdks/bankingtransactioncategories/README.md#list) - List transaction categories @@ -194,35 +194,35 @@ if res.accounting_bank_transactions is not None: * [list](docs/sdks/bankingtransactions/README.md#list) - List transactions -### [financial_statements_accounts](docs/sdks/financialstatementsaccounts/README.md) +### [FinancialStatements.Accounts](docs/sdks/financialstatementsaccounts/README.md) * [get](docs/sdks/financialstatementsaccounts/README.md#get) - Get account * [list](docs/sdks/financialstatementsaccounts/README.md#list) - List accounts -### [financial_statements_balance_sheet](docs/sdks/financialstatementsbalancesheet/README.md) +### [FinancialStatements.BalanceSheet](docs/sdks/financialstatementsbalancesheet/README.md) * [get](docs/sdks/financialstatementsbalancesheet/README.md#get) - Get balance sheet * [get_categorized_accounts](docs/sdks/financialstatementsbalancesheet/README.md#get_categorized_accounts) - Get categorized balance sheet statement -### [financial_statements_cash_flow](docs/sdks/financialstatementscashflow/README.md) +### [FinancialStatements.CashFlow](docs/sdks/financialstatementscashflow/README.md) * [get](docs/sdks/financialstatementscashflow/README.md#get) - Get cash flow statement -### [financial_statements_profit_and_loss](docs/sdks/financialstatementsprofitandloss/README.md) +### [FinancialStatements.ProfitAndLoss](docs/sdks/financialstatementsprofitandloss/README.md) * [get](docs/sdks/financialstatementsprofitandloss/README.md#get) - Get profit and loss * [get_categorized_accounts](docs/sdks/financialstatementsprofitandloss/README.md#get_categorized_accounts) - Get categorized profit and loss statement -### [manage_data](docs/sdks/managedata/README.md) +### [ManageData](docs/sdks/managedata/README.md) * [get_status](docs/sdks/managedata/README.md#get_status) - Get data status -### [manage_data_pull_operations](docs/sdks/managedatapulloperations/README.md) +### [ManageData.PullOperations](docs/sdks/managedatapulloperations/README.md) * [get](docs/sdks/managedatapulloperations/README.md#get) - Get pull operation * [list](docs/sdks/managedatapulloperations/README.md#list) - List pull operations -### [manage_data_refresh](docs/sdks/managedatarefresh/README.md) +### [ManageData.Refresh](docs/sdks/managedatarefresh/README.md) * [all_data_types](docs/sdks/managedatarefresh/README.md#all_data_types) - Refresh all data * [data_type](docs/sdks/managedatarefresh/README.md#data_type) - Refresh data type @@ -254,7 +254,7 @@ if res.accounting_bank_transactions is not None: * [get](docs/sdks/salesorders/README.md#get) - Get order * [list](docs/sdks/salesorders/README.md#list) - List orders -### [sales_payment_methods](docs/sdks/salespaymentmethods/README.md) +### [Sales.PaymentMethods](docs/sdks/salespaymentmethods/README.md) * [get](docs/sdks/salespaymentmethods/README.md#get) - Get payment method * [list](docs/sdks/salespaymentmethods/README.md#list) - List payment methods @@ -264,7 +264,7 @@ if res.accounting_bank_transactions is not None: * [get](docs/sdks/salespayments/README.md#get) - Get payment * [list](docs/sdks/salespayments/README.md#list) - List payments -### [sales_product_categories](docs/sdks/salesproductcategories/README.md) +### [Sales.ProductCategories](docs/sdks/salesproductcategories/README.md) * [get](docs/sdks/salesproductcategories/README.md#get) - Get product category * [list](docs/sdks/salesproductcategories/README.md#list) - List product categories @@ -285,12 +285,12 @@ if res.accounting_bank_transactions is not None: * [list](docs/sdks/salestransactions/README.md#list) - List transactions -### [transactions_account_transactions](docs/sdks/transactionsaccounttransactions/README.md) +### [Transactions.AccountTransactions](docs/sdks/transactionsaccounttransactions/README.md) * [get](docs/sdks/transactionsaccounttransactions/README.md#get) - Get account transaction * [list](docs/sdks/transactionsaccounttransactions/README.md#list) - List account transactions -### [transactions_direct_costs](docs/sdks/transactionsdirectcosts/README.md) +### [Transactions.DirectCosts](docs/sdks/transactionsdirectcosts/README.md) * [download_attachment](docs/sdks/transactionsdirectcosts/README.md#download_attachment) - Download direct cost attachment * [get](docs/sdks/transactionsdirectcosts/README.md#get) - Get direct cost @@ -298,7 +298,7 @@ if res.accounting_bank_transactions is not None: * [list](docs/sdks/transactionsdirectcosts/README.md#list) - List direct costs * [list_attachments](docs/sdks/transactionsdirectcosts/README.md#list_attachments) - List direct cost attachments -### [transactions_journal_entries](docs/sdks/transactionsjournalentries/README.md) +### [Transactions.JournalEntries](docs/sdks/transactionsjournalentries/README.md) * [get](docs/sdks/transactionsjournalentries/README.md#get) - Get journal entry * [list](docs/sdks/transactionsjournalentries/README.md#list) - List journal entries diff --git a/lending/RELEASES.md b/lending/RELEASES.md index 7b526697a..9113e2211 100644 --- a/lending/RELEASES.md +++ b/lending/RELEASES.md @@ -28,4 +28,14 @@ Based on: ### Generated - [python v3.1.0] lending ### Releases -- [PyPI v3.1.0] https://pypi.org/project/codat-lending/3.1.0 - lending \ No newline at end of file +- [PyPI v3.1.0] https://pypi.org/project/codat-lending/3.1.0 - lending + +## 2023-09-18 21:44:51 +### Changes +Based on: +- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml +- Speakeasy CLI 1.87.0 (2.116.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v4.1.0] lending +### Releases +- [PyPI v4.1.0] https://pypi.org/project/codat-lending/4.1.0 - lending \ No newline at end of file diff --git a/lending/docs/models/shared/accountcategoriesupdatedwebhook.md b/lending/docs/models/shared/accountcategoriesupdatedwebhook.md new file mode 100755 index 000000000..bbc4a17d3 --- /dev/null +++ b/lending/docs/models/shared/accountcategoriesupdatedwebhook.md @@ -0,0 +1,18 @@ +# AccountCategoriesUpdatedWebhook + +Webhook request body for account categories updated. + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `alert_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the webhook event. | | +| `client_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for your client in Codat. | | +| `client_name` | *Optional[str]* | :heavy_minus_sign: | Name of your client in Codat. | | +| `company_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | +| `data` | [Optional[AccountCategoriesUpdatedWebhookData]](../../models/shared/accountcategoriesupdatedwebhookdata.md) | :heavy_minus_sign: | N/A | | +| `data_connection_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for a company's data connection. | 2e9d2c44-f675-40ba-8049-353bfcb5e171 | +| `message` | *Optional[str]* | :heavy_minus_sign: | A human readable message about the webhook. | | +| `rule_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for the rule. | | +| `rule_type` | *Optional[str]* | :heavy_minus_sign: | The type of rule. | | \ No newline at end of file diff --git a/lending/docs/models/shared/accountcategoriesupdatedwebhookdata.md b/lending/docs/models/shared/accountcategoriesupdatedwebhookdata.md new file mode 100755 index 000000000..590c77d53 --- /dev/null +++ b/lending/docs/models/shared/accountcategoriesupdatedwebhookdata.md @@ -0,0 +1,8 @@ +# AccountCategoriesUpdatedWebhookData + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `modified_date` | *Optional[str]* | :heavy_minus_sign: | The date on which this account categories were last modified in Codat. | 2022-10-23 | \ No newline at end of file diff --git a/lending/docs/models/shared/addressesitems.md b/lending/docs/models/shared/accountingaddress.md similarity index 99% rename from lending/docs/models/shared/addressesitems.md rename to lending/docs/models/shared/accountingaddress.md index e087286c3..40f5f35f1 100755 --- a/lending/docs/models/shared/addressesitems.md +++ b/lending/docs/models/shared/accountingaddress.md @@ -1,4 +1,4 @@ -# Addressesitems +# AccountingAddress ## Fields diff --git a/lending/docs/models/shared/accountingbillcreditnote.md b/lending/docs/models/shared/accountingbillcreditnote.md index c506b3d6a..80df56081 100755 --- a/lending/docs/models/shared/accountingbillcreditnote.md +++ b/lending/docs/models/shared/accountingbillcreditnote.md @@ -43,4 +43,4 @@ A bill credit note includes details of: | `total_amount` | *Decimal* | :heavy_check_mark: | Total amount of credit that has been applied to the business' account with the supplier, including discounts and tax. | 805.78 | | `total_discount` | *Decimal* | :heavy_check_mark: | Total value of any discounts applied. | 0 | | `total_tax_amount` | *Decimal* | :heavy_check_mark: | Amount of tax included in the bill credit note. | 0 | -| `withholding_tax` | list[[WithholdingTaxitems](../../models/shared/withholdingtaxitems.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `withholding_tax` | list[[Items](../../models/shared/items.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/lending/docs/models/shared/accountingcompanyinfo.md b/lending/docs/models/shared/accountingcompanyinfo.md index 0a666e28b..88313fcb2 100755 --- a/lending/docs/models/shared/accountingcompanyinfo.md +++ b/lending/docs/models/shared/accountingcompanyinfo.md @@ -14,15 +14,15 @@ Company info provides standard details about a linked company such as their addr | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `accounting_platform_ref` | *Optional[str]* | :heavy_minus_sign: | Identifier or reference for the company in the accounting platform. | | -| `addresses` | list[[AccountingCompanyInfoAccountingAddress](../../models/shared/accountingcompanyinfoaccountingaddress.md)] | :heavy_minus_sign: | An array of Addresses. | | +| `addresses` | list[[AccountingAddress](../../models/shared/accountingaddress.md)] | :heavy_minus_sign: | An array of Addresses. | | | `base_currency` | *Optional[str]* | :heavy_minus_sign: | Currency set in the accounting platform of the linked company. Used by the currency rate. | | | `company_legal_name` | *Optional[str]* | :heavy_minus_sign: | Registered legal name of the linked company. | | | `company_name` | *Optional[str]* | :heavy_minus_sign: | Name of the linked company. | | | `created_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `financial_year_start_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `ledger_lock_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | -| `phone_numbers` | list[[AccountingCompanyInfoPhone](../../models/shared/accountingcompanyinfophone.md)] | :heavy_minus_sign: | An array of phone numbers. | | +| `phone_numbers` | list[[PhoneNumber](../../models/shared/phonenumber.md)] | :heavy_minus_sign: | An array of phone numbers. | | | `registration_number` | *Optional[str]* | :heavy_minus_sign: | Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House. | | | `source_urls` | dict[str, *str*] | :heavy_minus_sign: | URL addresses for the accounting source.

For example, for Xero integrations two URLs are returned. These have many potential use cases, such as [deep linking](https://developer.xero.com/documentation/api-guides/deep-link-xero). | | | `tax_number` | *Optional[str]* | :heavy_minus_sign: | Company tax number. | | -| `web_links` | list[[AccountingCompanyInfoWeblink](../../models/shared/accountingcompanyinfoweblink.md)] | :heavy_minus_sign: | An array of weblinks. | | \ No newline at end of file +| `web_links` | list[[WebLink](../../models/shared/weblink.md)] | :heavy_minus_sign: | An array of weblinks. | | \ No newline at end of file diff --git a/lending/docs/models/shared/accountingcompanyinfoaccountingaddress.md b/lending/docs/models/shared/accountingcompanyinfoaccountingaddress.md deleted file mode 100755 index f2faf58e2..000000000 --- a/lending/docs/models/shared/accountingcompanyinfoaccountingaddress.md +++ /dev/null @@ -1,14 +0,0 @@ -# AccountingCompanyInfoAccountingAddress - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `city` | *Optional[str]* | :heavy_minus_sign: | City of the customer address. | -| `country` | *Optional[str]* | :heavy_minus_sign: | Country of the customer address. | -| `line1` | *Optional[str]* | :heavy_minus_sign: | Line 1 of the customer address. | -| `line2` | *Optional[str]* | :heavy_minus_sign: | Line 2 of the customer address. | -| `postal_code` | *Optional[str]* | :heavy_minus_sign: | Postal code or zip code. | -| `region` | *Optional[str]* | :heavy_minus_sign: | Region of the customer address. | -| `type` | [AccountingAddressType](../../models/shared/accountingaddresstype.md) | :heavy_check_mark: | The type of the address | \ No newline at end of file diff --git a/lending/docs/models/shared/accountingcompanyinfoweblink.md b/lending/docs/models/shared/accountingcompanyinfoweblink.md deleted file mode 100755 index be4f02215..000000000 --- a/lending/docs/models/shared/accountingcompanyinfoweblink.md +++ /dev/null @@ -1,11 +0,0 @@ -# AccountingCompanyInfoWeblink - -Weblink associated with the company. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `type` | [Optional[AccountingCompanyInfoWeblinkType]](../../models/shared/accountingcompanyinfoweblinktype.md) | :heavy_minus_sign: | The type of the weblink. | -| `url` | *Optional[str]* | :heavy_minus_sign: | The full URL for the weblink. | \ No newline at end of file diff --git a/lending/docs/models/shared/accountingcompanyinfoweblinktype.md b/lending/docs/models/shared/accountingcompanyinfoweblinktype.md deleted file mode 100755 index b5b34b67a..000000000 --- a/lending/docs/models/shared/accountingcompanyinfoweblinktype.md +++ /dev/null @@ -1,12 +0,0 @@ -# AccountingCompanyInfoWeblinkType - -The type of the weblink. - - -## Values - -| Name | Value | -| --------- | --------- | -| `WEBSITE` | Website | -| `SOCIAL` | Social | -| `UNKNOWN` | Unknown | \ No newline at end of file diff --git a/lending/docs/models/shared/accountingcreditnote.md b/lending/docs/models/shared/accountingcreditnote.md index a1c07844c..85b245be0 100755 --- a/lending/docs/models/shared/accountingcreditnote.md +++ b/lending/docs/models/shared/accountingcreditnote.md @@ -41,4 +41,4 @@ It contains details of: | `total_amount` | *Decimal* | :heavy_check_mark: | Total amount of credit that has been applied to the customer's accounts receivable | | | `total_discount` | *Decimal* | :heavy_check_mark: | Any discounts applied to the credit note amount. | | | `total_tax_amount` | *Decimal* | :heavy_check_mark: | Any tax applied to the credit note amount. | | -| `withholding_tax` | list[[WithholdingTaxitems](../../models/shared/withholdingtaxitems.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `withholding_tax` | list[[Items](../../models/shared/items.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/lending/docs/models/shared/accountingcustomer.md b/lending/docs/models/shared/accountingcustomer.md index 7520b64a7..0221f6b4a 100755 --- a/lending/docs/models/shared/accountingcustomer.md +++ b/lending/docs/models/shared/accountingcustomer.md @@ -14,7 +14,7 @@ Customers' data links to accounts receivable [invoices](https://docs.codat.io/ac | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `addresses` | list[[Addressesitems](../../models/shared/addressesitems.md)] | :heavy_minus_sign: | An array of Addresses. | | +| `addresses` | list[[AccountingAddress](../../models/shared/accountingaddress.md)] | :heavy_minus_sign: | An array of Addresses. | | | `contact_name` | *Optional[str]* | :heavy_minus_sign: | Name of the main contact for the identified customer. | | | `contacts` | list[[Contact](../../models/shared/contact.md)] | :heavy_minus_sign: | An array of Contacts. | | | `customer_name` | *Optional[str]* | :heavy_minus_sign: | Name of the customer as recorded in the accounting system, typically the company name. | | diff --git a/lending/docs/models/shared/accountinginvoice.md b/lending/docs/models/shared/accountinginvoice.md index 47e746c6f..9ca0b4a6f 100755 --- a/lending/docs/models/shared/accountinginvoice.md +++ b/lending/docs/models/shared/accountinginvoice.md @@ -60,4 +60,4 @@ In Codat, an invoice contains details of: | `total_amount` | *Decimal* | :heavy_check_mark: | Amount of the invoice, inclusive of tax. | | | `total_discount` | *Optional[Decimal]* | :heavy_minus_sign: | Numerical value of discounts applied to the invoice. | | | `total_tax_amount` | *Decimal* | :heavy_check_mark: | Amount of tax on the invoice. | | -| `withholding_tax` | list[[WithholdingTaxitems](../../models/shared/withholdingtaxitems.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `withholding_tax` | list[[Items](../../models/shared/items.md)] | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/lending/docs/models/shared/accountingsupplier.md b/lending/docs/models/shared/accountingsupplier.md index 33a769223..a5080ce34 100755 --- a/lending/docs/models/shared/accountingsupplier.md +++ b/lending/docs/models/shared/accountingsupplier.md @@ -11,7 +11,7 @@ From the **Suppliers** endpoints, you can retrieve a list of [all the suppliers | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `addresses` | list[[Addressesitems](../../models/shared/addressesitems.md)] | :heavy_minus_sign: | An array of Addresses. | | +| `addresses` | list[[AccountingAddress](../../models/shared/accountingaddress.md)] | :heavy_minus_sign: | An array of Addresses. | | | `contact_name` | *Optional[str]* | :heavy_minus_sign: | Name of the main contact for the supplier. | | | `default_currency` | *Optional[str]* | :heavy_minus_sign: | Default currency the supplier's transactional data is recorded in. | | | `email_address` | *Optional[str]* | :heavy_minus_sign: | Email address that the supplier may be contacted on. | | diff --git a/lending/docs/models/shared/clientratelimitreachedwebhook.md b/lending/docs/models/shared/clientratelimitreachedwebhook.md new file mode 100755 index 000000000..3d7030310 --- /dev/null +++ b/lending/docs/models/shared/clientratelimitreachedwebhook.md @@ -0,0 +1,16 @@ +# ClientRateLimitReachedWebhook + +Webhook request body for a client that has reached their rate limit. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `alert_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the webhook event. | +| `client_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for your client in Codat. | +| `client_name` | *Optional[str]* | :heavy_minus_sign: | Name of your client in Codat. | +| `data` | [Optional[ClientRateLimitReachedWebhookData]](../../models/shared/clientratelimitreachedwebhookdata.md) | :heavy_minus_sign: | N/A | +| `message` | *Optional[str]* | :heavy_minus_sign: | A human readable message about the webhook. | +| `rule_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for the rule. | +| `rule_type` | *Optional[str]* | :heavy_minus_sign: | The type of rule. | \ No newline at end of file diff --git a/lending/docs/models/shared/clientratelimitreachedwebhookdata.md b/lending/docs/models/shared/clientratelimitreachedwebhookdata.md new file mode 100755 index 000000000..caa124b1b --- /dev/null +++ b/lending/docs/models/shared/clientratelimitreachedwebhookdata.md @@ -0,0 +1,9 @@ +# ClientRateLimitReachedWebhookData + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `daily_quota` | *Optional[int]* | :heavy_minus_sign: | The number of available requests per day. | | +| `expires_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | \ No newline at end of file diff --git a/lending/docs/models/shared/clientratelimitresetwebhook.md b/lending/docs/models/shared/clientratelimitresetwebhook.md new file mode 100755 index 000000000..7336566a4 --- /dev/null +++ b/lending/docs/models/shared/clientratelimitresetwebhook.md @@ -0,0 +1,16 @@ +# ClientRateLimitResetWebhook + +Webhook request body for a client that has had their rate limit reset. + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `alert_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the webhook event. | +| `client_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for your client in Codat. | +| `client_name` | *Optional[str]* | :heavy_minus_sign: | Name of your client in Codat. | +| `data` | [Optional[ClientRateLimitResetWebhookData]](../../models/shared/clientratelimitresetwebhookdata.md) | :heavy_minus_sign: | N/A | +| `message` | *Optional[str]* | :heavy_minus_sign: | A human readable message about the webhook. | +| `rule_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for the rule. | +| `rule_type` | *Optional[str]* | :heavy_minus_sign: | The type of rule. | \ No newline at end of file diff --git a/lending/docs/models/shared/clientratelimitresetwebhookdata.md b/lending/docs/models/shared/clientratelimitresetwebhookdata.md new file mode 100755 index 000000000..1b2b1eb58 --- /dev/null +++ b/lending/docs/models/shared/clientratelimitresetwebhookdata.md @@ -0,0 +1,11 @@ +# ClientRateLimitResetWebhookData + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `daily_quota` | *Optional[int]* | :heavy_minus_sign: | The number of available requests per day. | | +| `expires_utc` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | +| `quota_remaining` | *Optional[int]* | :heavy_minus_sign: | Total number of request remaining for your client. | | +| `reset_reason` | *Optional[str]* | :heavy_minus_sign: | The reason for your rate limit quota being reset. | | \ No newline at end of file diff --git a/lending/docs/models/shared/commercecompanyinfo.md b/lending/docs/models/shared/commercecompanyinfo.md index b465a69a6..30b2aebba 100755 --- a/lending/docs/models/shared/commercecompanyinfo.md +++ b/lending/docs/models/shared/commercecompanyinfo.md @@ -19,8 +19,8 @@ Explore our [data coverage](https://knowledge.codat.io/supported-features/commer | `company_name` | *Optional[str]* | :heavy_minus_sign: | The name of the company | Codat | | `created_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | -| `phone_numbers` | list[[Items](../../models/shared/items.md)] | :heavy_minus_sign: | Phone numbers associated with the company | | +| `phone_numbers` | list[[PhoneNumber](../../models/shared/phonenumber.md)] | :heavy_minus_sign: | Phone numbers associated with the company | | | `registration_number` | *Optional[str]* | :heavy_minus_sign: | The registration number of the company | 10480375 | | `source_modified_date` | *Optional[str]* | :heavy_minus_sign: | N/A | 2022-10-23T00:00:00.000Z | | `source_urls` | dict[str, *str*] | :heavy_minus_sign: | URL addresses for the originating system. For example, potential use cases include 'deeplinking' to the originating system | | -| `web_links` | list[[WebLinksitems](../../models/shared/weblinksitems.md)] | :heavy_minus_sign: | Weblinks associated with the company | | \ No newline at end of file +| `web_links` | list[[WebLink](../../models/shared/weblink.md)] | :heavy_minus_sign: | Weblinks associated with the company | | \ No newline at end of file diff --git a/lending/docs/models/shared/contact.md b/lending/docs/models/shared/contact.md index a116d4a6a..59c75fc97 100755 --- a/lending/docs/models/shared/contact.md +++ b/lending/docs/models/shared/contact.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `address` | [Optional[Addressesitems]](../../models/shared/addressesitems.md) | :heavy_minus_sign: | N/A | | +| `address` | [Optional[AccountingAddress]](../../models/shared/accountingaddress.md) | :heavy_minus_sign: | N/A | | | `email` | *Optional[str]* | :heavy_minus_sign: | Email of a contact for a customer. | | | `modified_date` | *Optional[str]* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23T00:00:00.000Z | | `name` | *Optional[str]* | :heavy_minus_sign: | Name of a contact for a customer. | | -| `phone` | list[[Items](../../models/shared/items.md)] | :heavy_minus_sign: | An array of Phone numbers. | | +| `phone` | list[[PhoneNumber](../../models/shared/phonenumber.md)] | :heavy_minus_sign: | An array of Phone numbers. | | | `status` | [CustomerStatus](../../models/shared/customerstatus.md) | :heavy_check_mark: | Status of customer. | | \ No newline at end of file diff --git a/lending/docs/models/shared/items.md b/lending/docs/models/shared/items.md index ef04505d8..22094dce2 100755 --- a/lending/docs/models/shared/items.md +++ b/lending/docs/models/shared/items.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `number` | *str* | :heavy_check_mark: | A phone number. | +44 25691 154789 | -| `type` | [PhoneNumberType](../../models/shared/phonenumbertype.md) | :heavy_check_mark: | The type of phone number | | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `amount` | *Decimal* | :heavy_check_mark: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/lending/docs/models/shared/accountingcompanyinfophone.md b/lending/docs/models/shared/phonenumber.md similarity index 97% rename from lending/docs/models/shared/accountingcompanyinfophone.md rename to lending/docs/models/shared/phonenumber.md index 37e38f888..252898c68 100755 --- a/lending/docs/models/shared/accountingcompanyinfophone.md +++ b/lending/docs/models/shared/phonenumber.md @@ -1,4 +1,4 @@ -# AccountingCompanyInfoPhone +# PhoneNumber ## Fields diff --git a/lending/docs/models/shared/weblink.md b/lending/docs/models/shared/weblink.md new file mode 100755 index 000000000..a61aba7f3 --- /dev/null +++ b/lending/docs/models/shared/weblink.md @@ -0,0 +1,11 @@ +# WebLink + +Weblink associated with the company. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `type` | [Optional[WebLinkType]](../../models/shared/weblinktype.md) | :heavy_minus_sign: | The type of the weblink. | +| `url` | *Optional[str]* | :heavy_minus_sign: | The full URL for the weblink. | \ No newline at end of file diff --git a/lending/docs/models/shared/weblinksitems.md b/lending/docs/models/shared/weblinksitems.md deleted file mode 100755 index 7720b76b1..000000000 --- a/lending/docs/models/shared/weblinksitems.md +++ /dev/null @@ -1,11 +0,0 @@ -# WebLinksitems - -Weblink associated with the company. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `type` | [Optional[ItemsType]](../../models/shared/itemstype.md) | :heavy_minus_sign: | The type of the weblink. | -| `url` | *Optional[str]* | :heavy_minus_sign: | The full URL for the weblink. | \ No newline at end of file diff --git a/lending/docs/models/shared/itemstype.md b/lending/docs/models/shared/weblinktype.md similarity index 92% rename from lending/docs/models/shared/itemstype.md rename to lending/docs/models/shared/weblinktype.md index ece045f0b..b64167deb 100755 --- a/lending/docs/models/shared/itemstype.md +++ b/lending/docs/models/shared/weblinktype.md @@ -1,4 +1,4 @@ -# ItemsType +# WebLinkType The type of the weblink. diff --git a/lending/docs/models/shared/withholdingtaxitems.md b/lending/docs/models/shared/withholdingtaxitems.md deleted file mode 100755 index 6a0c34fb3..000000000 --- a/lending/docs/models/shared/withholdingtaxitems.md +++ /dev/null @@ -1,9 +0,0 @@ -# WithholdingTaxitems - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `amount` | *Decimal* | :heavy_check_mark: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/lending/docs/models/webhooks/accountcategoriesupdatedresponse.md b/lending/docs/models/webhooks/accountcategoriesupdatedresponse.md new file mode 100755 index 000000000..b9e4a9611 --- /dev/null +++ b/lending/docs/models/webhooks/accountcategoriesupdatedresponse.md @@ -0,0 +1,10 @@ +# AccountCategoriesUpdatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/lending/docs/models/webhooks/clientratelimitreachedresponse.md b/lending/docs/models/webhooks/clientratelimitreachedresponse.md new file mode 100755 index 000000000..a5368aedf --- /dev/null +++ b/lending/docs/models/webhooks/clientratelimitreachedresponse.md @@ -0,0 +1,10 @@ +# ClientRateLimitReachedResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/lending/docs/models/webhooks/clientratelimitresetresponse.md b/lending/docs/models/webhooks/clientratelimitresetresponse.md new file mode 100755 index 000000000..d5db35b1b --- /dev/null +++ b/lending/docs/models/webhooks/clientratelimitresetresponse.md @@ -0,0 +1,10 @@ +# ClientRateLimitResetResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | N/A | +| `status_code` | *int* | :heavy_check_mark: | N/A | +| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/lending/docs/sdks/accountingbankdata/README.md b/lending/docs/sdks/accountingbankdata/README.md index 3d4983e7b..b8729cc65 100755 --- a/lending/docs/sdks/accountingbankdata/README.md +++ b/lending/docs/sdks/accountingbankdata/README.md @@ -1,4 +1,4 @@ -# accounting_bank_data +# AccountingBankData ## Overview diff --git a/lending/docs/sdks/accountingbankdataaccounts/README.md b/lending/docs/sdks/accountingbankdataaccounts/README.md index 7c89948a2..e968312c8 100755 --- a/lending/docs/sdks/accountingbankdataaccounts/README.md +++ b/lending/docs/sdks/accountingbankdataaccounts/README.md @@ -1,4 +1,4 @@ -# accounting_bank_data_accounts +# AccountingBankData.Accounts ### Available Operations @@ -34,7 +34,7 @@ req = operations.GetAccountingBankAccountRequest( connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', ) -res = s.accounting_bank_data_accounts.get(req) +res = s.accounting_bank_data.accounts.get(req) if res.accounting_bank_account is not None: # handle response @@ -83,7 +83,7 @@ req = operations.ListAccountingBankAccountsRequest( query='nulla', ) -res = s.accounting_bank_data_accounts.list(req) +res = s.accounting_bank_data.accounts.list(req) if res.accounting_bank_accounts is not None: # handle response diff --git a/lending/docs/sdks/accountspayable/README.md b/lending/docs/sdks/accountspayable/README.md index 4162314ff..733976f94 100755 --- a/lending/docs/sdks/accountspayable/README.md +++ b/lending/docs/sdks/accountspayable/README.md @@ -1,4 +1,4 @@ -# accounts_payable +# AccountsPayable ### Available Operations diff --git a/lending/docs/sdks/accountspayablebillcreditnotes/README.md b/lending/docs/sdks/accountspayablebillcreditnotes/README.md index 5b22ba48f..d427b0feb 100755 --- a/lending/docs/sdks/accountspayablebillcreditnotes/README.md +++ b/lending/docs/sdks/accountspayablebillcreditnotes/README.md @@ -1,4 +1,4 @@ -# accounts_payable_bill_credit_notes +# AccountsPayable.BillCreditNotes ### Available Operations @@ -33,7 +33,7 @@ req = operations.GetAccountingBillCreditNoteRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) -res = s.accounts_payable_bill_credit_notes.get(req) +res = s.accounts_payable.bill_credit_notes.get(req) if res.accounting_bill_credit_note is not None: # handle response @@ -81,7 +81,7 @@ req = operations.ListAccountingBillCreditNotesRequest( query='minus', ) -res = s.accounts_payable_bill_credit_notes.list(req) +res = s.accounts_payable.bill_credit_notes.list(req) if res.accounting_bill_credit_notes is not None: # handle response diff --git a/lending/docs/sdks/accountspayablebillpayments/README.md b/lending/docs/sdks/accountspayablebillpayments/README.md index 0f4ec6a9b..87d2b0fd6 100755 --- a/lending/docs/sdks/accountspayablebillpayments/README.md +++ b/lending/docs/sdks/accountspayablebillpayments/README.md @@ -1,4 +1,4 @@ -# accounts_payable_bill_payments +# AccountsPayable.BillPayments ### Available Operations @@ -33,7 +33,7 @@ req = operations.GetAccountingBillPaymentRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) -res = s.accounts_payable_bill_payments.get(req) +res = s.accounts_payable.bill_payments.get(req) if res.accounting_bill_payment is not None: # handle response @@ -81,7 +81,7 @@ req = operations.ListAccountingBillPaymentsRequest( query='voluptatum', ) -res = s.accounts_payable_bill_payments.list(req) +res = s.accounts_payable.bill_payments.list(req) if res.accounting_bill_payments is not None: # handle response diff --git a/lending/docs/sdks/accountspayablebills/README.md b/lending/docs/sdks/accountspayablebills/README.md index 235eb1b74..53a541e49 100755 --- a/lending/docs/sdks/accountspayablebills/README.md +++ b/lending/docs/sdks/accountspayablebills/README.md @@ -1,4 +1,4 @@ -# accounts_payable_bills +# AccountsPayable.Bills ### Available Operations @@ -36,7 +36,7 @@ req = operations.DownloadAccountingBillAttachmentRequest( connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', ) -res = s.accounts_payable_bills.download_attachment(req) +res = s.accounts_payable.bills.download_attachment(req) if res.data is not None: # handle response @@ -83,7 +83,7 @@ req = operations.GetAccountingBillRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) -res = s.accounts_payable_bills.get(req) +res = s.accounts_payable.bills.get(req) if res.accounting_bill is not None: # handle response @@ -130,7 +130,7 @@ req = operations.GetAccountingBillAttachmentRequest( connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', ) -res = s.accounts_payable_bills.get_attachment(req) +res = s.accounts_payable.bills.get_attachment(req) if res.accounting_attachment is not None: # handle response @@ -178,7 +178,7 @@ req = operations.ListAccountingBillsRequest( query='recusandae', ) -res = s.accounts_payable_bills.list(req) +res = s.accounts_payable.bills.list(req) if res.accounting_bills is not None: # handle response @@ -224,7 +224,7 @@ req = operations.ListAccountingBillAttachmentsRequest( connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', ) -res = s.accounts_payable_bills.list_attachments(req) +res = s.accounts_payable.bills.list_attachments(req) if res.attachments is not None: # handle response diff --git a/lending/docs/sdks/accountspayablesuppliers/README.md b/lending/docs/sdks/accountspayablesuppliers/README.md index 7d1fdc04e..cc6278070 100755 --- a/lending/docs/sdks/accountspayablesuppliers/README.md +++ b/lending/docs/sdks/accountspayablesuppliers/README.md @@ -1,4 +1,4 @@ -# accounts_payable_suppliers +# AccountsPayable.Suppliers ### Available Operations @@ -36,7 +36,7 @@ req = operations.DownloadAccountingSupplierAttachmentRequest( supplier_id='ab', ) -res = s.accounts_payable_suppliers.download_attachment(req) +res = s.accounts_payable.suppliers.download_attachment(req) if res.data is not None: # handle response @@ -83,7 +83,7 @@ req = operations.GetAccountingSupplierRequest( supplier_id='quis', ) -res = s.accounts_payable_suppliers.get(req) +res = s.accounts_payable.suppliers.get(req) if res.accounting_supplier is not None: # handle response @@ -130,7 +130,7 @@ req = operations.GetAccountingSupplierAttachmentRequest( supplier_id='veritatis', ) -res = s.accounts_payable_suppliers.get_attachment(req) +res = s.accounts_payable.suppliers.get_attachment(req) if res.accounting_attachment is not None: # handle response @@ -178,7 +178,7 @@ req = operations.ListAccountingSuppliersRequest( query='deserunt', ) -res = s.accounts_payable_suppliers.list(req) +res = s.accounts_payable.suppliers.list(req) if res.accounting_suppliers is not None: # handle response @@ -224,7 +224,7 @@ req = operations.ListAccountingSupplierAttachmentsRequest( supplier_id='perferendis', ) -res = s.accounts_payable_suppliers.list_attachments(req) +res = s.accounts_payable.suppliers.list_attachments(req) if res.attachments is not None: # handle response diff --git a/lending/docs/sdks/accountsreceivable/README.md b/lending/docs/sdks/accountsreceivable/README.md index 09585e503..c265bf25e 100755 --- a/lending/docs/sdks/accountsreceivable/README.md +++ b/lending/docs/sdks/accountsreceivable/README.md @@ -1,4 +1,4 @@ -# accounts_receivable +# AccountsReceivable ### Available Operations diff --git a/lending/docs/sdks/accountsreceivablecreditnotes/README.md b/lending/docs/sdks/accountsreceivablecreditnotes/README.md index 6d0588f38..9a8f18322 100755 --- a/lending/docs/sdks/accountsreceivablecreditnotes/README.md +++ b/lending/docs/sdks/accountsreceivablecreditnotes/README.md @@ -1,4 +1,4 @@ -# accounts_receivable_credit_notes +# AccountsReceivable.CreditNotes ### Available Operations @@ -33,7 +33,7 @@ req = operations.GetAccountingCreditNoteRequest( credit_note_id='ipsam', ) -res = s.accounts_receivable_credit_notes.get(req) +res = s.accounts_receivable.credit_notes.get(req) if res.accounting_credit_note is not None: # handle response @@ -81,7 +81,7 @@ req = operations.ListAccountingCreditNotesRequest( query='repellendus', ) -res = s.accounts_receivable_credit_notes.list(req) +res = s.accounts_receivable.credit_notes.list(req) if res.accounting_credit_notes is not None: # handle response diff --git a/lending/docs/sdks/accountsreceivablecustomers/README.md b/lending/docs/sdks/accountsreceivablecustomers/README.md index 506f5a38c..b89769752 100755 --- a/lending/docs/sdks/accountsreceivablecustomers/README.md +++ b/lending/docs/sdks/accountsreceivablecustomers/README.md @@ -1,4 +1,4 @@ -# accounts_receivable_customers +# AccountsReceivable.Customers ### Available Operations @@ -36,7 +36,7 @@ req = operations.DownloadAccountingCustomerAttachmentRequest( customer_id='sapiente', ) -res = s.accounts_receivable_customers.download_attachment(req) +res = s.accounts_receivable.customers.download_attachment(req) if res.data is not None: # handle response @@ -83,7 +83,7 @@ req = operations.GetAccountingCustomerRequest( customer_id='quo', ) -res = s.accounts_receivable_customers.get(req) +res = s.accounts_receivable.customers.get(req) if res.accounting_customer is not None: # handle response @@ -130,7 +130,7 @@ req = operations.GetAccountingCustomerAttachmentRequest( customer_id='odit', ) -res = s.accounts_receivable_customers.get_attachment(req) +res = s.accounts_receivable.customers.get_attachment(req) if res.accounting_attachment is not None: # handle response @@ -178,7 +178,7 @@ req = operations.ListAccountingCustomersRequest( query='at', ) -res = s.accounts_receivable_customers.list(req) +res = s.accounts_receivable.customers.list(req) if res.accounting_customers is not None: # handle response @@ -224,7 +224,7 @@ req = operations.ListAccountingCustomerAttachmentsRequest( customer_id='at', ) -res = s.accounts_receivable_customers.list_attachments(req) +res = s.accounts_receivable.customers.list_attachments(req) if res.attachments is not None: # handle response diff --git a/lending/docs/sdks/accountsreceivabledirectincomes/README.md b/lending/docs/sdks/accountsreceivabledirectincomes/README.md index aef830ec5..f20859477 100755 --- a/lending/docs/sdks/accountsreceivabledirectincomes/README.md +++ b/lending/docs/sdks/accountsreceivabledirectincomes/README.md @@ -1,4 +1,4 @@ -# accounts_receivable_direct_incomes +# AccountsReceivable.DirectIncomes ### Available Operations @@ -36,7 +36,7 @@ req = operations.DownloadAccountingDirectIncomeAttachmentRequest( direct_income_id='maiores', ) -res = s.accounts_receivable_direct_incomes.download_attachment(req) +res = s.accounts_receivable.direct_incomes.download_attachment(req) if res.data is not None: # handle response @@ -84,7 +84,7 @@ req = operations.GetAccountingDirectIncomeRequest( direct_income_id='molestiae', ) -res = s.accounts_receivable_direct_incomes.get(req) +res = s.accounts_receivable.direct_incomes.get(req) if res.accounting_direct_income is not None: # handle response @@ -132,7 +132,7 @@ req = operations.GetAccountingDirectIncomeAttachmentRequest( timeout_in_minutes=800911, ) -res = s.accounts_receivable_direct_incomes.get_attachment(req) +res = s.accounts_receivable.direct_incomes.get_attachment(req) if res.accounting_attachment is not None: # handle response @@ -181,7 +181,7 @@ req = operations.ListAccountingDirectIncomesRequest( query='esse', ) -res = s.accounts_receivable_direct_incomes.list(req) +res = s.accounts_receivable.direct_incomes.list(req) if res.accounting_direct_incomes is not None: # handle response @@ -227,7 +227,7 @@ req = operations.ListAccountingDirectIncomeAttachmentsRequest( direct_income_id='totam', ) -res = s.accounts_receivable_direct_incomes.list_attachments(req) +res = s.accounts_receivable.direct_incomes.list_attachments(req) if res.attachments is not None: # handle response diff --git a/lending/docs/sdks/accountsreceivableinvoices/README.md b/lending/docs/sdks/accountsreceivableinvoices/README.md index 87e911564..7c4506ad8 100755 --- a/lending/docs/sdks/accountsreceivableinvoices/README.md +++ b/lending/docs/sdks/accountsreceivableinvoices/README.md @@ -1,4 +1,4 @@ -# accounts_receivable_invoices +# AccountsReceivable.Invoices ### Available Operations @@ -38,7 +38,7 @@ req = operations.DownloadAccountingInvoiceAttachmentRequest( invoice_id='porro', ) -res = s.accounts_receivable_invoices.download_attachment(req) +res = s.accounts_receivable.invoices.download_attachment(req) if res.data is not None: # handle response @@ -78,7 +78,7 @@ req = operations.DownloadAccountingInvoicePdfRequest( invoice_id='dolorum', ) -res = s.accounts_receivable_invoices.download_pdf(req) +res = s.accounts_receivable.invoices.download_pdf(req) if res.data is not None: # handle response @@ -124,7 +124,7 @@ req = operations.GetAccountingInvoiceRequest( invoice_id='dicta', ) -res = s.accounts_receivable_invoices.get(req) +res = s.accounts_receivable.invoices.get(req) if res.accounting_invoice is not None: # handle response @@ -171,7 +171,7 @@ req = operations.GetAccountingInvoiceAttachmentRequest( invoice_id='nam', ) -res = s.accounts_receivable_invoices.get_attachment(req) +res = s.accounts_receivable.invoices.get_attachment(req) if res.accounting_attachment is not None: # handle response @@ -225,7 +225,7 @@ req = operations.ListAccountingInvoicesRequest( query='officia', ) -res = s.accounts_receivable_invoices.list(req) +res = s.accounts_receivable.invoices.list(req) if res.accounting_invoices is not None: # handle response @@ -271,7 +271,7 @@ req = operations.ListAccountingInvoiceAttachmentsRequest( invoice_id='occaecati', ) -res = s.accounts_receivable_invoices.list_attachments(req) +res = s.accounts_receivable.invoices.list_attachments(req) if res.attachments is not None: # handle response @@ -313,7 +313,7 @@ req = operations.ListReconciledInvoicesRequest( query='fugit', ) -res = s.accounts_receivable_invoices.list_reconciled(req) +res = s.accounts_receivable.invoices.list_reconciled(req) if res.enhanced_invoices_report is not None: # handle response diff --git a/lending/docs/sdks/accountsreceivablepayments/README.md b/lending/docs/sdks/accountsreceivablepayments/README.md index 9b6d125aa..b4387b4e4 100755 --- a/lending/docs/sdks/accountsreceivablepayments/README.md +++ b/lending/docs/sdks/accountsreceivablepayments/README.md @@ -1,4 +1,4 @@ -# accounts_receivable_payments +# AccountsReceivable.Payments ### Available Operations @@ -33,7 +33,7 @@ req = operations.GetAccountingPaymentRequest( payment_id='deleniti', ) -res = s.accounts_receivable_payments.get(req) +res = s.accounts_receivable.payments.get(req) if res.accounting_payment is not None: # handle response @@ -81,7 +81,7 @@ req = operations.ListAccountingPaymentsRequest( query='hic', ) -res = s.accounts_receivable_payments.list(req) +res = s.accounts_receivable.payments.list(req) if res.accounting_payments is not None: # handle response diff --git a/lending/docs/sdks/accountsreceivablereports/README.md b/lending/docs/sdks/accountsreceivablereports/README.md index 133f30bad..7f88f6abc 100755 --- a/lending/docs/sdks/accountsreceivablereports/README.md +++ b/lending/docs/sdks/accountsreceivablereports/README.md @@ -1,4 +1,4 @@ -# accounts_receivable_reports +# AccountsReceivable.Reports ### Available Operations @@ -31,7 +31,7 @@ req = operations.GetAccountingAgedCreditorsReportRequest( report_date=dateutil.parser.parse('2022-12-31').date(), ) -res = s.accounts_receivable_reports.get_aged_creditors(req) +res = s.accounts_receivable.reports.get_aged_creditors(req) if res.accounting_aged_creditor_report is not None: # handle response @@ -74,7 +74,7 @@ req = operations.GetAccountingAgedDebtorsReportRequest( report_date=dateutil.parser.parse('2022-12-31').date(), ) -res = s.accounts_receivable_reports.get_aged_debtors(req) +res = s.accounts_receivable.reports.get_aged_debtors(req) if res.accounting_aged_debtor_report is not None: # handle response @@ -113,7 +113,7 @@ req = operations.IsAgedCreditorsReportAvailableRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) -res = s.accounts_receivable_reports.is_aged_creditors_available(req) +res = s.accounts_receivable.reports.is_aged_creditors_available(req) if res.is_aged_creditors_report_available_200_application_json_boolean is not None: # handle response @@ -152,7 +152,7 @@ req = operations.IsAgedDebtorsReportAvailableRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) -res = s.accounts_receivable_reports.is_aged_debtors_available(req) +res = s.accounts_receivable.reports.is_aged_debtors_available(req) if res.is_aged_debtors_report_available_200_application_json_boolean is not None: # handle response diff --git a/lending/docs/sdks/banking/README.md b/lending/docs/sdks/banking/README.md index 6b0a6cae7..c902d930c 100755 --- a/lending/docs/sdks/banking/README.md +++ b/lending/docs/sdks/banking/README.md @@ -1,4 +1,4 @@ -# banking +# Banking ### Available Operations diff --git a/lending/docs/sdks/bankingaccountbalances/README.md b/lending/docs/sdks/bankingaccountbalances/README.md index 8561f3fe6..3517609ec 100755 --- a/lending/docs/sdks/bankingaccountbalances/README.md +++ b/lending/docs/sdks/bankingaccountbalances/README.md @@ -1,4 +1,4 @@ -# banking_account_balances +# Banking.AccountBalances ### Available Operations @@ -34,7 +34,7 @@ req = operations.ListBankingAccountBalancesRequest( query='optio', ) -res = s.banking_account_balances.list(req) +res = s.banking.account_balances.list(req) if res.banking_account_balances is not None: # handle response diff --git a/lending/docs/sdks/bankingcategorizedstatement/README.md b/lending/docs/sdks/bankingcategorizedstatement/README.md index 9df5a6d71..9482b2d38 100755 --- a/lending/docs/sdks/bankingcategorizedstatement/README.md +++ b/lending/docs/sdks/bankingcategorizedstatement/README.md @@ -1,4 +1,4 @@ -# banking_categorized_statement +# Banking.CategorizedStatement ### Available Operations @@ -31,7 +31,7 @@ req = operations.GetCategorizedBankStatementRequest( query='commodi', ) -res = s.banking_categorized_statement.get(req) +res = s.banking.categorized_statement.get(req) if res.enhanced_cash_flow_transactions is not None: # handle response diff --git a/lending/docs/sdks/bankingtransactioncategories/README.md b/lending/docs/sdks/bankingtransactioncategories/README.md index 9f31296eb..c96fd584c 100755 --- a/lending/docs/sdks/bankingtransactioncategories/README.md +++ b/lending/docs/sdks/bankingtransactioncategories/README.md @@ -1,4 +1,4 @@ -# banking_transaction_categories +# Banking.TransactionCategories ### Available Operations @@ -34,7 +34,7 @@ req = operations.GetBankingTransactionCategoryRequest( transaction_category_id='molestiae', ) -res = s.banking_transaction_categories.get(req) +res = s.banking.transaction_categories.get(req) if res.banking_transaction_category is not None: # handle response @@ -83,7 +83,7 @@ req = operations.ListBankingTransactionCategoriesRequest( query='modi', ) -res = s.banking_transaction_categories.list(req) +res = s.banking.transaction_categories.list(req) if res.banking_transaction_categories is not None: # handle response diff --git a/lending/docs/sdks/companies/README.md b/lending/docs/sdks/companies/README.md index 874b7052a..d5d3a2707 100755 --- a/lending/docs/sdks/companies/README.md +++ b/lending/docs/sdks/companies/README.md @@ -1,4 +1,4 @@ -# companies +# Companies ## Overview diff --git a/lending/docs/sdks/companyinfo/README.md b/lending/docs/sdks/companyinfo/README.md index 0c4b54fcb..86d22e910 100755 --- a/lending/docs/sdks/companyinfo/README.md +++ b/lending/docs/sdks/companyinfo/README.md @@ -1,4 +1,4 @@ -# company_info +# CompanyInfo ## Overview diff --git a/lending/docs/sdks/connections/README.md b/lending/docs/sdks/connections/README.md index 5ed88f228..ead59a29e 100755 --- a/lending/docs/sdks/connections/README.md +++ b/lending/docs/sdks/connections/README.md @@ -1,4 +1,4 @@ -# connections +# Connections ## Overview diff --git a/lending/docs/sdks/dataintegrity/README.md b/lending/docs/sdks/dataintegrity/README.md index 90d2d3bbd..048bd0224 100755 --- a/lending/docs/sdks/dataintegrity/README.md +++ b/lending/docs/sdks/dataintegrity/README.md @@ -1,4 +1,4 @@ -# data_integrity +# DataIntegrity ## Overview diff --git a/lending/docs/sdks/excelreports/README.md b/lending/docs/sdks/excelreports/README.md index de44559bf..330982ca8 100755 --- a/lending/docs/sdks/excelreports/README.md +++ b/lending/docs/sdks/excelreports/README.md @@ -1,4 +1,4 @@ -# excel_reports +# ExcelReports ## Overview diff --git a/lending/docs/sdks/fileupload/README.md b/lending/docs/sdks/fileupload/README.md index 927e7885a..92c2cd52e 100755 --- a/lending/docs/sdks/fileupload/README.md +++ b/lending/docs/sdks/fileupload/README.md @@ -1,4 +1,4 @@ -# file_upload +# FileUpload ## Overview diff --git a/lending/docs/sdks/financialstatements/README.md b/lending/docs/sdks/financialstatements/README.md index b8d249679..7c85348b8 100755 --- a/lending/docs/sdks/financialstatements/README.md +++ b/lending/docs/sdks/financialstatements/README.md @@ -1,4 +1,4 @@ -# financial_statements +# FinancialStatements ### Available Operations diff --git a/lending/docs/sdks/financialstatementsaccounts/README.md b/lending/docs/sdks/financialstatementsaccounts/README.md index 2529ce390..fa7b495de 100755 --- a/lending/docs/sdks/financialstatementsaccounts/README.md +++ b/lending/docs/sdks/financialstatementsaccounts/README.md @@ -1,4 +1,4 @@ -# financial_statements_accounts +# FinancialStatements.Accounts ### Available Operations @@ -33,7 +33,7 @@ req = operations.GetAccountingAccountRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) -res = s.financial_statements_accounts.get(req) +res = s.financial_statements.accounts.get(req) if res.accounting_account is not None: # handle response @@ -80,7 +80,7 @@ req = operations.ListAccountingAccountsRequest( query='esse', ) -res = s.financial_statements_accounts.list(req) +res = s.financial_statements.accounts.list(req) if res.accounting_accounts is not None: # handle response diff --git a/lending/docs/sdks/financialstatementsbalancesheet/README.md b/lending/docs/sdks/financialstatementsbalancesheet/README.md index 3f452648c..e56b7561a 100755 --- a/lending/docs/sdks/financialstatementsbalancesheet/README.md +++ b/lending/docs/sdks/financialstatementsbalancesheet/README.md @@ -1,4 +1,4 @@ -# financial_statements_balance_sheet +# FinancialStatements.BalanceSheet ### Available Operations @@ -28,7 +28,7 @@ req = operations.GetAccountingBalanceSheetRequest( start_month='2022-10-23T00:00:00.000Z', ) -res = s.financial_statements_balance_sheet.get(req) +res = s.financial_statements.balance_sheet.get(req) if res.accounting_balance_sheet is not None: # handle response @@ -71,7 +71,7 @@ req = operations.GetCategorizedBalanceSheetStatementRequest( report_date='29-09-2020', ) -res = s.financial_statements_balance_sheet.get_categorized_accounts(req) +res = s.financial_statements.balance_sheet.get_categorized_accounts(req) if res.enhanced_financial_report is not None: # handle response diff --git a/lending/docs/sdks/financialstatementscashflow/README.md b/lending/docs/sdks/financialstatementscashflow/README.md index 1035d508a..92a61c7f8 100755 --- a/lending/docs/sdks/financialstatementscashflow/README.md +++ b/lending/docs/sdks/financialstatementscashflow/README.md @@ -1,4 +1,4 @@ -# financial_statements_cash_flow +# FinancialStatements.CashFlow ### Available Operations @@ -27,7 +27,7 @@ req = operations.GetAccountingCashFlowStatementRequest( start_month='2022-10-23T00:00:00.000Z', ) -res = s.financial_statements_cash_flow.get(req) +res = s.financial_statements.cash_flow.get(req) if res.accounting_cash_flow_statement is not None: # handle response diff --git a/lending/docs/sdks/financialstatementsprofitandloss/README.md b/lending/docs/sdks/financialstatementsprofitandloss/README.md index 74b59e5f9..e9aad69d8 100755 --- a/lending/docs/sdks/financialstatementsprofitandloss/README.md +++ b/lending/docs/sdks/financialstatementsprofitandloss/README.md @@ -1,4 +1,4 @@ -# financial_statements_profit_and_loss +# FinancialStatements.ProfitAndLoss ### Available Operations @@ -28,7 +28,7 @@ req = operations.GetAccountingProfitAndLossRequest( start_month='2022-10-23T00:00:00.000Z', ) -res = s.financial_statements_profit_and_loss.get(req) +res = s.financial_statements.profit_and_loss.get(req) if res.accounting_profit_and_loss_report is not None: # handle response @@ -71,7 +71,7 @@ req = operations.GetCategorizedProfitAndLossStatementRequest( report_date='29-09-2020', ) -res = s.financial_statements_profit_and_loss.get_categorized_accounts(req) +res = s.financial_statements.profit_and_loss.get_categorized_accounts(req) if res.enhanced_financial_report is not None: # handle response diff --git a/lending/docs/sdks/liabilities/README.md b/lending/docs/sdks/liabilities/README.md index 2924ca4ef..6f359f8bc 100755 --- a/lending/docs/sdks/liabilities/README.md +++ b/lending/docs/sdks/liabilities/README.md @@ -1,4 +1,4 @@ -# liabilities +# Liabilities ## Overview diff --git a/lending/docs/sdks/managedata/README.md b/lending/docs/sdks/managedata/README.md index ca04acab8..195d96468 100755 --- a/lending/docs/sdks/managedata/README.md +++ b/lending/docs/sdks/managedata/README.md @@ -1,4 +1,4 @@ -# manage_data +# ManageData ### Available Operations diff --git a/lending/docs/sdks/managedatapulloperations/README.md b/lending/docs/sdks/managedatapulloperations/README.md index 8a6f8dd64..b614ea798 100755 --- a/lending/docs/sdks/managedatapulloperations/README.md +++ b/lending/docs/sdks/managedatapulloperations/README.md @@ -1,4 +1,4 @@ -# manage_data_pull_operations +# ManageData.PullOperations ### Available Operations @@ -26,7 +26,7 @@ req = operations.GetPullOperationRequest( dataset_id='eaed9f0f-e77b-4bc9-a58f-ab8b4b99ab18', ) -res = s.manage_data_pull_operations.get(req) +res = s.manage_data.pull_operations.get(req) if res.pull_operation is not None: # handle response @@ -69,7 +69,7 @@ req = operations.ListPullOperationsRequest( query='natus', ) -res = s.manage_data_pull_operations.list(req) +res = s.manage_data.pull_operations.list(req) if res.pull_operations is not None: # handle response diff --git a/lending/docs/sdks/managedatarefresh/README.md b/lending/docs/sdks/managedatarefresh/README.md index 93c7e2b5b..dbbc12291 100755 --- a/lending/docs/sdks/managedatarefresh/README.md +++ b/lending/docs/sdks/managedatarefresh/README.md @@ -1,4 +1,4 @@ -# manage_data_refresh +# ManageData.Refresh ### Available Operations @@ -29,7 +29,7 @@ req = operations.RefreshAllDataTypesRequest( company_id='8a210b68-6988-11ed-a1eb-0242ac120002', ) -res = s.manage_data_refresh.all_data_types(req) +res = s.manage_data.refresh.all_data_types(req) if res.status_code == 200: # handle response @@ -72,7 +72,7 @@ req = operations.RefreshDataTypeRequest( data_type=shared.DataType.INVOICES, ) -res = s.manage_data_refresh.data_type(req) +res = s.manage_data.refresh.data_type(req) if res.pull_operation is not None: # handle response diff --git a/lending/docs/sdks/sales/README.md b/lending/docs/sdks/sales/README.md index eef918ce6..da2995e18 100755 --- a/lending/docs/sdks/sales/README.md +++ b/lending/docs/sdks/sales/README.md @@ -1,4 +1,4 @@ -# sales +# Sales ### Available Operations diff --git a/lending/docs/sdks/salespaymentmethods/README.md b/lending/docs/sdks/salespaymentmethods/README.md index 8106b007a..254ddc826 100755 --- a/lending/docs/sdks/salespaymentmethods/README.md +++ b/lending/docs/sdks/salespaymentmethods/README.md @@ -1,4 +1,4 @@ -# sales_payment_methods +# Sales.PaymentMethods ### Available Operations @@ -34,7 +34,7 @@ req = operations.GetCommercePaymentMethodRequest( payment_method_id='velit', ) -res = s.sales_payment_methods.get(req) +res = s.sales.payment_methods.get(req) if res.commerce_payment_method is not None: # handle response @@ -83,7 +83,7 @@ req = operations.ListCommercePaymentMethodsRequest( query='error', ) -res = s.sales_payment_methods.list(req) +res = s.sales.payment_methods.list(req) if res.commerce_payment_methods is not None: # handle response diff --git a/lending/docs/sdks/salesproductcategories/README.md b/lending/docs/sdks/salesproductcategories/README.md index 090293ff4..6d19a9c55 100755 --- a/lending/docs/sdks/salesproductcategories/README.md +++ b/lending/docs/sdks/salesproductcategories/README.md @@ -1,4 +1,4 @@ -# sales_product_categories +# Sales.ProductCategories ### Available Operations @@ -34,7 +34,7 @@ req = operations.GetCommerceProductCategoryRequest( product_id='vitae', ) -res = s.sales_product_categories.get(req) +res = s.sales.product_categories.get(req) if res.commerce_product_category is not None: # handle response @@ -83,7 +83,7 @@ req = operations.ListCommerceProductCategoriesRequest( query='laborum', ) -res = s.sales_product_categories.list(req) +res = s.sales.product_categories.list(req) if res.commerce_product_categories is not None: # handle response diff --git a/lending/docs/sdks/transactions/README.md b/lending/docs/sdks/transactions/README.md index e0f6f9b3d..6b3774915 100755 --- a/lending/docs/sdks/transactions/README.md +++ b/lending/docs/sdks/transactions/README.md @@ -1,4 +1,4 @@ -# transactions +# Transactions ### Available Operations diff --git a/lending/docs/sdks/transactionsaccounttransactions/README.md b/lending/docs/sdks/transactionsaccounttransactions/README.md index c6bca63ec..7ef99f39e 100755 --- a/lending/docs/sdks/transactionsaccounttransactions/README.md +++ b/lending/docs/sdks/transactionsaccounttransactions/README.md @@ -1,4 +1,4 @@ -# transactions_account_transactions +# Transactions.AccountTransactions ### Available Operations @@ -34,7 +34,7 @@ req = operations.GetAccountingAccountTransactionRequest( connection_id='2e9d2c44-f675-40ba-8049-353bfcb5e171', ) -res = s.transactions_account_transactions.get(req) +res = s.transactions.account_transactions.get(req) if res.accounting_account_transaction is not None: # handle response @@ -83,7 +83,7 @@ req = operations.ListAccountingAccountTransactionsRequest( query='error', ) -res = s.transactions_account_transactions.list(req) +res = s.transactions.account_transactions.list(req) if res.accounting_account_transactions is not None: # handle response diff --git a/lending/docs/sdks/transactionsdirectcosts/README.md b/lending/docs/sdks/transactionsdirectcosts/README.md index a5630f83e..2387dc32c 100755 --- a/lending/docs/sdks/transactionsdirectcosts/README.md +++ b/lending/docs/sdks/transactionsdirectcosts/README.md @@ -1,4 +1,4 @@ -# transactions_direct_costs +# Transactions.DirectCosts ### Available Operations @@ -36,7 +36,7 @@ req = operations.DownloadAccountingDirectCostAttachmentRequest( direct_cost_id='temporibus', ) -res = s.transactions_direct_costs.download_attachment(req) +res = s.transactions.direct_costs.download_attachment(req) if res.data is not None: # handle response @@ -84,7 +84,7 @@ req = operations.GetAccountingDirectCostRequest( direct_cost_id='laborum', ) -res = s.transactions_direct_costs.get(req) +res = s.transactions.direct_costs.get(req) if res.accounting_direct_cost is not None: # handle response @@ -131,7 +131,7 @@ req = operations.GetAccountingDirectCostAttachmentRequest( direct_cost_id='quasi', ) -res = s.transactions_direct_costs.get_attachment(req) +res = s.transactions.direct_costs.get_attachment(req) if res.accounting_attachment is not None: # handle response @@ -180,7 +180,7 @@ req = operations.ListAccountingDirectCostsRequest( query='reiciendis', ) -res = s.transactions_direct_costs.list(req) +res = s.transactions.direct_costs.list(req) if res.accounting_direct_costs is not None: # handle response @@ -226,7 +226,7 @@ req = operations.ListAccountingDirectCostAttachmentsRequest( direct_cost_id='voluptatibus', ) -res = s.transactions_direct_costs.list_attachments(req) +res = s.transactions.direct_costs.list_attachments(req) if res.attachments is not None: # handle response diff --git a/lending/docs/sdks/transactionsjournalentries/README.md b/lending/docs/sdks/transactionsjournalentries/README.md index 655ffe8ee..2936b9736 100755 --- a/lending/docs/sdks/transactionsjournalentries/README.md +++ b/lending/docs/sdks/transactionsjournalentries/README.md @@ -1,4 +1,4 @@ -# transactions_journal_entries +# Transactions.JournalEntries ### Available Operations @@ -33,7 +33,7 @@ req = operations.GetAccountingJournalEntryRequest( journal_entry_id='vero', ) -res = s.transactions_journal_entries.get(req) +res = s.transactions.journal_entries.get(req) if res.accounting_journal_entry is not None: # handle response @@ -81,7 +81,7 @@ req = operations.ListAccountingJournalEntriesRequest( query='nihil', ) -res = s.transactions_journal_entries.list(req) +res = s.transactions.journal_entries.list(req) if res.accounting_journal_entries is not None: # handle response diff --git a/lending/files.gen b/lending/files.gen index 65107ee70..33b572163 100755 --- a/lending/files.gen +++ b/lending/files.gen @@ -200,11 +200,12 @@ src/codatlending/models/shared/dataconnectionerror.py src/codatlending/models/shared/companyrequestbody.py src/codatlending/models/shared/companies.py src/codatlending/models/shared/accountingcompanyinfo.py +src/codatlending/models/shared/weblink.py +src/codatlending/models/shared/phonenumber.py src/codatlending/models/shared/phonenumbertype.py +src/codatlending/models/shared/accountingaddress.py src/codatlending/models/shared/accountingaddresstype.py src/codatlending/models/shared/commercecompanyinfo.py -src/codatlending/models/shared/weblinksitems.py -src/codatlending/models/shared/items.py src/codatlending/models/shared/commerceaddress.py src/codatlending/models/shared/commerceaddresstype.py src/codatlending/models/shared/accountbalance.py @@ -239,7 +240,7 @@ src/codatlending/models/shared/loanref.py src/codatlending/models/shared/definitionsitemref.py src/codatlending/models/shared/loantransactionsreportinfo.py src/codatlending/models/shared/accountingbillcreditnote.py -src/codatlending/models/shared/withholdingtaxitems.py +src/codatlending/models/shared/items.py src/codatlending/models/shared/supplierref.py src/codatlending/models/shared/supplementaldata.py src/codatlending/models/shared/billcreditnotestatus.py @@ -268,7 +269,6 @@ src/codatlending/models/shared/accountingbills.py src/codatlending/models/shared/attachments.py src/codatlending/models/shared/accountingsupplier.py src/codatlending/models/shared/supplierstatus.py -src/codatlending/models/shared/addressesitems.py src/codatlending/models/shared/accountingsuppliers.py src/codatlending/models/shared/accountingcreditnote.py src/codatlending/models/shared/creditnotestatus.py @@ -418,7 +418,17 @@ src/codatlending/models/shared/accountingtransfer.py src/codatlending/models/shared/transferaccount.py src/codatlending/models/shared/accountingtransfers.py src/codatlending/models/shared/security.py +src/codatlending/models/shared/accountcategoriesupdatedwebhook.py +src/codatlending/models/shared/accountcategoriesupdatedwebhookdata.py +src/codatlending/models/shared/clientratelimitreachedwebhook.py +src/codatlending/models/shared/clientratelimitreachedwebhookdata.py +src/codatlending/models/shared/clientratelimitresetwebhook.py +src/codatlending/models/shared/clientratelimitresetwebhookdata.py src/codatlending/models/shared/__init__.py +src/codatlending/models/webhooks/account_categories_updated.py +src/codatlending/models/webhooks/client_rate_limit_reached.py +src/codatlending/models/webhooks/client_rate_limit_reset.py +src/codatlending/models/webhooks/__init__.py src/codatlending/models/errors/__init__.py docs/sdks/codatlending/README.md docs/models/utils/retryconfig.md @@ -738,17 +748,14 @@ docs/models/shared/dataconnectionstatus.md docs/models/shared/dataconnectionerror.md docs/models/shared/companyrequestbody.md docs/models/shared/companies.md -docs/models/shared/accountingcompanyinfoaccountingaddress.md -docs/models/shared/accountingcompanyinfophone.md -docs/models/shared/accountingcompanyinfoweblinktype.md -docs/models/shared/accountingcompanyinfoweblink.md docs/models/shared/accountingcompanyinfo.md +docs/models/shared/weblinktype.md +docs/models/shared/weblink.md +docs/models/shared/phonenumber.md docs/models/shared/phonenumbertype.md +docs/models/shared/accountingaddress.md docs/models/shared/accountingaddresstype.md docs/models/shared/commercecompanyinfo.md -docs/models/shared/itemstype.md -docs/models/shared/weblinksitems.md -docs/models/shared/items.md docs/models/shared/commerceaddress.md docs/models/shared/commerceaddresstype.md docs/models/shared/accountbalance.md @@ -784,7 +791,7 @@ docs/models/shared/loanref.md docs/models/shared/definitionsitemref.md docs/models/shared/loantransactionsreportinfo.md docs/models/shared/accountingbillcreditnote.md -docs/models/shared/withholdingtaxitems.md +docs/models/shared/items.md docs/models/shared/supplierref.md docs/models/shared/supplementaldata.md docs/models/shared/billcreditnotestatus.md @@ -818,7 +825,6 @@ docs/models/shared/accountingbills.md docs/models/shared/attachments.md docs/models/shared/accountingsupplier.md docs/models/shared/supplierstatus.md -docs/models/shared/addressesitems.md docs/models/shared/accountingsuppliers.md docs/models/shared/accountingcreditnote.md docs/models/shared/creditnotestatus.md @@ -978,4 +984,13 @@ docs/models/shared/accountingtransfer.md docs/models/shared/transferaccount.md docs/models/shared/accountingtransfers.md docs/models/shared/security.md +docs/models/shared/accountcategoriesupdatedwebhook.md +docs/models/shared/accountcategoriesupdatedwebhookdata.md +docs/models/shared/clientratelimitreachedwebhook.md +docs/models/shared/clientratelimitreachedwebhookdata.md +docs/models/shared/clientratelimitresetwebhook.md +docs/models/shared/clientratelimitresetwebhookdata.md +docs/models/webhooks/accountcategoriesupdatedresponse.md +docs/models/webhooks/clientratelimitreachedresponse.md +docs/models/webhooks/clientratelimitresetresponse.md .gitattributes \ No newline at end of file diff --git a/lending/gen.yaml b/lending/gen.yaml index 47004697e..655e1f6c8 100644 --- a/lending/gen.yaml +++ b/lending/gen.yaml @@ -1,16 +1,16 @@ configVersion: 1.0.0 management: - docChecksum: acfccf3d1d90cfcd2dff9d64c0cb4cdb + docChecksum: 982c021127b5297fc7c1c1779001c328 docVersion: 3.0.0 - speakeasyVersion: 1.83.2 - generationVersion: 2.109.3 + speakeasyVersion: 1.87.0 + generationVersion: 2.116.0 generation: sdkClassName: CodatLending singleTagPerOp: false telemetryEnabled: true features: python: - core: 2.85.4 + core: 2.85.5 deprecations: 2.81.1 examples: 2.81.2 globalSecurity: 2.81.1 @@ -19,7 +19,7 @@ features: nameOverrides: 2.81.1 retries: 2.82.0 python: - version: 4.0.0 + version: 4.1.0 author: Codat description: Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features. maxMethodParams: 0 diff --git a/lending/setup.py b/lending/setup.py index fe0aed6bc..cce2d6952 100755 --- a/lending/setup.py +++ b/lending/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="codat-lending", - version="3.1.0", + version="4.1.0", author="Codat", description="Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.", long_description=long_description, diff --git a/lending/src/codatlending/models/shared/__init__.py b/lending/src/codatlending/models/shared/__init__.py index f081736ef..e319d26ae 100755 --- a/lending/src/codatlending/models/shared/__init__.py +++ b/lending/src/codatlending/models/shared/__init__.py @@ -2,6 +2,8 @@ from .accountbalance import * from .accountbalanceamounts import * +from .accountcategoriesupdatedwebhook import * +from .accountcategoriesupdatedwebhookdata import * from .accountcategorylevel import * from .accountidentifiers import * from .accountidentifiertype import * @@ -9,6 +11,7 @@ from .accountingaccounts import * from .accountingaccounttransaction import * from .accountingaccounttransactions import * +from .accountingaddress import * from .accountingaddresstype import * from .accountingagedcreditorreport import * from .accountingageddebtorreport import * @@ -58,7 +61,6 @@ from .accountstatus import * from .accounttransactionline import * from .accounttype import * -from .addressesitems import * from .agedcreditor import * from .agedcurrencyoutstanding import * from .ageddebtor import * @@ -87,6 +89,10 @@ from .billpaymentlinelinktype import * from .billstatus import * from .cashflowstatement import * +from .clientratelimitreachedwebhook import * +from .clientratelimitreachedwebhookdata import * +from .clientratelimitresetwebhook import * +from .clientratelimitresetwebhookdata import * from .commerceaddress import * from .commerceaddresstype import * from .commercecompanyinfo import * @@ -194,6 +200,7 @@ from .paymentstatus import * from .paymenttype import * from .periodunit import * +from .phonenumber import * from .phonenumbertype import * from .productinventory import * from .productinventorylocation import * @@ -233,7 +240,6 @@ from .transactionsourcetype import * from .transactiontype import * from .transferaccount import * -from .weblinksitems import * -from .withholdingtaxitems import * +from .weblink import * -__all__ = ["AccountBalance","AccountBalanceAmounts","AccountCategoryLevel","AccountIdentifierType","AccountIdentifiers","AccountInstitution","AccountRef","AccountStatus","AccountTransactionLine","AccountType","AccountingAccount","AccountingAccountTransaction","AccountingAccountTransactionStatus","AccountingAccountTransactions","AccountingAccountValidDataTypeLinks","AccountingAccounts","AccountingAddressType","AccountingAgedCreditorReport","AccountingAgedDebtorReport","AccountingAttachment","AccountingBalanceSheet","AccountingBankAccount","AccountingBankAccountType","AccountingBankAccounts","AccountingBankTransaction","AccountingBankTransactions","AccountingBill","AccountingBillCreditNote","AccountingBillCreditNotes","AccountingBillPayment","AccountingBillPayments","AccountingBillPurchaseOrderReference","AccountingBillWithholdingTax","AccountingBills","AccountingCashFlowStatement","AccountingCompanyInfo","AccountingCompanyInfoAccountingAddress","AccountingCompanyInfoPhone","AccountingCompanyInfoWeblink","AccountingCompanyInfoWeblinkType","AccountingCreditNote","AccountingCreditNotes","AccountingCustomer","AccountingCustomerRef","AccountingCustomers","AccountingDirectCost","AccountingDirectCosts","AccountingDirectIncome","AccountingDirectIncomes","AccountingInvoice","AccountingInvoiceSalesOrderReference","AccountingInvoices","AccountingJournal","AccountingJournalEntries","AccountingJournalEntry","AccountingJournals","AccountingPayment","AccountingPaymentAllocation","AccountingPaymentAllocationAllocation","AccountingPayments","AccountingProfitAndLossReport","AccountingSupplier","AccountingSuppliers","AccountingTransfer","AccountingTransferContactRef","AccountingTransfers","Accounts","AccountsPayableTracking","AccountsReceivableTracking","AccountsReceivableTrackingRecordReference","Addressesitems","AgedCreditor","AgedCurrencyOutstanding","AgedDebtor","AgedOutstandingAmount","AgedOutstandingAmountDetail","Attachments","BalanceSheet","BankAccountRef","BankTransactionType","BankingAccount","BankingAccountBalance","BankingAccountBalances","BankingAccounts","BankingTransaction","BankingTransactionCategories","BankingTransactionCategory","BankingTransactionRef","BankingTransactions","BillCreditNoteLineItem","BillCreditNoteLineItemItemReference","BillCreditNoteLineItemTaxRateReference","BillCreditNoteStatus","BillLineItem","BillPaymentLine","BillPaymentLineLink","BillPaymentLineLinkType","BillStatus","BilledToType","BilledToType1","CashFlowStatement","CommerceAddress","CommerceAddressType","CommerceCompanyInfo","CommerceCustomer","CommerceCustomerRef","CommerceCustomers","CommerceDispute","CommerceDisputes","CommerceLocation","CommerceLocations","CommerceOrder","CommerceOrderSupplementalData","CommerceOrders","CommercePayment","CommercePaymentMethod","CommercePaymentMethods","CommercePayments","CommerceProduct","CommerceProductCategories","CommerceProductCategory","CommerceProducts","CommerceRecordRef","CommerceReport","CommerceReportComponent","CommerceReportDimension","CommerceReportDimensionItems","CommerceReportError","CommerceReportMeasure","CommerceTransaction","CommerceTransactions","Companies","Company","CompanyRequestBody","Connection","ConnectionSourceType","Connections","Contact","ContactRef","CreditNoteLineItem","CreditNoteStatus","CustomerStatus","DataConnectionError","DataConnectionStatus","DataIntegrityAmounts","DataIntegrityByAmount","DataIntegrityByCount","DataIntegrityConnectionID","DataIntegrityDataType","DataIntegrityDates","DataIntegrityDetail","DataIntegrityDetails","DataIntegrityMatch","DataIntegrityStatus","DataIntegrityStatusInfo","DataIntegrityStatuses","DataIntegritySummaries","DataIntegritySummary","DataSource","DataStatus","DataType","DefinitionsitemRef","DirectCostLineItem","DirectIncomeLineItem","DisputeStatus","EnhancedCashFlowItem","EnhancedCashFlowTransaction","EnhancedCashFlowTransactions","EnhancedFinancialReport","EnhancedFinancialReportReportItem","EnhancedInvoiceReportItem","EnhancedInvoicesReport","EnhancedReportAccountCategory","EnhancedReportInfo","ErrorMessage","ExcelReportTypes","ExcelStatus","File","HalRef","IntegrityStatus","InvoiceLineItem","InvoiceStatus","ItemRef","Items","ItemsType","JournalLine","JournalLineTracking","JournalRef","JournalStatus","LendingCustomerRef","Links","LoanRef","LoanSummary","LoanSummaryIntegrationType","LoanSummaryRecordRef","LoanSummaryRecordRefType","LoanSummaryReportInfo","LoanSummaryReportItem","LoanTransactions","LoanTransactionsReportInfo","LocationRef","Metadata","OrderDiscountAllocation","OrderLineItem","Payment","PaymentAllocationPayment","PaymentLine","PaymentLineLink","PaymentLinkType","PaymentMethodStatus","PaymentRef","PaymentStatus","PaymentType","PeriodUnit","PhoneNumberType","ProductInventory","ProductInventoryLocation","ProductPrice","ProductRef","ProductVariant","ProductVariantRef","ProductVariantStatus","ProfitAndLossReport","ProjectRef","PullOperation","PullOperationStatus","PullOperations","RecordRef","ReportBasis","ReportComponentMeasure","ReportInfo","ReportInput","ReportItems","ReportItemsLoanTransactionType","ReportLine","Security","ServiceCharge","ServiceChargeType","SourceRef","SupplementalData","SupplierRef","SupplierStatus","TaxComponentAllocation","TaxComponentRef","TaxRateRef","Tracking","TrackingCategoryRef","TransactionCategory","TransactionCategoryRef","TransactionCategoryStatus","TransactionCode","TransactionSourceRef","TransactionSourceType","TransactionType","TransferAccount","WebLinksitems","WithholdingTaxitems"] +__all__ = ["AccountBalance","AccountBalanceAmounts","AccountCategoriesUpdatedWebhook","AccountCategoriesUpdatedWebhookData","AccountCategoryLevel","AccountIdentifierType","AccountIdentifiers","AccountInstitution","AccountRef","AccountStatus","AccountTransactionLine","AccountType","AccountingAccount","AccountingAccountTransaction","AccountingAccountTransactionStatus","AccountingAccountTransactions","AccountingAccountValidDataTypeLinks","AccountingAccounts","AccountingAddress","AccountingAddressType","AccountingAgedCreditorReport","AccountingAgedDebtorReport","AccountingAttachment","AccountingBalanceSheet","AccountingBankAccount","AccountingBankAccountType","AccountingBankAccounts","AccountingBankTransaction","AccountingBankTransactions","AccountingBill","AccountingBillCreditNote","AccountingBillCreditNotes","AccountingBillPayment","AccountingBillPayments","AccountingBillPurchaseOrderReference","AccountingBillWithholdingTax","AccountingBills","AccountingCashFlowStatement","AccountingCompanyInfo","AccountingCreditNote","AccountingCreditNotes","AccountingCustomer","AccountingCustomerRef","AccountingCustomers","AccountingDirectCost","AccountingDirectCosts","AccountingDirectIncome","AccountingDirectIncomes","AccountingInvoice","AccountingInvoiceSalesOrderReference","AccountingInvoices","AccountingJournal","AccountingJournalEntries","AccountingJournalEntry","AccountingJournals","AccountingPayment","AccountingPaymentAllocation","AccountingPaymentAllocationAllocation","AccountingPayments","AccountingProfitAndLossReport","AccountingSupplier","AccountingSuppliers","AccountingTransfer","AccountingTransferContactRef","AccountingTransfers","Accounts","AccountsPayableTracking","AccountsReceivableTracking","AccountsReceivableTrackingRecordReference","AgedCreditor","AgedCurrencyOutstanding","AgedDebtor","AgedOutstandingAmount","AgedOutstandingAmountDetail","Attachments","BalanceSheet","BankAccountRef","BankTransactionType","BankingAccount","BankingAccountBalance","BankingAccountBalances","BankingAccounts","BankingTransaction","BankingTransactionCategories","BankingTransactionCategory","BankingTransactionRef","BankingTransactions","BillCreditNoteLineItem","BillCreditNoteLineItemItemReference","BillCreditNoteLineItemTaxRateReference","BillCreditNoteStatus","BillLineItem","BillPaymentLine","BillPaymentLineLink","BillPaymentLineLinkType","BillStatus","BilledToType","BilledToType1","CashFlowStatement","ClientRateLimitReachedWebhook","ClientRateLimitReachedWebhookData","ClientRateLimitResetWebhook","ClientRateLimitResetWebhookData","CommerceAddress","CommerceAddressType","CommerceCompanyInfo","CommerceCustomer","CommerceCustomerRef","CommerceCustomers","CommerceDispute","CommerceDisputes","CommerceLocation","CommerceLocations","CommerceOrder","CommerceOrderSupplementalData","CommerceOrders","CommercePayment","CommercePaymentMethod","CommercePaymentMethods","CommercePayments","CommerceProduct","CommerceProductCategories","CommerceProductCategory","CommerceProducts","CommerceRecordRef","CommerceReport","CommerceReportComponent","CommerceReportDimension","CommerceReportDimensionItems","CommerceReportError","CommerceReportMeasure","CommerceTransaction","CommerceTransactions","Companies","Company","CompanyRequestBody","Connection","ConnectionSourceType","Connections","Contact","ContactRef","CreditNoteLineItem","CreditNoteStatus","CustomerStatus","DataConnectionError","DataConnectionStatus","DataIntegrityAmounts","DataIntegrityByAmount","DataIntegrityByCount","DataIntegrityConnectionID","DataIntegrityDataType","DataIntegrityDates","DataIntegrityDetail","DataIntegrityDetails","DataIntegrityMatch","DataIntegrityStatus","DataIntegrityStatusInfo","DataIntegrityStatuses","DataIntegritySummaries","DataIntegritySummary","DataSource","DataStatus","DataType","DefinitionsitemRef","DirectCostLineItem","DirectIncomeLineItem","DisputeStatus","EnhancedCashFlowItem","EnhancedCashFlowTransaction","EnhancedCashFlowTransactions","EnhancedFinancialReport","EnhancedFinancialReportReportItem","EnhancedInvoiceReportItem","EnhancedInvoicesReport","EnhancedReportAccountCategory","EnhancedReportInfo","ErrorMessage","ExcelReportTypes","ExcelStatus","File","HalRef","IntegrityStatus","InvoiceLineItem","InvoiceStatus","ItemRef","Items","JournalLine","JournalLineTracking","JournalRef","JournalStatus","LendingCustomerRef","Links","LoanRef","LoanSummary","LoanSummaryIntegrationType","LoanSummaryRecordRef","LoanSummaryRecordRefType","LoanSummaryReportInfo","LoanSummaryReportItem","LoanTransactions","LoanTransactionsReportInfo","LocationRef","Metadata","OrderDiscountAllocation","OrderLineItem","Payment","PaymentAllocationPayment","PaymentLine","PaymentLineLink","PaymentLinkType","PaymentMethodStatus","PaymentRef","PaymentStatus","PaymentType","PeriodUnit","PhoneNumber","PhoneNumberType","ProductInventory","ProductInventoryLocation","ProductPrice","ProductRef","ProductVariant","ProductVariantRef","ProductVariantStatus","ProfitAndLossReport","ProjectRef","PullOperation","PullOperationStatus","PullOperations","RecordRef","ReportBasis","ReportComponentMeasure","ReportInfo","ReportInput","ReportItems","ReportItemsLoanTransactionType","ReportLine","Security","ServiceCharge","ServiceChargeType","SourceRef","SupplementalData","SupplierRef","SupplierStatus","TaxComponentAllocation","TaxComponentRef","TaxRateRef","Tracking","TrackingCategoryRef","TransactionCategory","TransactionCategoryRef","TransactionCategoryStatus","TransactionCode","TransactionSourceRef","TransactionSourceType","TransactionType","TransferAccount","WebLink","WebLinkType"] diff --git a/lending/src/codatlending/models/shared/accountcategoriesupdatedwebhook.py b/lending/src/codatlending/models/shared/accountcategoriesupdatedwebhook.py new file mode 100755 index 000000000..a22a19c8d --- /dev/null +++ b/lending/src/codatlending/models/shared/accountcategoriesupdatedwebhook.py @@ -0,0 +1,34 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from ..shared import accountcategoriesupdatedwebhookdata as shared_accountcategoriesupdatedwebhookdata +from codatlending import utils +from dataclasses_json import Undefined, dataclass_json +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) + +@dataclasses.dataclass +class AccountCategoriesUpdatedWebhook: + r"""Webhook request body for account categories updated.""" + alert_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('AlertId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier of the webhook event.""" + client_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ClientId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier for your client in Codat.""" + client_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ClientName'), 'exclude': lambda f: f is None }}) + r"""Name of your client in Codat.""" + company_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('CompanyId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier for your SMB in Codat.""" + data: Optional[shared_accountcategoriesupdatedwebhookdata.AccountCategoriesUpdatedWebhookData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('Data'), 'exclude': lambda f: f is None }}) + data_connection_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('DataConnectionId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier for a company's data connection.""" + message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('Message'), 'exclude': lambda f: f is None }}) + r"""A human readable message about the webhook.""" + rule_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('RuleId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier for the rule.""" + rule_type: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('RuleType'), 'exclude': lambda f: f is None }}) + r"""The type of rule.""" + + diff --git a/lending/src/codatlending/models/shared/accountcategoriesupdatedwebhookdata.py b/lending/src/codatlending/models/shared/accountcategoriesupdatedwebhookdata.py new file mode 100755 index 000000000..0e41f370b --- /dev/null +++ b/lending/src/codatlending/models/shared/accountcategoriesupdatedwebhookdata.py @@ -0,0 +1,17 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from codatlending import utils +from dataclasses_json import Undefined, dataclass_json +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) + +@dataclasses.dataclass +class AccountCategoriesUpdatedWebhookData: + modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }}) + r"""The date on which this account categories were last modified in Codat.""" + + diff --git a/lending/src/codatlending/models/shared/addressesitems.py b/lending/src/codatlending/models/shared/accountingaddress.py similarity index 98% rename from lending/src/codatlending/models/shared/addressesitems.py rename to lending/src/codatlending/models/shared/accountingaddress.py index e86098a83..63e13cfcb 100755 --- a/lending/src/codatlending/models/shared/addressesitems.py +++ b/lending/src/codatlending/models/shared/accountingaddress.py @@ -11,7 +11,7 @@ @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass -class Addressesitems: +class AccountingAddress: type: shared_accountingaddresstype.AccountingAddressType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) r"""The type of the address""" city: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('city'), 'exclude': lambda f: f is None }}) diff --git a/lending/src/codatlending/models/shared/accountingbillcreditnote.py b/lending/src/codatlending/models/shared/accountingbillcreditnote.py index e32914066..a4fbfcdef 100755 --- a/lending/src/codatlending/models/shared/accountingbillcreditnote.py +++ b/lending/src/codatlending/models/shared/accountingbillcreditnote.py @@ -5,10 +5,10 @@ from ..shared import accountingpaymentallocation as shared_accountingpaymentallocation from ..shared import billcreditnotelineitem as shared_billcreditnotelineitem from ..shared import billcreditnotestatus as shared_billcreditnotestatus +from ..shared import items as shared_items from ..shared import metadata as shared_metadata from ..shared import supplementaldata as shared_supplementaldata from ..shared import supplierref as shared_supplierref -from ..shared import withholdingtaxitems as shared_withholdingtaxitems from codatlending import utils from dataclasses_json import Undefined, dataclass_json from decimal import Decimal @@ -148,6 +148,6 @@ class AccountingBillCreditNote: """ supplier_ref: Optional[shared_supplierref.SupplierRef] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('supplierRef'), 'exclude': lambda f: f is None }}) r"""Reference to the supplier the record relates to.""" - withholding_tax: Optional[list[shared_withholdingtaxitems.WithholdingTaxitems]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('withholdingTax'), 'exclude': lambda f: f is None }}) + withholding_tax: Optional[list[shared_items.Items]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('withholdingTax'), 'exclude': lambda f: f is None }}) diff --git a/lending/src/codatlending/models/shared/accountingcompanyinfo.py b/lending/src/codatlending/models/shared/accountingcompanyinfo.py index f131ab0cc..8dc690984 100755 --- a/lending/src/codatlending/models/shared/accountingcompanyinfo.py +++ b/lending/src/codatlending/models/shared/accountingcompanyinfo.py @@ -2,67 +2,14 @@ from __future__ import annotations import dataclasses -from ..shared import accountingaddresstype as shared_accountingaddresstype -from ..shared import phonenumbertype as shared_phonenumbertype +from ..shared import accountingaddress as shared_accountingaddress +from ..shared import phonenumber as shared_phonenumber +from ..shared import weblink as shared_weblink from codatlending import utils from dataclasses_json import Undefined, dataclass_json -from enum import Enum from typing import Optional -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class AccountingCompanyInfoAccountingAddress: - type: shared_accountingaddresstype.AccountingAddressType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) - r"""The type of the address""" - city: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('city'), 'exclude': lambda f: f is None }}) - r"""City of the customer address.""" - country: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('country'), 'exclude': lambda f: f is None }}) - r"""Country of the customer address.""" - line1: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line1'), 'exclude': lambda f: f is None }}) - r"""Line 1 of the customer address.""" - line2: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('line2'), 'exclude': lambda f: f is None }}) - r"""Line 2 of the customer address.""" - postal_code: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('postalCode'), 'exclude': lambda f: f is None }}) - r"""Postal code or zip code.""" - region: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('region'), 'exclude': lambda f: f is None }}) - r"""Region of the customer address.""" - - - - -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class AccountingCompanyInfoPhone: - number: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('number') }}) - r"""A phone number.""" - type: shared_phonenumbertype.PhoneNumberType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) - r"""The type of phone number""" - - - -class AccountingCompanyInfoWeblinkType(str, Enum): - r"""The type of the weblink.""" - WEBSITE = 'Website' - SOCIAL = 'Social' - UNKNOWN = 'Unknown' - - -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class AccountingCompanyInfoWeblink: - r"""Weblink associated with the company.""" - type: Optional[AccountingCompanyInfoWeblinkType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) - r"""The type of the weblink.""" - url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('url'), 'exclude': lambda f: f is None }}) - r"""The full URL for the weblink.""" - - - - @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass @@ -77,7 +24,7 @@ class AccountingCompanyInfo: """ accounting_platform_ref: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('accountingPlatformRef'), 'exclude': lambda f: f is None }}) r"""Identifier or reference for the company in the accounting platform.""" - addresses: Optional[list[AccountingCompanyInfoAccountingAddress]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is None }}) + addresses: Optional[list[shared_accountingaddress.AccountingAddress]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is None }}) r"""An array of Addresses.""" base_currency: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('baseCurrency'), 'exclude': lambda f: f is None }}) r"""Currency set in the accounting platform of the linked company. Used by the currency rate.""" @@ -148,7 +95,7 @@ class AccountingCompanyInfo: > Not all dates from Codat will contain information about time zones. > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. """ - phone_numbers: Optional[list[AccountingCompanyInfoPhone]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phoneNumbers'), 'exclude': lambda f: f is None }}) + phone_numbers: Optional[list[shared_phonenumber.PhoneNumber]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phoneNumbers'), 'exclude': lambda f: f is None }}) r"""An array of phone numbers.""" registration_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber'), 'exclude': lambda f: f is None }}) r"""Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House.""" @@ -159,7 +106,7 @@ class AccountingCompanyInfo: """ tax_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('taxNumber'), 'exclude': lambda f: f is None }}) r"""Company tax number.""" - web_links: Optional[list[AccountingCompanyInfoWeblink]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('webLinks'), 'exclude': lambda f: f is None }}) + web_links: Optional[list[shared_weblink.WebLink]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('webLinks'), 'exclude': lambda f: f is None }}) r"""An array of weblinks.""" diff --git a/lending/src/codatlending/models/shared/accountingcreditnote.py b/lending/src/codatlending/models/shared/accountingcreditnote.py index 5f2203185..958e23c61 100755 --- a/lending/src/codatlending/models/shared/accountingcreditnote.py +++ b/lending/src/codatlending/models/shared/accountingcreditnote.py @@ -6,9 +6,9 @@ from ..shared import accountingpaymentallocation as shared_accountingpaymentallocation from ..shared import creditnotelineitem as shared_creditnotelineitem from ..shared import creditnotestatus as shared_creditnotestatus +from ..shared import items as shared_items from ..shared import metadata as shared_metadata from ..shared import supplementaldata as shared_supplementaldata -from ..shared import withholdingtaxitems as shared_withholdingtaxitems from codatlending import utils from dataclasses_json import Undefined, dataclass_json from decimal import Decimal @@ -143,6 +143,6 @@ class AccountingCreditNote: It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. """ - withholding_tax: Optional[list[shared_withholdingtaxitems.WithholdingTaxitems]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('withholdingTax'), 'exclude': lambda f: f is None }}) + withholding_tax: Optional[list[shared_items.Items]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('withholdingTax'), 'exclude': lambda f: f is None }}) diff --git a/lending/src/codatlending/models/shared/accountingcustomer.py b/lending/src/codatlending/models/shared/accountingcustomer.py index 98201b95d..2d667c81b 100755 --- a/lending/src/codatlending/models/shared/accountingcustomer.py +++ b/lending/src/codatlending/models/shared/accountingcustomer.py @@ -2,7 +2,7 @@ from __future__ import annotations import dataclasses -from ..shared import addressesitems as shared_addressesitems +from ..shared import accountingaddress as shared_accountingaddress from ..shared import contact as shared_contact from ..shared import customerstatus as shared_customerstatus from ..shared import metadata as shared_metadata @@ -26,7 +26,7 @@ class AccountingCustomer: """ status: shared_customerstatus.CustomerStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) r"""Status of customer.""" - addresses: Optional[list[shared_addressesitems.Addressesitems]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is None }}) + addresses: Optional[list[shared_accountingaddress.AccountingAddress]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is None }}) r"""An array of Addresses.""" contact_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName'), 'exclude': lambda f: f is None }}) r"""Name of the main contact for the identified customer.""" diff --git a/lending/src/codatlending/models/shared/accountinginvoice.py b/lending/src/codatlending/models/shared/accountinginvoice.py index d977099d0..610ab5cef 100755 --- a/lending/src/codatlending/models/shared/accountinginvoice.py +++ b/lending/src/codatlending/models/shared/accountinginvoice.py @@ -6,9 +6,9 @@ from ..shared import accountingpaymentallocation as shared_accountingpaymentallocation from ..shared import invoicelineitem as shared_invoicelineitem from ..shared import invoicestatus as shared_invoicestatus +from ..shared import items as shared_items from ..shared import metadata as shared_metadata from ..shared import supplementaldata as shared_supplementaldata -from ..shared import withholdingtaxitems as shared_withholdingtaxitems from codatlending import utils from dataclasses_json import Undefined, dataclass_json from decimal import Decimal @@ -202,6 +202,6 @@ class AccountingInvoice: """ total_discount: Optional[Decimal] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('totalDiscount'), 'encoder': utils.decimalencoder(True, False), 'decoder': utils.decimaldecoder, 'exclude': lambda f: f is None }}) r"""Numerical value of discounts applied to the invoice.""" - withholding_tax: Optional[list[shared_withholdingtaxitems.WithholdingTaxitems]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('withholdingTax'), 'exclude': lambda f: f is None }}) + withholding_tax: Optional[list[shared_items.Items]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('withholdingTax'), 'exclude': lambda f: f is None }}) diff --git a/lending/src/codatlending/models/shared/accountingsupplier.py b/lending/src/codatlending/models/shared/accountingsupplier.py index 3bcd9e6d9..7c8fff452 100755 --- a/lending/src/codatlending/models/shared/accountingsupplier.py +++ b/lending/src/codatlending/models/shared/accountingsupplier.py @@ -2,7 +2,7 @@ from __future__ import annotations import dataclasses -from ..shared import addressesitems as shared_addressesitems +from ..shared import accountingaddress as shared_accountingaddress from ..shared import metadata as shared_metadata from ..shared import supplementaldata as shared_supplementaldata from ..shared import supplierstatus as shared_supplierstatus @@ -23,7 +23,7 @@ class AccountingSupplier: """ status: shared_supplierstatus.SupplierStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) r"""Status of the supplier.""" - addresses: Optional[list[shared_addressesitems.Addressesitems]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is None }}) + addresses: Optional[list[shared_accountingaddress.AccountingAddress]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('addresses'), 'exclude': lambda f: f is None }}) r"""An array of Addresses.""" contact_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('contactName'), 'exclude': lambda f: f is None }}) r"""Name of the main contact for the supplier.""" diff --git a/lending/src/codatlending/models/shared/clientratelimitreachedwebhook.py b/lending/src/codatlending/models/shared/clientratelimitreachedwebhook.py new file mode 100755 index 000000000..5b40f4500 --- /dev/null +++ b/lending/src/codatlending/models/shared/clientratelimitreachedwebhook.py @@ -0,0 +1,30 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from ..shared import clientratelimitreachedwebhookdata as shared_clientratelimitreachedwebhookdata +from codatlending import utils +from dataclasses_json import Undefined, dataclass_json +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) + +@dataclasses.dataclass +class ClientRateLimitReachedWebhook: + r"""Webhook request body for a client that has reached their rate limit.""" + alert_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('AlertId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier of the webhook event.""" + client_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ClientId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier for your client in Codat.""" + client_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ClientName'), 'exclude': lambda f: f is None }}) + r"""Name of your client in Codat.""" + data: Optional[shared_clientratelimitreachedwebhookdata.ClientRateLimitReachedWebhookData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('Data'), 'exclude': lambda f: f is None }}) + message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('Message'), 'exclude': lambda f: f is None }}) + r"""A human readable message about the webhook.""" + rule_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('RuleId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier for the rule.""" + rule_type: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('RuleType'), 'exclude': lambda f: f is None }}) + r"""The type of rule.""" + + diff --git a/lending/src/codatlending/models/shared/clientratelimitreachedwebhookdata.py b/lending/src/codatlending/models/shared/clientratelimitreachedwebhookdata.py new file mode 100755 index 000000000..d3da638ef --- /dev/null +++ b/lending/src/codatlending/models/shared/clientratelimitreachedwebhookdata.py @@ -0,0 +1,38 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from codatlending import utils +from dataclasses_json import Undefined, dataclass_json +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) + +@dataclasses.dataclass +class ClientRateLimitReachedWebhookData: + daily_quota: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('DailyQuota'), 'exclude': lambda f: f is None }}) + r"""The number of available requests per day.""" + expires_utc: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ExpiresUtc'), 'exclude': lambda f: f is None }}) + r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: + + ``` + 2020-10-08T22:40:50Z + 2021-01-01T00:00:00 + ``` + + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: + + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` + - Unqualified local time: `2021-11-15T01:00:00` + - UTC time offsets: `2021-11-15T01:00:00-05:00` + + > Time zones + > + > Not all dates from Codat will contain information about time zones. + > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. + """ + + diff --git a/lending/src/codatlending/models/shared/clientratelimitresetwebhook.py b/lending/src/codatlending/models/shared/clientratelimitresetwebhook.py new file mode 100755 index 000000000..5bae01fc5 --- /dev/null +++ b/lending/src/codatlending/models/shared/clientratelimitresetwebhook.py @@ -0,0 +1,30 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from ..shared import clientratelimitresetwebhookdata as shared_clientratelimitresetwebhookdata +from codatlending import utils +from dataclasses_json import Undefined, dataclass_json +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) + +@dataclasses.dataclass +class ClientRateLimitResetWebhook: + r"""Webhook request body for a client that has had their rate limit reset.""" + alert_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('AlertId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier of the webhook event.""" + client_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ClientId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier for your client in Codat.""" + client_name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ClientName'), 'exclude': lambda f: f is None }}) + r"""Name of your client in Codat.""" + data: Optional[shared_clientratelimitresetwebhookdata.ClientRateLimitResetWebhookData] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('Data'), 'exclude': lambda f: f is None }}) + message: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('Message'), 'exclude': lambda f: f is None }}) + r"""A human readable message about the webhook.""" + rule_id: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('RuleId'), 'exclude': lambda f: f is None }}) + r"""Unique identifier for the rule.""" + rule_type: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('RuleType'), 'exclude': lambda f: f is None }}) + r"""The type of rule.""" + + diff --git a/lending/src/codatlending/models/shared/clientratelimitresetwebhookdata.py b/lending/src/codatlending/models/shared/clientratelimitresetwebhookdata.py new file mode 100755 index 000000000..18e468bc5 --- /dev/null +++ b/lending/src/codatlending/models/shared/clientratelimitresetwebhookdata.py @@ -0,0 +1,42 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from codatlending import utils +from dataclasses_json import Undefined, dataclass_json +from typing import Optional + + +@dataclass_json(undefined=Undefined.EXCLUDE) + +@dataclasses.dataclass +class ClientRateLimitResetWebhookData: + daily_quota: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('DailyQuota'), 'exclude': lambda f: f is None }}) + r"""The number of available requests per day.""" + expires_utc: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ExpiresUtc'), 'exclude': lambda f: f is None }}) + r"""In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example: + + ``` + 2020-10-08T22:40:50Z + 2021-01-01T00:00:00 + ``` + + + + When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information: + + - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z` + - Unqualified local time: `2021-11-15T01:00:00` + - UTC time offsets: `2021-11-15T01:00:00-05:00` + + > Time zones + > + > Not all dates from Codat will contain information about time zones. + > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. + """ + quota_remaining: Optional[int] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('QuotaRemaining'), 'exclude': lambda f: f is None }}) + r"""Total number of request remaining for your client.""" + reset_reason: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('ResetReason'), 'exclude': lambda f: f is None }}) + r"""The reason for your rate limit quota being reset.""" + + diff --git a/lending/src/codatlending/models/shared/commercecompanyinfo.py b/lending/src/codatlending/models/shared/commercecompanyinfo.py index 6b53a1f93..4f2bc440e 100755 --- a/lending/src/codatlending/models/shared/commercecompanyinfo.py +++ b/lending/src/codatlending/models/shared/commercecompanyinfo.py @@ -4,8 +4,8 @@ import dataclasses from ..shared import accountbalance as shared_accountbalance from ..shared import commerceaddress as shared_commerceaddress -from ..shared import items as shared_items -from ..shared import weblinksitems as shared_weblinksitems +from ..shared import phonenumber as shared_phonenumber +from ..shared import weblink as shared_weblink from codatlending import utils from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -61,14 +61,14 @@ class CommerceCompanyInfo: > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. """ modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }}) - phone_numbers: Optional[list[shared_items.Items]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phoneNumbers'), 'exclude': lambda f: f is None }}) + phone_numbers: Optional[list[shared_phonenumber.PhoneNumber]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phoneNumbers'), 'exclude': lambda f: f is None }}) r"""Phone numbers associated with the company""" registration_number: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('registrationNumber'), 'exclude': lambda f: f is None }}) r"""The registration number of the company""" source_modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceModifiedDate'), 'exclude': lambda f: f is None }}) source_urls: Optional[dict[str, str]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('sourceUrls'), 'exclude': lambda f: f is None }}) r"""URL addresses for the originating system. For example, potential use cases include 'deeplinking' to the originating system""" - web_links: Optional[list[shared_weblinksitems.WebLinksitems]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('webLinks'), 'exclude': lambda f: f is None }}) + web_links: Optional[list[shared_weblink.WebLink]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('webLinks'), 'exclude': lambda f: f is None }}) r"""Weblinks associated with the company""" diff --git a/lending/src/codatlending/models/shared/contact.py b/lending/src/codatlending/models/shared/contact.py index 7ee9fef3d..9c4acec8a 100755 --- a/lending/src/codatlending/models/shared/contact.py +++ b/lending/src/codatlending/models/shared/contact.py @@ -2,9 +2,9 @@ from __future__ import annotations import dataclasses -from ..shared import addressesitems as shared_addressesitems +from ..shared import accountingaddress as shared_accountingaddress from ..shared import customerstatus as shared_customerstatus -from ..shared import items as shared_items +from ..shared import phonenumber as shared_phonenumber from codatlending import utils from dataclasses_json import Undefined, dataclass_json from typing import Optional @@ -16,7 +16,7 @@ class Contact: status: shared_customerstatus.CustomerStatus = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('status') }}) r"""Status of customer.""" - address: Optional[shared_addressesitems.Addressesitems] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('address'), 'exclude': lambda f: f is None }}) + address: Optional[shared_accountingaddress.AccountingAddress] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('address'), 'exclude': lambda f: f is None }}) email: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('email'), 'exclude': lambda f: f is None }}) r"""Email of a contact for a customer.""" modified_date: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('modifiedDate'), 'exclude': lambda f: f is None }}) @@ -42,7 +42,7 @@ class Contact: """ name: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name'), 'exclude': lambda f: f is None }}) r"""Name of a contact for a customer.""" - phone: Optional[list[shared_items.Items]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone'), 'exclude': lambda f: f is None }}) + phone: Optional[list[shared_phonenumber.PhoneNumber]] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('phone'), 'exclude': lambda f: f is None }}) r"""An array of Phone numbers.""" diff --git a/lending/src/codatlending/models/shared/items.py b/lending/src/codatlending/models/shared/items.py index 107f8dd81..693099547 100755 --- a/lending/src/codatlending/models/shared/items.py +++ b/lending/src/codatlending/models/shared/items.py @@ -2,18 +2,16 @@ from __future__ import annotations import dataclasses -from ..shared import phonenumbertype as shared_phonenumbertype from codatlending import utils from dataclasses_json import Undefined, dataclass_json +from decimal import Decimal @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass class Items: - number: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('number') }}) - r"""A phone number.""" - type: shared_phonenumbertype.PhoneNumberType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) - r"""The type of phone number""" + amount: Decimal = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('amount'), 'encoder': utils.decimalencoder(False, False), 'decoder': utils.decimaldecoder }}) + name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) diff --git a/lending/src/codatlending/models/shared/phonenumber.py b/lending/src/codatlending/models/shared/phonenumber.py new file mode 100755 index 000000000..7221f1aba --- /dev/null +++ b/lending/src/codatlending/models/shared/phonenumber.py @@ -0,0 +1,19 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +from ..shared import phonenumbertype as shared_phonenumbertype +from codatlending import utils +from dataclasses_json import Undefined, dataclass_json + + +@dataclass_json(undefined=Undefined.EXCLUDE) + +@dataclasses.dataclass +class PhoneNumber: + number: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('number') }}) + r"""A phone number.""" + type: shared_phonenumbertype.PhoneNumberType = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type') }}) + r"""The type of phone number""" + + diff --git a/lending/src/codatlending/models/shared/weblinksitems.py b/lending/src/codatlending/models/shared/weblink.py similarity index 76% rename from lending/src/codatlending/models/shared/weblinksitems.py rename to lending/src/codatlending/models/shared/weblink.py index c4efedae4..78fd6ae94 100755 --- a/lending/src/codatlending/models/shared/weblinksitems.py +++ b/lending/src/codatlending/models/shared/weblink.py @@ -7,7 +7,7 @@ from enum import Enum from typing import Optional -class ItemsType(str, Enum): +class WebLinkType(str, Enum): r"""The type of the weblink.""" WEBSITE = 'Website' SOCIAL = 'Social' @@ -17,9 +17,9 @@ class ItemsType(str, Enum): @dataclass_json(undefined=Undefined.EXCLUDE) @dataclasses.dataclass -class WebLinksitems: +class WebLink: r"""Weblink associated with the company.""" - type: Optional[ItemsType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) + type: Optional[WebLinkType] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('type'), 'exclude': lambda f: f is None }}) r"""The type of the weblink.""" url: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('url'), 'exclude': lambda f: f is None }}) r"""The full URL for the weblink.""" diff --git a/lending/src/codatlending/models/shared/withholdingtaxitems.py b/lending/src/codatlending/models/shared/withholdingtaxitems.py deleted file mode 100755 index 3f18dab4e..000000000 --- a/lending/src/codatlending/models/shared/withholdingtaxitems.py +++ /dev/null @@ -1,17 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" - -from __future__ import annotations -import dataclasses -from codatlending import utils -from dataclasses_json import Undefined, dataclass_json -from decimal import Decimal - - -@dataclass_json(undefined=Undefined.EXCLUDE) - -@dataclasses.dataclass -class WithholdingTaxitems: - amount: Decimal = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('amount'), 'encoder': utils.decimalencoder(False, False), 'decoder': utils.decimaldecoder }}) - name: str = dataclasses.field(metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('name') }}) - - diff --git a/lending/src/codatlending/models/webhooks/__init__.py b/lending/src/codatlending/models/webhooks/__init__.py new file mode 100755 index 000000000..503cc1a66 --- /dev/null +++ b/lending/src/codatlending/models/webhooks/__init__.py @@ -0,0 +1,7 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from .account_categories_updated import * +from .client_rate_limit_reached import * +from .client_rate_limit_reset import * + +__all__ = ["AccountCategoriesUpdatedResponse","ClientRateLimitReachedResponse","ClientRateLimitResetResponse"] diff --git a/lending/src/codatlending/models/webhooks/account_categories_updated.py b/lending/src/codatlending/models/webhooks/account_categories_updated.py new file mode 100755 index 000000000..b6a270f5b --- /dev/null +++ b/lending/src/codatlending/models/webhooks/account_categories_updated.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import requests as requests_http +from typing import Optional + + + +@dataclasses.dataclass +class AccountCategoriesUpdatedResponse: + content_type: str = dataclasses.field() + status_code: int = dataclasses.field() + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + diff --git a/lending/src/codatlending/models/webhooks/client_rate_limit_reached.py b/lending/src/codatlending/models/webhooks/client_rate_limit_reached.py new file mode 100755 index 000000000..8ce5abf44 --- /dev/null +++ b/lending/src/codatlending/models/webhooks/client_rate_limit_reached.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import requests as requests_http +from typing import Optional + + + +@dataclasses.dataclass +class ClientRateLimitReachedResponse: + content_type: str = dataclasses.field() + status_code: int = dataclasses.field() + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + diff --git a/lending/src/codatlending/models/webhooks/client_rate_limit_reset.py b/lending/src/codatlending/models/webhooks/client_rate_limit_reset.py new file mode 100755 index 000000000..df91ac429 --- /dev/null +++ b/lending/src/codatlending/models/webhooks/client_rate_limit_reset.py @@ -0,0 +1,16 @@ +"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" + +from __future__ import annotations +import dataclasses +import requests as requests_http +from typing import Optional + + + +@dataclasses.dataclass +class ClientRateLimitResetResponse: + content_type: str = dataclasses.field() + status_code: int = dataclasses.field() + raw_response: Optional[requests_http.Response] = dataclasses.field(default=None) + + diff --git a/lending/src/codatlending/sdkconfiguration.py b/lending/src/codatlending/sdkconfiguration.py index 7899a6964..fbc9ee1d2 100755 --- a/lending/src/codatlending/sdkconfiguration.py +++ b/lending/src/codatlending/sdkconfiguration.py @@ -20,8 +20,8 @@ class SDKConfiguration: server_idx: int = 0 language: str = 'python' openapi_doc_version: str = '3.0.0' - sdk_version: str = '3.1.0' - gen_version: str = '2.109.3' + sdk_version: str = '4.1.0' + gen_version: str = '2.116.0' retry_config: RetryConfig = None def get_server_details(self) -> tuple[str, dict[str, str]]: