@codat/lending 3.2.0 → 3.3.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 +98 -83
- package/dist/internal/utils/requestbody.js +1 -1
- package/dist/internal/utils/utils.js +1 -1
- package/dist/sdk/accountingbankdata.d.ts +2 -2
- package/dist/sdk/accountingbankdata.js +3 -3
- package/dist/sdk/accountingbankdataaccounts.d.ts +3 -3
- package/dist/sdk/accountingbankdataaccounts.js +5 -5
- package/dist/sdk/accountspayablebillcreditnotes.d.ts +3 -3
- package/dist/sdk/accountspayablebillcreditnotes.js +5 -5
- package/dist/sdk/accountspayablebillpayments.d.ts +3 -3
- package/dist/sdk/accountspayablebillpayments.js +5 -5
- package/dist/sdk/accountspayablebills.d.ts +6 -6
- package/dist/sdk/accountspayablebills.js +11 -11
- package/dist/sdk/accountspayablesuppliers.d.ts +6 -6
- package/dist/sdk/accountspayablesuppliers.js +11 -11
- package/dist/sdk/accountsreceivablecreditnotes.d.ts +3 -3
- package/dist/sdk/accountsreceivablecreditnotes.js +5 -5
- package/dist/sdk/accountsreceivablecustomers.d.ts +6 -6
- package/dist/sdk/accountsreceivablecustomers.js +11 -11
- package/dist/sdk/accountsreceivabledirectincomes.d.ts +6 -6
- package/dist/sdk/accountsreceivabledirectincomes.js +11 -11
- package/dist/sdk/accountsreceivableinvoices.d.ts +6 -6
- package/dist/sdk/accountsreceivableinvoices.js +13 -13
- package/dist/sdk/accountsreceivablepayments.d.ts +3 -3
- package/dist/sdk/accountsreceivablepayments.js +5 -5
- package/dist/sdk/accountsreceivablereports.js +4 -4
- package/dist/sdk/bankingaccountbalances.d.ts +2 -2
- package/dist/sdk/bankingaccountbalances.js +3 -3
- package/dist/sdk/bankingaccounts.d.ts +3 -3
- package/dist/sdk/bankingaccounts.js +5 -5
- package/dist/sdk/bankingcategorizedstatement.js +1 -1
- package/dist/sdk/bankingtransactioncategories.d.ts +3 -3
- package/dist/sdk/bankingtransactioncategories.js +5 -5
- package/dist/sdk/bankingtransactions.d.ts +3 -3
- package/dist/sdk/bankingtransactions.js +5 -5
- package/dist/sdk/companies.js +5 -5
- package/dist/sdk/companyinfo.js +2 -2
- package/dist/sdk/connections.js +5 -5
- package/dist/sdk/dataintegrity.js +3 -3
- package/dist/sdk/excelreports.js +3 -3
- package/dist/sdk/fileupload.js +3 -3
- package/dist/sdk/financialstatementsaccounts.d.ts +3 -3
- package/dist/sdk/financialstatementsaccounts.js +5 -5
- package/dist/sdk/financialstatementsbalancesheet.js +2 -2
- package/dist/sdk/financialstatementscashflow.js +1 -1
- package/dist/sdk/financialstatementsprofitandloss.js +2 -2
- package/dist/sdk/liabilities.d.ts +25 -1
- package/dist/sdk/liabilities.js +172 -9
- package/dist/sdk/loanwriteback.d.ts +2 -2
- package/dist/sdk/loanwriteback.js +2 -2
- package/dist/sdk/loanwritebackaccounts.d.ts +5 -5
- package/dist/sdk/loanwritebackaccounts.js +7 -7
- package/dist/sdk/loanwritebackbanktransactions.d.ts +5 -5
- package/dist/sdk/loanwritebackbanktransactions.js +7 -7
- package/dist/sdk/loanwritebackcreateoperations.js +2 -2
- package/dist/sdk/loanwritebackdirectcosts.d.ts +5 -5
- package/dist/sdk/loanwritebackdirectcosts.js +7 -7
- package/dist/sdk/loanwritebackpayments.d.ts +40 -0
- package/dist/sdk/{loanwritebackbankaccounts.js → loanwritebackpayments.js} +27 -26
- package/dist/sdk/loanwritebacksuppliers.d.ts +5 -5
- package/dist/sdk/loanwritebacksuppliers.js +7 -7
- package/dist/sdk/loanwritebacktransfers.d.ts +5 -5
- package/dist/sdk/loanwritebacktransfers.js +7 -7
- package/dist/sdk/managedata.js +1 -1
- package/dist/sdk/managedatapulloperations.js +2 -2
- package/dist/sdk/managedatarefresh.js +2 -2
- package/dist/sdk/models/operations/createaccount.d.ts +19 -2
- package/dist/sdk/models/operations/createaccount.js +0 -4
- package/dist/sdk/models/operations/createbanktransactions.d.ts +20 -3
- package/dist/sdk/models/operations/createbanktransactions.js +0 -4
- package/dist/sdk/models/operations/createcompany.d.ts +9 -0
- package/dist/sdk/models/operations/createconnection.d.ts +15 -0
- package/dist/sdk/models/operations/createdirectcost.d.ts +19 -2
- package/dist/sdk/models/operations/createdirectcost.js +0 -4
- package/dist/sdk/models/operations/createpayment.d.ts +44 -0
- package/dist/sdk/models/operations/{createbankaccount.js → createpayment.js} +23 -27
- package/dist/sdk/models/operations/createsupplier.d.ts +19 -2
- package/dist/sdk/models/operations/createsupplier.js +0 -4
- package/dist/sdk/models/operations/createtransfer.d.ts +19 -2
- package/dist/sdk/models/operations/createtransfer.js +0 -4
- package/dist/sdk/models/operations/deletecompany.d.ts +12 -0
- package/dist/sdk/models/operations/deleteconnection.d.ts +15 -0
- package/dist/sdk/models/operations/downloadaccountingbillattachment.d.ts +17 -2
- package/dist/sdk/models/operations/downloadaccountingcustomerattachment.d.ts +19 -1
- package/dist/sdk/models/operations/downloadaccountingdirectcostattachment.d.ts +17 -2
- package/dist/sdk/models/operations/downloadaccountingdirectincomeattachment.d.ts +17 -2
- package/dist/sdk/models/operations/downloadaccountinginvoiceattachment.d.ts +17 -2
- package/dist/sdk/models/operations/downloadaccountinginvoicepdf.d.ts +13 -1
- package/dist/sdk/models/operations/downloadaccountingsupplierattachment.d.ts +17 -2
- package/dist/sdk/models/operations/downloadexcelreport.d.ts +12 -0
- package/dist/sdk/models/operations/downloadfiles.d.ts +12 -0
- package/dist/sdk/models/operations/generateexcelreport.d.ts +12 -0
- package/dist/sdk/models/operations/generateloansummary.d.ts +39 -0
- package/dist/sdk/models/operations/generateloansummary.js +104 -0
- package/dist/sdk/models/operations/generateloantransactions.d.ts +39 -0
- package/dist/sdk/models/operations/generateloantransactions.js +104 -0
- package/dist/sdk/models/operations/getaccountingaccount.d.ts +13 -1
- package/dist/sdk/models/operations/getaccountingaccounttransaction.d.ts +18 -0
- package/dist/sdk/models/operations/getaccountingagedcreditorsreport.d.ts +12 -0
- package/dist/sdk/models/operations/getaccountingageddebtorsreport.d.ts +12 -0
- package/dist/sdk/models/operations/getaccountingbalancesheet.d.ts +15 -0
- package/dist/sdk/models/operations/getaccountingbankaccount.d.ts +16 -1
- package/dist/sdk/models/operations/getaccountingbill.d.ts +13 -1
- package/dist/sdk/models/operations/getaccountingbillattachment.d.ts +17 -2
- package/dist/sdk/models/operations/getaccountingbillcreditnote.d.ts +15 -0
- package/dist/sdk/models/operations/getaccountingbillpayment.d.ts +15 -0
- package/dist/sdk/models/operations/getaccountingcashflowstatement.d.ts +15 -0
- package/dist/sdk/models/operations/getaccountingcreditnote.d.ts +15 -0
- package/dist/sdk/models/operations/getaccountingcustomer.d.ts +15 -0
- package/dist/sdk/models/operations/getaccountingcustomerattachment.d.ts +19 -1
- package/dist/sdk/models/operations/getaccountingdirectcost.d.ts +16 -1
- package/dist/sdk/models/operations/getaccountingdirectcostattachment.d.ts +17 -2
- package/dist/sdk/models/operations/getaccountingdirectincome.d.ts +18 -0
- package/dist/sdk/models/operations/getaccountingdirectincomeattachment.d.ts +20 -2
- package/dist/sdk/models/operations/getaccountinginvoice.d.ts +13 -1
- package/dist/sdk/models/operations/getaccountinginvoiceattachment.d.ts +17 -2
- package/dist/sdk/models/operations/getaccountingjournal.d.ts +15 -0
- package/dist/sdk/models/operations/getaccountingjournalentry.d.ts +15 -0
- package/dist/sdk/models/operations/getaccountingpayment.d.ts +15 -0
- package/dist/sdk/models/operations/getaccountingprofile.d.ts +12 -0
- package/dist/sdk/models/operations/getaccountingprofitandloss.d.ts +15 -0
- package/dist/sdk/models/operations/getaccountingsupplier.d.ts +13 -1
- package/dist/sdk/models/operations/getaccountingsupplierattachment.d.ts +17 -2
- package/dist/sdk/models/operations/getaccountingtransfer.d.ts +18 -0
- package/dist/sdk/models/operations/getbankingaccount.d.ts +16 -1
- package/dist/sdk/models/operations/getbankingtransaction.d.ts +15 -0
- package/dist/sdk/models/operations/getbankingtransactioncategory.d.ts +15 -0
- package/dist/sdk/models/operations/getcategorizedbalancesheetstatement.d.ts +12 -0
- package/dist/sdk/models/operations/getcategorizedbankstatement.d.ts +12 -0
- package/dist/sdk/models/operations/getcategorizedprofitandlossstatement.d.ts +13 -1
- package/dist/sdk/models/operations/getcommercecustomer.d.ts +15 -0
- package/dist/sdk/models/operations/getcommercecustomerretentionmetrics.d.ts +15 -0
- package/dist/sdk/models/operations/getcommercedispute.d.ts +15 -0
- package/dist/sdk/models/operations/getcommercelifetimevaluemetrics.d.ts +15 -0
- package/dist/sdk/models/operations/getcommercelocation.d.ts +15 -0
- package/dist/sdk/models/operations/getcommerceorder.d.ts +15 -0
- package/dist/sdk/models/operations/getcommerceordersreport.d.ts +15 -0
- package/dist/sdk/models/operations/getcommercepayment.d.ts +15 -0
- package/dist/sdk/models/operations/getcommercepaymentmethod.d.ts +15 -0
- package/dist/sdk/models/operations/getcommerceproduct.d.ts +15 -0
- package/dist/sdk/models/operations/getcommerceproductcategory.d.ts +15 -0
- package/dist/sdk/models/operations/getcommerceprofile.d.ts +15 -0
- package/dist/sdk/models/operations/getcommercerefundsreport.d.ts +15 -0
- package/dist/sdk/models/operations/getcommercerevenuemetrics.d.ts +15 -0
- package/dist/sdk/models/operations/getcommercetransaction.d.ts +15 -0
- package/dist/sdk/models/operations/getcompany.d.ts +12 -0
- package/dist/sdk/models/operations/getconnection.d.ts +15 -0
- package/dist/sdk/models/operations/getcreatebanktransactionsmodel.d.ts +16 -1
- package/dist/sdk/models/operations/getcreatechartofaccountsmodel.d.ts +15 -0
- package/dist/sdk/models/operations/getcreatedirectcostsmodel.d.ts +15 -0
- package/dist/sdk/models/operations/getcreateoperation.d.ts +12 -0
- package/dist/sdk/models/operations/getcreatepaymentsmodel.d.ts +35 -0
- package/dist/sdk/models/operations/{getcreateupdatebankaccountsmodel.js → getcreatepaymentsmodel.js} +18 -18
- package/dist/sdk/models/operations/getcreatetransfersmodel.d.ts +15 -0
- package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.d.ts +15 -0
- package/dist/sdk/models/operations/getdataintegritystatus.d.ts +12 -0
- package/dist/sdk/models/operations/getdataintegritysummaries.d.ts +12 -0
- package/dist/sdk/models/operations/getdatastatus.d.ts +12 -0
- package/dist/sdk/models/operations/getexcelreportgenerationstatus.d.ts +12 -0
- package/dist/sdk/models/operations/getloansummary.d.ts +24 -0
- package/dist/sdk/models/operations/getloansummary.js +14 -1
- package/dist/sdk/models/operations/getpulloperation.d.ts +13 -1
- package/dist/sdk/models/operations/index.d.ts +4 -2
- package/dist/sdk/models/operations/index.js +4 -2
- package/dist/sdk/models/operations/isagedcreditorsreportavailable.d.ts +12 -0
- package/dist/sdk/models/operations/isageddebtorsreportavailable.d.ts +12 -0
- package/dist/sdk/models/operations/listaccountingaccounts.d.ts +12 -0
- package/dist/sdk/models/operations/listaccountingaccounttransactions.d.ts +15 -0
- package/dist/sdk/models/operations/listaccountingbankaccounts.d.ts +15 -0
- package/dist/sdk/models/operations/listaccountingbankaccounttransactions.d.ts +16 -1
- package/dist/sdk/models/operations/listaccountingbillattachments.d.ts +16 -1
- package/dist/sdk/models/operations/listaccountingbillcreditnotes.d.ts +12 -0
- package/dist/sdk/models/operations/listaccountingbillpayments.d.ts +12 -0
- package/dist/sdk/models/operations/listaccountingbills.d.ts +12 -0
- package/dist/sdk/models/operations/listaccountingcreditnotes.d.ts +12 -0
- package/dist/sdk/models/operations/listaccountingcustomerattachments.d.ts +18 -0
- package/dist/sdk/models/operations/listaccountingcustomers.d.ts +12 -0
- package/dist/sdk/models/operations/listaccountingdirectcostattachments.d.ts +16 -1
- package/dist/sdk/models/operations/listaccountingdirectcosts.d.ts +15 -0
- package/dist/sdk/models/operations/listaccountingdirectincomeattachments.d.ts +16 -1
- package/dist/sdk/models/operations/listaccountingdirectincomes.d.ts +15 -0
- package/dist/sdk/models/operations/listaccountinginvoiceattachments.d.ts +16 -1
- package/dist/sdk/models/operations/listaccountinginvoices.d.ts +12 -0
- package/dist/sdk/models/operations/listaccountingjournalentries.d.ts +12 -0
- package/dist/sdk/models/operations/listaccountingjournals.d.ts +12 -0
- package/dist/sdk/models/operations/listaccountingpayments.d.ts +12 -0
- package/dist/sdk/models/operations/listaccountingsupplierattachments.d.ts +16 -1
- package/dist/sdk/models/operations/listaccountingsuppliers.d.ts +12 -0
- package/dist/sdk/models/operations/listaccountingtransfers.d.ts +15 -0
- package/dist/sdk/models/operations/listbankingaccountbalances.d.ts +15 -0
- package/dist/sdk/models/operations/listbankingaccounts.d.ts +15 -0
- package/dist/sdk/models/operations/listbankingtransactioncategories.d.ts +15 -0
- package/dist/sdk/models/operations/listbankingtransactions.d.ts +15 -0
- package/dist/sdk/models/operations/listcommercecustomers.d.ts +15 -0
- package/dist/sdk/models/operations/listcommercedisputes.d.ts +15 -0
- package/dist/sdk/models/operations/listcommercelocations.d.ts +15 -0
- package/dist/sdk/models/operations/listcommerceorders.d.ts +15 -0
- package/dist/sdk/models/operations/listcommercepaymentmethods.d.ts +15 -0
- package/dist/sdk/models/operations/listcommercepayments.d.ts +15 -0
- package/dist/sdk/models/operations/listcommerceproductcategories.d.ts +15 -0
- package/dist/sdk/models/operations/listcommerceproducts.d.ts +15 -0
- package/dist/sdk/models/operations/listcommercetransactions.d.ts +15 -0
- package/dist/sdk/models/operations/listcompanies.d.ts +9 -0
- package/dist/sdk/models/operations/listconnections.d.ts +12 -0
- package/dist/sdk/models/operations/listcreateoperations.d.ts +12 -0
- package/dist/sdk/models/operations/listdataintegritydetails.d.ts +12 -0
- package/dist/sdk/models/operations/listfiles.d.ts +12 -0
- package/dist/sdk/models/operations/listloantransactions.d.ts +14 -2
- package/dist/sdk/models/operations/listloantransactions.js +1 -1
- package/dist/sdk/models/operations/listpulloperations.d.ts +12 -0
- package/dist/sdk/models/operations/listreconciledinvoices.d.ts +12 -0
- package/dist/sdk/models/operations/refreshalldatatypes.d.ts +12 -0
- package/dist/sdk/models/operations/refreshdatatype.d.ts +12 -0
- package/dist/sdk/models/operations/unlinkconnection.d.ts +15 -0
- package/dist/sdk/models/operations/updatecompany.d.ts +12 -0
- package/dist/sdk/models/operations/uploadfiles.d.ts +15 -0
- package/dist/sdk/models/shared/accountingaccount.d.ts +11 -2
- package/dist/sdk/models/shared/accountingaccount.js +8 -1
- package/dist/sdk/models/shared/accountingaccounts.d.ts +9 -0
- package/dist/sdk/models/shared/accountingaccounttransaction.d.ts +2 -2
- package/dist/sdk/models/shared/accountingaccounttransaction.js +2 -2
- package/dist/sdk/models/shared/accountingaccounttransactions.d.ts +9 -0
- package/dist/sdk/models/shared/accountingagedcreditorreport.d.ts +1 -1
- package/dist/sdk/models/shared/accountingagedcreditorreport.js +1 -1
- package/dist/sdk/models/shared/accountingageddebtorreport.d.ts +1 -1
- package/dist/sdk/models/shared/accountingageddebtorreport.js +1 -1
- package/dist/sdk/models/shared/accountingattachment.d.ts +1 -1
- package/dist/sdk/models/shared/accountingattachment.js +1 -1
- package/dist/sdk/models/shared/accountingbankaccount.d.ts +10 -1
- package/dist/sdk/models/shared/accountingbankaccount.js +8 -1
- package/dist/sdk/models/shared/accountingbankaccounts.d.ts +9 -0
- package/dist/sdk/models/shared/accountingbanktransaction.d.ts +20 -2
- package/dist/sdk/models/shared/accountingbanktransaction.js +1 -1
- package/dist/sdk/models/shared/accountingbanktransactions.d.ts +9 -0
- package/dist/sdk/models/shared/accountingbill.d.ts +8 -2
- package/dist/sdk/models/shared/accountingbill.js +2 -2
- package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +3 -3
- package/dist/sdk/models/shared/accountingbillcreditnote.js +3 -3
- package/dist/sdk/models/shared/accountingbillcreditnotes.d.ts +9 -0
- package/dist/sdk/models/shared/accountingbillpayment.d.ts +6 -5
- package/dist/sdk/models/shared/accountingbillpayment.js +7 -5
- package/dist/sdk/models/shared/accountingbillpayments.d.ts +9 -0
- package/dist/sdk/models/shared/accountingbills.d.ts +9 -0
- package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +9 -0
- package/dist/sdk/models/shared/accountingcompanyinfo.js +7 -0
- package/dist/sdk/models/shared/accountingcreateaccountresponse.d.ts +12 -1
- package/dist/sdk/models/shared/accountingcreatebanktransactions.d.ts +3 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.d.ts +11 -0
- package/dist/sdk/models/shared/accountingcreatedirectcostresponse.d.ts +12 -1
- package/dist/sdk/models/shared/accountingcreatepaymentresponse.d.ts +785 -0
- package/dist/sdk/models/shared/{accountingcreatebankaccountresponse.js → accountingcreatepaymentresponse.js} +23 -23
- package/dist/sdk/models/shared/accountingcreatesupplierresponse.d.ts +12 -1
- package/dist/sdk/models/shared/accountingcreatetransferresponse.d.ts +12 -1
- package/dist/sdk/models/shared/accountingcreditnote.d.ts +10 -1
- package/dist/sdk/models/shared/accountingcreditnote.js +1 -1
- package/dist/sdk/models/shared/accountingcreditnotes.d.ts +9 -0
- package/dist/sdk/models/shared/accountingcustomer.d.ts +1 -1
- package/dist/sdk/models/shared/accountingcustomer.js +1 -1
- package/dist/sdk/models/shared/accountingcustomers.d.ts +9 -0
- package/dist/sdk/models/shared/accountingdirectcost.d.ts +1 -1
- package/dist/sdk/models/shared/accountingdirectcost.js +1 -1
- package/dist/sdk/models/shared/accountingdirectcosts.d.ts +9 -0
- package/dist/sdk/models/shared/accountingdirectincome.d.ts +4 -1
- package/dist/sdk/models/shared/accountingdirectincome.js +1 -1
- package/dist/sdk/models/shared/accountingdirectincomes.d.ts +9 -0
- package/dist/sdk/models/shared/accountinginvoice.d.ts +18 -5
- package/dist/sdk/models/shared/accountinginvoice.js +5 -4
- package/dist/sdk/models/shared/accountinginvoices.d.ts +9 -0
- package/dist/sdk/models/shared/accountingjournal.d.ts +2 -2
- package/dist/sdk/models/shared/accountingjournal.js +2 -2
- package/dist/sdk/models/shared/accountingjournalentries.d.ts +9 -0
- package/dist/sdk/models/shared/accountingjournalentry.d.ts +2 -2
- package/dist/sdk/models/shared/accountingjournalentry.js +2 -2
- package/dist/sdk/models/shared/accountingjournals.d.ts +9 -0
- package/dist/sdk/models/shared/accountingpayment.d.ts +8 -4
- package/dist/sdk/models/shared/accountingpayment.js +6 -4
- package/dist/sdk/models/shared/accountingpayments.d.ts +9 -0
- package/dist/sdk/models/shared/accountingsupplier.d.ts +1 -1
- package/dist/sdk/models/shared/accountingsupplier.js +1 -1
- package/dist/sdk/models/shared/accountingsuppliers.d.ts +9 -0
- package/dist/sdk/models/shared/accountingtransfer.d.ts +15 -2
- package/dist/sdk/models/shared/accountingtransfer.js +2 -1
- package/dist/sdk/models/shared/accountingtransfers.d.ts +9 -0
- package/dist/sdk/models/shared/accountspayabletracking.d.ts +6 -0
- package/dist/sdk/models/shared/accountsreceivabletracking.d.ts +6 -0
- package/dist/sdk/models/shared/bankingaccountbalance.d.ts +1 -1
- package/dist/sdk/models/shared/bankingaccountbalance.js +1 -1
- package/dist/sdk/models/shared/bankingaccountbalances.d.ts +9 -0
- package/dist/sdk/models/shared/bankingaccounts.d.ts +9 -0
- package/dist/sdk/models/shared/bankingtransactioncategories.d.ts +9 -0
- package/dist/sdk/models/shared/bankingtransactioncategory.d.ts +3 -0
- package/dist/sdk/models/shared/bankingtransactionref.d.ts +18 -0
- package/dist/sdk/models/shared/bankingtransactions.d.ts +9 -0
- package/dist/sdk/models/shared/banktransactiontype.d.ts +1 -1
- package/dist/sdk/models/shared/banktransactiontype.js +1 -1
- package/dist/sdk/models/shared/billedtotype.d.ts +3 -0
- package/dist/sdk/models/shared/billedtotype.js +3 -0
- package/dist/sdk/models/shared/billedtotype1.d.ts +3 -0
- package/dist/sdk/models/shared/billedtotype1.js +3 -0
- package/dist/sdk/models/shared/billlineitem.d.ts +37 -0
- package/dist/sdk/models/shared/billlineitem.js +45 -1
- package/dist/sdk/models/shared/commercecustomers.d.ts +9 -0
- package/dist/sdk/models/shared/commercedisputes.d.ts +9 -0
- package/dist/sdk/models/shared/commercelocations.d.ts +9 -0
- package/dist/sdk/models/shared/commerceorder.d.ts +6 -15
- package/dist/sdk/models/shared/commerceorder.js +4 -23
- package/dist/sdk/models/shared/commerceorders.d.ts +9 -0
- package/dist/sdk/models/shared/commercepayment.d.ts +14 -1
- package/dist/sdk/models/shared/commercepayment.js +10 -1
- package/dist/sdk/models/shared/commercepaymentmethod.d.ts +10 -3
- package/dist/sdk/models/shared/commercepaymentmethod.js +10 -2
- package/dist/sdk/models/shared/commercepaymentmethods.d.ts +9 -0
- package/dist/sdk/models/shared/commercepayments.d.ts +9 -0
- package/dist/sdk/models/shared/commerceproduct.d.ts +11 -2
- package/dist/sdk/models/shared/commerceproduct.js +7 -0
- package/dist/sdk/models/shared/commerceproductcategories.d.ts +9 -0
- package/dist/sdk/models/shared/commerceproducts.d.ts +9 -0
- package/dist/sdk/models/shared/commercereportcomponent.d.ts +12 -0
- package/dist/sdk/models/shared/commercereportdimension.d.ts +12 -0
- package/dist/sdk/models/shared/commercereporterror.d.ts +9 -0
- package/dist/sdk/models/shared/commercereportmeasure.d.ts +12 -0
- package/dist/sdk/models/shared/commercetransaction.d.ts +9 -0
- package/dist/sdk/models/shared/commercetransaction.js +7 -0
- package/dist/sdk/models/shared/commercetransactions.d.ts +9 -0
- package/dist/sdk/models/shared/companies.d.ts +9 -0
- package/dist/sdk/models/shared/company.d.ts +5 -0
- package/dist/sdk/models/shared/connection.d.ts +6 -0
- package/dist/sdk/models/shared/connections.d.ts +9 -0
- package/dist/sdk/models/shared/contactref.d.ts +8 -1
- package/dist/sdk/models/shared/contactref.js +1 -0
- package/dist/sdk/models/shared/createbankaccounttransaction.d.ts +12 -0
- package/dist/sdk/models/shared/creditnotelineitem.d.ts +3 -0
- package/dist/sdk/models/shared/creditnotestatus.d.ts +3 -0
- package/dist/sdk/models/shared/creditnotestatus.js +3 -0
- package/dist/sdk/models/shared/dataconnectionerror.d.ts +9 -0
- package/dist/sdk/models/shared/dataintegritydetails.d.ts +9 -0
- package/dist/sdk/models/shared/datastatus.d.ts +60 -1
- package/dist/sdk/models/shared/datastatus.js +49 -1
- package/dist/sdk/models/shared/enhancedcashflowtransaction.d.ts +11 -0
- package/dist/sdk/models/shared/enhancedcashflowtransactions.d.ts +1 -1
- package/dist/sdk/models/shared/enhancedinvoicereportitem.d.ts +10 -1
- package/dist/sdk/models/shared/enhancedinvoicesreport.d.ts +1 -1
- package/dist/sdk/models/shared/errormessage.d.ts +18 -0
- package/dist/sdk/models/shared/file.d.ts +9 -0
- package/dist/sdk/models/shared/halref.d.ts +3 -0
- package/dist/sdk/models/shared/index.d.ts +2 -2
- package/dist/sdk/models/shared/index.js +2 -2
- package/dist/sdk/models/shared/invoicelineitem.d.ts +3 -0
- package/dist/sdk/models/shared/items.d.ts +6 -0
- package/dist/sdk/models/shared/lendingcustomerref.d.ts +2 -2
- package/dist/sdk/models/shared/loansummaryreportitem.d.ts +4 -0
- package/dist/sdk/models/shared/loansummaryreportitem.js +5 -0
- package/dist/sdk/models/shared/orderdiscountallocation.d.ts +1 -1
- package/dist/sdk/models/shared/orderlineitem.d.ts +5 -5
- package/dist/sdk/models/shared/payment.d.ts +7 -1
- package/dist/sdk/models/shared/paymentmethodref.d.ts +14 -0
- package/dist/sdk/models/shared/paymentmethodref.js +53 -0
- package/dist/sdk/models/shared/productinventory.d.ts +3 -0
- package/dist/sdk/models/shared/productinventorylocation.d.ts +3 -0
- package/dist/sdk/models/shared/productprice.d.ts +3 -0
- package/dist/sdk/models/shared/productref.d.ts +1 -1
- package/dist/sdk/models/shared/productvariant.d.ts +3 -0
- package/dist/sdk/models/shared/productvariantref.d.ts +1 -1
- package/dist/sdk/models/shared/productvariantstatus.d.ts +3 -0
- package/dist/sdk/models/shared/productvariantstatus.js +3 -0
- package/dist/sdk/models/shared/projectref.d.ts +6 -0
- package/dist/sdk/models/shared/pulloperation.d.ts +57 -1
- package/dist/sdk/models/shared/pulloperation.js +14 -0
- package/dist/sdk/models/shared/pulloperations.d.ts +9 -0
- package/dist/sdk/models/shared/pushchangetype.d.ts +3 -0
- package/dist/sdk/models/shared/pushchangetype.js +3 -0
- package/dist/sdk/models/shared/pushfieldvalidation.d.ts +9 -0
- package/dist/sdk/models/shared/pushoperation.d.ts +11 -0
- package/dist/sdk/models/shared/pushoperationchange.d.ts +6 -0
- package/dist/sdk/models/shared/pushoperationref.d.ts +3 -0
- package/dist/sdk/models/shared/pushoperations.d.ts +9 -0
- package/dist/sdk/models/shared/pushoption.d.ts +12 -0
- package/dist/sdk/models/shared/pushoptionchoice.d.ts +12 -0
- package/dist/sdk/models/shared/pushoptionproperty.d.ts +12 -0
- package/dist/sdk/models/shared/pushoptiontype.d.ts +3 -0
- package/dist/sdk/models/shared/pushoptiontype.js +3 -0
- package/dist/sdk/models/shared/reportcomponentmeasure.d.ts +9 -0
- package/dist/sdk/models/shared/reportinfo.d.ts +3 -3
- package/dist/sdk/models/shared/reportinfo.js +1 -1
- package/dist/sdk/models/shared/reportitems.d.ts +10 -0
- package/dist/sdk/models/shared/reportitems.js +8 -0
- package/dist/sdk/models/shared/servicecharge.d.ts +1 -1
- package/dist/sdk/models/shared/trackingcategoryref.d.ts +6 -0
- package/dist/sdk/models/shared/transactioncategorystatus.d.ts +3 -0
- package/dist/sdk/models/shared/transactioncategorystatus.js +3 -0
- package/dist/sdk/models/shared/transactionsourceref.d.ts +3 -0
- package/dist/sdk/models/shared/transactionsourcetype.d.ts +3 -0
- package/dist/sdk/models/shared/transactionsourcetype.js +3 -0
- package/dist/sdk/models/shared/transferaccount.d.ts +3 -0
- package/dist/sdk/models/shared/transferaccount.js +3 -0
- package/dist/sdk/models/shared/validationitem.d.ts +9 -0
- package/dist/sdk/models/webhooks/accountcategoriesupdated.d.ts +9 -0
- package/dist/sdk/models/webhooks/clientratelimitreached.d.ts +9 -0
- package/dist/sdk/models/webhooks/clientratelimitreset.d.ts +9 -0
- package/dist/sdk/salescustomers.d.ts +3 -3
- package/dist/sdk/salescustomers.js +5 -5
- package/dist/sdk/salesdisputes.d.ts +3 -3
- package/dist/sdk/salesdisputes.js +5 -5
- package/dist/sdk/saleslocations.d.ts +3 -3
- package/dist/sdk/saleslocations.js +5 -5
- package/dist/sdk/salesmetrics.js +3 -3
- package/dist/sdk/salesorders.d.ts +3 -3
- package/dist/sdk/salesorders.js +5 -5
- package/dist/sdk/salespaymentmethods.d.ts +3 -3
- package/dist/sdk/salespaymentmethods.js +5 -5
- package/dist/sdk/salespayments.d.ts +3 -3
- package/dist/sdk/salespayments.js +5 -5
- package/dist/sdk/salesproductcategories.d.ts +3 -3
- package/dist/sdk/salesproductcategories.js +5 -5
- package/dist/sdk/salesproducts.d.ts +3 -3
- package/dist/sdk/salesproducts.js +5 -5
- package/dist/sdk/salesreports.js +2 -2
- package/dist/sdk/salestransactions.d.ts +3 -3
- package/dist/sdk/salestransactions.js +5 -5
- package/dist/sdk/sdk.d.ts +1 -0
- package/dist/sdk/sdk.js +3 -2
- package/dist/sdk/transactionsaccounttransactions.d.ts +3 -3
- package/dist/sdk/transactionsaccounttransactions.js +5 -5
- package/dist/sdk/transactionsdirectcosts.d.ts +6 -6
- package/dist/sdk/transactionsdirectcosts.js +11 -11
- package/dist/sdk/transactionsjournalentries.d.ts +3 -3
- package/dist/sdk/transactionsjournalentries.js +5 -5
- package/dist/sdk/transactionsjournals.d.ts +3 -3
- package/dist/sdk/transactionsjournals.js +5 -5
- package/dist/sdk/transactionstransfers.d.ts +3 -3
- package/dist/sdk/transactionstransfers.js +5 -5
- package/docs/models/operations/createaccountrequest.md +7 -8
- package/docs/models/operations/createaccountresponse.md +3 -3
- package/docs/models/operations/createbanktransactionsrequest.md +8 -9
- package/docs/models/operations/createbanktransactionsresponse.md +3 -3
- package/docs/models/operations/createcompanyresponse.md +3 -3
- package/docs/models/operations/createconnectionrequest.md +1 -1
- package/docs/models/operations/createconnectionrequestbody.md +3 -3
- package/docs/models/operations/createconnectionresponse.md +3 -3
- package/docs/models/operations/createdirectcostrequest.md +7 -8
- package/docs/models/operations/createdirectcostresponse.md +3 -3
- package/docs/models/operations/createpaymentrequest.md +12 -0
- package/docs/models/operations/createpaymentresponse.md +12 -0
- package/docs/models/operations/createsupplierrequest.md +7 -8
- package/docs/models/operations/createsupplierresponse.md +3 -3
- package/docs/models/operations/createtransferrequest.md +7 -8
- package/docs/models/operations/createtransferresponse.md +3 -3
- package/docs/models/operations/deletecompanyrequest.md +1 -1
- package/docs/models/operations/deletecompanyresponse.md +3 -3
- package/docs/models/operations/deleteconnectionrequest.md +2 -2
- package/docs/models/operations/deleteconnectionresponse.md +3 -3
- package/docs/models/operations/downloadaccountingbillattachmentrequest.md +4 -4
- package/docs/models/operations/downloadaccountingbillattachmentresponse.md +3 -3
- package/docs/models/operations/downloadaccountingcustomerattachmentrequest.md +4 -4
- package/docs/models/operations/downloadaccountingcustomerattachmentresponse.md +3 -3
- package/docs/models/operations/downloadaccountingdirectcostattachmentrequest.md +4 -4
- package/docs/models/operations/downloadaccountingdirectcostattachmentresponse.md +3 -3
- package/docs/models/operations/downloadaccountingdirectincomeattachmentrequest.md +6 -6
- package/docs/models/operations/downloadaccountingdirectincomeattachmentresponse.md +3 -3
- package/docs/models/operations/downloadaccountinginvoiceattachmentrequest.md +4 -4
- package/docs/models/operations/downloadaccountinginvoiceattachmentresponse.md +3 -3
- package/docs/models/operations/downloadaccountinginvoicepdfrequest.md +2 -2
- package/docs/models/operations/downloadaccountinginvoicepdfresponse.md +6 -6
- package/docs/models/operations/downloadaccountingsupplierattachmentrequest.md +4 -4
- package/docs/models/operations/downloadaccountingsupplierattachmentresponse.md +3 -3
- package/docs/models/operations/downloadexcelreportrequest.md +1 -1
- package/docs/models/operations/downloadexcelreportresponse.md +3 -3
- package/docs/models/operations/downloadfilesrequest.md +1 -1
- package/docs/models/operations/downloadfilesresponse.md +3 -3
- package/docs/models/operations/generateexcelreportrequest.md +1 -1
- package/docs/models/operations/generateexcelreportresponse.md +3 -3
- package/docs/models/operations/generateloansummaryrequest.md +9 -0
- package/docs/models/operations/generateloansummaryresponse.md +11 -0
- package/docs/models/operations/generateloansummarysourcetype.md +12 -0
- package/docs/models/operations/generateloantransactionsrequest.md +9 -0
- package/docs/models/operations/generateloantransactionsresponse.md +11 -0
- package/docs/models/operations/generateloantransactionssourcetype.md +12 -0
- package/docs/models/operations/getaccountingaccountrequest.md +2 -2
- package/docs/models/operations/getaccountingaccountresponse.md +3 -3
- package/docs/models/operations/getaccountingaccounttransactionrequest.md +5 -5
- package/docs/models/operations/getaccountingaccounttransactionresponse.md +3 -3
- package/docs/models/operations/getaccountingagedcreditorsreportrequest.md +1 -1
- package/docs/models/operations/getaccountingagedcreditorsreportresponse.md +3 -3
- package/docs/models/operations/getaccountingageddebtorsreportrequest.md +1 -1
- package/docs/models/operations/getaccountingageddebtorsreportresponse.md +3 -3
- package/docs/models/operations/getaccountingbalancesheetrequest.md +2 -2
- package/docs/models/operations/getaccountingbalancesheetresponse.md +3 -3
- package/docs/models/operations/getaccountingbankaccountrequest.md +3 -3
- package/docs/models/operations/getaccountingbankaccountresponse.md +3 -3
- package/docs/models/operations/getaccountingbillattachmentrequest.md +4 -4
- package/docs/models/operations/getaccountingbillattachmentresponse.md +3 -3
- package/docs/models/operations/getaccountingbillcreditnoterequest.md +4 -4
- package/docs/models/operations/getaccountingbillcreditnoteresponse.md +3 -3
- package/docs/models/operations/getaccountingbillpaymentrequest.md +4 -4
- package/docs/models/operations/getaccountingbillpaymentresponse.md +3 -3
- package/docs/models/operations/getaccountingbillrequest.md +2 -2
- package/docs/models/operations/getaccountingbillresponse.md +3 -3
- package/docs/models/operations/getaccountingcashflowstatementrequest.md +2 -2
- package/docs/models/operations/getaccountingcashflowstatementresponse.md +3 -3
- package/docs/models/operations/getaccountingcreditnoterequest.md +2 -2
- package/docs/models/operations/getaccountingcreditnoteresponse.md +3 -3
- package/docs/models/operations/getaccountingcustomerattachmentrequest.md +4 -4
- package/docs/models/operations/getaccountingcustomerattachmentresponse.md +3 -3
- package/docs/models/operations/getaccountingcustomerrequest.md +2 -2
- package/docs/models/operations/getaccountingcustomerresponse.md +3 -3
- package/docs/models/operations/getaccountingdirectcostattachmentrequest.md +4 -4
- package/docs/models/operations/getaccountingdirectcostattachmentresponse.md +3 -3
- package/docs/models/operations/getaccountingdirectcostrequest.md +3 -3
- package/docs/models/operations/getaccountingdirectcostresponse.md +3 -3
- package/docs/models/operations/getaccountingdirectincomeattachmentrequest.md +7 -7
- package/docs/models/operations/getaccountingdirectincomeattachmentresponse.md +3 -3
- package/docs/models/operations/getaccountingdirectincomerequest.md +5 -5
- package/docs/models/operations/getaccountingdirectincomeresponse.md +3 -3
- package/docs/models/operations/getaccountinginvoiceattachmentrequest.md +4 -4
- package/docs/models/operations/getaccountinginvoiceattachmentresponse.md +3 -3
- package/docs/models/operations/getaccountinginvoicerequest.md +2 -2
- package/docs/models/operations/getaccountinginvoiceresponse.md +3 -3
- package/docs/models/operations/getaccountingjournalentryrequest.md +4 -4
- package/docs/models/operations/getaccountingjournalentryresponse.md +3 -3
- package/docs/models/operations/getaccountingjournalrequest.md +2 -2
- package/docs/models/operations/getaccountingjournalresponse.md +3 -3
- package/docs/models/operations/getaccountingpaymentrequest.md +2 -2
- package/docs/models/operations/getaccountingpaymentresponse.md +3 -3
- package/docs/models/operations/getaccountingprofilerequest.md +1 -1
- package/docs/models/operations/getaccountingprofileresponse.md +3 -3
- package/docs/models/operations/getaccountingprofitandlossrequest.md +2 -2
- package/docs/models/operations/getaccountingprofitandlossresponse.md +3 -3
- package/docs/models/operations/getaccountingsupplierattachmentrequest.md +4 -4
- package/docs/models/operations/getaccountingsupplierattachmentresponse.md +3 -3
- package/docs/models/operations/getaccountingsupplierrequest.md +2 -2
- package/docs/models/operations/getaccountingsupplierresponse.md +3 -3
- package/docs/models/operations/getaccountingtransferrequest.md +3 -3
- package/docs/models/operations/getaccountingtransferresponse.md +3 -3
- package/docs/models/operations/getbankingaccountrequest.md +3 -3
- package/docs/models/operations/getbankingaccountresponse.md +3 -3
- package/docs/models/operations/getbankingtransactioncategoryrequest.md +2 -2
- package/docs/models/operations/getbankingtransactioncategoryresponse.md +3 -3
- package/docs/models/operations/getbankingtransactionrequest.md +2 -2
- package/docs/models/operations/getbankingtransactionresponse.md +3 -3
- package/docs/models/operations/getcategorizedbalancesheetstatementrequest.md +1 -1
- package/docs/models/operations/getcategorizedbalancesheetstatementresponse.md +3 -3
- package/docs/models/operations/getcategorizedbankstatementrequest.md +1 -1
- package/docs/models/operations/getcategorizedbankstatementresponse.md +3 -3
- package/docs/models/operations/getcategorizedprofitandlossstatementrequest.md +2 -2
- package/docs/models/operations/getcategorizedprofitandlossstatementresponse.md +3 -3
- package/docs/models/operations/getcommercecustomerrequest.md +2 -2
- package/docs/models/operations/getcommercecustomerresponse.md +3 -3
- package/docs/models/operations/getcommercecustomerretentionmetricsrequest.md +2 -2
- package/docs/models/operations/getcommercecustomerretentionmetricsresponse.md +3 -3
- package/docs/models/operations/getcommercedisputerequest.md +2 -2
- package/docs/models/operations/getcommercedisputeresponse.md +3 -3
- package/docs/models/operations/getcommercelifetimevaluemetricsrequest.md +2 -2
- package/docs/models/operations/getcommercelifetimevaluemetricsresponse.md +3 -3
- package/docs/models/operations/getcommercelocationrequest.md +2 -2
- package/docs/models/operations/getcommercelocationresponse.md +3 -3
- package/docs/models/operations/getcommerceorderrequest.md +2 -2
- package/docs/models/operations/getcommerceorderresponse.md +3 -3
- package/docs/models/operations/getcommerceordersreportrequest.md +2 -2
- package/docs/models/operations/getcommerceordersreportresponse.md +3 -3
- package/docs/models/operations/getcommercepaymentmethodrequest.md +2 -2
- package/docs/models/operations/getcommercepaymentmethodresponse.md +3 -3
- package/docs/models/operations/getcommercepaymentrequest.md +2 -2
- package/docs/models/operations/getcommercepaymentresponse.md +3 -3
- package/docs/models/operations/getcommerceproductcategoryrequest.md +2 -2
- package/docs/models/operations/getcommerceproductcategoryresponse.md +3 -3
- package/docs/models/operations/getcommerceproductrequest.md +2 -2
- package/docs/models/operations/getcommerceproductresponse.md +3 -3
- package/docs/models/operations/getcommerceprofilerequest.md +2 -2
- package/docs/models/operations/getcommerceprofileresponse.md +3 -3
- package/docs/models/operations/getcommercerefundsreportrequest.md +2 -2
- package/docs/models/operations/getcommercerefundsreportresponse.md +3 -3
- package/docs/models/operations/getcommercerevenuemetricsrequest.md +2 -2
- package/docs/models/operations/getcommercerevenuemetricsresponse.md +3 -3
- package/docs/models/operations/getcommercetransactionrequest.md +2 -2
- package/docs/models/operations/getcommercetransactionresponse.md +3 -3
- package/docs/models/operations/getcompanyrequest.md +1 -1
- package/docs/models/operations/getcompanyresponse.md +3 -3
- package/docs/models/operations/getconnectionrequest.md +2 -2
- package/docs/models/operations/getconnectionresponse.md +3 -3
- package/docs/models/operations/getcreatebanktransactionsmodelrequest.md +3 -3
- package/docs/models/operations/getcreatebanktransactionsmodelresponse.md +3 -3
- package/docs/models/operations/getcreatechartofaccountsmodelrequest.md +2 -2
- package/docs/models/operations/getcreatechartofaccountsmodelresponse.md +3 -3
- package/docs/models/operations/getcreatedirectcostsmodelrequest.md +2 -2
- package/docs/models/operations/getcreatedirectcostsmodelresponse.md +3 -3
- package/docs/models/operations/getcreateoperationrequest.md +1 -1
- package/docs/models/operations/getcreateoperationresponse.md +3 -3
- package/docs/models/operations/{getcreateupdatebankaccountsmodelrequest.md → getcreatepaymentsmodelrequest.md} +3 -3
- package/docs/models/operations/{getcreateupdatebankaccountsmodelresponse.md → getcreatepaymentsmodelresponse.md} +4 -4
- package/docs/models/operations/getcreatetransfersmodelrequest.md +2 -2
- package/docs/models/operations/getcreatetransfersmodelresponse.md +3 -3
- package/docs/models/operations/getcreateupdatesuppliersmodelrequest.md +2 -2
- package/docs/models/operations/getcreateupdatesuppliersmodelresponse.md +3 -3
- package/docs/models/operations/getdataintegritystatusrequest.md +1 -1
- package/docs/models/operations/getdataintegritystatusresponse.md +3 -3
- package/docs/models/operations/getdataintegritysummariesrequest.md +1 -1
- package/docs/models/operations/getdataintegritysummariesresponse.md +3 -3
- package/docs/models/operations/getdatastatusrequest.md +1 -1
- package/docs/models/operations/getdatastatusresponse.md +3 -3
- package/docs/models/operations/getexcelreportgenerationstatusrequest.md +1 -1
- package/docs/models/operations/getexcelreportgenerationstatusresponse.md +3 -3
- package/docs/models/operations/getloansummaryrequest.md +4 -3
- package/docs/models/operations/getloansummaryresponse.md +3 -3
- package/docs/models/operations/getloansummarysourcetype.md +12 -0
- package/docs/models/operations/getpulloperationrequest.md +4 -4
- package/docs/models/operations/getpulloperationresponse.md +3 -3
- package/docs/models/operations/isagedcreditorsreportavailablerequest.md +1 -1
- package/docs/models/operations/isagedcreditorsreportavailableresponse.md +3 -3
- package/docs/models/operations/isageddebtorsreportavailablerequest.md +1 -1
- package/docs/models/operations/isageddebtorsreportavailableresponse.md +6 -6
- package/docs/models/operations/listaccountingaccountsrequest.md +1 -1
- package/docs/models/operations/listaccountingaccountsresponse.md +3 -3
- package/docs/models/operations/listaccountingaccounttransactionsrequest.md +2 -2
- package/docs/models/operations/listaccountingaccounttransactionsresponse.md +3 -3
- package/docs/models/operations/listaccountingbankaccountsrequest.md +2 -2
- package/docs/models/operations/listaccountingbankaccountsresponse.md +3 -3
- package/docs/models/operations/listaccountingbankaccounttransactionsrequest.md +3 -3
- package/docs/models/operations/listaccountingbankaccounttransactionsresponse.md +3 -3
- package/docs/models/operations/listaccountingbillattachmentsrequest.md +3 -3
- package/docs/models/operations/listaccountingbillattachmentsresponse.md +3 -3
- package/docs/models/operations/listaccountingbillcreditnotesrequest.md +1 -1
- package/docs/models/operations/listaccountingbillcreditnotesresponse.md +3 -3
- package/docs/models/operations/listaccountingbillpaymentsrequest.md +1 -1
- package/docs/models/operations/listaccountingbillpaymentsresponse.md +3 -3
- package/docs/models/operations/listaccountingbillsrequest.md +1 -1
- package/docs/models/operations/listaccountingbillsresponse.md +3 -3
- package/docs/models/operations/listaccountingcreditnotesrequest.md +1 -1
- package/docs/models/operations/listaccountingcreditnotesresponse.md +3 -3
- package/docs/models/operations/listaccountingcustomerattachmentsrequest.md +3 -3
- package/docs/models/operations/listaccountingcustomerattachmentsresponse.md +3 -3
- package/docs/models/operations/listaccountingcustomersrequest.md +1 -1
- package/docs/models/operations/listaccountingcustomersresponse.md +3 -3
- package/docs/models/operations/listaccountingdirectcostattachmentsrequest.md +3 -3
- package/docs/models/operations/listaccountingdirectcostattachmentsresponse.md +3 -3
- package/docs/models/operations/listaccountingdirectcostsrequest.md +2 -2
- package/docs/models/operations/listaccountingdirectcostsresponse.md +3 -3
- package/docs/models/operations/listaccountingdirectincomeattachmentsrequest.md +5 -5
- package/docs/models/operations/listaccountingdirectincomeattachmentsresponse.md +3 -3
- package/docs/models/operations/listaccountingdirectincomesrequest.md +2 -2
- package/docs/models/operations/listaccountingdirectincomesresponse.md +3 -3
- package/docs/models/operations/listaccountinginvoiceattachmentsrequest.md +3 -3
- package/docs/models/operations/listaccountinginvoiceattachmentsresponse.md +3 -3
- package/docs/models/operations/listaccountinginvoicesrequest.md +1 -1
- package/docs/models/operations/listaccountinginvoicesresponse.md +3 -3
- package/docs/models/operations/listaccountingjournalentriesrequest.md +1 -1
- package/docs/models/operations/listaccountingjournalentriesresponse.md +3 -3
- package/docs/models/operations/listaccountingjournalsrequest.md +1 -1
- package/docs/models/operations/listaccountingjournalsresponse.md +3 -3
- package/docs/models/operations/listaccountingpaymentsrequest.md +1 -1
- package/docs/models/operations/listaccountingpaymentsresponse.md +3 -3
- package/docs/models/operations/listaccountingsupplierattachmentsrequest.md +3 -3
- package/docs/models/operations/listaccountingsupplierattachmentsresponse.md +3 -3
- package/docs/models/operations/listaccountingsuppliersrequest.md +1 -1
- package/docs/models/operations/listaccountingsuppliersresponse.md +3 -3
- package/docs/models/operations/listaccountingtransfersrequest.md +2 -2
- package/docs/models/operations/listaccountingtransfersresponse.md +3 -3
- package/docs/models/operations/listbankingaccountbalancesrequest.md +2 -2
- package/docs/models/operations/listbankingaccountbalancesresponse.md +3 -3
- package/docs/models/operations/listbankingaccountsrequest.md +2 -2
- package/docs/models/operations/listbankingaccountsresponse.md +3 -3
- package/docs/models/operations/listbankingtransactioncategoriesrequest.md +2 -2
- package/docs/models/operations/listbankingtransactioncategoriesresponse.md +3 -3
- package/docs/models/operations/listbankingtransactionsrequest.md +2 -2
- package/docs/models/operations/listbankingtransactionsresponse.md +3 -3
- package/docs/models/operations/listcommercecustomersrequest.md +2 -2
- package/docs/models/operations/listcommercecustomersresponse.md +3 -3
- package/docs/models/operations/listcommercedisputesrequest.md +2 -2
- package/docs/models/operations/listcommercedisputesresponse.md +3 -3
- package/docs/models/operations/listcommercelocationsrequest.md +2 -2
- package/docs/models/operations/listcommercelocationsresponse.md +3 -3
- package/docs/models/operations/listcommerceordersrequest.md +2 -2
- package/docs/models/operations/listcommerceordersresponse.md +3 -3
- package/docs/models/operations/listcommercepaymentmethodsrequest.md +2 -2
- package/docs/models/operations/listcommercepaymentmethodsresponse.md +3 -3
- package/docs/models/operations/listcommercepaymentsrequest.md +2 -2
- package/docs/models/operations/listcommercepaymentsresponse.md +3 -3
- package/docs/models/operations/listcommerceproductcategoriesrequest.md +2 -2
- package/docs/models/operations/listcommerceproductcategoriesresponse.md +3 -3
- package/docs/models/operations/listcommerceproductsrequest.md +2 -2
- package/docs/models/operations/listcommerceproductsresponse.md +3 -3
- package/docs/models/operations/listcommercetransactionsrequest.md +2 -2
- package/docs/models/operations/listcommercetransactionsresponse.md +3 -3
- package/docs/models/operations/listcompaniesresponse.md +3 -3
- package/docs/models/operations/listconnectionsrequest.md +1 -1
- package/docs/models/operations/listconnectionsresponse.md +3 -3
- package/docs/models/operations/listcreateoperationsrequest.md +1 -1
- package/docs/models/operations/listcreateoperationsresponse.md +3 -3
- package/docs/models/operations/listdataintegritydetailsrequest.md +1 -1
- package/docs/models/operations/listdataintegritydetailsresponse.md +3 -3
- package/docs/models/operations/listfilesrequest.md +1 -1
- package/docs/models/operations/listfilesresponse.md +3 -3
- package/docs/models/operations/listloantransactionsrequest.md +2 -2
- package/docs/models/operations/listloantransactionsresponse.md +3 -3
- package/docs/models/operations/listloantransactionssourcetype.md +1 -1
- package/docs/models/operations/listpulloperationsrequest.md +1 -1
- package/docs/models/operations/listpulloperationsresponse.md +3 -3
- package/docs/models/operations/listreconciledinvoicesrequest.md +1 -1
- package/docs/models/operations/listreconciledinvoicesresponse.md +3 -3
- package/docs/models/operations/refreshalldatatypesrequest.md +1 -1
- package/docs/models/operations/refreshalldatatypesresponse.md +3 -3
- package/docs/models/operations/refreshdatatyperequest.md +1 -1
- package/docs/models/operations/refreshdatatyperesponse.md +3 -3
- package/docs/models/operations/unlinkconnectionrequest.md +2 -2
- package/docs/models/operations/unlinkconnectionresponse.md +3 -3
- package/docs/models/operations/updatecompanyrequest.md +1 -1
- package/docs/models/operations/updatecompanyresponse.md +3 -3
- package/docs/models/operations/uploadfilesrequest.md +2 -2
- package/docs/models/operations/uploadfilesresponse.md +3 -3
- package/docs/models/shared/accountingaccount.md +3 -2
- package/docs/models/shared/accountingaccounts.md +3 -3
- package/docs/models/shared/accountingaccounttransaction.md +2 -2
- package/docs/models/shared/accountingaccounttransactions.md +3 -3
- package/docs/models/shared/accountingagedcreditorreport.md +1 -1
- package/docs/models/shared/accountingageddebtorreport.md +1 -1
- package/docs/models/shared/accountingattachment.md +1 -1
- package/docs/models/shared/accountingbankaccount.md +3 -2
- package/docs/models/shared/accountingbankaccounts.md +3 -3
- package/docs/models/shared/accountingbanktransaction.md +8 -8
- package/docs/models/shared/accountingbanktransactions.md +3 -3
- package/docs/models/shared/accountingbill.md +2 -2
- package/docs/models/shared/accountingbillcreditnote.md +3 -3
- package/docs/models/shared/accountingbillcreditnotes.md +3 -3
- package/docs/models/shared/accountingbillpayment.md +5 -5
- package/docs/models/shared/accountingbillpayments.md +3 -3
- package/docs/models/shared/accountingbills.md +3 -3
- package/docs/models/shared/accountingbillwithholdingtax.md +4 -4
- package/docs/models/shared/accountingcompanyinfo.md +1 -0
- package/docs/models/shared/accountingcreateaccountresponse.md +16 -16
- package/docs/models/shared/accountingcreatebanktransactions.md +4 -4
- package/docs/models/shared/accountingcreatebanktransactionsresponse.md +4 -4
- package/docs/models/shared/accountingcreatedirectcostresponse.md +16 -16
- package/docs/models/shared/accountingcreatepaymentresponse.md +21 -0
- package/docs/models/shared/accountingcreatesupplierresponse.md +5 -5
- package/docs/models/shared/accountingcreatetransferresponse.md +5 -5
- package/docs/models/shared/accountingcreditnote.md +4 -4
- package/docs/models/shared/accountingcreditnotes.md +3 -3
- package/docs/models/shared/accountingcustomer.md +1 -1
- package/docs/models/shared/accountingcustomers.md +3 -3
- package/docs/models/shared/accountingdirectcost.md +1 -1
- package/docs/models/shared/accountingdirectcosts.md +3 -3
- package/docs/models/shared/accountingdirectincome.md +2 -2
- package/docs/models/shared/accountingdirectincomes.md +3 -3
- package/docs/models/shared/accountinginvoice.md +6 -6
- package/docs/models/shared/accountinginvoices.md +3 -3
- package/docs/models/shared/accountinginvoicesalesorderreference.md +4 -4
- package/docs/models/shared/accountingjournal.md +2 -2
- package/docs/models/shared/accountingjournalentries.md +3 -3
- package/docs/models/shared/accountingjournalentry.md +2 -2
- package/docs/models/shared/accountingjournals.md +3 -3
- package/docs/models/shared/accountingpayment.md +4 -4
- package/docs/models/shared/accountingpayments.md +3 -3
- package/docs/models/shared/accountingsupplier.md +1 -1
- package/docs/models/shared/accountingsuppliers.md +3 -3
- package/docs/models/shared/accountingtransfer.md +3 -3
- package/docs/models/shared/accountingtransfercontactref.md +4 -4
- package/docs/models/shared/accountingtransfers.md +3 -3
- package/docs/models/shared/accountspayabletracking.md +7 -7
- package/docs/models/shared/accountsreceivabletracking.md +2 -2
- package/docs/models/shared/bankingaccountbalance.md +1 -1
- package/docs/models/shared/bankingaccountbalances.md +3 -3
- package/docs/models/shared/bankingaccounts.md +3 -3
- package/docs/models/shared/bankingtransactioncategories.md +3 -3
- package/docs/models/shared/bankingtransactioncategory.md +1 -1
- package/docs/models/shared/bankingtransactionref.md +6 -6
- package/docs/models/shared/bankingtransactions.md +3 -3
- package/docs/models/shared/banktransactiontype.md +1 -1
- package/docs/models/shared/billedtotype.md +2 -0
- package/docs/models/shared/billedtotype1.md +2 -0
- package/docs/models/shared/billlineitem.md +4 -2
- package/docs/models/shared/billlineitemrecordlinereference.md +12 -0
- package/docs/models/shared/billlineitemrecordlinereferencedatatype.md +10 -0
- package/docs/models/shared/commercecompanyinfo.md +1 -1
- package/docs/models/shared/commercecustomers.md +3 -3
- package/docs/models/shared/commercedispute.md +1 -1
- package/docs/models/shared/commercedisputes.md +3 -3
- package/docs/models/shared/commercelocations.md +3 -3
- package/docs/models/shared/commerceorder.md +5 -5
- package/docs/models/shared/commerceorders.md +3 -3
- package/docs/models/shared/commercepayment.md +3 -2
- package/docs/models/shared/commercepaymentmethod.md +7 -7
- package/docs/models/shared/commercepaymentmethods.md +3 -3
- package/docs/models/shared/commercepaymentmethodstatus.md +12 -0
- package/docs/models/shared/commercepayments.md +3 -3
- package/docs/models/shared/commerceproduct.md +9 -8
- package/docs/models/shared/commerceproductcategories.md +3 -3
- package/docs/models/shared/commerceproducts.md +3 -3
- package/docs/models/shared/commercereportcomponent.md +4 -4
- package/docs/models/shared/commercereportdimension.md +3 -3
- package/docs/models/shared/commercereportdimensionitems.md +3 -3
- package/docs/models/shared/commercereporterror.md +5 -5
- package/docs/models/shared/commercereportmeasure.md +6 -6
- package/docs/models/shared/commercetransaction.md +1 -0
- package/docs/models/shared/commercetransactions.md +3 -3
- package/docs/models/shared/companies.md +3 -3
- package/docs/models/shared/company.md +2 -2
- package/docs/models/shared/connection.md +2 -2
- package/docs/models/shared/connections.md +3 -3
- package/docs/models/shared/contactref.md +4 -4
- package/docs/models/shared/createbankaccounttransaction.md +4 -4
- package/docs/models/shared/creditnotelineitem.md +1 -1
- package/docs/models/shared/creditnotestatus.md +2 -0
- package/docs/models/shared/dataconnectionerror.md +3 -3
- package/docs/models/shared/dataintegritydetails.md +3 -3
- package/docs/models/shared/datastatus.md +4 -4
- package/docs/models/shared/datastatusdatatypes.md +51 -0
- package/docs/models/shared/enhancedcashflowtransaction.md +1 -1
- package/docs/models/shared/enhancedcashflowtransactions.md +5 -5
- package/docs/models/shared/enhancedinvoicereportitem.md +4 -4
- package/docs/models/shared/enhancedinvoicesreport.md +1 -1
- package/docs/models/shared/errormessage.md +8 -8
- package/docs/models/shared/file.md +3 -3
- package/docs/models/shared/halref.md +3 -3
- package/docs/models/shared/invoicelineitem.md +1 -1
- package/docs/models/shared/items.md +4 -4
- package/docs/models/shared/lendingcustomerref.md +4 -4
- package/docs/models/shared/loansummaryreportitem.md +1 -0
- package/docs/models/shared/orderdiscountallocation.md +4 -4
- package/docs/models/shared/orderlineitem.md +5 -5
- package/docs/models/shared/payment.md +3 -3
- package/docs/models/shared/paymentmethodref.md +11 -0
- package/docs/models/shared/productinventory.md +1 -1
- package/docs/models/shared/productinventorylocation.md +1 -1
- package/docs/models/shared/productprice.md +1 -1
- package/docs/models/shared/productref.md +4 -4
- package/docs/models/shared/productvariant.md +1 -1
- package/docs/models/shared/productvariantref.md +4 -4
- package/docs/models/shared/productvariantstatus.md +2 -0
- package/docs/models/shared/projectref.md +4 -4
- package/docs/models/shared/pulloperation.md +10 -8
- package/docs/models/shared/pulloperations.md +3 -3
- package/docs/models/shared/pulloperationstatus.md +2 -0
- package/docs/models/shared/pushchangetype.md +2 -0
- package/docs/models/shared/pushfieldvalidation.md +5 -5
- package/docs/models/shared/pushoperation.md +4 -4
- package/docs/models/shared/pushoperationchange.md +5 -5
- package/docs/models/shared/pushoperationref.md +1 -1
- package/docs/models/shared/pushoperations.md +3 -3
- package/docs/models/shared/pushoption.md +4 -4
- package/docs/models/shared/pushoptionchoice.md +4 -4
- package/docs/models/shared/pushoptionproperty.md +4 -4
- package/docs/models/shared/pushoptiontype.md +2 -0
- package/docs/models/shared/reportcomponentmeasure.md +5 -5
- package/docs/models/shared/reportinfo.md +3 -3
- package/docs/models/shared/reportitems.md +2 -1
- package/docs/models/shared/reportitemsloantransactiontype.md +2 -0
- package/docs/models/shared/servicecharge.md +1 -1
- package/docs/models/shared/trackingcategoryref.md +4 -4
- package/docs/models/shared/transactioncategorystatus.md +2 -0
- package/docs/models/shared/transactionsourceref.md +1 -1
- package/docs/models/shared/transactionsourcetype.md +2 -0
- package/docs/models/shared/transferaccount.md +2 -0
- package/docs/models/shared/validationitem.md +5 -5
- package/docs/models/webhooks/accountcategoriesupdatedresponse.md +5 -5
- package/docs/models/webhooks/clientratelimitreachedresponse.md +5 -5
- package/docs/models/webhooks/clientratelimitresetresponse.md +5 -5
- package/docs/sdks/accountingbankdata/README.md +21 -20
- package/docs/sdks/accountingbankdataaccounts/README.md +37 -35
- package/docs/sdks/accountspayable/README.md +1 -0
- package/docs/sdks/accountspayablebillcreditnotes/README.md +35 -33
- package/docs/sdks/accountspayablebillpayments/README.md +35 -33
- package/docs/sdks/accountspayablebills/README.md +85 -80
- package/docs/sdks/accountspayablesuppliers/README.md +85 -80
- package/docs/sdks/accountsreceivable/README.md +1 -0
- package/docs/sdks/accountsreceivablecreditnotes/README.md +35 -33
- package/docs/sdks/accountsreceivablecustomers/README.md +85 -80
- package/docs/sdks/accountsreceivabledirectincomes/README.md +87 -83
- package/docs/sdks/accountsreceivableinvoices/README.md +114 -108
- package/docs/sdks/accountsreceivablepayments/README.md +35 -33
- package/docs/sdks/accountsreceivablereports/README.md +54 -49
- package/docs/sdks/banking/README.md +1 -0
- package/docs/sdks/bankingaccountbalances/README.md +21 -20
- package/docs/sdks/bankingaccounts/README.md +37 -35
- package/docs/sdks/bankingcategorizedstatement/README.md +19 -18
- package/docs/sdks/bankingtransactioncategories/README.md +37 -35
- package/docs/sdks/bankingtransactions/README.md +37 -35
- package/docs/sdks/codatlending/README.md +1 -0
- package/docs/sdks/companies/README.md +67 -62
- package/docs/sdks/companyinfo/README.md +26 -23
- package/docs/sdks/connections/README.md +75 -72
- package/docs/sdks/dataintegrity/README.md +42 -40
- package/docs/sdks/excelreports/README.md +37 -33
- package/docs/sdks/fileupload/README.md +44 -40
- package/docs/sdks/financialstatements/README.md +1 -0
- package/docs/sdks/financialstatementsaccounts/README.md +35 -33
- package/docs/sdks/financialstatementsbalancesheet/README.md +32 -30
- package/docs/sdks/financialstatementscashflow/README.md +18 -16
- package/docs/sdks/financialstatementsprofitandloss/README.md +32 -30
- package/docs/sdks/liabilities/README.md +126 -24
- package/docs/sdks/loanwriteback/README.md +1 -0
- package/docs/sdks/loanwritebackaccounts/README.md +61 -58
- package/docs/sdks/loanwritebackbanktransactions/README.md +45 -49
- package/docs/sdks/loanwritebackcreateoperations/README.md +32 -30
- package/docs/sdks/loanwritebackdirectcosts/README.md +84 -116
- package/docs/sdks/loanwritebackpayments/README.md +140 -0
- package/docs/sdks/loanwritebacksuppliers/README.md +49 -64
- package/docs/sdks/loanwritebacktransfers/README.md +64 -77
- package/docs/sdks/managedata/README.md +12 -10
- package/docs/sdks/managedatapulloperations/README.md +32 -30
- package/docs/sdks/managedatarefresh/README.md +26 -24
- package/docs/sdks/sales/README.md +1 -0
- package/docs/sdks/salescustomers/README.md +37 -35
- package/docs/sdks/salesdisputes/README.md +37 -35
- package/docs/sdks/saleslocations/README.md +34 -31
- package/docs/sdks/salesmetrics/README.md +53 -52
- package/docs/sdks/salesorders/README.md +37 -35
- package/docs/sdks/salespaymentmethods/README.md +37 -35
- package/docs/sdks/salespayments/README.md +37 -35
- package/docs/sdks/salesproductcategories/README.md +37 -35
- package/docs/sdks/salesproducts/README.md +37 -35
- package/docs/sdks/salesreports/README.md +36 -35
- package/docs/sdks/salestransactions/README.md +37 -35
- package/docs/sdks/transactions/README.md +1 -0
- package/docs/sdks/transactionsaccounttransactions/README.md +37 -35
- package/docs/sdks/transactionsdirectcosts/README.md +87 -82
- package/docs/sdks/transactionsjournalentries/README.md +35 -33
- package/docs/sdks/transactionsjournals/README.md +35 -33
- package/docs/sdks/transactionstransfers/README.md +37 -35
- package/package.json +5 -2
- package/dist/sdk/loanwritebackbankaccounts.d.ts +0 -39
- package/dist/sdk/models/operations/createbankaccount.d.ts +0 -27
- package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.d.ts +0 -20
- package/dist/sdk/models/shared/accountingcreatebankaccountresponse.d.ts +0 -112
- package/dist/sdk/models/shared/paymentmethodstatus.d.ts +0 -8
- package/dist/sdk/models/shared/paymentmethodstatus.js +0 -15
- package/docs/models/operations/createbankaccountrequest.md +0 -13
- package/docs/models/operations/createbankaccountresponse.md +0 -12
- package/docs/models/shared/accountingcreatebankaccountresponse.md +0 -21
- package/docs/models/shared/commerceordersupplementaldata.md +0 -12
- package/docs/models/shared/paymentmethodstatus.md +0 -12
- package/docs/sdks/loanwritebackbankaccounts/README.md +0 -126
package/dist/sdk/companies.js
CHANGED
|
@@ -147,7 +147,7 @@ var Companies = /** @class */ (function () {
|
|
|
147
147
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
148
148
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
149
149
|
headers["Accept"] = "application/json";
|
|
150
|
-
headers["user-agent"] =
|
|
150
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
151
151
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
152
152
|
retryConfig = retries;
|
|
153
153
|
if (!retryConfig) {
|
|
@@ -229,7 +229,7 @@ var Companies = /** @class */ (function () {
|
|
|
229
229
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
230
230
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
231
231
|
headers["Accept"] = "application/json";
|
|
232
|
-
headers["user-agent"] =
|
|
232
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
233
233
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
234
234
|
retryConfig = retries;
|
|
235
235
|
if (!retryConfig) {
|
|
@@ -304,7 +304,7 @@ var Companies = /** @class */ (function () {
|
|
|
304
304
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
305
305
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
306
306
|
headers["Accept"] = "application/json";
|
|
307
|
-
headers["user-agent"] =
|
|
307
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
308
308
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
309
309
|
retryConfig = retries;
|
|
310
310
|
if (!retryConfig) {
|
|
@@ -386,7 +386,7 @@ var Companies = /** @class */ (function () {
|
|
|
386
386
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
387
387
|
queryParams = utils.serializeQueryParams(req);
|
|
388
388
|
headers["Accept"] = "application/json";
|
|
389
|
-
headers["user-agent"] =
|
|
389
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
390
390
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
391
391
|
retryConfig = retries;
|
|
392
392
|
if (!retryConfig) {
|
|
@@ -477,7 +477,7 @@ var Companies = /** @class */ (function () {
|
|
|
477
477
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
478
478
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
479
479
|
headers["Accept"] = "application/json";
|
|
480
|
-
headers["user-agent"] =
|
|
480
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
481
481
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
482
482
|
retryConfig = retries;
|
|
483
483
|
if (!retryConfig) {
|
package/dist/sdk/companyinfo.js
CHANGED
|
@@ -117,7 +117,7 @@ var CompanyInfo = /** @class */ (function () {
|
|
|
117
117
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
118
118
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
119
119
|
headers["Accept"] = "application/json";
|
|
120
|
-
headers["user-agent"] =
|
|
120
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
121
121
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
122
122
|
retryConfig = retries;
|
|
123
123
|
if (!retryConfig) {
|
|
@@ -200,7 +200,7 @@ var CompanyInfo = /** @class */ (function () {
|
|
|
200
200
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
201
201
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
202
202
|
headers["Accept"] = "application/json";
|
|
203
|
-
headers["user-agent"] =
|
|
203
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
204
204
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
205
205
|
retryConfig = retries;
|
|
206
206
|
if (!retryConfig) {
|
package/dist/sdk/connections.js
CHANGED
|
@@ -145,7 +145,7 @@ var Connections = /** @class */ (function () {
|
|
|
145
145
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
146
146
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
147
147
|
headers["Accept"] = "application/json";
|
|
148
|
-
headers["user-agent"] =
|
|
148
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
149
149
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
150
150
|
retryConfig = retries;
|
|
151
151
|
if (!retryConfig) {
|
|
@@ -227,7 +227,7 @@ var Connections = /** @class */ (function () {
|
|
|
227
227
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
228
228
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
229
229
|
headers["Accept"] = "application/json";
|
|
230
|
-
headers["user-agent"] =
|
|
230
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
231
231
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
232
232
|
retryConfig = retries;
|
|
233
233
|
if (!retryConfig) {
|
|
@@ -302,7 +302,7 @@ var Connections = /** @class */ (function () {
|
|
|
302
302
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
303
303
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
304
304
|
headers["Accept"] = "application/json";
|
|
305
|
-
headers["user-agent"] =
|
|
305
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
306
306
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
307
307
|
retryConfig = retries;
|
|
308
308
|
if (!retryConfig) {
|
|
@@ -384,7 +384,7 @@ var Connections = /** @class */ (function () {
|
|
|
384
384
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
385
385
|
queryParams = utils.serializeQueryParams(req);
|
|
386
386
|
headers["Accept"] = "application/json";
|
|
387
|
-
headers["user-agent"] =
|
|
387
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
388
388
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
389
389
|
retryConfig = retries;
|
|
390
390
|
if (!retryConfig) {
|
|
@@ -475,7 +475,7 @@ var Connections = /** @class */ (function () {
|
|
|
475
475
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
476
476
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
477
477
|
headers["Accept"] = "application/json";
|
|
478
|
-
headers["user-agent"] =
|
|
478
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
479
479
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
480
480
|
retryConfig = retries;
|
|
481
481
|
if (!retryConfig) {
|
|
@@ -120,7 +120,7 @@ var DataIntegrity = /** @class */ (function () {
|
|
|
120
120
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
121
121
|
queryParams = utils.serializeQueryParams(req);
|
|
122
122
|
headers["Accept"] = "application/json";
|
|
123
|
-
headers["user-agent"] =
|
|
123
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
124
124
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
125
125
|
retryConfig = retries;
|
|
126
126
|
if (!retryConfig) {
|
|
@@ -208,7 +208,7 @@ var DataIntegrity = /** @class */ (function () {
|
|
|
208
208
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
209
209
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
210
210
|
headers["Accept"] = "application/json";
|
|
211
|
-
headers["user-agent"] =
|
|
211
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
212
212
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
213
213
|
retryConfig = retries;
|
|
214
214
|
if (!retryConfig) {
|
|
@@ -294,7 +294,7 @@ var DataIntegrity = /** @class */ (function () {
|
|
|
294
294
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
295
295
|
queryParams = utils.serializeQueryParams(req);
|
|
296
296
|
headers["Accept"] = "application/json";
|
|
297
|
-
headers["user-agent"] =
|
|
297
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
298
298
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
299
299
|
retryConfig = retries;
|
|
300
300
|
if (!retryConfig) {
|
package/dist/sdk/excelreports.js
CHANGED
|
@@ -132,7 +132,7 @@ var ExcelReports = /** @class */ (function () {
|
|
|
132
132
|
else {
|
|
133
133
|
headers["Accept"] = "application/json;q=1, application/octet-stream;q=0";
|
|
134
134
|
}
|
|
135
|
-
headers["user-agent"] =
|
|
135
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
136
136
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
137
137
|
retryConfig = retries;
|
|
138
138
|
if (!retryConfig) {
|
|
@@ -230,7 +230,7 @@ var ExcelReports = /** @class */ (function () {
|
|
|
230
230
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
231
231
|
queryParams = utils.serializeQueryParams(req);
|
|
232
232
|
headers["Accept"] = "application/json";
|
|
233
|
-
headers["user-agent"] =
|
|
233
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
234
234
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
235
235
|
retryConfig = retries;
|
|
236
236
|
if (!retryConfig) {
|
|
@@ -316,7 +316,7 @@ var ExcelReports = /** @class */ (function () {
|
|
|
316
316
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
317
317
|
queryParams = utils.serializeQueryParams(req);
|
|
318
318
|
headers["Accept"] = "application/json";
|
|
319
|
-
headers["user-agent"] =
|
|
319
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
320
320
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
321
321
|
retryConfig = retries;
|
|
322
322
|
if (!retryConfig) {
|
package/dist/sdk/fileupload.js
CHANGED
|
@@ -144,7 +144,7 @@ var FileUpload = /** @class */ (function () {
|
|
|
144
144
|
else {
|
|
145
145
|
headers["Accept"] = "application/json;q=1, application/octet-stream;q=0";
|
|
146
146
|
}
|
|
147
|
-
headers["user-agent"] =
|
|
147
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
148
148
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
149
149
|
retryConfig = retries;
|
|
150
150
|
if (!retryConfig) {
|
|
@@ -225,7 +225,7 @@ var FileUpload = /** @class */ (function () {
|
|
|
225
225
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
226
226
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
227
227
|
headers["Accept"] = "application/json";
|
|
228
|
-
headers["user-agent"] =
|
|
228
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
229
229
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
230
230
|
retryConfig = retries;
|
|
231
231
|
if (!retryConfig) {
|
|
@@ -324,7 +324,7 @@ var FileUpload = /** @class */ (function () {
|
|
|
324
324
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
325
325
|
headers = __assign(__assign(__assign({}, reqBodyHeaders), config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
326
326
|
headers["Accept"] = "application/json";
|
|
327
|
-
headers["user-agent"] =
|
|
327
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
328
328
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
329
329
|
retryConfig = retries;
|
|
330
330
|
if (!retryConfig) {
|
|
@@ -11,7 +11,7 @@ export declare class FinancialStatementsAccounts {
|
|
|
11
11
|
* @remarks
|
|
12
12
|
* The *Get account* endpoint returns a single account for a given accountId.
|
|
13
13
|
*
|
|
14
|
-
* [Accounts](https://docs.codat.io/
|
|
14
|
+
* [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are the categories a business uses to record accounting transactions.
|
|
15
15
|
*
|
|
16
16
|
* Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=chartOfAccounts) for integrations that support getting a specific account.
|
|
17
17
|
*
|
|
@@ -23,9 +23,9 @@ export declare class FinancialStatementsAccounts {
|
|
|
23
23
|
* List accounts
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
|
-
* The *List accounts* endpoint returns a list of [accounts](https://docs.codat.io/
|
|
26
|
+
* The *List accounts* endpoint returns a list of [accounts](https://docs.codat.io/lending-api#/schemas/Account) for a given company's connection.
|
|
27
27
|
*
|
|
28
|
-
* [Accounts](https://docs.codat.io/
|
|
28
|
+
* [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are the categories a business uses to record accounting transactions.
|
|
29
29
|
*
|
|
30
30
|
* Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
|
|
31
31
|
*/
|
|
@@ -88,7 +88,7 @@ var FinancialStatementsAccounts = /** @class */ (function () {
|
|
|
88
88
|
* @remarks
|
|
89
89
|
* The *Get account* endpoint returns a single account for a given accountId.
|
|
90
90
|
*
|
|
91
|
-
* [Accounts](https://docs.codat.io/
|
|
91
|
+
* [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are the categories a business uses to record accounting transactions.
|
|
92
92
|
*
|
|
93
93
|
* Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=chartOfAccounts) for integrations that support getting a specific account.
|
|
94
94
|
*
|
|
@@ -121,7 +121,7 @@ var FinancialStatementsAccounts = /** @class */ (function () {
|
|
|
121
121
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
122
122
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
123
123
|
headers["Accept"] = "application/json";
|
|
124
|
-
headers["user-agent"] =
|
|
124
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
125
125
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
126
126
|
retryConfig = retries;
|
|
127
127
|
if (!retryConfig) {
|
|
@@ -174,9 +174,9 @@ var FinancialStatementsAccounts = /** @class */ (function () {
|
|
|
174
174
|
* List accounts
|
|
175
175
|
*
|
|
176
176
|
* @remarks
|
|
177
|
-
* The *List accounts* endpoint returns a list of [accounts](https://docs.codat.io/
|
|
177
|
+
* The *List accounts* endpoint returns a list of [accounts](https://docs.codat.io/lending-api#/schemas/Account) for a given company's connection.
|
|
178
178
|
*
|
|
179
|
-
* [Accounts](https://docs.codat.io/
|
|
179
|
+
* [Accounts](https://docs.codat.io/lending-api#/schemas/Account) are the categories a business uses to record accounting transactions.
|
|
180
180
|
*
|
|
181
181
|
* Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
|
|
182
182
|
*/
|
|
@@ -207,7 +207,7 @@ var FinancialStatementsAccounts = /** @class */ (function () {
|
|
|
207
207
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
208
208
|
queryParams = utils.serializeQueryParams(req);
|
|
209
209
|
headers["Accept"] = "application/json";
|
|
210
|
-
headers["user-agent"] =
|
|
210
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
211
211
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
212
212
|
retryConfig = retries;
|
|
213
213
|
if (!retryConfig) {
|
|
@@ -115,7 +115,7 @@ var FinancialStatementsBalanceSheet = /** @class */ (function () {
|
|
|
115
115
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
116
116
|
queryParams = utils.serializeQueryParams(req);
|
|
117
117
|
headers["Accept"] = "application/json";
|
|
118
|
-
headers["user-agent"] =
|
|
118
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
119
119
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
120
120
|
retryConfig = retries;
|
|
121
121
|
if (!retryConfig) {
|
|
@@ -199,7 +199,7 @@ var FinancialStatementsBalanceSheet = /** @class */ (function () {
|
|
|
199
199
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
200
200
|
queryParams = utils.serializeQueryParams(req);
|
|
201
201
|
headers["Accept"] = "application/json";
|
|
202
|
-
headers["user-agent"] =
|
|
202
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
203
203
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
204
204
|
retryConfig = retries;
|
|
205
205
|
if (!retryConfig) {
|
|
@@ -115,7 +115,7 @@ var FinancialStatementsCashFlow = /** @class */ (function () {
|
|
|
115
115
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
116
116
|
queryParams = utils.serializeQueryParams(req);
|
|
117
117
|
headers["Accept"] = "application/json";
|
|
118
|
-
headers["user-agent"] =
|
|
118
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
119
119
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
120
120
|
retryConfig = retries;
|
|
121
121
|
if (!retryConfig) {
|
|
@@ -115,7 +115,7 @@ var FinancialStatementsProfitAndLoss = /** @class */ (function () {
|
|
|
115
115
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
116
116
|
queryParams = utils.serializeQueryParams(req);
|
|
117
117
|
headers["Accept"] = "application/json";
|
|
118
|
-
headers["user-agent"] =
|
|
118
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
119
119
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
120
120
|
retryConfig = retries;
|
|
121
121
|
if (!retryConfig) {
|
|
@@ -199,7 +199,7 @@ var FinancialStatementsProfitAndLoss = /** @class */ (function () {
|
|
|
199
199
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
200
200
|
queryParams = utils.serializeQueryParams(req);
|
|
201
201
|
headers["Accept"] = "application/json";
|
|
202
|
-
headers["user-agent"] =
|
|
202
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
203
203
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
204
204
|
retryConfig = retries;
|
|
205
205
|
if (!retryConfig) {
|
|
@@ -8,11 +8,35 @@ import { AxiosRequestConfig } from "axios";
|
|
|
8
8
|
export declare class Liabilities {
|
|
9
9
|
private sdkConfiguration;
|
|
10
10
|
constructor(sdkConfig: SDKConfiguration);
|
|
11
|
+
/**
|
|
12
|
+
* Generate loan summaries report
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* The _Generate loan summaries_ endpoint requests the generation of the Loan Summaries report.
|
|
16
|
+
*
|
|
17
|
+
* Learn more about Codat's liabilities feature [here](https://docs.codat.io/lending/features/liabilities-overview).
|
|
18
|
+
*
|
|
19
|
+
* Make sure you have [synced a company](https://docs.codat.io/lending-api#/operations/refresh-company-data) recently before calling the endpoint.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
generateLoanSummary(req: operations.GenerateLoanSummaryRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise<operations.GenerateLoanSummaryResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Generate loan transactions report
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* The _Generate loan transactions_ endpoint requests the generation of the Loan Transactions report.
|
|
28
|
+
*
|
|
29
|
+
* Learn more about Codat's liabilities feature [here](https://docs.codat.io/lending/features/liabilities-overview).
|
|
30
|
+
*
|
|
31
|
+
* Make sure you have [synced a company](https://docs.codat.io/lending-api#/operations/refresh-company-data) recently before calling the endpoint.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
generateLoanTransactions(req: operations.GenerateLoanTransactionsRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise<operations.GenerateLoanTransactionsResponse>;
|
|
11
35
|
/**
|
|
12
36
|
* Get loan summaries
|
|
13
37
|
*
|
|
14
38
|
* @remarks
|
|
15
|
-
* The *Get loan summaries* endpoint returns a summary by integration type of all loans identified
|
|
39
|
+
* The *Get loan summaries* endpoint returns a summary by integration type of all loans identified from a company's accounting, banking, and commerce integrations.
|
|
16
40
|
*
|
|
17
41
|
* The endpoint returns a list of a company's [loan summaries](https://docs.codat.io/lending-api#/schemas/LoanSummary) for each valid data connection.
|
|
18
42
|
*
|
package/dist/sdk/liabilities.js
CHANGED
|
@@ -85,11 +85,173 @@ var Liabilities = /** @class */ (function () {
|
|
|
85
85
|
function Liabilities(sdkConfig) {
|
|
86
86
|
this.sdkConfiguration = sdkConfig;
|
|
87
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Generate loan summaries report
|
|
90
|
+
*
|
|
91
|
+
* @remarks
|
|
92
|
+
* The _Generate loan summaries_ endpoint requests the generation of the Loan Summaries report.
|
|
93
|
+
*
|
|
94
|
+
* Learn more about Codat's liabilities feature [here](https://docs.codat.io/lending/features/liabilities-overview).
|
|
95
|
+
*
|
|
96
|
+
* Make sure you have [synced a company](https://docs.codat.io/lending-api#/operations/refresh-company-data) recently before calling the endpoint.
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
Liabilities.prototype.generateLoanSummary = function (req, retries, config) {
|
|
100
|
+
var _a, _b;
|
|
101
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
102
|
+
var baseURL, url, client, globalSecurity, properties, headers, queryParams, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
103
|
+
return __generator(this, function (_c) {
|
|
104
|
+
switch (_c.label) {
|
|
105
|
+
case 0:
|
|
106
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
107
|
+
req = new operations.GenerateLoanSummaryRequest(req);
|
|
108
|
+
}
|
|
109
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
110
|
+
url = utils.generateURL(baseURL, "/companies/{companyId}/reports/liabilities/loans", req);
|
|
111
|
+
client = this.sdkConfiguration.defaultClient;
|
|
112
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
113
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
114
|
+
return [4 /*yield*/, globalSecurity()];
|
|
115
|
+
case 1:
|
|
116
|
+
globalSecurity = _c.sent();
|
|
117
|
+
_c.label = 2;
|
|
118
|
+
case 2:
|
|
119
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
120
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
121
|
+
}
|
|
122
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
123
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
124
|
+
queryParams = utils.serializeQueryParams(req);
|
|
125
|
+
headers["Accept"] = "application/json";
|
|
126
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
127
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
128
|
+
retryConfig = retries;
|
|
129
|
+
if (!retryConfig) {
|
|
130
|
+
if (globalRetryConfig) {
|
|
131
|
+
retryConfig = globalRetryConfig;
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return [4 /*yield*/, utils.Retry(function () {
|
|
138
|
+
return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "post", headers: headers, responseType: "arraybuffer" }, config));
|
|
139
|
+
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
140
|
+
case 3:
|
|
141
|
+
httpRes = _c.sent();
|
|
142
|
+
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 : "";
|
|
143
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
144
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
145
|
+
}
|
|
146
|
+
res = new operations.GenerateLoanSummaryResponse({
|
|
147
|
+
statusCode: httpRes.status,
|
|
148
|
+
contentType: contentType,
|
|
149
|
+
rawResponse: httpRes,
|
|
150
|
+
});
|
|
151
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
152
|
+
switch (true) {
|
|
153
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 202:
|
|
154
|
+
break;
|
|
155
|
+
case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
|
|
156
|
+
if (utils.matchContentType(contentType, "application/json")) {
|
|
157
|
+
res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
161
|
+
}
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
return [2 /*return*/, res];
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Generate loan transactions report
|
|
171
|
+
*
|
|
172
|
+
* @remarks
|
|
173
|
+
* The _Generate loan transactions_ endpoint requests the generation of the Loan Transactions report.
|
|
174
|
+
*
|
|
175
|
+
* Learn more about Codat's liabilities feature [here](https://docs.codat.io/lending/features/liabilities-overview).
|
|
176
|
+
*
|
|
177
|
+
* Make sure you have [synced a company](https://docs.codat.io/lending-api#/operations/refresh-company-data) recently before calling the endpoint.
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
Liabilities.prototype.generateLoanTransactions = function (req, retries, config) {
|
|
181
|
+
var _a, _b;
|
|
182
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
+
var baseURL, url, client, globalSecurity, properties, headers, queryParams, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
184
|
+
return __generator(this, function (_c) {
|
|
185
|
+
switch (_c.label) {
|
|
186
|
+
case 0:
|
|
187
|
+
if (!(req instanceof utils.SpeakeasyBase)) {
|
|
188
|
+
req = new operations.GenerateLoanTransactionsRequest(req);
|
|
189
|
+
}
|
|
190
|
+
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
191
|
+
url = utils.generateURL(baseURL, "/companies/{companyId}/reports/liabilities/loans/transactions", req);
|
|
192
|
+
client = this.sdkConfiguration.defaultClient;
|
|
193
|
+
globalSecurity = this.sdkConfiguration.security;
|
|
194
|
+
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
195
|
+
return [4 /*yield*/, globalSecurity()];
|
|
196
|
+
case 1:
|
|
197
|
+
globalSecurity = _c.sent();
|
|
198
|
+
_c.label = 2;
|
|
199
|
+
case 2:
|
|
200
|
+
if (!(globalSecurity instanceof utils.SpeakeasyBase)) {
|
|
201
|
+
globalSecurity = new shared.Security(globalSecurity);
|
|
202
|
+
}
|
|
203
|
+
properties = utils.parseSecurityProperties(globalSecurity);
|
|
204
|
+
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
205
|
+
queryParams = utils.serializeQueryParams(req);
|
|
206
|
+
headers["Accept"] = "application/json";
|
|
207
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
208
|
+
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
209
|
+
retryConfig = retries;
|
|
210
|
+
if (!retryConfig) {
|
|
211
|
+
if (globalRetryConfig) {
|
|
212
|
+
retryConfig = globalRetryConfig;
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
retryConfig = new utils.RetryConfig("backoff", new utils.BackoffStrategy(500, 60000, 1.5, 3600000), true);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return [4 /*yield*/, utils.Retry(function () {
|
|
219
|
+
return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "post", headers: headers, responseType: "arraybuffer" }, config));
|
|
220
|
+
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
221
|
+
case 3:
|
|
222
|
+
httpRes = _c.sent();
|
|
223
|
+
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 : "";
|
|
224
|
+
if ((httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == null) {
|
|
225
|
+
throw new Error("status code not found in response: ".concat(httpRes));
|
|
226
|
+
}
|
|
227
|
+
res = new operations.GenerateLoanTransactionsResponse({
|
|
228
|
+
statusCode: httpRes.status,
|
|
229
|
+
contentType: contentType,
|
|
230
|
+
rawResponse: httpRes,
|
|
231
|
+
});
|
|
232
|
+
decodedRes = new TextDecoder().decode(httpRes === null || httpRes === void 0 ? void 0 : httpRes.data);
|
|
233
|
+
switch (true) {
|
|
234
|
+
case (httpRes === null || httpRes === void 0 ? void 0 : httpRes.status) == 202:
|
|
235
|
+
break;
|
|
236
|
+
case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
|
|
237
|
+
if (utils.matchContentType(contentType, "application/json")) {
|
|
238
|
+
res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
|
|
239
|
+
}
|
|
240
|
+
else {
|
|
241
|
+
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
242
|
+
}
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
return [2 /*return*/, res];
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
};
|
|
88
250
|
/**
|
|
89
251
|
* Get loan summaries
|
|
90
252
|
*
|
|
91
253
|
* @remarks
|
|
92
|
-
* The *Get loan summaries* endpoint returns a summary by integration type of all loans identified
|
|
254
|
+
* The *Get loan summaries* endpoint returns a summary by integration type of all loans identified from a company's accounting, banking, and commerce integrations.
|
|
93
255
|
*
|
|
94
256
|
* The endpoint returns a list of a company's [loan summaries](https://docs.codat.io/lending-api#/schemas/LoanSummary) for each valid data connection.
|
|
95
257
|
*
|
|
@@ -99,7 +261,7 @@ var Liabilities = /** @class */ (function () {
|
|
|
99
261
|
Liabilities.prototype.getLoanSummary = function (req, retries, config) {
|
|
100
262
|
var _a, _b;
|
|
101
263
|
return __awaiter(this, void 0, void 0, function () {
|
|
102
|
-
var baseURL, url, client, globalSecurity, properties, headers, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
264
|
+
var baseURL, url, client, globalSecurity, properties, headers, queryParams, globalRetryConfig, retryConfig, httpRes, contentType, res, decodedRes;
|
|
103
265
|
return __generator(this, function (_c) {
|
|
104
266
|
switch (_c.label) {
|
|
105
267
|
case 0:
|
|
@@ -107,7 +269,7 @@ var Liabilities = /** @class */ (function () {
|
|
|
107
269
|
req = new operations.GetLoanSummaryRequest(req);
|
|
108
270
|
}
|
|
109
271
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
110
|
-
url = utils.generateURL(baseURL, "/companies/{companyId}/reports/
|
|
272
|
+
url = utils.generateURL(baseURL, "/companies/{companyId}/reports/liabilities/loans", req);
|
|
111
273
|
client = this.sdkConfiguration.defaultClient;
|
|
112
274
|
globalSecurity = this.sdkConfiguration.security;
|
|
113
275
|
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
@@ -121,8 +283,9 @@ var Liabilities = /** @class */ (function () {
|
|
|
121
283
|
}
|
|
122
284
|
properties = utils.parseSecurityProperties(globalSecurity);
|
|
123
285
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
286
|
+
queryParams = utils.serializeQueryParams(req);
|
|
124
287
|
headers["Accept"] = "application/json";
|
|
125
|
-
headers["user-agent"] =
|
|
288
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
126
289
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
127
290
|
retryConfig = retries;
|
|
128
291
|
if (!retryConfig) {
|
|
@@ -134,7 +297,7 @@ var Liabilities = /** @class */ (function () {
|
|
|
134
297
|
}
|
|
135
298
|
}
|
|
136
299
|
return [4 /*yield*/, utils.Retry(function () {
|
|
137
|
-
return client.request(__assign({ validateStatus: function () { return true; }, url: url, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
300
|
+
return client.request(__assign({ validateStatus: function () { return true; }, url: url + queryParams, method: "get", headers: headers, responseType: "arraybuffer" }, config));
|
|
138
301
|
}, new utils.Retries(retryConfig, ["408", "429", "5XX"]))];
|
|
139
302
|
case 3:
|
|
140
303
|
httpRes = _c.sent();
|
|
@@ -157,7 +320,7 @@ var Liabilities = /** @class */ (function () {
|
|
|
157
320
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
158
321
|
}
|
|
159
322
|
break;
|
|
160
|
-
case [401, 404].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
|
|
323
|
+
case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
|
|
161
324
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
162
325
|
res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
|
|
163
326
|
}
|
|
@@ -193,7 +356,7 @@ var Liabilities = /** @class */ (function () {
|
|
|
193
356
|
req = new operations.ListLoanTransactionsRequest(req);
|
|
194
357
|
}
|
|
195
358
|
baseURL = utils.templateUrl(this.sdkConfiguration.serverURL, this.sdkConfiguration.serverDefaults);
|
|
196
|
-
url = utils.generateURL(baseURL, "/companies/{companyId}/reports/
|
|
359
|
+
url = utils.generateURL(baseURL, "/companies/{companyId}/reports/liabilities/loans/transactions", req);
|
|
197
360
|
client = this.sdkConfiguration.defaultClient;
|
|
198
361
|
globalSecurity = this.sdkConfiguration.security;
|
|
199
362
|
if (!(typeof globalSecurity === "function")) return [3 /*break*/, 2];
|
|
@@ -209,7 +372,7 @@ var Liabilities = /** @class */ (function () {
|
|
|
209
372
|
headers = __assign(__assign({}, config === null || config === void 0 ? void 0 : config.headers), properties.headers);
|
|
210
373
|
queryParams = utils.serializeQueryParams(req);
|
|
211
374
|
headers["Accept"] = "application/json";
|
|
212
|
-
headers["user-agent"] =
|
|
375
|
+
headers["user-agent"] = this.sdkConfiguration.userAgent;
|
|
213
376
|
globalRetryConfig = this.sdkConfiguration.retryConfig;
|
|
214
377
|
retryConfig = retries;
|
|
215
378
|
if (!retryConfig) {
|
|
@@ -244,7 +407,7 @@ var Liabilities = /** @class */ (function () {
|
|
|
244
407
|
throw new errors.SDKError("unknown content-type received: " + contentType, httpRes.status, decodedRes, httpRes);
|
|
245
408
|
}
|
|
246
409
|
break;
|
|
247
|
-
case [401, 404].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
|
|
410
|
+
case [401, 404, 429].includes(httpRes === null || httpRes === void 0 ? void 0 : httpRes.status):
|
|
248
411
|
if (utils.matchContentType(contentType, "application/json")) {
|
|
249
412
|
res.errorMessage = utils.objectToClass(JSON.parse(decodedRes), shared.ErrorMessage);
|
|
250
413
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { LoanWritebackAccounts } from "./loanwritebackaccounts";
|
|
2
|
-
import { LoanWritebackBankAccounts } from "./loanwritebackbankaccounts";
|
|
3
2
|
import { LoanWritebackBankTransactions } from "./loanwritebackbanktransactions";
|
|
4
3
|
import { LoanWritebackCreateOperations } from "./loanwritebackcreateoperations";
|
|
5
4
|
import { LoanWritebackDirectCosts } from "./loanwritebackdirectcosts";
|
|
5
|
+
import { LoanWritebackPayments } from "./loanwritebackpayments";
|
|
6
6
|
import { LoanWritebackSuppliers } from "./loanwritebacksuppliers";
|
|
7
7
|
import { LoanWritebackTransfers } from "./loanwritebacktransfers";
|
|
8
8
|
import { SDKConfiguration } from "./sdk";
|
|
9
9
|
export declare class LoanWriteback {
|
|
10
10
|
accounts: LoanWritebackAccounts;
|
|
11
|
-
bankAccounts: LoanWritebackBankAccounts;
|
|
12
11
|
bankTransactions: LoanWritebackBankTransactions;
|
|
13
12
|
createOperations: LoanWritebackCreateOperations;
|
|
14
13
|
directCosts: LoanWritebackDirectCosts;
|
|
14
|
+
payments: LoanWritebackPayments;
|
|
15
15
|
suppliers: LoanWritebackSuppliers;
|
|
16
16
|
transfers: LoanWritebackTransfers;
|
|
17
17
|
private sdkConfiguration;
|