@codat/lending 0.1.0 → 1.2.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 (389) hide show
  1. package/README.md +312 -1
  2. package/dist/internal/utils/requestbody.d.ts +1 -1
  3. package/dist/internal/utils/retries.d.ts +2 -2
  4. package/dist/internal/utils/security.d.ts +5 -2
  5. package/dist/internal/utils/security.js +28 -28
  6. package/dist/sdk/accountingbankdata.d.ts +2 -26
  7. package/dist/sdk/accountingbankdata.js +24 -146
  8. package/dist/sdk/accountingbankdataaccounts.d.ts +34 -0
  9. package/dist/sdk/accountingbankdataaccounts.js +262 -0
  10. package/dist/sdk/accountspayable.d.ts +8 -170
  11. package/dist/sdk/accountspayable.js +53 -983
  12. package/dist/sdk/accountspayablebillcreditnotes.d.ts +34 -0
  13. package/dist/sdk/accountspayablebillcreditnotes.js +262 -0
  14. package/dist/sdk/accountspayablebillpayments.d.ts +34 -0
  15. package/dist/sdk/accountspayablebillpayments.js +262 -0
  16. package/dist/sdk/accountspayablebills.d.ts +46 -0
  17. package/dist/sdk/accountspayablebills.js +348 -0
  18. package/dist/sdk/accountspayablesuppliers.d.ts +74 -0
  19. package/dist/sdk/accountspayablesuppliers.js +530 -0
  20. package/dist/sdk/accountsreceivable.d.ts +12 -284
  21. package/dist/sdk/accountsreceivable.js +13 -1677
  22. package/dist/sdk/accountsreceivablecreditnotes.d.ts +34 -0
  23. package/dist/sdk/accountsreceivablecreditnotes.js +262 -0
  24. package/dist/sdk/accountsreceivablecustomers.d.ts +74 -0
  25. package/dist/sdk/accountsreceivablecustomers.js +530 -0
  26. package/dist/sdk/accountsreceivabledirectincomes.d.ts +74 -0
  27. package/dist/sdk/{financials.js → accountsreceivabledirectincomes.js} +183 -211
  28. package/dist/sdk/accountsreceivableinvoices.d.ts +93 -0
  29. package/dist/sdk/{cashflow.js → accountsreceivableinvoices.js} +250 -189
  30. package/dist/sdk/accountsreceivablepayments.d.ts +34 -0
  31. package/dist/sdk/accountsreceivablepayments.js +262 -0
  32. package/dist/sdk/accountsreceivablereports.d.ts +36 -0
  33. package/dist/sdk/accountsreceivablereports.js +399 -0
  34. package/dist/sdk/banking.d.ts +15 -0
  35. package/dist/sdk/banking.js +23 -0
  36. package/dist/sdk/bankingaccountbalances.d.ts +20 -0
  37. package/dist/sdk/bankingaccountbalances.js +174 -0
  38. package/dist/sdk/bankingaccounts.d.ts +34 -0
  39. package/dist/sdk/bankingaccounts.js +254 -0
  40. package/dist/sdk/bankingcategorizedstatement.d.ts +19 -0
  41. package/dist/sdk/bankingcategorizedstatement.js +173 -0
  42. package/dist/sdk/bankingtransactioncategories.d.ts +34 -0
  43. package/dist/sdk/bankingtransactioncategories.js +254 -0
  44. package/dist/sdk/bankingtransactions.d.ts +34 -0
  45. package/dist/sdk/bankingtransactions.js +254 -0
  46. package/dist/sdk/companies.js +110 -25
  47. package/dist/sdk/companyinfo.d.ts +4 -4
  48. package/dist/sdk/companyinfo.js +52 -18
  49. package/dist/sdk/connections.js +110 -25
  50. package/dist/sdk/dataintegrity.js +66 -15
  51. package/dist/sdk/excelreports.d.ts +10 -2
  52. package/dist/sdk/excelreports.js +76 -17
  53. package/dist/sdk/fileupload.js +66 -15
  54. package/dist/sdk/financialstatements.d.ts +13 -0
  55. package/dist/sdk/financialstatements.js +21 -0
  56. package/dist/sdk/financialstatementsaccounts.d.ts +33 -0
  57. package/dist/sdk/financialstatementsaccounts.js +261 -0
  58. package/dist/sdk/financialstatementsbalancesheet.d.ts +24 -0
  59. package/dist/sdk/financialstatementsbalancesheet.js +253 -0
  60. package/dist/sdk/financialstatementscashflow.d.ts +15 -0
  61. package/dist/sdk/financialstatementscashflow.js +169 -0
  62. package/dist/sdk/financialstatementsprofitandloss.d.ts +24 -0
  63. package/dist/sdk/financialstatementsprofitandloss.js +253 -0
  64. package/dist/sdk/liabilities.d.ts +4 -4
  65. package/dist/sdk/liabilities.js +48 -14
  66. package/dist/sdk/managedata.d.ts +5 -38
  67. package/dist/sdk/managedata.js +27 -267
  68. package/dist/sdk/managedatapulloperations.d.ts +22 -0
  69. package/dist/sdk/managedatapulloperations.js +250 -0
  70. package/dist/sdk/managedatarefresh.d.ts +28 -0
  71. package/dist/sdk/managedatarefresh.js +250 -0
  72. package/dist/sdk/models/operations/{getaccountingcompanyinfo.d.ts → getaccountingprofile.d.ts} +2 -2
  73. package/dist/sdk/models/operations/{getaccountingcompanyinfo.js → getaccountingprofile.js} +17 -17
  74. package/dist/sdk/models/operations/{getenhancedprofitandlossaccounts.d.ts → getcategorizedbalancesheetstatement.d.ts} +2 -2
  75. package/dist/sdk/models/operations/{getenhancedbalancesheetaccounts.js → getcategorizedbalancesheetstatement.js} +19 -19
  76. package/dist/sdk/models/operations/{getenhancedcashflowtransactions.d.ts → getcategorizedbankstatement.d.ts} +2 -2
  77. package/dist/sdk/models/operations/{getenhancedcashflowtransactions.js → getcategorizedbankstatement.js} +20 -20
  78. package/dist/sdk/models/operations/{getenhancedbalancesheetaccounts.d.ts → getcategorizedprofitandlossstatement.d.ts} +2 -2
  79. package/dist/sdk/models/operations/{getenhancedprofitandlossaccounts.js → getcategorizedprofitandlossstatement.js} +19 -19
  80. package/dist/sdk/models/operations/{getcommercecompanyinfo.d.ts → getcommerceprofile.d.ts} +2 -2
  81. package/dist/sdk/models/operations/{getcommercecompanyinfo.js → getcommerceprofile.js} +18 -18
  82. package/dist/sdk/models/operations/{getcommercerefundsmetrics.d.ts → getcommercerefundsreport.d.ts} +2 -2
  83. package/dist/sdk/models/operations/{getcommercerefundsmetrics.js → getcommercerefundsreport.js} +23 -23
  84. package/dist/sdk/models/operations/index.d.ts +8 -8
  85. package/dist/sdk/models/operations/index.js +8 -8
  86. package/dist/sdk/models/operations/{isageddebtorreportavailable.d.ts → isageddebtorsreportavailable.d.ts} +3 -3
  87. package/dist/sdk/models/operations/{isageddebtorreportavailable.js → isageddebtorsreportavailable.js} +16 -16
  88. package/dist/sdk/models/operations/{getenhancedinvoicesreport.d.ts → listreconciledinvoices.d.ts} +2 -2
  89. package/dist/sdk/models/operations/{getenhancedinvoicesreport.js → listreconciledinvoices.js} +20 -20
  90. package/dist/sdk/models/operations/unlinkconnection.d.ts +6 -3
  91. package/dist/sdk/models/operations/unlinkconnection.js +8 -8
  92. package/dist/sdk/models/shared/accountbalance.d.ts +1 -1
  93. package/dist/sdk/models/shared/accountbalance.js +1 -1
  94. package/dist/sdk/models/shared/accountingaccounts.d.ts +0 -3
  95. package/dist/sdk/models/shared/accountingaccounts.js +0 -3
  96. package/dist/sdk/models/shared/accountingaccounttransactions.d.ts +0 -3
  97. package/dist/sdk/models/shared/accountingaccounttransactions.js +0 -3
  98. package/dist/sdk/models/shared/accountingbankaccounts.d.ts +0 -3
  99. package/dist/sdk/models/shared/accountingbankaccounts.js +0 -3
  100. package/dist/sdk/models/shared/accountingbanktransactions.d.ts +0 -3
  101. package/dist/sdk/models/shared/accountingbanktransactions.js +0 -3
  102. package/dist/sdk/models/shared/accountingbill.d.ts +1 -1
  103. package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +1 -1
  104. package/dist/sdk/models/shared/accountingbillcreditnotes.d.ts +0 -3
  105. package/dist/sdk/models/shared/accountingbillcreditnotes.js +0 -3
  106. package/dist/sdk/models/shared/accountingbillpayment.d.ts +1 -1
  107. package/dist/sdk/models/shared/accountingbillpayments.d.ts +0 -3
  108. package/dist/sdk/models/shared/accountingbillpayments.js +0 -3
  109. package/dist/sdk/models/shared/accountingbills.d.ts +0 -3
  110. package/dist/sdk/models/shared/accountingbills.js +0 -3
  111. package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +32 -2
  112. package/dist/sdk/models/shared/accountingcompanyinfo.js +47 -4
  113. package/dist/sdk/models/shared/accountingcreditnote.d.ts +1 -1
  114. package/dist/sdk/models/shared/accountingcreditnotes.d.ts +0 -3
  115. package/dist/sdk/models/shared/accountingcreditnotes.js +0 -3
  116. package/dist/sdk/models/shared/accountingcustomer.d.ts +3 -3
  117. package/dist/sdk/models/shared/accountingcustomer.js +3 -3
  118. package/dist/sdk/models/shared/accountingcustomers.d.ts +0 -3
  119. package/dist/sdk/models/shared/accountingcustomers.js +0 -3
  120. package/dist/sdk/models/shared/accountingdirectcost.d.ts +1 -1
  121. package/dist/sdk/models/shared/accountingdirectcosts.d.ts +0 -3
  122. package/dist/sdk/models/shared/accountingdirectcosts.js +0 -3
  123. package/dist/sdk/models/shared/accountingdirectincome.d.ts +1 -1
  124. package/dist/sdk/models/shared/accountingdirectincomes.d.ts +0 -3
  125. package/dist/sdk/models/shared/accountingdirectincomes.js +0 -3
  126. package/dist/sdk/models/shared/accountinginvoice.d.ts +1 -1
  127. package/dist/sdk/models/shared/accountinginvoices.d.ts +0 -3
  128. package/dist/sdk/models/shared/accountinginvoices.js +0 -3
  129. package/dist/sdk/models/shared/accountingjournalentries.d.ts +0 -3
  130. package/dist/sdk/models/shared/accountingjournalentries.js +0 -3
  131. package/dist/sdk/models/shared/accountingjournalentry.d.ts +1 -1
  132. package/dist/sdk/models/shared/accountingjournals.d.ts +0 -3
  133. package/dist/sdk/models/shared/accountingjournals.js +0 -3
  134. package/dist/sdk/models/shared/accountingpayment.d.ts +1 -1
  135. package/dist/sdk/models/shared/accountingpayments.d.ts +0 -3
  136. package/dist/sdk/models/shared/accountingpayments.js +0 -3
  137. package/dist/sdk/models/shared/accountingsupplier.d.ts +3 -3
  138. package/dist/sdk/models/shared/accountingsupplier.js +3 -3
  139. package/dist/sdk/models/shared/accountingsuppliers.d.ts +0 -3
  140. package/dist/sdk/models/shared/accountingsuppliers.js +0 -3
  141. package/dist/sdk/models/shared/accountingtransfer.d.ts +1 -1
  142. package/dist/sdk/models/shared/accountingtransfers.d.ts +0 -3
  143. package/dist/sdk/models/shared/accountingtransfers.js +0 -3
  144. package/dist/sdk/models/shared/{accountingaddress.d.ts → addressesitems.d.ts} +1 -1
  145. package/dist/sdk/models/shared/{accountingaddress.js → addressesitems.js} +13 -13
  146. package/dist/sdk/models/shared/attachments.d.ts +0 -3
  147. package/dist/sdk/models/shared/attachments.js +0 -3
  148. package/dist/sdk/models/shared/bankingaccountbalances.d.ts +0 -3
  149. package/dist/sdk/models/shared/bankingaccountbalances.js +0 -3
  150. package/dist/sdk/models/shared/bankingaccounts.d.ts +0 -3
  151. package/dist/sdk/models/shared/bankingaccounts.js +0 -3
  152. package/dist/sdk/models/shared/bankingtransactioncategories.d.ts +0 -3
  153. package/dist/sdk/models/shared/bankingtransactioncategories.js +0 -3
  154. package/dist/sdk/models/shared/bankingtransactions.d.ts +0 -3
  155. package/dist/sdk/models/shared/bankingtransactions.js +0 -3
  156. package/dist/sdk/models/shared/commercecustomers.d.ts +0 -3
  157. package/dist/sdk/models/shared/commercecustomers.js +0 -3
  158. package/dist/sdk/models/shared/commercedispute.d.ts +1 -1
  159. package/dist/sdk/models/shared/commercedispute.js +1 -1
  160. package/dist/sdk/models/shared/commercedisputes.d.ts +0 -3
  161. package/dist/sdk/models/shared/commercedisputes.js +0 -3
  162. package/dist/sdk/models/shared/commercelocations.d.ts +0 -3
  163. package/dist/sdk/models/shared/commercelocations.js +0 -3
  164. package/dist/sdk/models/shared/commerceorder.d.ts +2 -2
  165. package/dist/sdk/models/shared/commerceorder.js +1 -1
  166. package/dist/sdk/models/shared/commerceorders.d.ts +0 -3
  167. package/dist/sdk/models/shared/commerceorders.js +0 -3
  168. package/dist/sdk/models/shared/commercepaymentmethods.d.ts +0 -3
  169. package/dist/sdk/models/shared/commercepaymentmethods.js +0 -3
  170. package/dist/sdk/models/shared/commercepayments.d.ts +0 -3
  171. package/dist/sdk/models/shared/commercepayments.js +0 -3
  172. package/dist/sdk/models/shared/commerceproductcategories.d.ts +0 -3
  173. package/dist/sdk/models/shared/commerceproductcategories.js +0 -3
  174. package/dist/sdk/models/shared/commerceproducts.d.ts +0 -3
  175. package/dist/sdk/models/shared/commerceproducts.js +0 -3
  176. package/dist/sdk/models/shared/commercetransactions.d.ts +0 -3
  177. package/dist/sdk/models/shared/commercetransactions.js +0 -3
  178. package/dist/sdk/models/shared/companies.d.ts +0 -3
  179. package/dist/sdk/models/shared/companies.js +0 -3
  180. package/dist/sdk/models/shared/connections.d.ts +0 -3
  181. package/dist/sdk/models/shared/connections.js +0 -3
  182. package/dist/sdk/models/shared/contact.d.ts +2 -2
  183. package/dist/sdk/models/shared/contact.js +3 -3
  184. package/dist/sdk/models/shared/dataintegritydatatype.d.ts +0 -3
  185. package/dist/sdk/models/shared/dataintegritydatatype.js +0 -3
  186. package/dist/sdk/models/shared/dataintegritydetails.d.ts +0 -3
  187. package/dist/sdk/models/shared/dataintegritydetails.js +0 -3
  188. package/dist/sdk/models/shared/dataintegritystatuses.d.ts +0 -3
  189. package/dist/sdk/models/shared/dataintegritystatuses.js +0 -3
  190. package/dist/sdk/models/shared/dataintegritysummaries.d.ts +0 -3
  191. package/dist/sdk/models/shared/dataintegritysummaries.js +0 -3
  192. package/dist/sdk/models/shared/enhancedfinancialreport.d.ts +0 -3
  193. package/dist/sdk/models/shared/enhancedfinancialreport.js +0 -3
  194. package/dist/sdk/models/shared/errormessage.d.ts +0 -3
  195. package/dist/sdk/models/shared/errormessage.js +0 -3
  196. package/dist/sdk/models/shared/excelstatus.d.ts +0 -3
  197. package/dist/sdk/models/shared/excelstatus.js +0 -3
  198. package/dist/sdk/models/shared/index.d.ts +1 -1
  199. package/dist/sdk/models/shared/index.js +1 -1
  200. package/dist/sdk/models/shared/loansummary.d.ts +0 -3
  201. package/dist/sdk/models/shared/loansummary.js +0 -3
  202. package/dist/sdk/models/shared/loantransactions.d.ts +0 -3
  203. package/dist/sdk/models/shared/loantransactions.js +0 -3
  204. package/dist/sdk/models/shared/periodunit.d.ts +0 -3
  205. package/dist/sdk/models/shared/periodunit.js +0 -3
  206. package/dist/sdk/models/shared/pulloperations.d.ts +0 -3
  207. package/dist/sdk/models/shared/pulloperations.js +0 -3
  208. package/dist/sdk/models/shared/supplementaldata.d.ts +1 -1
  209. package/dist/sdk/models/shared/supplementaldata.js +1 -1
  210. package/dist/sdk/sales.d.ts +22 -372
  211. package/dist/sdk/sales.js +22 -1767
  212. package/dist/sdk/salescustomers.d.ts +34 -0
  213. package/dist/sdk/salescustomers.js +262 -0
  214. package/dist/sdk/salesdisputes.d.ts +34 -0
  215. package/dist/sdk/salesdisputes.js +262 -0
  216. package/dist/sdk/saleslocations.d.ts +34 -0
  217. package/dist/sdk/saleslocations.js +261 -0
  218. package/dist/sdk/salesmetrics.d.ts +102 -0
  219. package/dist/sdk/salesmetrics.js +406 -0
  220. package/dist/sdk/salesorders.d.ts +34 -0
  221. package/dist/sdk/salesorders.js +262 -0
  222. package/dist/sdk/salespaymentmethods.d.ts +34 -0
  223. package/dist/sdk/salespaymentmethods.js +262 -0
  224. package/dist/sdk/salespayments.d.ts +34 -0
  225. package/dist/sdk/salespayments.js +262 -0
  226. package/dist/sdk/salesproductcategories.d.ts +34 -0
  227. package/dist/sdk/salesproductcategories.js +262 -0
  228. package/dist/sdk/salesproducts.d.ts +34 -0
  229. package/dist/sdk/salesproducts.js +262 -0
  230. package/dist/sdk/salesreports.d.ts +69 -0
  231. package/dist/sdk/salesreports.js +298 -0
  232. package/dist/sdk/salestransactions.d.ts +34 -0
  233. package/dist/sdk/salestransactions.js +262 -0
  234. package/dist/sdk/sdk.d.ts +38 -30
  235. package/dist/sdk/sdk.js +33 -45
  236. package/dist/sdk/transactions.d.ts +10 -176
  237. package/dist/sdk/transactions.js +11 -1000
  238. package/dist/sdk/transactionsaccounttransactions.d.ts +34 -0
  239. package/dist/sdk/transactionsaccounttransactions.js +262 -0
  240. package/dist/sdk/transactionsdirectcosts.d.ts +74 -0
  241. package/dist/sdk/transactionsdirectcosts.js +530 -0
  242. package/dist/sdk/transactionsjournalentries.d.ts +34 -0
  243. package/dist/sdk/transactionsjournalentries.js +262 -0
  244. package/dist/sdk/transactionsjournals.d.ts +34 -0
  245. package/dist/sdk/transactionsjournals.js +262 -0
  246. package/dist/sdk/transactionstransfers.d.ts +34 -0
  247. package/dist/sdk/transactionstransfers.js +262 -0
  248. package/docs/models/operations/{getaccountingcompanyinforequest.md → getaccountingprofilerequest.md} +1 -1
  249. package/docs/models/operations/{getaccountingcompanyinforesponse.md → getaccountingprofileresponse.md} +1 -1
  250. package/docs/models/operations/{getenhancedbalancesheetaccountsrequest.md → getcategorizedbalancesheetstatementrequest.md} +1 -1
  251. package/docs/models/operations/{getenhancedprofitandlossaccountsresponse.md → getcategorizedbalancesheetstatementresponse.md} +1 -1
  252. package/docs/models/operations/{getenhancedcashflowtransactionsrequest.md → getcategorizedbankstatementrequest.md} +1 -1
  253. package/docs/models/operations/{getenhancedcashflowtransactionsresponse.md → getcategorizedbankstatementresponse.md} +1 -1
  254. package/docs/models/operations/{getenhancedprofitandlossaccountsrequest.md → getcategorizedprofitandlossstatementrequest.md} +1 -1
  255. package/docs/models/operations/{getenhancedbalancesheetaccountsresponse.md → getcategorizedprofitandlossstatementresponse.md} +1 -1
  256. package/docs/models/operations/{getcommercecompanyinforequest.md → getcommerceprofilerequest.md} +1 -1
  257. package/docs/models/operations/{getcommercecompanyinforesponse.md → getcommerceprofileresponse.md} +1 -1
  258. package/docs/models/operations/{getcommercerefundsmetricsrequest.md → getcommercerefundsreportrequest.md} +1 -1
  259. package/docs/models/operations/{getcommercerefundsmetricsresponse.md → getcommercerefundsreportresponse.md} +1 -1
  260. package/docs/models/operations/{isageddebtorreportavailablerequest.md → isageddebtorsreportavailablerequest.md} +1 -1
  261. package/docs/models/operations/{isageddebtorreportavailableresponse.md → isageddebtorsreportavailableresponse.md} +2 -2
  262. package/docs/models/operations/{getenhancedinvoicesreportrequest.md → listreconciledinvoicesrequest.md} +1 -1
  263. package/docs/models/operations/{getenhancedinvoicesreportresponse.md → listreconciledinvoicesresponse.md} +1 -1
  264. package/docs/models/operations/unlinkconnectionrequest.md +5 -5
  265. package/docs/models/operations/unlinkconnectionupdateconnection.md +8 -0
  266. package/docs/models/shared/accountbalance.md +1 -1
  267. package/docs/models/shared/accountingaccounts.md +0 -2
  268. package/docs/models/shared/accountingaccounttransactions.md +0 -2
  269. package/docs/models/shared/accountingbankaccounts.md +0 -2
  270. package/docs/models/shared/accountingbanktransactions.md +0 -2
  271. package/docs/models/shared/accountingbill.md +1 -1
  272. package/docs/models/shared/accountingbillcreditnote.md +1 -1
  273. package/docs/models/shared/accountingbillcreditnotes.md +0 -2
  274. package/docs/models/shared/accountingbillpayment.md +1 -1
  275. package/docs/models/shared/accountingbillpayments.md +0 -2
  276. package/docs/models/shared/accountingbills.md +0 -2
  277. package/docs/models/shared/accountingcompanyinfo.md +1 -1
  278. package/docs/models/shared/accountingcompanyinfoaccountingaddress.md +14 -0
  279. package/docs/models/shared/accountingcreditnote.md +1 -1
  280. package/docs/models/shared/accountingcreditnotes.md +0 -2
  281. package/docs/models/shared/accountingcustomer.md +2 -2
  282. package/docs/models/shared/accountingcustomers.md +0 -2
  283. package/docs/models/shared/accountingdirectcost.md +1 -1
  284. package/docs/models/shared/accountingdirectcosts.md +0 -2
  285. package/docs/models/shared/accountingdirectincome.md +1 -1
  286. package/docs/models/shared/accountingdirectincomes.md +0 -2
  287. package/docs/models/shared/accountinginvoice.md +1 -1
  288. package/docs/models/shared/accountinginvoices.md +0 -2
  289. package/docs/models/shared/accountingjournalentries.md +0 -2
  290. package/docs/models/shared/accountingjournalentry.md +1 -1
  291. package/docs/models/shared/accountingjournals.md +0 -2
  292. package/docs/models/shared/accountingpayment.md +1 -1
  293. package/docs/models/shared/accountingpayments.md +0 -2
  294. package/docs/models/shared/accountingsupplier.md +16 -16
  295. package/docs/models/shared/accountingsuppliers.md +0 -2
  296. package/docs/models/shared/accountingtransfer.md +1 -1
  297. package/docs/models/shared/accountingtransfers.md +0 -2
  298. package/docs/models/shared/{accountingaddress.md → addressesitems.md} +1 -1
  299. package/docs/models/shared/attachments.md +0 -2
  300. package/docs/models/shared/bankingaccountbalances.md +0 -2
  301. package/docs/models/shared/bankingaccounts.md +0 -2
  302. package/docs/models/shared/bankingtransactioncategories.md +0 -2
  303. package/docs/models/shared/bankingtransactions.md +0 -2
  304. package/docs/models/shared/commercecustomers.md +0 -2
  305. package/docs/models/shared/commercedispute.md +1 -1
  306. package/docs/models/shared/commercedisputes.md +0 -2
  307. package/docs/models/shared/commercelocations.md +0 -2
  308. package/docs/models/shared/commerceorder.md +1 -1
  309. package/docs/models/shared/commerceorders.md +0 -2
  310. package/docs/models/shared/commerceordersupplementaldata.md +1 -1
  311. package/docs/models/shared/commercepaymentmethods.md +0 -2
  312. package/docs/models/shared/commercepayments.md +0 -2
  313. package/docs/models/shared/commerceproductcategories.md +0 -2
  314. package/docs/models/shared/commerceproducts.md +0 -2
  315. package/docs/models/shared/commercetransactions.md +0 -2
  316. package/docs/models/shared/companies.md +0 -2
  317. package/docs/models/shared/connections.md +0 -2
  318. package/docs/models/shared/contact.md +1 -1
  319. package/docs/models/shared/dataintegritydatatype.md +0 -2
  320. package/docs/models/shared/dataintegritydetails.md +0 -2
  321. package/docs/models/shared/dataintegritystatuses.md +0 -2
  322. package/docs/models/shared/dataintegritysummaries.md +0 -2
  323. package/docs/models/shared/enhancedfinancialreport.md +0 -2
  324. package/docs/models/shared/errormessage.md +0 -2
  325. package/docs/models/shared/excelstatus.md +0 -2
  326. package/docs/models/shared/loansummary.md +0 -2
  327. package/docs/models/shared/loantransactions.md +0 -2
  328. package/docs/models/shared/periodunit.md +0 -2
  329. package/docs/models/shared/pulloperations.md +0 -2
  330. package/docs/models/shared/supplementaldata.md +1 -1
  331. package/docs/sdks/accountingbankdata/README.md +2 -101
  332. package/docs/sdks/accountingbankdataaccounts/README.md +103 -0
  333. package/docs/sdks/accountspayable/README.md +2 -664
  334. package/docs/sdks/accountspayablebillcreditnotes/README.md +101 -0
  335. package/docs/sdks/accountspayablebillpayments/README.md +101 -0
  336. package/docs/sdks/accountspayablebills/README.md +148 -0
  337. package/docs/sdks/accountspayablesuppliers/README.md +244 -0
  338. package/docs/sdks/accountsreceivable/README.md +0 -1089
  339. package/docs/sdks/accountsreceivablecreditnotes/README.md +101 -0
  340. package/docs/sdks/accountsreceivablecustomers/README.md +244 -0
  341. package/docs/sdks/accountsreceivabledirectincomes/README.md +247 -0
  342. package/docs/sdks/{financials → accountsreceivableinvoices}/README.md +123 -111
  343. package/docs/sdks/accountsreceivablepayments/README.md +101 -0
  344. package/docs/sdks/accountsreceivablereports/README.md +172 -0
  345. package/docs/sdks/banking/README.md +4 -0
  346. package/docs/sdks/bankingaccountbalances/README.md +54 -0
  347. package/docs/sdks/bankingaccounts/README.md +103 -0
  348. package/docs/sdks/bankingcategorizedstatement/README.md +51 -0
  349. package/docs/sdks/bankingtransactioncategories/README.md +103 -0
  350. package/docs/sdks/bankingtransactions/README.md +103 -0
  351. package/docs/sdks/codatlending/README.md +24 -4
  352. package/docs/sdks/companies/README.md +1 -1
  353. package/docs/sdks/companyinfo/README.md +22 -22
  354. package/docs/sdks/connections/README.md +4 -3
  355. package/docs/sdks/dataintegrity/README.md +5 -5
  356. package/docs/sdks/excelreports/README.md +12 -4
  357. package/docs/sdks/fileupload/README.md +2 -2
  358. package/docs/sdks/financialstatements/README.md +4 -0
  359. package/docs/sdks/financialstatementsaccounts/README.md +100 -0
  360. package/docs/sdks/financialstatementsbalancesheet/README.md +91 -0
  361. package/docs/sdks/financialstatementscashflow/README.md +47 -0
  362. package/docs/sdks/financialstatementsprofitandloss/README.md +91 -0
  363. package/docs/sdks/liabilities/README.md +4 -4
  364. package/docs/sdks/managedata/README.md +3 -181
  365. package/docs/sdks/managedatapulloperations/README.md +89 -0
  366. package/docs/sdks/managedatarefresh/README.md +93 -0
  367. package/docs/sdks/sales/README.md +0 -1223
  368. package/docs/sdks/salescustomers/README.md +103 -0
  369. package/docs/sdks/salesdisputes/README.md +103 -0
  370. package/docs/sdks/saleslocations/README.md +99 -0
  371. package/docs/sdks/salesmetrics/README.md +218 -0
  372. package/docs/sdks/salesorders/README.md +103 -0
  373. package/docs/sdks/salespaymentmethods/README.md +103 -0
  374. package/docs/sdks/salespayments/README.md +103 -0
  375. package/docs/sdks/salesproductcategories/README.md +103 -0
  376. package/docs/sdks/salesproducts/README.md +103 -0
  377. package/docs/sdks/salesreports/README.md +145 -0
  378. package/docs/sdks/salestransactions/README.md +103 -0
  379. package/docs/sdks/transactions/README.md +0 -638
  380. package/docs/sdks/transactionsaccounttransactions/README.md +103 -0
  381. package/docs/sdks/transactionsdirectcosts/README.md +246 -0
  382. package/docs/sdks/transactionsjournalentries/README.md +101 -0
  383. package/docs/sdks/transactionsjournals/README.md +101 -0
  384. package/docs/sdks/transactionstransfers/README.md +103 -0
  385. package/package.json +1 -1
  386. package/dist/sdk/cashflow.d.ts +0 -112
  387. package/dist/sdk/financials.d.ts +0 -75
  388. package/docs/models/operations/unlinkconnectionrequestbody.md +0 -8
  389. package/docs/sdks/cashflow/README.md +0 -402
