@codat/lending 0.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.
- package/README.md +14 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20 -0
- package/dist/internal/utils/contenttype.d.ts +1 -0
- package/dist/internal/utils/contenttype.js +33 -0
- package/dist/internal/utils/headers.d.ts +4 -0
- package/dist/internal/utils/headers.js +92 -0
- package/dist/internal/utils/index.d.ts +8 -0
- package/dist/internal/utils/index.js +27 -0
- package/dist/internal/utils/pathparams.d.ts +2 -0
- package/dist/internal/utils/pathparams.js +53 -0
- package/dist/internal/utils/queryparams.d.ts +2 -0
- package/dist/internal/utils/queryparams.js +178 -0
- package/dist/internal/utils/requestbody.d.ts +2 -0
- package/dist/internal/utils/requestbody.js +318 -0
- package/dist/internal/utils/retries.d.ts +20 -0
- package/dist/internal/utils/retries.js +250 -0
- package/dist/internal/utils/security.d.ts +2 -0
- package/dist/internal/utils/security.js +188 -0
- package/dist/internal/utils/utils.d.ts +37 -0
- package/dist/internal/utils/utils.js +370 -0
- package/dist/sdk/accountingbankdata.d.ts +51 -0
- package/dist/sdk/accountingbankdata.js +303 -0
- package/dist/sdk/accountspayable.d.ts +209 -0
- package/dist/sdk/accountspayable.js +1210 -0
- package/dist/sdk/accountsreceivable.d.ts +289 -0
- package/dist/sdk/accountsreceivable.js +1689 -0
- package/dist/sdk/cashflow.d.ts +112 -0
- package/dist/sdk/cashflow.js +628 -0
- package/dist/sdk/companies.d.ts +52 -0
- package/dist/sdk/companies.js +446 -0
- package/dist/sdk/companyinfo.d.ts +27 -0
- package/dist/sdk/companyinfo.js +220 -0
- package/dist/sdk/connections.d.ts +49 -0
- package/dist/sdk/connections.js +444 -0
- package/dist/sdk/dataintegrity.d.ts +45 -0
- package/dist/sdk/dataintegrity.js +297 -0
- package/dist/sdk/excelreports.d.ts +52 -0
- package/dist/sdk/excelreports.js +311 -0
- package/dist/sdk/fileupload.d.ts +42 -0
- package/dist/sdk/fileupload.js +321 -0
- package/dist/sdk/financials.d.ts +75 -0
- package/dist/sdk/financials.js +559 -0
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +20 -0
- package/dist/sdk/liabilities.d.ts +35 -0
- package/dist/sdk/liabilities.js +229 -0
- package/dist/sdk/managedata.d.ts +52 -0
- package/dist/sdk/managedata.js +414 -0
- package/dist/sdk/models/errors/index.d.ts +1 -0
- package/dist/sdk/models/errors/index.js +20 -0
- package/dist/sdk/models/errors/sdkerror.d.ts +7 -0
- package/dist/sdk/models/errors/sdkerror.js +40 -0
- package/dist/sdk/models/operations/createcompany.d.ts +16 -0
- package/dist/sdk/models/operations/createcompany.js +83 -0
- package/dist/sdk/models/operations/createconnection.d.ts +23 -0
- package/dist/sdk/models/operations/createconnection.js +113 -0
- package/dist/sdk/models/operations/deletecompany.d.ts +15 -0
- package/dist/sdk/models/operations/deletecompany.js +91 -0
- package/dist/sdk/models/operations/deleteconnection.d.ts +16 -0
- package/dist/sdk/models/operations/deleteconnection.js +95 -0
- package/dist/sdk/models/operations/downloadaccountingbillattachment.d.ts +28 -0
- package/dist/sdk/models/operations/downloadaccountingbillattachment.js +107 -0
- package/dist/sdk/models/operations/downloadaccountingcustomerattachment.d.ts +25 -0
- package/dist/sdk/models/operations/downloadaccountingcustomerattachment.js +107 -0
- package/dist/sdk/models/operations/downloadaccountingdirectcostattachment.d.ts +28 -0
- package/dist/sdk/models/operations/downloadaccountingdirectcostattachment.js +107 -0
- package/dist/sdk/models/operations/downloadaccountingdirectincomeattachment.d.ts +28 -0
- package/dist/sdk/models/operations/downloadaccountingdirectincomeattachment.js +107 -0
- package/dist/sdk/models/operations/downloadaccountinginvoiceattachment.d.ts +28 -0
- package/dist/sdk/models/operations/downloadaccountinginvoiceattachment.js +107 -0
- package/dist/sdk/models/operations/downloadaccountinginvoicepdf.d.ts +18 -0
- package/dist/sdk/models/operations/downloadaccountinginvoicepdf.js +71 -0
- package/dist/sdk/models/operations/downloadaccountingsupplierattachment.d.ts +28 -0
- package/dist/sdk/models/operations/downloadaccountingsupplierattachment.js +107 -0
- package/dist/sdk/models/operations/downloadexcelreport.d.ts +20 -0
- package/dist/sdk/models/operations/downloadexcelreport.js +99 -0
- package/dist/sdk/models/operations/downloadfiles.d.ts +23 -0
- package/dist/sdk/models/operations/downloadfiles.js +99 -0
- package/dist/sdk/models/operations/generateexcelreport.d.ts +23 -0
- package/dist/sdk/models/operations/generateexcelreport.js +99 -0
- package/dist/sdk/models/operations/getaccountingaccount.d.ts +23 -0
- package/dist/sdk/models/operations/getaccountingaccount.js +99 -0
- package/dist/sdk/models/operations/getaccountingaccounttransaction.d.ts +21 -0
- package/dist/sdk/models/operations/getaccountingaccounttransaction.js +103 -0
- package/dist/sdk/models/operations/getaccountingagedcreditorsreport.d.ts +32 -0
- package/dist/sdk/models/operations/getaccountingagedcreditorsreport.js +108 -0
- package/dist/sdk/models/operations/getaccountingageddebtorsreport.d.ts +32 -0
- package/dist/sdk/models/operations/getaccountingageddebtorsreport.js +108 -0
- package/dist/sdk/models/operations/getaccountingbalancesheet.d.ts +28 -0
- package/dist/sdk/models/operations/getaccountingbalancesheet.js +107 -0
- package/dist/sdk/models/operations/getaccountingbankaccount.d.ts +24 -0
- package/dist/sdk/models/operations/getaccountingbankaccount.js +103 -0
- package/dist/sdk/models/operations/getaccountingbill.d.ts +23 -0
- package/dist/sdk/models/operations/getaccountingbill.js +99 -0
- package/dist/sdk/models/operations/getaccountingbillattachment.d.ts +28 -0
- package/dist/sdk/models/operations/getaccountingbillattachment.js +107 -0
- package/dist/sdk/models/operations/getaccountingbillcreditnote.d.ts +20 -0
- package/dist/sdk/models/operations/getaccountingbillcreditnote.js +99 -0
- package/dist/sdk/models/operations/getaccountingbillpayment.d.ts +20 -0
- package/dist/sdk/models/operations/getaccountingbillpayment.js +99 -0
- package/dist/sdk/models/operations/getaccountingcashflowstatement.d.ts +28 -0
- package/dist/sdk/models/operations/getaccountingcashflowstatement.js +107 -0
- package/dist/sdk/models/operations/getaccountingcompanyinfo.d.ts +19 -0
- package/dist/sdk/models/operations/getaccountingcompanyinfo.js +95 -0
- package/dist/sdk/models/operations/getaccountingcreditnote.d.ts +20 -0
- package/dist/sdk/models/operations/getaccountingcreditnote.js +99 -0
- package/dist/sdk/models/operations/getaccountingcustomer.d.ts +20 -0
- package/dist/sdk/models/operations/getaccountingcustomer.js +99 -0
- package/dist/sdk/models/operations/getaccountingcustomerattachment.d.ts +25 -0
- package/dist/sdk/models/operations/getaccountingcustomerattachment.js +107 -0
- package/dist/sdk/models/operations/getaccountingdirectcost.d.ts +24 -0
- package/dist/sdk/models/operations/getaccountingdirectcost.js +103 -0
- package/dist/sdk/models/operations/getaccountingdirectcostattachment.d.ts +28 -0
- package/dist/sdk/models/operations/getaccountingdirectcostattachment.js +107 -0
- package/dist/sdk/models/operations/getaccountingdirectincome.d.ts +21 -0
- package/dist/sdk/models/operations/getaccountingdirectincome.js +103 -0
- package/dist/sdk/models/operations/getaccountingdirectincomeattachment.d.ts +29 -0
- package/dist/sdk/models/operations/getaccountingdirectincomeattachment.js +111 -0
- package/dist/sdk/models/operations/getaccountinginvoice.d.ts +23 -0
- package/dist/sdk/models/operations/getaccountinginvoice.js +99 -0
- package/dist/sdk/models/operations/getaccountinginvoiceattachment.d.ts +28 -0
- package/dist/sdk/models/operations/getaccountinginvoiceattachment.js +107 -0
- package/dist/sdk/models/operations/getaccountingjournal.d.ts +20 -0
- package/dist/sdk/models/operations/getaccountingjournal.js +99 -0
- package/dist/sdk/models/operations/getaccountingjournalentry.d.ts +20 -0
- package/dist/sdk/models/operations/getaccountingjournalentry.js +99 -0
- package/dist/sdk/models/operations/getaccountingpayment.d.ts +20 -0
- package/dist/sdk/models/operations/getaccountingpayment.js +99 -0
- package/dist/sdk/models/operations/getaccountingprofitandloss.d.ts +28 -0
- package/dist/sdk/models/operations/getaccountingprofitandloss.js +107 -0
- package/dist/sdk/models/operations/getaccountingsupplier.d.ts +23 -0
- package/dist/sdk/models/operations/getaccountingsupplier.js +99 -0
- package/dist/sdk/models/operations/getaccountingsupplierattachment.d.ts +28 -0
- package/dist/sdk/models/operations/getaccountingsupplierattachment.js +107 -0
- package/dist/sdk/models/operations/getaccountingtransfer.d.ts +21 -0
- package/dist/sdk/models/operations/getaccountingtransfer.js +103 -0
- package/dist/sdk/models/operations/getbankingaccount.d.ts +20 -0
- package/dist/sdk/models/operations/getbankingaccount.js +99 -0
- package/dist/sdk/models/operations/getbankingtransaction.d.ts +20 -0
- package/dist/sdk/models/operations/getbankingtransaction.js +99 -0
- package/dist/sdk/models/operations/getbankingtransactioncategory.d.ts +20 -0
- package/dist/sdk/models/operations/getbankingtransactioncategory.js +99 -0
- package/dist/sdk/models/operations/getcommercecompanyinfo.d.ts +20 -0
- package/dist/sdk/models/operations/getcommercecompanyinfo.js +99 -0
- package/dist/sdk/models/operations/getcommercecustomer.d.ts +24 -0
- package/dist/sdk/models/operations/getcommercecustomer.js +103 -0
- package/dist/sdk/models/operations/getcommercecustomerretentionmetrics.d.ts +40 -0
- package/dist/sdk/models/operations/getcommercecustomerretentionmetrics.js +119 -0
- package/dist/sdk/models/operations/getcommercedispute.d.ts +24 -0
- package/dist/sdk/models/operations/getcommercedispute.js +103 -0
- package/dist/sdk/models/operations/getcommercelifetimevaluemetrics.d.ts +40 -0
- package/dist/sdk/models/operations/getcommercelifetimevaluemetrics.js +119 -0
- package/dist/sdk/models/operations/getcommercelocation.d.ts +24 -0
- package/dist/sdk/models/operations/getcommercelocation.js +103 -0
- package/dist/sdk/models/operations/getcommerceorder.d.ts +24 -0
- package/dist/sdk/models/operations/getcommerceorder.js +103 -0
- package/dist/sdk/models/operations/getcommerceordersreport.d.ts +40 -0
- package/dist/sdk/models/operations/getcommerceordersreport.js +119 -0
- package/dist/sdk/models/operations/getcommercepayment.d.ts +24 -0
- package/dist/sdk/models/operations/getcommercepayment.js +103 -0
- package/dist/sdk/models/operations/getcommercepaymentmethod.d.ts +24 -0
- package/dist/sdk/models/operations/getcommercepaymentmethod.js +103 -0
- package/dist/sdk/models/operations/getcommerceproduct.d.ts +24 -0
- package/dist/sdk/models/operations/getcommerceproduct.js +103 -0
- package/dist/sdk/models/operations/getcommerceproductcategory.d.ts +24 -0
- package/dist/sdk/models/operations/getcommerceproductcategory.js +103 -0
- package/dist/sdk/models/operations/getcommercerefundsmetrics.d.ts +40 -0
- package/dist/sdk/models/operations/getcommercerefundsmetrics.js +119 -0
- package/dist/sdk/models/operations/getcommercerevenuemetrics.d.ts +40 -0
- package/dist/sdk/models/operations/getcommercerevenuemetrics.js +119 -0
- package/dist/sdk/models/operations/getcommercetransaction.d.ts +24 -0
- package/dist/sdk/models/operations/getcommercetransaction.js +103 -0
- package/dist/sdk/models/operations/getcompany.d.ts +19 -0
- package/dist/sdk/models/operations/getcompany.js +95 -0
- package/dist/sdk/models/operations/getconnection.d.ts +20 -0
- package/dist/sdk/models/operations/getconnection.js +99 -0
- package/dist/sdk/models/operations/getdataintegritystatus.d.ts +23 -0
- package/dist/sdk/models/operations/getdataintegritystatus.js +99 -0
- package/dist/sdk/models/operations/getdataintegritysummaries.d.ts +27 -0
- package/dist/sdk/models/operations/getdataintegritysummaries.js +103 -0
- package/dist/sdk/models/operations/getdatastatus.d.ts +19 -0
- package/dist/sdk/models/operations/getdatastatus.js +95 -0
- package/dist/sdk/models/operations/getenhancedbalancesheetaccounts.d.ts +27 -0
- package/dist/sdk/models/operations/getenhancedbalancesheetaccounts.js +103 -0
- package/dist/sdk/models/operations/getenhancedcashflowtransactions.d.ts +31 -0
- package/dist/sdk/models/operations/getenhancedcashflowtransactions.js +107 -0
- package/dist/sdk/models/operations/getenhancedinvoicesreport.d.ts +31 -0
- package/dist/sdk/models/operations/getenhancedinvoicesreport.js +107 -0
- package/dist/sdk/models/operations/getenhancedprofitandlossaccounts.d.ts +27 -0
- package/dist/sdk/models/operations/getenhancedprofitandlossaccounts.js +103 -0
- package/dist/sdk/models/operations/getexcelreportgenerationstatus.d.ts +23 -0
- package/dist/sdk/models/operations/getexcelreportgenerationstatus.js +99 -0
- package/dist/sdk/models/operations/getloansummary.d.ts +19 -0
- package/dist/sdk/models/operations/getloansummary.js +95 -0
- package/dist/sdk/models/operations/getpulloperation.d.ts +23 -0
- package/dist/sdk/models/operations/getpulloperation.js +99 -0
- package/dist/sdk/models/operations/index.d.ts +121 -0
- package/dist/sdk/models/operations/index.js +140 -0
- package/dist/sdk/models/operations/isagedcreditorsreportavailable.d.ts +14 -0
- package/dist/sdk/models/operations/isagedcreditorsreportavailable.js +67 -0
- package/dist/sdk/models/operations/isageddebtorreportavailable.d.ts +14 -0
- package/dist/sdk/models/operations/isageddebtorreportavailable.js +67 -0
- package/dist/sdk/models/operations/listaccountingaccounts.d.ts +35 -0
- package/dist/sdk/models/operations/listaccountingaccounts.js +111 -0
- package/dist/sdk/models/operations/listaccountingaccounttransactions.d.ts +36 -0
- package/dist/sdk/models/operations/listaccountingaccounttransactions.js +115 -0
- package/dist/sdk/models/operations/listaccountingbankaccounts.d.ts +36 -0
- package/dist/sdk/models/operations/listaccountingbankaccounts.js +115 -0
- package/dist/sdk/models/operations/listaccountingbankaccounttransactions.d.ts +40 -0
- package/dist/sdk/models/operations/listaccountingbankaccounttransactions.js +119 -0
- package/dist/sdk/models/operations/listaccountingbillattachments.d.ts +24 -0
- package/dist/sdk/models/operations/listaccountingbillattachments.js +103 -0
- package/dist/sdk/models/operations/listaccountingbillcreditnotes.d.ts +35 -0
- package/dist/sdk/models/operations/listaccountingbillcreditnotes.js +111 -0
- package/dist/sdk/models/operations/listaccountingbillpayments.d.ts +35 -0
- package/dist/sdk/models/operations/listaccountingbillpayments.js +111 -0
- package/dist/sdk/models/operations/listaccountingbills.d.ts +35 -0
- package/dist/sdk/models/operations/listaccountingbills.js +111 -0
- package/dist/sdk/models/operations/listaccountingcreditnotes.d.ts +35 -0
- package/dist/sdk/models/operations/listaccountingcreditnotes.js +111 -0
- package/dist/sdk/models/operations/listaccountingcustomerattachments.d.ts +21 -0
- package/dist/sdk/models/operations/listaccountingcustomerattachments.js +103 -0
- package/dist/sdk/models/operations/listaccountingcustomers.d.ts +35 -0
- package/dist/sdk/models/operations/listaccountingcustomers.js +111 -0
- package/dist/sdk/models/operations/listaccountingdirectcostattachments.d.ts +24 -0
- package/dist/sdk/models/operations/listaccountingdirectcostattachments.js +103 -0
- package/dist/sdk/models/operations/listaccountingdirectcosts.d.ts +36 -0
- package/dist/sdk/models/operations/listaccountingdirectcosts.js +115 -0
- package/dist/sdk/models/operations/listaccountingdirectincomeattachments.d.ts +24 -0
- package/dist/sdk/models/operations/listaccountingdirectincomeattachments.js +103 -0
- package/dist/sdk/models/operations/listaccountingdirectincomes.d.ts +36 -0
- package/dist/sdk/models/operations/listaccountingdirectincomes.js +115 -0
- package/dist/sdk/models/operations/listaccountinginvoiceattachments.d.ts +24 -0
- package/dist/sdk/models/operations/listaccountinginvoiceattachments.js +103 -0
- package/dist/sdk/models/operations/listaccountinginvoices.d.ts +35 -0
- package/dist/sdk/models/operations/listaccountinginvoices.js +111 -0
- package/dist/sdk/models/operations/listaccountingjournalentries.d.ts +35 -0
- package/dist/sdk/models/operations/listaccountingjournalentries.js +111 -0
- package/dist/sdk/models/operations/listaccountingjournals.d.ts +35 -0
- package/dist/sdk/models/operations/listaccountingjournals.js +111 -0
- package/dist/sdk/models/operations/listaccountingpayments.d.ts +35 -0
- package/dist/sdk/models/operations/listaccountingpayments.js +111 -0
- package/dist/sdk/models/operations/listaccountingsupplierattachments.d.ts +24 -0
- package/dist/sdk/models/operations/listaccountingsupplierattachments.js +103 -0
- package/dist/sdk/models/operations/listaccountingsuppliers.d.ts +35 -0
- package/dist/sdk/models/operations/listaccountingsuppliers.js +111 -0
- package/dist/sdk/models/operations/listaccountingtransfers.d.ts +36 -0
- package/dist/sdk/models/operations/listaccountingtransfers.js +115 -0
- package/dist/sdk/models/operations/listbankingaccountbalances.d.ts +36 -0
- package/dist/sdk/models/operations/listbankingaccountbalances.js +115 -0
- package/dist/sdk/models/operations/listbankingaccounts.d.ts +36 -0
- package/dist/sdk/models/operations/listbankingaccounts.js +115 -0
- package/dist/sdk/models/operations/listbankingtransactioncategories.d.ts +36 -0
- package/dist/sdk/models/operations/listbankingtransactioncategories.js +115 -0
- package/dist/sdk/models/operations/listbankingtransactions.d.ts +36 -0
- package/dist/sdk/models/operations/listbankingtransactions.js +115 -0
- package/dist/sdk/models/operations/listcommercecustomers.d.ts +36 -0
- package/dist/sdk/models/operations/listcommercecustomers.js +115 -0
- package/dist/sdk/models/operations/listcommercedisputes.d.ts +36 -0
- package/dist/sdk/models/operations/listcommercedisputes.js +115 -0
- package/dist/sdk/models/operations/listcommercelocations.d.ts +20 -0
- package/dist/sdk/models/operations/listcommercelocations.js +99 -0
- package/dist/sdk/models/operations/listcommerceorders.d.ts +36 -0
- package/dist/sdk/models/operations/listcommerceorders.js +115 -0
- package/dist/sdk/models/operations/listcommercepaymentmethods.d.ts +36 -0
- package/dist/sdk/models/operations/listcommercepaymentmethods.js +115 -0
- package/dist/sdk/models/operations/listcommercepayments.d.ts +36 -0
- package/dist/sdk/models/operations/listcommercepayments.js +115 -0
- package/dist/sdk/models/operations/listcommerceproductcategories.d.ts +36 -0
- package/dist/sdk/models/operations/listcommerceproductcategories.js +115 -0
- package/dist/sdk/models/operations/listcommerceproducts.d.ts +36 -0
- package/dist/sdk/models/operations/listcommerceproducts.js +115 -0
- package/dist/sdk/models/operations/listcommercetransactions.d.ts +36 -0
- package/dist/sdk/models/operations/listcommercetransactions.js +115 -0
- package/dist/sdk/models/operations/listcompanies.d.ts +34 -0
- package/dist/sdk/models/operations/listcompanies.js +107 -0
- package/dist/sdk/models/operations/listconnections.d.ts +35 -0
- package/dist/sdk/models/operations/listconnections.js +111 -0
- package/dist/sdk/models/operations/listdataintegritydetails.d.ts +39 -0
- package/dist/sdk/models/operations/listdataintegritydetails.js +115 -0
- package/dist/sdk/models/operations/listfiles.d.ts +19 -0
- package/dist/sdk/models/operations/listfiles.js +95 -0
- package/dist/sdk/models/operations/listloantransactions.d.ts +31 -0
- package/dist/sdk/models/operations/listloantransactions.js +108 -0
- package/dist/sdk/models/operations/listpulloperations.d.ts +35 -0
- package/dist/sdk/models/operations/listpulloperations.js +111 -0
- package/dist/sdk/models/operations/refreshalldatatypes.d.ts +15 -0
- package/dist/sdk/models/operations/refreshalldatatypes.js +91 -0
- package/dist/sdk/models/operations/refreshdatatype.d.ts +27 -0
- package/dist/sdk/models/operations/refreshdatatype.js +103 -0
- package/dist/sdk/models/operations/unlinkconnection.d.ts +24 -0
- package/dist/sdk/models/operations/unlinkconnection.js +117 -0
- package/dist/sdk/models/operations/updatecompany.d.ts +20 -0
- package/dist/sdk/models/operations/updatecompany.js +99 -0
- package/dist/sdk/models/operations/uploadfiles.d.ts +21 -0
- package/dist/sdk/models/operations/uploadfiles.js +117 -0
- package/dist/sdk/models/shared/accountbalance.d.ts +19 -0
- package/dist/sdk/models/shared/accountbalance.js +60 -0
- package/dist/sdk/models/shared/accountbalanceamounts.d.ts +18 -0
- package/dist/sdk/models/shared/accountbalanceamounts.js +58 -0
- package/dist/sdk/models/shared/accountcategorylevel.d.ts +14 -0
- package/dist/sdk/models/shared/accountcategorylevel.js +53 -0
- package/dist/sdk/models/shared/accountidentifiers.d.ts +42 -0
- package/dist/sdk/models/shared/accountidentifiers.js +79 -0
- package/dist/sdk/models/shared/accountidentifiertype.d.ts +12 -0
- package/dist/sdk/models/shared/accountidentifiertype.js +19 -0
- package/dist/sdk/models/shared/accountingaccount.d.ts +160 -0
- package/dist/sdk/models/shared/accountingaccount.js +214 -0
- package/dist/sdk/models/shared/accountingaccounts.d.ts +13 -0
- package/dist/sdk/models/shared/accountingaccounts.js +72 -0
- package/dist/sdk/models/shared/accountingaccounttransaction.d.ts +133 -0
- package/dist/sdk/models/shared/accountingaccounttransaction.js +142 -0
- package/dist/sdk/models/shared/accountingaccounttransactions.d.ts +13 -0
- package/dist/sdk/models/shared/accountingaccounttransactions.js +72 -0
- package/dist/sdk/models/shared/accountingaddress.d.ts +32 -0
- package/dist/sdk/models/shared/accountingaddress.js +76 -0
- package/dist/sdk/models/shared/accountingaddresstype.d.ts +8 -0
- package/dist/sdk/models/shared/accountingaddresstype.js +15 -0
- package/dist/sdk/models/shared/accountingagedcreditorreport.d.ts +92 -0
- package/dist/sdk/models/shared/accountingagedcreditorreport.js +93 -0
- package/dist/sdk/models/shared/accountingageddebtorreport.d.ts +92 -0
- package/dist/sdk/models/shared/accountingageddebtorreport.js +93 -0
- package/dist/sdk/models/shared/accountingattachment.d.ts +75 -0
- package/dist/sdk/models/shared/accountingattachment.js +102 -0
- package/dist/sdk/models/shared/accountingbalancesheet.d.ts +90 -0
- package/dist/sdk/models/shared/accountingbalancesheet.js +84 -0
- package/dist/sdk/models/shared/accountingbankaccount.d.ts +105 -0
- package/dist/sdk/models/shared/accountingbankaccount.js +138 -0
- package/dist/sdk/models/shared/accountingbankaccounts.d.ts +13 -0
- package/dist/sdk/models/shared/accountingbankaccounts.js +72 -0
- package/dist/sdk/models/shared/accountingbankaccounttype.d.ts +12 -0
- package/dist/sdk/models/shared/accountingbankaccounttype.js +19 -0
- package/dist/sdk/models/shared/accountingbanktransaction.d.ts +60 -0
- package/dist/sdk/models/shared/accountingbanktransaction.js +111 -0
- package/dist/sdk/models/shared/accountingbanktransactions.d.ts +13 -0
- package/dist/sdk/models/shared/accountingbanktransactions.js +72 -0
- package/dist/sdk/models/shared/accountingbill.d.ts +147 -0
- package/dist/sdk/models/shared/accountingbill.js +217 -0
- package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +184 -0
- package/dist/sdk/models/shared/accountingbillcreditnote.js +183 -0
- package/dist/sdk/models/shared/accountingbillcreditnotes.d.ts +13 -0
- package/dist/sdk/models/shared/accountingbillcreditnotes.js +72 -0
- package/dist/sdk/models/shared/accountingbillpayment.d.ts +232 -0
- package/dist/sdk/models/shared/accountingbillpayment.js +280 -0
- package/dist/sdk/models/shared/accountingbillpayments.d.ts +13 -0
- package/dist/sdk/models/shared/accountingbillpayments.js +72 -0
- package/dist/sdk/models/shared/accountingbills.d.ts +13 -0
- package/dist/sdk/models/shared/accountingbills.js +72 -0
- package/dist/sdk/models/shared/accountingcashflowstatement.d.ts +95 -0
- package/dist/sdk/models/shared/accountingcashflowstatement.js +91 -0
- package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +163 -0
- package/dist/sdk/models/shared/accountingcompanyinfo.js +169 -0
- package/dist/sdk/models/shared/accountingcreditnote.d.ts +173 -0
- package/dist/sdk/models/shared/accountingcreditnote.js +189 -0
- package/dist/sdk/models/shared/accountingcreditnotes.d.ts +13 -0
- package/dist/sdk/models/shared/accountingcreditnotes.js +72 -0
- package/dist/sdk/models/shared/accountingcustomer.d.ts +83 -0
- package/dist/sdk/models/shared/accountingcustomer.js +136 -0
- package/dist/sdk/models/shared/accountingcustomerref.d.ts +11 -0
- package/dist/sdk/models/shared/accountingcustomerref.js +50 -0
- package/dist/sdk/models/shared/accountingcustomers.d.ts +13 -0
- package/dist/sdk/models/shared/accountingcustomers.js +72 -0
- package/dist/sdk/models/shared/accountingdirectcost.d.ts +140 -0
- package/dist/sdk/models/shared/accountingdirectcost.js +149 -0
- package/dist/sdk/models/shared/accountingdirectcosts.d.ts +13 -0
- package/dist/sdk/models/shared/accountingdirectcosts.js +72 -0
- package/dist/sdk/models/shared/accountingdirectincome.d.ts +135 -0
- package/dist/sdk/models/shared/accountingdirectincome.js +150 -0
- package/dist/sdk/models/shared/accountingdirectincomes.d.ts +13 -0
- package/dist/sdk/models/shared/accountingdirectincomes.js +72 -0
- package/dist/sdk/models/shared/accountinginvoice.d.ts +236 -0
- package/dist/sdk/models/shared/accountinginvoice.js +235 -0
- package/dist/sdk/models/shared/accountinginvoices.d.ts +13 -0
- package/dist/sdk/models/shared/accountinginvoices.js +72 -0
- package/dist/sdk/models/shared/accountingjournal.d.ts +93 -0
- package/dist/sdk/models/shared/accountingjournal.js +125 -0
- package/dist/sdk/models/shared/accountingjournalentries.d.ts +13 -0
- package/dist/sdk/models/shared/accountingjournalentries.js +72 -0
- package/dist/sdk/models/shared/accountingjournalentry.d.ts +141 -0
- package/dist/sdk/models/shared/accountingjournalentry.js +136 -0
- package/dist/sdk/models/shared/accountingjournals.d.ts +13 -0
- package/dist/sdk/models/shared/accountingjournals.js +72 -0
- package/dist/sdk/models/shared/accountingpayment.d.ts +793 -0
- package/dist/sdk/models/shared/accountingpayment.js +807 -0
- package/dist/sdk/models/shared/accountingpaymentallocation.d.ts +78 -0
- package/dist/sdk/models/shared/accountingpaymentallocation.js +81 -0
- package/dist/sdk/models/shared/accountingpayments.d.ts +13 -0
- package/dist/sdk/models/shared/accountingpayments.js +72 -0
- package/dist/sdk/models/shared/accountingprofitandlossreport.d.ts +91 -0
- package/dist/sdk/models/shared/accountingprofitandlossreport.js +94 -0
- package/dist/sdk/models/shared/accountingsupplier.d.ts +67 -0
- package/dist/sdk/models/shared/accountingsupplier.js +126 -0
- package/dist/sdk/models/shared/accountingsuppliers.d.ts +13 -0
- package/dist/sdk/models/shared/accountingsuppliers.js +72 -0
- package/dist/sdk/models/shared/accountingtransfer.d.ts +79 -0
- package/dist/sdk/models/shared/accountingtransfer.js +140 -0
- package/dist/sdk/models/shared/accountingtransfers.d.ts +13 -0
- package/dist/sdk/models/shared/accountingtransfers.js +72 -0
- package/dist/sdk/models/shared/accountinstitution.d.ts +14 -0
- package/dist/sdk/models/shared/accountinstitution.js +53 -0
- package/dist/sdk/models/shared/accountref.d.ts +14 -0
- package/dist/sdk/models/shared/accountref.js +53 -0
- package/dist/sdk/models/shared/accounts.d.ts +40 -0
- package/dist/sdk/models/shared/accounts.js +77 -0
- package/dist/sdk/models/shared/accountspayabletracking.d.ts +15 -0
- package/dist/sdk/models/shared/accountspayabletracking.js +75 -0
- package/dist/sdk/models/shared/accountsreceivabletracking.d.ts +40 -0
- package/dist/sdk/models/shared/accountsreceivabletracking.js +106 -0
- package/dist/sdk/models/shared/accountstatus.d.ts +9 -0
- package/dist/sdk/models/shared/accountstatus.js +16 -0
- package/dist/sdk/models/shared/accounttransactionline.d.ts +20 -0
- package/dist/sdk/models/shared/accounttransactionline.js +57 -0
- package/dist/sdk/models/shared/accounttype.d.ts +11 -0
- package/dist/sdk/models/shared/accounttype.js +18 -0
- package/dist/sdk/models/shared/agedcreditor.d.ts +16 -0
- package/dist/sdk/models/shared/agedcreditor.js +57 -0
- package/dist/sdk/models/shared/agedcurrencyoutstanding.d.ts +20 -0
- package/dist/sdk/models/shared/agedcurrencyoutstanding.js +52 -0
- package/dist/sdk/models/shared/ageddebtor.d.ts +16 -0
- package/dist/sdk/models/shared/ageddebtor.js +57 -0
- package/dist/sdk/models/shared/agedoutstandingamount.d.ts +60 -0
- package/dist/sdk/models/shared/agedoutstandingamount.js +62 -0
- package/dist/sdk/models/shared/agedoutstandingamountdetail.d.ts +11 -0
- package/dist/sdk/models/shared/agedoutstandingamountdetail.js +50 -0
- package/dist/sdk/models/shared/attachments.d.ts +8 -0
- package/dist/sdk/models/shared/attachments.js +50 -0
- package/dist/sdk/models/shared/balancesheet.d.ts +35 -0
- package/dist/sdk/models/shared/balancesheet.js +69 -0
- package/dist/sdk/models/shared/bankaccountref.d.ts +14 -0
- package/dist/sdk/models/shared/bankaccountref.js +53 -0
- package/dist/sdk/models/shared/bankingaccount.d.ts +58 -0
- package/dist/sdk/models/shared/bankingaccount.js +111 -0
- package/dist/sdk/models/shared/bankingaccountbalance.d.ts +51 -0
- package/dist/sdk/models/shared/bankingaccountbalance.js +80 -0
- package/dist/sdk/models/shared/bankingaccountbalances.d.ts +13 -0
- package/dist/sdk/models/shared/bankingaccountbalances.js +72 -0
- package/dist/sdk/models/shared/bankingaccounts.d.ts +13 -0
- package/dist/sdk/models/shared/bankingaccounts.js +72 -0
- package/dist/sdk/models/shared/bankingtransaction.d.ts +96 -0
- package/dist/sdk/models/shared/bankingtransaction.js +112 -0
- package/dist/sdk/models/shared/bankingtransactioncategories.d.ts +13 -0
- package/dist/sdk/models/shared/bankingtransactioncategories.js +72 -0
- package/dist/sdk/models/shared/bankingtransactioncategory.d.ts +26 -0
- package/dist/sdk/models/shared/bankingtransactioncategory.js +79 -0
- package/dist/sdk/models/shared/bankingtransactionref.d.ts +33 -0
- package/dist/sdk/models/shared/bankingtransactionref.js +75 -0
- package/dist/sdk/models/shared/bankingtransactions.d.ts +13 -0
- package/dist/sdk/models/shared/bankingtransactions.js +72 -0
- package/dist/sdk/models/shared/banktransactiontype.d.ts +23 -0
- package/dist/sdk/models/shared/banktransactiontype.js +30 -0
- package/dist/sdk/models/shared/billcreditnotelineitem.d.ts +112 -0
- package/dist/sdk/models/shared/billcreditnotelineitem.js +171 -0
- package/dist/sdk/models/shared/billcreditnotestatus.d.ts +11 -0
- package/dist/sdk/models/shared/billcreditnotestatus.js +18 -0
- package/dist/sdk/models/shared/billedtotype.d.ts +6 -0
- package/dist/sdk/models/shared/billedtotype.js +13 -0
- package/dist/sdk/models/shared/billedtotype1.d.ts +5 -0
- package/dist/sdk/models/shared/billedtotype1.js +12 -0
- package/dist/sdk/models/shared/billlineitem.d.ts +73 -0
- package/dist/sdk/models/shared/billlineitem.js +120 -0
- package/dist/sdk/models/shared/billpaymentline.d.ts +33 -0
- package/dist/sdk/models/shared/billpaymentline.js +57 -0
- package/dist/sdk/models/shared/billpaymentlinelink.d.ts +51 -0
- package/dist/sdk/models/shared/billpaymentlinelink.js +61 -0
- package/dist/sdk/models/shared/billpaymentlinelinktype.d.ts +15 -0
- package/dist/sdk/models/shared/billpaymentlinelinktype.js +22 -0
- package/dist/sdk/models/shared/billstatus.d.ts +11 -0
- package/dist/sdk/models/shared/billstatus.js +18 -0
- package/dist/sdk/models/shared/cashflowstatement.d.ts +54 -0
- package/dist/sdk/models/shared/cashflowstatement.js +63 -0
- package/dist/sdk/models/shared/commerceaddress.d.ts +32 -0
- package/dist/sdk/models/shared/commerceaddress.js +76 -0
- package/dist/sdk/models/shared/commerceaddresstype.d.ts +10 -0
- package/dist/sdk/models/shared/commerceaddresstype.js +17 -0
- package/dist/sdk/models/shared/commercecompanyinfo.d.ts +90 -0
- package/dist/sdk/models/shared/commercecompanyinfo.js +122 -0
- package/dist/sdk/models/shared/commercecustomer.d.ts +62 -0
- package/dist/sdk/models/shared/commercecustomer.js +99 -0
- package/dist/sdk/models/shared/commercecustomerref.d.ts +14 -0
- package/dist/sdk/models/shared/commercecustomerref.js +53 -0
- package/dist/sdk/models/shared/commercecustomers.d.ts +13 -0
- package/dist/sdk/models/shared/commercecustomers.js +72 -0
- package/dist/sdk/models/shared/commercedispute.d.ts +99 -0
- package/dist/sdk/models/shared/commercedispute.js +105 -0
- package/dist/sdk/models/shared/commercedisputes.d.ts +13 -0
- package/dist/sdk/models/shared/commercedisputes.js +72 -0
- package/dist/sdk/models/shared/commercelocation.d.ts +24 -0
- package/dist/sdk/models/shared/commercelocation.js +76 -0
- package/dist/sdk/models/shared/commercelocations.d.ts +13 -0
- package/dist/sdk/models/shared/commercelocations.js +72 -0
- package/dist/sdk/models/shared/commerceorder.d.ts +134 -0
- package/dist/sdk/models/shared/commerceorder.js +174 -0
- package/dist/sdk/models/shared/commerceorders.d.ts +13 -0
- package/dist/sdk/models/shared/commerceorders.js +72 -0
- package/dist/sdk/models/shared/commercepayment.d.ts +94 -0
- package/dist/sdk/models/shared/commercepayment.js +102 -0
- package/dist/sdk/models/shared/commercepaymentmethod.d.ts +25 -0
- package/dist/sdk/models/shared/commercepaymentmethod.js +73 -0
- package/dist/sdk/models/shared/commercepaymentmethods.d.ts +13 -0
- package/dist/sdk/models/shared/commercepaymentmethods.js +72 -0
- package/dist/sdk/models/shared/commercepayments.d.ts +13 -0
- package/dist/sdk/models/shared/commercepayments.js +72 -0
- package/dist/sdk/models/shared/commerceproduct.d.ts +37 -0
- package/dist/sdk/models/shared/commerceproduct.js +80 -0
- package/dist/sdk/models/shared/commerceproductcategories.d.ts +13 -0
- package/dist/sdk/models/shared/commerceproductcategories.js +72 -0
- package/dist/sdk/models/shared/commerceproductcategory.d.ts +29 -0
- package/dist/sdk/models/shared/commerceproductcategory.js +79 -0
- package/dist/sdk/models/shared/commerceproducts.d.ts +13 -0
- package/dist/sdk/models/shared/commerceproducts.js +72 -0
- package/dist/sdk/models/shared/commercerecordref.d.ts +11 -0
- package/dist/sdk/models/shared/commercerecordref.js +50 -0
- package/dist/sdk/models/shared/commercereport.d.ts +57 -0
- package/dist/sdk/models/shared/commercereport.js +118 -0
- package/dist/sdk/models/shared/commercereportcomponent.d.ts +10 -0
- package/dist/sdk/models/shared/commercereportcomponent.js +73 -0
- package/dist/sdk/models/shared/commercereportdimension.d.ts +10 -0
- package/dist/sdk/models/shared/commercereportdimension.js +74 -0
- package/dist/sdk/models/shared/commercereporterror.d.ts +6 -0
- package/dist/sdk/models/shared/commercereporterror.js +55 -0
- package/dist/sdk/models/shared/commercereportmeasure.d.ts +7 -0
- package/dist/sdk/models/shared/commercereportmeasure.js +60 -0
- package/dist/sdk/models/shared/commercetransaction.d.ts +111 -0
- package/dist/sdk/models/shared/commercetransaction.js +107 -0
- package/dist/sdk/models/shared/commercetransactions.d.ts +13 -0
- package/dist/sdk/models/shared/commercetransactions.js +72 -0
- package/dist/sdk/models/shared/companies.d.ts +13 -0
- package/dist/sdk/models/shared/companies.js +72 -0
- package/dist/sdk/models/shared/company.d.ts +83 -0
- package/dist/sdk/models/shared/company.js +96 -0
- package/dist/sdk/models/shared/companyrequestbody.d.ts +11 -0
- package/dist/sdk/models/shared/companyrequestbody.js +50 -0
- package/dist/sdk/models/shared/connection.d.ts +106 -0
- package/dist/sdk/models/shared/connection.js +133 -0
- package/dist/sdk/models/shared/connections.d.ts +13 -0
- package/dist/sdk/models/shared/connections.js +72 -0
- package/dist/sdk/models/shared/contact.d.ts +47 -0
- package/dist/sdk/models/shared/contact.js +75 -0
- package/dist/sdk/models/shared/contactref.d.ts +8 -0
- package/dist/sdk/models/shared/contactref.js +53 -0
- package/dist/sdk/models/shared/creditnotelineitem.d.ts +74 -0
- package/dist/sdk/models/shared/creditnotelineitem.js +120 -0
- package/dist/sdk/models/shared/creditnotestatus.d.ts +8 -0
- package/dist/sdk/models/shared/creditnotestatus.js +15 -0
- package/dist/sdk/models/shared/customerstatus.d.ts +8 -0
- package/dist/sdk/models/shared/customerstatus.js +15 -0
- package/dist/sdk/models/shared/dataconnectionerror.d.ts +30 -0
- package/dist/sdk/models/shared/dataconnectionerror.js +60 -0
- package/dist/sdk/models/shared/dataconnectionstatus.d.ts +9 -0
- package/dist/sdk/models/shared/dataconnectionstatus.js +16 -0
- package/dist/sdk/models/shared/dataintegrityamounts.d.ts +26 -0
- package/dist/sdk/models/shared/dataintegrityamounts.js +58 -0
- package/dist/sdk/models/shared/dataintegritybyamount.d.ts +31 -0
- package/dist/sdk/models/shared/dataintegritybyamount.js +65 -0
- package/dist/sdk/models/shared/dataintegritybycount.d.ts +19 -0
- package/dist/sdk/models/shared/dataintegritybycount.js +60 -0
- package/dist/sdk/models/shared/dataintegrityconnectionid.d.ts +11 -0
- package/dist/sdk/models/shared/dataintegrityconnectionid.js +50 -0
- package/dist/sdk/models/shared/dataintegritydatatype.d.ts +9 -0
- package/dist/sdk/models/shared/dataintegritydatatype.js +16 -0
- package/dist/sdk/models/shared/dataintegritydates.d.ts +102 -0
- package/dist/sdk/models/shared/dataintegritydates.js +63 -0
- package/dist/sdk/models/shared/dataintegritydetail.d.ts +61 -0
- package/dist/sdk/models/shared/dataintegritydetail.js +82 -0
- package/dist/sdk/models/shared/dataintegritydetails.d.ts +13 -0
- package/dist/sdk/models/shared/dataintegritydetails.js +72 -0
- package/dist/sdk/models/shared/dataintegritymatch.d.ts +39 -0
- package/dist/sdk/models/shared/dataintegritymatch.js +75 -0
- package/dist/sdk/models/shared/dataintegritystatus.d.ts +21 -0
- package/dist/sdk/models/shared/dataintegritystatus.js +73 -0
- package/dist/sdk/models/shared/dataintegritystatuses.d.ts +8 -0
- package/dist/sdk/models/shared/dataintegritystatuses.js +50 -0
- package/dist/sdk/models/shared/dataintegritystatusinfo.d.ts +36 -0
- package/dist/sdk/models/shared/dataintegritystatusinfo.js +56 -0
- package/dist/sdk/models/shared/dataintegritysummaries.d.ts +8 -0
- package/dist/sdk/models/shared/dataintegritysummaries.js +50 -0
- package/dist/sdk/models/shared/dataintegritysummary.d.ts +11 -0
- package/dist/sdk/models/shared/dataintegritysummary.js +59 -0
- package/dist/sdk/models/shared/datasource.d.ts +8 -0
- package/dist/sdk/models/shared/datasource.js +47 -0
- package/dist/sdk/models/shared/datastatus.d.ts +34 -0
- package/dist/sdk/models/shared/datastatus.js +68 -0
- package/dist/sdk/models/shared/datatype.d.ts +47 -0
- package/dist/sdk/models/shared/datatype.js +54 -0
- package/dist/sdk/models/shared/definitionsitemref.d.ts +15 -0
- package/dist/sdk/models/shared/definitionsitemref.js +55 -0
- package/dist/sdk/models/shared/directcostlineitem.d.ts +77 -0
- package/dist/sdk/models/shared/directcostlineitem.js +115 -0
- package/dist/sdk/models/shared/directincomelineitem.d.ts +76 -0
- package/dist/sdk/models/shared/directincomelineitem.js +108 -0
- package/dist/sdk/models/shared/disputestatus.d.ts +16 -0
- package/dist/sdk/models/shared/disputestatus.js +23 -0
- package/dist/sdk/models/shared/enhancedcashflowitem.d.ts +8 -0
- package/dist/sdk/models/shared/enhancedcashflowitem.js +47 -0
- package/dist/sdk/models/shared/enhancedcashflowtransaction.d.ts +56 -0
- package/dist/sdk/models/shared/enhancedcashflowtransaction.js +91 -0
- package/dist/sdk/models/shared/enhancedcashflowtransactions.d.ts +21 -0
- package/dist/sdk/models/shared/enhancedcashflowtransactions.js +70 -0
- package/dist/sdk/models/shared/enhancedfinancialreport.d.ts +52 -0
- package/dist/sdk/models/shared/enhancedfinancialreport.js +91 -0
- package/dist/sdk/models/shared/enhancedinvoicereportitem.d.ts +113 -0
- package/dist/sdk/models/shared/enhancedinvoicereportitem.js +110 -0
- package/dist/sdk/models/shared/enhancedinvoicesreport.d.ts +13 -0
- package/dist/sdk/models/shared/enhancedinvoicesreport.js +57 -0
- package/dist/sdk/models/shared/enhancedreportaccountcategory.d.ts +9 -0
- package/dist/sdk/models/shared/enhancedreportaccountcategory.js +52 -0
- package/dist/sdk/models/shared/enhancedreportinfo.d.ts +47 -0
- package/dist/sdk/models/shared/enhancedreportinfo.js +60 -0
- package/dist/sdk/models/shared/errormessage.d.ts +12 -0
- package/dist/sdk/models/shared/errormessage.js +73 -0
- package/dist/sdk/models/shared/excelreporttypes.d.ts +9 -0
- package/dist/sdk/models/shared/excelreporttypes.js +16 -0
- package/dist/sdk/models/shared/excelstatus.d.ts +59 -0
- package/dist/sdk/models/shared/excelstatus.js +84 -0
- package/dist/sdk/models/shared/file.d.ts +30 -0
- package/dist/sdk/models/shared/file.js +60 -0
- package/dist/sdk/models/shared/halref.d.ts +4 -0
- package/dist/sdk/models/shared/halref.js +45 -0
- package/dist/sdk/models/shared/index.d.ts +235 -0
- package/dist/sdk/models/shared/index.js +254 -0
- package/dist/sdk/models/shared/integritystatus.d.ts +9 -0
- package/dist/sdk/models/shared/integritystatus.js +16 -0
- package/dist/sdk/models/shared/invoicelineitem.d.ts +74 -0
- package/dist/sdk/models/shared/invoicelineitem.js +120 -0
- package/dist/sdk/models/shared/invoicestatus.d.ts +19 -0
- package/dist/sdk/models/shared/invoicestatus.js +26 -0
- package/dist/sdk/models/shared/itemref.d.ts +14 -0
- package/dist/sdk/models/shared/itemref.js +53 -0
- package/dist/sdk/models/shared/items.d.ts +12 -0
- package/dist/sdk/models/shared/items.js +51 -0
- package/dist/sdk/models/shared/journalline.d.ts +31 -0
- package/dist/sdk/models/shared/journalline.js +86 -0
- package/dist/sdk/models/shared/journalref.d.ts +14 -0
- package/dist/sdk/models/shared/journalref.js +53 -0
- package/dist/sdk/models/shared/journalstatus.d.ts +8 -0
- package/dist/sdk/models/shared/journalstatus.js +15 -0
- package/dist/sdk/models/shared/lendingcustomerref.d.ts +11 -0
- package/dist/sdk/models/shared/lendingcustomerref.js +50 -0
- package/dist/sdk/models/shared/links.d.ts +8 -0
- package/dist/sdk/models/shared/links.js +65 -0
- package/dist/sdk/models/shared/loanref.d.ts +15 -0
- package/dist/sdk/models/shared/loanref.js +55 -0
- package/dist/sdk/models/shared/loansummary.d.ts +13 -0
- package/dist/sdk/models/shared/loansummary.js +57 -0
- package/dist/sdk/models/shared/loansummaryintegrationtype.d.ts +8 -0
- package/dist/sdk/models/shared/loansummaryintegrationtype.js +15 -0
- package/dist/sdk/models/shared/loansummaryrecordref.d.ts +21 -0
- package/dist/sdk/models/shared/loansummaryrecordref.js +62 -0
- package/dist/sdk/models/shared/loansummaryrecordreftype.d.ts +8 -0
- package/dist/sdk/models/shared/loansummaryrecordreftype.js +15 -0
- package/dist/sdk/models/shared/loansummaryreportinfo.d.ts +35 -0
- package/dist/sdk/models/shared/loansummaryreportinfo.js +55 -0
- package/dist/sdk/models/shared/loansummaryreportitem.d.ts +45 -0
- package/dist/sdk/models/shared/loansummaryreportitem.js +72 -0
- package/dist/sdk/models/shared/loantransactions.d.ts +17 -0
- package/dist/sdk/models/shared/loantransactions.js +62 -0
- package/dist/sdk/models/shared/loantransactionsreportinfo.d.ts +47 -0
- package/dist/sdk/models/shared/loantransactionsreportinfo.js +70 -0
- package/dist/sdk/models/shared/locationref.d.ts +14 -0
- package/dist/sdk/models/shared/locationref.js +53 -0
- package/dist/sdk/models/shared/metadata.d.ts +7 -0
- package/dist/sdk/models/shared/metadata.js +45 -0
- package/dist/sdk/models/shared/orderdiscountallocation.d.ts +11 -0
- package/dist/sdk/models/shared/orderdiscountallocation.js +50 -0
- package/dist/sdk/models/shared/orderlineitem.d.ts +48 -0
- package/dist/sdk/models/shared/orderlineitem.js +98 -0
- package/dist/sdk/models/shared/payment.d.ts +77 -0
- package/dist/sdk/models/shared/payment.js +77 -0
- package/dist/sdk/models/shared/paymentallocationpayment.d.ts +90 -0
- package/dist/sdk/models/shared/paymentallocationpayment.js +82 -0
- package/dist/sdk/models/shared/paymentline.d.ts +33 -0
- package/dist/sdk/models/shared/paymentline.js +57 -0
- package/dist/sdk/models/shared/paymentlinelink.d.ts +62 -0
- package/dist/sdk/models/shared/paymentlinelink.js +61 -0
- package/dist/sdk/models/shared/paymentlinktype.d.ts +27 -0
- package/dist/sdk/models/shared/paymentlinktype.js +34 -0
- package/dist/sdk/models/shared/paymentmethodstatus.d.ts +8 -0
- package/dist/sdk/models/shared/paymentmethodstatus.js +15 -0
- package/dist/sdk/models/shared/paymentref.d.ts +87 -0
- package/dist/sdk/models/shared/paymentref.js +92 -0
- package/dist/sdk/models/shared/paymentstatus.d.ts +11 -0
- package/dist/sdk/models/shared/paymentstatus.js +18 -0
- package/dist/sdk/models/shared/paymenttype.d.ts +17 -0
- package/dist/sdk/models/shared/paymenttype.js +24 -0
- package/dist/sdk/models/shared/periodunit.d.ts +9 -0
- package/dist/sdk/models/shared/periodunit.js +16 -0
- package/dist/sdk/models/shared/phonenumbertype.d.ts +10 -0
- package/dist/sdk/models/shared/phonenumbertype.js +17 -0
- package/dist/sdk/models/shared/productinventory.d.ts +9 -0
- package/dist/sdk/models/shared/productinventory.js +55 -0
- package/dist/sdk/models/shared/productinventorylocation.d.ts +9 -0
- package/dist/sdk/models/shared/productinventorylocation.js +52 -0
- package/dist/sdk/models/shared/productprice.d.ts +16 -0
- package/dist/sdk/models/shared/productprice.js +50 -0
- package/dist/sdk/models/shared/productref.d.ts +14 -0
- package/dist/sdk/models/shared/productref.js +53 -0
- package/dist/sdk/models/shared/productvariant.d.ts +79 -0
- package/dist/sdk/models/shared/productvariant.js +121 -0
- package/dist/sdk/models/shared/productvariantref.d.ts +14 -0
- package/dist/sdk/models/shared/productvariantref.js +53 -0
- package/dist/sdk/models/shared/productvariantstatus.d.ts +5 -0
- package/dist/sdk/models/shared/productvariantstatus.js +12 -0
- package/dist/sdk/models/shared/profitandlossreport.d.ts +73 -0
- package/dist/sdk/models/shared/profitandlossreport.js +101 -0
- package/dist/sdk/models/shared/projectref.d.ts +5 -0
- package/dist/sdk/models/shared/projectref.js +50 -0
- package/dist/sdk/models/shared/pulloperation.d.ts +66 -0
- package/dist/sdk/models/shared/pulloperation.js +117 -0
- package/dist/sdk/models/shared/pulloperations.d.ts +13 -0
- package/dist/sdk/models/shared/pulloperations.js +72 -0
- package/dist/sdk/models/shared/recordref.d.ts +18 -0
- package/dist/sdk/models/shared/recordref.js +57 -0
- package/dist/sdk/models/shared/reportbasis.d.ts +8 -0
- package/dist/sdk/models/shared/reportbasis.js +15 -0
- package/dist/sdk/models/shared/reportcomponentmeasure.d.ts +6 -0
- package/dist/sdk/models/shared/reportcomponentmeasure.js +55 -0
- package/dist/sdk/models/shared/reportinfo.d.ts +30 -0
- package/dist/sdk/models/shared/reportinfo.js +73 -0
- package/dist/sdk/models/shared/reportinput.d.ts +8 -0
- package/dist/sdk/models/shared/reportinput.js +15 -0
- package/dist/sdk/models/shared/reportitems.d.ts +42 -0
- package/dist/sdk/models/shared/reportitems.js +76 -0
- package/dist/sdk/models/shared/reportline.d.ts +19 -0
- package/dist/sdk/models/shared/reportline.js +61 -0
- package/dist/sdk/models/shared/security.d.ts +4 -0
- package/dist/sdk/models/shared/security.js +45 -0
- package/dist/sdk/models/shared/servicecharge.d.ts +33 -0
- package/dist/sdk/models/shared/servicecharge.js +78 -0
- package/dist/sdk/models/shared/servicechargetype.d.ts +9 -0
- package/dist/sdk/models/shared/servicechargetype.js +16 -0
- package/dist/sdk/models/shared/sourceref.d.ts +10 -0
- package/dist/sdk/models/shared/sourceref.js +48 -0
- package/dist/sdk/models/shared/supplementaldata.d.ts +11 -0
- package/dist/sdk/models/shared/supplementaldata.js +52 -0
- package/dist/sdk/models/shared/supplierref.d.ts +14 -0
- package/dist/sdk/models/shared/supplierref.js +53 -0
- package/dist/sdk/models/shared/supplierstatus.d.ts +8 -0
- package/dist/sdk/models/shared/supplierstatus.js +15 -0
- package/dist/sdk/models/shared/taxcomponentallocation.d.ts +12 -0
- package/dist/sdk/models/shared/taxcomponentallocation.js +52 -0
- package/dist/sdk/models/shared/taxcomponentref.d.ts +14 -0
- package/dist/sdk/models/shared/taxcomponentref.js +53 -0
- package/dist/sdk/models/shared/taxrateref.d.ts +29 -0
- package/dist/sdk/models/shared/taxrateref.js +69 -0
- package/dist/sdk/models/shared/tracking.d.ts +13 -0
- package/dist/sdk/models/shared/tracking.js +53 -0
- package/dist/sdk/models/shared/trackingcategoryref.d.ts +10 -0
- package/dist/sdk/models/shared/trackingcategoryref.js +55 -0
- package/dist/sdk/models/shared/transactioncategory.d.ts +11 -0
- package/dist/sdk/models/shared/transactioncategory.js +50 -0
- package/dist/sdk/models/shared/transactioncategoryref.d.ts +14 -0
- package/dist/sdk/models/shared/transactioncategoryref.js +53 -0
- package/dist/sdk/models/shared/transactioncategorystatus.d.ts +5 -0
- package/dist/sdk/models/shared/transactioncategorystatus.js +12 -0
- package/dist/sdk/models/shared/transactioncode.d.ts +20 -0
- package/dist/sdk/models/shared/transactioncode.js +27 -0
- package/dist/sdk/models/shared/transactionsourceref.d.ts +9 -0
- package/dist/sdk/models/shared/transactionsourceref.js +51 -0
- package/dist/sdk/models/shared/transactionsourcetype.d.ts +7 -0
- package/dist/sdk/models/shared/transactionsourcetype.js +14 -0
- package/dist/sdk/models/shared/transactiontype.d.ts +23 -0
- package/dist/sdk/models/shared/transactiontype.js +30 -0
- package/dist/sdk/models/shared/transferaccount.d.ts +24 -0
- package/dist/sdk/models/shared/transferaccount.js +57 -0
- package/dist/sdk/models/shared/weblinksitems.d.ts +22 -0
- package/dist/sdk/models/shared/weblinksitems.js +62 -0
- package/dist/sdk/models/shared/withholdingtaxitems.d.ts +5 -0
- package/dist/sdk/models/shared/withholdingtaxitems.js +50 -0
- package/dist/sdk/sales.d.ts +377 -0
- package/dist/sdk/sales.js +1780 -0
- package/dist/sdk/sdk.d.ts +128 -0
- package/dist/sdk/sdk.js +122 -0
- package/dist/sdk/transactions.d.ts +181 -0
- package/dist/sdk/transactions.js +1012 -0
- package/dist/sdk/types/index.d.ts +1 -0
- package/dist/sdk/types/index.js +20 -0
- package/dist/sdk/types/rfcdate.d.ts +9 -0
- package/dist/sdk/types/rfcdate.js +59 -0
- package/docs/models/operations/createcompanyresponse.md +12 -0
- package/docs/models/operations/createconnectionrequest.md +9 -0
- package/docs/models/operations/createconnectionrequestbody.md +8 -0
- package/docs/models/operations/createconnectionresponse.md +12 -0
- package/docs/models/operations/deletecompanyrequest.md +8 -0
- package/docs/models/operations/deletecompanyresponse.md +11 -0
- package/docs/models/operations/deleteconnectionrequest.md +9 -0
- package/docs/models/operations/deleteconnectionresponse.md +11 -0
- package/docs/models/operations/downloadaccountingbillattachmentrequest.md +11 -0
- package/docs/models/operations/downloadaccountingbillattachmentresponse.md +12 -0
- package/docs/models/operations/downloadaccountingcustomerattachmentrequest.md +11 -0
- package/docs/models/operations/downloadaccountingcustomerattachmentresponse.md +12 -0
- package/docs/models/operations/downloadaccountingdirectcostattachmentrequest.md +11 -0
- package/docs/models/operations/downloadaccountingdirectcostattachmentresponse.md +12 -0
- package/docs/models/operations/downloadaccountingdirectincomeattachmentrequest.md +11 -0
- package/docs/models/operations/downloadaccountingdirectincomeattachmentresponse.md +12 -0
- package/docs/models/operations/downloadaccountinginvoiceattachmentrequest.md +11 -0
- package/docs/models/operations/downloadaccountinginvoiceattachmentresponse.md +12 -0
- package/docs/models/operations/downloadaccountinginvoicepdfrequest.md +9 -0
- package/docs/models/operations/downloadaccountinginvoicepdfresponse.md +11 -0
- package/docs/models/operations/downloadaccountingsupplierattachmentrequest.md +11 -0
- package/docs/models/operations/downloadaccountingsupplierattachmentresponse.md +12 -0
- package/docs/models/operations/downloadexcelreportrequest.md +9 -0
- package/docs/models/operations/downloadexcelreportresponse.md +12 -0
- package/docs/models/operations/downloadfilesrequest.md +9 -0
- package/docs/models/operations/downloadfilesresponse.md +12 -0
- package/docs/models/operations/generateexcelreportrequest.md +9 -0
- package/docs/models/operations/generateexcelreportresponse.md +12 -0
- package/docs/models/operations/getaccountingaccountrequest.md +9 -0
- package/docs/models/operations/getaccountingaccountresponse.md +12 -0
- package/docs/models/operations/getaccountingaccounttransactionrequest.md +10 -0
- package/docs/models/operations/getaccountingaccounttransactionresponse.md +12 -0
- package/docs/models/operations/getaccountingagedcreditorsreportrequest.md +11 -0
- package/docs/models/operations/getaccountingagedcreditorsreportresponse.md +12 -0
- package/docs/models/operations/getaccountingageddebtorsreportrequest.md +11 -0
- package/docs/models/operations/getaccountingageddebtorsreportresponse.md +12 -0
- package/docs/models/operations/getaccountingbalancesheetrequest.md +11 -0
- package/docs/models/operations/getaccountingbalancesheetresponse.md +12 -0
- package/docs/models/operations/getaccountingbankaccountrequest.md +10 -0
- package/docs/models/operations/getaccountingbankaccountresponse.md +12 -0
- package/docs/models/operations/getaccountingbillattachmentrequest.md +11 -0
- package/docs/models/operations/getaccountingbillattachmentresponse.md +12 -0
- package/docs/models/operations/getaccountingbillcreditnoterequest.md +9 -0
- package/docs/models/operations/getaccountingbillcreditnoteresponse.md +12 -0
- package/docs/models/operations/getaccountingbillpaymentrequest.md +9 -0
- package/docs/models/operations/getaccountingbillpaymentresponse.md +12 -0
- package/docs/models/operations/getaccountingbillrequest.md +9 -0
- package/docs/models/operations/getaccountingbillresponse.md +12 -0
- package/docs/models/operations/getaccountingcashflowstatementrequest.md +11 -0
- package/docs/models/operations/getaccountingcashflowstatementresponse.md +12 -0
- package/docs/models/operations/getaccountingcompanyinforequest.md +8 -0
- package/docs/models/operations/getaccountingcompanyinforesponse.md +12 -0
- package/docs/models/operations/getaccountingcreditnoterequest.md +9 -0
- package/docs/models/operations/getaccountingcreditnoteresponse.md +12 -0
- package/docs/models/operations/getaccountingcustomerattachmentrequest.md +11 -0
- package/docs/models/operations/getaccountingcustomerattachmentresponse.md +12 -0
- package/docs/models/operations/getaccountingcustomerrequest.md +9 -0
- package/docs/models/operations/getaccountingcustomerresponse.md +12 -0
- package/docs/models/operations/getaccountingdirectcostattachmentrequest.md +11 -0
- package/docs/models/operations/getaccountingdirectcostattachmentresponse.md +12 -0
- package/docs/models/operations/getaccountingdirectcostrequest.md +10 -0
- package/docs/models/operations/getaccountingdirectcostresponse.md +12 -0
- package/docs/models/operations/getaccountingdirectincomeattachmentrequest.md +12 -0
- package/docs/models/operations/getaccountingdirectincomeattachmentresponse.md +12 -0
- package/docs/models/operations/getaccountingdirectincomerequest.md +10 -0
- package/docs/models/operations/getaccountingdirectincomeresponse.md +12 -0
- package/docs/models/operations/getaccountinginvoiceattachmentrequest.md +11 -0
- package/docs/models/operations/getaccountinginvoiceattachmentresponse.md +12 -0
- package/docs/models/operations/getaccountinginvoicerequest.md +9 -0
- package/docs/models/operations/getaccountinginvoiceresponse.md +12 -0
- package/docs/models/operations/getaccountingjournalentryrequest.md +9 -0
- package/docs/models/operations/getaccountingjournalentryresponse.md +12 -0
- package/docs/models/operations/getaccountingjournalrequest.md +9 -0
- package/docs/models/operations/getaccountingjournalresponse.md +12 -0
- package/docs/models/operations/getaccountingpaymentrequest.md +9 -0
- package/docs/models/operations/getaccountingpaymentresponse.md +12 -0
- package/docs/models/operations/getaccountingprofitandlossrequest.md +11 -0
- package/docs/models/operations/getaccountingprofitandlossresponse.md +12 -0
- package/docs/models/operations/getaccountingsupplierattachmentrequest.md +11 -0
- package/docs/models/operations/getaccountingsupplierattachmentresponse.md +12 -0
- package/docs/models/operations/getaccountingsupplierrequest.md +9 -0
- package/docs/models/operations/getaccountingsupplierresponse.md +12 -0
- package/docs/models/operations/getaccountingtransferrequest.md +10 -0
- package/docs/models/operations/getaccountingtransferresponse.md +12 -0
- package/docs/models/operations/getbankingaccountrequest.md +10 -0
- package/docs/models/operations/getbankingaccountresponse.md +11 -0
- package/docs/models/operations/getbankingtransactioncategoryrequest.md +10 -0
- package/docs/models/operations/getbankingtransactioncategoryresponse.md +11 -0
- package/docs/models/operations/getbankingtransactionrequest.md +10 -0
- package/docs/models/operations/getbankingtransactionresponse.md +11 -0
- package/docs/models/operations/getcommercecompanyinforequest.md +9 -0
- package/docs/models/operations/getcommercecompanyinforesponse.md +12 -0
- package/docs/models/operations/getcommercecustomerrequest.md +10 -0
- package/docs/models/operations/getcommercecustomerresponse.md +12 -0
- package/docs/models/operations/getcommercecustomerretentionmetricsrequest.md +14 -0
- package/docs/models/operations/getcommercecustomerretentionmetricsresponse.md +12 -0
- package/docs/models/operations/getcommercedisputerequest.md +10 -0
- package/docs/models/operations/getcommercedisputeresponse.md +12 -0
- package/docs/models/operations/getcommercelifetimevaluemetricsrequest.md +14 -0
- package/docs/models/operations/getcommercelifetimevaluemetricsresponse.md +12 -0
- package/docs/models/operations/getcommercelocationrequest.md +10 -0
- package/docs/models/operations/getcommercelocationresponse.md +12 -0
- package/docs/models/operations/getcommerceorderrequest.md +10 -0
- package/docs/models/operations/getcommerceorderresponse.md +12 -0
- package/docs/models/operations/getcommerceordersreportrequest.md +14 -0
- package/docs/models/operations/getcommerceordersreportresponse.md +12 -0
- package/docs/models/operations/getcommercepaymentmethodrequest.md +10 -0
- package/docs/models/operations/getcommercepaymentmethodresponse.md +12 -0
- package/docs/models/operations/getcommercepaymentrequest.md +10 -0
- package/docs/models/operations/getcommercepaymentresponse.md +12 -0
- package/docs/models/operations/getcommerceproductcategoryrequest.md +10 -0
- package/docs/models/operations/getcommerceproductcategoryresponse.md +12 -0
- package/docs/models/operations/getcommerceproductrequest.md +10 -0
- package/docs/models/operations/getcommerceproductresponse.md +12 -0
- package/docs/models/operations/getcommercerefundsmetricsrequest.md +14 -0
- package/docs/models/operations/getcommercerefundsmetricsresponse.md +12 -0
- package/docs/models/operations/getcommercerevenuemetricsrequest.md +14 -0
- package/docs/models/operations/getcommercerevenuemetricsresponse.md +12 -0
- package/docs/models/operations/getcommercetransactionrequest.md +10 -0
- package/docs/models/operations/getcommercetransactionresponse.md +12 -0
- package/docs/models/operations/getcompanyrequest.md +8 -0
- package/docs/models/operations/getcompanyresponse.md +12 -0
- package/docs/models/operations/getconnectionrequest.md +9 -0
- package/docs/models/operations/getconnectionresponse.md +12 -0
- package/docs/models/operations/getdataintegritystatusrequest.md +9 -0
- package/docs/models/operations/getdataintegritystatusresponse.md +12 -0
- package/docs/models/operations/getdataintegritysummariesrequest.md +10 -0
- package/docs/models/operations/getdataintegritysummariesresponse.md +12 -0
- package/docs/models/operations/getdatastatusrequest.md +8 -0
- package/docs/models/operations/getdatastatusresponse.md +12 -0
- package/docs/models/operations/getenhancedbalancesheetaccountsrequest.md +10 -0
- package/docs/models/operations/getenhancedbalancesheetaccountsresponse.md +12 -0
- package/docs/models/operations/getenhancedcashflowtransactionsrequest.md +11 -0
- package/docs/models/operations/getenhancedcashflowtransactionsresponse.md +12 -0
- package/docs/models/operations/getenhancedinvoicesreportrequest.md +11 -0
- package/docs/models/operations/getenhancedinvoicesreportresponse.md +12 -0
- package/docs/models/operations/getenhancedprofitandlossaccountsrequest.md +10 -0
- package/docs/models/operations/getenhancedprofitandlossaccountsresponse.md +12 -0
- package/docs/models/operations/getexcelreportgenerationstatusrequest.md +9 -0
- package/docs/models/operations/getexcelreportgenerationstatusresponse.md +12 -0
- package/docs/models/operations/getloansummaryrequest.md +8 -0
- package/docs/models/operations/getloansummaryresponse.md +12 -0
- package/docs/models/operations/getpulloperationrequest.md +9 -0
- package/docs/models/operations/getpulloperationresponse.md +12 -0
- package/docs/models/operations/isagedcreditorsreportavailablerequest.md +8 -0
- package/docs/models/operations/isagedcreditorsreportavailableresponse.md +11 -0
- package/docs/models/operations/isageddebtorreportavailablerequest.md +8 -0
- package/docs/models/operations/isageddebtorreportavailableresponse.md +11 -0
- package/docs/models/operations/listaccountingaccountsrequest.md +12 -0
- package/docs/models/operations/listaccountingaccountsresponse.md +12 -0
- package/docs/models/operations/listaccountingaccounttransactionsrequest.md +13 -0
- package/docs/models/operations/listaccountingaccounttransactionsresponse.md +12 -0
- package/docs/models/operations/listaccountingbankaccountsrequest.md +13 -0
- package/docs/models/operations/listaccountingbankaccountsresponse.md +12 -0
- package/docs/models/operations/listaccountingbankaccounttransactionsrequest.md +14 -0
- package/docs/models/operations/listaccountingbankaccounttransactionsresponse.md +12 -0
- package/docs/models/operations/listaccountingbillattachmentsrequest.md +10 -0
- package/docs/models/operations/listaccountingbillattachmentsresponse.md +12 -0
- package/docs/models/operations/listaccountingbillcreditnotesrequest.md +12 -0
- package/docs/models/operations/listaccountingbillcreditnotesresponse.md +12 -0
- package/docs/models/operations/listaccountingbillpaymentsrequest.md +12 -0
- package/docs/models/operations/listaccountingbillpaymentsresponse.md +12 -0
- package/docs/models/operations/listaccountingbillsrequest.md +12 -0
- package/docs/models/operations/listaccountingbillsresponse.md +12 -0
- package/docs/models/operations/listaccountingcreditnotesrequest.md +12 -0
- package/docs/models/operations/listaccountingcreditnotesresponse.md +12 -0
- package/docs/models/operations/listaccountingcustomerattachmentsrequest.md +10 -0
- package/docs/models/operations/listaccountingcustomerattachmentsresponse.md +12 -0
- package/docs/models/operations/listaccountingcustomersrequest.md +12 -0
- package/docs/models/operations/listaccountingcustomersresponse.md +12 -0
- package/docs/models/operations/listaccountingdirectcostattachmentsrequest.md +10 -0
- package/docs/models/operations/listaccountingdirectcostattachmentsresponse.md +12 -0
- package/docs/models/operations/listaccountingdirectcostsrequest.md +13 -0
- package/docs/models/operations/listaccountingdirectcostsresponse.md +12 -0
- package/docs/models/operations/listaccountingdirectincomeattachmentsrequest.md +10 -0
- package/docs/models/operations/listaccountingdirectincomeattachmentsresponse.md +12 -0
- package/docs/models/operations/listaccountingdirectincomesrequest.md +13 -0
- package/docs/models/operations/listaccountingdirectincomesresponse.md +12 -0
- package/docs/models/operations/listaccountinginvoiceattachmentsrequest.md +10 -0
- package/docs/models/operations/listaccountinginvoiceattachmentsresponse.md +12 -0
- package/docs/models/operations/listaccountinginvoicesrequest.md +12 -0
- package/docs/models/operations/listaccountinginvoicesresponse.md +12 -0
- package/docs/models/operations/listaccountingjournalentriesrequest.md +12 -0
- package/docs/models/operations/listaccountingjournalentriesresponse.md +12 -0
- package/docs/models/operations/listaccountingjournalsrequest.md +12 -0
- package/docs/models/operations/listaccountingjournalsresponse.md +12 -0
- package/docs/models/operations/listaccountingpaymentsrequest.md +12 -0
- package/docs/models/operations/listaccountingpaymentsresponse.md +12 -0
- package/docs/models/operations/listaccountingsupplierattachmentsrequest.md +10 -0
- package/docs/models/operations/listaccountingsupplierattachmentsresponse.md +12 -0
- package/docs/models/operations/listaccountingsuppliersrequest.md +12 -0
- package/docs/models/operations/listaccountingsuppliersresponse.md +12 -0
- package/docs/models/operations/listaccountingtransfersrequest.md +13 -0
- package/docs/models/operations/listaccountingtransfersresponse.md +12 -0
- package/docs/models/operations/listbankingaccountbalancesrequest.md +13 -0
- package/docs/models/operations/listbankingaccountbalancesresponse.md +12 -0
- package/docs/models/operations/listbankingaccountsrequest.md +13 -0
- package/docs/models/operations/listbankingaccountsresponse.md +12 -0
- package/docs/models/operations/listbankingtransactioncategoriesrequest.md +13 -0
- package/docs/models/operations/listbankingtransactioncategoriesresponse.md +12 -0
- package/docs/models/operations/listbankingtransactionsrequest.md +13 -0
- package/docs/models/operations/listbankingtransactionsresponse.md +12 -0
- package/docs/models/operations/listcommercecustomersrequest.md +13 -0
- package/docs/models/operations/listcommercecustomersresponse.md +12 -0
- package/docs/models/operations/listcommercedisputesrequest.md +13 -0
- package/docs/models/operations/listcommercedisputesresponse.md +12 -0
- package/docs/models/operations/listcommercelocationsrequest.md +9 -0
- package/docs/models/operations/listcommercelocationsresponse.md +12 -0
- package/docs/models/operations/listcommerceordersrequest.md +13 -0
- package/docs/models/operations/listcommerceordersresponse.md +12 -0
- package/docs/models/operations/listcommercepaymentmethodsrequest.md +13 -0
- package/docs/models/operations/listcommercepaymentmethodsresponse.md +12 -0
- package/docs/models/operations/listcommercepaymentsrequest.md +13 -0
- package/docs/models/operations/listcommercepaymentsresponse.md +12 -0
- package/docs/models/operations/listcommerceproductcategoriesrequest.md +13 -0
- package/docs/models/operations/listcommerceproductcategoriesresponse.md +12 -0
- package/docs/models/operations/listcommerceproductsrequest.md +13 -0
- package/docs/models/operations/listcommerceproductsresponse.md +12 -0
- package/docs/models/operations/listcommercetransactionsrequest.md +13 -0
- package/docs/models/operations/listcommercetransactionsresponse.md +12 -0
- package/docs/models/operations/listcompaniesrequest.md +11 -0
- package/docs/models/operations/listcompaniesresponse.md +12 -0
- package/docs/models/operations/listconnectionsrequest.md +12 -0
- package/docs/models/operations/listconnectionsresponse.md +12 -0
- package/docs/models/operations/listdataintegritydetailsrequest.md +13 -0
- package/docs/models/operations/listdataintegritydetailsresponse.md +12 -0
- package/docs/models/operations/listfilesrequest.md +8 -0
- package/docs/models/operations/listfilesresponse.md +12 -0
- package/docs/models/operations/listloantransactionsrequest.md +9 -0
- package/docs/models/operations/listloantransactionsresponse.md +12 -0
- package/docs/models/operations/listloantransactionssourcetype.md +12 -0
- package/docs/models/operations/listpulloperationsrequest.md +12 -0
- package/docs/models/operations/listpulloperationsresponse.md +12 -0
- package/docs/models/operations/refreshalldatatypesrequest.md +8 -0
- package/docs/models/operations/refreshalldatatypesresponse.md +11 -0
- package/docs/models/operations/refreshdatatyperequest.md +10 -0
- package/docs/models/operations/refreshdatatyperesponse.md +12 -0
- package/docs/models/operations/unlinkconnectionrequest.md +10 -0
- package/docs/models/operations/unlinkconnectionrequestbody.md +8 -0
- package/docs/models/operations/unlinkconnectionresponse.md +12 -0
- package/docs/models/operations/updatecompanyrequest.md +9 -0
- package/docs/models/operations/updatecompanyresponse.md +12 -0
- package/docs/models/operations/uploadfilesrequest.md +10 -0
- package/docs/models/operations/uploadfilesrequestbody.md +9 -0
- package/docs/models/operations/uploadfilesresponse.md +11 -0
- package/docs/models/shared/accountbalance.md +11 -0
- package/docs/models/shared/accountbalanceamounts.md +12 -0
- package/docs/models/shared/accountcategorylevel.md +11 -0
- package/docs/models/shared/accountidentifiers.md +16 -0
- package/docs/models/shared/accountidentifiertype.md +16 -0
- package/docs/models/shared/accountingaccount.md +51 -0
- package/docs/models/shared/accountingaccounts.md +14 -0
- package/docs/models/shared/accountingaccounttransaction.md +38 -0
- package/docs/models/shared/accountingaccounttransactions.md +14 -0
- package/docs/models/shared/accountingaccounttransactionstatus.md +13 -0
- package/docs/models/shared/accountingaccountvaliddatatypelinks.md +50 -0
- package/docs/models/shared/accountingaddress.md +14 -0
- package/docs/models/shared/accountingaddresstype.md +12 -0
- package/docs/models/shared/accountingagedcreditorreport.md +43 -0
- package/docs/models/shared/accountingageddebtorreport.md +43 -0
- package/docs/models/shared/accountingattachment.md +34 -0
- package/docs/models/shared/accountingbalancesheet.md +30 -0
- package/docs/models/shared/accountingbankaccount.md +39 -0
- package/docs/models/shared/accountingbankaccounts.md +14 -0
- package/docs/models/shared/accountingbankaccounttype.md +14 -0
- package/docs/models/shared/accountingbanktransaction.md +34 -0
- package/docs/models/shared/accountingbanktransactions.md +14 -0
- package/docs/models/shared/accountingbill.md +48 -0
- package/docs/models/shared/accountingbillcreditnote.md +46 -0
- package/docs/models/shared/accountingbillcreditnotes.md +14 -0
- package/docs/models/shared/accountingbillpayment.md +174 -0
- package/docs/models/shared/accountingbillpayments.md +14 -0
- package/docs/models/shared/accountingbillpurchaseorderreference.md +9 -0
- package/docs/models/shared/accountingbills.md +14 -0
- package/docs/models/shared/accountingbillwithholdingtax.md +9 -0
- package/docs/models/shared/accountingcashflowstatement.md +27 -0
- package/docs/models/shared/accountingcompanyinfo.md +28 -0
- package/docs/models/shared/accountingcompanyinfophone.md +9 -0
- package/docs/models/shared/accountingcompanyinfoweblink.md +11 -0
- package/docs/models/shared/accountingcompanyinfoweblinktype.md +12 -0
- package/docs/models/shared/accountingcreditnote.md +44 -0
- package/docs/models/shared/accountingcreditnotes.md +14 -0
- package/docs/models/shared/accountingcustomer.md +31 -0
- package/docs/models/shared/accountingcustomerref.md +9 -0
- package/docs/models/shared/accountingcustomers.md +14 -0
- package/docs/models/shared/accountingdirectcost.md +39 -0
- package/docs/models/shared/accountingdirectcosts.md +14 -0
- package/docs/models/shared/accountingdirectincome.md +40 -0
- package/docs/models/shared/accountingdirectincomes.md +14 -0
- package/docs/models/shared/accountinginvoice.md +63 -0
- package/docs/models/shared/accountinginvoices.md +14 -0
- package/docs/models/shared/accountinginvoicesalesorderreference.md +9 -0
- package/docs/models/shared/accountingjournal.md +42 -0
- package/docs/models/shared/accountingjournalentries.md +14 -0
- package/docs/models/shared/accountingjournalentry.md +42 -0
- package/docs/models/shared/accountingjournals.md +14 -0
- package/docs/models/shared/accountingpayment.md +701 -0
- package/docs/models/shared/accountingpaymentallocation.md +9 -0
- package/docs/models/shared/accountingpaymentallocationallocation.md +11 -0
- package/docs/models/shared/accountingpayments.md +14 -0
- package/docs/models/shared/accountingprofitandlossreport.md +35 -0
- package/docs/models/shared/accountingsupplier.md +27 -0
- package/docs/models/shared/accountingsuppliers.md +14 -0
- package/docs/models/shared/accountingtransfer.md +23 -0
- package/docs/models/shared/accountingtransfercontactref.md +11 -0
- package/docs/models/shared/accountingtransfers.md +14 -0
- package/docs/models/shared/accountinstitution.md +11 -0
- package/docs/models/shared/accountref.md +11 -0
- package/docs/models/shared/accounts.md +14 -0
- package/docs/models/shared/accountspayabletracking.md +14 -0
- package/docs/models/shared/accountsreceivabletracking.md +15 -0
- package/docs/models/shared/accountsreceivabletrackingrecordreference.md +13 -0
- package/docs/models/shared/accountstatus.md +13 -0
- package/docs/models/shared/accounttransactionline.md +10 -0
- package/docs/models/shared/accounttype.md +15 -0
- package/docs/models/shared/agedcreditor.md +10 -0
- package/docs/models/shared/agedcurrencyoutstanding.md +9 -0
- package/docs/models/shared/ageddebtor.md +10 -0
- package/docs/models/shared/agedoutstandingamount.md +11 -0
- package/docs/models/shared/agedoutstandingamountdetail.md +9 -0
- package/docs/models/shared/attachments.md +10 -0
- package/docs/models/shared/balancesheet.md +12 -0
- package/docs/models/shared/bankaccountref.md +11 -0
- package/docs/models/shared/bankingaccount.md +24 -0
- package/docs/models/shared/bankingaccountbalance.md +22 -0
- package/docs/models/shared/bankingaccountbalances.md +14 -0
- package/docs/models/shared/bankingaccounts.md +14 -0
- package/docs/models/shared/bankingtransaction.md +25 -0
- package/docs/models/shared/bankingtransactioncategories.md +14 -0
- package/docs/models/shared/bankingtransactioncategory.md +16 -0
- package/docs/models/shared/bankingtransactionref.md +14 -0
- package/docs/models/shared/bankingtransactions.md +14 -0
- package/docs/models/shared/banktransactiontype.md +27 -0
- package/docs/models/shared/billcreditnotelineitem.md +20 -0
- package/docs/models/shared/billcreditnotelineitemitemreference.md +11 -0
- package/docs/models/shared/billcreditnotelineitemtaxratereference.md +21 -0
- package/docs/models/shared/billcreditnotestatus.md +15 -0
- package/docs/models/shared/billedtotype.md +11 -0
- package/docs/models/shared/billedtotype1.md +10 -0
- package/docs/models/shared/billlineitem.md +21 -0
- package/docs/models/shared/billpaymentline.md +10 -0
- package/docs/models/shared/billpaymentlinelink.md +11 -0
- package/docs/models/shared/billpaymentlinelinktype.md +19 -0
- package/docs/models/shared/billstatus.md +15 -0
- package/docs/models/shared/cashflowstatement.md +11 -0
- package/docs/models/shared/commerceaddress.md +14 -0
- package/docs/models/shared/commerceaddresstype.md +14 -0
- package/docs/models/shared/commercecompanyinfo.md +26 -0
- package/docs/models/shared/commercecustomer.md +21 -0
- package/docs/models/shared/commercecustomerref.md +11 -0
- package/docs/models/shared/commercecustomers.md +14 -0
- package/docs/models/shared/commercedispute.md +26 -0
- package/docs/models/shared/commercedisputes.md +14 -0
- package/docs/models/shared/commercelocation.md +18 -0
- package/docs/models/shared/commercelocations.md +14 -0
- package/docs/models/shared/commerceorder.md +31 -0
- package/docs/models/shared/commerceorders.md +14 -0
- package/docs/models/shared/commerceordersupplementaldata.md +12 -0
- package/docs/models/shared/commercepayment.md +25 -0
- package/docs/models/shared/commercepaymentmethod.md +16 -0
- package/docs/models/shared/commercepaymentmethods.md +14 -0
- package/docs/models/shared/commercepayments.md +14 -0
- package/docs/models/shared/commerceproduct.md +18 -0
- package/docs/models/shared/commerceproductcategories.md +14 -0
- package/docs/models/shared/commerceproductcategory.md +17 -0
- package/docs/models/shared/commerceproducts.md +14 -0
- package/docs/models/shared/commercerecordref.md +9 -0
- package/docs/models/shared/commercereport.md +54 -0
- package/docs/models/shared/commercereportcomponent.md +13 -0
- package/docs/models/shared/commercereportdimension.md +11 -0
- package/docs/models/shared/commercereportdimensionitems.md +8 -0
- package/docs/models/shared/commercereporterror.md +10 -0
- package/docs/models/shared/commercereportmeasure.md +11 -0
- package/docs/models/shared/commercetransaction.md +28 -0
- package/docs/models/shared/commercetransactions.md +14 -0
- package/docs/models/shared/companies.md +14 -0
- package/docs/models/shared/company.md +22 -0
- package/docs/models/shared/companyrequestbody.md +9 -0
- package/docs/models/shared/connection.md +31 -0
- package/docs/models/shared/connections.md +14 -0
- package/docs/models/shared/connectionsourcetype.md +14 -0
- package/docs/models/shared/contact.md +13 -0
- package/docs/models/shared/contactref.md +11 -0
- package/docs/models/shared/creditnotelineitem.md +21 -0
- package/docs/models/shared/creditnotestatus.md +13 -0
- package/docs/models/shared/customerstatus.md +12 -0
- package/docs/models/shared/dataconnectionerror.md +11 -0
- package/docs/models/shared/dataconnectionstatus.md +13 -0
- package/docs/models/shared/dataintegrityamounts.md +12 -0
- package/docs/models/shared/dataintegritybyamount.md +12 -0
- package/docs/models/shared/dataintegritybycount.md +11 -0
- package/docs/models/shared/dataintegrityconnectionid.md +9 -0
- package/docs/models/shared/dataintegritydatatype.md +13 -0
- package/docs/models/shared/dataintegritydates.md +13 -0
- package/docs/models/shared/dataintegritydetail.md +15 -0
- package/docs/models/shared/dataintegritydetails.md +14 -0
- package/docs/models/shared/dataintegritymatch.md +14 -0
- package/docs/models/shared/dataintegritystatus.md +12 -0
- package/docs/models/shared/dataintegritystatuses.md +10 -0
- package/docs/models/shared/dataintegritystatusinfo.md +10 -0
- package/docs/models/shared/dataintegritysummaries.md +10 -0
- package/docs/models/shared/dataintegritysummary.md +10 -0
- package/docs/models/shared/datasource.md +8 -0
- package/docs/models/shared/datastatus.md +14 -0
- package/docs/models/shared/datatype.md +51 -0
- package/docs/models/shared/definitionsitemref.md +10 -0
- package/docs/models/shared/directcostlineitem.md +20 -0
- package/docs/models/shared/directincomelineitem.md +19 -0
- package/docs/models/shared/disputestatus.md +20 -0
- package/docs/models/shared/enhancedcashflowitem.md +8 -0
- package/docs/models/shared/enhancedcashflowtransaction.md +16 -0
- package/docs/models/shared/enhancedcashflowtransactions.md +16 -0
- package/docs/models/shared/enhancedfinancialreport.md +11 -0
- package/docs/models/shared/enhancedfinancialreportreportitem.md +12 -0
- package/docs/models/shared/enhancedinvoicereportitem.md +20 -0
- package/docs/models/shared/enhancedinvoicesreport.md +11 -0
- package/docs/models/shared/enhancedreportaccountcategory.md +9 -0
- package/docs/models/shared/enhancedreportinfo.md +11 -0
- package/docs/models/shared/errormessage.md +15 -0
- package/docs/models/shared/excelreporttypes.md +13 -0
- package/docs/models/shared/excelstatus.md +17 -0
- package/docs/models/shared/file.md +11 -0
- package/docs/models/shared/halref.md +8 -0
- package/docs/models/shared/integritystatus.md +13 -0
- package/docs/models/shared/invoicelineitem.md +21 -0
- package/docs/models/shared/invoicestatus.md +21 -0
- package/docs/models/shared/itemref.md +11 -0
- package/docs/models/shared/items.md +9 -0
- package/docs/models/shared/itemstype.md +12 -0
- package/docs/models/shared/journalline.md +12 -0
- package/docs/models/shared/journallinetracking.md +10 -0
- package/docs/models/shared/journalref.md +11 -0
- package/docs/models/shared/journalstatus.md +12 -0
- package/docs/models/shared/lendingcustomerref.md +9 -0
- package/docs/models/shared/links.md +11 -0
- package/docs/models/shared/loanref.md +10 -0
- package/docs/models/shared/loansummary.md +11 -0
- package/docs/models/shared/loansummaryintegrationtype.md +12 -0
- package/docs/models/shared/loansummaryrecordref.md +11 -0
- package/docs/models/shared/loansummaryrecordreftype.md +12 -0
- package/docs/models/shared/loansummaryreportinfo.md +10 -0
- package/docs/models/shared/loansummaryreportitem.md +13 -0
- package/docs/models/shared/loantransactions.md +12 -0
- package/docs/models/shared/loantransactionsreportinfo.md +13 -0
- package/docs/models/shared/locationref.md +11 -0
- package/docs/models/shared/metadata.md +8 -0
- package/docs/models/shared/orderdiscountallocation.md +9 -0
- package/docs/models/shared/orderlineitem.md +17 -0
- package/docs/models/shared/payment.md +14 -0
- package/docs/models/shared/paymentallocationpayment.md +15 -0
- package/docs/models/shared/paymentline.md +10 -0
- package/docs/models/shared/paymentlinelink.md +11 -0
- package/docs/models/shared/paymentlinktype.md +29 -0
- package/docs/models/shared/paymentmethodstatus.md +12 -0
- package/docs/models/shared/paymentref.md +17 -0
- package/docs/models/shared/paymentstatus.md +15 -0
- package/docs/models/shared/paymenttype.md +21 -0
- package/docs/models/shared/periodunit.md +13 -0
- package/docs/models/shared/phonenumbertype.md +14 -0
- package/docs/models/shared/productinventory.md +11 -0
- package/docs/models/shared/productinventorylocation.md +9 -0
- package/docs/models/shared/productprice.md +9 -0
- package/docs/models/shared/productref.md +11 -0
- package/docs/models/shared/productvariant.md +24 -0
- package/docs/models/shared/productvariantref.md +11 -0
- package/docs/models/shared/productvariantstatus.md +10 -0
- package/docs/models/shared/profitandlossreport.md +18 -0
- package/docs/models/shared/projectref.md +9 -0
- package/docs/models/shared/pulloperation.md +19 -0
- package/docs/models/shared/pulloperations.md +14 -0
- package/docs/models/shared/pulloperationstatus.md +30 -0
- package/docs/models/shared/recordref.md +13 -0
- package/docs/models/shared/reportbasis.md +12 -0
- package/docs/models/shared/reportcomponentmeasure.md +10 -0
- package/docs/models/shared/reportinfo.md +15 -0
- package/docs/models/shared/reportinput.md +12 -0
- package/docs/models/shared/reportitems.md +12 -0
- package/docs/models/shared/reportitemsloantransactiontype.md +11 -0
- package/docs/models/shared/reportline.md +11 -0
- package/docs/models/shared/security.md +8 -0
- package/docs/models/shared/servicecharge.md +14 -0
- package/docs/models/shared/servicechargetype.md +13 -0
- package/docs/models/shared/sourceref.md +10 -0
- package/docs/models/shared/supplementaldata.md +12 -0
- package/docs/models/shared/supplierref.md +11 -0
- package/docs/models/shared/supplierstatus.md +12 -0
- package/docs/models/shared/taxcomponentallocation.md +9 -0
- package/docs/models/shared/taxcomponentref.md +11 -0
- package/docs/models/shared/taxrateref.md +21 -0
- package/docs/models/shared/tracking.md +9 -0
- package/docs/models/shared/trackingcategoryref.md +13 -0
- package/docs/models/shared/transactioncategory.md +9 -0
- package/docs/models/shared/transactioncategoryref.md +11 -0
- package/docs/models/shared/transactioncategorystatus.md +10 -0
- package/docs/models/shared/transactioncode.md +24 -0
- package/docs/models/shared/transactionsourceref.md +9 -0
- package/docs/models/shared/transactionsourcetype.md +12 -0
- package/docs/models/shared/transactiontype.md +25 -0
- package/docs/models/shared/transferaccount.md +10 -0
- package/docs/models/shared/weblinksitems.md +11 -0
- package/docs/models/shared/withholdingtaxitems.md +9 -0
- package/docs/models/utils/retryconfig.md +24 -0
- package/docs/sdks/accountingbankdata/README.md +160 -0
- package/docs/sdks/accountspayable/README.md +766 -0
- package/docs/sdks/accountsreceivable/README.md +1093 -0
- package/docs/sdks/cashflow/README.md +402 -0
- package/docs/sdks/codatlending/README.md +14 -0
- package/docs/sdks/companies/README.md +221 -0
- package/docs/sdks/companyinfo/README.md +91 -0
- package/docs/sdks/connections/README.md +224 -0
- package/docs/sdks/dataintegrity/README.md +152 -0
- package/docs/sdks/excelreports/README.md +150 -0
- package/docs/sdks/fileupload/README.md +140 -0
- package/docs/sdks/financials/README.md +321 -0
- package/docs/sdks/liabilities/README.md +99 -0
- package/docs/sdks/managedata/README.md +222 -0
- package/docs/sdks/sales/README.md +1227 -0
- package/docs/sdks/transactions/README.md +642 -0
- package/docs/types/rfcdate.md +11 -0
- package/package.json +34 -0
|
@@ -0,0 +1,1210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76
|
+
exports.AccountsPayable = exports.DownloadSupplierAttachmentAcceptEnum = exports.DownloadBillAttachmentAcceptEnum = void 0;
|
|
77
|
+
var utils = __importStar(require("../internal/utils"));
|
|
78
|
+
var errors = __importStar(require("./models/errors"));
|
|
79
|
+
var operations = __importStar(require("./models/operations"));
|
|
80
|
+
var shared = __importStar(require("./models/shared"));
|
|
81
|
+
/**
|
|
82
|
+
* Data from a linked accounting platform representing money the business owes money to its suppliers.
|
|
83
|
+
*/
|
|
84
|
+
var DownloadBillAttachmentAcceptEnum;
|
|
85
|
+
(function (DownloadBillAttachmentAcceptEnum) {
|
|
86
|
+
DownloadBillAttachmentAcceptEnum["applicationJson"] = "application/json";
|
|
87
|
+
DownloadBillAttachmentAcceptEnum["applicationOctetStream"] = "application/octet-stream";
|
|
88
|
+
})(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
|
+
var AccountsPayable = /** @class */ (function () {
|
|
95
|
+
function AccountsPayable(sdkConfig) {
|
|
96
|
+
this.sdkConfiguration = sdkConfig;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Download bill attachment
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
* The *Download bill attachment* endpoint downloads a specific attachment for a given `billId` and `attachmentId`.
|
|
103
|
+
*
|
|
104
|
+
* [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.
|
|
105
|
+
*
|
|
106
|
+
* 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.
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
AccountsPayable.prototype.downloadBillAttachment = function (req, retries, config, acceptHeaderOverride) {
|
|
110
|
+
var _a, _b;
|
|
111
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
+
var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
113
|
+
return __generator(this, function (_c) {
|
|
114
|
+
switch (_c.label) {
|
|
115
|
+
case 0:
|
|
116
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
117
|
+
req = new operations.DownloadAccountingBillAttachmentRequest(req);
|
|
118
|
+
}
|
|
119
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
120
|
+
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"]))];
|
|
137
|
+
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);
|
|
197
|
+
if (acceptHeaderOverride !== undefined) {
|
|
198
|
+
headers["Accept"] = acceptHeaderOverride.toString();
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
headers["Accept"] = "application/json;q=1, application/octet-stream;q=0";
|
|
202
|
+
}
|
|
203
|
+
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
204
|
+
retryConfig = retries;
|
|
205
|
+
if (!retryConfig) {
|
|
206
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
207
|
+
}
|
|
208
|
+
return [4 /*yield*/, utils.Retry(function () {
|
|
209
|
+
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
210
|
+
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
211
|
+
case 1:
|
|
212
|
+
httpRes = _c.sent();
|
|
213
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
215
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
216
|
+
}
|
|
217
|
+
res = new operations.DownloadAccountingSupplierAttachmentResponse({
|
|
218
|
+
statusCode: httpRes.status,
|
|
219
|
+
contentType: contentType,
|
|
220
|
+
rawResponse: httpRes,
|
|
221
|
+
});
|
|
222
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
223
|
+
switch (true) {
|
|
224
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
225
|
+
if (utils.matchContentType(contentType, "application/octet-stream")) {
|
|
226
|
+
res.data = httpRes === null || httpRes === void 0 ? void 0 : httpRes.data;
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
230
|
+
}
|
|
231
|
+
break;
|
|
232
|
+
case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
|
|
233
|
+
if (utils.matchContentType(contentType, "application/json")) {
|
|
234
|
+
res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
238
|
+
}
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
return [2 /*return*/, res];
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
};
|
|
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
|
+
/**
|
|
383
|
+
* Get bill attachment
|
|
384
|
+
*
|
|
385
|
+
* @remarks
|
|
386
|
+
* The *Get bill attachment* endpoint returns a specific attachment for a given `billId` and `attachmentId`.
|
|
387
|
+
*
|
|
388
|
+
* [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.
|
|
389
|
+
*
|
|
390
|
+
* 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.
|
|
391
|
+
*
|
|
392
|
+
*/
|
|
393
|
+
AccountsPayable.prototype.getBillAttachment = function (req, retries, config) {
|
|
394
|
+
var _a, _b;
|
|
395
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
396
|
+
var baseURL, url, client, headers, retryConfig, httpRes, contentType, res, decodedRes;
|
|
397
|
+
return __generator(this, function (_c) {
|
|
398
|
+
switch (_c.label) {
|
|
399
|
+
case 0:
|
|
400
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
401
|
+
req = new operations.GetAccountingBillAttachmentRequest(req);
|
|
402
|
+
}
|
|
403
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
404
|
+
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);
|
|
407
|
+
headers["Accept"] = "application/json";
|
|
408
|
+
headers["user-agent"] = "speakeasy-sdk/".concat(this.sdkConfiguration.language, " ").concat(this.sdkConfiguration.sdkVersion, " ").concat(this.sdkConfiguration.genVersion, " ").concat(this.sdkConfiguration.openapiDocVersion);
|
|
409
|
+
retryConfig = retries;
|
|
410
|
+
if (!retryConfig) {
|
|
411
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
412
|
+
}
|
|
413
|
+
return [4 /*yield*/, utils.Retry(function () {
|
|
414
|
+
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
415
|
+
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
416
|
+
case 1:
|
|
417
|
+
httpRes = _c.sent();
|
|
418
|
+
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
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
420
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
421
|
+
}
|
|
422
|
+
res = new operations.GetAccountingBillAttachmentResponse({
|
|
423
|
+
statusCode: httpRes.status,
|
|
424
|
+
contentType: contentType,
|
|
425
|
+
rawResponse: httpRes,
|
|
426
|
+
});
|
|
427
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
428
|
+
switch (true) {
|
|
429
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 200:
|
|
430
|
+
if (utils.matchContentType(contentType, "application/json")) {
|
|
431
|
+
res.accountingAttachment = utils.objectToClass(JSON.parse(decodedRes), shared.AccountingAttachment);
|
|
432
|
+
}
|
|
433
|
+
else {
|
|
434
|
+
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
435
|
+
}
|
|
436
|
+
break;
|
|
437
|
+
case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
|
|
438
|
+
if (utils.matchContentType(contentType, "application/json")) {
|
|
439
|
+
res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
|
|
440
|
+
}
|
|
441
|
+
else {
|
|
442
|
+
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
443
|
+
}
|
|
444
|
+
break;
|
|
445
|
+
}
|
|
446
|
+
return [2 /*return*/, res];
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
});
|
|
450
|
+
};
|
|
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
|
+
return AccountsPayable;
|
|
1209
|
+
}());
|
|
1210
|
+
exports.AccountsPayable = AccountsPayable;
|