@codat/lending 1.2.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 (122) hide show
  1. package/README.md +57 -59
  2. package/dist/sdk/accountspayable.d.ts +0 -34
  3. package/dist/sdk/accountspayable.js +1 -260
  4. package/dist/sdk/accountspayablebills.d.ts +28 -0
  5. package/dist/sdk/accountspayablebills.js +183 -1
  6. package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.d.ts +40 -0
  7. package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.js +90 -0
  8. package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.d.ts +7 -0
  9. package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.js +45 -0
  10. package/dist/sdk/models/shared/{addressesitems.d.ts → accountingaddress.d.ts} +1 -1
  11. package/dist/sdk/models/shared/{addressesitems.js → accountingaddress.js} +13 -13
  12. package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +2 -2
  13. package/dist/sdk/models/shared/accountingbillcreditnote.js +3 -3
  14. package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +6 -66
  15. package/dist/sdk/models/shared/accountingcompanyinfo.js +10 -100
  16. package/dist/sdk/models/shared/accountingcreditnote.d.ts +2 -2
  17. package/dist/sdk/models/shared/accountingcreditnote.js +3 -3
  18. package/dist/sdk/models/shared/accountingcustomer.d.ts +2 -2
  19. package/dist/sdk/models/shared/accountingcustomer.js +3 -3
  20. package/dist/sdk/models/shared/accountinginvoice.d.ts +2 -2
  21. package/dist/sdk/models/shared/accountinginvoice.js +3 -3
  22. package/dist/sdk/models/shared/accountingsupplier.d.ts +2 -2
  23. package/dist/sdk/models/shared/accountingsupplier.js +3 -3
  24. package/dist/sdk/models/shared/clientratelimitreachedwebhook.d.ts +32 -0
  25. package/dist/sdk/models/shared/clientratelimitreachedwebhook.js +80 -0
  26. package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.d.ts +31 -0
  27. package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.js +50 -0
  28. package/dist/sdk/models/shared/clientratelimitresetwebhook.d.ts +32 -0
  29. package/dist/sdk/models/shared/clientratelimitresetwebhook.js +80 -0
  30. package/dist/sdk/models/shared/clientratelimitresetwebhookdata.d.ts +39 -0
  31. package/dist/sdk/models/shared/clientratelimitresetwebhookdata.js +60 -0
  32. package/dist/sdk/models/shared/commercecompanyinfo.d.ts +4 -4
  33. package/dist/sdk/models/shared/commercecompanyinfo.js +6 -6
  34. package/dist/sdk/models/shared/contact.d.ts +4 -4
  35. package/dist/sdk/models/shared/contact.js +6 -6
  36. package/dist/sdk/models/shared/index.d.ts +9 -3
  37. package/dist/sdk/models/shared/index.js +9 -3
  38. package/dist/sdk/models/shared/items.d.ts +2 -9
  39. package/dist/sdk/models/shared/items.js +5 -6
  40. package/dist/sdk/models/shared/phonenumber.d.ts +12 -0
  41. package/dist/sdk/models/shared/{withholdingtaxitems.js → phonenumber.js} +12 -11
  42. package/dist/sdk/models/shared/{weblinksitems.d.ts → weblink.d.ts} +3 -3
  43. package/dist/sdk/models/shared/{weblinksitems.js → weblink.js} +14 -14
  44. package/dist/sdk/models/webhooks/accountcategoriesupdated.d.ts +7 -0
  45. package/dist/sdk/models/webhooks/accountcategoriesupdated.js +51 -0
  46. package/dist/sdk/models/webhooks/clientratelimitreached.d.ts +7 -0
  47. package/dist/sdk/models/webhooks/clientratelimitreached.js +51 -0
  48. package/dist/sdk/models/webhooks/clientratelimitreset.d.ts +7 -0
  49. package/dist/sdk/models/webhooks/clientratelimitreset.js +51 -0
  50. package/dist/sdk/models/webhooks/index.d.ts +3 -0
  51. package/dist/sdk/models/webhooks/index.js +22 -0
  52. package/dist/sdk/sdk.d.ts +1 -4
  53. package/dist/sdk/sdk.js +3 -3
  54. package/docs/models/shared/accountcategoriesupdatedwebhook.md +18 -0
  55. package/docs/models/shared/accountcategoriesupdatedwebhookdata.md +8 -0
  56. package/docs/models/shared/{addressesitems.md → accountingaddress.md} +1 -1
  57. package/docs/models/shared/accountingbillcreditnote.md +1 -1
  58. package/docs/models/shared/accountingcompanyinfo.md +3 -3
  59. package/docs/models/shared/accountingcreditnote.md +1 -1
  60. package/docs/models/shared/accountingcustomer.md +1 -1
  61. package/docs/models/shared/accountinginvoice.md +1 -1
  62. package/docs/models/shared/accountingsupplier.md +1 -1
  63. package/docs/models/shared/clientratelimitreachedwebhook.md +16 -0
  64. package/docs/models/shared/clientratelimitreachedwebhookdata.md +9 -0
  65. package/docs/models/shared/clientratelimitresetwebhook.md +16 -0
  66. package/docs/models/shared/clientratelimitresetwebhookdata.md +11 -0
  67. package/docs/models/shared/commercecompanyinfo.md +2 -2
  68. package/docs/models/shared/contact.md +2 -2
  69. package/docs/models/shared/items.md +4 -4
  70. package/docs/models/shared/{accountingcompanyinfophone.md → phonenumber.md} +1 -1
  71. package/docs/models/shared/weblink.md +11 -0
  72. package/docs/models/shared/{itemstype.md → weblinktype.md} +1 -1
  73. package/docs/models/webhooks/accountcategoriesupdatedresponse.md +10 -0
  74. package/docs/models/webhooks/clientratelimitreachedresponse.md +10 -0
  75. package/docs/models/webhooks/clientratelimitresetresponse.md +10 -0
  76. package/docs/sdks/accountingbankdata/README.md +1 -1
  77. package/docs/sdks/accountingbankdataaccounts/README.md +3 -3
  78. package/docs/sdks/accountspayable/README.md +1 -101
  79. package/docs/sdks/accountspayablebillcreditnotes/README.md +5 -5
  80. package/docs/sdks/accountspayablebillpayments/README.md +5 -5
  81. package/docs/sdks/accountspayablebills/README.md +103 -7
  82. package/docs/sdks/accountspayablesuppliers/README.md +11 -11
  83. package/docs/sdks/accountsreceivable/README.md +1 -1
  84. package/docs/sdks/accountsreceivablecreditnotes/README.md +3 -3
  85. package/docs/sdks/accountsreceivablecustomers/README.md +6 -6
  86. package/docs/sdks/accountsreceivabledirectincomes/README.md +6 -6
  87. package/docs/sdks/accountsreceivableinvoices/README.md +8 -8
  88. package/docs/sdks/accountsreceivablepayments/README.md +3 -3
  89. package/docs/sdks/accountsreceivablereports/README.md +5 -5
  90. package/docs/sdks/banking/README.md +1 -1
  91. package/docs/sdks/bankingaccountbalances/README.md +2 -2
  92. package/docs/sdks/bankingcategorizedstatement/README.md +2 -2
  93. package/docs/sdks/bankingtransactioncategories/README.md +3 -3
  94. package/docs/sdks/companies/README.md +2 -2
  95. package/docs/sdks/companyinfo/README.md +1 -1
  96. package/docs/sdks/connections/README.md +4 -4
  97. package/docs/sdks/dataintegrity/README.md +3 -3
  98. package/docs/sdks/excelreports/README.md +4 -4
  99. package/docs/sdks/fileupload/README.md +3 -3
  100. package/docs/sdks/financialstatements/README.md +1 -1
  101. package/docs/sdks/financialstatementsaccounts/README.md +3 -3
  102. package/docs/sdks/financialstatementsbalancesheet/README.md +3 -3
  103. package/docs/sdks/financialstatementscashflow/README.md +2 -2
  104. package/docs/sdks/financialstatementsprofitandloss/README.md +3 -3
  105. package/docs/sdks/liabilities/README.md +2 -2
  106. package/docs/sdks/managedata/README.md +1 -1
  107. package/docs/sdks/managedatapulloperations/README.md +3 -3
  108. package/docs/sdks/managedatarefresh/README.md +3 -3
  109. package/docs/sdks/sales/README.md +1 -1
  110. package/docs/sdks/salespaymentmethods/README.md +3 -3
  111. package/docs/sdks/salesproductcategories/README.md +3 -3
  112. package/docs/sdks/transactions/README.md +1 -1
  113. package/docs/sdks/transactionsaccounttransactions/README.md +3 -3
  114. package/docs/sdks/transactionsdirectcosts/README.md +6 -6
  115. package/docs/sdks/transactionsjournalentries/README.md +3 -3
  116. package/package.json +1 -1
  117. package/dist/sdk/models/shared/withholdingtaxitems.d.ts +0 -5
  118. package/docs/models/shared/accountingcompanyinfoaccountingaddress.md +0 -14
  119. package/docs/models/shared/accountingcompanyinfoweblink.md +0 -11
  120. package/docs/models/shared/accountingcompanyinfoweblinktype.md +0 -12
  121. package/docs/models/shared/weblinksitems.md +0 -11
  122. package/docs/models/shared/withholdingtaxitems.md +0 -9