@@ -73,8 +73,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
73
73
  }
74
74
  };
75
75
  Object.defineProperty(exports, "__esModule", { value: true });
76
- exports.AccountsPayable = exports.DownloadSupplierAttachmentAcceptEnum = exports.DownloadBillAttachmentAcceptEnum = void 0;
76
+ exports.AccountsPayable = exports.DownloadBillAttachmentAcceptEnum = void 0;
77
77
  var utils = __importStar(require("../internal/utils"));
78
+ var accountspayablebillcreditnotes_1 = require("./accountspayablebillcreditnotes");
79
+ var accountspayablebillpayments_1 = require("./accountspayablebillpayments");
80
+ var accountspayablebills_1 = require("./accountspayablebills");
81
+ var accountspayablesuppliers_1 = require("./accountspayablesuppliers");
78
82
  var errors = __importStar(require("./models/errors"));
79
83
  var operations = __importStar(require("./models/operations"));
80
84
  var shared = __importStar(require("./models/shared"));
@@ -86,14 +90,13 @@ var DownloadBillAttachmentAcceptEnum;
86
90
  DownloadBillAttachmentAcceptEnum["applicationJson"] = "application/json";
87
91
  DownloadBillAttachmentAcceptEnum["applicationOctetStream"] = "application/octet-stream";
