@codat/lending 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -19
- package/dist/sdk/accountingbankdata.d.ts +1 -1
- package/dist/sdk/accountingbankdata.js +1 -1
- package/dist/sdk/accountspayable.d.ts +4 -4
- package/dist/sdk/accountspayable.js +4 -4
- 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.js +2 -2
- package/dist/sdk/transactions.d.ts +5 -5
- package/dist/sdk/transactions.js +5 -5
- package/docs/sdks/bankingaccounts/README.md +3 -3
- package/docs/sdks/bankingtransactions/README.md +3 -3
- 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
package/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Lending helps you make smarter credit decisions on small businesses by enabling you to pull your customers' latest data from the operating systems they are already using. You can use that data for automating decisioning and surfacing new insights on the customer, all via one API.
|
|
4
4
|
|
|
5
|
+
<!-- Start SDK Installation -->
|
|
5
6
|
## SDK Installation
|
|
6
7
|
|
|
7
8
|
### NPM
|
|
@@ -14,11 +15,11 @@ npm add @codat/lending
|
|
|
14
15
|
|
|
15
16
|
```bash
|
|
16
17
|
yarn add @codat/lending
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
```
|
|
19
19
|
<!-- End SDK Installation -->
|
|
20
20
|
|
|
21
21
|
## Example Usage
|
|
22
|
+
<!-- Start SDK Example Usage -->
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
```typescript
|
|
@@ -44,10 +45,10 @@ sdk.accountingBankData.listTransactions({
|
|
|
44
45
|
// handle response
|
|
45
46
|
}
|
|
46
47
|
});
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
```
|
|
49
49
|
<!-- End SDK Example Usage -->
|
|
50
50
|
|
|
51
|
+
<!-- Start SDK Available Operations -->
|
|
51
52
|
## Available Resources and Operations
|
|
52
53
|
|
|
53
54
|
|
|
@@ -182,7 +183,7 @@ sdk.accountingBankData.listTransactions({
|
|
|
182
183
|
|
|
183
184
|
* [list](docs/sdks/bankingaccountbalances/README.md#list) - List account balances
|
|
184
185
|
|
|
185
|
-
### [
|
|
186
|
+
### [Banking.Accounts](docs/sdks/bankingaccounts/README.md)
|
|
186
187
|
|
|
187
188
|
* [get](docs/sdks/bankingaccounts/README.md#get) - Get account
|
|
188
189
|
* [list](docs/sdks/bankingaccounts/README.md#list) - List accounts
|
|
@@ -196,7 +197,7 @@ sdk.accountingBankData.listTransactions({
|
|
|
196
197
|
* [get](docs/sdks/bankingtransactioncategories/README.md#get) - Get transaction category
|
|
197
198
|
* [list](docs/sdks/bankingtransactioncategories/README.md#list) - List transaction categories
|
|
198
199
|
|
|
199
|
-
### [
|
|
200
|
+
### [Banking.Transactions](docs/sdks/bankingtransactions/README.md)
|
|
200
201
|
|
|
201
202
|
* [get](docs/sdks/bankingtransactions/README.md#get) - Get bank transaction
|
|
202
203
|
* [list](docs/sdks/bankingtransactions/README.md#list) - List transactions
|
|
@@ -236,28 +237,28 @@ sdk.accountingBankData.listTransactions({
|
|
|
236
237
|
* [dataType](docs/sdks/managedatarefresh/README.md#datatype) - Refresh data type
|
|
237
238
|
|
|
238
239
|
|
|
239
|
-
### [
|
|
240
|
+
### [Sales.Customers](docs/sdks/salescustomers/README.md)
|
|
240
241
|
|
|
241
242
|
* [get](docs/sdks/salescustomers/README.md#get) - Get customer
|
|
242
243
|
* [list](docs/sdks/salescustomers/README.md#list) - List customers
|
|
243
244
|
|
|
244
|
-
### [
|
|
245
|
+
### [Sales.Disputes](docs/sdks/salesdisputes/README.md)
|
|
245
246
|
|
|
246
247
|
* [get](docs/sdks/salesdisputes/README.md#get) - Get dispute
|
|
247
248
|
* [list](docs/sdks/salesdisputes/README.md#list) - List disputes
|
|
248
249
|
|
|
249
|
-
### [
|
|
250
|
+
### [Sales.Locations](docs/sdks/saleslocations/README.md)
|
|
250
251
|
|
|
251
252
|
* [get](docs/sdks/saleslocations/README.md#get) - Get location
|
|
252
253
|
* [list](docs/sdks/saleslocations/README.md#list) - List locations
|
|
253
254
|
|
|
254
|
-
### [
|
|
255
|
+
### [Sales.Metrics](docs/sdks/salesmetrics/README.md)
|
|
255
256
|
|
|
256
257
|
* [getCustomerRetention](docs/sdks/salesmetrics/README.md#getcustomerretention) - Get customer retention metrics
|
|
257
258
|
* [getLifetimeValue](docs/sdks/salesmetrics/README.md#getlifetimevalue) - Get lifetime value metrics
|
|
258
259
|
* [getRevenue](docs/sdks/salesmetrics/README.md#getrevenue) - Get commerce revenue metrics
|
|
259
260
|
|
|
260
|
-
### [
|
|
261
|
+
### [Sales.Orders](docs/sdks/salesorders/README.md)
|
|
261
262
|
|
|
262
263
|
* [get](docs/sdks/salesorders/README.md#get) - Get order
|
|
263
264
|
* [list](docs/sdks/salesorders/README.md#list) - List orders
|
|
@@ -267,7 +268,7 @@ sdk.accountingBankData.listTransactions({
|
|
|
267
268
|
* [get](docs/sdks/salespaymentmethods/README.md#get) - Get payment method
|
|
268
269
|
* [list](docs/sdks/salespaymentmethods/README.md#list) - List payment methods
|
|
269
270
|
|
|
270
|
-
### [
|
|
271
|
+
### [Sales.Payments](docs/sdks/salespayments/README.md)
|
|
271
272
|
|
|
272
273
|
* [get](docs/sdks/salespayments/README.md#get) - Get payment
|
|
273
274
|
* [list](docs/sdks/salespayments/README.md#list) - List payments
|
|
@@ -277,17 +278,17 @@ sdk.accountingBankData.listTransactions({
|
|
|
277
278
|
* [get](docs/sdks/salesproductcategories/README.md#get) - Get product category
|
|
278
279
|
* [list](docs/sdks/salesproductcategories/README.md#list) - List product categories
|
|
279
280
|
|
|
280
|
-
### [
|
|
281
|
+
### [Sales.Products](docs/sdks/salesproducts/README.md)
|
|
281
282
|
|
|
282
283
|
* [get](docs/sdks/salesproducts/README.md#get) - Get product
|
|
283
284
|
* [list](docs/sdks/salesproducts/README.md#list) - List products
|
|
284
285
|
|
|
285
|
-
### [
|
|
286
|
+
### [Sales.Reports](docs/sdks/salesreports/README.md)
|
|
286
287
|
|
|
287
288
|
* [getOrders](docs/sdks/salesreports/README.md#getorders) - Get orders report
|
|
288
289
|
* [getRefunds](docs/sdks/salesreports/README.md#getrefunds) - Get refunds report
|
|
289
290
|
|
|
290
|
-
### [
|
|
291
|
+
### [Sales.Transactions](docs/sdks/salestransactions/README.md)
|
|
291
292
|
|
|
292
293
|
* [get](docs/sdks/salestransactions/README.md#get) - Get transaction
|
|
293
294
|
* [list](docs/sdks/salestransactions/README.md#list) - List transactions
|
|
@@ -311,15 +312,14 @@ sdk.accountingBankData.listTransactions({
|
|
|
311
312
|
* [get](docs/sdks/transactionsjournalentries/README.md#get) - Get journal entry
|
|
312
313
|
* [list](docs/sdks/transactionsjournalentries/README.md#list) - List journal entries
|
|
313
314
|
|
|
314
|
-
### [
|
|
315
|
+
### [Transactions.Journals](docs/sdks/transactionsjournals/README.md)
|
|
315
316
|
|
|
316
317
|
* [get](docs/sdks/transactionsjournals/README.md#get) - Get journal
|
|
317
318
|
* [list](docs/sdks/transactionsjournals/README.md#list) - List journals
|
|
318
319
|
|
|
319
|
-
### [
|
|
320
|
+
### [Transactions.Transfers](docs/sdks/transactionstransfers/README.md)
|
|
320
321
|
|
|
321
322
|
* [get](docs/sdks/transactionstransfers/README.md#get) - Get transfer
|
|
322
|
-
* [list](docs/sdks/transactionstransfers/README.md#list) - List transfers
|
|
323
|
-
|
|
323
|
+
* [list](docs/sdks/transactionstransfers/README.md#list) - List transfers
|
|
324
324
|
<!-- End SDK Available Operations -->
|
|
325
325
|
### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
|
|
@@ -7,7 +7,7 @@ import { AxiosRequestConfig } from "axios";
|
|
|
7
7
|
* Access bank transactions from an accounting platform.
|
|
8
8
|
*/
|
|
9
9
|
export declare class AccountingBankData {
|
|
10
|
-
|
|
10
|
+
accounts: AccountingBankDataAccounts;
|
|
11
11
|
private sdkConfiguration;
|
|
12
12
|
constructor(sdkConfig: SDKConfiguration);
|
|
13
13
|
/**
|
|
@@ -85,7 +85,7 @@ var shared = __importStar(require("./models/shared"));
|
|
|
85
85
|
var AccountingBankData = /** @class */ (function () {
|
|
86
86
|
function AccountingBankData(sdkConfig) {
|
|
87
87
|
this.sdkConfiguration = sdkConfig;
|
|
88
|
-
this.
|
|
88
|
+
this.accounts = new accountingbankdataaccounts_1.AccountingBankDataAccounts(this.sdkConfiguration);
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* List bank account transactions
|
|
@@ -14,10 +14,10 @@ export declare enum DownloadBillAttachmentAcceptEnum {
|
|
|
14
14
|
applicationOctetStream = "application/octet-stream"
|
|
15
15
|
}
|
|
16
16
|
export declare class AccountsPayable {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
billCreditNotes: AccountsPayableBillCreditNotes;
|
|
18
|
+
billPayments: AccountsPayableBillPayments;
|
|
19
|
+
bills: AccountsPayableBills;
|
|
20
|
+
suppliers: AccountsPayableSuppliers;
|
|
21
21
|
private sdkConfiguration;
|
|
22
22
|
constructor(sdkConfig: SDKConfiguration);
|
|
23
23
|
/**
|
|
@@ -93,10 +93,10 @@ var DownloadBillAttachmentAcceptEnum;
|
|
|
93
93
|
var AccountsPayable = /** @class */ (function () {
|
|
94
94
|
function AccountsPayable(sdkConfig) {
|
|
95
95
|
this.sdkConfiguration = sdkConfig;
|
|
96
|
-
this.
|
|
97
|
-
this.
|
|
98
|
-
this.
|
|
99
|
-
this.
|
|
96
|
+
this.billCreditNotes = new accountspayablebillcreditnotes_1.AccountsPayableBillCreditNotes(this.sdkConfiguration);
|
|
97
|
+
this.billPayments = new accountspayablebillpayments_1.AccountsPayableBillPayments(this.sdkConfiguration);
|
|
98
|
+
this.bills = new accountspayablebills_1.AccountsPayableBills(this.sdkConfiguration);
|
|
99
|
+
this.suppliers = new accountspayablesuppliers_1.AccountsPayableSuppliers(this.sdkConfiguration);
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* Download bill attachment
|
|
@@ -6,12 +6,12 @@ import { AccountsReceivablePayments } from "./accountsreceivablepayments";
|
|
|
6
6
|
import { AccountsReceivableReports } from "./accountsreceivablereports";
|
|
7
7
|
import { SDKConfiguration } from "./sdk";
|
|
8
8
|
export declare class AccountsReceivable {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
creditNotes: AccountsReceivableCreditNotes;
|
|
10
|
+
customers: AccountsReceivableCustomers;
|
|
11
|
+
directIncomes: AccountsReceivableDirectIncomes;
|
|
12
|
+
invoices: AccountsReceivableInvoices;
|
|
13
|
+
payments: AccountsReceivablePayments;
|
|
14
|
+
reports: AccountsReceivableReports;
|
|
15
15
|
private sdkConfiguration;
|
|
16
16
|
constructor(sdkConfig: SDKConfiguration);
|
|
17
17
|
}
|
|
@@ -13,12 +13,12 @@ var accountsreceivablereports_1 = require("./accountsreceivablereports");
|
|
|
13
13
|
var AccountsReceivable = /** @class */ (function () {
|
|
14
14
|
function AccountsReceivable(sdkConfig) {
|
|
15
15
|
this.sdkConfiguration = sdkConfig;
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
16
|
+
this.creditNotes = new accountsreceivablecreditnotes_1.AccountsReceivableCreditNotes(this.sdkConfiguration);
|
|
17
|
+
this.customers = new accountsreceivablecustomers_1.AccountsReceivableCustomers(this.sdkConfiguration);
|
|
18
|
+
this.directIncomes = new accountsreceivabledirectincomes_1.AccountsReceivableDirectIncomes(this.sdkConfiguration);
|
|
19
|
+
this.invoices = new accountsreceivableinvoices_1.AccountsReceivableInvoices(this.sdkConfiguration);
|
|
20
|
+
this.payments = new accountsreceivablepayments_1.AccountsReceivablePayments(this.sdkConfiguration);
|
|
21
|
+
this.reports = new accountsreceivablereports_1.AccountsReceivableReports(this.sdkConfiguration);
|
|
22
22
|
}
|
|
23
23
|
return AccountsReceivable;
|
|
24
24
|
}());
|
package/dist/sdk/banking.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ import { BankingTransactionCategories } from "./bankingtransactioncategories";
|
|
|
5
5
|
import { BankingTransactions } from "./bankingtransactions";
|
|
6
6
|
import { SDKConfiguration } from "./sdk";
|
|
7
7
|
export declare class Banking {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
accountBalances: BankingAccountBalances;
|
|
9
|
+
accounts: BankingAccounts;
|
|
10
|
+
categorizedStatement: BankingCategorizedStatement;
|
|
11
|
+
transactionCategories: BankingTransactionCategories;
|
|
12
|
+
transactions: BankingTransactions;
|
|
13
13
|
private sdkConfiguration;
|
|
14
14
|
constructor(sdkConfig: SDKConfiguration);
|
|
15
15
|
}
|
package/dist/sdk/banking.js
CHANGED
|
@@ -12,11 +12,11 @@ var bankingtransactions_1 = require("./bankingtransactions");
|
|
|
12
12
|
var Banking = /** @class */ (function () {
|
|
13
13
|
function Banking(sdkConfig) {
|
|
14
14
|
this.sdkConfiguration = sdkConfig;
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
15
|
+
this.accountBalances = new bankingaccountbalances_1.BankingAccountBalances(this.sdkConfiguration);
|
|
16
|
+
this.accounts = new bankingaccounts_1.BankingAccounts(this.sdkConfiguration);
|
|
17
|
+
this.categorizedStatement = new bankingcategorizedstatement_1.BankingCategorizedStatement(this.sdkConfiguration);
|
|
18
|
+
this.transactionCategories = new bankingtransactioncategories_1.BankingTransactionCategories(this.sdkConfiguration);
|
|
19
|
+
this.transactions = new bankingtransactions_1.BankingTransactions(this.sdkConfiguration);
|
|
20
20
|
}
|
|
21
21
|
return Banking;
|
|
22
22
|
}());
|
|
@@ -4,10 +4,10 @@ import { FinancialStatementsCashFlow } from "./financialstatementscashflow";
|
|
|
4
4
|
import { FinancialStatementsProfitAndLoss } from "./financialstatementsprofitandloss";
|
|
5
5
|
import { SDKConfiguration } from "./sdk";
|
|
6
6
|
export declare class FinancialStatements {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
accounts: FinancialStatementsAccounts;
|
|
8
|
+
balanceSheet: FinancialStatementsBalanceSheet;
|
|
9
|
+
cashFlow: FinancialStatementsCashFlow;
|
|
10
|
+
profitAndLoss: FinancialStatementsProfitAndLoss;
|
|
11
11
|
private sdkConfiguration;
|
|
12
12
|
constructor(sdkConfig: SDKConfiguration);
|
|
13
13
|
}
|
|
@@ -11,10 +11,10 @@ var financialstatementsprofitandloss_1 = require("./financialstatementsprofitand
|
|
|
11
11
|
var FinancialStatements = /** @class */ (function () {
|
|
12
12
|
function FinancialStatements(sdkConfig) {
|
|
13
13
|
this.sdkConfiguration = sdkConfig;
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
14
|
+
this.accounts = new financialstatementsaccounts_1.FinancialStatementsAccounts(this.sdkConfiguration);
|
|
15
|
+
this.balanceSheet = new financialstatementsbalancesheet_1.FinancialStatementsBalanceSheet(this.sdkConfiguration);
|
|
16
|
+
this.cashFlow = new financialstatementscashflow_1.FinancialStatementsCashFlow(this.sdkConfiguration);
|
|
17
|
+
this.profitAndLoss = new financialstatementsprofitandloss_1.FinancialStatementsProfitAndLoss(this.sdkConfiguration);
|
|
18
18
|
}
|
|
19
19
|
return FinancialStatements;
|
|
20
20
|
}());
|
package/dist/sdk/managedata.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import * as operations from "./models/operations";
|
|
|
5
5
|
import { SDKConfiguration } from "./sdk";
|
|
6
6
|
import { AxiosRequestConfig } from "axios";
|
|
7
7
|
export declare class ManageData {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
pullOperations: ManageDataPullOperations;
|
|
9
|
+
refresh: ManageDataRefresh;
|
|
10
10
|
private sdkConfiguration;
|
|
11
11
|
constructor(sdkConfig: SDKConfiguration);
|
|
12
12
|
/**
|
package/dist/sdk/managedata.js
CHANGED
|
@@ -83,8 +83,8 @@ var shared = __importStar(require("./models/shared"));
|
|
|
83
83
|
var ManageData = /** @class */ (function () {
|
|
84
84
|
function ManageData(sdkConfig) {
|
|
85
85
|
this.sdkConfiguration = sdkConfig;
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
86
|
+
this.pullOperations = new managedatapulloperations_1.ManageDataPullOperations(this.sdkConfiguration);
|
|
87
|
+
this.refresh = new managedatarefresh_1.ManageDataRefresh(this.sdkConfiguration);
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* Get data status
|
package/dist/sdk/sales.d.ts
CHANGED
|
@@ -11,17 +11,17 @@ import { SalesReports } from "./salesreports";
|
|
|
11
11
|
import { SalesTransactions } from "./salestransactions";
|
|
12
12
|
import { SDKConfiguration } from "./sdk";
|
|
13
13
|
export declare class Sales {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
customers: SalesCustomers;
|
|
15
|
+
disputes: SalesDisputes;
|
|
16
|
+
locations: SalesLocations;
|
|
17
|
+
metrics: SalesMetrics;
|
|
18
|
+
orders: SalesOrders;
|
|
19
|
+
paymentMethods: SalesPaymentMethods;
|
|
20
|
+
payments: SalesPayments;
|
|
21
|
+
productCategories: SalesProductCategories;
|
|
22
|
+
products: SalesProducts;
|
|
23
|
+
reports: SalesReports;
|
|
24
|
+
transactions: SalesTransactions;
|
|
25
25
|
private sdkConfiguration;
|
|
26
26
|
constructor(sdkConfig: SDKConfiguration);
|
|
27
27
|
}
|
package/dist/sdk/sales.js
CHANGED
|
@@ -18,17 +18,17 @@ var salestransactions_1 = require("./salestransactions");
|
|
|
18
18
|
var Sales = /** @class */ (function () {
|
|
19
19
|
function Sales(sdkConfig) {
|
|
20
20
|
this.sdkConfiguration = sdkConfig;
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
21
|
+
this.customers = new salescustomers_1.SalesCustomers(this.sdkConfiguration);
|
|
22
|
+
this.disputes = new salesdisputes_1.SalesDisputes(this.sdkConfiguration);
|
|
23
|
+
this.locations = new saleslocations_1.SalesLocations(this.sdkConfiguration);
|
|
24
|
+
this.metrics = new salesmetrics_1.SalesMetrics(this.sdkConfiguration);
|
|
25
|
+
this.orders = new salesorders_1.SalesOrders(this.sdkConfiguration);
|
|
26
|
+
this.paymentMethods = new salespaymentmethods_1.SalesPaymentMethods(this.sdkConfiguration);
|
|
27
|
+
this.payments = new salespayments_1.SalesPayments(this.sdkConfiguration);
|
|
28
|
+
this.productCategories = new salesproductcategories_1.SalesProductCategories(this.sdkConfiguration);
|
|
29
|
+
this.products = new salesproducts_1.SalesProducts(this.sdkConfiguration);
|
|
30
|
+
this.reports = new salesreports_1.SalesReports(this.sdkConfiguration);
|
|
31
|
+
this.transactions = new salestransactions_1.SalesTransactions(this.sdkConfiguration);
|
|
32
32
|
}
|
|
33
33
|
return Sales;
|
|
34
34
|
}());
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -36,8 +36,8 @@ var SDKConfiguration = /** @class */ (function () {
|
|
|
36
36
|
function SDKConfiguration(init) {
|
|
37
37
|
this.language = "typescript";
|
|
38
38
|
this.openapiDocVersion = "3.0.0";
|
|
39
|
-
this.sdkVersion = "1.
|
|
40
|
-
this.genVersion = "2.109.
|
|
39
|
+
this.sdkVersion = "1.2.0";
|
|
40
|
+
this.genVersion = "2.109.3";
|
|
41
41
|
Object.assign(this, init);
|
|
42
42
|
}
|
|
43
43
|
return SDKConfiguration;
|
|
@@ -5,11 +5,11 @@ import { TransactionsJournalEntries } from "./transactionsjournalentries";
|
|
|
5
5
|
import { TransactionsJournals } from "./transactionsjournals";
|
|
6
6
|
import { TransactionsTransfers } from "./transactionstransfers";
|
|
7
7
|
export declare class Transactions {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
accountTransactions: TransactionsAccountTransactions;
|
|
9
|
+
directCosts: TransactionsDirectCosts;
|
|
10
|
+
journalEntries: TransactionsJournalEntries;
|
|
11
|
+
journals: TransactionsJournals;
|
|
12
|
+
transfers: TransactionsTransfers;
|
|
13
13
|
private sdkConfiguration;
|
|
14
14
|
constructor(sdkConfig: SDKConfiguration);
|
|
15
15
|
}
|
package/dist/sdk/transactions.js
CHANGED
|
@@ -12,11 +12,11 @@ var transactionstransfers_1 = require("./transactionstransfers");
|
|
|
12
12
|
var Transactions = /** @class */ (function () {
|
|
13
13
|
function Transactions(sdkConfig) {
|
|
14
14
|
this.sdkConfiguration = sdkConfig;
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
15
|
+
this.accountTransactions = new transactionsaccounttransactions_1.TransactionsAccountTransactions(this.sdkConfiguration);
|
|
16
|
+
this.directCosts = new transactionsdirectcosts_1.TransactionsDirectCosts(this.sdkConfiguration);
|
|
17
|
+
this.journalEntries = new transactionsjournalentries_1.TransactionsJournalEntries(this.sdkConfiguration);
|
|
18
|
+
this.journals = new transactionsjournals_1.TransactionsJournals(this.sdkConfiguration);
|
|
19
|
+
this.transfers = new transactionstransfers_1.TransactionsTransfers(this.sdkConfiguration);
|
|
20
20
|
}
|
|
21
21
|
return Transactions;
|
|
22
22
|
}());
|
|
@@ -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",
|
|
@@ -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",
|