@codat/lending 0.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +312 -1
- package/dist/internal/utils/requestbody.d.ts +1 -1
- package/dist/internal/utils/retries.d.ts +2 -2
- package/dist/internal/utils/security.d.ts +5 -2
- package/dist/internal/utils/security.js +28 -28
- package/dist/sdk/accountingbankdata.d.ts +2 -26
- package/dist/sdk/accountingbankdata.js +24 -146
- package/dist/sdk/accountingbankdataaccounts.d.ts +34 -0
- package/dist/sdk/accountingbankdataaccounts.js +262 -0
- package/dist/sdk/accountspayable.d.ts +8 -170
- package/dist/sdk/accountspayable.js +53 -983
- package/dist/sdk/accountspayablebillcreditnotes.d.ts +34 -0
- package/dist/sdk/accountspayablebillcreditnotes.js +262 -0
- package/dist/sdk/accountspayablebillpayments.d.ts +34 -0
- package/dist/sdk/accountspayablebillpayments.js +262 -0
- package/dist/sdk/accountspayablebills.d.ts +46 -0
- package/dist/sdk/accountspayablebills.js +348 -0
- package/dist/sdk/accountspayablesuppliers.d.ts +74 -0
- package/dist/sdk/accountspayablesuppliers.js +530 -0
- package/dist/sdk/accountsreceivable.d.ts +12 -284
- package/dist/sdk/accountsreceivable.js +13 -1677
- package/dist/sdk/accountsreceivablecreditnotes.d.ts +34 -0
- package/dist/sdk/accountsreceivablecreditnotes.js +262 -0
- package/dist/sdk/accountsreceivablecustomers.d.ts +74 -0
- package/dist/sdk/accountsreceivablecustomers.js +530 -0
- package/dist/sdk/accountsreceivabledirectincomes.d.ts +74 -0
- package/dist/sdk/{financials.js → accountsreceivabledirectincomes.js} +183 -211
- package/dist/sdk/accountsreceivableinvoices.d.ts +93 -0
- package/dist/sdk/{cashflow.js → accountsreceivableinvoices.js} +250 -189
- package/dist/sdk/accountsreceivablepayments.d.ts +34 -0
- package/dist/sdk/accountsreceivablepayments.js +262 -0
- package/dist/sdk/accountsreceivablereports.d.ts +36 -0
- package/dist/sdk/accountsreceivablereports.js +399 -0
- package/dist/sdk/banking.d.ts +15 -0
- package/dist/sdk/banking.js +23 -0
- package/dist/sdk/bankingaccountbalances.d.ts +20 -0
- package/dist/sdk/bankingaccountbalances.js +174 -0
- package/dist/sdk/bankingaccounts.d.ts +34 -0
- package/dist/sdk/bankingaccounts.js +254 -0
- package/dist/sdk/bankingcategorizedstatement.d.ts +19 -0
- package/dist/sdk/bankingcategorizedstatement.js +173 -0
- package/dist/sdk/bankingtransactioncategories.d.ts +34 -0
- package/dist/sdk/bankingtransactioncategories.js +254 -0
- package/dist/sdk/bankingtransactions.d.ts +34 -0
- package/dist/sdk/bankingtransactions.js +254 -0
- package/dist/sdk/companies.js +110 -25
- package/dist/sdk/companyinfo.d.ts +4 -4
- package/dist/sdk/companyinfo.js +52 -18
- package/dist/sdk/connections.js +110 -25
- package/dist/sdk/dataintegrity.js +66 -15
- package/dist/sdk/excelreports.d.ts +10 -2
- package/dist/sdk/excelreports.js +76 -17
- package/dist/sdk/fileupload.js +66 -15
- package/dist/sdk/financialstatements.d.ts +13 -0
- package/dist/sdk/financialstatements.js +21 -0
- package/dist/sdk/financialstatementsaccounts.d.ts +33 -0
- package/dist/sdk/financialstatementsaccounts.js +261 -0
- package/dist/sdk/financialstatementsbalancesheet.d.ts +24 -0
- package/dist/sdk/financialstatementsbalancesheet.js +253 -0
- package/dist/sdk/financialstatementscashflow.d.ts +15 -0
- package/dist/sdk/financialstatementscashflow.js +169 -0
- package/dist/sdk/financialstatementsprofitandloss.d.ts +24 -0
- package/dist/sdk/financialstatementsprofitandloss.js +253 -0
- package/dist/sdk/liabilities.d.ts +4 -4
- package/dist/sdk/liabilities.js +48 -14
- package/dist/sdk/managedata.d.ts +5 -38
- package/dist/sdk/managedata.js +27 -267
- package/dist/sdk/managedatapulloperations.d.ts +22 -0
- package/dist/sdk/managedatapulloperations.js +250 -0
- package/dist/sdk/managedatarefresh.d.ts +28 -0
- package/dist/sdk/managedatarefresh.js +250 -0
- package/dist/sdk/models/operations/{getaccountingcompanyinfo.d.ts → getaccountingprofile.d.ts} +2 -2
- package/dist/sdk/models/operations/{getaccountingcompanyinfo.js → getaccountingprofile.js} +17 -17
- package/dist/sdk/models/operations/{getenhancedprofitandlossaccounts.d.ts → getcategorizedbalancesheetstatement.d.ts} +2 -2
- package/dist/sdk/models/operations/{getenhancedbalancesheetaccounts.js → getcategorizedbalancesheetstatement.js} +19 -19
- package/dist/sdk/models/operations/{getenhancedcashflowtransactions.d.ts → getcategorizedbankstatement.d.ts} +2 -2
- package/dist/sdk/models/operations/{getenhancedcashflowtransactions.js → getcategorizedbankstatement.js} +20 -20
- package/dist/sdk/models/operations/{getenhancedbalancesheetaccounts.d.ts → getcategorizedprofitandlossstatement.d.ts} +2 -2
- package/dist/sdk/models/operations/{getenhancedprofitandlossaccounts.js → getcategorizedprofitandlossstatement.js} +19 -19
- package/dist/sdk/models/operations/{getcommercecompanyinfo.d.ts → getcommerceprofile.d.ts} +2 -2
- package/dist/sdk/models/operations/{getcommercecompanyinfo.js → getcommerceprofile.js} +18 -18
- package/dist/sdk/models/operations/{getcommercerefundsmetrics.d.ts → getcommercerefundsreport.d.ts} +2 -2
- package/dist/sdk/models/operations/{getcommercerefundsmetrics.js → getcommercerefundsreport.js} +23 -23
- package/dist/sdk/models/operations/index.d.ts +8 -8
- package/dist/sdk/models/operations/index.js +8 -8
- package/dist/sdk/models/operations/{isageddebtorreportavailable.d.ts → isageddebtorsreportavailable.d.ts} +3 -3
- package/dist/sdk/models/operations/{isageddebtorreportavailable.js → isageddebtorsreportavailable.js} +16 -16
- package/dist/sdk/models/operations/{getenhancedinvoicesreport.d.ts → listreconciledinvoices.d.ts} +2 -2
- package/dist/sdk/models/operations/{getenhancedinvoicesreport.js → listreconciledinvoices.js} +20 -20
- package/dist/sdk/models/operations/unlinkconnection.d.ts +6 -3
- package/dist/sdk/models/operations/unlinkconnection.js +8 -8
- package/dist/sdk/models/shared/accountbalance.d.ts +1 -1
- package/dist/sdk/models/shared/accountbalance.js +1 -1
- package/dist/sdk/models/shared/accountingaccounts.d.ts +0 -3
- package/dist/sdk/models/shared/accountingaccounts.js +0 -3
- package/dist/sdk/models/shared/accountingaccounttransactions.d.ts +0 -3
- package/dist/sdk/models/shared/accountingaccounttransactions.js +0 -3
- package/dist/sdk/models/shared/accountingbankaccounts.d.ts +0 -3
- package/dist/sdk/models/shared/accountingbankaccounts.js +0 -3
- package/dist/sdk/models/shared/accountingbanktransactions.d.ts +0 -3
- package/dist/sdk/models/shared/accountingbanktransactions.js +0 -3
- package/dist/sdk/models/shared/accountingbill.d.ts +1 -1
- package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +1 -1
- package/dist/sdk/models/shared/accountingbillcreditnotes.d.ts +0 -3
- package/dist/sdk/models/shared/accountingbillcreditnotes.js +0 -3
- package/dist/sdk/models/shared/accountingbillpayment.d.ts +1 -1
- package/dist/sdk/models/shared/accountingbillpayments.d.ts +0 -3
- package/dist/sdk/models/shared/accountingbillpayments.js +0 -3
- package/dist/sdk/models/shared/accountingbills.d.ts +0 -3
- package/dist/sdk/models/shared/accountingbills.js +0 -3
- package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +32 -2
- package/dist/sdk/models/shared/accountingcompanyinfo.js +47 -4
- package/dist/sdk/models/shared/accountingcreditnote.d.ts +1 -1
- package/dist/sdk/models/shared/accountingcreditnotes.d.ts +0 -3
- package/dist/sdk/models/shared/accountingcreditnotes.js +0 -3
- package/dist/sdk/models/shared/accountingcustomer.d.ts +3 -3
- package/dist/sdk/models/shared/accountingcustomer.js +3 -3
- package/dist/sdk/models/shared/accountingcustomers.d.ts +0 -3
- package/dist/sdk/models/shared/accountingcustomers.js +0 -3
- package/dist/sdk/models/shared/accountingdirectcost.d.ts +1 -1
- package/dist/sdk/models/shared/accountingdirectcosts.d.ts +0 -3
- package/dist/sdk/models/shared/accountingdirectcosts.js +0 -3
- package/dist/sdk/models/shared/accountingdirectincome.d.ts +1 -1
- package/dist/sdk/models/shared/accountingdirectincomes.d.ts +0 -3
- package/dist/sdk/models/shared/accountingdirectincomes.js +0 -3
- package/dist/sdk/models/shared/accountinginvoice.d.ts +1 -1
- package/dist/sdk/models/shared/accountinginvoices.d.ts +0 -3
- package/dist/sdk/models/shared/accountinginvoices.js +0 -3
- package/dist/sdk/models/shared/accountingjournalentries.d.ts +0 -3
- package/dist/sdk/models/shared/accountingjournalentries.js +0 -3
- package/dist/sdk/models/shared/accountingjournalentry.d.ts +1 -1
- package/dist/sdk/models/shared/accountingjournals.d.ts +0 -3
- package/dist/sdk/models/shared/accountingjournals.js +0 -3
- package/dist/sdk/models/shared/accountingpayment.d.ts +1 -1
- package/dist/sdk/models/shared/accountingpayments.d.ts +0 -3
- package/dist/sdk/models/shared/accountingpayments.js +0 -3
- package/dist/sdk/models/shared/accountingsupplier.d.ts +3 -3
- package/dist/sdk/models/shared/accountingsupplier.js +3 -3
- package/dist/sdk/models/shared/accountingsuppliers.d.ts +0 -3
- package/dist/sdk/models/shared/accountingsuppliers.js +0 -3
- package/dist/sdk/models/shared/accountingtransfer.d.ts +1 -1
- package/dist/sdk/models/shared/accountingtransfers.d.ts +0 -3
- package/dist/sdk/models/shared/accountingtransfers.js +0 -3
- package/dist/sdk/models/shared/{accountingaddress.d.ts → addressesitems.d.ts} +1 -1
- package/dist/sdk/models/shared/{accountingaddress.js → addressesitems.js} +13 -13
- package/dist/sdk/models/shared/attachments.d.ts +0 -3
- package/dist/sdk/models/shared/attachments.js +0 -3
- package/dist/sdk/models/shared/bankingaccountbalances.d.ts +0 -3
- package/dist/sdk/models/shared/bankingaccountbalances.js +0 -3
- package/dist/sdk/models/shared/bankingaccounts.d.ts +0 -3
- package/dist/sdk/models/shared/bankingaccounts.js +0 -3
- package/dist/sdk/models/shared/bankingtransactioncategories.d.ts +0 -3
- package/dist/sdk/models/shared/bankingtransactioncategories.js +0 -3
- package/dist/sdk/models/shared/bankingtransactions.d.ts +0 -3
- package/dist/sdk/models/shared/bankingtransactions.js +0 -3
- package/dist/sdk/models/shared/commercecustomers.d.ts +0 -3
- package/dist/sdk/models/shared/commercecustomers.js +0 -3
- package/dist/sdk/models/shared/commercedispute.d.ts +1 -1
- package/dist/sdk/models/shared/commercedispute.js +1 -1
- package/dist/sdk/models/shared/commercedisputes.d.ts +0 -3
- package/dist/sdk/models/shared/commercedisputes.js +0 -3
- package/dist/sdk/models/shared/commercelocations.d.ts +0 -3
- package/dist/sdk/models/shared/commercelocations.js +0 -3
- package/dist/sdk/models/shared/commerceorder.d.ts +2 -2
- package/dist/sdk/models/shared/commerceorder.js +1 -1
- package/dist/sdk/models/shared/commerceorders.d.ts +0 -3
- package/dist/sdk/models/shared/commerceorders.js +0 -3
- package/dist/sdk/models/shared/commercepaymentmethods.d.ts +0 -3
- package/dist/sdk/models/shared/commercepaymentmethods.js +0 -3
- package/dist/sdk/models/shared/commercepayments.d.ts +0 -3
- package/dist/sdk/models/shared/commercepayments.js +0 -3
- package/dist/sdk/models/shared/commerceproductcategories.d.ts +0 -3
- package/dist/sdk/models/shared/commerceproductcategories.js +0 -3
- package/dist/sdk/models/shared/commerceproducts.d.ts +0 -3
- package/dist/sdk/models/shared/commerceproducts.js +0 -3
- package/dist/sdk/models/shared/commercetransactions.d.ts +0 -3
- package/dist/sdk/models/shared/commercetransactions.js +0 -3
- package/dist/sdk/models/shared/companies.d.ts +0 -3
- package/dist/sdk/models/shared/companies.js +0 -3
- package/dist/sdk/models/shared/connections.d.ts +0 -3
- package/dist/sdk/models/shared/connections.js +0 -3
- package/dist/sdk/models/shared/contact.d.ts +2 -2
- package/dist/sdk/models/shared/contact.js +3 -3
- package/dist/sdk/models/shared/dataintegritydatatype.d.ts +0 -3
- package/dist/sdk/models/shared/dataintegritydatatype.js +0 -3
- package/dist/sdk/models/shared/dataintegritydetails.d.ts +0 -3
- package/dist/sdk/models/shared/dataintegritydetails.js +0 -3
- package/dist/sdk/models/shared/dataintegritystatuses.d.ts +0 -3
- package/dist/sdk/models/shared/dataintegritystatuses.js +0 -3
- package/dist/sdk/models/shared/dataintegritysummaries.d.ts +0 -3
- package/dist/sdk/models/shared/dataintegritysummaries.js +0 -3
- package/dist/sdk/models/shared/enhancedfinancialreport.d.ts +0 -3
- package/dist/sdk/models/shared/enhancedfinancialreport.js +0 -3
- package/dist/sdk/models/shared/errormessage.d.ts +0 -3
- package/dist/sdk/models/shared/errormessage.js +0 -3
- package/dist/sdk/models/shared/excelstatus.d.ts +0 -3
- package/dist/sdk/models/shared/excelstatus.js +0 -3
- package/dist/sdk/models/shared/index.d.ts +1 -1
- package/dist/sdk/models/shared/index.js +1 -1
- package/dist/sdk/models/shared/loansummary.d.ts +0 -3
- package/dist/sdk/models/shared/loansummary.js +0 -3
- package/dist/sdk/models/shared/loantransactions.d.ts +0 -3
- package/dist/sdk/models/shared/loantransactions.js +0 -3
- package/dist/sdk/models/shared/periodunit.d.ts +0 -3
- package/dist/sdk/models/shared/periodunit.js +0 -3
- package/dist/sdk/models/shared/pulloperations.d.ts +0 -3
- package/dist/sdk/models/shared/pulloperations.js +0 -3
- package/dist/sdk/models/shared/supplementaldata.d.ts +1 -1
- package/dist/sdk/models/shared/supplementaldata.js +1 -1
- package/dist/sdk/sales.d.ts +22 -372
- package/dist/sdk/sales.js +22 -1767
- package/dist/sdk/salescustomers.d.ts +34 -0
- package/dist/sdk/salescustomers.js +262 -0
- package/dist/sdk/salesdisputes.d.ts +34 -0
- package/dist/sdk/salesdisputes.js +262 -0
- package/dist/sdk/saleslocations.d.ts +34 -0
- package/dist/sdk/saleslocations.js +261 -0
- package/dist/sdk/salesmetrics.d.ts +102 -0
- package/dist/sdk/salesmetrics.js +406 -0
- package/dist/sdk/salesorders.d.ts +34 -0
- package/dist/sdk/salesorders.js +262 -0
- package/dist/sdk/salespaymentmethods.d.ts +34 -0
- package/dist/sdk/salespaymentmethods.js +262 -0
- package/dist/sdk/salespayments.d.ts +34 -0
- package/dist/sdk/salespayments.js +262 -0
- package/dist/sdk/salesproductcategories.d.ts +34 -0
- package/dist/sdk/salesproductcategories.js +262 -0
- package/dist/sdk/salesproducts.d.ts +34 -0
- package/dist/sdk/salesproducts.js +262 -0
- package/dist/sdk/salesreports.d.ts +69 -0
- package/dist/sdk/salesreports.js +298 -0
- package/dist/sdk/salestransactions.d.ts +34 -0
- package/dist/sdk/salestransactions.js +262 -0
- package/dist/sdk/sdk.d.ts +38 -30
- package/dist/sdk/sdk.js +33 -45
- package/dist/sdk/transactions.d.ts +10 -176
- package/dist/sdk/transactions.js +11 -1000
- package/dist/sdk/transactionsaccounttransactions.d.ts +34 -0
- package/dist/sdk/transactionsaccounttransactions.js +262 -0
- package/dist/sdk/transactionsdirectcosts.d.ts +74 -0
- package/dist/sdk/transactionsdirectcosts.js +530 -0
- package/dist/sdk/transactionsjournalentries.d.ts +34 -0
- package/dist/sdk/transactionsjournalentries.js +262 -0
- package/dist/sdk/transactionsjournals.d.ts +34 -0
- package/dist/sdk/transactionsjournals.js +262 -0
- package/dist/sdk/transactionstransfers.d.ts +34 -0
- package/dist/sdk/transactionstransfers.js +262 -0
- package/docs/models/operations/{getaccountingcompanyinforequest.md → getaccountingprofilerequest.md} +1 -1
- package/docs/models/operations/{getaccountingcompanyinforesponse.md → getaccountingprofileresponse.md} +1 -1
- package/docs/models/operations/{getenhancedbalancesheetaccountsrequest.md → getcategorizedbalancesheetstatementrequest.md} +1 -1
- package/docs/models/operations/{getenhancedprofitandlossaccountsresponse.md → getcategorizedbalancesheetstatementresponse.md} +1 -1
- package/docs/models/operations/{getenhancedcashflowtransactionsrequest.md → getcategorizedbankstatementrequest.md} +1 -1
- package/docs/models/operations/{getenhancedcashflowtransactionsresponse.md → getcategorizedbankstatementresponse.md} +1 -1
- package/docs/models/operations/{getenhancedprofitandlossaccountsrequest.md → getcategorizedprofitandlossstatementrequest.md} +1 -1
- package/docs/models/operations/{getenhancedbalancesheetaccountsresponse.md → getcategorizedprofitandlossstatementresponse.md} +1 -1
- package/docs/models/operations/{getcommercecompanyinforequest.md → getcommerceprofilerequest.md} +1 -1
- package/docs/models/operations/{getcommercecompanyinforesponse.md → getcommerceprofileresponse.md} +1 -1
- package/docs/models/operations/{getcommercerefundsmetricsrequest.md → getcommercerefundsreportrequest.md} +1 -1
- package/docs/models/operations/{getcommercerefundsmetricsresponse.md → getcommercerefundsreportresponse.md} +1 -1
- package/docs/models/operations/{isageddebtorreportavailablerequest.md → isageddebtorsreportavailablerequest.md} +1 -1
- package/docs/models/operations/{isageddebtorreportavailableresponse.md → isageddebtorsreportavailableresponse.md} +2 -2
- package/docs/models/operations/{getenhancedinvoicesreportrequest.md → listreconciledinvoicesrequest.md} +1 -1
- package/docs/models/operations/{getenhancedinvoicesreportresponse.md → listreconciledinvoicesresponse.md} +1 -1
- package/docs/models/operations/unlinkconnectionrequest.md +5 -5
- package/docs/models/operations/unlinkconnectionupdateconnection.md +8 -0
- package/docs/models/shared/accountbalance.md +1 -1
- package/docs/models/shared/accountingaccounts.md +0 -2
- package/docs/models/shared/accountingaccounttransactions.md +0 -2
- package/docs/models/shared/accountingbankaccounts.md +0 -2
- package/docs/models/shared/accountingbanktransactions.md +0 -2
- package/docs/models/shared/accountingbill.md +1 -1
- package/docs/models/shared/accountingbillcreditnote.md +1 -1
- package/docs/models/shared/accountingbillcreditnotes.md +0 -2
- package/docs/models/shared/accountingbillpayment.md +1 -1
- package/docs/models/shared/accountingbillpayments.md +0 -2
- package/docs/models/shared/accountingbills.md +0 -2
- package/docs/models/shared/accountingcompanyinfo.md +1 -1
- package/docs/models/shared/accountingcompanyinfoaccountingaddress.md +14 -0
- package/docs/models/shared/accountingcreditnote.md +1 -1
- package/docs/models/shared/accountingcreditnotes.md +0 -2
- package/docs/models/shared/accountingcustomer.md +2 -2
- package/docs/models/shared/accountingcustomers.md +0 -2
- package/docs/models/shared/accountingdirectcost.md +1 -1
- package/docs/models/shared/accountingdirectcosts.md +0 -2
- package/docs/models/shared/accountingdirectincome.md +1 -1
- package/docs/models/shared/accountingdirectincomes.md +0 -2
- package/docs/models/shared/accountinginvoice.md +1 -1
- package/docs/models/shared/accountinginvoices.md +0 -2
- package/docs/models/shared/accountingjournalentries.md +0 -2
- package/docs/models/shared/accountingjournalentry.md +1 -1
- package/docs/models/shared/accountingjournals.md +0 -2
- package/docs/models/shared/accountingpayment.md +1 -1
- package/docs/models/shared/accountingpayments.md +0 -2
- package/docs/models/shared/accountingsupplier.md +16 -16
- package/docs/models/shared/accountingsuppliers.md +0 -2
- package/docs/models/shared/accountingtransfer.md +1 -1
- package/docs/models/shared/accountingtransfers.md +0 -2
- package/docs/models/shared/{accountingaddress.md → addressesitems.md} +1 -1
- package/docs/models/shared/attachments.md +0 -2
- package/docs/models/shared/bankingaccountbalances.md +0 -2
- package/docs/models/shared/bankingaccounts.md +0 -2
- package/docs/models/shared/bankingtransactioncategories.md +0 -2
- package/docs/models/shared/bankingtransactions.md +0 -2
- package/docs/models/shared/commercecustomers.md +0 -2
- package/docs/models/shared/commercedispute.md +1 -1
- package/docs/models/shared/commercedisputes.md +0 -2
- package/docs/models/shared/commercelocations.md +0 -2
- package/docs/models/shared/commerceorder.md +1 -1
- package/docs/models/shared/commerceorders.md +0 -2
- package/docs/models/shared/commerceordersupplementaldata.md +1 -1
- package/docs/models/shared/commercepaymentmethods.md +0 -2
- package/docs/models/shared/commercepayments.md +0 -2
- package/docs/models/shared/commerceproductcategories.md +0 -2
- package/docs/models/shared/commerceproducts.md +0 -2
- package/docs/models/shared/commercetransactions.md +0 -2
- package/docs/models/shared/companies.md +0 -2
- package/docs/models/shared/connections.md +0 -2
- package/docs/models/shared/contact.md +1 -1
- package/docs/models/shared/dataintegritydatatype.md +0 -2
- package/docs/models/shared/dataintegritydetails.md +0 -2
- package/docs/models/shared/dataintegritystatuses.md +0 -2
- package/docs/models/shared/dataintegritysummaries.md +0 -2
- package/docs/models/shared/enhancedfinancialreport.md +0 -2
- package/docs/models/shared/errormessage.md +0 -2
- package/docs/models/shared/excelstatus.md +0 -2
- package/docs/models/shared/loansummary.md +0 -2
- package/docs/models/shared/loantransactions.md +0 -2
- package/docs/models/shared/periodunit.md +0 -2
- package/docs/models/shared/pulloperations.md +0 -2
- package/docs/models/shared/supplementaldata.md +1 -1
- package/docs/sdks/accountingbankdata/README.md +2 -101
- package/docs/sdks/accountingbankdataaccounts/README.md +103 -0
- package/docs/sdks/accountspayable/README.md +2 -664
- package/docs/sdks/accountspayablebillcreditnotes/README.md +101 -0
- package/docs/sdks/accountspayablebillpayments/README.md +101 -0
- package/docs/sdks/accountspayablebills/README.md +148 -0
- package/docs/sdks/accountspayablesuppliers/README.md +244 -0
- package/docs/sdks/accountsreceivable/README.md +0 -1089
- package/docs/sdks/accountsreceivablecreditnotes/README.md +101 -0
- package/docs/sdks/accountsreceivablecustomers/README.md +244 -0
- package/docs/sdks/accountsreceivabledirectincomes/README.md +247 -0
- package/docs/sdks/{financials → accountsreceivableinvoices}/README.md +123 -111
- package/docs/sdks/accountsreceivablepayments/README.md +101 -0
- package/docs/sdks/accountsreceivablereports/README.md +172 -0
- package/docs/sdks/banking/README.md +4 -0
- package/docs/sdks/bankingaccountbalances/README.md +54 -0
- package/docs/sdks/bankingaccounts/README.md +103 -0
- package/docs/sdks/bankingcategorizedstatement/README.md +51 -0
- package/docs/sdks/bankingtransactioncategories/README.md +103 -0
- package/docs/sdks/bankingtransactions/README.md +103 -0
- package/docs/sdks/codatlending/README.md +24 -4
- package/docs/sdks/companies/README.md +1 -1
- package/docs/sdks/companyinfo/README.md +22 -22
- package/docs/sdks/connections/README.md +4 -3
- package/docs/sdks/dataintegrity/README.md +5 -5
- package/docs/sdks/excelreports/README.md +12 -4
- package/docs/sdks/fileupload/README.md +2 -2
- package/docs/sdks/financialstatements/README.md +4 -0
- package/docs/sdks/financialstatementsaccounts/README.md +100 -0
- package/docs/sdks/financialstatementsbalancesheet/README.md +91 -0
- package/docs/sdks/financialstatementscashflow/README.md +47 -0
- package/docs/sdks/financialstatementsprofitandloss/README.md +91 -0
- package/docs/sdks/liabilities/README.md +4 -4
- package/docs/sdks/managedata/README.md +3 -181
- package/docs/sdks/managedatapulloperations/README.md +89 -0
- package/docs/sdks/managedatarefresh/README.md +93 -0
- package/docs/sdks/sales/README.md +0 -1223
- package/docs/sdks/salescustomers/README.md +103 -0
- package/docs/sdks/salesdisputes/README.md +103 -0
- package/docs/sdks/saleslocations/README.md +99 -0
- package/docs/sdks/salesmetrics/README.md +218 -0
- package/docs/sdks/salesorders/README.md +103 -0
- package/docs/sdks/salespaymentmethods/README.md +103 -0
- package/docs/sdks/salespayments/README.md +103 -0
- package/docs/sdks/salesproductcategories/README.md +103 -0
- package/docs/sdks/salesproducts/README.md +103 -0
- package/docs/sdks/salesreports/README.md +145 -0
- package/docs/sdks/salestransactions/README.md +103 -0
- package/docs/sdks/transactions/README.md +0 -638
- package/docs/sdks/transactionsaccounttransactions/README.md +103 -0
- package/docs/sdks/transactionsdirectcosts/README.md +246 -0
- package/docs/sdks/transactionsjournalentries/README.md +101 -0
- package/docs/sdks/transactionsjournals/README.md +101 -0
- package/docs/sdks/transactionstransfers/README.md +103 -0
- package/package.json +1 -1
- package/dist/sdk/cashflow.d.ts +0 -112
- package/dist/sdk/financials.d.ts +0 -75
- package/docs/models/operations/unlinkconnectionrequestbody.md +0 -8
- package/docs/sdks/cashflow/README.md +0 -402
package/README.md
CHANGED
|
@@ -3,12 +3,323 @@
|
|
|
3
3
|
Lending helps you make smarter credit decisions on small businesses by enabling you to pull your customers' latest data from the operating systems they are already using. You can use that data for automating decisioning and surfacing new insights on the customer, all via one API.
|
|
4
4
|
|
|
5
5
|
<!-- Start SDK Installation -->
|
|
6
|
+
## SDK Installation
|
|
7
|
+
|
|
8
|
+
### NPM
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm add @codat/lending
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Yarn
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
yarn add @codat/lending
|
|
18
|
+
```
|
|
6
19
|
<!-- End SDK Installation -->
|
|
7
|
-
|
|
20
|
+
|
|
8
21
|
## Example Usage
|
|
9
22
|
<!-- Start SDK Example Usage -->
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { CodatLending } from "@codat/lending";
|
|
27
|
+
import { ListAccountingBankAccountTransactionsResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
28
|
+
|
|
29
|
+
const sdk = new CodatLending({
|
|
30
|
+
security: {
|
|
31
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
sdk.accountingBankData.listTransactions({
|
|
36
|
+
accountId: "corrupti",
|
|
37
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
38
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
39
|
+
orderBy: "-modifiedDate",
|
|
40
|
+
page: 1,
|
|
41
|
+
pageSize: 100,
|
|
42
|
+
query: "provident",
|
|
43
|
+
}).then((res: ListAccountingBankAccountTransactionsResponse) => {
|
|
44
|
+
if (res.statusCode == 200) {
|
|
45
|
+
// handle response
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
```
|
|
10
49
|
<!-- End SDK Example Usage -->
|
|
11
50
|
|
|
12
51
|
<!-- Start SDK Available Operations -->
|
|
52
|
+
## Available Resources and Operations
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### [accountingBankData](docs/sdks/accountingbankdata/README.md)
|
|
56
|
+
|
|
57
|
+
* [listTransactions](docs/sdks/accountingbankdata/README.md#listtransactions) - List bank account transactions
|
|
58
|
+
|
|
59
|
+
### [accountingBankDataAccounts](docs/sdks/accountingbankdataaccounts/README.md)
|
|
60
|
+
|
|
61
|
+
* [get](docs/sdks/accountingbankdataaccounts/README.md#get) - Get bank account
|
|
62
|
+
* [list](docs/sdks/accountingbankdataaccounts/README.md#list) - List bank accounts
|
|
63
|
+
|
|
64
|
+
### [accountsPayable](docs/sdks/accountspayable/README.md)
|
|
65
|
+
|
|
66
|
+
* [downloadBillAttachment](docs/sdks/accountspayable/README.md#downloadbillattachment) - Download bill attachment
|
|
67
|
+
* [getBillAttachment](docs/sdks/accountspayable/README.md#getbillattachment) - Get bill attachment
|
|
68
|
+
|
|
69
|
+
### [accountsPayableBillCreditNotes](docs/sdks/accountspayablebillcreditnotes/README.md)
|
|
70
|
+
|
|
71
|
+
* [get](docs/sdks/accountspayablebillcreditnotes/README.md#get) - Get bill credit note
|
|
72
|
+
* [list](docs/sdks/accountspayablebillcreditnotes/README.md#list) - List bill credit notes
|
|
73
|
+
|
|
74
|
+
### [accountsPayableBillPayments](docs/sdks/accountspayablebillpayments/README.md)
|
|
75
|
+
|
|
76
|
+
* [get](docs/sdks/accountspayablebillpayments/README.md#get) - Get bill payment
|
|
77
|
+
* [list](docs/sdks/accountspayablebillpayments/README.md#list) - List bill payments
|
|
78
|
+
|
|
79
|
+
### [accountsPayableBills](docs/sdks/accountspayablebills/README.md)
|
|
80
|
+
|
|
81
|
+
* [get](docs/sdks/accountspayablebills/README.md#get) - Get bill
|
|
82
|
+
* [list](docs/sdks/accountspayablebills/README.md#list) - List bills
|
|
83
|
+
* [listAttachments](docs/sdks/accountspayablebills/README.md#listattachments) - List bill attachments
|
|
84
|
+
|
|
85
|
+
### [accountsPayableSuppliers](docs/sdks/accountspayablesuppliers/README.md)
|
|
86
|
+
|
|
87
|
+
* [downloadAttachment](docs/sdks/accountspayablesuppliers/README.md#downloadattachment) - Download supplier attachment
|
|
88
|
+
* [get](docs/sdks/accountspayablesuppliers/README.md#get) - Get supplier
|
|
89
|
+
* [getAttachment](docs/sdks/accountspayablesuppliers/README.md#getattachment) - Get supplier attachment
|
|
90
|
+
* [list](docs/sdks/accountspayablesuppliers/README.md#list) - List suppliers
|
|
91
|
+
* [listAttachments](docs/sdks/accountspayablesuppliers/README.md#listattachments) - List supplier attachments
|
|
92
|
+
|
|
93
|
+
### [companies](docs/sdks/companies/README.md)
|
|
94
|
+
|
|
95
|
+
* [create](docs/sdks/companies/README.md#create) - Create company
|
|
96
|
+
* [delete](docs/sdks/companies/README.md#delete) - Delete a company
|
|
97
|
+
* [get](docs/sdks/companies/README.md#get) - Get company
|
|
98
|
+
* [list](docs/sdks/companies/README.md#list) - List companies
|
|
99
|
+
* [update](docs/sdks/companies/README.md#update) - Update company
|
|
100
|
+
|
|
101
|
+
### [companyInfo](docs/sdks/companyinfo/README.md)
|
|
102
|
+
|
|
103
|
+
* [getAccountingProfile](docs/sdks/companyinfo/README.md#getaccountingprofile) - Get company accounting profile
|
|
104
|
+
* [getCommerceProfile](docs/sdks/companyinfo/README.md#getcommerceprofile) - Get company commerce profile
|
|
105
|
+
|
|
106
|
+
### [connections](docs/sdks/connections/README.md)
|
|
107
|
+
|
|
108
|
+
* [create](docs/sdks/connections/README.md#create) - Create connection
|
|
109
|
+
* [delete](docs/sdks/connections/README.md#delete) - Delete connection
|
|
110
|
+
* [get](docs/sdks/connections/README.md#get) - Get connection
|
|
111
|
+
* [list](docs/sdks/connections/README.md#list) - List connections
|
|
112
|
+
* [unlink](docs/sdks/connections/README.md#unlink) - Unlink connection
|
|
113
|
+
|
|
114
|
+
### [dataIntegrity](docs/sdks/dataintegrity/README.md)
|
|
115
|
+
|
|
116
|
+
* [details](docs/sdks/dataintegrity/README.md#details) - List data integrity details
|
|
117
|
+
* [status](docs/sdks/dataintegrity/README.md#status) - Get data integrity status
|
|
118
|
+
* [summaries](docs/sdks/dataintegrity/README.md#summaries) - Get data integrity summaries
|
|
119
|
+
|
|
120
|
+
### [excelReports](docs/sdks/excelreports/README.md)
|
|
121
|
+
|
|
122
|
+
* [download](docs/sdks/excelreports/README.md#download) - Download Excel report
|
|
123
|
+
* [generate](docs/sdks/excelreports/README.md#generate) - Generate Excel report
|
|
124
|
+
* [getStatus](docs/sdks/excelreports/README.md#getstatus) - Get Excel report status
|
|
125
|
+
|
|
126
|
+
### [fileUpload](docs/sdks/fileupload/README.md)
|
|
127
|
+
|
|
128
|
+
* [download](docs/sdks/fileupload/README.md#download) - Download all files for a company
|
|
129
|
+
* [listUploaded](docs/sdks/fileupload/README.md#listuploaded) - List all files uploaded by a company
|
|
130
|
+
* [upload](docs/sdks/fileupload/README.md#upload) - Upload files for a company
|
|
131
|
+
|
|
132
|
+
### [liabilities](docs/sdks/liabilities/README.md)
|
|
133
|
+
|
|
134
|
+
* [getLoanSummary](docs/sdks/liabilities/README.md#getloansummary) - Get loan summaries
|
|
135
|
+
* [listLoanTransactions](docs/sdks/liabilities/README.md#listloantransactions) - List loan transactions
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### [accountsReceivableCreditNotes](docs/sdks/accountsreceivablecreditnotes/README.md)
|
|
139
|
+
|
|
140
|
+
* [get](docs/sdks/accountsreceivablecreditnotes/README.md#get) - Get credit note
|
|
141
|
+
* [list](docs/sdks/accountsreceivablecreditnotes/README.md#list) - List credit notes
|
|
142
|
+
|
|
143
|
+
### [accountsReceivableCustomers](docs/sdks/accountsreceivablecustomers/README.md)
|
|
144
|
+
|
|
145
|
+
* [downloadAttachment](docs/sdks/accountsreceivablecustomers/README.md#downloadattachment) - Download customer attachment
|
|
146
|
+
* [get](docs/sdks/accountsreceivablecustomers/README.md#get) - Get customer
|
|
147
|
+
* [getAttachment](docs/sdks/accountsreceivablecustomers/README.md#getattachment) - Get customer attachment
|
|
148
|
+
* [list](docs/sdks/accountsreceivablecustomers/README.md#list) - List customers
|
|
149
|
+
* [listAttachments](docs/sdks/accountsreceivablecustomers/README.md#listattachments) - List customer attachments
|
|
150
|
+
|
|
151
|
+
### [accountsReceivableDirectIncomes](docs/sdks/accountsreceivabledirectincomes/README.md)
|
|
152
|
+
|
|
153
|
+
* [downloadAttachment](docs/sdks/accountsreceivabledirectincomes/README.md#downloadattachment) - Download direct income attachment
|
|
154
|
+
* [get](docs/sdks/accountsreceivabledirectincomes/README.md#get) - Get direct income
|
|
155
|
+
* [getAttachment](docs/sdks/accountsreceivabledirectincomes/README.md#getattachment) - Get direct income attachment
|
|
156
|
+
* [list](docs/sdks/accountsreceivabledirectincomes/README.md#list) - List direct incomes
|
|
157
|
+
* [listAttachments](docs/sdks/accountsreceivabledirectincomes/README.md#listattachments) - List direct income attachments
|
|
158
|
+
|
|
159
|
+
### [accountsReceivableInvoices](docs/sdks/accountsreceivableinvoices/README.md)
|
|
160
|
+
|
|
161
|
+
* [downloadAttachment](docs/sdks/accountsreceivableinvoices/README.md#downloadattachment) - Download invoice attachment
|
|
162
|
+
* [downloadPdf](docs/sdks/accountsreceivableinvoices/README.md#downloadpdf) - Get invoice as PDF
|
|
163
|
+
* [get](docs/sdks/accountsreceivableinvoices/README.md#get) - Get invoice
|
|
164
|
+
* [getAttachment](docs/sdks/accountsreceivableinvoices/README.md#getattachment) - Get invoice attachment
|
|
165
|
+
* [list](docs/sdks/accountsreceivableinvoices/README.md#list) - List invoices
|
|
166
|
+
* [listAttachments](docs/sdks/accountsreceivableinvoices/README.md#listattachments) - List invoice attachments
|
|
167
|
+
* [listReconciled](docs/sdks/accountsreceivableinvoices/README.md#listreconciled) - List reconciled invoices
|
|
168
|
+
|
|
169
|
+
### [accountsReceivablePayments](docs/sdks/accountsreceivablepayments/README.md)
|
|
170
|
+
|
|
171
|
+
* [get](docs/sdks/accountsreceivablepayments/README.md#get) - Get payment
|
|
172
|
+
* [list](docs/sdks/accountsreceivablepayments/README.md#list) - List payments
|
|
173
|
+
|
|
174
|
+
### [accountsReceivableReports](docs/sdks/accountsreceivablereports/README.md)
|
|
175
|
+
|
|
176
|
+
* [getAgedCreditors](docs/sdks/accountsreceivablereports/README.md#getagedcreditors) - Aged creditors report
|
|
177
|
+
* [getAgedDebtors](docs/sdks/accountsreceivablereports/README.md#getageddebtors) - Aged debtors report
|
|
178
|
+
* [isAgedCreditorsAvailable](docs/sdks/accountsreceivablereports/README.md#isagedcreditorsavailable) - Aged creditors report available
|
|
179
|
+
* [isAgedDebtorsAvailable](docs/sdks/accountsreceivablereports/README.md#isageddebtorsavailable) - Aged debtors report available
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
### [bankingAccountBalances](docs/sdks/bankingaccountbalances/README.md)
|
|
183
|
+
|
|
184
|
+
* [list](docs/sdks/bankingaccountbalances/README.md#list) - List account balances
|
|
185
|
+
|
|
186
|
+
### [Banking.Accounts](docs/sdks/bankingaccounts/README.md)
|
|
187
|
+
|
|
188
|
+
* [get](docs/sdks/bankingaccounts/README.md#get) - Get account
|
|
189
|
+
* [list](docs/sdks/bankingaccounts/README.md#list) - List accounts
|
|
190
|
+
|
|
191
|
+
### [bankingCategorizedStatement](docs/sdks/bankingcategorizedstatement/README.md)
|
|
192
|
+
|
|
193
|
+
* [get](docs/sdks/bankingcategorizedstatement/README.md#get) - Get categorized bank statement
|
|
194
|
+
|
|
195
|
+
### [bankingTransactionCategories](docs/sdks/bankingtransactioncategories/README.md)
|
|
196
|
+
|
|
197
|
+
* [get](docs/sdks/bankingtransactioncategories/README.md#get) - Get transaction category
|
|
198
|
+
* [list](docs/sdks/bankingtransactioncategories/README.md#list) - List transaction categories
|
|
199
|
+
|
|
200
|
+
### [Banking.Transactions](docs/sdks/bankingtransactions/README.md)
|
|
201
|
+
|
|
202
|
+
* [get](docs/sdks/bankingtransactions/README.md#get) - Get bank transaction
|
|
203
|
+
* [list](docs/sdks/bankingtransactions/README.md#list) - List transactions
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### [financialStatementsAccounts](docs/sdks/financialstatementsaccounts/README.md)
|
|
207
|
+
|
|
208
|
+
* [get](docs/sdks/financialstatementsaccounts/README.md#get) - Get account
|
|
209
|
+
* [list](docs/sdks/financialstatementsaccounts/README.md#list) - List accounts
|
|
210
|
+
|
|
211
|
+
### [financialStatementsBalanceSheet](docs/sdks/financialstatementsbalancesheet/README.md)
|
|
212
|
+
|
|
213
|
+
* [get](docs/sdks/financialstatementsbalancesheet/README.md#get) - Get balance sheet
|
|
214
|
+
* [getCategorizedAccounts](docs/sdks/financialstatementsbalancesheet/README.md#getcategorizedaccounts) - Get categorized balance sheet statement
|
|
215
|
+
|
|
216
|
+
### [financialStatementsCashFlow](docs/sdks/financialstatementscashflow/README.md)
|
|
217
|
+
|
|
218
|
+
* [get](docs/sdks/financialstatementscashflow/README.md#get) - Get cash flow statement
|
|
219
|
+
|
|
220
|
+
### [financialStatementsProfitAndLoss](docs/sdks/financialstatementsprofitandloss/README.md)
|
|
221
|
+
|
|
222
|
+
* [get](docs/sdks/financialstatementsprofitandloss/README.md#get) - Get profit and loss
|
|
223
|
+
* [getCategorizedAccounts](docs/sdks/financialstatementsprofitandloss/README.md#getcategorizedaccounts) - Get categorized profit and loss statement
|
|
224
|
+
|
|
225
|
+
### [manageData](docs/sdks/managedata/README.md)
|
|
226
|
+
|
|
227
|
+
* [getStatus](docs/sdks/managedata/README.md#getstatus) - Get data status
|
|
228
|
+
|
|
229
|
+
### [manageDataPullOperations](docs/sdks/managedatapulloperations/README.md)
|
|
230
|
+
|
|
231
|
+
* [get](docs/sdks/managedatapulloperations/README.md#get) - Get pull operation
|
|
232
|
+
* [list](docs/sdks/managedatapulloperations/README.md#list) - List pull operations
|
|
233
|
+
|
|
234
|
+
### [manageDataRefresh](docs/sdks/managedatarefresh/README.md)
|
|
235
|
+
|
|
236
|
+
* [allDataTypes](docs/sdks/managedatarefresh/README.md#alldatatypes) - Refresh all data
|
|
237
|
+
* [dataType](docs/sdks/managedatarefresh/README.md#datatype) - Refresh data type
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
### [Sales.Customers](docs/sdks/salescustomers/README.md)
|
|
241
|
+
|
|
242
|
+
* [get](docs/sdks/salescustomers/README.md#get) - Get customer
|
|
243
|
+
* [list](docs/sdks/salescustomers/README.md#list) - List customers
|
|
244
|
+
|
|
245
|
+
### [Sales.Disputes](docs/sdks/salesdisputes/README.md)
|
|
246
|
+
|
|
247
|
+
* [get](docs/sdks/salesdisputes/README.md#get) - Get dispute
|
|
248
|
+
* [list](docs/sdks/salesdisputes/README.md#list) - List disputes
|
|
249
|
+
|
|
250
|
+
### [Sales.Locations](docs/sdks/saleslocations/README.md)
|
|
251
|
+
|
|
252
|
+
* [get](docs/sdks/saleslocations/README.md#get) - Get location
|
|
253
|
+
* [list](docs/sdks/saleslocations/README.md#list) - List locations
|
|
254
|
+
|
|
255
|
+
### [Sales.Metrics](docs/sdks/salesmetrics/README.md)
|
|
256
|
+
|
|
257
|
+
* [getCustomerRetention](docs/sdks/salesmetrics/README.md#getcustomerretention) - Get customer retention metrics
|
|
258
|
+
* [getLifetimeValue](docs/sdks/salesmetrics/README.md#getlifetimevalue) - Get lifetime value metrics
|
|
259
|
+
* [getRevenue](docs/sdks/salesmetrics/README.md#getrevenue) - Get commerce revenue metrics
|
|
260
|
+
|
|
261
|
+
### [Sales.Orders](docs/sdks/salesorders/README.md)
|
|
262
|
+
|
|
263
|
+
* [get](docs/sdks/salesorders/README.md#get) - Get order
|
|
264
|
+
* [list](docs/sdks/salesorders/README.md#list) - List orders
|
|
265
|
+
|
|
266
|
+
### [salesPaymentMethods](docs/sdks/salespaymentmethods/README.md)
|
|
267
|
+
|
|
268
|
+
* [get](docs/sdks/salespaymentmethods/README.md#get) - Get payment method
|
|
269
|
+
* [list](docs/sdks/salespaymentmethods/README.md#list) - List payment methods
|
|
270
|
+
|
|
271
|
+
### [Sales.Payments](docs/sdks/salespayments/README.md)
|
|
272
|
+
|
|
273
|
+
* [get](docs/sdks/salespayments/README.md#get) - Get payment
|
|
274
|
+
* [list](docs/sdks/salespayments/README.md#list) - List payments
|
|
275
|
+
|
|
276
|
+
### [salesProductCategories](docs/sdks/salesproductcategories/README.md)
|
|
277
|
+
|
|
278
|
+
* [get](docs/sdks/salesproductcategories/README.md#get) - Get product category
|
|
279
|
+
* [list](docs/sdks/salesproductcategories/README.md#list) - List product categories
|
|
280
|
+
|
|
281
|
+
### [Sales.Products](docs/sdks/salesproducts/README.md)
|
|
282
|
+
|
|
283
|
+
* [get](docs/sdks/salesproducts/README.md#get) - Get product
|
|
284
|
+
* [list](docs/sdks/salesproducts/README.md#list) - List products
|
|
285
|
+
|
|
286
|
+
### [Sales.Reports](docs/sdks/salesreports/README.md)
|
|
287
|
+
|
|
288
|
+
* [getOrders](docs/sdks/salesreports/README.md#getorders) - Get orders report
|
|
289
|
+
* [getRefunds](docs/sdks/salesreports/README.md#getrefunds) - Get refunds report
|
|
290
|
+
|
|
291
|
+
### [Sales.Transactions](docs/sdks/salestransactions/README.md)
|
|
292
|
+
|
|
293
|
+
* [get](docs/sdks/salestransactions/README.md#get) - Get transaction
|
|
294
|
+
* [list](docs/sdks/salestransactions/README.md#list) - List transactions
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
### [transactionsAccountTransactions](docs/sdks/transactionsaccounttransactions/README.md)
|
|
298
|
+
|
|
299
|
+
* [get](docs/sdks/transactionsaccounttransactions/README.md#get) - Get account transaction
|
|
300
|
+
* [list](docs/sdks/transactionsaccounttransactions/README.md#list) - List account transactions
|
|
301
|
+
|
|
302
|
+
### [transactionsDirectCosts](docs/sdks/transactionsdirectcosts/README.md)
|
|
303
|
+
|
|
304
|
+
* [downloadAttachment](docs/sdks/transactionsdirectcosts/README.md#downloadattachment) - Download direct cost attachment
|
|
305
|
+
* [get](docs/sdks/transactionsdirectcosts/README.md#get) - Get direct cost
|
|
306
|
+
* [getAttachment](docs/sdks/transactionsdirectcosts/README.md#getattachment) - Get direct cost attachment
|
|
307
|
+
* [list](docs/sdks/transactionsdirectcosts/README.md#list) - List direct costs
|
|
308
|
+
* [listAttachments](docs/sdks/transactionsdirectcosts/README.md#listattachments) - List direct cost attachments
|
|
309
|
+
|
|
310
|
+
### [transactionsJournalEntries](docs/sdks/transactionsjournalentries/README.md)
|
|
311
|
+
|
|
312
|
+
* [get](docs/sdks/transactionsjournalentries/README.md#get) - Get journal entry
|
|
313
|
+
* [list](docs/sdks/transactionsjournalentries/README.md#list) - List journal entries
|
|
314
|
+
|
|
315
|
+
### [Transactions.Journals](docs/sdks/transactionsjournals/README.md)
|
|
316
|
+
|
|
317
|
+
* [get](docs/sdks/transactionsjournals/README.md#get) - Get journal
|
|
318
|
+
* [list](docs/sdks/transactionsjournals/README.md#list) - List journals
|
|
319
|
+
|
|
320
|
+
### [Transactions.Transfers](docs/sdks/transactionstransfers/README.md)
|
|
321
|
+
|
|
322
|
+
* [get](docs/sdks/transactionstransfers/README.md#get) - Get transfer
|
|
323
|
+
* [list](docs/sdks/transactionstransfers/README.md#list) - List transfers
|
|
13
324
|
<!-- End SDK Available Operations -->
|
|
14
325
|
### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const requestMetadataKey = "request";
|
|
2
|
-
export declare function serializeRequestBody(request: any, requestFieldName: string, serializationMethod: string): [
|
|
2
|
+
export declare function serializeRequestBody(request: any, requestFieldName: string, serializationMethod: string): [Record<string, any>, any];
|
|
@@ -7,10 +7,10 @@ export declare class BackoffStrategy {
|
|
|
7
7
|
constructor(initialInterval: number, maxInterval: number, exponent: number, maxElapsedTime: number);
|
|
8
8
|
}
|
|
9
9
|
export declare class RetryConfig {
|
|
10
|
-
strategy:
|
|
10
|
+
strategy: "backoff" | "none";
|
|
11
11
|
backoff?: BackoffStrategy;
|
|
12
12
|
retryConnectionErrors: boolean;
|
|
13
|
-
constructor(strategy:
|
|
13
|
+
constructor(strategy: "backoff" | "none", backoff?: BackoffStrategy, retryConnectionErrors?: boolean);
|
|
14
14
|
}
|
|
15
15
|
export declare class Retries {
|
|
16
16
|
config: RetryConfig;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export type SecurityProperties = {
|
|
2
|
+
params: Record<string, string>;
|
|
3
|
+
headers: Record<string, string>;
|
|
4
|
+
};
|
|
5
|
+
export declare function parseSecurityProperties(security: any): SecurityProperties;
|
|
@@ -19,12 +19,12 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
19
19
|
return ar;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
22
|
+
exports.parseSecurityProperties = void 0;
|
|
23
23
|
var securityMetadataKey = "security";
|
|
24
|
-
function
|
|
25
|
-
return parseSecurityClass(
|
|
24
|
+
function parseSecurityProperties(security) {
|
|
25
|
+
return parseSecurityClass(security);
|
|
26
26
|
}
|
|
27
|
-
exports.
|
|
27
|
+
exports.parseSecurityProperties = parseSecurityProperties;
|
|
28
28
|
function parseSecurityDecorator(securityAnn) {
|
|
29
29
|
// scheme=true;type=apiKey;subtype=header"
|
|
30
30
|
var option = false;
|
|
@@ -53,8 +53,12 @@ function parseSecurityDecorator(securityAnn) {
|
|
|
53
53
|
});
|
|
54
54
|
return new SecurityDecorator(name, securityType, option, scheme, securitySubType);
|
|
55
55
|
}
|
|
56
|
-
function parseSecurityClass(
|
|
56
|
+
function parseSecurityClass(security) {
|
|
57
57
|
var fieldNames = Object.getOwnPropertyNames(security);
|
|
58
|
+
var properties = {
|
|
59
|
+
params: {},
|
|
60
|
+
headers: {},
|
|
61
|
+
};
|
|
58
62
|
fieldNames.forEach(function (fname) {
|
|
59
63
|
var securityAnn = Reflect.getMetadata(securityMetadataKey, security, fname);
|
|
60
64
|
if (securityAnn == null)
|
|
@@ -64,20 +68,20 @@ function parseSecurityClass(client, security) {
|
|
|
64
68
|
return;
|
|
65
69
|
var value = security[fname];
|
|
66
70
|
if (securityDecorator.Option) {
|
|
67
|
-
return parseSecurityOption(
|
|
71
|
+
return parseSecurityOption(properties, value);
|
|
68
72
|
}
|
|
69
73
|
else if (securityDecorator.Scheme) {
|
|
70
74
|
if (securityDecorator.SubType === "basic" && value !== Object(value)) {
|
|
71
|
-
return parseSecurityScheme(
|
|
75
|
+
return parseSecurityScheme(properties, securityDecorator, security);
|
|
72
76
|
}
|
|
73
77
|
else {
|
|
74
|
-
|
|
78
|
+
return parseSecurityScheme(properties, securityDecorator, value);
|
|
75
79
|
}
|
|
76
80
|
}
|
|
77
81
|
});
|
|
78
|
-
return
|
|
82
|
+
return properties;
|
|
79
83
|
}
|
|
80
|
-
function parseSecurityOption(
|
|
84
|
+
function parseSecurityOption(properties, optionType) {
|
|
81
85
|
var fieldNames = Object.getOwnPropertyNames(optionType);
|
|
82
86
|
fieldNames.forEach(function (fname) {
|
|
83
87
|
var securityAnn = Reflect.getMetadata(securityMetadataKey, optionType, fname);
|
|
@@ -86,15 +90,14 @@ function parseSecurityOption(client, optionType) {
|
|
|
86
90
|
var securityDecorator = parseSecurityDecorator(securityAnn);
|
|
87
91
|
if (securityDecorator == null || !securityDecorator.Scheme)
|
|
88
92
|
return;
|
|
89
|
-
return parseSecurityScheme(
|
|
93
|
+
return parseSecurityScheme(properties, securityDecorator, optionType[fname]);
|
|
90
94
|
});
|
|
91
|
-
return client;
|
|
92
95
|
}
|
|
93
|
-
function parseSecurityScheme(
|
|
96
|
+
function parseSecurityScheme(properties, schemeDecorator, scheme) {
|
|
94
97
|
if (scheme === Object(scheme)) {
|
|
95
98
|
if (schemeDecorator.Type === "http" &&
|
|
96
99
|
schemeDecorator.SubType === "basic") {
|
|
97
|
-
return parseBasicAuthScheme(
|
|
100
|
+
return parseBasicAuthScheme(properties, scheme);
|
|
98
101
|
}
|
|
99
102
|
var fieldNames = Object.getOwnPropertyNames(scheme);
|
|
100
103
|
fieldNames.forEach(function (fname) {
|
|
@@ -104,28 +107,27 @@ function parseSecurityScheme(client, schemeDecorator, scheme) {
|
|
|
104
107
|
var securityDecorator = parseSecurityDecorator(securityAnn);
|
|
105
108
|
if (securityDecorator == null || securityDecorator.Name === "")
|
|
106
109
|
return;
|
|
107
|
-
|
|
110
|
+
return parseSecuritySchemeValue(properties, schemeDecorator, securityDecorator, scheme[fname]);
|
|
108
111
|
});
|
|
109
112
|
}
|
|
110
113
|
else {
|
|
111
|
-
|
|
114
|
+
return parseSecuritySchemeValue(properties, schemeDecorator, schemeDecorator, scheme);
|
|
112
115
|
}
|
|
113
|
-
return client;
|
|
114
116
|
}
|
|
115
|
-
function parseSecuritySchemeValue(
|
|
117
|
+
function parseSecuritySchemeValue(properties, schemeDecorator, securityDecorator, value) {
|
|
116
118
|
switch (schemeDecorator.Type) {
|
|
117
119
|
case "apiKey":
|
|
118
120
|
switch (schemeDecorator.SubType) {
|
|
119
121
|
case "header":
|
|
120
|
-
|
|
122
|
+
properties.headers[securityDecorator.Name] = value;
|
|
121
123
|
break;
|
|
122
124
|
case "query":
|
|
123
|
-
|
|
125
|
+
properties.params[securityDecorator.Name] = value;
|
|
124
126
|
break;
|
|
125
127
|
case "cookie": {
|
|
126
128
|
var securityDecoratorName = securityDecorator.Name;
|
|
127
129
|
var val = value;
|
|
128
|
-
|
|
130
|
+
properties.headers["Cookie"] = "".concat(securityDecoratorName, "=").concat(val);
|
|
129
131
|
break;
|
|
130
132
|
}
|
|
131
133
|
default:
|
|
@@ -133,17 +135,17 @@ function parseSecuritySchemeValue(client, schemeDecorator, securityDecorator, va
|
|
|
133
135
|
}
|
|
134
136
|
break;
|
|
135
137
|
case "openIdConnect":
|
|
136
|
-
|
|
138
|
+
properties.headers[securityDecorator.Name] = value;
|
|
137
139
|
break;
|
|
138
140
|
case "oauth2":
|
|
139
|
-
|
|
141
|
+
properties.headers[securityDecorator.Name] = value;
|
|
140
142
|
break;
|
|
141
143
|
case "http":
|
|
142
144
|
switch (schemeDecorator.SubType) {
|
|
143
145
|
case "basic":
|
|
144
146
|
break;
|
|
145
147
|
case "bearer":
|
|
146
|
-
|
|
148
|
+
properties.headers[securityDecorator.Name] = value.toLowerCase().startsWith("bearer ") ? value : "Bearer ".concat(value);
|
|
147
149
|
break;
|
|
148
150
|
default:
|
|
149
151
|
throw new Error("not supported");
|
|
@@ -152,9 +154,8 @@ function parseSecuritySchemeValue(client, schemeDecorator, securityDecorator, va
|
|
|
152
154
|
default:
|
|
153
155
|
throw new Error("not supported");
|
|
154
156
|
}
|
|
155
|
-
return client;
|
|
156
157
|
}
|
|
157
|
-
function parseBasicAuthScheme(
|
|
158
|
+
function parseBasicAuthScheme(properties, scheme) {
|
|
158
159
|
var username, password = "";
|
|
159
160
|
var fieldNames = Object.getOwnPropertyNames(scheme);
|
|
160
161
|
fieldNames.forEach(function (fname) {
|
|
@@ -173,8 +174,7 @@ function parseBasicAuthScheme(client, scheme) {
|
|
|
173
174
|
break;
|
|
174
175
|
}
|
|
175
176
|
});
|
|
176
|
-
|
|
177
|
-
return client;
|
|
177
|
+
properties.headers["Authorization"] = "Basic ".concat(Buffer.from("".concat(username, ":").concat(password)).toString('base64'));
|
|
178
178
|
}
|
|
179
179
|
var SecurityDecorator = /** @class */ (function () {
|
|
180
180
|
function SecurityDecorator(Name, Type, Option, Scheme, SubType) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as utils from "../internal/utils";
|
|
2
|
+
import { AccountingBankDataAccounts } from "./accountingbankdataaccounts";
|
|
2
3
|
import * as operations from "./models/operations";
|
|
3
4
|
import { SDKConfiguration } from "./sdk";
|
|
4
5
|
import { AxiosRequestConfig } from "axios";
|
|
@@ -6,34 +7,9 @@ import { AxiosRequestConfig } from "axios";
|
|
|
6
7
|
* Access bank transactions from an accounting platform.
|
|
7
8
|
*/
|
|
8
9
|
export declare class AccountingBankData {
|
|
10
|
+
accounts: AccountingBankDataAccounts;
|
|
9
11
|
private sdkConfiguration;
|
|
10
12
|
constructor(sdkConfig: SDKConfiguration);
|
|
11
|
-
/**
|
|
12
|
-
* Get bank account
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* The *Get bank account* endpoint returns a single account for a given accountId.
|
|
16
|
-
*
|
|
17
|
-
* [Bank accounts](https://docs.codat.io/accounting-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution.
|
|
18
|
-
*
|
|
19
|
-
* Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bankAccounts) for integrations that support getting a specific bank account.
|
|
20
|
-
*
|
|
21
|
-
* Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
getAccount(req: operations.GetAccountingBankAccountRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise<operations.GetAccountingBankAccountResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* List bank accounts
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* The *List bank accounts* endpoint returns a list of [bank accounts](https://docs.codat.io/accounting-api#/schemas/BankAccount) for a given company's connection.
|
|
30
|
-
*
|
|
31
|
-
* [Bank accounts](https://docs.codat.io/accounting-api#/schemas/BankAccount) are financial accounts maintained by a bank or other financial institution.
|
|
32
|
-
*
|
|
33
|
-
* Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
listAccounts(req: operations.ListAccountingBankAccountsRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise<operations.ListAccountingBankAccountsResponse>;
|
|
37
13
|
/**
|
|
38
14
|
* List bank account transactions
|
|
39
15
|
*
|