@codat/lending 2.1.0 → 3.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 +70 -34
- package/dist/sdk/companies.js +2 -2
- package/dist/sdk/connections.js +2 -2
- package/dist/sdk/fileupload.js +1 -1
- package/dist/sdk/loanwriteback.d.ts +19 -0
- package/dist/sdk/loanwriteback.js +27 -0
- package/dist/sdk/loanwritebackaccounts.d.ts +40 -0
- package/dist/sdk/loanwritebackaccounts.js +294 -0
- package/dist/sdk/loanwritebackbankaccounts.d.ts +39 -0
- package/dist/sdk/loanwritebackbankaccounts.js +293 -0
- package/dist/sdk/loanwritebackbanktransactions.d.ts +40 -0
- package/dist/sdk/loanwritebackbanktransactions.js +294 -0
- package/dist/sdk/loanwritebackcreateoperations.d.ts +22 -0
- package/dist/sdk/loanwritebackcreateoperations.js +250 -0
- package/dist/sdk/loanwritebackdirectcosts.d.ts +40 -0
- package/dist/sdk/loanwritebackdirectcosts.js +294 -0
- package/dist/sdk/loanwritebacksuppliers.d.ts +40 -0
- package/dist/sdk/loanwritebacksuppliers.js +294 -0
- package/dist/sdk/loanwritebacktransfers.d.ts +40 -0
- package/dist/sdk/loanwritebacktransfers.js +294 -0
- package/dist/sdk/models/operations/createaccount.d.ts +27 -0
- package/dist/sdk/models/operations/createaccount.js +115 -0
- package/dist/sdk/models/operations/createbankaccount.d.ts +27 -0
- package/dist/sdk/models/operations/createbankaccount.js +115 -0
- package/dist/sdk/models/operations/createbanktransactions.d.ts +31 -0
- package/dist/sdk/models/operations/createbanktransactions.js +119 -0
- package/dist/sdk/models/operations/createdirectcost.d.ts +27 -0
- package/dist/sdk/models/operations/createdirectcost.js +115 -0
- package/dist/sdk/models/operations/createsupplier.d.ts +27 -0
- package/dist/sdk/models/operations/createsupplier.js +115 -0
- package/dist/sdk/models/operations/createtransfer.d.ts +27 -0
- package/dist/sdk/models/operations/createtransfer.js +115 -0
- package/dist/sdk/models/operations/getcreatebanktransactionsmodel.d.ts +24 -0
- package/dist/sdk/models/operations/getcreatebanktransactionsmodel.js +103 -0
- package/dist/sdk/models/operations/getcreatechartofaccountsmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreatechartofaccountsmodel.js +99 -0
- package/dist/sdk/models/operations/getcreatedirectcostsmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreatedirectcostsmodel.js +99 -0
- package/dist/sdk/models/operations/getcreateoperation.d.ts +23 -0
- package/dist/sdk/models/operations/getcreateoperation.js +99 -0
- package/dist/sdk/models/operations/getcreatetransfersmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreatetransfersmodel.js +99 -0
- package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.js +99 -0
- package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.js +99 -0
- package/dist/sdk/models/operations/index.d.ts +14 -0
- package/dist/sdk/models/operations/index.js +14 -0
- package/dist/sdk/models/operations/listcreateoperations.d.ts +35 -0
- package/dist/sdk/models/operations/listcreateoperations.js +111 -0
- package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.d.ts +40 -0
- package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.js +90 -0
- package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.d.ts +7 -0
- package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.js +45 -0
- package/dist/sdk/models/shared/{addressesitems.d.ts → accountingaddress.d.ts} +1 -1
- package/dist/sdk/models/shared/{addressesitems.js → accountingaddress.js} +13 -13
- package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +2 -2
- package/dist/sdk/models/shared/accountingbillcreditnote.js +3 -3
- package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +6 -66
- package/dist/sdk/models/shared/accountingcompanyinfo.js +10 -100
- package/dist/sdk/models/shared/accountingcreateaccountresponse.d.ts +124 -0
- package/dist/sdk/models/shared/accountingcreateaccountresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatebankaccountresponse.d.ts +112 -0
- package/dist/sdk/models/shared/accountingcreatebankaccountresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactions.d.ts +6 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactions.js +52 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.d.ts +92 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatedirectcostresponse.d.ts +111 -0
- package/dist/sdk/models/shared/accountingcreatedirectcostresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatesupplierresponse.d.ts +101 -0
- package/dist/sdk/models/shared/accountingcreatesupplierresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatetransferresponse.d.ts +99 -0
- package/dist/sdk/models/shared/accountingcreatetransferresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreditnote.d.ts +2 -2
- package/dist/sdk/models/shared/accountingcreditnote.js +3 -3
- package/dist/sdk/models/shared/accountingcustomer.d.ts +2 -2
- package/dist/sdk/models/shared/accountingcustomer.js +3 -3
- package/dist/sdk/models/shared/accountinginvoice.d.ts +2 -2
- package/dist/sdk/models/shared/accountinginvoice.js +3 -3
- package/dist/sdk/models/shared/accountingsupplier.d.ts +2 -2
- package/dist/sdk/models/shared/accountingsupplier.js +3 -3
- package/dist/sdk/models/shared/clientratelimitreachedwebhook.d.ts +32 -0
- package/dist/sdk/models/shared/clientratelimitreachedwebhook.js +80 -0
- package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.d.ts +31 -0
- package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.js +50 -0
- package/dist/sdk/models/shared/clientratelimitresetwebhook.d.ts +32 -0
- package/dist/sdk/models/shared/clientratelimitresetwebhook.js +80 -0
- package/dist/sdk/models/shared/clientratelimitresetwebhookdata.d.ts +39 -0
- package/dist/sdk/models/shared/clientratelimitresetwebhookdata.js +60 -0
- package/dist/sdk/models/shared/commercecompanyinfo.d.ts +4 -4
- package/dist/sdk/models/shared/commercecompanyinfo.js +6 -6
- package/dist/sdk/models/shared/contact.d.ts +4 -4
- package/dist/sdk/models/shared/contact.js +6 -6
- package/dist/sdk/models/shared/createbankaccounttransaction.d.ts +31 -0
- package/dist/sdk/models/shared/createbankaccounttransaction.js +65 -0
- package/dist/sdk/models/shared/index.d.ts +31 -3
- package/dist/sdk/models/shared/index.js +31 -3
- package/dist/sdk/models/shared/items.d.ts +2 -9
- package/dist/sdk/models/shared/items.js +5 -6
- package/dist/sdk/models/shared/phonenumber.d.ts +12 -0
- package/dist/sdk/models/shared/{withholdingtaxitems.js → phonenumber.js} +12 -11
- package/dist/sdk/models/shared/pushchangetype.d.ts +7 -0
- package/dist/sdk/models/shared/pushchangetype.js +14 -0
- package/dist/sdk/models/shared/pushfieldvalidation.d.ts +6 -0
- package/dist/sdk/models/shared/pushfieldvalidation.js +55 -0
- package/dist/sdk/models/shared/pushoperation.d.ts +90 -0
- package/dist/sdk/models/shared/pushoperation.js +111 -0
- package/dist/sdk/models/shared/pushoperationchange.d.ts +8 -0
- package/dist/sdk/models/shared/pushoperationchange.js +58 -0
- package/dist/sdk/models/shared/pushoperationref.d.ts +9 -0
- package/dist/sdk/models/shared/pushoperationref.js +51 -0
- package/dist/sdk/models/shared/pushoperations.d.ts +10 -0
- package/dist/sdk/models/shared/pushoperations.js +69 -0
- package/dist/sdk/models/shared/pushoperationstatus.d.ts +9 -0
- package/dist/sdk/models/shared/pushoperationstatus.js +16 -0
- package/dist/sdk/models/shared/pushoption.d.ts +14 -0
- package/dist/sdk/models/shared/pushoption.js +89 -0
- package/dist/sdk/models/shared/pushoptionchoice.d.ts +12 -0
- package/dist/sdk/models/shared/pushoptionchoice.js +66 -0
- package/dist/sdk/models/shared/pushoptionproperty.d.ts +13 -0
- package/dist/sdk/models/shared/pushoptionproperty.js +88 -0
- package/dist/sdk/models/shared/pushoptiontype.d.ts +10 -0
- package/dist/sdk/models/shared/pushoptiontype.js +17 -0
- package/dist/sdk/models/shared/pushvalidationinfo.d.ts +6 -0
- package/dist/sdk/models/shared/pushvalidationinfo.js +53 -0
- package/dist/sdk/models/shared/validation.d.ts +9 -0
- package/dist/sdk/models/shared/validation.js +56 -0
- package/dist/sdk/models/shared/validationitem.d.ts +6 -0
- package/dist/sdk/models/shared/validationitem.js +55 -0
- package/dist/sdk/models/shared/{weblinksitems.d.ts → weblink.d.ts} +3 -3
- package/dist/sdk/models/shared/{weblinksitems.js → weblink.js} +14 -14
- package/dist/sdk/models/webhooks/accountcategoriesupdated.d.ts +7 -0
- package/dist/sdk/models/webhooks/accountcategoriesupdated.js +51 -0
- package/dist/sdk/models/webhooks/clientratelimitreached.d.ts +7 -0
- package/dist/sdk/models/webhooks/clientratelimitreached.js +51 -0
- package/dist/sdk/models/webhooks/clientratelimitreset.d.ts +7 -0
- package/dist/sdk/models/webhooks/clientratelimitreset.js +51 -0
- package/dist/sdk/models/webhooks/index.d.ts +3 -0
- package/dist/sdk/models/webhooks/index.js +22 -0
- package/dist/sdk/sdk.d.ts +2 -0
- package/dist/sdk/sdk.js +4 -2
- package/docs/models/operations/createaccountrequest.md +13 -0
- package/docs/models/operations/createaccountresponse.md +12 -0
- package/docs/models/operations/createbankaccountrequest.md +13 -0
- package/docs/models/operations/createbankaccountresponse.md +12 -0
- package/docs/models/operations/createbanktransactionsrequest.md +14 -0
- package/docs/models/operations/createbanktransactionsresponse.md +12 -0
- package/docs/models/operations/createdirectcostrequest.md +13 -0
- package/docs/models/operations/createdirectcostresponse.md +12 -0
- package/docs/models/operations/createsupplierrequest.md +13 -0
- package/docs/models/operations/createsupplierresponse.md +12 -0
- package/docs/models/operations/createtransferrequest.md +13 -0
- package/docs/models/operations/createtransferresponse.md +12 -0
- package/docs/models/operations/getcreatebanktransactionsmodelrequest.md +10 -0
- package/docs/models/operations/getcreatebanktransactionsmodelresponse.md +12 -0
- package/docs/models/operations/getcreatechartofaccountsmodelrequest.md +9 -0
- package/docs/models/operations/getcreatechartofaccountsmodelresponse.md +12 -0
- package/docs/models/operations/getcreatedirectcostsmodelrequest.md +9 -0
- package/docs/models/operations/getcreatedirectcostsmodelresponse.md +12 -0
- package/docs/models/operations/getcreateoperationrequest.md +9 -0
- package/docs/models/operations/getcreateoperationresponse.md +12 -0
- package/docs/models/operations/getcreatetransfersmodelrequest.md +9 -0
- package/docs/models/operations/getcreatetransfersmodelresponse.md +12 -0
- package/docs/models/operations/getcreateupdatebankaccountsmodelrequest.md +9 -0
- package/docs/models/operations/getcreateupdatebankaccountsmodelresponse.md +12 -0
- package/docs/models/operations/getcreateupdatesuppliersmodelrequest.md +9 -0
- package/docs/models/operations/getcreateupdatesuppliersmodelresponse.md +12 -0
- package/docs/models/operations/listcreateoperationsrequest.md +12 -0
- package/docs/models/operations/listcreateoperationsresponse.md +12 -0
- package/docs/models/shared/accountcategoriesupdatedwebhook.md +18 -0
- package/docs/models/shared/accountcategoriesupdatedwebhookdata.md +8 -0
- package/docs/models/shared/{addressesitems.md → accountingaddress.md} +1 -1
- package/docs/models/shared/accountingbillcreditnote.md +1 -1
- package/docs/models/shared/accountingcompanyinfo.md +3 -3
- package/docs/models/shared/accountingcreateaccountresponse.md +21 -0
- package/docs/models/shared/accountingcreatebankaccountresponse.md +21 -0
- package/docs/models/shared/accountingcreatebanktransactions.md +9 -0
- package/docs/models/shared/accountingcreatebanktransactionsresponse.md +21 -0
- package/docs/models/shared/accountingcreatedirectcostresponse.md +21 -0
- package/docs/models/shared/accountingcreatesupplierresponse.md +21 -0
- package/docs/models/shared/accountingcreatetransferresponse.md +21 -0
- package/docs/models/shared/accountingcreditnote.md +1 -1
- package/docs/models/shared/accountingcustomer.md +1 -1
- package/docs/models/shared/accountinginvoice.md +1 -1
- package/docs/models/shared/accountingsupplier.md +1 -1
- package/docs/models/shared/clientratelimitreachedwebhook.md +16 -0
- package/docs/models/shared/clientratelimitreachedwebhookdata.md +9 -0
- package/docs/models/shared/clientratelimitresetwebhook.md +16 -0
- package/docs/models/shared/clientratelimitresetwebhookdata.md +11 -0
- package/docs/models/shared/commercecompanyinfo.md +2 -2
- package/docs/models/shared/contact.md +2 -2
- package/docs/models/shared/createbankaccounttransaction.md +12 -0
- package/docs/models/shared/items.md +4 -4
- package/docs/models/shared/{accountingcompanyinfophone.md → phonenumber.md} +1 -1
- package/docs/models/shared/pushchangetype.md +12 -0
- package/docs/models/shared/pushfieldvalidation.md +10 -0
- package/docs/models/shared/pushoperation.md +20 -0
- package/docs/models/shared/pushoperationchange.md +10 -0
- package/docs/models/shared/pushoperationref.md +9 -0
- package/docs/models/shared/pushoperations.md +12 -0
- package/docs/models/shared/pushoperationstatus.md +13 -0
- package/docs/models/shared/pushoption.md +14 -0
- package/docs/models/shared/pushoptionchoice.md +12 -0
- package/docs/models/shared/pushoptionproperty.md +14 -0
- package/docs/models/shared/pushoptiontype.md +15 -0
- package/docs/models/shared/pushvalidationinfo.md +9 -0
- package/docs/models/shared/validation.md +11 -0
- package/docs/models/shared/validationitem.md +10 -0
- package/docs/models/shared/weblink.md +11 -0
- package/docs/models/shared/{itemstype.md → weblinktype.md} +1 -1
- package/docs/models/webhooks/accountcategoriesupdatedresponse.md +10 -0
- package/docs/models/webhooks/clientratelimitreachedresponse.md +10 -0
- package/docs/models/webhooks/clientratelimitresetresponse.md +10 -0
- package/docs/sdks/accountingbankdata/README.md +1 -1
- package/docs/sdks/accountingbankdataaccounts/README.md +3 -3
- package/docs/sdks/accountspayable/README.md +1 -1
- package/docs/sdks/accountspayablebillcreditnotes/README.md +3 -3
- package/docs/sdks/accountspayablebillpayments/README.md +3 -3
- package/docs/sdks/accountspayablebills/README.md +6 -6
- package/docs/sdks/accountspayablesuppliers/README.md +6 -6
- package/docs/sdks/accountsreceivable/README.md +1 -1
- package/docs/sdks/accountsreceivablecreditnotes/README.md +3 -3
- package/docs/sdks/accountsreceivablecustomers/README.md +6 -6
- package/docs/sdks/accountsreceivabledirectincomes/README.md +6 -6
- package/docs/sdks/accountsreceivableinvoices/README.md +8 -8
- package/docs/sdks/accountsreceivablepayments/README.md +3 -3
- package/docs/sdks/accountsreceivablereports/README.md +5 -5
- package/docs/sdks/banking/README.md +1 -1
- package/docs/sdks/bankingaccountbalances/README.md +2 -2
- package/docs/sdks/bankingcategorizedstatement/README.md +2 -2
- package/docs/sdks/bankingtransactioncategories/README.md +3 -3
- package/docs/sdks/companies/README.md +1 -1
- package/docs/sdks/companyinfo/README.md +1 -1
- package/docs/sdks/connections/README.md +1 -1
- package/docs/sdks/dataintegrity/README.md +1 -1
- package/docs/sdks/excelreports/README.md +1 -1
- package/docs/sdks/fileupload/README.md +1 -1
- package/docs/sdks/financialstatements/README.md +1 -1
- package/docs/sdks/financialstatementsaccounts/README.md +3 -3
- package/docs/sdks/financialstatementsbalancesheet/README.md +3 -3
- package/docs/sdks/financialstatementscashflow/README.md +2 -2
- package/docs/sdks/financialstatementsprofitandloss/README.md +3 -3
- package/docs/sdks/liabilities/README.md +1 -1
- package/docs/sdks/loanwriteback/README.md +4 -0
- package/docs/sdks/loanwritebackaccounts/README.md +134 -0
- package/docs/sdks/loanwritebackbankaccounts/README.md +126 -0
- package/docs/sdks/loanwritebackbanktransactions/README.md +121 -0
- package/docs/sdks/loanwritebackcreateoperations/README.md +89 -0
- package/docs/sdks/loanwritebackdirectcosts/README.md +200 -0
- package/docs/sdks/loanwritebacksuppliers/README.md +142 -0
- package/docs/sdks/loanwritebacktransfers/README.md +156 -0
- package/docs/sdks/managedata/README.md +1 -1
- package/docs/sdks/managedatapulloperations/README.md +4 -4
- package/docs/sdks/managedatarefresh/README.md +4 -4
- package/docs/sdks/sales/README.md +1 -1
- package/docs/sdks/salescustomers/README.md +2 -2
- package/docs/sdks/salesdisputes/README.md +2 -2
- package/docs/sdks/saleslocations/README.md +1 -1
- package/docs/sdks/salesmetrics/README.md +9 -9
- package/docs/sdks/salesorders/README.md +2 -2
- package/docs/sdks/salespaymentmethods/README.md +5 -5
- package/docs/sdks/salespayments/README.md +2 -2
- package/docs/sdks/salesproductcategories/README.md +5 -5
- package/docs/sdks/salesproducts/README.md +2 -2
- package/docs/sdks/salesreports/README.md +5 -5
- package/docs/sdks/salestransactions/README.md +2 -2
- package/docs/sdks/transactions/README.md +1 -1
- package/docs/sdks/transactionsaccounttransactions/README.md +5 -5
- package/docs/sdks/transactionsdirectcosts/README.md +11 -11
- package/docs/sdks/transactionsjournalentries/README.md +5 -5
- package/docs/sdks/transactionsjournals/README.md +2 -2
- package/docs/sdks/transactionstransfers/README.md +2 -2
- package/package.json +1 -1
- package/dist/sdk/models/shared/withholdingtaxitems.d.ts +0 -5
- package/docs/models/shared/accountingcompanyinfoaccountingaddress.md +0 -14
- package/docs/models/shared/accountingcompanyinfoweblink.md +0 -11
- package/docs/models/shared/accountingcompanyinfoweblinktype.md +0 -12
- package/docs/models/shared/weblinksitems.md +0 -11
- package/docs/models/shared/withholdingtaxitems.md +0 -9
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# LoanWriteback.Suppliers
|
|
2
|
+
|
|
3
|
+
### Available Operations
|
|
4
|
+
|
|
5
|
+
* [create](#create) - Create supplier
|
|
6
|
+
* [getCreateUpdateModel](#getcreateupdatemodel) - Get create/update supplier model
|
|
7
|
+
|
|
8
|
+
## create
|
|
9
|
+
|
|
10
|
+
The *Create supplier* endpoint creates a new [supplier](https://docs.codat.io/accounting-api#/schemas/Supplier) for a given company's connection.
|
|
11
|
+
|
|
12
|
+
[Suppliers](https://docs.codat.io/accounting-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.
|
|
13
|
+
|
|
14
|
+
**Integration-specific behaviour**
|
|
15
|
+
|
|
16
|
+
Required data may vary by integration. To see what data to post, first call [Get create/update supplier model](https://docs.codat.io/accounting-api#/operations/get-create-update-suppliers-model).
|
|
17
|
+
|
|
18
|
+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers) for integrations that support creating an account.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Example Usage
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { CodatLending } from "@codat/lending";
|
|
25
|
+
import { CreateSupplierResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
26
|
+
import { AccountingAddressType, SupplierStatus } from "@codat/lending/dist/sdk/models/shared";
|
|
27
|
+
|
|
28
|
+
const sdk = new CodatLending({
|
|
29
|
+
security: {
|
|
30
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
sdk.loanWriteback.suppliers.create({
|
|
35
|
+
accountingSupplier: {
|
|
36
|
+
addresses: [
|
|
37
|
+
{
|
|
38
|
+
city: "Ankundingworth",
|
|
39
|
+
country: "Guadeloupe",
|
|
40
|
+
line1: "nulla",
|
|
41
|
+
line2: "fugit",
|
|
42
|
+
postalCode: "99474-0623",
|
|
43
|
+
region: "ea",
|
|
44
|
+
type: AccountingAddressType.Unknown,
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
contactName: "vel",
|
|
48
|
+
defaultCurrency: "possimus",
|
|
49
|
+
emailAddress: "magnam",
|
|
50
|
+
id: "36813f16-d9f5-4fce-ac55-6146c3e250fb",
|
|
51
|
+
metadata: {
|
|
52
|
+
isDeleted: false,
|
|
53
|
+
},
|
|
54
|
+
modifiedDate: "2022-10-23T00:00:00.000Z",
|
|
55
|
+
phone: "+44 25691 154789",
|
|
56
|
+
registrationNumber: "deleniti",
|
|
57
|
+
sourceModifiedDate: "2022-10-23T00:00:00.000Z",
|
|
58
|
+
status: SupplierStatus.Unknown,
|
|
59
|
+
supplementalData: {
|
|
60
|
+
content: {
|
|
61
|
+
"fugit": {
|
|
62
|
+
"accusamus": "inventore",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
supplierName: "non",
|
|
67
|
+
taxNumber: "et",
|
|
68
|
+
},
|
|
69
|
+
allowSyncOnPushComplete: false,
|
|
70
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
71
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
72
|
+
forceUpdate: false,
|
|
73
|
+
timeoutInMinutes: 677412,
|
|
74
|
+
}).then((res: CreateSupplierResponse) => {
|
|
75
|
+
if (res.statusCode == 200) {
|
|
76
|
+
// handle response
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Parameters
|
|
82
|
+
|
|
83
|
+
| Parameter | Type | Required | Description |
|
|
84
|
+
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
|
85
|
+
| `request` | [operations.CreateSupplierRequest](../../models/operations/createsupplierrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
86
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
87
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Response
|
|
91
|
+
|
|
92
|
+
**Promise<[operations.CreateSupplierResponse](../../models/operations/createsupplierresponse.md)>**
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
## getCreateUpdateModel
|
|
96
|
+
|
|
97
|
+
The *Get create/update supplier model* endpoint returns the expected data for the request payload when creating and updating a [supplier](https://docs.codat.io/accounting-api#/schemas/Supplier) for a given company and integration.
|
|
98
|
+
|
|
99
|
+
[Suppliers](https://docs.codat.io/accounting-api#/schemas/Supplier) are people or organizations that provide something, such as a product or service.
|
|
100
|
+
|
|
101
|
+
**Integration-specific behaviour**
|
|
102
|
+
|
|
103
|
+
See the *response examples* for integration-specific indicative models.
|
|
104
|
+
|
|
105
|
+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=suppliers) for integrations that support creating and updating a supplier.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
### Example Usage
|
|
109
|
+
|
|
110
|
+
```typescript
|
|
111
|
+
import { CodatLending } from "@codat/lending";
|
|
112
|
+
import { GetCreateUpdateSuppliersModelResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
113
|
+
|
|
114
|
+
const sdk = new CodatLending({
|
|
115
|
+
security: {
|
|
116
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
sdk.loanWriteback.suppliers.getCreateUpdateModel({
|
|
121
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
122
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
123
|
+
}).then((res: GetCreateUpdateSuppliersModelResponse) => {
|
|
124
|
+
if (res.statusCode == 200) {
|
|
125
|
+
// handle response
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Parameters
|
|
131
|
+
|
|
132
|
+
| Parameter | Type | Required | Description |
|
|
133
|
+
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
134
|
+
| `request` | [operations.GetCreateUpdateSuppliersModelRequest](../../models/operations/getcreateupdatesuppliersmodelrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
135
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
136
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
### Response
|
|
140
|
+
|
|
141
|
+
**Promise<[operations.GetCreateUpdateSuppliersModelResponse](../../models/operations/getcreateupdatesuppliersmodelresponse.md)>**
|
|
142
|
+
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# LoanWriteback.Transfers
|
|
2
|
+
|
|
3
|
+
### Available Operations
|
|
4
|
+
|
|
5
|
+
* [create](#create) - Create transfer
|
|
6
|
+
* [getCreateModel](#getcreatemodel) - Get create transfer model
|
|
7
|
+
|
|
8
|
+
## create
|
|
9
|
+
|
|
10
|
+
The *Create transfer* endpoint creates a new [transfer](https://docs.codat.io/accounting-api#/schemas/Transfer) for a given company's connection.
|
|
11
|
+
|
|
12
|
+
[Transfers](https://docs.codat.io/accounting-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account.
|
|
13
|
+
|
|
14
|
+
**Integration-specific behaviour**
|
|
15
|
+
|
|
16
|
+
Required data may vary by integration. To see what data to post, first call [Get create transfer model](https://docs.codat.io/accounting-api#/operations/get-create-transfers-model).
|
|
17
|
+
|
|
18
|
+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=transfers) for integrations that support creating an account.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Example Usage
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { CodatLending } from "@codat/lending";
|
|
25
|
+
import { CreateTransferResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
26
|
+
|
|
27
|
+
const sdk = new CodatLending({
|
|
28
|
+
security: {
|
|
29
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
sdk.loanWriteback.transfers.create({
|
|
34
|
+
accountingTransfer: {
|
|
35
|
+
contactRef: {
|
|
36
|
+
dataType: "laborum",
|
|
37
|
+
id: "c366c8dd-6b14-4429-8747-4778a7bd466d",
|
|
38
|
+
},
|
|
39
|
+
date: "2022-10-23T00:00:00.000Z",
|
|
40
|
+
depositedRecordRefs: [
|
|
41
|
+
{
|
|
42
|
+
dataType: "accountTransaction",
|
|
43
|
+
id: "c10ab3cd-ca42-4519-84e5-23c7e0bc7178",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
description: "accusamus",
|
|
47
|
+
from: {
|
|
48
|
+
accountRef: {
|
|
49
|
+
id: "4796f2a7-0c68-4828-aaa4-82562f222e98",
|
|
50
|
+
name: "Tamara Vandervort IV",
|
|
51
|
+
},
|
|
52
|
+
amount: 8003.79,
|
|
53
|
+
currency: "EUR",
|
|
54
|
+
},
|
|
55
|
+
id: "e61e6b7b-95bc-40ab-bc20-c4f3789fd871",
|
|
56
|
+
metadata: {
|
|
57
|
+
isDeleted: false,
|
|
58
|
+
},
|
|
59
|
+
modifiedDate: "2022-10-23T00:00:00.000Z",
|
|
60
|
+
sourceModifiedDate: "2022-10-23T00:00:00.000Z",
|
|
61
|
+
supplementalData: {
|
|
62
|
+
content: {
|
|
63
|
+
"sint": {
|
|
64
|
+
"pariatur": "possimus",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
to: {
|
|
69
|
+
accountRef: {
|
|
70
|
+
id: "2efd121a-a6f1-4e67-8bdb-04f15756082d",
|
|
71
|
+
name: "Cassandra Ward V",
|
|
72
|
+
},
|
|
73
|
+
amount: 9453.02,
|
|
74
|
+
currency: "GBP",
|
|
75
|
+
},
|
|
76
|
+
trackingCategoryRefs: [
|
|
77
|
+
{
|
|
78
|
+
id: "d1705133-9d08-4086-a184-0394c26071f9",
|
|
79
|
+
name: "Camille Hirthe III",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
allowSyncOnPushComplete: false,
|
|
84
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
85
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
86
|
+
forceUpdate: false,
|
|
87
|
+
timeoutInMinutes: 310067,
|
|
88
|
+
}).then((res: CreateTransferResponse) => {
|
|
89
|
+
if (res.statusCode == 200) {
|
|
90
|
+
// handle response
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Parameters
|
|
96
|
+
|
|
97
|
+
| Parameter | Type | Required | Description |
|
|
98
|
+
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
|
99
|
+
| `request` | [operations.CreateTransferRequest](../../models/operations/createtransferrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
100
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
101
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Response
|
|
105
|
+
|
|
106
|
+
**Promise<[operations.CreateTransferResponse](../../models/operations/createtransferresponse.md)>**
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## getCreateModel
|
|
110
|
+
|
|
111
|
+
The *Get create transfer model* endpoint returns the expected data for the request payload when creating a [transfer](https://docs.codat.io/accounting-api#/schemas/Transfer) for a given company and integration.
|
|
112
|
+
|
|
113
|
+
[Transfers](https://docs.codat.io/accounting-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account.
|
|
114
|
+
|
|
115
|
+
**Integration-specific behaviour**
|
|
116
|
+
|
|
117
|
+
See the *response examples* for integration-specific indicative models.
|
|
118
|
+
|
|
119
|
+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=transfers) for integrations that support creating a transfer.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### Example Usage
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
import { CodatLending } from "@codat/lending";
|
|
126
|
+
import { GetCreateTransfersModelResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
127
|
+
|
|
128
|
+
const sdk = new CodatLending({
|
|
129
|
+
security: {
|
|
130
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
sdk.loanWriteback.transfers.getCreateModel({
|
|
135
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
136
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
137
|
+
}).then((res: GetCreateTransfersModelResponse) => {
|
|
138
|
+
if (res.statusCode == 200) {
|
|
139
|
+
// handle response
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Parameters
|
|
145
|
+
|
|
146
|
+
| Parameter | Type | Required | Description |
|
|
147
|
+
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
|
|
148
|
+
| `request` | [operations.GetCreateTransfersModelRequest](../../models/operations/getcreatetransfersmodelrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
149
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
150
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Response
|
|
154
|
+
|
|
155
|
+
**Promise<[operations.GetCreateTransfersModelResponse](../../models/operations/getcreatetransfersmodelresponse.md)>**
|
|
156
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ManageData.PullOperations
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -21,7 +21,7 @@ const sdk = new CodatLending({
|
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
sdk.
|
|
24
|
+
sdk.manageData.pullOperations.get({
|
|
25
25
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
26
26
|
datasetId: "eaed9f0f-e77b-4bc9-a58f-ab8b4b99ab18",
|
|
27
27
|
}).then((res: GetPullOperationResponse) => {
|
|
@@ -61,12 +61,12 @@ const sdk = new CodatLending({
|
|
|
61
61
|
},
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
sdk.
|
|
64
|
+
sdk.manageData.pullOperations.list({
|
|
65
65
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
66
66
|
orderBy: "-modifiedDate",
|
|
67
67
|
page: 1,
|
|
68
68
|
pageSize: 100,
|
|
69
|
-
query: "
|
|
69
|
+
query: "consequuntur",
|
|
70
70
|
}).then((res: ListPullOperationsResponse) => {
|
|
71
71
|
if (res.statusCode == 200) {
|
|
72
72
|
// handle response
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ManageData.Refresh
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -25,7 +25,7 @@ const sdk = new CodatLending({
|
|
|
25
25
|
},
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
sdk.
|
|
28
|
+
sdk.manageData.refresh.allDataTypes({
|
|
29
29
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
30
30
|
}).then((res: RefreshAllDataTypesResponse) => {
|
|
31
31
|
if (res.statusCode == 200) {
|
|
@@ -67,9 +67,9 @@ const sdk = new CodatLending({
|
|
|
67
67
|
},
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
-
sdk.
|
|
70
|
+
sdk.manageData.refresh.dataType({
|
|
71
71
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
72
|
-
connectionId: "
|
|
72
|
+
connectionId: "dac7af51-5cc4-413a-a63a-ae8d67864dbb",
|
|
73
73
|
dataType: DataType.Invoices,
|
|
74
74
|
}).then((res: RefreshDataTypeResponse) => {
|
|
75
75
|
if (res.statusCode == 200) {
|
|
@@ -31,7 +31,7 @@ const sdk = new CodatLending({
|
|
|
31
31
|
sdk.sales.customers.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
-
customerId: "
|
|
34
|
+
customerId: "commodi",
|
|
35
35
|
}).then((res: GetCommerceCustomerResponse) => {
|
|
36
36
|
if (res.statusCode == 200) {
|
|
37
37
|
// handle response
|
|
@@ -80,7 +80,7 @@ sdk.sales.customers.list({
|
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
81
81
|
page: 1,
|
|
82
82
|
pageSize: 100,
|
|
83
|
-
query: "
|
|
83
|
+
query: "in",
|
|
84
84
|
}).then((res: ListCommerceCustomersResponse) => {
|
|
85
85
|
if (res.statusCode == 200) {
|
|
86
86
|
// handle response
|
|
@@ -31,7 +31,7 @@ const sdk = new CodatLending({
|
|
|
31
31
|
sdk.sales.disputes.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
-
disputeId: "
|
|
34
|
+
disputeId: "corporis",
|
|
35
35
|
}).then((res: GetCommerceDisputeResponse) => {
|
|
36
36
|
if (res.statusCode == 200) {
|
|
37
37
|
// handle response
|
|
@@ -80,7 +80,7 @@ sdk.sales.disputes.list({
|
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
81
81
|
page: 1,
|
|
82
82
|
pageSize: 100,
|
|
83
|
-
query: "
|
|
83
|
+
query: "reiciendis",
|
|
84
84
|
}).then((res: ListCommerceDisputesResponse) => {
|
|
85
85
|
if (res.statusCode == 200) {
|
|
86
86
|
// handle response
|
|
@@ -31,7 +31,7 @@ const sdk = new CodatLending({
|
|
|
31
31
|
sdk.sales.locations.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
-
locationId: "
|
|
34
|
+
locationId: "assumenda",
|
|
35
35
|
}).then((res: GetCommerceLocationResponse) => {
|
|
36
36
|
if (res.statusCode == 200) {
|
|
37
37
|
// handle response
|
|
@@ -55,9 +55,9 @@ sdk.sales.metrics.getCustomerRetention({
|
|
|
55
55
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
56
56
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
57
57
|
includeDisplayNames: false,
|
|
58
|
-
numberOfPeriods:
|
|
59
|
-
periodLength:
|
|
60
|
-
periodUnit: PeriodUnit.
|
|
58
|
+
numberOfPeriods: 363161,
|
|
59
|
+
periodLength: 924967,
|
|
60
|
+
periodUnit: PeriodUnit.Week,
|
|
61
61
|
reportDate: "29-09-2020",
|
|
62
62
|
}).then((res: GetCommerceCustomerRetentionMetricsResponse) => {
|
|
63
63
|
if (res.statusCode == 200) {
|
|
@@ -123,9 +123,9 @@ sdk.sales.metrics.getLifetimeValue({
|
|
|
123
123
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
124
124
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
125
125
|
includeDisplayNames: false,
|
|
126
|
-
numberOfPeriods:
|
|
127
|
-
periodLength:
|
|
128
|
-
periodUnit: PeriodUnit.
|
|
126
|
+
numberOfPeriods: 46007,
|
|
127
|
+
periodLength: 738683,
|
|
128
|
+
periodUnit: PeriodUnit.Day,
|
|
129
129
|
reportDate: "29-09-2020",
|
|
130
130
|
}).then((res: GetCommerceLifetimeValueMetricsResponse) => {
|
|
131
131
|
if (res.statusCode == 200) {
|
|
@@ -192,9 +192,9 @@ sdk.sales.metrics.getRevenue({
|
|
|
192
192
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
193
193
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
194
194
|
includeDisplayNames: false,
|
|
195
|
-
numberOfPeriods:
|
|
196
|
-
periodLength:
|
|
197
|
-
periodUnit: PeriodUnit.
|
|
195
|
+
numberOfPeriods: 449083,
|
|
196
|
+
periodLength: 348519,
|
|
197
|
+
periodUnit: PeriodUnit.Year,
|
|
198
198
|
reportDate: "29-09-2020",
|
|
199
199
|
}).then((res: GetCommerceRevenueMetricsResponse) => {
|
|
200
200
|
if (res.statusCode == 200) {
|
|
@@ -31,7 +31,7 @@ const sdk = new CodatLending({
|
|
|
31
31
|
sdk.sales.orders.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
-
orderId: "
|
|
34
|
+
orderId: "facere",
|
|
35
35
|
}).then((res: GetCommerceOrderResponse) => {
|
|
36
36
|
if (res.statusCode == 200) {
|
|
37
37
|
// handle response
|
|
@@ -80,7 +80,7 @@ sdk.sales.orders.list({
|
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
81
81
|
page: 1,
|
|
82
82
|
pageSize: 100,
|
|
83
|
-
query: "
|
|
83
|
+
query: "numquam",
|
|
84
84
|
}).then((res: ListCommerceOrdersResponse) => {
|
|
85
85
|
if (res.statusCode == 200) {
|
|
86
86
|
// handle response
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sales.PaymentMethods
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,10 +28,10 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.sales.paymentMethods.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
-
paymentMethodId: "
|
|
34
|
+
paymentMethodId: "doloribus",
|
|
35
35
|
}).then((res: GetCommercePaymentMethodResponse) => {
|
|
36
36
|
if (res.statusCode == 200) {
|
|
37
37
|
// handle response
|
|
@@ -74,13 +74,13 @@ const sdk = new CodatLending({
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
sdk.
|
|
77
|
+
sdk.sales.paymentMethods.list({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
79
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
81
81
|
page: 1,
|
|
82
82
|
pageSize: 100,
|
|
83
|
-
query: "
|
|
83
|
+
query: "suscipit",
|
|
84
84
|
}).then((res: ListCommercePaymentMethodsResponse) => {
|
|
85
85
|
if (res.statusCode == 200) {
|
|
86
86
|
// handle response
|
|
@@ -31,7 +31,7 @@ const sdk = new CodatLending({
|
|
|
31
31
|
sdk.sales.payments.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
-
paymentId: "
|
|
34
|
+
paymentId: "reiciendis",
|
|
35
35
|
}).then((res: GetCommercePaymentResponse) => {
|
|
36
36
|
if (res.statusCode == 200) {
|
|
37
37
|
// handle response
|
|
@@ -80,7 +80,7 @@ sdk.sales.payments.list({
|
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
81
81
|
page: 1,
|
|
82
82
|
pageSize: 100,
|
|
83
|
-
query: "
|
|
83
|
+
query: "quidem",
|
|
84
84
|
}).then((res: ListCommercePaymentsResponse) => {
|
|
85
85
|
if (res.statusCode == 200) {
|
|
86
86
|
// handle response
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sales.ProductCategories
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,10 +28,10 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.sales.productCategories.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
-
productId: "
|
|
34
|
+
productId: "saepe",
|
|
35
35
|
}).then((res: GetCommerceProductCategoryResponse) => {
|
|
36
36
|
if (res.statusCode == 200) {
|
|
37
37
|
// handle response
|
|
@@ -74,13 +74,13 @@ const sdk = new CodatLending({
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
sdk.
|
|
77
|
+
sdk.sales.productCategories.list({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
79
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
81
81
|
page: 1,
|
|
82
82
|
pageSize: 100,
|
|
83
|
-
query: "
|
|
83
|
+
query: "necessitatibus",
|
|
84
84
|
}).then((res: ListCommerceProductCategoriesResponse) => {
|
|
85
85
|
if (res.statusCode == 200) {
|
|
86
86
|
// handle response
|
|
@@ -31,7 +31,7 @@ const sdk = new CodatLending({
|
|
|
31
31
|
sdk.sales.products.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
-
productId: "
|
|
34
|
+
productId: "dolore",
|
|
35
35
|
}).then((res: GetCommerceProductResponse) => {
|
|
36
36
|
if (res.statusCode == 200) {
|
|
37
37
|
// handle response
|
|
@@ -80,7 +80,7 @@ sdk.sales.products.list({
|
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
81
81
|
page: 1,
|
|
82
82
|
pageSize: 100,
|
|
83
|
-
query: "
|
|
83
|
+
query: "sunt",
|
|
84
84
|
}).then((res: ListCommerceProductsResponse) => {
|
|
85
85
|
if (res.statusCode == 200) {
|
|
86
86
|
// handle response
|
|
@@ -49,8 +49,8 @@ sdk.sales.reports.getOrders({
|
|
|
49
49
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
50
50
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
51
51
|
includeDisplayNames: false,
|
|
52
|
-
numberOfPeriods:
|
|
53
|
-
periodLength:
|
|
52
|
+
numberOfPeriods: 992012,
|
|
53
|
+
periodLength: 241545,
|
|
54
54
|
periodUnit: PeriodUnit.Day,
|
|
55
55
|
reportDate: "29-09-2020",
|
|
56
56
|
}).then((res: GetCommerceOrdersReportResponse) => {
|
|
@@ -119,9 +119,9 @@ sdk.sales.reports.getRefunds({
|
|
|
119
119
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
120
120
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
121
121
|
includeDisplayNames: false,
|
|
122
|
-
numberOfPeriods:
|
|
123
|
-
periodLength:
|
|
124
|
-
periodUnit: PeriodUnit.
|
|
122
|
+
numberOfPeriods: 228263,
|
|
123
|
+
periodLength: 105906,
|
|
124
|
+
periodUnit: PeriodUnit.Week,
|
|
125
125
|
reportDate: "29-09-2020",
|
|
126
126
|
}).then((res: GetCommerceRefundsReportResponse) => {
|
|
127
127
|
if (res.statusCode == 200) {
|
|
@@ -31,7 +31,7 @@ const sdk = new CodatLending({
|
|
|
31
31
|
sdk.sales.transactions.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
|
-
transactionId: "
|
|
34
|
+
transactionId: "a",
|
|
35
35
|
}).then((res: GetCommerceTransactionResponse) => {
|
|
36
36
|
if (res.statusCode == 200) {
|
|
37
37
|
// handle response
|
|
@@ -80,7 +80,7 @@ sdk.sales.transactions.list({
|
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
81
81
|
page: 1,
|
|
82
82
|
pageSize: 100,
|
|
83
|
-
query: "
|
|
83
|
+
query: "debitis",
|
|
84
84
|
}).then((res: ListCommerceTransactionsResponse) => {
|
|
85
85
|
if (res.statusCode == 200) {
|
|
86
86
|
// handle response
|