@codat/lending 1.1.0 → 2.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 +46 -48
- package/dist/sdk/accountingbankdata.d.ts +1 -1
- package/dist/sdk/accountingbankdata.js +1 -1
- package/dist/sdk/accountspayable.d.ts +4 -38
- package/dist/sdk/accountspayable.js +5 -264
- package/dist/sdk/accountspayablebills.d.ts +28 -0
- package/dist/sdk/accountspayablebills.js +183 -1
- package/dist/sdk/accountsreceivable.d.ts +6 -6
- package/dist/sdk/accountsreceivable.js +6 -6
- package/dist/sdk/banking.d.ts +5 -5
- package/dist/sdk/banking.js +5 -5
- package/dist/sdk/financialstatements.d.ts +4 -4
- package/dist/sdk/financialstatements.js +4 -4
- package/dist/sdk/managedata.d.ts +2 -2
- package/dist/sdk/managedata.js +2 -2
- package/dist/sdk/sales.d.ts +11 -11
- package/dist/sdk/sales.js +11 -11
- package/dist/sdk/sdk.d.ts +1 -4
- package/dist/sdk/sdk.js +3 -3
- package/dist/sdk/transactions.d.ts +5 -5
- package/dist/sdk/transactions.js +5 -5
- package/docs/sdks/accountspayable/README.md +0 -100
- package/docs/sdks/accountspayablebillcreditnotes/README.md +2 -2
- package/docs/sdks/accountspayablebillpayments/README.md +2 -2
- package/docs/sdks/accountspayablebills/README.md +99 -3
- package/docs/sdks/accountspayablesuppliers/README.md +5 -5
- package/docs/sdks/bankingaccounts/README.md +3 -3
- package/docs/sdks/bankingtransactions/README.md +3 -3
- package/docs/sdks/companies/README.md +1 -1
- package/docs/sdks/connections/README.md +3 -3
- package/docs/sdks/dataintegrity/README.md +2 -2
- package/docs/sdks/excelreports/README.md +3 -3
- package/docs/sdks/fileupload/README.md +2 -2
- package/docs/sdks/liabilities/README.md +1 -1
- package/docs/sdks/salescustomers/README.md +3 -3
- package/docs/sdks/salesdisputes/README.md +3 -3
- package/docs/sdks/saleslocations/README.md +3 -3
- package/docs/sdks/salesmetrics/README.md +4 -4
- package/docs/sdks/salesorders/README.md +3 -3
- package/docs/sdks/salespayments/README.md +3 -3
- package/docs/sdks/salesproducts/README.md +3 -3
- package/docs/sdks/salesreports/README.md +3 -3
- package/docs/sdks/salestransactions/README.md +3 -3
- package/docs/sdks/transactionsjournals/README.md +3 -3
- package/docs/sdks/transactionstransfers/README.md +3 -3
- package/package.json +1 -1
|
@@ -2,10 +2,59 @@
|
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
5
|
+
* [downloadAttachment](#downloadattachment) - Download bill attachment
|
|
5
6
|
* [get](#get) - Get bill
|
|
7
|
+
* [getAttachment](#getattachment) - Get bill attachment
|
|
6
8
|
* [list](#list) - List bills
|
|
7
9
|
* [listAttachments](#listattachments) - List bill attachments
|
|
8
10
|
|
|
11
|
+
## downloadAttachment
|
|
12
|
+
|
|
13
|
+
The *Download bill attachment* endpoint downloads a specific attachment for a given `billId` and `attachmentId`.
|
|
14
|
+
|
|
15
|
+
[Bills](https://docs.codat.io/accounting-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services.
|
|
16
|
+
|
|
17
|
+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support downloading a bill attachment.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Example Usage
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { CodatLending } from "@codat/lending";
|
|
24
|
+
import { DownloadAccountingBillAttachmentResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
25
|
+
|
|
26
|
+
const sdk = new CodatLending({
|
|
27
|
+
security: {
|
|
28
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
sdk.accountsPayableBills.downloadAttachment({
|
|
33
|
+
attachmentId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
34
|
+
billId: "iusto",
|
|
35
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
36
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
37
|
+
}).then((res: DownloadAccountingBillAttachmentResponse) => {
|
|
38
|
+
if (res.statusCode == 200) {
|
|
39
|
+
// handle response
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Parameters
|
|
45
|
+
|
|
46
|
+
| Parameter | Type | Required | Description |
|
|
47
|
+
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
|
|
48
|
+
| `request` | [operations.DownloadAccountingBillAttachmentRequest](../../models/operations/downloadaccountingbillattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
49
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
50
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Response
|
|
54
|
+
|
|
55
|
+
**Promise<[operations.DownloadAccountingBillAttachmentResponse](../../models/operations/downloadaccountingbillattachmentresponse.md)>**
|
|
56
|
+
|
|
57
|
+
|
|
9
58
|
## get
|
|
10
59
|
|
|
11
60
|
The *Get bill* endpoint returns a single bill for a given billId.
|
|
@@ -30,7 +79,7 @@ const sdk = new CodatLending({
|
|
|
30
79
|
});
|
|
31
80
|
|
|
32
81
|
sdk.accountsPayableBills.get({
|
|
33
|
-
billId: "
|
|
82
|
+
billId: "excepturi",
|
|
34
83
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
35
84
|
}).then((res: GetAccountingBillResponse) => {
|
|
36
85
|
if (res.statusCode == 200) {
|
|
@@ -53,6 +102,53 @@ sdk.accountsPayableBills.get({
|
|
|
53
102
|
**Promise<[operations.GetAccountingBillResponse](../../models/operations/getaccountingbillresponse.md)>**
|
|
54
103
|
|
|
55
104
|
|
|
105
|
+
## getAttachment
|
|
106
|
+
|
|
107
|
+
The *Get bill attachment* endpoint returns a specific attachment for a given `billId` and `attachmentId`.
|
|
108
|
+
|
|
109
|
+
[Bills](https://docs.codat.io/accounting-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services.
|
|
110
|
+
|
|
111
|
+
Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support getting a bill attachment.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
### Example Usage
|
|
115
|
+
|
|
116
|
+
```typescript
|
|
117
|
+
import { CodatLending } from "@codat/lending";
|
|
118
|
+
import { GetAccountingBillAttachmentResponse } from "@codat/lending/dist/sdk/models/operations";
|
|
119
|
+
|
|
120
|
+
const sdk = new CodatLending({
|
|
121
|
+
security: {
|
|
122
|
+
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
sdk.accountsPayableBills.getAttachment({
|
|
127
|
+
attachmentId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
128
|
+
billId: "nisi",
|
|
129
|
+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
130
|
+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
131
|
+
}).then((res: GetAccountingBillAttachmentResponse) => {
|
|
132
|
+
if (res.statusCode == 200) {
|
|
133
|
+
// handle response
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Parameters
|
|
139
|
+
|
|
140
|
+
| Parameter | Type | Required | Description |
|
|
141
|
+
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
142
|
+
| `request` | [operations.GetAccountingBillAttachmentRequest](../../models/operations/getaccountingbillattachmentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
143
|
+
| `retries` | [utils.RetryConfig](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. |
|
|
144
|
+
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Response
|
|
148
|
+
|
|
149
|
+
**Promise<[operations.GetAccountingBillAttachmentResponse](../../models/operations/getaccountingbillattachmentresponse.md)>**
|
|
150
|
+
|
|
151
|
+
|
|
56
152
|
## list
|
|
57
153
|
|
|
58
154
|
The *List bills* endpoint returns a list of [bills](https://docs.codat.io/accounting-api#/schemas/Bill) for a given company's connection.
|
|
@@ -79,7 +175,7 @@ sdk.accountsPayableBills.list({
|
|
|
79
175
|
orderBy: "-modifiedDate",
|
|
80
176
|
page: 1,
|
|
81
177
|
pageSize: 100,
|
|
82
|
-
query: "
|
|
178
|
+
query: "recusandae",
|
|
83
179
|
}).then((res: ListAccountingBillsResponse) => {
|
|
84
180
|
if (res.statusCode == 200) {
|
|
85
181
|
// handle response
|
|
@@ -123,7 +219,7 @@ const sdk = new CodatLending({
|
|
|
123
219
|
});
|
|
124
220
|
|
|
125
221
|
sdk.accountsPayableBills.listAttachments({
|
|
126
|
-
billId: "
|
|
222
|
+
billId: "temporibus",
|
|
127
223
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
128
224
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
129
225
|
}).then((res: ListAccountingBillAttachmentsResponse) => {
|
|
@@ -33,7 +33,7 @@ sdk.accountsPayableSuppliers.downloadAttachment({
|
|
|
33
33
|
attachmentId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
34
34
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
35
35
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
36
|
-
supplierId: "
|
|
36
|
+
supplierId: "ab",
|
|
37
37
|
}).then((res: DownloadAccountingSupplierAttachmentResponse) => {
|
|
38
38
|
if (res.statusCode == 200) {
|
|
39
39
|
// handle response
|
|
@@ -80,7 +80,7 @@ const sdk = new CodatLending({
|
|
|
80
80
|
|
|
81
81
|
sdk.accountsPayableSuppliers.get({
|
|
82
82
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
83
|
-
supplierId: "
|
|
83
|
+
supplierId: "quis",
|
|
84
84
|
}).then((res: GetAccountingSupplierResponse) => {
|
|
85
85
|
if (res.statusCode == 200) {
|
|
86
86
|
// handle response
|
|
@@ -127,7 +127,7 @@ sdk.accountsPayableSuppliers.getAttachment({
|
|
|
127
127
|
attachmentId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
128
128
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
129
129
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
130
|
-
supplierId: "
|
|
130
|
+
supplierId: "veritatis",
|
|
131
131
|
}).then((res: GetAccountingSupplierAttachmentResponse) => {
|
|
132
132
|
if (res.statusCode == 200) {
|
|
133
133
|
// handle response
|
|
@@ -175,7 +175,7 @@ sdk.accountsPayableSuppliers.list({
|
|
|
175
175
|
orderBy: "-modifiedDate",
|
|
176
176
|
page: 1,
|
|
177
177
|
pageSize: 100,
|
|
178
|
-
query: "
|
|
178
|
+
query: "deserunt",
|
|
179
179
|
}).then((res: ListAccountingSuppliersResponse) => {
|
|
180
180
|
if (res.statusCode == 200) {
|
|
181
181
|
// handle response
|
|
@@ -221,7 +221,7 @@ const sdk = new CodatLending({
|
|
|
221
221
|
sdk.accountsPayableSuppliers.listAttachments({
|
|
222
222
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
223
223
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
224
|
-
supplierId: "
|
|
224
|
+
supplierId: "perferendis",
|
|
225
225
|
}).then((res: ListAccountingSupplierAttachmentsResponse) => {
|
|
226
226
|
if (res.statusCode == 200) {
|
|
227
227
|
// handle response
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Banking.Accounts
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.banking.accounts.get({
|
|
32
32
|
accountId: "totam",
|
|
33
33
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
34
34
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
sdk.
|
|
77
|
+
sdk.banking.accounts.list({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
79
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Banking.Transactions
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.banking.transactions.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
34
|
transactionId: "qui",
|
|
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
sdk.
|
|
77
|
+
sdk.banking.transactions.list({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
79
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
@@ -32,7 +32,7 @@ const sdk = new CodatLending({
|
|
|
32
32
|
|
|
33
33
|
sdk.connections.create({
|
|
34
34
|
requestBody: {
|
|
35
|
-
platformKey: "
|
|
35
|
+
platformKey: "illum",
|
|
36
36
|
},
|
|
37
37
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
38
38
|
}).then((res: CreateConnectionResponse) => {
|
|
@@ -158,7 +158,7 @@ sdk.connections.list({
|
|
|
158
158
|
orderBy: "-modifiedDate",
|
|
159
159
|
page: 1,
|
|
160
160
|
pageSize: 100,
|
|
161
|
-
query: "
|
|
161
|
+
query: "vel",
|
|
162
162
|
}).then((res: ListConnectionsResponse) => {
|
|
163
163
|
if (res.statusCode == 200) {
|
|
164
164
|
// handle response
|
|
@@ -199,7 +199,7 @@ const sdk = new CodatLending({
|
|
|
199
199
|
|
|
200
200
|
sdk.connections.unlink({
|
|
201
201
|
requestBody: {
|
|
202
|
-
status: DataConnectionStatus.
|
|
202
|
+
status: DataConnectionStatus.Unlinked,
|
|
203
203
|
},
|
|
204
204
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
205
205
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
@@ -35,7 +35,7 @@ sdk.dataIntegrity.details({
|
|
|
35
35
|
orderBy: "-modifiedDate",
|
|
36
36
|
page: 1,
|
|
37
37
|
pageSize: 100,
|
|
38
|
-
query: "
|
|
38
|
+
query: "deserunt",
|
|
39
39
|
}).then((res: ListDataIntegrityDetailsResponse) => {
|
|
40
40
|
if (res.statusCode == 200) {
|
|
41
41
|
// handle response
|
|
@@ -129,7 +129,7 @@ const sdk = new CodatLending({
|
|
|
129
129
|
sdk.dataIntegrity.summaries({
|
|
130
130
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
131
131
|
dataType: DataIntegrityDataType.BankingAccounts,
|
|
132
|
-
query: "
|
|
132
|
+
query: "suscipit",
|
|
133
133
|
}).then((res: GetDataIntegritySummariesResponse) => {
|
|
134
134
|
if (res.statusCode == 200) {
|
|
135
135
|
// handle response
|
|
@@ -33,7 +33,7 @@ const sdk = new CodatLending({
|
|
|
33
33
|
|
|
34
34
|
sdk.excelReports.download({
|
|
35
35
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
36
|
-
reportType: ExcelReportTypes.
|
|
36
|
+
reportType: ExcelReportTypes.EnhancedFinancials,
|
|
37
37
|
}).then((res: DownloadExcelReportResponse) => {
|
|
38
38
|
if (res.statusCode == 200) {
|
|
39
39
|
// handle response
|
|
@@ -90,7 +90,7 @@ const sdk = new CodatLending({
|
|
|
90
90
|
|
|
91
91
|
sdk.excelReports.generate({
|
|
92
92
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
93
|
-
reportType: ExcelReportTypes.
|
|
93
|
+
reportType: ExcelReportTypes.EnhancedFinancials,
|
|
94
94
|
}).then((res: GenerateExcelReportResponse) => {
|
|
95
95
|
if (res.statusCode == 200) {
|
|
96
96
|
// handle response
|
|
@@ -135,7 +135,7 @@ const sdk = new CodatLending({
|
|
|
135
135
|
|
|
136
136
|
sdk.excelReports.getStatus({
|
|
137
137
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
138
|
-
reportType: ExcelReportTypes.
|
|
138
|
+
reportType: ExcelReportTypes.EnhancedCashFlow,
|
|
139
139
|
}).then((res: GetExcelReportGenerationStatusResponse) => {
|
|
140
140
|
if (res.statusCode == 200) {
|
|
141
141
|
// handle response
|
|
@@ -113,8 +113,8 @@ const sdk = new CodatLending({
|
|
|
113
113
|
|
|
114
114
|
sdk.fileUpload.upload({
|
|
115
115
|
requestBody: {
|
|
116
|
-
content: "
|
|
117
|
-
requestBody: "
|
|
116
|
+
content: "delectus".encode(),
|
|
117
|
+
requestBody: "tempora",
|
|
118
118
|
},
|
|
119
119
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
120
120
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
@@ -76,7 +76,7 @@ const sdk = new CodatLending({
|
|
|
76
76
|
|
|
77
77
|
sdk.liabilities.listLoanTransactions({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
|
-
sourceType: ListLoanTransactionsSourceType.
|
|
79
|
+
sourceType: ListLoanTransactionsSourceType.Commerce,
|
|
80
80
|
}).then((res: ListLoanTransactionsResponse) => {
|
|
81
81
|
if (res.statusCode == 200) {
|
|
82
82
|
// handle response
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sales.Customers
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.sales.customers.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
34
|
customerId: "iure",
|
|
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
sdk.
|
|
77
|
+
sdk.sales.customers.list({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
79
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sales.Disputes
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.sales.disputes.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
34
|
disputeId: "doloribus",
|
|
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
sdk.
|
|
77
|
+
sdk.sales.disputes.list({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
79
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sales.Locations
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.sales.locations.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
34
|
locationId: "architecto",
|
|
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
sdk.
|
|
77
|
+
sdk.sales.locations.list({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
79
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
80
|
}).then((res: ListCommerceLocationsResponse) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sales.Metrics
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -51,7 +51,7 @@ const sdk = new CodatLending({
|
|
|
51
51
|
},
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
sdk.
|
|
54
|
+
sdk.sales.metrics.getCustomerRetention({
|
|
55
55
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
56
56
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
57
57
|
includeDisplayNames: false,
|
|
@@ -119,7 +119,7 @@ const sdk = new CodatLending({
|
|
|
119
119
|
},
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
sdk.
|
|
122
|
+
sdk.sales.metrics.getLifetimeValue({
|
|
123
123
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
124
124
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
125
125
|
includeDisplayNames: false,
|
|
@@ -188,7 +188,7 @@ const sdk = new CodatLending({
|
|
|
188
188
|
},
|
|
189
189
|
});
|
|
190
190
|
|
|
191
|
-
sdk.
|
|
191
|
+
sdk.sales.metrics.getRevenue({
|
|
192
192
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
193
193
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
194
194
|
includeDisplayNames: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sales.Orders
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.sales.orders.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
34
|
orderId: "quam",
|
|
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
sdk.
|
|
77
|
+
sdk.sales.orders.list({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
79
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sales.Payments
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.sales.payments.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
34
|
paymentId: "quia",
|
|
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
sdk.
|
|
77
|
+
sdk.sales.payments.list({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
79
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sales.Products
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.sales.products.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
34
|
productId: "animi",
|
|
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
sdk.
|
|
77
|
+
sdk.sales.products.list({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
79
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sales.Reports
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -45,7 +45,7 @@ const sdk = new CodatLending({
|
|
|
45
45
|
},
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
sdk.
|
|
48
|
+
sdk.sales.reports.getOrders({
|
|
49
49
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
50
50
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
51
51
|
includeDisplayNames: false,
|
|
@@ -115,7 +115,7 @@ const sdk = new CodatLending({
|
|
|
115
115
|
},
|
|
116
116
|
});
|
|
117
117
|
|
|
118
|
-
sdk.
|
|
118
|
+
sdk.sales.reports.getRefunds({
|
|
119
119
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
120
120
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
121
121
|
includeDisplayNames: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sales.Transactions
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.sales.transactions.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
34
|
transactionId: "possimus",
|
|
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
sdk.
|
|
77
|
+
sdk.sales.transactions.list({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
79
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
80
|
orderBy: "-modifiedDate",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Transactions.Journals
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.transactions.journals.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
journalId: "praesentium",
|
|
34
34
|
}).then((res: GetAccountingJournalResponse) => {
|
|
@@ -73,7 +73,7 @@ const sdk = new CodatLending({
|
|
|
73
73
|
},
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
sdk.
|
|
76
|
+
sdk.transactions.journals.list({
|
|
77
77
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
78
78
|
orderBy: "-modifiedDate",
|
|
79
79
|
page: 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Transactions.Transfers
|
|
2
2
|
|
|
3
3
|
### Available Operations
|
|
4
4
|
|
|
@@ -28,7 +28,7 @@ const sdk = new CodatLending({
|
|
|
28
28
|
},
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
sdk.
|
|
31
|
+
sdk.transactions.transfers.get({
|
|
32
32
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
33
33
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
34
34
|
transferId: "ipsa",
|
|
@@ -74,7 +74,7 @@ const sdk = new CodatLending({
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
sdk.
|
|
77
|
+
sdk.transactions.transfers.list({
|
|
78
78
|
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002",
|
|
79
79
|
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
|
|
80
80
|
orderBy: "-modifiedDate",
|