88
92
  })(DownloadBillAttachmentAcceptEnum = exports.DownloadBillAttachmentAcceptEnum || (exports.DownloadBillAttachmentAcceptEnum = {}));
89
- var DownloadSupplierAttachmentAcceptEnum;
90
- (function (DownloadSupplierAttachmentAcceptEnum) {
91
- DownloadSupplierAttachmentAcceptEnum["applicationJson"] = "application/json";
92
- DownloadSupplierAttachmentAcceptEnum["applicationOctetStream"] = "application/octet-stream";
93
- })(DownloadSupplierAttachmentAcceptEnum = exports.DownloadSupplierAttachmentAcceptEnum || (exports.DownloadSupplierAttachmentAcceptEnum = {}));
94
93
  var AccountsPayable = /** @class */ (function () {
95
94
  function AccountsPayable(sdkConfig) {
96
95
  this.sdkConfiguration = sdkConfig;
96
+ this.billCreditNotes = new accountspayablebillcreditnotes_1.AccountsPayableBillCreditNotes(this.sdkConfiguration);
97
+ this.billPayments = new accountspayablebillpayments_1.AccountsPayableBillPayments(this.sdkConfiguration);
98
+ this.bills = new accountspayablebills_1.AccountsPayableBills(this.sdkConfiguration);
99
+ this.suppliers = new accountspayablesuppliers_1.AccountsPayableSuppliers(this.sdkConfiguration);
97
100
  }
98
101
  /**
99
102
  * Download bill attachment
@@ -109,7 +112,7 @@ var AccountsPayable = /** @class */ (function () {
109
112
  AccountsPayable.prototype.downloadBillAttachment = function (req, retries, config, acceptHeaderOverride) {
110
113
  var _a, _b;
111
114
  return __awaiter(this, void 0, void 0, function () {
112
- var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
115
+ var baseURL, url, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
113
116
  return __generator(this, function (_c) {
114
117
  switch (_c.label) {
115
118
  case 0:
@@ -118,82 +121,19 @@ var AccountsPayable = /** @class */ (function () {
118
121
  }
119
122
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
120
123
  url = utils.generateURL(baseURL, "/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments/{attachmentId}/download", req);
121
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
122
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
123
- if (acceptHeaderOverride !== undefined) {
124
- headers["Accept"] = acceptHeaderOverride.toString();
125
- }
126
- else {
127
- headers["Accept"] = "application/json;q=1, application/octet-stream;q=0";
128
- }
129
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
130
- retryConfig = retries;
131
- if (!retryConfig) {
132
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
133
- }
134
- return [4 /*yield*/, utils.Retry(function () {
135
- return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
136
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
124
+ client = this.sdkConfiguration.defaultClient;
125
+ globalSecurity = this.sdkConfiguration.security;
126
+ if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
127
+ return [4 /*yield*/, globalSecurity()];
137
128
  case 1:
138
- httpRes = _c.sent();
139
- 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 : "";
140
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
141
- throw new Error("status code not found in response: ".concat(httpRes));
142
- }
143
- res = new operations.DownloadAccountingBillAttachmentResponse({
144
- statusCode: httpRes.status,
145
- contentType: contentType,
146
- rawResponse: httpRes,
147
- });
148
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
149
- switch (true) {
150
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
151
- if (utils.matchContentType(contentType, "application/octet-stream")) {
152
- res.data = httpRes === null || httpRes === void 0 ? void 0 : httpRes.data;
153
- }
154
- else {
155
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
156
- }
157
- break;
158
- case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
159
- if (utils.matchContentType(contentType, "application/json")) {
160
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
161
- }
162
- else {
163
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
164
- }
165
- break;
166
- }
167
- return [2 /*return*/, res];
168
- }
169
- });
170
- });
171
- };
172
- /**
173
- * Download supplier attachment
174
- *
175
- * @remarks
176
- * The *Download supplier attachment* endpoint downloads a specific attachment for a given `supplierId` and `attachmentId`.
177
- *
178
- * [Suppliers](https://docs.codat.io/accounting-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.
179
- *
180
- * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers) for integrations that support downloading a supplier attachment.
181
- *
182
- */
183
- AccountsPayable.prototype.downloadSupplierAttachment = function (req, retries, config, acceptHeaderOverride) {
184
- var _a, _b;
185
- return __awaiter(this, void 0, void 0, function () {
186
- var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
187
- return __generator(this, function (_c) {
188
- switch (_c.label) {
189
- case 0:
190
- if (!(req instanceof utils.SpeakeasyBase)) {
191
- req = new operations.DownloadAccountingSupplierAttachmentRequest(req);
192
- }
193
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
194
- url = utils.generateURL(baseURL, "/companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments/{attachmentId}/download", req);
195
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
196
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
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);
197
137
  if (acceptHeaderOverride !== undefined) {
198
138
  headers["Accept"] = acceptHeaderOverride.toString();
199
139
  }
@@ -201,20 +141,26 @@ var AccountsPayable = /** @class */ (function () {
201
141
  headers["Accept"] = "application/json;q=1, application/octet-stream;q=0";
202
142
  }
203
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;
204
145
  retryConfig = retries;
205
146
  if (!retryConfig) {
206
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
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
+ }
207
153
  }
208
154
  return [4 /*yield*/, utils.Retry(function () {
209
155
  return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
210
156
  }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
211
- case 1:
157
+ case 3:
212
158
  httpRes = _c.sent();
213
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 : "";
214
160
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
215
161
  throw new Error("status code not found in response: ".concat(httpRes));
216
162
  }
217
- res = new operations.DownloadAccountingSupplierAttachmentResponse({
163
+ res = new operations.DownloadAccountingBillAttachmentResponse({
218
164
  statusCode: httpRes.status,
219
165
  contentType: contentType,
220
166
  rawResponse: httpRes,
@@ -243,142 +189,6 @@ var AccountsPayable = /** @class */ (function () {
243
189
  });
244
190
  });
245
191
  };
246
- /**
247
- * Aged creditors report
248
- *
249
- * @remarks
250
- * Returns aged creditors report for company that shows the total balance owed by a business to its suppliers over time.
251
- */
252
- AccountsPayable.prototype.getAgedCreditorsReport = function (req, retries, config) {
253
- var _a, _b;
254
- return __awaiter(this, void 0, void 0, function () {
255
- var baseURL, url, client, headers, queryParams, retryConfig, httpRes, contentType, res, decodedRes;
256
- return __generator(this, function (_c) {
257
- switch (_c.label) {
258
- case 0:
259
- if (!(req instanceof utils.SpeakeasyBase)) {
260
- req = new operations.GetAccountingAgedCreditorsReportRequest(req);
261
- }
262
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
263
- url = utils.generateURL(baseURL, "/companies/{companyId}/reports/agedCreditor", req);
264
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
265
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
266
- queryParams = utils.serializeQueryParams(req);
267
- headers["Accept"] = "application/json";
268
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
269
- retryConfig = retries;
270
- if (!retryConfig) {
271
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
272
- }
273
- return [4 /*yield*/, utils.Retry(function () {
274
- return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config));
275
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
276
- case 1:
277
- httpRes = _c.sent();
278
- 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 : "";
279
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
280
- throw new Error("status code not found in response: ".concat(httpRes));
281
- }
282
- res = new operations.GetAccountingAgedCreditorsReportResponse({
283
- statusCode: httpRes.status,
284
- contentType: contentType,
285
- rawResponse: httpRes,
286
- });
287
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
288
- switch (true) {
289
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
290
- if (utils.matchContentType(contentType, "application/json")) {
291
- res.accountingAgedCreditorReport = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingAgedCreditorReport);
292
- }
293
- else {
294
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
295
- }
296
- break;
297
- case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
298
- if (utils.matchContentType(contentType, "application/json")) {
299
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
300
- }
301
- else {
302
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
303
- }
304
- break;
305
- }
306
- return [2 /*return*/, res];
307
- }
308
- });
309
- });
310
- };
311
- /**
312
- * Get bill
313
- *
314
- * @remarks
315
- * The *Get bill* endpoint returns a single bill for a given billId.
316
- *
317
- * [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.
318
- *
319
- * 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 specific bill.
320
- *
321
- * Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
322
- *
323
- */
324
- AccountsPayable.prototype.getBill = function (req, retries, config) {
325
- var _a, _b;
326
- return __awaiter(this, void 0, void 0, function () {
327
- var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
328
- return __generator(this, function (_c) {
329
- switch (_c.label) {
330
- case 0:
331
- if (!(req instanceof utils.SpeakeasyBase)) {
332
- req = new operations.GetAccountingBillRequest(req);
333
- }
334
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
335
- url = utils.generateURL(baseURL, "/companies/{companyId}/data/bills/{billId}", req);
336
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
337
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
338
- headers["Accept"] = "application/json";
339
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
340
- retryConfig = retries;
341
- if (!retryConfig) {
342
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
343
- }
344
- return [4 /*yield*/, utils.Retry(function () {
345
- return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
346
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
347
- case 1:
348
- httpRes = _c.sent();
349
- 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 : "";
350
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
351
- throw new Error("status code not found in response: ".concat(httpRes));
352
- }
353
- res = new operations.GetAccountingBillResponse({
354
- statusCode: httpRes.status,
355
- contentType: contentType,
356
- rawResponse: httpRes,
357
- });
358
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
359
- switch (true) {
360
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
361
- if (utils.matchContentType(contentType, "application/json")) {
362
- res.accountingBill = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingBill);
363
- }
364
- else {
365
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
366
- }
367
- break;
368
- case [401, 404, 409, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
369
- if (utils.matchContentType(contentType, "application/json")) {
370
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
371
- }
372
- else {
373
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
374
- }
375
- break;
376
- }
377
- return [2 /*return*/, res];
378
- }
379
- });
380
- });
381
- };
382
192
  /**
383
193
  * Get bill attachment
384
194
  *
@@ -393,7 +203,7 @@ var AccountsPayable = /** @class */ (function () {
393
203
  AccountsPayable.prototype.getBillAttachment = function (req, retries, config) {
394
204
  var _a, _b;
395
205
  return __awaiter(this, void 0, void 0, function () {
396
- var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
206
+ var baseURL, url, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
397
207
  return __generator(this, function (_c) {
398
208
  switch (_c.label) {
399
209
  case 0:
@@ -402,18 +212,35 @@ var AccountsPayable = /** @class */ (function () {
402
212
  }
403
213
  baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
404
214
  url = utils.generateURL(baseURL, "/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments/{attachmentId}", req);
405
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
406
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
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);
407
228
  headers["Accept"] = "application/json";
408
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;
409
231
  retryConfig = retries;
410
232
  if (!retryConfig) {
411
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
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
+ }
412
239
  }
413
240
  return [4 /*yield*/, utils.Retry(function () {
414
241
  return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
415
242
  }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
416
- case 1:
243
+ case 3:
417
244
  httpRes = _c.sent();
418
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 : "";
419
246
  if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
@@ -448,763 +275,6 @@ var AccountsPayable = /** @class */ (function () {
448
275
  });
449
276
  });
450
277
  };
451
- /**
452
- * Get bill credit note
453
- *
454
- * @remarks
455
- * The *Get bill credit note* endpoint returns a single bill credit note for a given billCreditNoteId.
456
- *
457
- * [Bill credit notes](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit.
458
- *
459
- * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billCreditNotes) for integrations that support getting a specific bill credit note.
460
- *
461
- * Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
462
- *
463
- */
464
- AccountsPayable.prototype.getBillCreditNote = function (req, retries, config) {
465
- var _a, _b;
466
- return __awaiter(this, void 0, void 0, function () {
467
- var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
468
- return __generator(this, function (_c) {
469
- switch (_c.label) {
470
- case 0:
471
- if (!(req instanceof utils.SpeakeasyBase)) {
472
- req = new operations.GetAccountingBillCreditNoteRequest(req);
473
- }
474
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
475
- url = utils.generateURL(baseURL, "/companies/{companyId}/data/billCreditNotes/{billCreditNoteId}", req);
476
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
477
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
478
- headers["Accept"] = "application/json";
479
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
480
- retryConfig = retries;
481
- if (!retryConfig) {
482
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
483
- }
484
- return [4 /*yield*/, utils.Retry(function () {
485
- return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
486
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
487
- case 1:
488
- httpRes = _c.sent();
489
- 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 : "";
490
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
491
- throw new Error("status code not found in response: ".concat(httpRes));
492
- }
493
- res = new operations.GetAccountingBillCreditNoteResponse({
494
- statusCode: httpRes.status,
495
- contentType: contentType,
496
- rawResponse: httpRes,
497
- });
498
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
499
- switch (true) {
500
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
501
- if (utils.matchContentType(contentType, "application/json")) {
502
- res.accountingBillCreditNote = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingBillCreditNote);
503
- }
504
- else {
505
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
506
- }
507
- break;
508
- case [401, 404, 409, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
509
- if (utils.matchContentType(contentType, "application/json")) {
510
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
511
- }
512
- else {
513
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
514
- }
515
- break;
516
- }
517
- return [2 /*return*/, res];
518
- }
519
- });
520
- });
521
- };
522
- /**
523
- * Get bill payment
524
- *
525
- * @remarks
526
- * The *Get bill payment* endpoint returns a single bill payment for a given billPaymentId.
527
- *
528
- * [Bill payments](https://docs.codat.io/accounting-api#/schemas/BillPayment) are an allocation of money within any customer accounts payable account.
529
- *
530
- * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=billPayments) for integrations that support getting a specific bill payment.
531
- *
532
- * Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
533
- *
534
- */
535
- AccountsPayable.prototype.getBillPayment = function (req, retries, config) {
536
- var _a, _b;
537
- return __awaiter(this, void 0, void 0, function () {
538
- var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
539
- return __generator(this, function (_c) {
540
- switch (_c.label) {
541
- case 0:
542
- if (!(req instanceof utils.SpeakeasyBase)) {
543
- req = new operations.GetAccountingBillPaymentRequest(req);
544
- }
545
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
546
- url = utils.generateURL(baseURL, "/companies/{companyId}/data/billPayments/{billPaymentId}", req);
547
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
548
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
549
- headers["Accept"] = "application/json";
550
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
551
- retryConfig = retries;
552
- if (!retryConfig) {
553
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
554
- }
555
- return [4 /*yield*/, utils.Retry(function () {
556
- return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
557
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
558
- case 1:
559
- httpRes = _c.sent();
560
- 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 : "";
561
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
562
- throw new Error("status code not found in response: ".concat(httpRes));
563
- }
564
- res = new operations.GetAccountingBillPaymentResponse({
565
- statusCode: httpRes.status,
566
- contentType: contentType,
567
- rawResponse: httpRes,
568
- });
569
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
570
- switch (true) {
571
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
572
- if (utils.matchContentType(contentType, "application/json")) {
573
- res.accountingBillPayment = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingBillPayment);
574
- }
575
- else {
576
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
577
- }
578
- break;
579
- case [401, 404, 409, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
580
- if (utils.matchContentType(contentType, "application/json")) {
581
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
582
- }
583
- else {
584
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
585
- }
586
- break;
587
- }
588
- return [2 /*return*/, res];
589
- }
590
- });
591
- });
592
- };
593
- /**
594
- * Get supplier
595
- *
596
- * @remarks
597
- * The *Get supplier* endpoint returns a single supplier for a given supplierId.
598
- *
599
- * [Suppliers](https://docs.codat.io/accounting-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.
600
- *
601
- * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers) for integrations that support getting a specific supplier.
602
- *
603
- * Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
604
- *
605
- */
606
- AccountsPayable.prototype.getSupplier = function (req, retries, config) {
607
- var _a, _b;
608
- return __awaiter(this, void 0, void 0, function () {
609
- var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
610
- return __generator(this, function (_c) {
611
- switch (_c.label) {
612
- case 0:
613
- if (!(req instanceof utils.SpeakeasyBase)) {
614
- req = new operations.GetAccountingSupplierRequest(req);
615
- }
616
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
617
- url = utils.generateURL(baseURL, "/companies/{companyId}/data/suppliers/{supplierId}", req);
618
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
619
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
620
- headers["Accept"] = "application/json";
621
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
622
- retryConfig = retries;
623
- if (!retryConfig) {
624
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
625
- }
626
- return [4 /*yield*/, utils.Retry(function () {
627
- return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
628
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
629
- case 1:
630
- httpRes = _c.sent();
631
- 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 : "";
632
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
633
- throw new Error("status code not found in response: ".concat(httpRes));
634
- }
635
- res = new operations.GetAccountingSupplierResponse({
636
- statusCode: httpRes.status,
637
- contentType: contentType,
638
- rawResponse: httpRes,
639
- });
640
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
641
- switch (true) {
642
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
643
- if (utils.matchContentType(contentType, "application/json")) {
644
- res.accountingSupplier = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingSupplier);
645
- }
646
- else {
647
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
648
- }
649
- break;
650
- case [401, 404, 409, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
651
- if (utils.matchContentType(contentType, "application/json")) {
652
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
653
- }
654
- else {
655
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
656
- }
657
- break;
658
- }
659
- return [2 /*return*/, res];
660
- }
661
- });
662
- });
663
- };
664
- /**
665
- * Get supplier attachment
666
- *
667
- * @remarks
668
- * The *Get supplier attachment* endpoint returns a specific attachment for a given `supplierId` and `attachmentId`.
669
- *
670
- * [Suppliers](https://docs.codat.io/accounting-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.
671
- *
672
- * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers) for integrations that support getting a supplier attachment.
673
- *
674
- */
675
- AccountsPayable.prototype.getSupplierAttachment = function (req, retries, config) {
676
- var _a, _b;
677
- return __awaiter(this, void 0, void 0, function () {
678
- var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
679
- return __generator(this, function (_c) {
680
- switch (_c.label) {
681
- case 0:
682
- if (!(req instanceof utils.SpeakeasyBase)) {
683
- req = new operations.GetAccountingSupplierAttachmentRequest(req);
684
- }
685
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
686
- url = utils.generateURL(baseURL, "/companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments/{attachmentId}", req);
687
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
688
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
689
- headers["Accept"] = "application/json";
690
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
691
- retryConfig = retries;
692
- if (!retryConfig) {
693
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
694
- }
695
- return [4 /*yield*/, utils.Retry(function () {
696
- return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
697
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
698
- case 1:
699
- httpRes = _c.sent();
700
- 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 : "";
701
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
702
- throw new Error("status code not found in response: ".concat(httpRes));
703
- }
704
- res = new operations.GetAccountingSupplierAttachmentResponse({
705
- statusCode: httpRes.status,
706
- contentType: contentType,
707
- rawResponse: httpRes,
708
- });
709
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
710
- switch (true) {
711
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
712
- if (utils.matchContentType(contentType, "application/json")) {
713
- res.accountingAttachment = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingAttachment);
714
- }
715
- else {
716
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
717
- }
718
- break;
719
- case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
720
- if (utils.matchContentType(contentType, "application/json")) {
721
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
722
- }
723
- else {
724
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
725
- }
726
- break;
727
- }
728
- return [2 /*return*/, res];
729
- }
730
- });
731
- });
732
- };
733
- /**
734
- * Aged creditors report available
735
- *
736
- * @remarks
737
- * Indicates whether the aged creditor report is available for the company.
738
- */
739
- AccountsPayable.prototype.isAgedCreditorsReportAvailable = function (req, retries, config) {
740
- var _a, _b;
741
- return __awaiter(this, void 0, void 0, function () {
742
- var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
743
- return __generator(this, function (_c) {
744
- switch (_c.label) {
745
- case 0:
746
- if (!(req instanceof utils.SpeakeasyBase)) {
747
- req = new operations.IsAgedCreditorsReportAvailableRequest(req);
748
- }
749
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
750
- url = utils.generateURL(baseURL, "/companies/{companyId}/reports/agedCreditor/available", req);
751
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
752
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
753
- headers["Accept"] = "application/json";
754
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
755
- retryConfig = retries;
756
- if (!retryConfig) {
757
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
758
- }
759
- return [4 /*yield*/, utils.Retry(function () {
760
- return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
761
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
762
- case 1:
763
- httpRes = _c.sent();
764
- 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 : "";
765
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
766
- throw new Error("status code not found in response: ".concat(httpRes));
767
- }
768
- res = new operations.IsAgedCreditorsReportAvailableResponse({
769
- statusCode: httpRes.status,
770
- contentType: contentType,
771
- rawResponse: httpRes,
772
- });
773
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
774
- switch (true) {
775
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
776
- if (utils.matchContentType(contentType, "application/json")) {
777
- res.isAgedCreditorsReportAvailable200ApplicationJSONBoolean =
778
- JSON.parse(decodedRes);
779
- }
780
- else {
781
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
782
- }
783
- break;
784
- }
785
- return [2 /*return*/, res];
786
- }
787
- });
788
- });
789
- };
790
- /**
791
- * List bill attachments
792
- *
793
- * @remarks
794
- * The *List bill attachments* endpoint returns a list of attachments available to download for a given `billId`.
795
- *
796
- * [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.
797
- *
798
- * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support listing bill attachments.
799
- *
800
- */
801
- AccountsPayable.prototype.listBillAttachments = function (req, retries, config) {
802
- var _a, _b;
803
- return __awaiter(this, void 0, void 0, function () {
804
- var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
805
- return __generator(this, function (_c) {
806
- switch (_c.label) {
807
- case 0:
808
- if (!(req instanceof utils.SpeakeasyBase)) {
809
- req = new operations.ListAccountingBillAttachmentsRequest(req);
810
- }
811
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
812
- url = utils.generateURL(baseURL, "/companies/{companyId}/connections/{connectionId}/data/bills/{billId}/attachments", req);
813
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
814
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
815
- headers["Accept"] = "application/json";
816
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
817
- retryConfig = retries;
818
- if (!retryConfig) {
819
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
820
- }
821
- return [4 /*yield*/, utils.Retry(function () {
822
- return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
823
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
824
- case 1:
825
- httpRes = _c.sent();
826
- 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 : "";
827
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
828
- throw new Error("status code not found in response: ".concat(httpRes));
829
- }
830
- res = new operations.ListAccountingBillAttachmentsResponse({
831
- statusCode: httpRes.status,
832
- contentType: contentType,
833
- rawResponse: httpRes,
834
- });
835
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
836
- switch (true) {
837
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
838
- if (utils.matchContentType(contentType, "application/json")) {
839
- res.attachments = utils.objectToClass(JSON.parse(decodedRes), shared.Attachments);
840
- }
841
- else {
842
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
843
- }
844
- break;
845
- case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
846
- if (utils.matchContentType(contentType, "application/json")) {
847
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
848
- }
849
- else {
850
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
851
- }
852
- break;
853
- }
854
- return [2 /*return*/, res];
855
- }
856
- });
857
- });
858
- };
859
- /**
860
- * List bill credit notes
861
- *
862
- * @remarks
863
- * The *List bill credit notes* endpoint returns a list of [bill credit notes](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) for a given company's connection.
864
- *
865
- * [Bill credit notes](https://docs.codat.io/accounting-api#/schemas/BillCreditNote) are issued by a supplier for the purpose of recording credit.
866
- *
867
- * Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
868
- *
869
- */
870
- AccountsPayable.prototype.listBillCreditNotes = function (req, retries, config) {
871
- var _a, _b;
872
- return __awaiter(this, void 0, void 0, function () {
873
- var baseURL, url, client, headers, queryParams, retryConfig, httpRes, contentType, res, decodedRes;
874
- return __generator(this, function (_c) {
875
- switch (_c.label) {
876
- case 0:
877
- if (!(req instanceof utils.SpeakeasyBase)) {
878
- req = new operations.ListAccountingBillCreditNotesRequest(req);
879
- }
880
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
881
- url = utils.generateURL(baseURL, "/companies/{companyId}/data/billCreditNotes", req);
882
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
883
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
884
- queryParams = utils.serializeQueryParams(req);
885
- headers["Accept"] = "application/json";
886
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
887
- retryConfig = retries;
888
- if (!retryConfig) {
889
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
890
- }
891
- return [4 /*yield*/, utils.Retry(function () {
892
- return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config));
893
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
894
- case 1:
895
- httpRes = _c.sent();
896
- 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 : "";
897
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
898
- throw new Error("status code not found in response: ".concat(httpRes));
899
- }
900
- res = new operations.ListAccountingBillCreditNotesResponse({
901
- statusCode: httpRes.status,
902
- contentType: contentType,
903
- rawResponse: httpRes,
904
- });
905
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
906
- switch (true) {
907
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
908
- if (utils.matchContentType(contentType, "application/json")) {
909
- res.accountingBillCreditNotes = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingBillCreditNotes);
910
- }
911
- else {
912
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
913
- }
914
- break;
915
- case [400, 401, 404, 409].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
916
- if (utils.matchContentType(contentType, "application/json")) {
917
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
918
- }
919
- else {
920
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
921
- }
922
- break;
923
- }
924
- return [2 /*return*/, res];
925
- }
926
- });
927
- });
928
- };
929
- /**
930
- * List bill payments
931
- *
932
- * @remarks
933
- * The *List bill payments* endpoint returns a list of [bill payments](https://docs.codat.io/accounting-api#/schemas/BillPayment) for a given company's connection.
934
- *
935
- * [Bill payments](https://docs.codat.io/accounting-api#/schemas/BillPayment) are an allocation of money within any customer accounts payable account.
936
- *
937
- * Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
938
- *
939
- */
940
- AccountsPayable.prototype.listBillPayments = function (req, retries, config) {
941
- var _a, _b;
942
- return __awaiter(this, void 0, void 0, function () {
943
- var baseURL, url, client, headers, queryParams, retryConfig, httpRes, contentType, res, decodedRes;
944
- return __generator(this, function (_c) {
945
- switch (_c.label) {
946
- case 0:
947
- if (!(req instanceof utils.SpeakeasyBase)) {
948
- req = new operations.ListAccountingBillPaymentsRequest(req);
949
- }
950
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
951
- url = utils.generateURL(baseURL, "/companies/{companyId}/data/billPayments", req);
952
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
953
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
954
- queryParams = utils.serializeQueryParams(req);
955
- headers["Accept"] = "application/json";
956
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
957
- retryConfig = retries;
958
- if (!retryConfig) {
959
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
960
- }
961
- return [4 /*yield*/, utils.Retry(function () {
962
- return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config));
963
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
964
- case 1:
965
- httpRes = _c.sent();
966
- 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 : "";
967
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
968
- throw new Error("status code not found in response: ".concat(httpRes));
969
- }
970
- res = new operations.ListAccountingBillPaymentsResponse({
971
- statusCode: httpRes.status,
972
- contentType: contentType,
973
- rawResponse: httpRes,
974
- });
975
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
976
- switch (true) {
977
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
978
- if (utils.matchContentType(contentType, "application/json")) {
979
- res.accountingBillPayments = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingBillPayments);
980
- }
981
- else {
982
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
983
- }
984
- break;
985
- case [400, 401, 404, 409].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
986
- if (utils.matchContentType(contentType, "application/json")) {
987
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
988
- }
989
- else {
990
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
991
- }
992
- break;
993
- }
994
- return [2 /*return*/, res];
995
- }
996
- });
997
- });
998
- };
999
- /**
1000
- * List bills
1001
- *
1002
- * @remarks
1003
- * The *List bills* endpoint returns a list of [bills](https://docs.codat.io/accounting-api#/schemas/Bill) for a given company's connection.
1004
- *
1005
- * [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.
1006
- *
1007
- * Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
1008
- *
1009
- */
1010
- AccountsPayable.prototype.listBills = function (req, retries, config) {
1011
- var _a, _b;
1012
- return __awaiter(this, void 0, void 0, function () {
1013
- var baseURL, url, client, headers, queryParams, retryConfig, httpRes, contentType, res, decodedRes;
1014
- return __generator(this, function (_c) {
1015
- switch (_c.label) {
1016
- case 0:
1017
- if (!(req instanceof utils.SpeakeasyBase)) {
1018
- req = new operations.ListAccountingBillsRequest(req);
1019
- }
1020
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1021
- url = utils.generateURL(baseURL, "/companies/{companyId}/data/bills", req);
1022
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
1023
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
1024
- queryParams = utils.serializeQueryParams(req);
1025
- headers["Accept"] = "application/json";
1026
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
1027
- retryConfig = retries;
1028
- if (!retryConfig) {
1029
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
1030
- }
1031
- return [4 /*yield*/, utils.Retry(function () {
1032
- return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config));
1033
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
1034
- case 1:
1035
- httpRes = _c.sent();
1036
- 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 : "";
1037
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1038
- throw new Error("status code not found in response: ".concat(httpRes));
1039
- }
1040
- res = new operations.ListAccountingBillsResponse({
1041
- statusCode: httpRes.status,
1042
- contentType: contentType,
1043
- rawResponse: httpRes,
1044
- });
1045
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1046
- switch (true) {
1047
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1048
- if (utils.matchContentType(contentType, "application/json")) {
1049
- res.accountingBills = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingBills);
1050
- }
1051
- else {
1052
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
1053
- }
1054
- break;
1055
- case [400, 401, 404, 409].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
1056
- if (utils.matchContentType(contentType, "application/json")) {
1057
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
1058
- }
1059
- else {
1060
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
1061
- }
1062
- break;
1063
- }
1064
- return [2 /*return*/, res];
1065
- }
1066
- });
1067
- });
1068
- };
1069
- /**
1070
- * List supplier attachments
1071
- *
1072
- * @remarks
1073
- * The *List supplier attachments* endpoint returns a list of attachments available to download for given `supplierId`.
1074
- *
1075
- * [Suppliers](https://docs.codat.io/accounting-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.
1076
- *
1077
- * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers) for integrations that support listing supplier attachments.
1078
- *
1079
- */
1080
- AccountsPayable.prototype.listSupplierAttachments = function (req, retries, config) {
1081
- var _a, _b;
1082
- return __awaiter(this, void 0, void 0, function () {
1083
- var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
1084
- return __generator(this, function (_c) {
1085
- switch (_c.label) {
1086
- case 0:
1087
- if (!(req instanceof utils.SpeakeasyBase)) {
1088
- req = new operations.ListAccountingSupplierAttachmentsRequest(req);
1089
- }
1090
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1091
- url = utils.generateURL(baseURL, "/companies/{companyId}/connections/{connectionId}/data/suppliers/{supplierId}/attachments", req);
1092
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
1093
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
1094
- headers["Accept"] = "application/json";
1095
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
1096
- retryConfig = retries;
1097
- if (!retryConfig) {
1098
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
1099
- }
1100
- return [4 /*yield*/, utils.Retry(function () {
1101
- return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
1102
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
1103
- case 1:
1104
- httpRes = _c.sent();
1105
- 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 : "";
1106
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1107
- throw new Error("status code not found in response: ".concat(httpRes));
1108
- }
1109
- res = new operations.ListAccountingSupplierAttachmentsResponse({
1110
- statusCode: httpRes.status,
1111
- contentType: contentType,
1112
- rawResponse: httpRes,
1113
- });
1114
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1115
- switch (true) {
1116
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1117
- if (utils.matchContentType(contentType, "application/json")) {
1118
- res.attachments = utils.objectToClass(JSON.parse(decodedRes), shared.Attachments);
1119
- }
1120
- else {
1121
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
1122
- }
1123
- break;
1124
- case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
1125
- if (utils.matchContentType(contentType, "application/json")) {
1126
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
1127
- }
1128
- else {
1129
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
1130
- }
1131
- break;
1132
- }
1133
- return [2 /*return*/, res];
1134
- }
1135
- });
1136
- });
1137
- };
1138
- /**
1139
- * List suppliers
1140
- *
1141
- * @remarks
1142
- * The *List suppliers* endpoint returns a list of [suppliers](https://docs.codat.io/accounting-api#/schemas/Supplier) for a given company's connection.
1143
- *
1144
- * [Suppliers](https://docs.codat.io/accounting-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.
1145
- *
1146
- * Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
1147
- *
1148
- */
1149
- AccountsPayable.prototype.listSuppliers = function (req, retries, config) {
1150
- var _a, _b;
1151
- return __awaiter(this, void 0, void 0, function () {
1152
- var baseURL, url, client, headers, queryParams, retryConfig, httpRes, contentType, res, decodedRes;
1153
- return __generator(this, function (_c) {
1154
- switch (_c.label) {
1155
- case 0:
1156
- if (!(req instanceof utils.SpeakeasyBase)) {
1157
- req = new operations.ListAccountingSuppliersRequest(req);
1158
- }
1159
- baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
1160
- url = utils.generateURL(baseURL, "/companies/{companyId}/data/suppliers", req);
1161
- client = this.sdkConfiguration.securityClient || this.sdkConfiguration.defaultClient;
1162
- headers = __assign({}, config === null || config === void 0 ? void 0 : config.headers);
1163
- queryParams = utils.serializeQueryParams(req);
1164
- headers["Accept"] = "application/json";
1165
- headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
1166
- retryConfig = retries;
1167
- if (!retryConfig) {
1168
- retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
1169
- }
1170
- return [4 /*yield*/, utils.Retry(function () {
1171
- return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config));
1172
- }, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
1173
- case 1:
1174
- httpRes = _c.sent();
1175
- 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 : "";
1176
- if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
1177
- throw new Error("status code not found in response: ".concat(httpRes));
1178
- }
1179
- res = new operations.ListAccountingSuppliersResponse({
1180
- statusCode: httpRes.status,
1181
- contentType: contentType,
1182
- rawResponse: httpRes,
1183
- });
1184
- decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
1185
- switch (true) {
1186
- case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
1187
- if (utils.matchContentType(contentType, "application/json")) {
1188
- res.accountingSuppliers = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingSuppliers);
1189
- }
1190
- else {
1191
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
1192
- }
1193
- break;
1194
- case [400, 401, 404, 409].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
1195
- if (utils.matchContentType(contentType, "application/json")) {
1196
- res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
1197
- }
1198
- else {
1199
- throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
1200
- }
1201
- break;
1202
- }
1203
- return [2 /*return*/, res];
1204
- }
1205
- });
1206
- });
1207
- };
1208
278
  return AccountsPayable;
1209
279
  }());
1210
280
  exports.AccountsPayable = AccountsPayable;