@codat/lending 2.1.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +34 -34
  2. package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.d.ts +40 -0
  3. package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.js +90 -0
  4. package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.d.ts +7 -0
  5. package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.js +45 -0
  6. package/dist/sdk/models/shared/{addressesitems.d.ts → accountingaddress.d.ts} +1 -1
  7. package/dist/sdk/models/shared/{addressesitems.js → accountingaddress.js} +13 -13
  8. package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +2 -2
  9. package/dist/sdk/models/shared/accountingbillcreditnote.js +3 -3
  10. package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +6 -66
  11. package/dist/sdk/models/shared/accountingcompanyinfo.js +10 -100
  12. package/dist/sdk/models/shared/accountingcreditnote.d.ts +2 -2
  13. package/dist/sdk/models/shared/accountingcreditnote.js +3 -3
  14. package/dist/sdk/models/shared/accountingcustomer.d.ts +2 -2
  15. package/dist/sdk/models/shared/accountingcustomer.js +3 -3
  16. package/dist/sdk/models/shared/accountinginvoice.d.ts +2 -2
  17. package/dist/sdk/models/shared/accountinginvoice.js +3 -3
  18. package/dist/sdk/models/shared/accountingsupplier.d.ts +2 -2
  19. package/dist/sdk/models/shared/accountingsupplier.js +3 -3
  20. package/dist/sdk/models/shared/clientratelimitreachedwebhook.d.ts +32 -0
  21. package/dist/sdk/models/shared/clientratelimitreachedwebhook.js +80 -0
  22. package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.d.ts +31 -0
  23. package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.js +50 -0
  24. package/dist/sdk/models/shared/clientratelimitresetwebhook.d.ts +32 -0
  25. package/dist/sdk/models/shared/clientratelimitresetwebhook.js +80 -0
  26. package/dist/sdk/models/shared/clientratelimitresetwebhookdata.d.ts +39 -0
  27. package/dist/sdk/models/shared/clientratelimitresetwebhookdata.js +60 -0
  28. package/dist/sdk/models/shared/commercecompanyinfo.d.ts +4 -4
  29. package/dist/sdk/models/shared/commercecompanyinfo.js +6 -6
  30. package/dist/sdk/models/shared/contact.d.ts +4 -4
  31. package/dist/sdk/models/shared/contact.js +6 -6
  32. package/dist/sdk/models/shared/index.d.ts +9 -3
  33. package/dist/sdk/models/shared/index.js +9 -3
  34. package/dist/sdk/models/shared/items.d.ts +2 -9
  35. package/dist/sdk/models/shared/items.js +5 -6
  36. package/dist/sdk/models/shared/phonenumber.d.ts +12 -0
  37. package/dist/sdk/models/shared/{withholdingtaxitems.js → phonenumber.js} +12 -11
  38. package/dist/sdk/models/shared/{weblinksitems.d.ts → weblink.d.ts} +3 -3
  39. package/dist/sdk/models/shared/{weblinksitems.js → weblink.js} +14 -14
  40. package/dist/sdk/models/webhooks/accountcategoriesupdated.d.ts +7 -0
  41. package/dist/sdk/models/webhooks/accountcategoriesupdated.js +51 -0
  42. package/dist/sdk/models/webhooks/clientratelimitreached.d.ts +7 -0
  43. package/dist/sdk/models/webhooks/clientratelimitreached.js +51 -0
  44. package/dist/sdk/models/webhooks/clientratelimitreset.d.ts +7 -0
  45. package/dist/sdk/models/webhooks/clientratelimitreset.js +51 -0
  46. package/dist/sdk/models/webhooks/index.d.ts +3 -0
  47. package/dist/sdk/models/webhooks/index.js +22 -0
  48. package/dist/sdk/sdk.js +2 -2
  49. package/docs/models/shared/accountcategoriesupdatedwebhook.md +18 -0
  50. package/docs/models/shared/accountcategoriesupdatedwebhookdata.md +8 -0
  51. package/docs/models/shared/{addressesitems.md → accountingaddress.md} +1 -1
  52. package/docs/models/shared/accountingbillcreditnote.md +1 -1
  53. package/docs/models/shared/accountingcompanyinfo.md +3 -3
  54. package/docs/models/shared/accountingcreditnote.md +1 -1
  55. package/docs/models/shared/accountingcustomer.md +1 -1
  56. package/docs/models/shared/accountinginvoice.md +1 -1
  57. package/docs/models/shared/accountingsupplier.md +1 -1
  58. package/docs/models/shared/clientratelimitreachedwebhook.md +16 -0
  59. package/docs/models/shared/clientratelimitreachedwebhookdata.md +9 -0
  60. package/docs/models/shared/clientratelimitresetwebhook.md +16 -0
  61. package/docs/models/shared/clientratelimitresetwebhookdata.md +11 -0
  62. package/docs/models/shared/commercecompanyinfo.md +2 -2
  63. package/docs/models/shared/contact.md +2 -2
  64. package/docs/models/shared/items.md +4 -4
  65. package/docs/models/shared/{accountingcompanyinfophone.md → phonenumber.md} +1 -1
  66. package/docs/models/shared/weblink.md +11 -0
  67. package/docs/models/shared/{itemstype.md → weblinktype.md} +1 -1
  68. package/docs/models/webhooks/accountcategoriesupdatedresponse.md +10 -0
  69. package/docs/models/webhooks/clientratelimitreachedresponse.md +10 -0
  70. package/docs/models/webhooks/clientratelimitresetresponse.md +10 -0
  71. package/docs/sdks/accountingbankdata/README.md +1 -1
  72. package/docs/sdks/accountingbankdataaccounts/README.md +3 -3
  73. package/docs/sdks/accountspayable/README.md +1 -1
  74. package/docs/sdks/accountspayablebillcreditnotes/README.md +3 -3
  75. package/docs/sdks/accountspayablebillpayments/README.md +3 -3
  76. package/docs/sdks/accountspayablebills/README.md +6 -6
  77. package/docs/sdks/accountspayablesuppliers/README.md +6 -6
  78. package/docs/sdks/accountsreceivable/README.md +1 -1
  79. package/docs/sdks/accountsreceivablecreditnotes/README.md +3 -3
  80. package/docs/sdks/accountsreceivablecustomers/README.md +6 -6
  81. package/docs/sdks/accountsreceivabledirectincomes/README.md +6 -6
  82. package/docs/sdks/accountsreceivableinvoices/README.md +8 -8
  83. package/docs/sdks/accountsreceivablepayments/README.md +3 -3
  84. package/docs/sdks/accountsreceivablereports/README.md +5 -5
  85. package/docs/sdks/banking/README.md +1 -1
  86. package/docs/sdks/bankingaccountbalances/README.md +2 -2
  87. package/docs/sdks/bankingcategorizedstatement/README.md +2 -2
  88. package/docs/sdks/bankingtransactioncategories/README.md +3 -3
  89. package/docs/sdks/companies/README.md +1 -1
  90. package/docs/sdks/companyinfo/README.md +1 -1
  91. package/docs/sdks/connections/README.md +1 -1
  92. package/docs/sdks/dataintegrity/README.md +1 -1
  93. package/docs/sdks/excelreports/README.md +1 -1
  94. package/docs/sdks/fileupload/README.md +1 -1
  95. package/docs/sdks/financialstatements/README.md +1 -1
  96. package/docs/sdks/financialstatementsaccounts/README.md +3 -3
  97. package/docs/sdks/financialstatementsbalancesheet/README.md +3 -3
  98. package/docs/sdks/financialstatementscashflow/README.md +2 -2
  99. package/docs/sdks/financialstatementsprofitandloss/README.md +3 -3
  100. package/docs/sdks/liabilities/README.md +1 -1
  101. package/docs/sdks/managedata/README.md +1 -1
  102. package/docs/sdks/managedatapulloperations/README.md +3 -3
  103. package/docs/sdks/managedatarefresh/README.md +3 -3
  104. package/docs/sdks/sales/README.md +1 -1
  105. package/docs/sdks/salespaymentmethods/README.md +3 -3
  106. package/docs/sdks/salesproductcategories/README.md +3 -3
  107. package/docs/sdks/transactions/README.md +1 -1
  108. package/docs/sdks/transactionsaccounttransactions/README.md +3 -3
  109. package/docs/sdks/transactionsdirectcosts/README.md +6 -6
  110. package/docs/sdks/transactionsjournalentries/README.md +3 -3
  111. package/package.json +1 -1
  112. package/dist/sdk/models/shared/withholdingtaxitems.d.ts +0 -5
  113. package/docs/models/shared/accountingcompanyinfoaccountingaddress.md +0 -14
  114. package/docs/models/shared/accountingcompanyinfoweblink.md +0 -11
  115. package/docs/models/shared/accountingcompanyinfoweblinktype.md +0 -12
  116. package/docs/models/shared/weblinksitems.md +0 -11
  117. package/docs/models/shared/withholdingtaxitems.md +0 -9
