@chift/chift-nodejs 1.0.3 → 1.0.5
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/.eslintcache +1 -0
- package/CHANGELOG.md +9 -0
- package/coverage/clover.xml +1645 -0
- package/coverage/coverage-final.json +19 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +146 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/src/helpers/index.html +131 -0
- package/coverage/lcov-report/src/helpers/openapi.ts.html +151 -0
- package/coverage/lcov-report/src/helpers/settings.ts.html +94 -0
- package/coverage/lcov-report/src/index.html +116 -0
- package/coverage/lcov-report/src/index.ts.html +88 -0
- package/coverage/lcov-report/src/modules/accounting.ts.html +1156 -0
- package/coverage/lcov-report/src/modules/api.ts.html +190 -0
- package/coverage/lcov-report/src/modules/consumer.ts.html +616 -0
- package/coverage/lcov-report/src/modules/consumers.ts.html +331 -0
- package/coverage/lcov-report/src/modules/custom.ts.html +193 -0
- package/coverage/lcov-report/src/modules/datastores.ts.html +142 -0
- package/coverage/lcov-report/src/modules/ecommerce.ts.html +331 -0
- package/coverage/lcov-report/src/modules/flow.ts.html +589 -0
- package/coverage/lcov-report/src/modules/index.html +326 -0
- package/coverage/lcov-report/src/modules/integrations.ts.html +151 -0
- package/coverage/lcov-report/src/modules/internalApi.ts.html +586 -0
- package/coverage/lcov-report/src/modules/invoicing.ts.html +391 -0
- package/coverage/lcov-report/src/modules/pos.ts.html +421 -0
- package/coverage/lcov-report/src/modules/sync.ts.html +316 -0
- package/coverage/lcov-report/src/modules/syncs.ts.html +169 -0
- package/coverage/lcov-report/src/modules/webhooks.ts.html +343 -0
- package/coverage/lcov.info +1976 -0
- package/dist/src/modules/accounting.d.ts +5 -1
- package/dist/src/modules/accounting.js +12 -1
- package/dist/src/modules/api.d.ts +781 -226
- package/dist/src/modules/consumer.d.ts +52 -15
- package/dist/src/modules/consumers.d.ts +260 -75
- package/dist/src/modules/datastores.d.ts +1 -1
- package/dist/src/modules/internalApi.js +5 -1
- package/dist/src/modules/sync.d.ts +208 -60
- package/dist/src/modules/syncs.d.ts +520 -150
- package/dist/test/modules/accounting.test.js +23 -0
- package/dist/test/modules/flow.test.d.ts +1 -0
- package/dist/test/modules/flow.test.js +69 -0
- package/package.json +1 -1
- package/src/modules/accounting.ts +17 -3
- package/src/modules/internalApi.ts +19 -10
- package/src/types/public-api/schema.d.ts +343 -33
- package/test/modules/accounting.test.ts +27 -0
|
@@ -1457,12 +1457,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1457
1457
|
reference?: string | undefined;
|
|
1458
1458
|
posted: boolean;
|
|
1459
1459
|
}[]>;
|
|
1460
|
-
|
|
1460
|
+
createFinancialEntryOld(financial_entry: {
|
|
1461
1461
|
date: string;
|
|
1462
1462
|
journal_id: string;
|
|
1463
1463
|
currency: string;
|
|
1464
1464
|
currency_exchange_rate?: number | undefined;
|
|
1465
1465
|
reference?: string | undefined;
|
|
1466
|
+
number?: string | undefined;
|
|
1466
1467
|
items: {
|
|
1467
1468
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1468
1469
|
account_number: string;
|
|
@@ -1470,7 +1471,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1470
1471
|
amount: number;
|
|
1471
1472
|
description?: string | undefined;
|
|
1472
1473
|
}[];
|
|
1473
|
-
number?: string | undefined;
|
|
1474
1474
|
pdf?: string | undefined;
|
|
1475
1475
|
}, params: {
|
|
1476
1476
|
financial_counterpart_account?: string | undefined;
|
|
@@ -1480,6 +1480,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1480
1480
|
currency: string;
|
|
1481
1481
|
currency_exchange_rate?: number | undefined;
|
|
1482
1482
|
reference?: string | undefined;
|
|
1483
|
+
id: string;
|
|
1484
|
+
number: string;
|
|
1483
1485
|
items: {
|
|
1484
1486
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1485
1487
|
account_number: string;
|
|
@@ -1488,9 +1490,39 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1488
1490
|
description?: string | undefined;
|
|
1489
1491
|
counterpart_account: string;
|
|
1490
1492
|
}[];
|
|
1493
|
+
}>;
|
|
1494
|
+
createFinancialEntry(financial_entry: {
|
|
1495
|
+
date: string;
|
|
1496
|
+
journal_id: string;
|
|
1497
|
+
currency: string;
|
|
1498
|
+
currency_exchange_rate?: number | undefined;
|
|
1499
|
+
reference?: string | undefined;
|
|
1500
|
+
number?: string | undefined;
|
|
1501
|
+
items: {
|
|
1502
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1503
|
+
account: string;
|
|
1504
|
+
amount: number;
|
|
1505
|
+
description?: string | undefined;
|
|
1506
|
+
}[];
|
|
1507
|
+
pdf?: string | undefined;
|
|
1508
|
+
}, params: {
|
|
1509
|
+
financial_counterpart_account?: string | undefined;
|
|
1510
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1511
|
+
date: string;
|
|
1512
|
+
journal_id: string;
|
|
1513
|
+
currency: string;
|
|
1514
|
+
currency_exchange_rate?: number | undefined;
|
|
1515
|
+
reference?: string | undefined;
|
|
1491
1516
|
id: string;
|
|
1492
1517
|
number: string;
|
|
1493
|
-
|
|
1518
|
+
items: {
|
|
1519
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1520
|
+
account: string;
|
|
1521
|
+
amount: number;
|
|
1522
|
+
description?: string | undefined;
|
|
1523
|
+
counterpart_account: string;
|
|
1524
|
+
}[];
|
|
1525
|
+
}[]>;
|
|
1494
1526
|
createJournalEntry(journal_entry: {
|
|
1495
1527
|
reference?: string | undefined;
|
|
1496
1528
|
due_date?: string | undefined;
|
|
@@ -1548,6 +1580,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1548
1580
|
invoicing: import("../types/api").ApiFor<{
|
|
1549
1581
|
getInvoices(params: {
|
|
1550
1582
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
1583
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1551
1584
|
date_from?: string | undefined;
|
|
1552
1585
|
date_to?: string | undefined;
|
|
1553
1586
|
page?: number | undefined;
|
|
@@ -1566,12 +1599,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1566
1599
|
untaxed_amount: number;
|
|
1567
1600
|
total: number;
|
|
1568
1601
|
lines?: {
|
|
1569
|
-
description
|
|
1602
|
+
description?: string | undefined;
|
|
1570
1603
|
unit_price: number;
|
|
1571
1604
|
quantity: number;
|
|
1605
|
+
discount_amount?: number | undefined;
|
|
1572
1606
|
tax_amount: number;
|
|
1573
|
-
total: number;
|
|
1574
1607
|
untaxed_amount: number;
|
|
1608
|
+
total: number;
|
|
1575
1609
|
tax_rate?: number | undefined;
|
|
1576
1610
|
account_number?: string | undefined;
|
|
1577
1611
|
tax_id?: string | undefined;
|
|
@@ -1608,12 +1642,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1608
1642
|
untaxed_amount: number;
|
|
1609
1643
|
total: number;
|
|
1610
1644
|
lines?: {
|
|
1611
|
-
description
|
|
1645
|
+
description?: string | undefined;
|
|
1612
1646
|
unit_price: number;
|
|
1613
1647
|
quantity: number;
|
|
1648
|
+
discount_amount?: number | undefined;
|
|
1614
1649
|
tax_amount: number;
|
|
1615
|
-
total: number;
|
|
1616
1650
|
untaxed_amount: number;
|
|
1651
|
+
total: number;
|
|
1617
1652
|
tax_rate?: number | undefined;
|
|
1618
1653
|
account_number?: string | undefined;
|
|
1619
1654
|
tax_id?: string | undefined;
|
|
@@ -1643,12 +1678,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1643
1678
|
untaxed_amount: number;
|
|
1644
1679
|
total: number;
|
|
1645
1680
|
lines?: {
|
|
1646
|
-
description
|
|
1681
|
+
description?: string | undefined;
|
|
1647
1682
|
unit_price: number;
|
|
1648
1683
|
quantity: number;
|
|
1684
|
+
discount_amount?: number | undefined;
|
|
1649
1685
|
tax_amount: number;
|
|
1650
|
-
total: number;
|
|
1651
1686
|
untaxed_amount: number;
|
|
1687
|
+
total: number;
|
|
1652
1688
|
tax_rate?: number | undefined;
|
|
1653
1689
|
account_number?: string | undefined;
|
|
1654
1690
|
tax_id?: string | undefined;
|
|
@@ -1682,12 +1718,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1682
1718
|
untaxed_amount: number;
|
|
1683
1719
|
total: number;
|
|
1684
1720
|
lines?: {
|
|
1685
|
-
description
|
|
1721
|
+
description?: string | undefined;
|
|
1686
1722
|
unit_price: number;
|
|
1687
1723
|
quantity: number;
|
|
1724
|
+
discount_amount?: number | undefined;
|
|
1688
1725
|
tax_amount: number;
|
|
1689
|
-
total: number;
|
|
1690
1726
|
untaxed_amount: number;
|
|
1727
|
+
total: number;
|
|
1691
1728
|
tax_rate?: number | undefined;
|
|
1692
1729
|
account_number?: string | undefined;
|
|
1693
1730
|
tax_id?: string | undefined;
|
|
@@ -2295,7 +2332,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2295
2332
|
last_updated_on?: string | undefined;
|
|
2296
2333
|
confirmed_on?: string | undefined;
|
|
2297
2334
|
cancelled_on?: string | undefined;
|
|
2298
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2335
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2299
2336
|
discount_amount: number;
|
|
2300
2337
|
untaxed_amount_without_fees: number;
|
|
2301
2338
|
tax_amount_without_fees: number;
|
|
@@ -2442,7 +2479,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2442
2479
|
last_updated_on?: string | undefined;
|
|
2443
2480
|
confirmed_on?: string | undefined;
|
|
2444
2481
|
cancelled_on?: string | undefined;
|
|
2445
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2482
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2446
2483
|
discount_amount: number;
|
|
2447
2484
|
untaxed_amount_without_fees: number;
|
|
2448
2485
|
tax_amount_without_fees: number;
|
|
@@ -2548,7 +2585,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2548
2585
|
last_updated_on?: string | undefined;
|
|
2549
2586
|
confirmed_on?: string | undefined;
|
|
2550
2587
|
cancelled_on?: string | undefined;
|
|
2551
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2588
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2552
2589
|
discount_amount: number;
|
|
2553
2590
|
untaxed_amount_without_fees: number;
|
|
2554
2591
|
tax_amount_without_fees: number;
|
|
@@ -2659,7 +2696,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2659
2696
|
name: string;
|
|
2660
2697
|
title: string;
|
|
2661
2698
|
type: string;
|
|
2662
|
-
|
|
2699
|
+
optional?: boolean | undefined;
|
|
2663
2700
|
}[];
|
|
2664
2701
|
search_column?: string | undefined;
|
|
2665
2702
|
};
|
|
@@ -4144,12 +4181,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4144
4181
|
reference?: string | undefined;
|
|
4145
4182
|
posted: boolean;
|
|
4146
4183
|
}[]>;
|
|
4147
|
-
|
|
4184
|
+
createFinancialEntryOld(financial_entry: {
|
|
4148
4185
|
date: string;
|
|
4149
4186
|
journal_id: string;
|
|
4150
4187
|
currency: string;
|
|
4151
4188
|
currency_exchange_rate?: number | undefined;
|
|
4152
4189
|
reference?: string | undefined;
|
|
4190
|
+
number?: string | undefined;
|
|
4153
4191
|
items: {
|
|
4154
4192
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4155
4193
|
account_number: string;
|
|
@@ -4157,7 +4195,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4157
4195
|
amount: number;
|
|
4158
4196
|
description?: string | undefined;
|
|
4159
4197
|
}[];
|
|
4160
|
-
number?: string | undefined;
|
|
4161
4198
|
pdf?: string | undefined;
|
|
4162
4199
|
}, params: {
|
|
4163
4200
|
financial_counterpart_account?: string | undefined;
|
|
@@ -4167,6 +4204,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4167
4204
|
currency: string;
|
|
4168
4205
|
currency_exchange_rate?: number | undefined;
|
|
4169
4206
|
reference?: string | undefined;
|
|
4207
|
+
id: string;
|
|
4208
|
+
number: string;
|
|
4170
4209
|
items: {
|
|
4171
4210
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4172
4211
|
account_number: string;
|
|
@@ -4175,9 +4214,39 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4175
4214
|
description?: string | undefined;
|
|
4176
4215
|
counterpart_account: string;
|
|
4177
4216
|
}[];
|
|
4217
|
+
}>;
|
|
4218
|
+
createFinancialEntry(financial_entry: {
|
|
4219
|
+
date: string;
|
|
4220
|
+
journal_id: string;
|
|
4221
|
+
currency: string;
|
|
4222
|
+
currency_exchange_rate?: number | undefined;
|
|
4223
|
+
reference?: string | undefined;
|
|
4224
|
+
number?: string | undefined;
|
|
4225
|
+
items: {
|
|
4226
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4227
|
+
account: string;
|
|
4228
|
+
amount: number;
|
|
4229
|
+
description?: string | undefined;
|
|
4230
|
+
}[];
|
|
4231
|
+
pdf?: string | undefined;
|
|
4232
|
+
}, params: {
|
|
4233
|
+
financial_counterpart_account?: string | undefined;
|
|
4234
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4235
|
+
date: string;
|
|
4236
|
+
journal_id: string;
|
|
4237
|
+
currency: string;
|
|
4238
|
+
currency_exchange_rate?: number | undefined;
|
|
4239
|
+
reference?: string | undefined;
|
|
4178
4240
|
id: string;
|
|
4179
4241
|
number: string;
|
|
4180
|
-
|
|
4242
|
+
items: {
|
|
4243
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4244
|
+
account: string;
|
|
4245
|
+
amount: number;
|
|
4246
|
+
description?: string | undefined;
|
|
4247
|
+
counterpart_account: string;
|
|
4248
|
+
}[];
|
|
4249
|
+
}[]>;
|
|
4181
4250
|
createJournalEntry(journal_entry: {
|
|
4182
4251
|
reference?: string | undefined;
|
|
4183
4252
|
due_date?: string | undefined;
|
|
@@ -4235,6 +4304,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4235
4304
|
invoicing: import("../types/api").ApiFor<{
|
|
4236
4305
|
getInvoices(params: {
|
|
4237
4306
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
4307
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
4238
4308
|
date_from?: string | undefined;
|
|
4239
4309
|
date_to?: string | undefined;
|
|
4240
4310
|
page?: number | undefined;
|
|
@@ -4253,12 +4323,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4253
4323
|
untaxed_amount: number;
|
|
4254
4324
|
total: number;
|
|
4255
4325
|
lines?: {
|
|
4256
|
-
description
|
|
4326
|
+
description?: string | undefined;
|
|
4257
4327
|
unit_price: number;
|
|
4258
4328
|
quantity: number;
|
|
4329
|
+
discount_amount?: number | undefined;
|
|
4259
4330
|
tax_amount: number;
|
|
4260
|
-
total: number;
|
|
4261
4331
|
untaxed_amount: number;
|
|
4332
|
+
total: number;
|
|
4262
4333
|
tax_rate?: number | undefined;
|
|
4263
4334
|
account_number?: string | undefined;
|
|
4264
4335
|
tax_id?: string | undefined;
|
|
@@ -4295,12 +4366,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4295
4366
|
untaxed_amount: number;
|
|
4296
4367
|
total: number;
|
|
4297
4368
|
lines?: {
|
|
4298
|
-
description
|
|
4369
|
+
description?: string | undefined;
|
|
4299
4370
|
unit_price: number;
|
|
4300
4371
|
quantity: number;
|
|
4372
|
+
discount_amount?: number | undefined;
|
|
4301
4373
|
tax_amount: number;
|
|
4302
|
-
total: number;
|
|
4303
4374
|
untaxed_amount: number;
|
|
4375
|
+
total: number;
|
|
4304
4376
|
tax_rate?: number | undefined;
|
|
4305
4377
|
account_number?: string | undefined;
|
|
4306
4378
|
tax_id?: string | undefined;
|
|
@@ -4330,12 +4402,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4330
4402
|
untaxed_amount: number;
|
|
4331
4403
|
total: number;
|
|
4332
4404
|
lines?: {
|
|
4333
|
-
description
|
|
4405
|
+
description?: string | undefined;
|
|
4334
4406
|
unit_price: number;
|
|
4335
4407
|
quantity: number;
|
|
4408
|
+
discount_amount?: number | undefined;
|
|
4336
4409
|
tax_amount: number;
|
|
4337
|
-
total: number;
|
|
4338
4410
|
untaxed_amount: number;
|
|
4411
|
+
total: number;
|
|
4339
4412
|
tax_rate?: number | undefined;
|
|
4340
4413
|
account_number?: string | undefined;
|
|
4341
4414
|
tax_id?: string | undefined;
|
|
@@ -4369,12 +4442,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4369
4442
|
untaxed_amount: number;
|
|
4370
4443
|
total: number;
|
|
4371
4444
|
lines?: {
|
|
4372
|
-
description
|
|
4445
|
+
description?: string | undefined;
|
|
4373
4446
|
unit_price: number;
|
|
4374
4447
|
quantity: number;
|
|
4448
|
+
discount_amount?: number | undefined;
|
|
4375
4449
|
tax_amount: number;
|
|
4376
|
-
total: number;
|
|
4377
4450
|
untaxed_amount: number;
|
|
4451
|
+
total: number;
|
|
4378
4452
|
tax_rate?: number | undefined;
|
|
4379
4453
|
account_number?: string | undefined;
|
|
4380
4454
|
tax_id?: string | undefined;
|
|
@@ -4982,7 +5056,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4982
5056
|
last_updated_on?: string | undefined;
|
|
4983
5057
|
confirmed_on?: string | undefined;
|
|
4984
5058
|
cancelled_on?: string | undefined;
|
|
4985
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5059
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
4986
5060
|
discount_amount: number;
|
|
4987
5061
|
untaxed_amount_without_fees: number;
|
|
4988
5062
|
tax_amount_without_fees: number;
|
|
@@ -5129,7 +5203,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5129
5203
|
last_updated_on?: string | undefined;
|
|
5130
5204
|
confirmed_on?: string | undefined;
|
|
5131
5205
|
cancelled_on?: string | undefined;
|
|
5132
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5206
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
5133
5207
|
discount_amount: number;
|
|
5134
5208
|
untaxed_amount_without_fees: number;
|
|
5135
5209
|
tax_amount_without_fees: number;
|
|
@@ -5235,7 +5309,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5235
5309
|
last_updated_on?: string | undefined;
|
|
5236
5310
|
confirmed_on?: string | undefined;
|
|
5237
5311
|
cancelled_on?: string | undefined;
|
|
5238
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5312
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
5239
5313
|
discount_amount: number;
|
|
5240
5314
|
untaxed_amount_without_fees: number;
|
|
5241
5315
|
tax_amount_without_fees: number;
|
|
@@ -5346,7 +5420,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5346
5420
|
name: string;
|
|
5347
5421
|
title: string;
|
|
5348
5422
|
type: string;
|
|
5349
|
-
|
|
5423
|
+
optional?: boolean | undefined;
|
|
5350
5424
|
}[];
|
|
5351
5425
|
search_column?: string | undefined;
|
|
5352
5426
|
};
|
|
@@ -6831,12 +6905,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6831
6905
|
reference?: string | undefined;
|
|
6832
6906
|
posted: boolean;
|
|
6833
6907
|
}[]>;
|
|
6834
|
-
|
|
6908
|
+
createFinancialEntryOld(financial_entry: {
|
|
6835
6909
|
date: string;
|
|
6836
6910
|
journal_id: string;
|
|
6837
6911
|
currency: string;
|
|
6838
6912
|
currency_exchange_rate?: number | undefined;
|
|
6839
6913
|
reference?: string | undefined;
|
|
6914
|
+
number?: string | undefined;
|
|
6840
6915
|
items: {
|
|
6841
6916
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6842
6917
|
account_number: string;
|
|
@@ -6844,7 +6919,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6844
6919
|
amount: number;
|
|
6845
6920
|
description?: string | undefined;
|
|
6846
6921
|
}[];
|
|
6847
|
-
number?: string | undefined;
|
|
6848
6922
|
pdf?: string | undefined;
|
|
6849
6923
|
}, params: {
|
|
6850
6924
|
financial_counterpart_account?: string | undefined;
|
|
@@ -6854,6 +6928,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6854
6928
|
currency: string;
|
|
6855
6929
|
currency_exchange_rate?: number | undefined;
|
|
6856
6930
|
reference?: string | undefined;
|
|
6931
|
+
id: string;
|
|
6932
|
+
number: string;
|
|
6857
6933
|
items: {
|
|
6858
6934
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6859
6935
|
account_number: string;
|
|
@@ -6862,9 +6938,39 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6862
6938
|
description?: string | undefined;
|
|
6863
6939
|
counterpart_account: string;
|
|
6864
6940
|
}[];
|
|
6941
|
+
}>;
|
|
6942
|
+
createFinancialEntry(financial_entry: {
|
|
6943
|
+
date: string;
|
|
6944
|
+
journal_id: string;
|
|
6945
|
+
currency: string;
|
|
6946
|
+
currency_exchange_rate?: number | undefined;
|
|
6947
|
+
reference?: string | undefined;
|
|
6948
|
+
number?: string | undefined;
|
|
6949
|
+
items: {
|
|
6950
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6951
|
+
account: string;
|
|
6952
|
+
amount: number;
|
|
6953
|
+
description?: string | undefined;
|
|
6954
|
+
}[];
|
|
6955
|
+
pdf?: string | undefined;
|
|
6956
|
+
}, params: {
|
|
6957
|
+
financial_counterpart_account?: string | undefined;
|
|
6958
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6959
|
+
date: string;
|
|
6960
|
+
journal_id: string;
|
|
6961
|
+
currency: string;
|
|
6962
|
+
currency_exchange_rate?: number | undefined;
|
|
6963
|
+
reference?: string | undefined;
|
|
6865
6964
|
id: string;
|
|
6866
6965
|
number: string;
|
|
6867
|
-
|
|
6966
|
+
items: {
|
|
6967
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6968
|
+
account: string;
|
|
6969
|
+
amount: number;
|
|
6970
|
+
description?: string | undefined;
|
|
6971
|
+
counterpart_account: string;
|
|
6972
|
+
}[];
|
|
6973
|
+
}[]>;
|
|
6868
6974
|
createJournalEntry(journal_entry: {
|
|
6869
6975
|
reference?: string | undefined;
|
|
6870
6976
|
due_date?: string | undefined;
|
|
@@ -6922,6 +7028,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6922
7028
|
invoicing: import("../types/api").ApiFor<{
|
|
6923
7029
|
getInvoices(params: {
|
|
6924
7030
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
7031
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
6925
7032
|
date_from?: string | undefined;
|
|
6926
7033
|
date_to?: string | undefined;
|
|
6927
7034
|
page?: number | undefined;
|
|
@@ -6940,12 +7047,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6940
7047
|
untaxed_amount: number;
|
|
6941
7048
|
total: number;
|
|
6942
7049
|
lines?: {
|
|
6943
|
-
description
|
|
7050
|
+
description?: string | undefined;
|
|
6944
7051
|
unit_price: number;
|
|
6945
7052
|
quantity: number;
|
|
7053
|
+
discount_amount?: number | undefined;
|
|
6946
7054
|
tax_amount: number;
|
|
6947
|
-
total: number;
|
|
6948
7055
|
untaxed_amount: number;
|
|
7056
|
+
total: number;
|
|
6949
7057
|
tax_rate?: number | undefined;
|
|
6950
7058
|
account_number?: string | undefined;
|
|
6951
7059
|
tax_id?: string | undefined;
|
|
@@ -6982,12 +7090,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6982
7090
|
untaxed_amount: number;
|
|
6983
7091
|
total: number;
|
|
6984
7092
|
lines?: {
|
|
6985
|
-
description
|
|
7093
|
+
description?: string | undefined;
|
|
6986
7094
|
unit_price: number;
|
|
6987
7095
|
quantity: number;
|
|
7096
|
+
discount_amount?: number | undefined;
|
|
6988
7097
|
tax_amount: number;
|
|
6989
|
-
total: number;
|
|
6990
7098
|
untaxed_amount: number;
|
|
7099
|
+
total: number;
|
|
6991
7100
|
tax_rate?: number | undefined;
|
|
6992
7101
|
account_number?: string | undefined;
|
|
6993
7102
|
tax_id?: string | undefined;
|
|
@@ -7017,12 +7126,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7017
7126
|
untaxed_amount: number;
|
|
7018
7127
|
total: number;
|
|
7019
7128
|
lines?: {
|
|
7020
|
-
description
|
|
7129
|
+
description?: string | undefined;
|
|
7021
7130
|
unit_price: number;
|
|
7022
7131
|
quantity: number;
|
|
7132
|
+
discount_amount?: number | undefined;
|
|
7023
7133
|
tax_amount: number;
|
|
7024
|
-
total: number;
|
|
7025
7134
|
untaxed_amount: number;
|
|
7135
|
+
total: number;
|
|
7026
7136
|
tax_rate?: number | undefined;
|
|
7027
7137
|
account_number?: string | undefined;
|
|
7028
7138
|
tax_id?: string | undefined;
|
|
@@ -7056,12 +7166,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7056
7166
|
untaxed_amount: number;
|
|
7057
7167
|
total: number;
|
|
7058
7168
|
lines?: {
|
|
7059
|
-
description
|
|
7169
|
+
description?: string | undefined;
|
|
7060
7170
|
unit_price: number;
|
|
7061
7171
|
quantity: number;
|
|
7172
|
+
discount_amount?: number | undefined;
|
|
7062
7173
|
tax_amount: number;
|
|
7063
|
-
total: number;
|
|
7064
7174
|
untaxed_amount: number;
|
|
7175
|
+
total: number;
|
|
7065
7176
|
tax_rate?: number | undefined;
|
|
7066
7177
|
account_number?: string | undefined;
|
|
7067
7178
|
tax_id?: string | undefined;
|
|
@@ -7669,7 +7780,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7669
7780
|
last_updated_on?: string | undefined;
|
|
7670
7781
|
confirmed_on?: string | undefined;
|
|
7671
7782
|
cancelled_on?: string | undefined;
|
|
7672
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
7783
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7673
7784
|
discount_amount: number;
|
|
7674
7785
|
untaxed_amount_without_fees: number;
|
|
7675
7786
|
tax_amount_without_fees: number;
|
|
@@ -7816,7 +7927,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7816
7927
|
last_updated_on?: string | undefined;
|
|
7817
7928
|
confirmed_on?: string | undefined;
|
|
7818
7929
|
cancelled_on?: string | undefined;
|
|
7819
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
7930
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7820
7931
|
discount_amount: number;
|
|
7821
7932
|
untaxed_amount_without_fees: number;
|
|
7822
7933
|
tax_amount_without_fees: number;
|
|
@@ -7922,7 +8033,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7922
8033
|
last_updated_on?: string | undefined;
|
|
7923
8034
|
confirmed_on?: string | undefined;
|
|
7924
8035
|
cancelled_on?: string | undefined;
|
|
7925
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
8036
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7926
8037
|
discount_amount: number;
|
|
7927
8038
|
untaxed_amount_without_fees: number;
|
|
7928
8039
|
tax_amount_without_fees: number;
|
|
@@ -8033,7 +8144,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8033
8144
|
name: string;
|
|
8034
8145
|
title: string;
|
|
8035
8146
|
type: string;
|
|
8036
|
-
|
|
8147
|
+
optional?: boolean | undefined;
|
|
8037
8148
|
}[];
|
|
8038
8149
|
search_column?: string | undefined;
|
|
8039
8150
|
};
|
|
@@ -9518,12 +9629,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9518
9629
|
reference?: string | undefined;
|
|
9519
9630
|
posted: boolean;
|
|
9520
9631
|
}[]>;
|
|
9521
|
-
|
|
9632
|
+
createFinancialEntryOld(financial_entry: {
|
|
9522
9633
|
date: string;
|
|
9523
9634
|
journal_id: string;
|
|
9524
9635
|
currency: string;
|
|
9525
9636
|
currency_exchange_rate?: number | undefined;
|
|
9526
9637
|
reference?: string | undefined;
|
|
9638
|
+
number?: string | undefined;
|
|
9527
9639
|
items: {
|
|
9528
9640
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9529
9641
|
account_number: string;
|
|
@@ -9531,7 +9643,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9531
9643
|
amount: number;
|
|
9532
9644
|
description?: string | undefined;
|
|
9533
9645
|
}[];
|
|
9534
|
-
number?: string | undefined;
|
|
9535
9646
|
pdf?: string | undefined;
|
|
9536
9647
|
}, params: {
|
|
9537
9648
|
financial_counterpart_account?: string | undefined;
|
|
@@ -9541,6 +9652,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9541
9652
|
currency: string;
|
|
9542
9653
|
currency_exchange_rate?: number | undefined;
|
|
9543
9654
|
reference?: string | undefined;
|
|
9655
|
+
id: string;
|
|
9656
|
+
number: string;
|
|
9544
9657
|
items: {
|
|
9545
9658
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9546
9659
|
account_number: string;
|
|
@@ -9549,9 +9662,39 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9549
9662
|
description?: string | undefined;
|
|
9550
9663
|
counterpart_account: string;
|
|
9551
9664
|
}[];
|
|
9665
|
+
}>;
|
|
9666
|
+
createFinancialEntry(financial_entry: {
|
|
9667
|
+
date: string;
|
|
9668
|
+
journal_id: string;
|
|
9669
|
+
currency: string;
|
|
9670
|
+
currency_exchange_rate?: number | undefined;
|
|
9671
|
+
reference?: string | undefined;
|
|
9672
|
+
number?: string | undefined;
|
|
9673
|
+
items: {
|
|
9674
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9675
|
+
account: string;
|
|
9676
|
+
amount: number;
|
|
9677
|
+
description?: string | undefined;
|
|
9678
|
+
}[];
|
|
9679
|
+
pdf?: string | undefined;
|
|
9680
|
+
}, params: {
|
|
9681
|
+
financial_counterpart_account?: string | undefined;
|
|
9682
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9683
|
+
date: string;
|
|
9684
|
+
journal_id: string;
|
|
9685
|
+
currency: string;
|
|
9686
|
+
currency_exchange_rate?: number | undefined;
|
|
9687
|
+
reference?: string | undefined;
|
|
9552
9688
|
id: string;
|
|
9553
9689
|
number: string;
|
|
9554
|
-
|
|
9690
|
+
items: {
|
|
9691
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9692
|
+
account: string;
|
|
9693
|
+
amount: number;
|
|
9694
|
+
description?: string | undefined;
|
|
9695
|
+
counterpart_account: string;
|
|
9696
|
+
}[];
|
|
9697
|
+
}[]>;
|
|
9555
9698
|
createJournalEntry(journal_entry: {
|
|
9556
9699
|
reference?: string | undefined;
|
|
9557
9700
|
due_date?: string | undefined;
|
|
@@ -9609,6 +9752,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9609
9752
|
invoicing: import("../types/api").ApiFor<{
|
|
9610
9753
|
getInvoices(params: {
|
|
9611
9754
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
9755
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
9612
9756
|
date_from?: string | undefined;
|
|
9613
9757
|
date_to?: string | undefined;
|
|
9614
9758
|
page?: number | undefined;
|
|
@@ -9627,12 +9771,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9627
9771
|
untaxed_amount: number;
|
|
9628
9772
|
total: number;
|
|
9629
9773
|
lines?: {
|
|
9630
|
-
description
|
|
9774
|
+
description?: string | undefined;
|
|
9631
9775
|
unit_price: number;
|
|
9632
9776
|
quantity: number;
|
|
9777
|
+
discount_amount?: number | undefined;
|
|
9633
9778
|
tax_amount: number;
|
|
9634
|
-
total: number;
|
|
9635
9779
|
untaxed_amount: number;
|
|
9780
|
+
total: number;
|
|
9636
9781
|
tax_rate?: number | undefined;
|
|
9637
9782
|
account_number?: string | undefined;
|
|
9638
9783
|
tax_id?: string | undefined;
|
|
@@ -9669,12 +9814,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9669
9814
|
untaxed_amount: number;
|
|
9670
9815
|
total: number;
|
|
9671
9816
|
lines?: {
|
|
9672
|
-
description
|
|
9817
|
+
description?: string | undefined;
|
|
9673
9818
|
unit_price: number;
|
|
9674
9819
|
quantity: number;
|
|
9820
|
+
discount_amount?: number | undefined;
|
|
9675
9821
|
tax_amount: number;
|
|
9676
|
-
total: number;
|
|
9677
9822
|
untaxed_amount: number;
|
|
9823
|
+
total: number;
|
|
9678
9824
|
tax_rate?: number | undefined;
|
|
9679
9825
|
account_number?: string | undefined;
|
|
9680
9826
|
tax_id?: string | undefined;
|
|
@@ -9704,12 +9850,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9704
9850
|
untaxed_amount: number;
|
|
9705
9851
|
total: number;
|
|
9706
9852
|
lines?: {
|
|
9707
|
-
description
|
|
9853
|
+
description?: string | undefined;
|
|
9708
9854
|
unit_price: number;
|
|
9709
9855
|
quantity: number;
|
|
9856
|
+
discount_amount?: number | undefined;
|
|
9710
9857
|
tax_amount: number;
|
|
9711
|
-
total: number;
|
|
9712
9858
|
untaxed_amount: number;
|
|
9859
|
+
total: number;
|
|
9713
9860
|
tax_rate?: number | undefined;
|
|
9714
9861
|
account_number?: string | undefined;
|
|
9715
9862
|
tax_id?: string | undefined;
|
|
@@ -9743,12 +9890,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9743
9890
|
untaxed_amount: number;
|
|
9744
9891
|
total: number;
|
|
9745
9892
|
lines?: {
|
|
9746
|
-
description
|
|
9893
|
+
description?: string | undefined;
|
|
9747
9894
|
unit_price: number;
|
|
9748
9895
|
quantity: number;
|
|
9896
|
+
discount_amount?: number | undefined;
|
|
9749
9897
|
tax_amount: number;
|
|
9750
|
-
total: number;
|
|
9751
9898
|
untaxed_amount: number;
|
|
9899
|
+
total: number;
|
|
9752
9900
|
tax_rate?: number | undefined;
|
|
9753
9901
|
account_number?: string | undefined;
|
|
9754
9902
|
tax_id?: string | undefined;
|
|
@@ -10356,7 +10504,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10356
10504
|
last_updated_on?: string | undefined;
|
|
10357
10505
|
confirmed_on?: string | undefined;
|
|
10358
10506
|
cancelled_on?: string | undefined;
|
|
10359
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10507
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10360
10508
|
discount_amount: number;
|
|
10361
10509
|
untaxed_amount_without_fees: number;
|
|
10362
10510
|
tax_amount_without_fees: number;
|
|
@@ -10503,7 +10651,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10503
10651
|
last_updated_on?: string | undefined;
|
|
10504
10652
|
confirmed_on?: string | undefined;
|
|
10505
10653
|
cancelled_on?: string | undefined;
|
|
10506
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10654
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10507
10655
|
discount_amount: number;
|
|
10508
10656
|
untaxed_amount_without_fees: number;
|
|
10509
10657
|
tax_amount_without_fees: number;
|
|
@@ -10609,7 +10757,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10609
10757
|
last_updated_on?: string | undefined;
|
|
10610
10758
|
confirmed_on?: string | undefined;
|
|
10611
10759
|
cancelled_on?: string | undefined;
|
|
10612
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10760
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10613
10761
|
discount_amount: number;
|
|
10614
10762
|
untaxed_amount_without_fees: number;
|
|
10615
10763
|
tax_amount_without_fees: number;
|
|
@@ -10720,7 +10868,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10720
10868
|
name: string;
|
|
10721
10869
|
title: string;
|
|
10722
10870
|
type: string;
|
|
10723
|
-
|
|
10871
|
+
optional?: boolean | undefined;
|
|
10724
10872
|
}[];
|
|
10725
10873
|
search_column?: string | undefined;
|
|
10726
10874
|
};
|
|
@@ -12205,12 +12353,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12205
12353
|
reference?: string | undefined;
|
|
12206
12354
|
posted: boolean;
|
|
12207
12355
|
}[]>;
|
|
12208
|
-
|
|
12356
|
+
createFinancialEntryOld(financial_entry: {
|
|
12209
12357
|
date: string;
|
|
12210
12358
|
journal_id: string;
|
|
12211
12359
|
currency: string;
|
|
12212
12360
|
currency_exchange_rate?: number | undefined;
|
|
12213
12361
|
reference?: string | undefined;
|
|
12362
|
+
number?: string | undefined;
|
|
12214
12363
|
items: {
|
|
12215
12364
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12216
12365
|
account_number: string;
|
|
@@ -12218,7 +12367,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12218
12367
|
amount: number;
|
|
12219
12368
|
description?: string | undefined;
|
|
12220
12369
|
}[];
|
|
12221
|
-
number?: string | undefined;
|
|
12222
12370
|
pdf?: string | undefined;
|
|
12223
12371
|
}, params: {
|
|
12224
12372
|
financial_counterpart_account?: string | undefined;
|
|
@@ -12228,6 +12376,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12228
12376
|
currency: string;
|
|
12229
12377
|
currency_exchange_rate?: number | undefined;
|
|
12230
12378
|
reference?: string | undefined;
|
|
12379
|
+
id: string;
|
|
12380
|
+
number: string;
|
|
12231
12381
|
items: {
|
|
12232
12382
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12233
12383
|
account_number: string;
|
|
@@ -12236,9 +12386,39 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12236
12386
|
description?: string | undefined;
|
|
12237
12387
|
counterpart_account: string;
|
|
12238
12388
|
}[];
|
|
12389
|
+
}>;
|
|
12390
|
+
createFinancialEntry(financial_entry: {
|
|
12391
|
+
date: string;
|
|
12392
|
+
journal_id: string;
|
|
12393
|
+
currency: string;
|
|
12394
|
+
currency_exchange_rate?: number | undefined;
|
|
12395
|
+
reference?: string | undefined;
|
|
12396
|
+
number?: string | undefined;
|
|
12397
|
+
items: {
|
|
12398
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12399
|
+
account: string;
|
|
12400
|
+
amount: number;
|
|
12401
|
+
description?: string | undefined;
|
|
12402
|
+
}[];
|
|
12403
|
+
pdf?: string | undefined;
|
|
12404
|
+
}, params: {
|
|
12405
|
+
financial_counterpart_account?: string | undefined;
|
|
12406
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12407
|
+
date: string;
|
|
12408
|
+
journal_id: string;
|
|
12409
|
+
currency: string;
|
|
12410
|
+
currency_exchange_rate?: number | undefined;
|
|
12411
|
+
reference?: string | undefined;
|
|
12239
12412
|
id: string;
|
|
12240
12413
|
number: string;
|
|
12241
|
-
|
|
12414
|
+
items: {
|
|
12415
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12416
|
+
account: string;
|
|
12417
|
+
amount: number;
|
|
12418
|
+
description?: string | undefined;
|
|
12419
|
+
counterpart_account: string;
|
|
12420
|
+
}[];
|
|
12421
|
+
}[]>;
|
|
12242
12422
|
createJournalEntry(journal_entry: {
|
|
12243
12423
|
reference?: string | undefined;
|
|
12244
12424
|
due_date?: string | undefined;
|
|
@@ -12296,6 +12476,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12296
12476
|
invoicing: import("../types/api").ApiFor<{
|
|
12297
12477
|
getInvoices(params: {
|
|
12298
12478
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
12479
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
12299
12480
|
date_from?: string | undefined;
|
|
12300
12481
|
date_to?: string | undefined;
|
|
12301
12482
|
page?: number | undefined;
|
|
@@ -12314,12 +12495,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12314
12495
|
untaxed_amount: number;
|
|
12315
12496
|
total: number;
|
|
12316
12497
|
lines?: {
|
|
12317
|
-
description
|
|
12498
|
+
description?: string | undefined;
|
|
12318
12499
|
unit_price: number;
|
|
12319
12500
|
quantity: number;
|
|
12501
|
+
discount_amount?: number | undefined;
|
|
12320
12502
|
tax_amount: number;
|
|
12321
|
-
total: number;
|
|
12322
12503
|
untaxed_amount: number;
|
|
12504
|
+
total: number;
|
|
12323
12505
|
tax_rate?: number | undefined;
|
|
12324
12506
|
account_number?: string | undefined;
|
|
12325
12507
|
tax_id?: string | undefined;
|
|
@@ -12356,12 +12538,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12356
12538
|
untaxed_amount: number;
|
|
12357
12539
|
total: number;
|
|
12358
12540
|
lines?: {
|
|
12359
|
-
description
|
|
12541
|
+
description?: string | undefined;
|
|
12360
12542
|
unit_price: number;
|
|
12361
12543
|
quantity: number;
|
|
12544
|
+
discount_amount?: number | undefined;
|
|
12362
12545
|
tax_amount: number;
|
|
12363
|
-
total: number;
|
|
12364
12546
|
untaxed_amount: number;
|
|
12547
|
+
total: number;
|
|
12365
12548
|
tax_rate?: number | undefined;
|
|
12366
12549
|
account_number?: string | undefined;
|
|
12367
12550
|
tax_id?: string | undefined;
|
|
@@ -12391,12 +12574,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12391
12574
|
untaxed_amount: number;
|
|
12392
12575
|
total: number;
|
|
12393
12576
|
lines?: {
|
|
12394
|
-
description
|
|
12577
|
+
description?: string | undefined;
|
|
12395
12578
|
unit_price: number;
|
|
12396
12579
|
quantity: number;
|
|
12580
|
+
discount_amount?: number | undefined;
|
|
12397
12581
|
tax_amount: number;
|
|
12398
|
-
total: number;
|
|
12399
12582
|
untaxed_amount: number;
|
|
12583
|
+
total: number;
|
|
12400
12584
|
tax_rate?: number | undefined;
|
|
12401
12585
|
account_number?: string | undefined;
|
|
12402
12586
|
tax_id?: string | undefined;
|
|
@@ -12430,12 +12614,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12430
12614
|
untaxed_amount: number;
|
|
12431
12615
|
total: number;
|
|
12432
12616
|
lines?: {
|
|
12433
|
-
description
|
|
12617
|
+
description?: string | undefined;
|
|
12434
12618
|
unit_price: number;
|
|
12435
12619
|
quantity: number;
|
|
12620
|
+
discount_amount?: number | undefined;
|
|
12436
12621
|
tax_amount: number;
|
|
12437
|
-
total: number;
|
|
12438
12622
|
untaxed_amount: number;
|
|
12623
|
+
total: number;
|
|
12439
12624
|
tax_rate?: number | undefined;
|
|
12440
12625
|
account_number?: string | undefined;
|
|
12441
12626
|
tax_id?: string | undefined;
|
|
@@ -13043,7 +13228,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13043
13228
|
last_updated_on?: string | undefined;
|
|
13044
13229
|
confirmed_on?: string | undefined;
|
|
13045
13230
|
cancelled_on?: string | undefined;
|
|
13046
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
13231
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
13047
13232
|
discount_amount: number;
|
|
13048
13233
|
untaxed_amount_without_fees: number;
|
|
13049
13234
|
tax_amount_without_fees: number;
|
|
@@ -13190,7 +13375,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13190
13375
|
last_updated_on?: string | undefined;
|
|
13191
13376
|
confirmed_on?: string | undefined;
|
|
13192
13377
|
cancelled_on?: string | undefined;
|
|
13193
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
13378
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
13194
13379
|
discount_amount: number;
|
|
13195
13380
|
untaxed_amount_without_fees: number;
|
|
13196
13381
|
tax_amount_without_fees: number;
|
|
@@ -13296,7 +13481,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13296
13481
|
last_updated_on?: string | undefined;
|
|
13297
13482
|
confirmed_on?: string | undefined;
|
|
13298
13483
|
cancelled_on?: string | undefined;
|
|
13299
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
13484
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
13300
13485
|
discount_amount: number;
|
|
13301
13486
|
untaxed_amount_without_fees: number;
|
|
13302
13487
|
tax_amount_without_fees: number;
|
|
@@ -13407,7 +13592,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13407
13592
|
name: string;
|
|
13408
13593
|
title: string;
|
|
13409
13594
|
type: string;
|
|
13410
|
-
|
|
13595
|
+
optional?: boolean | undefined;
|
|
13411
13596
|
}[];
|
|
13412
13597
|
search_column?: string | undefined;
|
|
13413
13598
|
};
|