@codat/lending 0.1.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +315 -4
- 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
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# salesCustomers
|
|
2
|
+
|
|
3
|
+
### Available Operations
|
|
4
|
+
|
|
5
|
+
* [get](#get) - Get customer
|
|
6
|
+
* [list](#list) - List customers
|
|
7
|
+
|
|
8
|
+
## get
|
|
9
|
+
|
|
10
|
+
The *Get customer* endpoint returns a single customer for a given customerId.
|
|
11
|
+
|
|
12
|
+
[Customers](https://docs.codat.io/commerce-api#/schemas/Customer) are people or organizations that place orders, make payments and receive goods and/or services from the SMB.
|
|
13
|
+
|
|
14
|
+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-customers) for integrations that support getting a specific customer.
|
|
15
|
+
|
|
16
|
+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Example Usage
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { CodatLending } from "@codat/lending";
|
|
23
|
+
import { GetCommerceCustomerResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
24
|
+
|
|
25
|
+
const sdk = new CodatLending({
|
|
26
|
+
security: {
|
|
27
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
sdk.salesCustomers.get({
|
|
32
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
+
customerId: "iure",
|
|
35
|
+
}).then((res: GetCommerceCustomerResponse) => {
|
|
36
|
+
if (res.statusCode == 200) {
|
|
37
|
+
// handle response
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
| Parameter | Type | Required | Description |
|
|
45
|
+
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
|
|
46
|
+
| `request` | [operations.GetCommerceCustomerRequest](../../models/operations/getcommercecustomerrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
47
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
48
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Response
|
|
52
|
+
|
|
53
|
+
**Promise<[operations.GetCommerceCustomerResponse](../../models/operations/getcommercecustomerresponse.md)>**
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## list
|
|
57
|
+
|
|
58
|
+
The *List customers* endpoint returns a list of [customers](https://docs.codat.io/commerce-api#/schemas/Customer) for a given company's connection.
|
|
59
|
+
|
|
60
|
+
[Customers](https://docs.codat.io/commerce-api#/schemas/Customer) are people or organizations that place orders, make payments and recieve goods and/or services from the SMB.
|
|
61
|
+
|
|
62
|
+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Example Usage
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
import { CodatLending } from "@codat/lending";
|
|
69
|
+
import { ListCommerceCustomersResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
70
|
+
|
|
71
|
+
const sdk = new CodatLending({
|
|
72
|
+
security: {
|
|
73
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
sdk.salesCustomers.list({
|
|
78
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
|
+
orderBy: "-modifiedDate",
|
|
81
|
+
page: 1,
|
|
82
|
+
pageSize: 100,
|
|
83
|
+
query: "culpa",
|
|
84
|
+
}).then((res: ListCommerceCustomersResponse) => {
|
|
85
|
+
if (res.statusCode == 200) {
|
|
86
|
+
// handle response
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
| Parameter | Type | Required | Description |
|
|
94
|
+
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
95
|
+
| `request` | [operations.ListCommerceCustomersRequest](../../models/operations/listcommercecustomersrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
96
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
97
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Response
|
|
101
|
+
|
|
102
|
+
**Promise<[operations.ListCommerceCustomersResponse](../../models/operations/listcommercecustomersresponse.md)>**
|
|
103
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# salesDisputes
|
|
2
|
+
|
|
3
|
+
### Available Operations
|
|
4
|
+
|
|
5
|
+
* [get](#get) - Get dispute
|
|
6
|
+
* [list](#list) - List disputes
|
|
7
|
+
|
|
8
|
+
## get
|
|
9
|
+
|
|
10
|
+
The *Get dispute* endpoint returns a single dispute for a given disputeId.
|
|
11
|
+
|
|
12
|
+
[Disputes](https://docs.codat.io/commerce-api#/schemas/Dispute) are created when a customer is unsatisfied with their purchase or believe they have been charged incorrectly.
|
|
13
|
+
|
|
14
|
+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-disputes) for integrations that support getting a specific dispute.
|
|
15
|
+
|
|
16
|
+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Example Usage
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { CodatLending } from "@codat/lending";
|
|
23
|
+
import { GetCommerceDisputeResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
24
|
+
|
|
25
|
+
const sdk = new CodatLending({
|
|
26
|
+
security: {
|
|
27
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
sdk.salesDisputes.get({
|
|
32
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
+
disputeId: "doloribus",
|
|
35
|
+
}).then((res: GetCommerceDisputeResponse) => {
|
|
36
|
+
if (res.statusCode == 200) {
|
|
37
|
+
// handle response
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
| Parameter | Type | Required | Description |
|
|
45
|
+
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
|
46
|
+
| `request` | [operations.GetCommerceDisputeRequest](../../models/operations/getcommercedisputerequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
47
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
48
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Response
|
|
52
|
+
|
|
53
|
+
**Promise<[operations.GetCommerceDisputeResponse](../../models/operations/getcommercedisputeresponse.md)>**
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## list
|
|
57
|
+
|
|
58
|
+
The *List disputes* endpoint returns a list of [disputes](https://docs.codat.io/commerce-api#/schemas/Dispute) for a given company's connection.
|
|
59
|
+
|
|
60
|
+
[Disputes](https://docs.codat.io/commerce-api#/schemas/Dispute) are created when a customer is unsatisfied with their purchase or believe they have been charged incorrectly.
|
|
61
|
+
|
|
62
|
+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Example Usage
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
import { CodatLending } from "@codat/lending";
|
|
69
|
+
import { ListCommerceDisputesResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
70
|
+
|
|
71
|
+
const sdk = new CodatLending({
|
|
72
|
+
security: {
|
|
73
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
sdk.salesDisputes.list({
|
|
78
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
|
+
orderBy: "-modifiedDate",
|
|
81
|
+
page: 1,
|
|
82
|
+
pageSize: 100,
|
|
83
|
+
query: "sapiente",
|
|
84
|
+
}).then((res: ListCommerceDisputesResponse) => {
|
|
85
|
+
if (res.statusCode == 200) {
|
|
86
|
+
// handle response
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
| Parameter | Type | Required | Description |
|
|
94
|
+
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
|
|
95
|
+
| `request` | [operations.ListCommerceDisputesRequest](../../models/operations/listcommercedisputesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
96
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
97
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Response
|
|
101
|
+
|
|
102
|
+
**Promise<[operations.ListCommerceDisputesResponse](../../models/operations/listcommercedisputesresponse.md)>**
|
|
103
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# salesLocations
|
|
2
|
+
|
|
3
|
+
### Available Operations
|
|
4
|
+
|
|
5
|
+
* [get](#get) - Get location
|
|
6
|
+
* [list](#list) - List locations
|
|
7
|
+
|
|
8
|
+
## get
|
|
9
|
+
|
|
10
|
+
The *Get location* endpoint returns a single location for a given locationId.
|
|
11
|
+
|
|
12
|
+
[Locations](https://docs.codat.io/commerce-api#/schemas/Location) hold information on the geographic location at which stocks of [products](https://docs.codat.io/commerce-api#/schemas/Product) may be held or where [orders](https://docs.codat.io/commerce-api#/schemas/Order) were placed.
|
|
13
|
+
|
|
14
|
+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-locations) for integrations that support getting a specific location.
|
|
15
|
+
|
|
16
|
+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Example Usage
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { CodatLending } from "@codat/lending";
|
|
23
|
+
import { GetCommerceLocationResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
24
|
+
|
|
25
|
+
const sdk = new CodatLending({
|
|
26
|
+
security: {
|
|
27
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
sdk.salesLocations.get({
|
|
32
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
+
locationId: "architecto",
|
|
35
|
+
}).then((res: GetCommerceLocationResponse) => {
|
|
36
|
+
if (res.statusCode == 200) {
|
|
37
|
+
// handle response
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
| Parameter | Type | Required | Description |
|
|
45
|
+
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
|
|
46
|
+
| `request` | [operations.GetCommerceLocationRequest](../../models/operations/getcommercelocationrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
47
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
48
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Response
|
|
52
|
+
|
|
53
|
+
**Promise<[operations.GetCommerceLocationResponse](../../models/operations/getcommercelocationresponse.md)>**
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## list
|
|
57
|
+
|
|
58
|
+
The *List locations* endpoint returns a list of [locations](https://docs.codat.io/commerce-api#/schemas/Location) for a given company's connection.
|
|
59
|
+
|
|
60
|
+
[Locations](https://docs.codat.io/commerce-api#/schemas/Location) hold information on the geographic location at which stocks of [products](https://docs.codat.io/commerce-api#/schemas/Product) may be held or where [orders](https://docs.codat.io/commerce-api#/schemas/Order) were placed.
|
|
61
|
+
|
|
62
|
+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Example Usage
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
import { CodatLending } from "@codat/lending";
|
|
69
|
+
import { ListCommerceLocationsResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
70
|
+
|
|
71
|
+
const sdk = new CodatLending({
|
|
72
|
+
security: {
|
|
73
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
sdk.salesLocations.list({
|
|
78
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
|
+
}).then((res: ListCommerceLocationsResponse) => {
|
|
81
|
+
if (res.statusCode == 200) {
|
|
82
|
+
// handle response
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Parameters
|
|
88
|
+
|
|
89
|
+
| Parameter | Type | Required | Description |
|
|
90
|
+
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
91
|
+
| `request` | [operations.ListCommerceLocationsRequest](../../models/operations/listcommercelocationsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
92
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
93
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Response
|
|
97
|
+
|
|
98
|
+
**Promise<[operations.ListCommerceLocationsResponse](../../models/operations/listcommercelocationsresponse.md)>**
|
|
99
|
+
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# salesMetrics
|
|
2
|
+
|
|
3
|
+
### Available Operations
|
|
4
|
+
|
|
5
|
+
* [getCustomerRetention](#getcustomerretention) - Get customer retention metrics
|
|
6
|
+
* [getLifetimeValue](#getlifetimevalue) - Get lifetime value metrics
|
|
7
|
+
* [getRevenue](#getrevenue) - Get commerce revenue metrics
|
|
8
|
+
|
|
9
|
+
## getCustomerRetention
|
|
10
|
+
|
|
11
|
+
The *Get customer retention metrics* endpoint returns customer retention insights for a specific company's commerce connection over one or more periods of time.
|
|
12
|
+
|
|
13
|
+
This detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company.
|
|
14
|
+
|
|
15
|
+
#### Customer retention metrics
|
|
16
|
+
|
|
17
|
+
- __Existing customers__: the number of unique customers that have placed an order(s) in the specified period and any previous period.
|
|
18
|
+
- __New customers__: the number of unique customers that have placed an order(s) in the specified period and none in any previous period.
|
|
19
|
+
- __Total customers__: the total number of existing and new customers within the specified period.
|
|
20
|
+
- __Retention rate__: the ratio of existing customers within the specified period compared to the total customers at the end of the previous period represented as a percentage.
|
|
21
|
+
- __Repeat rate__: the ratio of existing customers to total customers over the specified period represented as a percentage.
|
|
22
|
+
|
|
23
|
+
Learn more about the formulas used to calculate customer retention metrics [here](https://docs.codat.io/lending/commerce-metrics/overview#what-metrics-are-available).
|
|
24
|
+
|
|
25
|
+
#### Response structure
|
|
26
|
+
|
|
27
|
+
The Customer retention report's dimensions and measures are:
|
|
28
|
+
|
|
29
|
+
| Index | Dimensions |
|
|
30
|
+
|-----------------------------|----------------------------|
|
|
31
|
+
| `index` = 0 | Period |
|
|
32
|
+
| `index` = 1 | Customer retention metrics |
|
|
33
|
+
|
|
34
|
+
| Index | Measures |
|
|
35
|
+
|----------------------|------------|
|
|
36
|
+
| `index` = 0 | Count |
|
|
37
|
+
| `index` = 1 | Percentage |
|
|
38
|
+
|
|
39
|
+
The report data then combines multiple reporting dimensions and measures and outputs the value of each combination.
|
|
40
|
+
|
|
41
|
+
### Example Usage
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
import { CodatLending } from "@codat/lending";
|
|
45
|
+
import { GetCommerceCustomerRetentionMetricsResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
46
|
+
import { PeriodUnit } from "@codat/lending/dist/sdk/models/shared";
|
|
47
|
+
|
|
48
|
+
const sdk = new CodatLending({
|
|
49
|
+
security: {
|
|
50
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
sdk.salesMetrics.getCustomerRetention({
|
|
55
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
56
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
57
|
+
includeDisplayNames: false,
|
|
58
|
+
numberOfPeriods: 652790,
|
|
59
|
+
periodLength: 208876,
|
|
60
|
+
periodUnit: PeriodUnit.Month,
|
|
61
|
+
reportDate: "29-09-2020",
|
|
62
|
+
}).then((res: GetCommerceCustomerRetentionMetricsResponse) => {
|
|
63
|
+
if (res.statusCode == 200) {
|
|
64
|
+
// handle response
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Parameters
|
|
70
|
+
|
|
71
|
+
| Parameter | Type | Required | Description |
|
|
72
|
+
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
73
|
+
| `request` | [operations.GetCommerceCustomerRetentionMetricsRequest](../../models/operations/getcommercecustomerretentionmetricsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
74
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
75
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Response
|
|
79
|
+
|
|
80
|
+
**Promise<[operations.GetCommerceCustomerRetentionMetricsResponse](../../models/operations/getcommercecustomerretentionmetricsresponse.md)>**
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## getLifetimeValue
|
|
84
|
+
|
|
85
|
+
The *Get lifetime value metrics* endpoint returns the average revenue that a specific company will generate throughout its lifespan over one or more periods of time.
|
|
86
|
+
|
|
87
|
+
This detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company.
|
|
88
|
+
|
|
89
|
+
Learn more about the formulas used to calculate the lifetime value metrics [here](https://docs.codat.io/lending/commerce-metrics/overview#what-metrics-are-available).
|
|
90
|
+
|
|
91
|
+
Refer to the [commerce reporting structure](https://docs.codat.io/lending/commerce-metrics/reporting-structure) page for more detail on commerce reports in Lending.
|
|
92
|
+
|
|
93
|
+
#### Response structure
|
|
94
|
+
|
|
95
|
+
The Lifetime value report's dimensions and measures are:
|
|
96
|
+
|
|
97
|
+
| Index | Dimensions |
|
|
98
|
+
|---------------|------------------------|
|
|
99
|
+
| `index` = 0 | Period |
|
|
100
|
+
| `index` = 1 | Lifetime value metrics |
|
|
101
|
+
|
|
102
|
+
| Index | Measures |
|
|
103
|
+
|-------------------|---------|
|
|
104
|
+
| `index` = 1 | Value |
|
|
105
|
+
|
|
106
|
+
The report data then combines multiple reporting dimensions and measures and outputs the value of each combination.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Example Usage
|
|
110
|
+
|
|
111
|
+
```typescript
|
|
112
|
+
import { CodatLending } from "@codat/lending";
|
|
113
|
+
import { GetCommerceLifetimeValueMetricsResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
114
|
+
import { PeriodUnit } from "@codat/lending/dist/sdk/models/shared";
|
|
115
|
+
|
|
116
|
+
const sdk = new CodatLending({
|
|
117
|
+
security: {
|
|
118
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
119
|
+
},
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
sdk.salesMetrics.getLifetimeValue({
|
|
123
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
124
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
125
|
+
includeDisplayNames: false,
|
|
126
|
+
numberOfPeriods: 161309,
|
|
127
|
+
periodLength: 995300,
|
|
128
|
+
periodUnit: PeriodUnit.Month,
|
|
129
|
+
reportDate: "29-09-2020",
|
|
130
|
+
}).then((res: GetCommerceLifetimeValueMetricsResponse) => {
|
|
131
|
+
if (res.statusCode == 200) {
|
|
132
|
+
// handle response
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Parameters
|
|
138
|
+
|
|
139
|
+
| Parameter | Type | Required | Description |
|
|
140
|
+
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
141
|
+
| `request` | [operations.GetCommerceLifetimeValueMetricsRequest](../../models/operations/getcommercelifetimevaluemetricsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
142
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
143
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Response
|
|
147
|
+
|
|
148
|
+
**Promise<[operations.GetCommerceLifetimeValueMetricsResponse](../../models/operations/getcommercelifetimevaluemetricsresponse.md)>**
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## getRevenue
|
|
152
|
+
|
|
153
|
+
The *Get revenue report* endpoint returns the revenue and revenue growth for a specific company connection over one or more periods of time.
|
|
154
|
+
|
|
155
|
+
This detail helps you assess a merchant's health and advise them on performance improvement strategies. It also provides you with key insights you need to assess the credit risk of a company.
|
|
156
|
+
|
|
157
|
+
Learn more about the formulas used to calculate the revenue metrics [here](https://docs.codat.io/lending/commerce-metrics/overview#what-metrics-are-available).
|
|
158
|
+
|
|
159
|
+
Refer to the [commerce reporting structure](https://docs.codat.io/lending/commerce-metrics/reporting-structure) page for more details on commerce reports in Lending.
|
|
160
|
+
|
|
161
|
+
#### Response structure
|
|
162
|
+
|
|
163
|
+
The Revenue report's dimensions and measures are:
|
|
164
|
+
|
|
165
|
+
| Index | Dimensions |
|
|
166
|
+
|---------------|------------|
|
|
167
|
+
| `index` = 0 | Period |
|
|
168
|
+
| `index` = 1 | Revenue |
|
|
169
|
+
|
|
170
|
+
| Index | Measures |
|
|
171
|
+
|---------------|--------------------------------------------------------------------------------------------------------------------------|
|
|
172
|
+
| `index` = 0 | Value |
|
|
173
|
+
| `index` = 1 | Percentage change, defined as the change between the current and previous periods' values and expressed as a percentage. |
|
|
174
|
+
|
|
175
|
+
The report data then combines multiple reporting dimensions and measures and outputs the value of each combination.
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
### Example Usage
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
import { CodatLending } from "@codat/lending";
|
|
182
|
+
import { GetCommerceRevenueMetricsResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
183
|
+
import { PeriodUnit } from "@codat/lending/dist/sdk/models/shared";
|
|
184
|
+
|
|
185
|
+
const sdk = new CodatLending({
|
|
186
|
+
security: {
|
|
187
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
sdk.salesMetrics.getRevenue({
|
|
192
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
193
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
194
|
+
includeDisplayNames: false,
|
|
195
|
+
numberOfPeriods: 581850,
|
|
196
|
+
periodLength: 253291,
|
|
197
|
+
periodUnit: PeriodUnit.Week,
|
|
198
|
+
reportDate: "29-09-2020",
|
|
199
|
+
}).then((res: GetCommerceRevenueMetricsResponse) => {
|
|
200
|
+
if (res.statusCode == 200) {
|
|
201
|
+
// handle response
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### Parameters
|
|
207
|
+
|
|
208
|
+
| Parameter | Type | Required | Description |
|
|
209
|
+
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
210
|
+
| `request` | [operations.GetCommerceRevenueMetricsRequest](../../models/operations/getcommercerevenuemetricsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
211
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
212
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### Response
|
|
216
|
+
|
|
217
|
+
**Promise<[operations.GetCommerceRevenueMetricsResponse](../../models/operations/getcommercerevenuemetricsresponse.md)>**
|
|
218
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# salesOrders
|
|
2
|
+
|
|
3
|
+
### Available Operations
|
|
4
|
+
|
|
5
|
+
* [get](#get) - Get order
|
|
6
|
+
* [list](#list) - List orders
|
|
7
|
+
|
|
8
|
+
## get
|
|
9
|
+
|
|
10
|
+
The *Get order* endpoint returns a single order for a given orderId.
|
|
11
|
+
|
|
12
|
+
[Orders](https://docs.codat.io/commerce-api#/schemas/Order) contain the transaction details for all products sold by the company.
|
|
13
|
+
|
|
14
|
+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/commerce?view=tab-by-data-type&dataType=commerce-orders) for integrations that support getting a specific order.
|
|
15
|
+
|
|
16
|
+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Example Usage
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { CodatLending } from "@codat/lending";
|
|
23
|
+
import { GetCommerceOrderResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
24
|
+
|
|
25
|
+
const sdk = new CodatLending({
|
|
26
|
+
security: {
|
|
27
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
sdk.salesOrders.get({
|
|
32
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
+
orderId: "quam",
|
|
35
|
+
}).then((res: GetCommerceOrderResponse) => {
|
|
36
|
+
if (res.statusCode == 200) {
|
|
37
|
+
// handle response
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
| Parameter | Type | Required | Description |
|
|
45
|
+
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
|
|
46
|
+
| `request` | [operations.GetCommerceOrderRequest](../../models/operations/getcommerceorderrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
47
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
48
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Response
|
|
52
|
+
|
|
53
|
+
**Promise<[operations.GetCommerceOrderResponse](../../models/operations/getcommerceorderresponse.md)>**
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## list
|
|
57
|
+
|
|
58
|
+
The *List orders* endpoint returns a list of [orders](https://docs.codat.io/commerce-api#/schemas/Order) for a given company's connection.
|
|
59
|
+
|
|
60
|
+
[Orders](https://docs.codat.io/commerce-api#/schemas/Order) contain the transaction details for all products sold by the company.
|
|
61
|
+
|
|
62
|
+
Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/lending-api#/operations/refresh-company-data).
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Example Usage
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
import { CodatLending } from "@codat/lending";
|
|
69
|
+
import { ListCommerceOrdersResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
70
|
+
|
|
71
|
+
const sdk = new CodatLending({
|
|
72
|
+
security: {
|
|
73
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
sdk.salesOrders.list({
|
|
78
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
|
+
orderBy: "-modifiedDate",
|
|
81
|
+
page: 1,
|
|
82
|
+
pageSize: 100,
|
|
83
|
+
query: "molestiae",
|
|
84
|
+
}).then((res: ListCommerceOrdersResponse) => {
|
|
85
|
+
if (res.statusCode == 200) {
|
|
86
|
+
// handle response
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
| Parameter | Type | Required | Description |
|
|
94
|
+
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
|
|
95
|
+
| `request` | [operations.ListCommerceOrdersRequest](../../models/operations/listcommerceordersrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
96
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
97
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Response
|
|
101
|
+
|
|
102
|
+
**Promise<[operations.ListCommerceOrdersResponse](../../models/operations/listcommerceordersresponse.md)>**
|
|
103
|
+
|