package/README.md CHANGED
@@ -52,16 +52,16 @@ sdk.accountingBankData.listTransactions({
52
52
  ## Available Resources and Operations
53
53
 
54
54
 
55
- ### [accountingBankData](docs/sdks/accountingbankdata/README.md)
55
+ ### [AccountingBankData](docs/sdks/accountingbankdata/README.md)
56
56
 
57
57
  * [listTransactions](docs/sdks/accountingbankdata/README.md#listtransactions) - List bank account transactions
58
58
 
59
- ### [accountingBankDataAccounts](docs/sdks/accountingbankdataaccounts/README.md)
59
+ ### [AccountingBankData.Accounts](docs/sdks/accountingbankdataaccounts/README.md)
60
60
 
61
61
  * [get](docs/sdks/accountingbankdataaccounts/README.md#get) - Get bank account
62
62
  * [list](docs/sdks/accountingbankdataaccounts/README.md#list) - List bank accounts
63
63
 
64
- ### [companies](docs/sdks/companies/README.md)
64
+ ### [Companies](docs/sdks/companies/README.md)
65
65
 
66
66
  * [create](docs/sdks/companies/README.md#create) - Create company
67
67
  * [delete](docs/sdks/companies/README.md#delete) - Delete a company
@@ -69,12 +69,12 @@ sdk.accountingBankData.listTransactions({
69
69
  * [list](docs/sdks/companies/README.md#list) - List companies
70
70
  * [update](docs/sdks/companies/README.md#update) - Update company
71
71
 
72
- ### [companyInfo](docs/sdks/companyinfo/README.md)
72
+ ### [CompanyInfo](docs/sdks/companyinfo/README.md)
73
73
 
74
74
  * [getAccountingProfile](docs/sdks/companyinfo/README.md#getaccountingprofile) - Get company accounting profile
75
75
  * [getCommerceProfile](docs/sdks/companyinfo/README.md#getcommerceprofile) - Get company commerce profile
76
76
 
77
- ### [connections](docs/sdks/connections/README.md)
77
+ ### [Connections](docs/sdks/connections/README.md)
78
78
 
79
79
  * [create](docs/sdks/connections/README.md#create) - Create connection
80
80
  * [delete](docs/sdks/connections/README.md#delete) - Delete connection
@@ -82,41 +82,41 @@ sdk.accountingBankData.listTransactions({
82
82
  * [list](docs/sdks/connections/README.md#list) - List connections
83
83
  * [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection
84
84
 
85
- ### [dataIntegrity](docs/sdks/dataintegrity/README.md)
85
+ ### [DataIntegrity](docs/sdks/dataintegrity/README.md)
86
86
 
87
87
  * [details](docs/sdks/dataintegrity/README.md#details) - List data integrity details
88
88
  * [status](docs/sdks/dataintegrity/README.md#status) - Get data integrity status
89
89
  * [summaries](docs/sdks/dataintegrity/README.md#summaries) - Get data integrity summaries
90
90
 
91
- ### [excelReports](docs/sdks/excelreports/README.md)
91
+ ### [ExcelReports](docs/sdks/excelreports/README.md)
92
92
 
93
93
  * [download](docs/sdks/excelreports/README.md#download) - Download Excel report
94
94
  * [generate](docs/sdks/excelreports/README.md#generate) - Generate Excel report
95
95
  * [getStatus](docs/sdks/excelreports/README.md#getstatus) - Get Excel report status
96
96
 
97
- ### [fileUpload](docs/sdks/fileupload/README.md)
97
+ ### [FileUpload](docs/sdks/fileupload/README.md)
98
98
 
99
99
  * [download](docs/sdks/fileupload/README.md#download) - Download all files for a company
100
100
  * [listUploaded](docs/sdks/fileupload/README.md#listuploaded) - List all files uploaded by a company
101
101
  * [upload](docs/sdks/fileupload/README.md#upload) - Upload files for a company
102
102
 
103
- ### [liabilities](docs/sdks/liabilities/README.md)
103
+ ### [Liabilities](docs/sdks/liabilities/README.md)
104
104
 
105
105
  * [getLoanSummary](docs/sdks/liabilities/README.md#getloansummary) - Get loan summaries
106
106
  * [listLoanTransactions](docs/sdks/liabilities/README.md#listloantransactions) - List loan transactions
107
107
 
108
108
 
109
- ### [accountsPayableBillCreditNotes](docs/sdks/accountspayablebillcreditnotes/README.md)
109
+ ### [AccountsPayable.BillCreditNotes](docs/sdks/accountspayablebillcreditnotes/README.md)
110
110
 
111
111
  * [get](docs/sdks/accountspayablebillcreditnotes/README.md#get) - Get bill credit note
112
112
  * [list](docs/sdks/accountspayablebillcreditnotes/README.md#list) - List bill credit notes
113
113
 
114
- ### [accountsPayableBillPayments](docs/sdks/accountspayablebillpayments/README.md)
114
+ ### [AccountsPayable.BillPayments](docs/sdks/accountspayablebillpayments/README.md)
115
115
 
116
116
  * [get](docs/sdks/accountspayablebillpayments/README.md#get) - Get bill payment
117
117
  * [list](docs/sdks/accountspayablebillpayments/README.md#list) - List bill payments
118
118
 
119
- ### [accountsPayableBills](docs/sdks/accountspayablebills/README.md)
119
+ ### [AccountsPayable.Bills](docs/sdks/accountspayablebills/README.md)
120
120
 
121
121
  * [downloadAttachment](docs/sdks/accountspayablebills/README.md#downloadattachment) - Download bill attachment
122
122
  * [get](docs/sdks/accountspayablebills/README.md#get) - Get bill
@@ -124,7 +124,7 @@ sdk.accountingBankData.listTransactions({
124
124
  * [list](docs/sdks/accountspayablebills/README.md#list) - List bills
125
125
  * [listAttachments](docs/sdks/accountspayablebills/README.md#listattachments) - List bill attachments
126
126
 
127
- ### [accountsPayableSuppliers](docs/sdks/accountspayablesuppliers/README.md)
127
+ ### [AccountsPayable.Suppliers](docs/sdks/accountspayablesuppliers/README.md)
128
128
 
129
129
  * [downloadAttachment](docs/sdks/accountspayablesuppliers/README.md#downloadattachment) - Download supplier attachment
130
130
  * [get](docs/sdks/accountspayablesuppliers/README.md#get) - Get supplier
@@ -133,12 +133,12 @@ sdk.accountingBankData.listTransactions({
133
133
  * [listAttachments](docs/sdks/accountspayablesuppliers/README.md#listattachments) - List supplier attachments
134
134
 
135
135
 
136
- ### [accountsReceivableCreditNotes](docs/sdks/accountsreceivablecreditnotes/README.md)
136
+ ### [AccountsReceivable.CreditNotes](docs/sdks/accountsreceivablecreditnotes/README.md)
137
137
 
138
138
  * [get](docs/sdks/accountsreceivablecreditnotes/README.md#get) - Get credit note
139
139
  * [list](docs/sdks/accountsreceivablecreditnotes/README.md#list) - List credit notes
140
140
 
141
- ### [accountsReceivableCustomers](docs/sdks/accountsreceivablecustomers/README.md)
141
+ ### [AccountsReceivable.Customers](docs/sdks/accountsreceivablecustomers/README.md)
142
142
 
143
143
  * [downloadAttachment](docs/sdks/accountsreceivablecustomers/README.md#downloadattachment) - Download customer attachment
144
144
  * [get](docs/sdks/accountsreceivablecustomers/README.md#get) - Get customer
@@ -146,7 +146,7 @@ sdk.accountingBankData.listTransactions({
146
146
  * [list](docs/sdks/accountsreceivablecustomers/README.md#list) - List customers
147
147
  * [listAttachments](docs/sdks/accountsreceivablecustomers/README.md#listattachments) - List customer attachments
148
148
 
149
- ### [accountsReceivableDirectIncomes](docs/sdks/accountsreceivabledirectincomes/README.md)
149
+ ### [AccountsReceivable.DirectIncomes](docs/sdks/accountsreceivabledirectincomes/README.md)
150
150
 
151
151
  * [downloadAttachment](docs/sdks/accountsreceivabledirectincomes/README.md#downloadattachment) - Download direct income attachment
152
152
  * [get](docs/sdks/accountsreceivabledirectincomes/README.md#get) - Get direct income
@@ -154,7 +154,7 @@ sdk.accountingBankData.listTransactions({
154
154
  * [list](docs/sdks/accountsreceivabledirectincomes/README.md#list) - List direct incomes
155
155
  * [listAttachments](docs/sdks/accountsreceivabledirectincomes/README.md#listattachments) - List direct income attachments
156
156
 
157
- ### [accountsReceivableInvoices](docs/sdks/accountsreceivableinvoices/README.md)
157
+ ### [AccountsReceivable.Invoices](docs/sdks/accountsreceivableinvoices/README.md)
158
158
 
159
159
  * [downloadAttachment](docs/sdks/accountsreceivableinvoices/README.md#downloadattachment) - Download invoice attachment
160
160
  * [downloadPdf](docs/sdks/accountsreceivableinvoices/README.md#downloadpdf) - Get invoice as PDF
@@ -164,12 +164,12 @@ sdk.accountingBankData.listTransactions({
164
164
  * [listAttachments](docs/sdks/accountsreceivableinvoices/README.md#listattachments) - List invoice attachments
165
165
  * [listReconciled](docs/sdks/accountsreceivableinvoices/README.md#listreconciled) - List reconciled invoices
166
166
 
167
- ### [accountsReceivablePayments](docs/sdks/accountsreceivablepayments/README.md)
167
+ ### [AccountsReceivable.Payments](docs/sdks/accountsreceivablepayments/README.md)
168
168
 
169
169
  * [get](docs/sdks/accountsreceivablepayments/README.md#get) - Get payment
170
170
  * [list](docs/sdks/accountsreceivablepayments/README.md#list) - List payments
171
171
 
172
- ### [accountsReceivableReports](docs/sdks/accountsreceivablereports/README.md)
172
+ ### [AccountsReceivable.Reports](docs/sdks/accountsreceivablereports/README.md)
173
173
 
174
174
  * [getAgedCreditors](docs/sdks/accountsreceivablereports/README.md#getagedcreditors) - Aged creditors report
175
175
  * [getAgedDebtors](docs/sdks/accountsreceivablereports/README.md#getageddebtors) - Aged debtors report
@@ -177,7 +177,7 @@ sdk.accountingBankData.listTransactions({
177
177
  * [isAgedDebtorsAvailable](docs/sdks/accountsreceivablereports/README.md#isageddebtorsavailable) - Aged debtors report available
178
178
 
179
179
 
180
- ### [bankingAccountBalances](docs/sdks/bankingaccountbalances/README.md)
180
+ ### [Banking.AccountBalances](docs/sdks/bankingaccountbalances/README.md)
181
181
 
182
182
  * [list](docs/sdks/bankingaccountbalances/README.md#list) - List account balances
183
183
 
@@ -186,11 +186,11 @@ sdk.accountingBankData.listTransactions({
186
186
  * [get](docs/sdks/bankingaccounts/README.md#get) - Get account
187
187
  * [list](docs/sdks/bankingaccounts/README.md#list) - List accounts
188
188
 
189
- ### [bankingCategorizedStatement](docs/sdks/bankingcategorizedstatement/README.md)
189
+ ### [Banking.CategorizedStatement](docs/sdks/bankingcategorizedstatement/README.md)
190
190
 
191
191
  * [get](docs/sdks/bankingcategorizedstatement/README.md#get) - Get categorized bank statement
192
192
 
193
- ### [bankingTransactionCategories](docs/sdks/bankingtransactioncategories/README.md)
193
+ ### [Banking.TransactionCategories](docs/sdks/bankingtransactioncategories/README.md)
194
194
 
195
195
  * [get](docs/sdks/bankingtransactioncategories/README.md#get) - Get transaction category
196
196
  * [list](docs/sdks/bankingtransactioncategories/README.md#list) - List transaction categories
@@ -201,35 +201,35 @@ sdk.accountingBankData.listTransactions({
201
201
  * [list](docs/sdks/bankingtransactions/README.md#list) - List transactions
202
202
 
203
203
 
204
- ### [financialStatementsAccounts](docs/sdks/financialstatementsaccounts/README.md)
204
+ ### [FinancialStatements.Accounts](docs/sdks/financialstatementsaccounts/README.md)
205
205
 
206
206
  * [get](docs/sdks/financialstatementsaccounts/README.md#get) - Get account
207
207
  * [list](docs/sdks/financialstatementsaccounts/README.md#list) - List accounts
208
208
 
209
- ### [financialStatementsBalanceSheet](docs/sdks/financialstatementsbalancesheet/README.md)
209
+ ### [FinancialStatements.BalanceSheet](docs/sdks/financialstatementsbalancesheet/README.md)
210
210
 
211
211
  * [get](docs/sdks/financialstatementsbalancesheet/README.md#get) - Get balance sheet
212
212
  * [getCategorizedAccounts](docs/sdks/financialstatementsbalancesheet/README.md#getcategorizedaccounts) - Get categorized balance sheet statement
213
213
 
214
- ### [financialStatementsCashFlow](docs/sdks/financialstatementscashflow/README.md)
214
+ ### [FinancialStatements.CashFlow](docs/sdks/financialstatementscashflow/README.md)
215
215
 
216
216
  * [get](docs/sdks/financialstatementscashflow/README.md#get) - Get cash flow statement
217
217
 
218
- ### [financialStatementsProfitAndLoss](docs/sdks/financialstatementsprofitandloss/README.md)
218
+ ### [FinancialStatements.ProfitAndLoss](docs/sdks/financialstatementsprofitandloss/README.md)
219
219
 
220
220
  * [get](docs/sdks/financialstatementsprofitandloss/README.md#get) - Get profit and loss
221
221
  * [getCategorizedAccounts](docs/sdks/financialstatementsprofitandloss/README.md#getcategorizedaccounts) - Get categorized profit and loss statement
222
222
 
223
- ### [manageData](docs/sdks/managedata/README.md)
223
+ ### [ManageData](docs/sdks/managedata/README.md)
224
224
 
225
225
  * [getStatus](docs/sdks/managedata/README.md#getstatus) - Get data status
226
226
 
227
- ### [manageDataPullOperations](docs/sdks/managedatapulloperations/README.md)
227
+ ### [ManageData.PullOperations](docs/sdks/managedatapulloperations/README.md)
228
228
 
229
229
  * [get](docs/sdks/managedatapulloperations/README.md#get) - Get pull operation
230
230
  * [list](docs/sdks/managedatapulloperations/README.md#list) - List pull operations
231
231
 
232
- ### [manageDataRefresh](docs/sdks/managedatarefresh/README.md)
232
+ ### [ManageData.Refresh](docs/sdks/managedatarefresh/README.md)
233
233
 
234
234
  * [allDataTypes](docs/sdks/managedatarefresh/README.md#alldatatypes) - Refresh all data
235
235
  * [dataType](docs/sdks/managedatarefresh/README.md#datatype) - Refresh data type
@@ -261,7 +261,7 @@ sdk.accountingBankData.listTransactions({
261
261
  * [get](docs/sdks/salesorders/README.md#get) - Get order
262
262
  * [list](docs/sdks/salesorders/README.md#list) - List orders
263
263
 
264
- ### [salesPaymentMethods](docs/sdks/salespaymentmethods/README.md)
264
+ ### [Sales.PaymentMethods](docs/sdks/salespaymentmethods/README.md)
265
265
 
266
266
  * [get](docs/sdks/salespaymentmethods/README.md#get) - Get payment method
267
267
  * [list](docs/sdks/salespaymentmethods/README.md#list) - List payment methods
@@ -271,7 +271,7 @@ sdk.accountingBankData.listTransactions({
271
271
  * [get](docs/sdks/salespayments/README.md#get) - Get payment
272
272
  * [list](docs/sdks/salespayments/README.md#list) - List payments
273
273
 
274
- ### [salesProductCategories](docs/sdks/salesproductcategories/README.md)
274
+ ### [Sales.ProductCategories](docs/sdks/salesproductcategories/README.md)
275
275
 
276
276
  * [get](docs/sdks/salesproductcategories/README.md#get) - Get product category
277
277
  * [list](docs/sdks/salesproductcategories/README.md#list) - List product categories
@@ -292,12 +292,12 @@ sdk.accountingBankData.listTransactions({
292
292
  * [list](docs/sdks/salestransactions/README.md#list) - List transactions
293
293
 
294
294
 
295
- ### [transactionsAccountTransactions](docs/sdks/transactionsaccounttransactions/README.md)
295
+ ### [Transactions.AccountTransactions](docs/sdks/transactionsaccounttransactions/README.md)
296
296
 
297
297
  * [get](docs/sdks/transactionsaccounttransactions/README.md#get) - Get account transaction
298
298
  * [list](docs/sdks/transactionsaccounttransactions/README.md#list) - List account transactions
299
299
 
300
- ### [transactionsDirectCosts](docs/sdks/transactionsdirectcosts/README.md)
300
+ ### [Transactions.DirectCosts](docs/sdks/transactionsdirectcosts/README.md)
301
301
 
302
302
  * [downloadAttachment](docs/sdks/transactionsdirectcosts/README.md#downloadattachment) - Download direct cost attachment
303
303
  * [get](docs/sdks/transactionsdirectcosts/README.md#get) - Get direct cost
@@ -305,7 +305,7 @@ sdk.accountingBankData.listTransactions({
305
305
  * [list](docs/sdks/transactionsdirectcosts/README.md#list) - List direct costs
306
306
  * [listAttachments](docs/sdks/transactionsdirectcosts/README.md#listattachments) - List direct cost attachments
307
307
 
308
- ### [transactionsJournalEntries](docs/sdks/transactionsjournalentries/README.md)
308
+ ### [Transactions.JournalEntries](docs/sdks/transactionsjournalentries/README.md)
309
309
 
310
310
  * [get](docs/sdks/transactionsjournalentries/README.md#get) - Get journal entry
311
311
  * [list](docs/sdks/transactionsjournalentries/README.md#list) - List journal entries
@@ -0,0 +1,40 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ import { AccountCategoriesUpdatedWebhookData } from "./accountcategoriesupdatedwebhookdata";
3
+ /**
4
+ * Webhook request body for account categories updated.
5
+ */
6
+ export declare class AccountCategoriesUpdatedWebhook extends SpeakeasyBase {
7
+ /**
8
+ * Unique identifier of the webhook event.
9
+ */
10
+ alertId?: string;
11
+ /**
12
+ * Unique identifier for your client in Codat.
13
+ */
14
+ clientId?: string;
15
+ /**
16
+ * Name of your client in Codat.
17
+ */
18
+ clientName?: string;
19
+ /**
20
+ * Unique identifier for your SMB in Codat.
21
+ */
22
+ companyId?: string;
23
+ data?: AccountCategoriesUpdatedWebhookData;
24
+ /**
25
+ * Unique identifier for a company's data connection.
26
+ */
27
+ dataConnectionId?: string;
28
+ /**
29
+ * A human readable message about the webhook.
30
+ */
31
+ message?: string;
32
+ /**
33
+ * Unique identifier for the rule.
34
+ */
35
+ ruleId?: string;
36
+ /**
37
+ * The type of rule.
38
+ */
39
+ ruleType?: string;
40
+ }
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __extends = (this && this.__extends) || (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
+ return extendStatics(d, b);
11
+ };
12
+ return function (d, b) {
13
+ if (typeof b !== "function" && b !== null)
14
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
21
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
25
+ };
26
+ var __metadata = (this && this.__metadata) || function (k, v) {
27
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.AccountCategoriesUpdatedWebhook = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var accountcategoriesupdatedwebhookdata_1 = require("./accountcategoriesupdatedwebhookdata");
33
+ var class_transformer_1 = require("class-transformer");
34
+ /**
35
+ * Webhook request body for account categories updated.
36
+ */
37
+ var AccountCategoriesUpdatedWebhook = /** @class */ (function (_super) {
38
+ __extends(AccountCategoriesUpdatedWebhook, _super);
39
+ function AccountCategoriesUpdatedWebhook() {
40
+ return _super !== null && _super.apply(this, arguments) || this;
41
+ }
42
+ __decorate([
43
+ (0, utils_1.SpeakeasyMetadata)(),
44
+ (0, class_transformer_1.Expose)({ name: "AlertId" }),
45
+ __metadata("design:type", String)
46
+ ], AccountCategoriesUpdatedWebhook.prototype, "alertId", void 0);
47
+ __decorate([
48
+ (0, utils_1.SpeakeasyMetadata)(),
49
+ (0, class_transformer_1.Expose)({ name: "ClientId" }),
50
+ __metadata("design:type", String)
51
+ ], AccountCategoriesUpdatedWebhook.prototype, "clientId", void 0);
52
+ __decorate([
53
+ (0, utils_1.SpeakeasyMetadata)(),
54
+ (0, class_transformer_1.Expose)({ name: "ClientName" }),
55
+ __metadata("design:type", String)
56
+ ], AccountCategoriesUpdatedWebhook.prototype, "clientName", void 0);
57
+ __decorate([
58
+ (0, utils_1.SpeakeasyMetadata)(),
59
+ (0, class_transformer_1.Expose)({ name: "CompanyId" }),
60
+ __metadata("design:type", String)
61
+ ], AccountCategoriesUpdatedWebhook.prototype, "companyId", void 0);
62
+ __decorate([
63
+ (0, utils_1.SpeakeasyMetadata)(),
64
+ (0, class_transformer_1.Expose)({ name: "Data" }),
65
+ (0, class_transformer_1.Type)(function () { return accountcategoriesupdatedwebhookdata_1.AccountCategoriesUpdatedWebhookData; }),
66
+ __metadata("design:type", accountcategoriesupdatedwebhookdata_1.AccountCategoriesUpdatedWebhookData)
67
+ ], AccountCategoriesUpdatedWebhook.prototype, "data", void 0);
68
+ __decorate([
69
+ (0, utils_1.SpeakeasyMetadata)(),
70
+ (0, class_transformer_1.Expose)({ name: "DataConnectionId" }),
71
+ __metadata("design:type", String)
72
+ ], AccountCategoriesUpdatedWebhook.prototype, "dataConnectionId", void 0);
73
+ __decorate([
74
+ (0, utils_1.SpeakeasyMetadata)(),
75
+ (0, class_transformer_1.Expose)({ name: "Message" }),
76
+ __metadata("design:type", String)
77
+ ], AccountCategoriesUpdatedWebhook.prototype, "message", void 0);
78
+ __decorate([
79
+ (0, utils_1.SpeakeasyMetadata)(),
80
+ (0, class_transformer_1.Expose)({ name: "RuleId" }),
81
+ __metadata("design:type", String)
82
+ ], AccountCategoriesUpdatedWebhook.prototype, "ruleId", void 0);
83
+ __decorate([
84
+ (0, utils_1.SpeakeasyMetadata)(),
85
+ (0, class_transformer_1.Expose)({ name: "RuleType" }),
86
+ __metadata("design:type", String)
87
+ ], AccountCategoriesUpdatedWebhook.prototype, "ruleType", void 0);
88
+ return AccountCategoriesUpdatedWebhook;
89
+ }(utils_1.SpeakeasyBase));
90
+ exports.AccountCategoriesUpdatedWebhook = AccountCategoriesUpdatedWebhook;
@@ -0,0 +1,7 @@
1
+ import { SpeakeasyBase } from "../../../internal/utils";
2
+ export declare class AccountCategoriesUpdatedWebhookData extends SpeakeasyBase {
3
+ /**
4
+ * The date on which this account categories were last modified in Codat.
5
+ */
6
+ modifiedDate?: string;
7
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
+ */
5
+ var __extends = (this && this.__extends) || (function () {
6
+ var extendStatics = function (d, b) {
7
+ extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
10
+ return extendStatics(d, b);
11
+ };
12
+ return function (d, b) {
13
+ if (typeof b !== "function" && b !== null)
14
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
21
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
25
+ };
26
+ var __metadata = (this && this.__metadata) || function (k, v) {
27
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ exports.AccountCategoriesUpdatedWebhookData = void 0;
31
+ var utils_1 = require("../../../internal/utils");
32
+ var class_transformer_1 = require("class-transformer");
33
+ var AccountCategoriesUpdatedWebhookData = /** @class */ (function (_super) {
34
+ __extends(AccountCategoriesUpdatedWebhookData, _super);
35
+ function AccountCategoriesUpdatedWebhookData() {
36
+ return _super !== null && _super.apply(this, arguments) || this;
37
+ }
38
+ __decorate([
39
+ (0, utils_1.SpeakeasyMetadata)(),
40
+ (0, class_transformer_1.Expose)({ name: "modifiedDate" }),
41
+ __metadata("design:type", String)
42
+ ], AccountCategoriesUpdatedWebhookData.prototype, "modifiedDate", void 0);
43
+ return AccountCategoriesUpdatedWebhookData;
44
+ }(utils_1.SpeakeasyBase));
45
+ exports.AccountCategoriesUpdatedWebhookData = AccountCategoriesUpdatedWebhookData;
@@ -1,6 +1,6 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
2
  import { AccountingAddressType } from "./accountingaddresstype";
3
- export declare class Addressesitems extends SpeakeasyBase {
3
+ export declare class AccountingAddress extends SpeakeasyBase {
4
4
  /**
5
5
  * City of the customer address.
6
6
  */
@@ -27,50 +27,50 @@ var __metadata = (this && this.__metadata) || function (k, v) {
27
27
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
- exports.Addressesitems = void 0;
30
+ exports.AccountingAddress = void 0;
31
31
  var utils_1 = require("../../../internal/utils");
32
32
  var accountingaddresstype_1 = require("./accountingaddresstype");
33
33
  var class_transformer_1 = require("class-transformer");
34
- var Addressesitems = /** @class */ (function (_super) {
35
- __extends(Addressesitems, _super);
36
- function Addressesitems() {
34
+ var AccountingAddress = /** @class */ (function (_super) {
35
+ __extends(AccountingAddress, _super);
36
+ function AccountingAddress() {
37
37
  return _super !== null && _super.apply(this, arguments) || this;
38
38
  }
39
39
  __decorate([
40
40
  (0, utils_1.SpeakeasyMetadata)(),
41
41
  (0, class_transformer_1.Expose)({ name: "city" }),
42
42
  __metadata("design:type", String)
43
- ], Addressesitems.prototype, "city", void 0);
43
+ ], AccountingAddress.prototype, "city", void 0);
44
44
  __decorate([
45
45
  (0, utils_1.SpeakeasyMetadata)(),
46
46
  (0, class_transformer_1.Expose)({ name: "country" }),
47
47
  __metadata("design:type", String)
48
- ], Addressesitems.prototype, "country", void 0);
48
+ ], AccountingAddress.prototype, "country", void 0);
49
49
  __decorate([
50
50
  (0, utils_1.SpeakeasyMetadata)(),
51
51
  (0, class_transformer_1.Expose)({ name: "line1" }),
52
52
  __metadata("design:type", String)
53
- ], Addressesitems.prototype, "line1", void 0);
53
+ ], AccountingAddress.prototype, "line1", void 0);
54
54
  __decorate([
55
55
  (0, utils_1.SpeakeasyMetadata)(),
56
56
  (0, class_transformer_1.Expose)({ name: "line2" }),
57
57
  __metadata("design:type", String)
58
- ], Addressesitems.prototype, "line2", void 0);
58
+ ], AccountingAddress.prototype, "line2", void 0);
59
59
  __decorate([
60
60
  (0, utils_1.SpeakeasyMetadata)(),
61
61
  (0, class_transformer_1.Expose)({ name: "postalCode" }),
62
62
  __metadata("design:type", String)
63
- ], Addressesitems.prototype, "postalCode", void 0);
63
+ ], AccountingAddress.prototype, "postalCode", void 0);
64
64
  __decorate([
65
65
  (0, utils_1.SpeakeasyMetadata)(),
66
66
  (0, class_transformer_1.Expose)({ name: "region" }),
67
67
  __metadata("design:type", String)
68
- ], Addressesitems.prototype, "region", void 0);
68
+ ], AccountingAddress.prototype, "region", void 0);
69
69
  __decorate([
70
70
  (0, utils_1.SpeakeasyMetadata)(),
71
71
  (0, class_transformer_1.Expose)({ name: "type" }),
72
72
  __metadata("design:type", String)
73
- ], Addressesitems.prototype, "type", void 0);
74
- return Addressesitems;
73
+ ], AccountingAddress.prototype, "type", void 0);
74
+ return AccountingAddress;
75
75
  }(utils_1.SpeakeasyBase));
76
- exports.Addressesitems = Addressesitems;
76
+ exports.AccountingAddress = AccountingAddress;
@@ -2,10 +2,10 @@ import { SpeakeasyBase } from "../../../internal/utils";
2
2
  import { AccountingPaymentAllocation } from "./accountingpaymentallocation";
3
3
  import { BillCreditNoteLineItem } from "./billcreditnotelineitem";
4
4
  import { BillCreditNoteStatus } from "./billcreditnotestatus";
5
+ import { Items } from "./items";
5
6
  import { Metadata } from "./metadata";
6
7
  import { SupplementalData } from "./supplementaldata";
7
8
  import { SupplierRef } from "./supplierref";
8
- import { WithholdingTaxitems } from "./withholdingtaxitems";
9
9
  /**
10
10
  * > **Bill credit notes or credit notes?**
11
11
  *
@@ -180,5 +180,5 @@ export declare class AccountingBillCreditNote extends SpeakeasyBase {
180
180
  * Amount of tax included in the bill credit note.
181
181
  */
182
182
  totalTaxAmount: number;
183
- withholdingTax?: WithholdingTaxitems[];
183
+ withholdingTax?: Items[];
184
184
  }
@@ -32,10 +32,10 @@ var utils_1 = require("../../../internal/utils");
32
32
  var accountingpaymentallocation_1 = require("./accountingpaymentallocation");
33
33
  var billcreditnotelineitem_1 = require("./billcreditnotelineitem");
34
34
  var billcreditnotestatus_1 = require("./billcreditnotestatus");
35
+ var items_1 = require("./items");
35
36
  var metadata_1 = require("./metadata");
36
37
  var supplementaldata_1 = require("./supplementaldata");
37
38
  var supplierref_1 = require("./supplierref");
38
- var withholdingtaxitems_1 = require("./withholdingtaxitems");
39
39
  var class_transformer_1 = require("class-transformer");
40
40
  /**
41
41
  * > **Bill credit notes or credit notes?**
@@ -173,9 +173,9 @@ var AccountingBillCreditNote = /** @class */ (function (_super) {
173
173
  __metadata("design:type", Number)
174
174
  ], AccountingBillCreditNote.prototype, "totalTaxAmount", void 0);
175
175
  __decorate([
176
- (0, utils_1.SpeakeasyMetadata)({ elemType: withholdingtaxitems_1.WithholdingTaxitems }),
176
+ (0, utils_1.SpeakeasyMetadata)({ elemType: items_1.Items }),
177
177
  (0, class_transformer_1.Expose)({ name: "withholdingTax" }),
178
- (0, class_transformer_1.Type)(function () { return withholdingtaxitems_1.WithholdingTaxitems; }),
178
+ (0, class_transformer_1.Type)(function () { return items_1.Items; }),
179
179
  __metadata("design:type", Array)
180
180
  ], AccountingBillCreditNote.prototype, "withholdingTax", void 0);
181
181
  return AccountingBillCreditNote;
@@ -1,67 +1,7 @@
1
1
  import { SpeakeasyBase } from "../../../internal/utils";
2
- import { AccountingAddressType } from "./accountingaddresstype";
3
- import { PhoneNumberType } from "./phonenumbertype";
4
- export declare class AccountingCompanyInfoAccountingAddress extends SpeakeasyBase {
5
- /**
6
- * City of the customer address.
7
- */
8
- city?: string;
9
- /**
10
- * Country of the customer address.
11
- */
12
- country?: string;
13
- /**
14
- * Line 1 of the customer address.
15
- */
16
- line1?: string;
17
- /**
18
- * Line 2 of the customer address.
19
- */
20
- line2?: string;
21
- /**
22
- * Postal code or zip code.
23
- */
24
- postalCode?: string;
25
- /**
26
- * Region of the customer address.
27
- */
28
- region?: string;
29
- /**
30
- * The type of the address
31
- */
32
- type: AccountingAddressType;
33
- }
34
- export declare class AccountingCompanyInfoPhone extends SpeakeasyBase {
35
- /**
36
- * A phone number.
37
- */
38
- number: string;
39
- /**
40
- * The type of phone number
41
- */
42
- type: PhoneNumberType;
43
- }
44
- /**
45
- * The type of the weblink.
46
- */
47
- export declare enum AccountingCompanyInfoWeblinkType {
48
- Website = "Website",
49
- Social = "Social",
50
- Unknown = "Unknown"
51
- }
52
- /**
53
- * Weblink associated with the company.
54
- */
55
- export declare class AccountingCompanyInfoWeblink extends SpeakeasyBase {
56
- /**
57
- * The type of the weblink.
58
- */
59
- type?: AccountingCompanyInfoWeblinkType;
60
- /**
61
- * The full URL for the weblink.
62
- */
63
- url?: string;
64
- }
2
+ import { AccountingAddress } from "./accountingaddress";
3
+ import { PhoneNumber } from "./phonenumber";
4
+ import { WebLink } from "./weblink";
65
5
  /**
66
6
  * > View the coverage for company info in the <a className="external" href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=cashFlowStatement" target="_blank">Data coverage explorer</a>.
67
7
  *
@@ -81,7 +21,7 @@ export declare class AccountingCompanyInfo extends SpeakeasyBase {
81
21
  /**
82
22
  * An array of Addresses.
83
23
  */
84
- addresses?: AccountingCompanyInfoAccountingAddress[];
24
+ addresses?: AccountingAddress[];
85
25
  /**
86
26
  * Currency set in the accounting platform of the linked company. Used by the currency rate.
87
27
  */
@@ -169,7 +109,7 @@ export declare class AccountingCompanyInfo extends SpeakeasyBase {
169
109
  /**
170
110
  * An array of phone numbers.
171
111
  */
172
- phoneNumbers?: AccountingCompanyInfoPhone[];
112
+ phoneNumbers?: PhoneNumber[];
173
113
  /**
174
114
  * Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House.
175
115
  */
@@ -189,5 +129,5 @@ export declare class AccountingCompanyInfo extends SpeakeasyBase {
189
129
  /**
190
130
  * An array of weblinks.
191
131
  */
192
- webLinks?: AccountingCompanyInfoWeblink[];
132
+ webLinks?: WebLink[];
193
133
  }