package/README.md CHANGED
@@ -52,45 +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
- ### [accountsPayable](docs/sdks/accountspayable/README.md)
65
-
66
- * [downloadBillAttachment](docs/sdks/accountspayable/README.md#downloadbillattachment) - Download bill attachment
67
- * [getBillAttachment](docs/sdks/accountspayable/README.md#getbillattachment) - Get bill attachment
68
-
69
- ### [accountsPayableBillCreditNotes](docs/sdks/accountspayablebillcreditnotes/README.md)
70
-
71
- * [get](docs/sdks/accountspayablebillcreditnotes/README.md#get) - Get bill credit note
72
- * [list](docs/sdks/accountspayablebillcreditnotes/README.md#list) - List bill credit notes
73
-
74
- ### [accountsPayableBillPayments](docs/sdks/accountspayablebillpayments/README.md)
75
-
76
- * [get](docs/sdks/accountspayablebillpayments/README.md#get) - Get bill payment
77
- * [list](docs/sdks/accountspayablebillpayments/README.md#list) - List bill payments
78
-
79
- ### [accountsPayableBills](docs/sdks/accountspayablebills/README.md)
80
-
81
- * [get](docs/sdks/accountspayablebills/README.md#get) - Get bill
82
- * [list](docs/sdks/accountspayablebills/README.md#list) - List bills
83
- * [listAttachments](docs/sdks/accountspayablebills/README.md#listattachments) - List bill attachments
84
-
85
- ### [accountsPayableSuppliers](docs/sdks/accountspayablesuppliers/README.md)
86
-
87
- * [downloadAttachment](docs/sdks/accountspayablesuppliers/README.md#downloadattachment) - Download supplier attachment
88
- * [get](docs/sdks/accountspayablesuppliers/README.md#get) - Get supplier
89
- * [getAttachment](docs/sdks/accountspayablesuppliers/README.md#getattachment) - Get supplier attachment
90
- * [list](docs/sdks/accountspayablesuppliers/README.md#list) - List suppliers
91
- * [listAttachments](docs/sdks/accountspayablesuppliers/README.md#listattachments) - List supplier attachments
92
-
93
- ### [companies](docs/sdks/companies/README.md)
64
+ ### [Companies](docs/sdks/companies/README.md)
94
65
 
95
66
  * [create](docs/sdks/companies/README.md#create) - Create company
96
67
  * [delete](docs/sdks/companies/README.md#delete) - Delete a company
@@ -98,12 +69,12 @@ sdk.accountingBankData.listTransactions({
98
69
  * [list](docs/sdks/companies/README.md#list) - List companies
99
70
  * [update](docs/sdks/companies/README.md#update) - Update company
100
71
 
101
- ### [companyInfo](docs/sdks/companyinfo/README.md)
72
+ ### [CompanyInfo](docs/sdks/companyinfo/README.md)
102
73
 
103
74
  * [getAccountingProfile](docs/sdks/companyinfo/README.md#getaccountingprofile) - Get company accounting profile
104
75
  * [getCommerceProfile](docs/sdks/companyinfo/README.md#getcommerceprofile) - Get company commerce profile
105
76
 
106
- ### [connections](docs/sdks/connections/README.md)
77
+ ### [Connections](docs/sdks/connections/README.md)
107
78
 
108
79
  * [create](docs/sdks/connections/README.md#create) - Create connection
109
80
  * [delete](docs/sdks/connections/README.md#delete) - Delete connection
@@ -111,36 +82,63 @@ sdk.accountingBankData.listTransactions({
111
82
  * [list](docs/sdks/connections/README.md#list) - List connections
112
83
  * [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection
113
84
 
114
- ### [dataIntegrity](docs/sdks/dataintegrity/README.md)
85
+ ### [DataIntegrity](docs/sdks/dataintegrity/README.md)
115
86
 
116
87
  * [details](docs/sdks/dataintegrity/README.md#details) - List data integrity details
117
88
  * [status](docs/sdks/dataintegrity/README.md#status) - Get data integrity status
118
89
  * [summaries](docs/sdks/dataintegrity/README.md#summaries) - Get data integrity summaries
119
90
 
120
- ### [excelReports](docs/sdks/excelreports/README.md)
91
+ ### [ExcelReports](docs/sdks/excelreports/README.md)
121
92
 
122
93
  * [download](docs/sdks/excelreports/README.md#download) - Download Excel report
123
94
  * [generate](docs/sdks/excelreports/README.md#generate) - Generate Excel report
124
95
  * [getStatus](docs/sdks/excelreports/README.md#getstatus) - Get Excel report status
125
96
 
126
- ### [fileUpload](docs/sdks/fileupload/README.md)
97
+ ### [FileUpload](docs/sdks/fileupload/README.md)
127
98
 
128
99
  * [download](docs/sdks/fileupload/README.md#download) - Download all files for a company
129
100
  * [listUploaded](docs/sdks/fileupload/README.md#listuploaded) - List all files uploaded by a company
130
101
  * [upload](docs/sdks/fileupload/README.md#upload) - Upload files for a company
131
102
 
132
- ### [liabilities](docs/sdks/liabilities/README.md)
103
+ ### [Liabilities](docs/sdks/liabilities/README.md)
133
104
 
134
105
  * [getLoanSummary](docs/sdks/liabilities/README.md#getloansummary) - Get loan summaries
135
106
  * [listLoanTransactions](docs/sdks/liabilities/README.md#listloantransactions) - List loan transactions
136
107
 
137
108
 
138
- ### [accountsReceivableCreditNotes](docs/sdks/accountsreceivablecreditnotes/README.md)
109
+ ### [AccountsPayable.BillCreditNotes](docs/sdks/accountspayablebillcreditnotes/README.md)
110
+
111
+ * [get](docs/sdks/accountspayablebillcreditnotes/README.md#get) - Get bill credit note
112
+ * [list](docs/sdks/accountspayablebillcreditnotes/README.md#list) - List bill credit notes
113
+
114
+ ### [AccountsPayable.BillPayments](docs/sdks/accountspayablebillpayments/README.md)
115
+
116
+ * [get](docs/sdks/accountspayablebillpayments/README.md#get) - Get bill payment
117
+ * [list](docs/sdks/accountspayablebillpayments/README.md#list) - List bill payments
118
+
119
+ ### [AccountsPayable.Bills](docs/sdks/accountspayablebills/README.md)
120
+
121
+ * [downloadAttachment](docs/sdks/accountspayablebills/README.md#downloadattachment) - Download bill attachment
122
+ * [get](docs/sdks/accountspayablebills/README.md#get) - Get bill
123
+ * [getAttachment](docs/sdks/accountspayablebills/README.md#getattachment) - Get bill attachment
124
+ * [list](docs/sdks/accountspayablebills/README.md#list) - List bills
125
+ * [listAttachments](docs/sdks/accountspayablebills/README.md#listattachments) - List bill attachments
126
+
127
+ ### [AccountsPayable.Suppliers](docs/sdks/accountspayablesuppliers/README.md)
128
+
129
+ * [downloadAttachment](docs/sdks/accountspayablesuppliers/README.md#downloadattachment) - Download supplier attachment
130
+ * [get](docs/sdks/accountspayablesuppliers/README.md#get) - Get supplier
131
+ * [getAttachment](docs/sdks/accountspayablesuppliers/README.md#getattachment) - Get supplier attachment
132
+ * [list](docs/sdks/accountspayablesuppliers/README.md#list) - List suppliers
133
+ * [listAttachments](docs/sdks/accountspayablesuppliers/README.md#listattachments) - List supplier attachments
134
+
135
+
136
+ ### [AccountsReceivable.CreditNotes](docs/sdks/accountsreceivablecreditnotes/README.md)
139
137
 
140
138
  * [get](docs/sdks/accountsreceivablecreditnotes/README.md#get) - Get credit note
141
139
  * [list](docs/sdks/accountsreceivablecreditnotes/README.md#list) - List credit notes
142
140
 
143
- ### [accountsReceivableCustomers](docs/sdks/accountsreceivablecustomers/README.md)
141
+ ### [AccountsReceivable.Customers](docs/sdks/accountsreceivablecustomers/README.md)
144
142
 
145
143
  * [downloadAttachment](docs/sdks/accountsreceivablecustomers/README.md#downloadattachment) - Download customer attachment
146
144
  * [get](docs/sdks/accountsreceivablecustomers/README.md#get) - Get customer
@@ -148,7 +146,7 @@ sdk.accountingBankData.listTransactions({
148
146
  * [list](docs/sdks/accountsreceivablecustomers/README.md#list) - List customers
149
147
  * [listAttachments](docs/sdks/accountsreceivablecustomers/README.md#listattachments) - List customer attachments
150
148
 
151
- ### [accountsReceivableDirectIncomes](docs/sdks/accountsreceivabledirectincomes/README.md)
149
+ ### [AccountsReceivable.DirectIncomes](docs/sdks/accountsreceivabledirectincomes/README.md)
152
150
 
153
151
  * [downloadAttachment](docs/sdks/accountsreceivabledirectincomes/README.md#downloadattachment) - Download direct income attachment
154
152
  * [get](docs/sdks/accountsreceivabledirectincomes/README.md#get) - Get direct income
@@ -156,7 +154,7 @@ sdk.accountingBankData.listTransactions({
156
154
  * [list](docs/sdks/accountsreceivabledirectincomes/README.md#list) - List direct incomes
157
155
  * [listAttachments](docs/sdks/accountsreceivabledirectincomes/README.md#listattachments) - List direct income attachments
158
156
 
159
- ### [accountsReceivableInvoices](docs/sdks/accountsreceivableinvoices/README.md)
157
+ ### [AccountsReceivable.Invoices](docs/sdks/accountsreceivableinvoices/README.md)
160
158
 
161
159
  * [downloadAttachment](docs/sdks/accountsreceivableinvoices/README.md#downloadattachment) - Download invoice attachment
162
160
  * [downloadPdf](docs/sdks/accountsreceivableinvoices/README.md#downloadpdf) - Get invoice as PDF
@@ -166,12 +164,12 @@ sdk.accountingBankData.listTransactions({
166
164
  * [listAttachments](docs/sdks/accountsreceivableinvoices/README.md#listattachments) - List invoice attachments
167
165
  * [listReconciled](docs/sdks/accountsreceivableinvoices/README.md#listreconciled) - List reconciled invoices
168
166
 
169
- ### [accountsReceivablePayments](docs/sdks/accountsreceivablepayments/README.md)
167
+ ### [AccountsReceivable.Payments](docs/sdks/accountsreceivablepayments/README.md)
170
168
 
171
169
  * [get](docs/sdks/accountsreceivablepayments/README.md#get) - Get payment
172
170
  * [list](docs/sdks/accountsreceivablepayments/README.md#list) - List payments
173
171
 
174
- ### [accountsReceivableReports](docs/sdks/accountsreceivablereports/README.md)
172
+ ### [AccountsReceivable.Reports](docs/sdks/accountsreceivablereports/README.md)
175
173
 
176
174
  * [getAgedCreditors](docs/sdks/accountsreceivablereports/README.md#getagedcreditors) - Aged creditors report
177
175
  * [getAgedDebtors](docs/sdks/accountsreceivablereports/README.md#getageddebtors) - Aged debtors report
@@ -179,7 +177,7 @@ sdk.accountingBankData.listTransactions({
179
177
  * [isAgedDebtorsAvailable](docs/sdks/accountsreceivablereports/README.md#isageddebtorsavailable) - Aged debtors report available
180
178
 
181
179
 
182
- ### [bankingAccountBalances](docs/sdks/bankingaccountbalances/README.md)
180
+ ### [Banking.AccountBalances](docs/sdks/bankingaccountbalances/README.md)
183
181
 
184
182
  * [list](docs/sdks/bankingaccountbalances/README.md#list) - List account balances
185
183
 
@@ -188,11 +186,11 @@ sdk.accountingBankData.listTransactions({
188
186
  * [get](docs/sdks/bankingaccounts/README.md#get) - Get account
189
187
  * [list](docs/sdks/bankingaccounts/README.md#list) - List accounts
190
188
 
191
- ### [bankingCategorizedStatement](docs/sdks/bankingcategorizedstatement/README.md)
189
+ ### [Banking.CategorizedStatement](docs/sdks/bankingcategorizedstatement/README.md)
192
190
 
193
191
  * [get](docs/sdks/bankingcategorizedstatement/README.md#get) - Get categorized bank statement
194
192
 
195
- ### [bankingTransactionCategories](docs/sdks/bankingtransactioncategories/README.md)
193
+ ### [Banking.TransactionCategories](docs/sdks/bankingtransactioncategories/README.md)
196
194
 
197
195
  * [get](docs/sdks/bankingtransactioncategories/README.md#get) - Get transaction category
198
196
  * [list](docs/sdks/bankingtransactioncategories/README.md#list) - List transaction categories
@@ -203,35 +201,35 @@ sdk.accountingBankData.listTransactions({
203
201
  * [list](docs/sdks/bankingtransactions/README.md#list) - List transactions
204
202
 
205
203
 
206
- ### [financialStatementsAccounts](docs/sdks/financialstatementsaccounts/README.md)
204
+ ### [FinancialStatements.Accounts](docs/sdks/financialstatementsaccounts/README.md)
207
205
 
208
206
  * [get](docs/sdks/financialstatementsaccounts/README.md#get) - Get account
209
207
  * [list](docs/sdks/financialstatementsaccounts/README.md#list) - List accounts
210
208
 
211
- ### [financialStatementsBalanceSheet](docs/sdks/financialstatementsbalancesheet/README.md)
209
+ ### [FinancialStatements.BalanceSheet](docs/sdks/financialstatementsbalancesheet/README.md)
212
210
 
213
211
  * [get](docs/sdks/financialstatementsbalancesheet/README.md#get) - Get balance sheet
214
212
  * [getCategorizedAccounts](docs/sdks/financialstatementsbalancesheet/README.md#getcategorizedaccounts) - Get categorized balance sheet statement
215
213
 
216
- ### [financialStatementsCashFlow](docs/sdks/financialstatementscashflow/README.md)
214
+ ### [FinancialStatements.CashFlow](docs/sdks/financialstatementscashflow/README.md)
217
215
 
218
216
  * [get](docs/sdks/financialstatementscashflow/README.md#get) - Get cash flow statement
219
217
 
220
- ### [financialStatementsProfitAndLoss](docs/sdks/financialstatementsprofitandloss/README.md)
218
+ ### [FinancialStatements.ProfitAndLoss](docs/sdks/financialstatementsprofitandloss/README.md)
221
219
 
222
220
  * [get](docs/sdks/financialstatementsprofitandloss/README.md#get) - Get profit and loss
223
221
  * [getCategorizedAccounts](docs/sdks/financialstatementsprofitandloss/README.md#getcategorizedaccounts) - Get categorized profit and loss statement
224
222
 
225
- ### [manageData](docs/sdks/managedata/README.md)
223
+ ### [ManageData](docs/sdks/managedata/README.md)
226
224
 
227
225
  * [getStatus](docs/sdks/managedata/README.md#getstatus) - Get data status
228
226
 
229
- ### [manageDataPullOperations](docs/sdks/managedatapulloperations/README.md)
227
+ ### [ManageData.PullOperations](docs/sdks/managedatapulloperations/README.md)
230
228
 
231
229
  * [get](docs/sdks/managedatapulloperations/README.md#get) - Get pull operation
232
230
  * [list](docs/sdks/managedatapulloperations/README.md#list) - List pull operations
233
231
 
234
- ### [manageDataRefresh](docs/sdks/managedatarefresh/README.md)
232
+ ### [ManageData.Refresh](docs/sdks/managedatarefresh/README.md)
235
233
 
236
234
  * [allDataTypes](docs/sdks/managedatarefresh/README.md#alldatatypes) - Refresh all data
237
235
  * [dataType](docs/sdks/managedatarefresh/README.md#datatype) - Refresh data type
@@ -263,7 +261,7 @@ sdk.accountingBankData.listTransactions({
263
261
  * [get](docs/sdks/salesorders/README.md#get) - Get order
264
262
  * [list](docs/sdks/salesorders/README.md#list) - List orders
265
263
 
266
- ### [salesPaymentMethods](docs/sdks/salespaymentmethods/README.md)
264
+ ### [Sales.PaymentMethods](docs/sdks/salespaymentmethods/README.md)
267
265
 
268
266
  * [get](docs/sdks/salespaymentmethods/README.md#get) - Get payment method
269
267
  * [list](docs/sdks/salespaymentmethods/README.md#list) - List payment methods
@@ -273,7 +271,7 @@ sdk.accountingBankData.listTransactions({
273
271
  * [get](docs/sdks/salespayments/README.md#get) - Get payment
274
272
  * [list](docs/sdks/salespayments/README.md#list) - List payments
275
273
 
276
- ### [salesProductCategories](docs/sdks/salesproductcategories/README.md)
274
+ ### [Sales.ProductCategories](docs/sdks/salesproductcategories/README.md)
277
275
 
278
276
  * [get](docs/sdks/salesproductcategories/README.md#get) - Get product category
279
277
  * [list](docs/sdks/salesproductcategories/README.md#list) - List product categories
@@ -294,12 +292,12 @@ sdk.accountingBankData.listTransactions({
294
292
  * [list](docs/sdks/salestransactions/README.md#list) - List transactions
295
293
 
296
294
 
297
- ### [transactionsAccountTransactions](docs/sdks/transactionsaccounttransactions/README.md)
295
+ ### [Transactions.AccountTransactions](docs/sdks/transactionsaccounttransactions/README.md)
298
296
 
299
297
  * [get](docs/sdks/transactionsaccounttransactions/README.md#get) - Get account transaction
300
298
  * [list](docs/sdks/transactionsaccounttransactions/README.md#list) - List account transactions
301
299
 
302
- ### [transactionsDirectCosts](docs/sdks/transactionsdirectcosts/README.md)
300
+ ### [Transactions.DirectCosts](docs/sdks/transactionsdirectcosts/README.md)
303
301
 
304
302
  * [downloadAttachment](docs/sdks/transactionsdirectcosts/README.md#downloadattachment) - Download direct cost attachment
305
303
  * [get](docs/sdks/transactionsdirectcosts/README.md#get) - Get direct cost
@@ -307,7 +305,7 @@ sdk.accountingBankData.listTransactions({
307
305
  * [list](docs/sdks/transactionsdirectcosts/README.md#list) - List direct costs
308
306
  * [listAttachments](docs/sdks/transactionsdirectcosts/README.md#listattachments) - List direct cost attachments
309
307
 
310
- ### [transactionsJournalEntries](docs/sdks/transactionsjournalentries/README.md)
308
+ ### [Transactions.JournalEntries](docs/sdks/transactionsjournalentries/README.md)
311
309
 
312
310
  * [get](docs/sdks/transactionsjournalentries/README.md#get) - Get journal entry
313
311
  * [list](docs/sdks/transactionsjournalentries/README.md#list) - List journal entries
@@ -1,18 +1,8 @@
1
- import * as utils from "../internal/utils";
2
1
  import { AccountsPayableBillCreditNotes } from "./accountspayablebillcreditnotes";
3
2
  import { AccountsPayableBillPayments } from "./accountspayablebillpayments";
4
3
  import { AccountsPayableBills } from "./accountspayablebills";
5
4
  import { AccountsPayableSuppliers } from "./accountspayablesuppliers";
6
- import * as operations from "./models/operations";
7
5
  import { SDKConfiguration } from "./sdk";
8
- import { AxiosRequestConfig } from "axios";
9
- /**
10
- * Data from a linked accounting platform representing money the business owes money to its suppliers.
11
- */
12
- export declare enum DownloadBillAttachmentAcceptEnum {
13
- applicationJson = "application/json",
14
- applicationOctetStream = "application/octet-stream"
15
- }
16
6
  export declare class AccountsPayable {
17
7
  billCreditNotes: AccountsPayableBillCreditNotes;
18
8
  billPayments: AccountsPayableBillPayments;
@@ -20,28 +10,4 @@ export declare class AccountsPayable {
20
10
  suppliers: AccountsPayableSuppliers;
21
11
  private sdkConfiguration;
22
12
  constructor(sdkConfig: SDKConfiguration);
23
- /**
24
- * Download bill attachment
25
- *
26
- * @remarks
27
- * The *Download bill attachment* endpoint downloads a specific attachment for a given `billId` and `attachmentId`.
28
- *
29
- * [Bills](https://docs.codat.io/accounting-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services.
30
- *
31
- * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support downloading a bill attachment.
32
- *
33
- */
34
- downloadBillAttachment(req: operations.DownloadAccountingBillAttachmentRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig, acceptHeaderOverride?: DownloadBillAttachmentAcceptEnum): Promise<operations.DownloadAccountingBillAttachmentResponse>;
35
- /**
36
- * Get bill attachment
37
- *
38
- * @remarks
39
- * The *Get bill attachment* endpoint returns a specific attachment for a given `billId` and `attachmentId`.
40
- *
41
- * [Bills](https://docs.codat.io/accounting-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services.
42
- *
43
- * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support getting a bill attachment.
44
- *
45
- */
46
- getBillAttachment(req: operations.GetAccountingBillAttachmentRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise<operations.GetAccountingBillAttachmentResponse>;
47
13
  }
@@ -2,94 +2,12 @@
2
2
  /*
3
3
  * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
4
4
  */
5
- var __assign = (this && this.__assign) || function () {
6
- __assign = Object.assign || function(t) {
7
- for (var s, i = 1, n = arguments.length; i < n; i++) {
8
- s = arguments[i];
9
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
- t[p] = s[p];
11
- }
12
- return t;
13
- };
14
- return __assign.apply(this, arguments);
15
- };
16
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
17
- if (k2 === undefined) k2 = k;
18
- var desc = Object.getOwnPropertyDescriptor(m, k);
19
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
20
- desc = { enumerable: true, get: function() { return m[k]; } };
21
- }
22
- Object.defineProperty(o, k2, desc);
23
- }) : (function(o, m, k, k2) {
24
- if (k2 === undefined) k2 = k;
25
- o[k2] = m[k];
26
- }));
27
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
28
- Object.defineProperty(o, "default", { enumerable: true, value: v });
29
- }) : function(o, v) {
30
- o["default"] = v;
31
- });
32
- var __importStar = (this && this.__importStar) || function (mod) {
33
- if (mod && mod.__esModule) return mod;
34
- var result = {};
35
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
36
- __setModuleDefault(result, mod);
37
- return result;
38
- };
39
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
40
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
41
- return new (P || (P = Promise))(function (resolve, reject) {
42
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
43
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
44
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
45
- step((generator = generator.apply(thisArg, _arguments || [])).next());
46
- });
47
- };
48
- var __generator = (this && this.__generator) || function (thisArg, body) {
49
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
50
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
- function verb(n) { return function (v) { return step([n, v]); }; }
52
- function step(op) {
53
- if (f) throw new TypeError("Generator is already executing.");
54
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
55
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
56
- if (y = 0, t) op = [op[0] & 2, t.value];
57
- switch (op[0]) {
58
- case 0: case 1: t = op; break;
59
- case 4: _.label++; return { value: op[1], done: false };
60
- case 5: _.label++; y = op[1]; op = [0]; continue;
61
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
62
- default:
63
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
64
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
65
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
66
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
67
- if (t[2]) _.ops.pop();
68
- _.trys.pop(); continue;
69
- }
70
- op = body.call(thisArg, _);
71
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
72
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
73
- }
74
- };
75
5
  Object.defineProperty(exports, "__esModule", { value: true });
76
- exports.AccountsPayable = exports.DownloadBillAttachmentAcceptEnum = void 0;
77
- var utils = __importStar(require("../internal/utils"));
6
+ exports.AccountsPayable = void 0;
78
7
  var accountspayablebillcreditnotes_1 = require("./accountspayablebillcreditnotes");
79
8
  var accountspayablebillpayments_1 = require("./accountspayablebillpayments");
80
9
  var accountspayablebills_1 = require("./accountspayablebills");
81
10
  var accountspayablesuppliers_1 = require("./accountspayablesuppliers");
82
- var errors = __importStar(require("./models/errors"));
83
- var operations = __importStar(require("./models/operations"));
84
- var shared = __importStar(require("./models/shared"));
85
- /**
86
- * Data from a linked accounting platform representing money the business owes money to its suppliers.
87
- */
88
- var DownloadBillAttachmentAcceptEnum;
89
- (function (DownloadBillAttachmentAcceptEnum) {
90
- DownloadBillAttachmentAcceptEnum["applicationJson"] = "application/json";
91
- DownloadBillAttachmentAcceptEnum["applicationOctetStream"] = "application/octet-stream";
92
- })(DownloadBillAttachmentAcceptEnum = exports.DownloadBillAttachmentAcceptEnum || (exports.DownloadBillAttachmentAcceptEnum = {}));
93
11
  var AccountsPayable = /** @class */ (function () {
94
12
  function AccountsPayable(sdkConfig) {
95
13
  this.sdkConfiguration = sdkConfig;
@@ -98,183 +16,6 @@ var AccountsPayable = /** @class */ (function () {
98
16
  this.bills = new accountspayablebills_1.AccountsPayableBills(this.sdkConfiguration);
99
17
  this.suppliers = new accountspayablesuppliers_1.AccountsPayableSuppliers(this.sdkConfiguration);
100
18
  }
101
- /**
102
- * Download bill attachment
103
- *
104
- * @remarks
105
- * The *Download bill attachment* endpoint downloads a specific attachment for a given `billId` and `attachmentId`.
106
- *
107
- * [Bills](https://docs.codat.io/accounting-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services.
108
- *
109
- * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support downloading a bill attachment.
110
- *
111
- */
112
- AccountsPayable.prototype.downloadBillAttachment = function (req, retries, config, acceptHeaderOverride) {
113
- var _a, _b;
114
- return __awaiter(this, void 0, void 0, function () {
115
- var baseURL, url, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
116
- return __generator(this, function (_c) {
117
- switch (_c.label) {
118
- case 0:
119
- if (!(req instanceof utils.SpeakeasyBase)) {
120
- req = new operations.DownloadAccountingBillAttachmentRequest(req);
121
- }
122
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
123
- url = utils.generateURL(baseURL, "/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments/{attachmentId}/download", req);
124
- client = this.sdkConfiguration.defaultClient;
125
- globalSecurity = this.sdkConfiguration.security;
126
- if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
127
- return [4 /*yield*/, globalSecurity()];
128
- case 1:
129
- globalSecurity = _c.sent();
130
- _c.label = 2;
131
- case 2:
132
- if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
133
- globalSecurity = new shared.Security(globalSecurity);
134
- }
135
- properties = utils.parseSecurityProperties(globalSecurity);
136
- headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
137
- if (acceptHeaderOverride !== undefined) {
138
- headers["Accept"] = acceptHeaderOverride.toString();
139
- }
140
- else {
141
- headers["Accept"] = "application/json;q=1, application/octet-stream;q=0";
142
- }
143
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
144
- globalRetryConfig = this.sdkConfiguration.retryConfig;
145
- retryConfig = retries;
146
- if (!retryConfig) {
147
- if (globalRetryConfig) {
148
- retryConfig = globalRetryConfig;
149
- }
150
- else {
151
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
152
- }
153
- }
154
- return [4 /*yield*/, utils.Retry(function () {
155
- return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
156
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
157
- case 3:
158
- httpRes = _c.sent();
159
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
160
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
161
- throw new Error("status code not found in response: ".concat(httpRes));
162
- }
163
- res = new operations.DownloadAccountingBillAttachmentResponse({
164
- statusCode: httpRes.status,
165
- contentType: contentType,
166
- rawResponse: httpRes,
167
- });
168
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
169
- switch (true) {
170
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
171
- if (utils.matchContentType(contentType, "application/octet-stream")) {
172
- res.data = httpRes === null || httpRes === void 0 ? void 0 : httpRes.data;
173
- }
174
- else {
175
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
176
- }
177
- break;
178
- case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
179
- if (utils.matchContentType(contentType, "application/json")) {
180
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
181
- }
182
- else {
183
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
184
- }
185
- break;
186
- }
187
- return [2 /*return*/, res];
188
- }
189
- });
190
- });
191
- };
192
- /**
193
- * Get bill attachment
194
- *
195
- * @remarks
196
- * The *Get bill attachment* endpoint returns a specific attachment for a given `billId` and `attachmentId`.
197
- *
198
- * [Bills](https://docs.codat.io/accounting-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services.
199
- *
200
- * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support getting a bill attachment.
201
- *
202
- */
203
- AccountsPayable.prototype.getBillAttachment = function (req, retries, config) {
204
- var _a, _b;
205
- return __awaiter(this, void 0, void 0, function () {
206
- var baseURL, url, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
207
- return __generator(this, function (_c) {
208
- switch (_c.label) {
209
- case 0:
210
- if (!(req instanceof utils.SpeakeasyBase)) {
211
- req = new operations.GetAccountingBillAttachmentRequest(req);
212
- }
213
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
214
- url = utils.generateURL(baseURL, "/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments/{attachmentId}", req);
215
- client = this.sdkConfiguration.defaultClient;
216
- globalSecurity = this.sdkConfiguration.security;
217
- if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
218
- return [4 /*yield*/, globalSecurity()];
219
- case 1:
220
- globalSecurity = _c.sent();
221
- _c.label = 2;
222
- case 2:
223
- if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
224
- globalSecurity = new shared.Security(globalSecurity);
225
- }
226
- properties = utils.parseSecurityProperties(globalSecurity);
227
- headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
228
- headers["Accept"] = "application/json";
229
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
230
- globalRetryConfig = this.sdkConfiguration.retryConfig;
231
- retryConfig = retries;
232
- if (!retryConfig) {
233
- if (globalRetryConfig) {
234
- retryConfig = globalRetryConfig;
235
- }
236
- else {
237
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
238
- }
239
- }
240
- return [4 /*yield*/, utils.Retry(function () {
241
- return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
242
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
243
- case 3:
244
- httpRes = _c.sent();
245
- contentType = (_b = (_a = httpRes === null || httpRes === void 0 ? void 0 : httpRes.headers) === null || _a === void 0 ? void 0 : _a["content-type"]) !== null && _b !== void 0 ? _b : "";
246
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
247
- throw new Error("status code not found in response: ".concat(httpRes));
248
- }
249
- res = new operations.GetAccountingBillAttachmentResponse({
250
- statusCode: httpRes.status,
251
- contentType: contentType,
252
- rawResponse: httpRes,
253
- });
254
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
255
- switch (true) {
256
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
257
- if (utils.matchContentType(contentType, "application/json")) {
258
- res.accountingAttachment = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingAttachment);
259
- }
260
- else {
261
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
262
- }
263
- break;
264
- case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
265
- if (utils.matchContentType(contentType, "application/json")) {
266
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
267
- }
268
- else {
269
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
270
- }
271
- break;
272
- }
273
- return [2 /*return*/, res];
274
- }
275
- });
276
- });
277
- };
278
19
  return AccountsPayable;
279
20
  }());
280
21
  exports.AccountsPayable = AccountsPayable;
@@ -2,9 +2,25 @@ import * as utils from "../internal/utils";
2
2
  import * as operations from "./models/operations";
3
3
  import { SDKConfiguration } from "./sdk";
4
4
  import { AxiosRequestConfig } from "axios";
5
+ export declare enum DownloadAttachmentAcceptEnum {
6
+ applicationJson = "application/json",
7
+ applicationOctetStream = "application/octet-stream"
8
+ }
5
9
  export declare class AccountsPayableBills {
6
10
  private sdkConfiguration;
7
11
  constructor(sdkConfig: SDKConfiguration);
12
+ /**
13
+ * Download bill attachment
14
+ *
15
+ * @remarks
16
+ * The *Download bill attachment* endpoint downloads a specific attachment for a given `billId` and `attachmentId`.
17
+ *
18
+ * [Bills](https://docs.codat.io/accounting-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services.
19
+ *
20
+ * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support downloading a bill attachment.
21
+ *
22
+ */
23
+ downloadAttachment(req: operations.DownloadAccountingBillAttachmentRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig, acceptHeaderOverride?: DownloadAttachmentAcceptEnum): Promise<operations.DownloadAccountingBillAttachmentResponse>;
8
24
  /**
9
25
  * Get bill
10
26
  *
@@ -19,6 +35,18 @@ export declare class AccountsPayableBills {
19
35
  *
20
36
  */
21
37
  get(req: operations.GetAccountingBillRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise<operations.GetAccountingBillResponse>;
38
+ /**
39
+ * Get bill attachment
40
+ *
41
+ * @remarks
42
+ * The *Get bill attachment* endpoint returns a specific attachment for a given `billId` and `attachmentId`.
43
+ *
44
+ * [Bills](https://docs.codat.io/accounting-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services.
45
+ *
46
+ * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support getting a bill attachment.
47
+ *
48
+ */
49
+ getAttachment(req: operations.GetAccountingBillAttachmentRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise<operations.GetAccountingBillAttachmentResponse>;
22
50
  /**
23
51
  * List bills
24
52
  *