@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
|
@@ -1460,12 +1460,13 @@ export declare class API {
|
|
|
1460
1460
|
reference?: string | undefined;
|
|
1461
1461
|
posted: boolean;
|
|
1462
1462
|
}[]>;
|
|
1463
|
-
|
|
1463
|
+
createFinancialEntryOld(financial_entry: {
|
|
1464
1464
|
date: string;
|
|
1465
1465
|
journal_id: string;
|
|
1466
1466
|
currency: string;
|
|
1467
1467
|
currency_exchange_rate?: number | undefined;
|
|
1468
1468
|
reference?: string | undefined;
|
|
1469
|
+
number?: string | undefined;
|
|
1469
1470
|
items: {
|
|
1470
1471
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1471
1472
|
account_number: string;
|
|
@@ -1473,7 +1474,6 @@ export declare class API {
|
|
|
1473
1474
|
amount: number;
|
|
1474
1475
|
description?: string | undefined;
|
|
1475
1476
|
}[];
|
|
1476
|
-
number?: string | undefined;
|
|
1477
1477
|
pdf?: string | undefined;
|
|
1478
1478
|
}, params: {
|
|
1479
1479
|
financial_counterpart_account?: string | undefined;
|
|
@@ -1483,6 +1483,8 @@ export declare class API {
|
|
|
1483
1483
|
currency: string;
|
|
1484
1484
|
currency_exchange_rate?: number | undefined;
|
|
1485
1485
|
reference?: string | undefined;
|
|
1486
|
+
id: string;
|
|
1487
|
+
number: string;
|
|
1486
1488
|
items: {
|
|
1487
1489
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1488
1490
|
account_number: string;
|
|
@@ -1491,9 +1493,39 @@ export declare class API {
|
|
|
1491
1493
|
description?: string | undefined;
|
|
1492
1494
|
counterpart_account: string;
|
|
1493
1495
|
}[];
|
|
1496
|
+
}>;
|
|
1497
|
+
createFinancialEntry(financial_entry: {
|
|
1498
|
+
date: string;
|
|
1499
|
+
journal_id: string;
|
|
1500
|
+
currency: string;
|
|
1501
|
+
currency_exchange_rate?: number | undefined;
|
|
1502
|
+
reference?: string | undefined;
|
|
1503
|
+
number?: string | undefined;
|
|
1504
|
+
items: {
|
|
1505
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1506
|
+
account: string;
|
|
1507
|
+
amount: number;
|
|
1508
|
+
description?: string | undefined;
|
|
1509
|
+
}[];
|
|
1510
|
+
pdf?: string | undefined;
|
|
1511
|
+
}, params: {
|
|
1512
|
+
financial_counterpart_account?: string | undefined;
|
|
1513
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1514
|
+
date: string;
|
|
1515
|
+
journal_id: string;
|
|
1516
|
+
currency: string;
|
|
1517
|
+
currency_exchange_rate?: number | undefined;
|
|
1518
|
+
reference?: string | undefined;
|
|
1494
1519
|
id: string;
|
|
1495
1520
|
number: string;
|
|
1496
|
-
|
|
1521
|
+
items: {
|
|
1522
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1523
|
+
account: string;
|
|
1524
|
+
amount: number;
|
|
1525
|
+
description?: string | undefined;
|
|
1526
|
+
counterpart_account: string;
|
|
1527
|
+
}[];
|
|
1528
|
+
}[]>;
|
|
1497
1529
|
createJournalEntry(journal_entry: {
|
|
1498
1530
|
reference?: string | undefined;
|
|
1499
1531
|
due_date?: string | undefined;
|
|
@@ -1551,6 +1583,7 @@ export declare class API {
|
|
|
1551
1583
|
invoicing: import("../types/api").ApiFor<{
|
|
1552
1584
|
getInvoices(params: {
|
|
1553
1585
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
1586
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1554
1587
|
date_from?: string | undefined;
|
|
1555
1588
|
date_to?: string | undefined;
|
|
1556
1589
|
page?: number | undefined;
|
|
@@ -1569,12 +1602,13 @@ export declare class API {
|
|
|
1569
1602
|
untaxed_amount: number;
|
|
1570
1603
|
total: number;
|
|
1571
1604
|
lines?: {
|
|
1572
|
-
description
|
|
1605
|
+
description?: string | undefined;
|
|
1573
1606
|
unit_price: number;
|
|
1574
1607
|
quantity: number;
|
|
1608
|
+
discount_amount?: number | undefined;
|
|
1575
1609
|
tax_amount: number;
|
|
1576
|
-
total: number;
|
|
1577
1610
|
untaxed_amount: number;
|
|
1611
|
+
total: number;
|
|
1578
1612
|
tax_rate?: number | undefined;
|
|
1579
1613
|
account_number?: string | undefined;
|
|
1580
1614
|
tax_id?: string | undefined;
|
|
@@ -1611,12 +1645,13 @@ export declare class API {
|
|
|
1611
1645
|
untaxed_amount: number;
|
|
1612
1646
|
total: number;
|
|
1613
1647
|
lines?: {
|
|
1614
|
-
description
|
|
1648
|
+
description?: string | undefined;
|
|
1615
1649
|
unit_price: number;
|
|
1616
1650
|
quantity: number;
|
|
1651
|
+
discount_amount?: number | undefined;
|
|
1617
1652
|
tax_amount: number;
|
|
1618
|
-
total: number;
|
|
1619
1653
|
untaxed_amount: number;
|
|
1654
|
+
total: number;
|
|
1620
1655
|
tax_rate?: number | undefined;
|
|
1621
1656
|
account_number?: string | undefined;
|
|
1622
1657
|
tax_id?: string | undefined;
|
|
@@ -1646,12 +1681,13 @@ export declare class API {
|
|
|
1646
1681
|
untaxed_amount: number;
|
|
1647
1682
|
total: number;
|
|
1648
1683
|
lines?: {
|
|
1649
|
-
description
|
|
1684
|
+
description?: string | undefined;
|
|
1650
1685
|
unit_price: number;
|
|
1651
1686
|
quantity: number;
|
|
1687
|
+
discount_amount?: number | undefined;
|
|
1652
1688
|
tax_amount: number;
|
|
1653
|
-
total: number;
|
|
1654
1689
|
untaxed_amount: number;
|
|
1690
|
+
total: number;
|
|
1655
1691
|
tax_rate?: number | undefined;
|
|
1656
1692
|
account_number?: string | undefined;
|
|
1657
1693
|
tax_id?: string | undefined;
|
|
@@ -1685,12 +1721,13 @@ export declare class API {
|
|
|
1685
1721
|
untaxed_amount: number;
|
|
1686
1722
|
total: number;
|
|
1687
1723
|
lines?: {
|
|
1688
|
-
description
|
|
1724
|
+
description?: string | undefined;
|
|
1689
1725
|
unit_price: number;
|
|
1690
1726
|
quantity: number;
|
|
1727
|
+
discount_amount?: number | undefined;
|
|
1691
1728
|
tax_amount: number;
|
|
1692
|
-
total: number;
|
|
1693
1729
|
untaxed_amount: number;
|
|
1730
|
+
total: number;
|
|
1694
1731
|
tax_rate?: number | undefined;
|
|
1695
1732
|
account_number?: string | undefined;
|
|
1696
1733
|
tax_id?: string | undefined;
|
|
@@ -2298,7 +2335,7 @@ export declare class API {
|
|
|
2298
2335
|
last_updated_on?: string | undefined;
|
|
2299
2336
|
confirmed_on?: string | undefined;
|
|
2300
2337
|
cancelled_on?: string | undefined;
|
|
2301
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2338
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2302
2339
|
discount_amount: number;
|
|
2303
2340
|
untaxed_amount_without_fees: number;
|
|
2304
2341
|
tax_amount_without_fees: number;
|
|
@@ -2445,7 +2482,7 @@ export declare class API {
|
|
|
2445
2482
|
last_updated_on?: string | undefined;
|
|
2446
2483
|
confirmed_on?: string | undefined;
|
|
2447
2484
|
cancelled_on?: string | undefined;
|
|
2448
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2485
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2449
2486
|
discount_amount: number;
|
|
2450
2487
|
untaxed_amount_without_fees: number;
|
|
2451
2488
|
tax_amount_without_fees: number;
|
|
@@ -2551,7 +2588,7 @@ export declare class API {
|
|
|
2551
2588
|
last_updated_on?: string | undefined;
|
|
2552
2589
|
confirmed_on?: string | undefined;
|
|
2553
2590
|
cancelled_on?: string | undefined;
|
|
2554
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2591
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2555
2592
|
discount_amount: number;
|
|
2556
2593
|
untaxed_amount_without_fees: number;
|
|
2557
2594
|
tax_amount_without_fees: number;
|
|
@@ -2662,7 +2699,7 @@ export declare class API {
|
|
|
2662
2699
|
name: string;
|
|
2663
2700
|
title: string;
|
|
2664
2701
|
type: string;
|
|
2665
|
-
|
|
2702
|
+
optional?: boolean | undefined;
|
|
2666
2703
|
}[];
|
|
2667
2704
|
search_column?: string | undefined;
|
|
2668
2705
|
};
|
|
@@ -4151,12 +4188,13 @@ export declare class API {
|
|
|
4151
4188
|
reference?: string | undefined;
|
|
4152
4189
|
posted: boolean;
|
|
4153
4190
|
}[]>;
|
|
4154
|
-
|
|
4191
|
+
createFinancialEntryOld(financial_entry: {
|
|
4155
4192
|
date: string;
|
|
4156
4193
|
journal_id: string;
|
|
4157
4194
|
currency: string;
|
|
4158
4195
|
currency_exchange_rate?: number | undefined;
|
|
4159
4196
|
reference?: string | undefined;
|
|
4197
|
+
number?: string | undefined;
|
|
4160
4198
|
items: {
|
|
4161
4199
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4162
4200
|
account_number: string;
|
|
@@ -4164,7 +4202,6 @@ export declare class API {
|
|
|
4164
4202
|
amount: number;
|
|
4165
4203
|
description?: string | undefined;
|
|
4166
4204
|
}[];
|
|
4167
|
-
number?: string | undefined;
|
|
4168
4205
|
pdf?: string | undefined;
|
|
4169
4206
|
}, params: {
|
|
4170
4207
|
financial_counterpart_account?: string | undefined;
|
|
@@ -4174,6 +4211,8 @@ export declare class API {
|
|
|
4174
4211
|
currency: string;
|
|
4175
4212
|
currency_exchange_rate?: number | undefined;
|
|
4176
4213
|
reference?: string | undefined;
|
|
4214
|
+
id: string;
|
|
4215
|
+
number: string;
|
|
4177
4216
|
items: {
|
|
4178
4217
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4179
4218
|
account_number: string;
|
|
@@ -4182,9 +4221,39 @@ export declare class API {
|
|
|
4182
4221
|
description?: string | undefined;
|
|
4183
4222
|
counterpart_account: string;
|
|
4184
4223
|
}[];
|
|
4224
|
+
}>;
|
|
4225
|
+
createFinancialEntry(financial_entry: {
|
|
4226
|
+
date: string;
|
|
4227
|
+
journal_id: string;
|
|
4228
|
+
currency: string;
|
|
4229
|
+
currency_exchange_rate?: number | undefined;
|
|
4230
|
+
reference?: string | undefined;
|
|
4231
|
+
number?: string | undefined;
|
|
4232
|
+
items: {
|
|
4233
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4234
|
+
account: string;
|
|
4235
|
+
amount: number;
|
|
4236
|
+
description?: string | undefined;
|
|
4237
|
+
}[];
|
|
4238
|
+
pdf?: string | undefined;
|
|
4239
|
+
}, params: {
|
|
4240
|
+
financial_counterpart_account?: string | undefined;
|
|
4241
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4242
|
+
date: string;
|
|
4243
|
+
journal_id: string;
|
|
4244
|
+
currency: string;
|
|
4245
|
+
currency_exchange_rate?: number | undefined;
|
|
4246
|
+
reference?: string | undefined;
|
|
4185
4247
|
id: string;
|
|
4186
4248
|
number: string;
|
|
4187
|
-
|
|
4249
|
+
items: {
|
|
4250
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4251
|
+
account: string;
|
|
4252
|
+
amount: number;
|
|
4253
|
+
description?: string | undefined;
|
|
4254
|
+
counterpart_account: string;
|
|
4255
|
+
}[];
|
|
4256
|
+
}[]>;
|
|
4188
4257
|
createJournalEntry(journal_entry: {
|
|
4189
4258
|
reference?: string | undefined;
|
|
4190
4259
|
due_date?: string | undefined;
|
|
@@ -4242,6 +4311,7 @@ export declare class API {
|
|
|
4242
4311
|
invoicing: import("../types/api").ApiFor<{
|
|
4243
4312
|
getInvoices(params: {
|
|
4244
4313
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
4314
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
4245
4315
|
date_from?: string | undefined;
|
|
4246
4316
|
date_to?: string | undefined;
|
|
4247
4317
|
page?: number | undefined;
|
|
@@ -4260,12 +4330,13 @@ export declare class API {
|
|
|
4260
4330
|
untaxed_amount: number;
|
|
4261
4331
|
total: number;
|
|
4262
4332
|
lines?: {
|
|
4263
|
-
description
|
|
4333
|
+
description?: string | undefined;
|
|
4264
4334
|
unit_price: number;
|
|
4265
4335
|
quantity: number;
|
|
4336
|
+
discount_amount?: number | undefined;
|
|
4266
4337
|
tax_amount: number;
|
|
4267
|
-
total: number;
|
|
4268
4338
|
untaxed_amount: number;
|
|
4339
|
+
total: number;
|
|
4269
4340
|
tax_rate?: number | undefined;
|
|
4270
4341
|
account_number?: string | undefined;
|
|
4271
4342
|
tax_id?: string | undefined;
|
|
@@ -4302,12 +4373,13 @@ export declare class API {
|
|
|
4302
4373
|
untaxed_amount: number;
|
|
4303
4374
|
total: number;
|
|
4304
4375
|
lines?: {
|
|
4305
|
-
description
|
|
4376
|
+
description?: string | undefined;
|
|
4306
4377
|
unit_price: number;
|
|
4307
4378
|
quantity: number;
|
|
4379
|
+
discount_amount?: number | undefined;
|
|
4308
4380
|
tax_amount: number;
|
|
4309
|
-
total: number;
|
|
4310
4381
|
untaxed_amount: number;
|
|
4382
|
+
total: number;
|
|
4311
4383
|
tax_rate?: number | undefined;
|
|
4312
4384
|
account_number?: string | undefined;
|
|
4313
4385
|
tax_id?: string | undefined;
|
|
@@ -4337,12 +4409,13 @@ export declare class API {
|
|
|
4337
4409
|
untaxed_amount: number;
|
|
4338
4410
|
total: number;
|
|
4339
4411
|
lines?: {
|
|
4340
|
-
description
|
|
4412
|
+
description?: string | undefined;
|
|
4341
4413
|
unit_price: number;
|
|
4342
4414
|
quantity: number;
|
|
4415
|
+
discount_amount?: number | undefined;
|
|
4343
4416
|
tax_amount: number;
|
|
4344
|
-
total: number;
|
|
4345
4417
|
untaxed_amount: number;
|
|
4418
|
+
total: number;
|
|
4346
4419
|
tax_rate?: number | undefined;
|
|
4347
4420
|
account_number?: string | undefined;
|
|
4348
4421
|
tax_id?: string | undefined;
|
|
@@ -4376,12 +4449,13 @@ export declare class API {
|
|
|
4376
4449
|
untaxed_amount: number;
|
|
4377
4450
|
total: number;
|
|
4378
4451
|
lines?: {
|
|
4379
|
-
description
|
|
4452
|
+
description?: string | undefined;
|
|
4380
4453
|
unit_price: number;
|
|
4381
4454
|
quantity: number;
|
|
4455
|
+
discount_amount?: number | undefined;
|
|
4382
4456
|
tax_amount: number;
|
|
4383
|
-
total: number;
|
|
4384
4457
|
untaxed_amount: number;
|
|
4458
|
+
total: number;
|
|
4385
4459
|
tax_rate?: number | undefined;
|
|
4386
4460
|
account_number?: string | undefined;
|
|
4387
4461
|
tax_id?: string | undefined;
|
|
@@ -4989,7 +5063,7 @@ export declare class API {
|
|
|
4989
5063
|
last_updated_on?: string | undefined;
|
|
4990
5064
|
confirmed_on?: string | undefined;
|
|
4991
5065
|
cancelled_on?: string | undefined;
|
|
4992
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5066
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
4993
5067
|
discount_amount: number;
|
|
4994
5068
|
untaxed_amount_without_fees: number;
|
|
4995
5069
|
tax_amount_without_fees: number;
|
|
@@ -5136,7 +5210,7 @@ export declare class API {
|
|
|
5136
5210
|
last_updated_on?: string | undefined;
|
|
5137
5211
|
confirmed_on?: string | undefined;
|
|
5138
5212
|
cancelled_on?: string | undefined;
|
|
5139
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5213
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
5140
5214
|
discount_amount: number;
|
|
5141
5215
|
untaxed_amount_without_fees: number;
|
|
5142
5216
|
tax_amount_without_fees: number;
|
|
@@ -5242,7 +5316,7 @@ export declare class API {
|
|
|
5242
5316
|
last_updated_on?: string | undefined;
|
|
5243
5317
|
confirmed_on?: string | undefined;
|
|
5244
5318
|
cancelled_on?: string | undefined;
|
|
5245
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5319
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
5246
5320
|
discount_amount: number;
|
|
5247
5321
|
untaxed_amount_without_fees: number;
|
|
5248
5322
|
tax_amount_without_fees: number;
|
|
@@ -5353,7 +5427,7 @@ export declare class API {
|
|
|
5353
5427
|
name: string;
|
|
5354
5428
|
title: string;
|
|
5355
5429
|
type: string;
|
|
5356
|
-
|
|
5430
|
+
optional?: boolean | undefined;
|
|
5357
5431
|
}[];
|
|
5358
5432
|
search_column?: string | undefined;
|
|
5359
5433
|
};
|
|
@@ -6838,12 +6912,13 @@ export declare class API {
|
|
|
6838
6912
|
reference?: string | undefined;
|
|
6839
6913
|
posted: boolean;
|
|
6840
6914
|
}[]>;
|
|
6841
|
-
|
|
6915
|
+
createFinancialEntryOld(financial_entry: {
|
|
6842
6916
|
date: string;
|
|
6843
6917
|
journal_id: string;
|
|
6844
6918
|
currency: string;
|
|
6845
6919
|
currency_exchange_rate?: number | undefined;
|
|
6846
6920
|
reference?: string | undefined;
|
|
6921
|
+
number?: string | undefined;
|
|
6847
6922
|
items: {
|
|
6848
6923
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6849
6924
|
account_number: string;
|
|
@@ -6851,7 +6926,6 @@ export declare class API {
|
|
|
6851
6926
|
amount: number;
|
|
6852
6927
|
description?: string | undefined;
|
|
6853
6928
|
}[];
|
|
6854
|
-
number?: string | undefined;
|
|
6855
6929
|
pdf?: string | undefined;
|
|
6856
6930
|
}, params: {
|
|
6857
6931
|
financial_counterpart_account?: string | undefined;
|
|
@@ -6861,6 +6935,8 @@ export declare class API {
|
|
|
6861
6935
|
currency: string;
|
|
6862
6936
|
currency_exchange_rate?: number | undefined;
|
|
6863
6937
|
reference?: string | undefined;
|
|
6938
|
+
id: string;
|
|
6939
|
+
number: string;
|
|
6864
6940
|
items: {
|
|
6865
6941
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6866
6942
|
account_number: string;
|
|
@@ -6869,9 +6945,39 @@ export declare class API {
|
|
|
6869
6945
|
description?: string | undefined;
|
|
6870
6946
|
counterpart_account: string;
|
|
6871
6947
|
}[];
|
|
6948
|
+
}>;
|
|
6949
|
+
createFinancialEntry(financial_entry: {
|
|
6950
|
+
date: string;
|
|
6951
|
+
journal_id: string;
|
|
6952
|
+
currency: string;
|
|
6953
|
+
currency_exchange_rate?: number | undefined;
|
|
6954
|
+
reference?: string | undefined;
|
|
6955
|
+
number?: string | undefined;
|
|
6956
|
+
items: {
|
|
6957
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6958
|
+
account: string;
|
|
6959
|
+
amount: number;
|
|
6960
|
+
description?: string | undefined;
|
|
6961
|
+
}[];
|
|
6962
|
+
pdf?: string | undefined;
|
|
6963
|
+
}, params: {
|
|
6964
|
+
financial_counterpart_account?: string | undefined;
|
|
6965
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6966
|
+
date: string;
|
|
6967
|
+
journal_id: string;
|
|
6968
|
+
currency: string;
|
|
6969
|
+
currency_exchange_rate?: number | undefined;
|
|
6970
|
+
reference?: string | undefined;
|
|
6872
6971
|
id: string;
|
|
6873
6972
|
number: string;
|
|
6874
|
-
|
|
6973
|
+
items: {
|
|
6974
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6975
|
+
account: string;
|
|
6976
|
+
amount: number;
|
|
6977
|
+
description?: string | undefined;
|
|
6978
|
+
counterpart_account: string;
|
|
6979
|
+
}[];
|
|
6980
|
+
}[]>;
|
|
6875
6981
|
createJournalEntry(journal_entry: {
|
|
6876
6982
|
reference?: string | undefined;
|
|
6877
6983
|
due_date?: string | undefined;
|
|
@@ -6929,6 +7035,7 @@ export declare class API {
|
|
|
6929
7035
|
invoicing: import("../types/api").ApiFor<{
|
|
6930
7036
|
getInvoices(params: {
|
|
6931
7037
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
7038
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
6932
7039
|
date_from?: string | undefined;
|
|
6933
7040
|
date_to?: string | undefined;
|
|
6934
7041
|
page?: number | undefined;
|
|
@@ -6947,12 +7054,13 @@ export declare class API {
|
|
|
6947
7054
|
untaxed_amount: number;
|
|
6948
7055
|
total: number;
|
|
6949
7056
|
lines?: {
|
|
6950
|
-
description
|
|
7057
|
+
description?: string | undefined;
|
|
6951
7058
|
unit_price: number;
|
|
6952
7059
|
quantity: number;
|
|
7060
|
+
discount_amount?: number | undefined;
|
|
6953
7061
|
tax_amount: number;
|
|
6954
|
-
total: number;
|
|
6955
7062
|
untaxed_amount: number;
|
|
7063
|
+
total: number;
|
|
6956
7064
|
tax_rate?: number | undefined;
|
|
6957
7065
|
account_number?: string | undefined;
|
|
6958
7066
|
tax_id?: string | undefined;
|
|
@@ -6989,12 +7097,13 @@ export declare class API {
|
|
|
6989
7097
|
untaxed_amount: number;
|
|
6990
7098
|
total: number;
|
|
6991
7099
|
lines?: {
|
|
6992
|
-
description
|
|
7100
|
+
description?: string | undefined;
|
|
6993
7101
|
unit_price: number;
|
|
6994
7102
|
quantity: number;
|
|
7103
|
+
discount_amount?: number | undefined;
|
|
6995
7104
|
tax_amount: number;
|
|
6996
|
-
total: number;
|
|
6997
7105
|
untaxed_amount: number;
|
|
7106
|
+
total: number;
|
|
6998
7107
|
tax_rate?: number | undefined;
|
|
6999
7108
|
account_number?: string | undefined;
|
|
7000
7109
|
tax_id?: string | undefined;
|
|
@@ -7024,12 +7133,13 @@ export declare class API {
|
|
|
7024
7133
|
untaxed_amount: number;
|
|
7025
7134
|
total: number;
|
|
7026
7135
|
lines?: {
|
|
7027
|
-
description
|
|
7136
|
+
description?: string | undefined;
|
|
7028
7137
|
unit_price: number;
|
|
7029
7138
|
quantity: number;
|
|
7139
|
+
discount_amount?: number | undefined;
|
|
7030
7140
|
tax_amount: number;
|
|
7031
|
-
total: number;
|
|
7032
7141
|
untaxed_amount: number;
|
|
7142
|
+
total: number;
|
|
7033
7143
|
tax_rate?: number | undefined;
|
|
7034
7144
|
account_number?: string | undefined;
|
|
7035
7145
|
tax_id?: string | undefined;
|
|
@@ -7063,12 +7173,13 @@ export declare class API {
|
|
|
7063
7173
|
untaxed_amount: number;
|
|
7064
7174
|
total: number;
|
|
7065
7175
|
lines?: {
|
|
7066
|
-
description
|
|
7176
|
+
description?: string | undefined;
|
|
7067
7177
|
unit_price: number;
|
|
7068
7178
|
quantity: number;
|
|
7179
|
+
discount_amount?: number | undefined;
|
|
7069
7180
|
tax_amount: number;
|
|
7070
|
-
total: number;
|
|
7071
7181
|
untaxed_amount: number;
|
|
7182
|
+
total: number;
|
|
7072
7183
|
tax_rate?: number | undefined;
|
|
7073
7184
|
account_number?: string | undefined;
|
|
7074
7185
|
tax_id?: string | undefined;
|
|
@@ -7676,7 +7787,7 @@ export declare class API {
|
|
|
7676
7787
|
last_updated_on?: string | undefined;
|
|
7677
7788
|
confirmed_on?: string | undefined;
|
|
7678
7789
|
cancelled_on?: string | undefined;
|
|
7679
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
7790
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7680
7791
|
discount_amount: number;
|
|
7681
7792
|
untaxed_amount_without_fees: number;
|
|
7682
7793
|
tax_amount_without_fees: number;
|
|
@@ -7823,7 +7934,7 @@ export declare class API {
|
|
|
7823
7934
|
last_updated_on?: string | undefined;
|
|
7824
7935
|
confirmed_on?: string | undefined;
|
|
7825
7936
|
cancelled_on?: string | undefined;
|
|
7826
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
7937
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7827
7938
|
discount_amount: number;
|
|
7828
7939
|
untaxed_amount_without_fees: number;
|
|
7829
7940
|
tax_amount_without_fees: number;
|
|
@@ -7929,7 +8040,7 @@ export declare class API {
|
|
|
7929
8040
|
last_updated_on?: string | undefined;
|
|
7930
8041
|
confirmed_on?: string | undefined;
|
|
7931
8042
|
cancelled_on?: string | undefined;
|
|
7932
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
8043
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7933
8044
|
discount_amount: number;
|
|
7934
8045
|
untaxed_amount_without_fees: number;
|
|
7935
8046
|
tax_amount_without_fees: number;
|
|
@@ -8040,7 +8151,7 @@ export declare class API {
|
|
|
8040
8151
|
name: string;
|
|
8041
8152
|
title: string;
|
|
8042
8153
|
type: string;
|
|
8043
|
-
|
|
8154
|
+
optional?: boolean | undefined;
|
|
8044
8155
|
}[];
|
|
8045
8156
|
search_column?: string | undefined;
|
|
8046
8157
|
};
|
|
@@ -9525,12 +9636,13 @@ export declare class API {
|
|
|
9525
9636
|
reference?: string | undefined;
|
|
9526
9637
|
posted: boolean;
|
|
9527
9638
|
}[]>;
|
|
9528
|
-
|
|
9639
|
+
createFinancialEntryOld(financial_entry: {
|
|
9529
9640
|
date: string;
|
|
9530
9641
|
journal_id: string;
|
|
9531
9642
|
currency: string;
|
|
9532
9643
|
currency_exchange_rate?: number | undefined;
|
|
9533
9644
|
reference?: string | undefined;
|
|
9645
|
+
number?: string | undefined;
|
|
9534
9646
|
items: {
|
|
9535
9647
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9536
9648
|
account_number: string;
|
|
@@ -9538,7 +9650,6 @@ export declare class API {
|
|
|
9538
9650
|
amount: number;
|
|
9539
9651
|
description?: string | undefined;
|
|
9540
9652
|
}[];
|
|
9541
|
-
number?: string | undefined;
|
|
9542
9653
|
pdf?: string | undefined;
|
|
9543
9654
|
}, params: {
|
|
9544
9655
|
financial_counterpart_account?: string | undefined;
|
|
@@ -9548,6 +9659,8 @@ export declare class API {
|
|
|
9548
9659
|
currency: string;
|
|
9549
9660
|
currency_exchange_rate?: number | undefined;
|
|
9550
9661
|
reference?: string | undefined;
|
|
9662
|
+
id: string;
|
|
9663
|
+
number: string;
|
|
9551
9664
|
items: {
|
|
9552
9665
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9553
9666
|
account_number: string;
|
|
@@ -9556,9 +9669,39 @@ export declare class API {
|
|
|
9556
9669
|
description?: string | undefined;
|
|
9557
9670
|
counterpart_account: string;
|
|
9558
9671
|
}[];
|
|
9672
|
+
}>;
|
|
9673
|
+
createFinancialEntry(financial_entry: {
|
|
9674
|
+
date: string;
|
|
9675
|
+
journal_id: string;
|
|
9676
|
+
currency: string;
|
|
9677
|
+
currency_exchange_rate?: number | undefined;
|
|
9678
|
+
reference?: string | undefined;
|
|
9679
|
+
number?: string | undefined;
|
|
9680
|
+
items: {
|
|
9681
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9682
|
+
account: string;
|
|
9683
|
+
amount: number;
|
|
9684
|
+
description?: string | undefined;
|
|
9685
|
+
}[];
|
|
9686
|
+
pdf?: string | undefined;
|
|
9687
|
+
}, params: {
|
|
9688
|
+
financial_counterpart_account?: string | undefined;
|
|
9689
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9690
|
+
date: string;
|
|
9691
|
+
journal_id: string;
|
|
9692
|
+
currency: string;
|
|
9693
|
+
currency_exchange_rate?: number | undefined;
|
|
9694
|
+
reference?: string | undefined;
|
|
9559
9695
|
id: string;
|
|
9560
9696
|
number: string;
|
|
9561
|
-
|
|
9697
|
+
items: {
|
|
9698
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9699
|
+
account: string;
|
|
9700
|
+
amount: number;
|
|
9701
|
+
description?: string | undefined;
|
|
9702
|
+
counterpart_account: string;
|
|
9703
|
+
}[];
|
|
9704
|
+
}[]>;
|
|
9562
9705
|
createJournalEntry(journal_entry: {
|
|
9563
9706
|
reference?: string | undefined;
|
|
9564
9707
|
due_date?: string | undefined;
|
|
@@ -9616,6 +9759,7 @@ export declare class API {
|
|
|
9616
9759
|
invoicing: import("../types/api").ApiFor<{
|
|
9617
9760
|
getInvoices(params: {
|
|
9618
9761
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
9762
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
9619
9763
|
date_from?: string | undefined;
|
|
9620
9764
|
date_to?: string | undefined;
|
|
9621
9765
|
page?: number | undefined;
|
|
@@ -9634,12 +9778,13 @@ export declare class API {
|
|
|
9634
9778
|
untaxed_amount: number;
|
|
9635
9779
|
total: number;
|
|
9636
9780
|
lines?: {
|
|
9637
|
-
description
|
|
9781
|
+
description?: string | undefined;
|
|
9638
9782
|
unit_price: number;
|
|
9639
9783
|
quantity: number;
|
|
9784
|
+
discount_amount?: number | undefined;
|
|
9640
9785
|
tax_amount: number;
|
|
9641
|
-
total: number;
|
|
9642
9786
|
untaxed_amount: number;
|
|
9787
|
+
total: number;
|
|
9643
9788
|
tax_rate?: number | undefined;
|
|
9644
9789
|
account_number?: string | undefined;
|
|
9645
9790
|
tax_id?: string | undefined;
|
|
@@ -9676,12 +9821,13 @@ export declare class API {
|
|
|
9676
9821
|
untaxed_amount: number;
|
|
9677
9822
|
total: number;
|
|
9678
9823
|
lines?: {
|
|
9679
|
-
description
|
|
9824
|
+
description?: string | undefined;
|
|
9680
9825
|
unit_price: number;
|
|
9681
9826
|
quantity: number;
|
|
9827
|
+
discount_amount?: number | undefined;
|
|
9682
9828
|
tax_amount: number;
|
|
9683
|
-
total: number;
|
|
9684
9829
|
untaxed_amount: number;
|
|
9830
|
+
total: number;
|
|
9685
9831
|
tax_rate?: number | undefined;
|
|
9686
9832
|
account_number?: string | undefined;
|
|
9687
9833
|
tax_id?: string | undefined;
|
|
@@ -9711,12 +9857,13 @@ export declare class API {
|
|
|
9711
9857
|
untaxed_amount: number;
|
|
9712
9858
|
total: number;
|
|
9713
9859
|
lines?: {
|
|
9714
|
-
description
|
|
9860
|
+
description?: string | undefined;
|
|
9715
9861
|
unit_price: number;
|
|
9716
9862
|
quantity: number;
|
|
9863
|
+
discount_amount?: number | undefined;
|
|
9717
9864
|
tax_amount: number;
|
|
9718
|
-
total: number;
|
|
9719
9865
|
untaxed_amount: number;
|
|
9866
|
+
total: number;
|
|
9720
9867
|
tax_rate?: number | undefined;
|
|
9721
9868
|
account_number?: string | undefined;
|
|
9722
9869
|
tax_id?: string | undefined;
|
|
@@ -9750,12 +9897,13 @@ export declare class API {
|
|
|
9750
9897
|
untaxed_amount: number;
|
|
9751
9898
|
total: number;
|
|
9752
9899
|
lines?: {
|
|
9753
|
-
description
|
|
9900
|
+
description?: string | undefined;
|
|
9754
9901
|
unit_price: number;
|
|
9755
9902
|
quantity: number;
|
|
9903
|
+
discount_amount?: number | undefined;
|
|
9756
9904
|
tax_amount: number;
|
|
9757
|
-
total: number;
|
|
9758
9905
|
untaxed_amount: number;
|
|
9906
|
+
total: number;
|
|
9759
9907
|
tax_rate?: number | undefined;
|
|
9760
9908
|
account_number?: string | undefined;
|
|
9761
9909
|
tax_id?: string | undefined;
|
|
@@ -10363,7 +10511,7 @@ export declare class API {
|
|
|
10363
10511
|
last_updated_on?: string | undefined;
|
|
10364
10512
|
confirmed_on?: string | undefined;
|
|
10365
10513
|
cancelled_on?: string | undefined;
|
|
10366
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10514
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10367
10515
|
discount_amount: number;
|
|
10368
10516
|
untaxed_amount_without_fees: number;
|
|
10369
10517
|
tax_amount_without_fees: number;
|
|
@@ -10510,7 +10658,7 @@ export declare class API {
|
|
|
10510
10658
|
last_updated_on?: string | undefined;
|
|
10511
10659
|
confirmed_on?: string | undefined;
|
|
10512
10660
|
cancelled_on?: string | undefined;
|
|
10513
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10661
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10514
10662
|
discount_amount: number;
|
|
10515
10663
|
untaxed_amount_without_fees: number;
|
|
10516
10664
|
tax_amount_without_fees: number;
|
|
@@ -10616,7 +10764,7 @@ export declare class API {
|
|
|
10616
10764
|
last_updated_on?: string | undefined;
|
|
10617
10765
|
confirmed_on?: string | undefined;
|
|
10618
10766
|
cancelled_on?: string | undefined;
|
|
10619
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10767
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10620
10768
|
discount_amount: number;
|
|
10621
10769
|
untaxed_amount_without_fees: number;
|
|
10622
10770
|
tax_amount_without_fees: number;
|
|
@@ -10727,7 +10875,7 @@ export declare class API {
|
|
|
10727
10875
|
name: string;
|
|
10728
10876
|
title: string;
|
|
10729
10877
|
type: string;
|
|
10730
|
-
|
|
10878
|
+
optional?: boolean | undefined;
|
|
10731
10879
|
}[];
|
|
10732
10880
|
search_column?: string | undefined;
|
|
10733
10881
|
};
|
|
@@ -12216,12 +12364,13 @@ export declare class API {
|
|
|
12216
12364
|
reference?: string | undefined;
|
|
12217
12365
|
posted: boolean;
|
|
12218
12366
|
}[]>;
|
|
12219
|
-
|
|
12367
|
+
createFinancialEntryOld(financial_entry: {
|
|
12220
12368
|
date: string;
|
|
12221
12369
|
journal_id: string;
|
|
12222
12370
|
currency: string;
|
|
12223
12371
|
currency_exchange_rate?: number | undefined;
|
|
12224
12372
|
reference?: string | undefined;
|
|
12373
|
+
number?: string | undefined;
|
|
12225
12374
|
items: {
|
|
12226
12375
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12227
12376
|
account_number: string;
|
|
@@ -12229,7 +12378,6 @@ export declare class API {
|
|
|
12229
12378
|
amount: number;
|
|
12230
12379
|
description?: string | undefined;
|
|
12231
12380
|
}[];
|
|
12232
|
-
number?: string | undefined;
|
|
12233
12381
|
pdf?: string | undefined;
|
|
12234
12382
|
}, params: {
|
|
12235
12383
|
financial_counterpart_account?: string | undefined;
|
|
@@ -12239,6 +12387,8 @@ export declare class API {
|
|
|
12239
12387
|
currency: string;
|
|
12240
12388
|
currency_exchange_rate?: number | undefined;
|
|
12241
12389
|
reference?: string | undefined;
|
|
12390
|
+
id: string;
|
|
12391
|
+
number: string;
|
|
12242
12392
|
items: {
|
|
12243
12393
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12244
12394
|
account_number: string;
|
|
@@ -12247,9 +12397,39 @@ export declare class API {
|
|
|
12247
12397
|
description?: string | undefined;
|
|
12248
12398
|
counterpart_account: string;
|
|
12249
12399
|
}[];
|
|
12400
|
+
}>;
|
|
12401
|
+
createFinancialEntry(financial_entry: {
|
|
12402
|
+
date: string;
|
|
12403
|
+
journal_id: string;
|
|
12404
|
+
currency: string;
|
|
12405
|
+
currency_exchange_rate?: number | undefined;
|
|
12406
|
+
reference?: string | undefined;
|
|
12407
|
+
number?: string | undefined;
|
|
12408
|
+
items: {
|
|
12409
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12410
|
+
account: string;
|
|
12411
|
+
amount: number;
|
|
12412
|
+
description?: string | undefined;
|
|
12413
|
+
}[];
|
|
12414
|
+
pdf?: string | undefined;
|
|
12415
|
+
}, params: {
|
|
12416
|
+
financial_counterpart_account?: string | undefined;
|
|
12417
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12418
|
+
date: string;
|
|
12419
|
+
journal_id: string;
|
|
12420
|
+
currency: string;
|
|
12421
|
+
currency_exchange_rate?: number | undefined;
|
|
12422
|
+
reference?: string | undefined;
|
|
12250
12423
|
id: string;
|
|
12251
12424
|
number: string;
|
|
12252
|
-
|
|
12425
|
+
items: {
|
|
12426
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12427
|
+
account: string;
|
|
12428
|
+
amount: number;
|
|
12429
|
+
description?: string | undefined;
|
|
12430
|
+
counterpart_account: string;
|
|
12431
|
+
}[];
|
|
12432
|
+
}[]>;
|
|
12253
12433
|
createJournalEntry(journal_entry: {
|
|
12254
12434
|
reference?: string | undefined;
|
|
12255
12435
|
due_date?: string | undefined;
|
|
@@ -12307,6 +12487,7 @@ export declare class API {
|
|
|
12307
12487
|
invoicing: import("../types/api").ApiFor<{
|
|
12308
12488
|
getInvoices(params: {
|
|
12309
12489
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
12490
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
12310
12491
|
date_from?: string | undefined;
|
|
12311
12492
|
date_to?: string | undefined;
|
|
12312
12493
|
page?: number | undefined;
|
|
@@ -12325,12 +12506,13 @@ export declare class API {
|
|
|
12325
12506
|
untaxed_amount: number;
|
|
12326
12507
|
total: number;
|
|
12327
12508
|
lines?: {
|
|
12328
|
-
description
|
|
12509
|
+
description?: string | undefined;
|
|
12329
12510
|
unit_price: number;
|
|
12330
12511
|
quantity: number;
|
|
12512
|
+
discount_amount?: number | undefined;
|
|
12331
12513
|
tax_amount: number;
|
|
12332
|
-
total: number;
|
|
12333
12514
|
untaxed_amount: number;
|
|
12515
|
+
total: number;
|
|
12334
12516
|
tax_rate?: number | undefined;
|
|
12335
12517
|
account_number?: string | undefined;
|
|
12336
12518
|
tax_id?: string | undefined;
|
|
@@ -12367,12 +12549,13 @@ export declare class API {
|
|
|
12367
12549
|
untaxed_amount: number;
|
|
12368
12550
|
total: number;
|
|
12369
12551
|
lines?: {
|
|
12370
|
-
description
|
|
12552
|
+
description?: string | undefined;
|
|
12371
12553
|
unit_price: number;
|
|
12372
12554
|
quantity: number;
|
|
12555
|
+
discount_amount?: number | undefined;
|
|
12373
12556
|
tax_amount: number;
|
|
12374
|
-
total: number;
|
|
12375
12557
|
untaxed_amount: number;
|
|
12558
|
+
total: number;
|
|
12376
12559
|
tax_rate?: number | undefined;
|
|
12377
12560
|
account_number?: string | undefined;
|
|
12378
12561
|
tax_id?: string | undefined;
|
|
@@ -12402,12 +12585,13 @@ export declare class API {
|
|
|
12402
12585
|
untaxed_amount: number;
|
|
12403
12586
|
total: number;
|
|
12404
12587
|
lines?: {
|
|
12405
|
-
description
|
|
12588
|
+
description?: string | undefined;
|
|
12406
12589
|
unit_price: number;
|
|
12407
12590
|
quantity: number;
|
|
12591
|
+
discount_amount?: number | undefined;
|
|
12408
12592
|
tax_amount: number;
|
|
12409
|
-
total: number;
|
|
12410
12593
|
untaxed_amount: number;
|
|
12594
|
+
total: number;
|
|
12411
12595
|
tax_rate?: number | undefined;
|
|
12412
12596
|
account_number?: string | undefined;
|
|
12413
12597
|
tax_id?: string | undefined;
|
|
@@ -12441,12 +12625,13 @@ export declare class API {
|
|
|
12441
12625
|
untaxed_amount: number;
|
|
12442
12626
|
total: number;
|
|
12443
12627
|
lines?: {
|
|
12444
|
-
description
|
|
12628
|
+
description?: string | undefined;
|
|
12445
12629
|
unit_price: number;
|
|
12446
12630
|
quantity: number;
|
|
12631
|
+
discount_amount?: number | undefined;
|
|
12447
12632
|
tax_amount: number;
|
|
12448
|
-
total: number;
|
|
12449
12633
|
untaxed_amount: number;
|
|
12634
|
+
total: number;
|
|
12450
12635
|
tax_rate?: number | undefined;
|
|
12451
12636
|
account_number?: string | undefined;
|
|
12452
12637
|
tax_id?: string | undefined;
|
|
@@ -13054,7 +13239,7 @@ export declare class API {
|
|
|
13054
13239
|
last_updated_on?: string | undefined;
|
|
13055
13240
|
confirmed_on?: string | undefined;
|
|
13056
13241
|
cancelled_on?: string | undefined;
|
|
13057
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
13242
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
13058
13243
|
discount_amount: number;
|
|
13059
13244
|
untaxed_amount_without_fees: number;
|
|
13060
13245
|
tax_amount_without_fees: number;
|
|
@@ -13201,7 +13386,7 @@ export declare class API {
|
|
|
13201
13386
|
last_updated_on?: string | undefined;
|
|
13202
13387
|
confirmed_on?: string | undefined;
|
|
13203
13388
|
cancelled_on?: string | undefined;
|
|
13204
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
13389
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
13205
13390
|
discount_amount: number;
|
|
13206
13391
|
untaxed_amount_without_fees: number;
|
|
13207
13392
|
tax_amount_without_fees: number;
|
|
@@ -13307,7 +13492,7 @@ export declare class API {
|
|
|
13307
13492
|
last_updated_on?: string | undefined;
|
|
13308
13493
|
confirmed_on?: string | undefined;
|
|
13309
13494
|
cancelled_on?: string | undefined;
|
|
13310
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
13495
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
13311
13496
|
discount_amount: number;
|
|
13312
13497
|
untaxed_amount_without_fees: number;
|
|
13313
13498
|
tax_amount_without_fees: number;
|
|
@@ -13418,7 +13603,7 @@ export declare class API {
|
|
|
13418
13603
|
name: string;
|
|
13419
13604
|
title: string;
|
|
13420
13605
|
type: string;
|
|
13421
|
-
|
|
13606
|
+
optional?: boolean | undefined;
|
|
13422
13607
|
}[];
|
|
13423
13608
|
search_column?: string | undefined;
|
|
13424
13609
|
};
|
|
@@ -14914,12 +15099,13 @@ export declare class API {
|
|
|
14914
15099
|
reference?: string | undefined;
|
|
14915
15100
|
posted: boolean;
|
|
14916
15101
|
}[]>;
|
|
14917
|
-
|
|
15102
|
+
createFinancialEntryOld(financial_entry: {
|
|
14918
15103
|
date: string;
|
|
14919
15104
|
journal_id: string;
|
|
14920
15105
|
currency: string;
|
|
14921
15106
|
currency_exchange_rate?: number | undefined;
|
|
14922
15107
|
reference?: string | undefined;
|
|
15108
|
+
number?: string | undefined;
|
|
14923
15109
|
items: {
|
|
14924
15110
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
14925
15111
|
account_number: string;
|
|
@@ -14927,7 +15113,6 @@ export declare class API {
|
|
|
14927
15113
|
amount: number;
|
|
14928
15114
|
description?: string | undefined;
|
|
14929
15115
|
}[];
|
|
14930
|
-
number?: string | undefined;
|
|
14931
15116
|
pdf?: string | undefined;
|
|
14932
15117
|
}, params: {
|
|
14933
15118
|
financial_counterpart_account?: string | undefined;
|
|
@@ -14937,6 +15122,8 @@ export declare class API {
|
|
|
14937
15122
|
currency: string;
|
|
14938
15123
|
currency_exchange_rate?: number | undefined;
|
|
14939
15124
|
reference?: string | undefined;
|
|
15125
|
+
id: string;
|
|
15126
|
+
number: string;
|
|
14940
15127
|
items: {
|
|
14941
15128
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
14942
15129
|
account_number: string;
|
|
@@ -14945,9 +15132,39 @@ export declare class API {
|
|
|
14945
15132
|
description?: string | undefined;
|
|
14946
15133
|
counterpart_account: string;
|
|
14947
15134
|
}[];
|
|
15135
|
+
}>;
|
|
15136
|
+
createFinancialEntry(financial_entry: {
|
|
15137
|
+
date: string;
|
|
15138
|
+
journal_id: string;
|
|
15139
|
+
currency: string;
|
|
15140
|
+
currency_exchange_rate?: number | undefined;
|
|
15141
|
+
reference?: string | undefined;
|
|
15142
|
+
number?: string | undefined;
|
|
15143
|
+
items: {
|
|
15144
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
15145
|
+
account: string;
|
|
15146
|
+
amount: number;
|
|
15147
|
+
description?: string | undefined;
|
|
15148
|
+
}[];
|
|
15149
|
+
pdf?: string | undefined;
|
|
15150
|
+
}, params: {
|
|
15151
|
+
financial_counterpart_account?: string | undefined;
|
|
15152
|
+
} | undefined): import("../types/api").RequestData<{
|
|
15153
|
+
date: string;
|
|
15154
|
+
journal_id: string;
|
|
15155
|
+
currency: string;
|
|
15156
|
+
currency_exchange_rate?: number | undefined;
|
|
15157
|
+
reference?: string | undefined;
|
|
14948
15158
|
id: string;
|
|
14949
15159
|
number: string;
|
|
14950
|
-
|
|
15160
|
+
items: {
|
|
15161
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
15162
|
+
account: string;
|
|
15163
|
+
amount: number;
|
|
15164
|
+
description?: string | undefined;
|
|
15165
|
+
counterpart_account: string;
|
|
15166
|
+
}[];
|
|
15167
|
+
}[]>;
|
|
14951
15168
|
createJournalEntry(journal_entry: {
|
|
14952
15169
|
reference?: string | undefined;
|
|
14953
15170
|
due_date?: string | undefined;
|
|
@@ -15005,6 +15222,7 @@ export declare class API {
|
|
|
15005
15222
|
invoicing: import("../types/api").ApiFor<{
|
|
15006
15223
|
getInvoices(params: {
|
|
15007
15224
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
15225
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
15008
15226
|
date_from?: string | undefined;
|
|
15009
15227
|
date_to?: string | undefined;
|
|
15010
15228
|
page?: number | undefined;
|
|
@@ -15023,12 +15241,13 @@ export declare class API {
|
|
|
15023
15241
|
untaxed_amount: number;
|
|
15024
15242
|
total: number;
|
|
15025
15243
|
lines?: {
|
|
15026
|
-
description
|
|
15244
|
+
description?: string | undefined;
|
|
15027
15245
|
unit_price: number;
|
|
15028
15246
|
quantity: number;
|
|
15247
|
+
discount_amount?: number | undefined;
|
|
15029
15248
|
tax_amount: number;
|
|
15030
|
-
total: number;
|
|
15031
15249
|
untaxed_amount: number;
|
|
15250
|
+
total: number;
|
|
15032
15251
|
tax_rate?: number | undefined;
|
|
15033
15252
|
account_number?: string | undefined;
|
|
15034
15253
|
tax_id?: string | undefined;
|
|
@@ -15065,12 +15284,13 @@ export declare class API {
|
|
|
15065
15284
|
untaxed_amount: number;
|
|
15066
15285
|
total: number;
|
|
15067
15286
|
lines?: {
|
|
15068
|
-
description
|
|
15287
|
+
description?: string | undefined;
|
|
15069
15288
|
unit_price: number;
|
|
15070
15289
|
quantity: number;
|
|
15290
|
+
discount_amount?: number | undefined;
|
|
15071
15291
|
tax_amount: number;
|
|
15072
|
-
total: number;
|
|
15073
15292
|
untaxed_amount: number;
|
|
15293
|
+
total: number;
|
|
15074
15294
|
tax_rate?: number | undefined;
|
|
15075
15295
|
account_number?: string | undefined;
|
|
15076
15296
|
tax_id?: string | undefined;
|
|
@@ -15100,12 +15320,13 @@ export declare class API {
|
|
|
15100
15320
|
untaxed_amount: number;
|
|
15101
15321
|
total: number;
|
|
15102
15322
|
lines?: {
|
|
15103
|
-
description
|
|
15323
|
+
description?: string | undefined;
|
|
15104
15324
|
unit_price: number;
|
|
15105
15325
|
quantity: number;
|
|
15326
|
+
discount_amount?: number | undefined;
|
|
15106
15327
|
tax_amount: number;
|
|
15107
|
-
total: number;
|
|
15108
15328
|
untaxed_amount: number;
|
|
15329
|
+
total: number;
|
|
15109
15330
|
tax_rate?: number | undefined;
|
|
15110
15331
|
account_number?: string | undefined;
|
|
15111
15332
|
tax_id?: string | undefined;
|
|
@@ -15139,12 +15360,13 @@ export declare class API {
|
|
|
15139
15360
|
untaxed_amount: number;
|
|
15140
15361
|
total: number;
|
|
15141
15362
|
lines?: {
|
|
15142
|
-
description
|
|
15363
|
+
description?: string | undefined;
|
|
15143
15364
|
unit_price: number;
|
|
15144
15365
|
quantity: number;
|
|
15366
|
+
discount_amount?: number | undefined;
|
|
15145
15367
|
tax_amount: number;
|
|
15146
|
-
total: number;
|
|
15147
15368
|
untaxed_amount: number;
|
|
15369
|
+
total: number;
|
|
15148
15370
|
tax_rate?: number | undefined;
|
|
15149
15371
|
account_number?: string | undefined;
|
|
15150
15372
|
tax_id?: string | undefined;
|
|
@@ -15752,7 +15974,7 @@ export declare class API {
|
|
|
15752
15974
|
last_updated_on?: string | undefined;
|
|
15753
15975
|
confirmed_on?: string | undefined;
|
|
15754
15976
|
cancelled_on?: string | undefined;
|
|
15755
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
15977
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
15756
15978
|
discount_amount: number;
|
|
15757
15979
|
untaxed_amount_without_fees: number;
|
|
15758
15980
|
tax_amount_without_fees: number;
|
|
@@ -15899,7 +16121,7 @@ export declare class API {
|
|
|
15899
16121
|
last_updated_on?: string | undefined;
|
|
15900
16122
|
confirmed_on?: string | undefined;
|
|
15901
16123
|
cancelled_on?: string | undefined;
|
|
15902
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
16124
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
15903
16125
|
discount_amount: number;
|
|
15904
16126
|
untaxed_amount_without_fees: number;
|
|
15905
16127
|
tax_amount_without_fees: number;
|
|
@@ -16005,7 +16227,7 @@ export declare class API {
|
|
|
16005
16227
|
last_updated_on?: string | undefined;
|
|
16006
16228
|
confirmed_on?: string | undefined;
|
|
16007
16229
|
cancelled_on?: string | undefined;
|
|
16008
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
16230
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
16009
16231
|
discount_amount: number;
|
|
16010
16232
|
untaxed_amount_without_fees: number;
|
|
16011
16233
|
tax_amount_without_fees: number;
|
|
@@ -16116,7 +16338,7 @@ export declare class API {
|
|
|
16116
16338
|
name: string;
|
|
16117
16339
|
title: string;
|
|
16118
16340
|
type: string;
|
|
16119
|
-
|
|
16341
|
+
optional?: boolean | undefined;
|
|
16120
16342
|
}[];
|
|
16121
16343
|
search_column?: string | undefined;
|
|
16122
16344
|
};
|
|
@@ -17613,12 +17835,13 @@ export declare class API {
|
|
|
17613
17835
|
reference?: string | undefined;
|
|
17614
17836
|
posted: boolean;
|
|
17615
17837
|
}[]>;
|
|
17616
|
-
|
|
17838
|
+
createFinancialEntryOld(financial_entry: {
|
|
17617
17839
|
date: string;
|
|
17618
17840
|
journal_id: string;
|
|
17619
17841
|
currency: string;
|
|
17620
17842
|
currency_exchange_rate?: number | undefined;
|
|
17621
17843
|
reference?: string | undefined;
|
|
17844
|
+
number?: string | undefined;
|
|
17622
17845
|
items: {
|
|
17623
17846
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
17624
17847
|
account_number: string;
|
|
@@ -17626,7 +17849,6 @@ export declare class API {
|
|
|
17626
17849
|
amount: number;
|
|
17627
17850
|
description?: string | undefined;
|
|
17628
17851
|
}[];
|
|
17629
|
-
number?: string | undefined;
|
|
17630
17852
|
pdf?: string | undefined;
|
|
17631
17853
|
}, params: {
|
|
17632
17854
|
financial_counterpart_account?: string | undefined;
|
|
@@ -17636,6 +17858,8 @@ export declare class API {
|
|
|
17636
17858
|
currency: string;
|
|
17637
17859
|
currency_exchange_rate?: number | undefined;
|
|
17638
17860
|
reference?: string | undefined;
|
|
17861
|
+
id: string;
|
|
17862
|
+
number: string;
|
|
17639
17863
|
items: {
|
|
17640
17864
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
17641
17865
|
account_number: string;
|
|
@@ -17644,9 +17868,39 @@ export declare class API {
|
|
|
17644
17868
|
description?: string | undefined;
|
|
17645
17869
|
counterpart_account: string;
|
|
17646
17870
|
}[];
|
|
17871
|
+
}>;
|
|
17872
|
+
createFinancialEntry(financial_entry: {
|
|
17873
|
+
date: string;
|
|
17874
|
+
journal_id: string;
|
|
17875
|
+
currency: string;
|
|
17876
|
+
currency_exchange_rate?: number | undefined;
|
|
17877
|
+
reference?: string | undefined;
|
|
17878
|
+
number?: string | undefined;
|
|
17879
|
+
items: {
|
|
17880
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
17881
|
+
account: string;
|
|
17882
|
+
amount: number;
|
|
17883
|
+
description?: string | undefined;
|
|
17884
|
+
}[];
|
|
17885
|
+
pdf?: string | undefined;
|
|
17886
|
+
}, params: {
|
|
17887
|
+
financial_counterpart_account?: string | undefined;
|
|
17888
|
+
} | undefined): import("../types/api").RequestData<{
|
|
17889
|
+
date: string;
|
|
17890
|
+
journal_id: string;
|
|
17891
|
+
currency: string;
|
|
17892
|
+
currency_exchange_rate?: number | undefined;
|
|
17893
|
+
reference?: string | undefined;
|
|
17647
17894
|
id: string;
|
|
17648
17895
|
number: string;
|
|
17649
|
-
|
|
17896
|
+
items: {
|
|
17897
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
17898
|
+
account: string;
|
|
17899
|
+
amount: number;
|
|
17900
|
+
description?: string | undefined;
|
|
17901
|
+
counterpart_account: string;
|
|
17902
|
+
}[];
|
|
17903
|
+
}[]>;
|
|
17650
17904
|
createJournalEntry(journal_entry: {
|
|
17651
17905
|
reference?: string | undefined;
|
|
17652
17906
|
due_date?: string | undefined;
|
|
@@ -17704,6 +17958,7 @@ export declare class API {
|
|
|
17704
17958
|
invoicing: import("../types/api").ApiFor<{
|
|
17705
17959
|
getInvoices(params: {
|
|
17706
17960
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
17961
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
17707
17962
|
date_from?: string | undefined;
|
|
17708
17963
|
date_to?: string | undefined;
|
|
17709
17964
|
page?: number | undefined;
|
|
@@ -17722,12 +17977,13 @@ export declare class API {
|
|
|
17722
17977
|
untaxed_amount: number;
|
|
17723
17978
|
total: number;
|
|
17724
17979
|
lines?: {
|
|
17725
|
-
description
|
|
17980
|
+
description?: string | undefined;
|
|
17726
17981
|
unit_price: number;
|
|
17727
17982
|
quantity: number;
|
|
17983
|
+
discount_amount?: number | undefined;
|
|
17728
17984
|
tax_amount: number;
|
|
17729
|
-
total: number;
|
|
17730
17985
|
untaxed_amount: number;
|
|
17986
|
+
total: number;
|
|
17731
17987
|
tax_rate?: number | undefined;
|
|
17732
17988
|
account_number?: string | undefined;
|
|
17733
17989
|
tax_id?: string | undefined;
|
|
@@ -17764,12 +18020,13 @@ export declare class API {
|
|
|
17764
18020
|
untaxed_amount: number;
|
|
17765
18021
|
total: number;
|
|
17766
18022
|
lines?: {
|
|
17767
|
-
description
|
|
18023
|
+
description?: string | undefined;
|
|
17768
18024
|
unit_price: number;
|
|
17769
18025
|
quantity: number;
|
|
18026
|
+
discount_amount?: number | undefined;
|
|
17770
18027
|
tax_amount: number;
|
|
17771
|
-
total: number;
|
|
17772
18028
|
untaxed_amount: number;
|
|
18029
|
+
total: number;
|
|
17773
18030
|
tax_rate?: number | undefined;
|
|
17774
18031
|
account_number?: string | undefined;
|
|
17775
18032
|
tax_id?: string | undefined;
|
|
@@ -17799,12 +18056,13 @@ export declare class API {
|
|
|
17799
18056
|
untaxed_amount: number;
|
|
17800
18057
|
total: number;
|
|
17801
18058
|
lines?: {
|
|
17802
|
-
description
|
|
18059
|
+
description?: string | undefined;
|
|
17803
18060
|
unit_price: number;
|
|
17804
18061
|
quantity: number;
|
|
18062
|
+
discount_amount?: number | undefined;
|
|
17805
18063
|
tax_amount: number;
|
|
17806
|
-
total: number;
|
|
17807
18064
|
untaxed_amount: number;
|
|
18065
|
+
total: number;
|
|
17808
18066
|
tax_rate?: number | undefined;
|
|
17809
18067
|
account_number?: string | undefined;
|
|
17810
18068
|
tax_id?: string | undefined;
|
|
@@ -17838,12 +18096,13 @@ export declare class API {
|
|
|
17838
18096
|
untaxed_amount: number;
|
|
17839
18097
|
total: number;
|
|
17840
18098
|
lines?: {
|
|
17841
|
-
description
|
|
18099
|
+
description?: string | undefined;
|
|
17842
18100
|
unit_price: number;
|
|
17843
18101
|
quantity: number;
|
|
18102
|
+
discount_amount?: number | undefined;
|
|
17844
18103
|
tax_amount: number;
|
|
17845
|
-
total: number;
|
|
17846
18104
|
untaxed_amount: number;
|
|
18105
|
+
total: number;
|
|
17847
18106
|
tax_rate?: number | undefined;
|
|
17848
18107
|
account_number?: string | undefined;
|
|
17849
18108
|
tax_id?: string | undefined;
|
|
@@ -18451,7 +18710,7 @@ export declare class API {
|
|
|
18451
18710
|
last_updated_on?: string | undefined;
|
|
18452
18711
|
confirmed_on?: string | undefined;
|
|
18453
18712
|
cancelled_on?: string | undefined;
|
|
18454
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
18713
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
18455
18714
|
discount_amount: number;
|
|
18456
18715
|
untaxed_amount_without_fees: number;
|
|
18457
18716
|
tax_amount_without_fees: number;
|
|
@@ -18598,7 +18857,7 @@ export declare class API {
|
|
|
18598
18857
|
last_updated_on?: string | undefined;
|
|
18599
18858
|
confirmed_on?: string | undefined;
|
|
18600
18859
|
cancelled_on?: string | undefined;
|
|
18601
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
18860
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
18602
18861
|
discount_amount: number;
|
|
18603
18862
|
untaxed_amount_without_fees: number;
|
|
18604
18863
|
tax_amount_without_fees: number;
|
|
@@ -18704,7 +18963,7 @@ export declare class API {
|
|
|
18704
18963
|
last_updated_on?: string | undefined;
|
|
18705
18964
|
confirmed_on?: string | undefined;
|
|
18706
18965
|
cancelled_on?: string | undefined;
|
|
18707
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
18966
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
18708
18967
|
discount_amount: number;
|
|
18709
18968
|
untaxed_amount_without_fees: number;
|
|
18710
18969
|
tax_amount_without_fees: number;
|
|
@@ -18815,7 +19074,7 @@ export declare class API {
|
|
|
18815
19074
|
name: string;
|
|
18816
19075
|
title: string;
|
|
18817
19076
|
type: string;
|
|
18818
|
-
|
|
19077
|
+
optional?: boolean | undefined;
|
|
18819
19078
|
}[];
|
|
18820
19079
|
search_column?: string | undefined;
|
|
18821
19080
|
};
|
|
@@ -20316,12 +20575,13 @@ export declare class API {
|
|
|
20316
20575
|
reference?: string | undefined;
|
|
20317
20576
|
posted: boolean;
|
|
20318
20577
|
}[]>;
|
|
20319
|
-
|
|
20578
|
+
createFinancialEntryOld(financial_entry: {
|
|
20320
20579
|
date: string;
|
|
20321
20580
|
journal_id: string;
|
|
20322
20581
|
currency: string;
|
|
20323
20582
|
currency_exchange_rate?: number | undefined;
|
|
20324
20583
|
reference?: string | undefined;
|
|
20584
|
+
number?: string | undefined;
|
|
20325
20585
|
items: {
|
|
20326
20586
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
20327
20587
|
account_number: string;
|
|
@@ -20329,7 +20589,6 @@ export declare class API {
|
|
|
20329
20589
|
amount: number;
|
|
20330
20590
|
description?: string | undefined;
|
|
20331
20591
|
}[];
|
|
20332
|
-
number?: string | undefined;
|
|
20333
20592
|
pdf?: string | undefined;
|
|
20334
20593
|
}, params: {
|
|
20335
20594
|
financial_counterpart_account?: string | undefined;
|
|
@@ -20339,6 +20598,8 @@ export declare class API {
|
|
|
20339
20598
|
currency: string;
|
|
20340
20599
|
currency_exchange_rate?: number | undefined;
|
|
20341
20600
|
reference?: string | undefined;
|
|
20601
|
+
id: string;
|
|
20602
|
+
number: string;
|
|
20342
20603
|
items: {
|
|
20343
20604
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
20344
20605
|
account_number: string;
|
|
@@ -20347,9 +20608,39 @@ export declare class API {
|
|
|
20347
20608
|
description?: string | undefined;
|
|
20348
20609
|
counterpart_account: string;
|
|
20349
20610
|
}[];
|
|
20611
|
+
}>;
|
|
20612
|
+
createFinancialEntry(financial_entry: {
|
|
20613
|
+
date: string;
|
|
20614
|
+
journal_id: string;
|
|
20615
|
+
currency: string;
|
|
20616
|
+
currency_exchange_rate?: number | undefined;
|
|
20617
|
+
reference?: string | undefined;
|
|
20618
|
+
number?: string | undefined;
|
|
20619
|
+
items: {
|
|
20620
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
20621
|
+
account: string;
|
|
20622
|
+
amount: number;
|
|
20623
|
+
description?: string | undefined;
|
|
20624
|
+
}[];
|
|
20625
|
+
pdf?: string | undefined;
|
|
20626
|
+
}, params: {
|
|
20627
|
+
financial_counterpart_account?: string | undefined;
|
|
20628
|
+
} | undefined): import("../types/api").RequestData<{
|
|
20629
|
+
date: string;
|
|
20630
|
+
journal_id: string;
|
|
20631
|
+
currency: string;
|
|
20632
|
+
currency_exchange_rate?: number | undefined;
|
|
20633
|
+
reference?: string | undefined;
|
|
20350
20634
|
id: string;
|
|
20351
20635
|
number: string;
|
|
20352
|
-
|
|
20636
|
+
items: {
|
|
20637
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
20638
|
+
account: string;
|
|
20639
|
+
amount: number;
|
|
20640
|
+
description?: string | undefined;
|
|
20641
|
+
counterpart_account: string;
|
|
20642
|
+
}[];
|
|
20643
|
+
}[]>;
|
|
20353
20644
|
createJournalEntry(journal_entry: {
|
|
20354
20645
|
reference?: string | undefined;
|
|
20355
20646
|
due_date?: string | undefined;
|
|
@@ -20407,6 +20698,7 @@ export declare class API {
|
|
|
20407
20698
|
invoicing: import("../types/api").ApiFor<{
|
|
20408
20699
|
getInvoices(params: {
|
|
20409
20700
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
20701
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
20410
20702
|
date_from?: string | undefined;
|
|
20411
20703
|
date_to?: string | undefined;
|
|
20412
20704
|
page?: number | undefined;
|
|
@@ -20425,12 +20717,13 @@ export declare class API {
|
|
|
20425
20717
|
untaxed_amount: number;
|
|
20426
20718
|
total: number;
|
|
20427
20719
|
lines?: {
|
|
20428
|
-
description
|
|
20720
|
+
description?: string | undefined;
|
|
20429
20721
|
unit_price: number;
|
|
20430
20722
|
quantity: number;
|
|
20723
|
+
discount_amount?: number | undefined;
|
|
20431
20724
|
tax_amount: number;
|
|
20432
|
-
total: number;
|
|
20433
20725
|
untaxed_amount: number;
|
|
20726
|
+
total: number;
|
|
20434
20727
|
tax_rate?: number | undefined;
|
|
20435
20728
|
account_number?: string | undefined;
|
|
20436
20729
|
tax_id?: string | undefined;
|
|
@@ -20467,12 +20760,13 @@ export declare class API {
|
|
|
20467
20760
|
untaxed_amount: number;
|
|
20468
20761
|
total: number;
|
|
20469
20762
|
lines?: {
|
|
20470
|
-
description
|
|
20763
|
+
description?: string | undefined;
|
|
20471
20764
|
unit_price: number;
|
|
20472
20765
|
quantity: number;
|
|
20766
|
+
discount_amount?: number | undefined;
|
|
20473
20767
|
tax_amount: number;
|
|
20474
|
-
total: number;
|
|
20475
20768
|
untaxed_amount: number;
|
|
20769
|
+
total: number;
|
|
20476
20770
|
tax_rate?: number | undefined;
|
|
20477
20771
|
account_number?: string | undefined;
|
|
20478
20772
|
tax_id?: string | undefined;
|
|
@@ -20502,12 +20796,13 @@ export declare class API {
|
|
|
20502
20796
|
untaxed_amount: number;
|
|
20503
20797
|
total: number;
|
|
20504
20798
|
lines?: {
|
|
20505
|
-
description
|
|
20799
|
+
description?: string | undefined;
|
|
20506
20800
|
unit_price: number;
|
|
20507
20801
|
quantity: number;
|
|
20802
|
+
discount_amount?: number | undefined;
|
|
20508
20803
|
tax_amount: number;
|
|
20509
|
-
total: number;
|
|
20510
20804
|
untaxed_amount: number;
|
|
20805
|
+
total: number;
|
|
20511
20806
|
tax_rate?: number | undefined;
|
|
20512
20807
|
account_number?: string | undefined;
|
|
20513
20808
|
tax_id?: string | undefined;
|
|
@@ -20541,12 +20836,13 @@ export declare class API {
|
|
|
20541
20836
|
untaxed_amount: number;
|
|
20542
20837
|
total: number;
|
|
20543
20838
|
lines?: {
|
|
20544
|
-
description
|
|
20839
|
+
description?: string | undefined;
|
|
20545
20840
|
unit_price: number;
|
|
20546
20841
|
quantity: number;
|
|
20842
|
+
discount_amount?: number | undefined;
|
|
20547
20843
|
tax_amount: number;
|
|
20548
|
-
total: number;
|
|
20549
20844
|
untaxed_amount: number;
|
|
20845
|
+
total: number;
|
|
20550
20846
|
tax_rate?: number | undefined;
|
|
20551
20847
|
account_number?: string | undefined;
|
|
20552
20848
|
tax_id?: string | undefined;
|
|
@@ -21154,7 +21450,7 @@ export declare class API {
|
|
|
21154
21450
|
last_updated_on?: string | undefined;
|
|
21155
21451
|
confirmed_on?: string | undefined;
|
|
21156
21452
|
cancelled_on?: string | undefined;
|
|
21157
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
21453
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
21158
21454
|
discount_amount: number;
|
|
21159
21455
|
untaxed_amount_without_fees: number;
|
|
21160
21456
|
tax_amount_without_fees: number;
|
|
@@ -21301,7 +21597,7 @@ export declare class API {
|
|
|
21301
21597
|
last_updated_on?: string | undefined;
|
|
21302
21598
|
confirmed_on?: string | undefined;
|
|
21303
21599
|
cancelled_on?: string | undefined;
|
|
21304
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
21600
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
21305
21601
|
discount_amount: number;
|
|
21306
21602
|
untaxed_amount_without_fees: number;
|
|
21307
21603
|
tax_amount_without_fees: number;
|
|
@@ -21407,7 +21703,7 @@ export declare class API {
|
|
|
21407
21703
|
last_updated_on?: string | undefined;
|
|
21408
21704
|
confirmed_on?: string | undefined;
|
|
21409
21705
|
cancelled_on?: string | undefined;
|
|
21410
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
21706
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
21411
21707
|
discount_amount: number;
|
|
21412
21708
|
untaxed_amount_without_fees: number;
|
|
21413
21709
|
tax_amount_without_fees: number;
|
|
@@ -21518,7 +21814,7 @@ export declare class API {
|
|
|
21518
21814
|
name: string;
|
|
21519
21815
|
title: string;
|
|
21520
21816
|
type: string;
|
|
21521
|
-
|
|
21817
|
+
optional?: boolean | undefined;
|
|
21522
21818
|
}[];
|
|
21523
21819
|
search_column?: string | undefined;
|
|
21524
21820
|
};
|
|
@@ -23019,12 +23315,13 @@ export declare class API {
|
|
|
23019
23315
|
reference?: string | undefined;
|
|
23020
23316
|
posted: boolean;
|
|
23021
23317
|
}[]>;
|
|
23022
|
-
|
|
23318
|
+
createFinancialEntryOld(financial_entry: {
|
|
23023
23319
|
date: string;
|
|
23024
23320
|
journal_id: string;
|
|
23025
23321
|
currency: string;
|
|
23026
23322
|
currency_exchange_rate?: number | undefined;
|
|
23027
23323
|
reference?: string | undefined;
|
|
23324
|
+
number?: string | undefined;
|
|
23028
23325
|
items: {
|
|
23029
23326
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
23030
23327
|
account_number: string;
|
|
@@ -23032,7 +23329,6 @@ export declare class API {
|
|
|
23032
23329
|
amount: number;
|
|
23033
23330
|
description?: string | undefined;
|
|
23034
23331
|
}[];
|
|
23035
|
-
number?: string | undefined;
|
|
23036
23332
|
pdf?: string | undefined;
|
|
23037
23333
|
}, params: {
|
|
23038
23334
|
financial_counterpart_account?: string | undefined;
|
|
@@ -23042,6 +23338,8 @@ export declare class API {
|
|
|
23042
23338
|
currency: string;
|
|
23043
23339
|
currency_exchange_rate?: number | undefined;
|
|
23044
23340
|
reference?: string | undefined;
|
|
23341
|
+
id: string;
|
|
23342
|
+
number: string;
|
|
23045
23343
|
items: {
|
|
23046
23344
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
23047
23345
|
account_number: string;
|
|
@@ -23050,9 +23348,39 @@ export declare class API {
|
|
|
23050
23348
|
description?: string | undefined;
|
|
23051
23349
|
counterpart_account: string;
|
|
23052
23350
|
}[];
|
|
23351
|
+
}>;
|
|
23352
|
+
createFinancialEntry(financial_entry: {
|
|
23353
|
+
date: string;
|
|
23354
|
+
journal_id: string;
|
|
23355
|
+
currency: string;
|
|
23356
|
+
currency_exchange_rate?: number | undefined;
|
|
23357
|
+
reference?: string | undefined;
|
|
23358
|
+
number?: string | undefined;
|
|
23359
|
+
items: {
|
|
23360
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
23361
|
+
account: string;
|
|
23362
|
+
amount: number;
|
|
23363
|
+
description?: string | undefined;
|
|
23364
|
+
}[];
|
|
23365
|
+
pdf?: string | undefined;
|
|
23366
|
+
}, params: {
|
|
23367
|
+
financial_counterpart_account?: string | undefined;
|
|
23368
|
+
} | undefined): import("../types/api").RequestData<{
|
|
23369
|
+
date: string;
|
|
23370
|
+
journal_id: string;
|
|
23371
|
+
currency: string;
|
|
23372
|
+
currency_exchange_rate?: number | undefined;
|
|
23373
|
+
reference?: string | undefined;
|
|
23053
23374
|
id: string;
|
|
23054
23375
|
number: string;
|
|
23055
|
-
|
|
23376
|
+
items: {
|
|
23377
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
23378
|
+
account: string;
|
|
23379
|
+
amount: number;
|
|
23380
|
+
description?: string | undefined;
|
|
23381
|
+
counterpart_account: string;
|
|
23382
|
+
}[];
|
|
23383
|
+
}[]>;
|
|
23056
23384
|
createJournalEntry(journal_entry: {
|
|
23057
23385
|
reference?: string | undefined;
|
|
23058
23386
|
due_date?: string | undefined;
|
|
@@ -23110,6 +23438,7 @@ export declare class API {
|
|
|
23110
23438
|
invoicing: import("../types/api").ApiFor<{
|
|
23111
23439
|
getInvoices(params: {
|
|
23112
23440
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
23441
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
23113
23442
|
date_from?: string | undefined;
|
|
23114
23443
|
date_to?: string | undefined;
|
|
23115
23444
|
page?: number | undefined;
|
|
@@ -23128,12 +23457,13 @@ export declare class API {
|
|
|
23128
23457
|
untaxed_amount: number;
|
|
23129
23458
|
total: number;
|
|
23130
23459
|
lines?: {
|
|
23131
|
-
description
|
|
23460
|
+
description?: string | undefined;
|
|
23132
23461
|
unit_price: number;
|
|
23133
23462
|
quantity: number;
|
|
23463
|
+
discount_amount?: number | undefined;
|
|
23134
23464
|
tax_amount: number;
|
|
23135
|
-
total: number;
|
|
23136
23465
|
untaxed_amount: number;
|
|
23466
|
+
total: number;
|
|
23137
23467
|
tax_rate?: number | undefined;
|
|
23138
23468
|
account_number?: string | undefined;
|
|
23139
23469
|
tax_id?: string | undefined;
|
|
@@ -23170,12 +23500,13 @@ export declare class API {
|
|
|
23170
23500
|
untaxed_amount: number;
|
|
23171
23501
|
total: number;
|
|
23172
23502
|
lines?: {
|
|
23173
|
-
description
|
|
23503
|
+
description?: string | undefined;
|
|
23174
23504
|
unit_price: number;
|
|
23175
23505
|
quantity: number;
|
|
23506
|
+
discount_amount?: number | undefined;
|
|
23176
23507
|
tax_amount: number;
|
|
23177
|
-
total: number;
|
|
23178
23508
|
untaxed_amount: number;
|
|
23509
|
+
total: number;
|
|
23179
23510
|
tax_rate?: number | undefined;
|
|
23180
23511
|
account_number?: string | undefined;
|
|
23181
23512
|
tax_id?: string | undefined;
|
|
@@ -23205,12 +23536,13 @@ export declare class API {
|
|
|
23205
23536
|
untaxed_amount: number;
|
|
23206
23537
|
total: number;
|
|
23207
23538
|
lines?: {
|
|
23208
|
-
description
|
|
23539
|
+
description?: string | undefined;
|
|
23209
23540
|
unit_price: number;
|
|
23210
23541
|
quantity: number;
|
|
23542
|
+
discount_amount?: number | undefined;
|
|
23211
23543
|
tax_amount: number;
|
|
23212
|
-
total: number;
|
|
23213
23544
|
untaxed_amount: number;
|
|
23545
|
+
total: number;
|
|
23214
23546
|
tax_rate?: number | undefined;
|
|
23215
23547
|
account_number?: string | undefined;
|
|
23216
23548
|
tax_id?: string | undefined;
|
|
@@ -23244,12 +23576,13 @@ export declare class API {
|
|
|
23244
23576
|
untaxed_amount: number;
|
|
23245
23577
|
total: number;
|
|
23246
23578
|
lines?: {
|
|
23247
|
-
description
|
|
23579
|
+
description?: string | undefined;
|
|
23248
23580
|
unit_price: number;
|
|
23249
23581
|
quantity: number;
|
|
23582
|
+
discount_amount?: number | undefined;
|
|
23250
23583
|
tax_amount: number;
|
|
23251
|
-
total: number;
|
|
23252
23584
|
untaxed_amount: number;
|
|
23585
|
+
total: number;
|
|
23253
23586
|
tax_rate?: number | undefined;
|
|
23254
23587
|
account_number?: string | undefined;
|
|
23255
23588
|
tax_id?: string | undefined;
|
|
@@ -23857,7 +24190,7 @@ export declare class API {
|
|
|
23857
24190
|
last_updated_on?: string | undefined;
|
|
23858
24191
|
confirmed_on?: string | undefined;
|
|
23859
24192
|
cancelled_on?: string | undefined;
|
|
23860
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
24193
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
23861
24194
|
discount_amount: number;
|
|
23862
24195
|
untaxed_amount_without_fees: number;
|
|
23863
24196
|
tax_amount_without_fees: number;
|
|
@@ -24004,7 +24337,7 @@ export declare class API {
|
|
|
24004
24337
|
last_updated_on?: string | undefined;
|
|
24005
24338
|
confirmed_on?: string | undefined;
|
|
24006
24339
|
cancelled_on?: string | undefined;
|
|
24007
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
24340
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
24008
24341
|
discount_amount: number;
|
|
24009
24342
|
untaxed_amount_without_fees: number;
|
|
24010
24343
|
tax_amount_without_fees: number;
|
|
@@ -24110,7 +24443,7 @@ export declare class API {
|
|
|
24110
24443
|
last_updated_on?: string | undefined;
|
|
24111
24444
|
confirmed_on?: string | undefined;
|
|
24112
24445
|
cancelled_on?: string | undefined;
|
|
24113
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
24446
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
24114
24447
|
discount_amount: number;
|
|
24115
24448
|
untaxed_amount_without_fees: number;
|
|
24116
24449
|
tax_amount_without_fees: number;
|
|
@@ -24221,7 +24554,7 @@ export declare class API {
|
|
|
24221
24554
|
name: string;
|
|
24222
24555
|
title: string;
|
|
24223
24556
|
type: string;
|
|
24224
|
-
|
|
24557
|
+
optional?: boolean | undefined;
|
|
24225
24558
|
}[];
|
|
24226
24559
|
search_column?: string | undefined;
|
|
24227
24560
|
};
|
|
@@ -25722,12 +26055,13 @@ export declare class API {
|
|
|
25722
26055
|
reference?: string | undefined;
|
|
25723
26056
|
posted: boolean;
|
|
25724
26057
|
}[]>;
|
|
25725
|
-
|
|
26058
|
+
createFinancialEntryOld(financial_entry: {
|
|
25726
26059
|
date: string;
|
|
25727
26060
|
journal_id: string;
|
|
25728
26061
|
currency: string;
|
|
25729
26062
|
currency_exchange_rate?: number | undefined;
|
|
25730
26063
|
reference?: string | undefined;
|
|
26064
|
+
number?: string | undefined;
|
|
25731
26065
|
items: {
|
|
25732
26066
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
25733
26067
|
account_number: string;
|
|
@@ -25735,7 +26069,6 @@ export declare class API {
|
|
|
25735
26069
|
amount: number;
|
|
25736
26070
|
description?: string | undefined;
|
|
25737
26071
|
}[];
|
|
25738
|
-
number?: string | undefined;
|
|
25739
26072
|
pdf?: string | undefined;
|
|
25740
26073
|
}, params: {
|
|
25741
26074
|
financial_counterpart_account?: string | undefined;
|
|
@@ -25745,6 +26078,8 @@ export declare class API {
|
|
|
25745
26078
|
currency: string;
|
|
25746
26079
|
currency_exchange_rate?: number | undefined;
|
|
25747
26080
|
reference?: string | undefined;
|
|
26081
|
+
id: string;
|
|
26082
|
+
number: string;
|
|
25748
26083
|
items: {
|
|
25749
26084
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
25750
26085
|
account_number: string;
|
|
@@ -25753,9 +26088,39 @@ export declare class API {
|
|
|
25753
26088
|
description?: string | undefined;
|
|
25754
26089
|
counterpart_account: string;
|
|
25755
26090
|
}[];
|
|
26091
|
+
}>;
|
|
26092
|
+
createFinancialEntry(financial_entry: {
|
|
26093
|
+
date: string;
|
|
26094
|
+
journal_id: string;
|
|
26095
|
+
currency: string;
|
|
26096
|
+
currency_exchange_rate?: number | undefined;
|
|
26097
|
+
reference?: string | undefined;
|
|
26098
|
+
number?: string | undefined;
|
|
26099
|
+
items: {
|
|
26100
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
26101
|
+
account: string;
|
|
26102
|
+
amount: number;
|
|
26103
|
+
description?: string | undefined;
|
|
26104
|
+
}[];
|
|
26105
|
+
pdf?: string | undefined;
|
|
26106
|
+
}, params: {
|
|
26107
|
+
financial_counterpart_account?: string | undefined;
|
|
26108
|
+
} | undefined): import("../types/api").RequestData<{
|
|
26109
|
+
date: string;
|
|
26110
|
+
journal_id: string;
|
|
26111
|
+
currency: string;
|
|
26112
|
+
currency_exchange_rate?: number | undefined;
|
|
26113
|
+
reference?: string | undefined;
|
|
25756
26114
|
id: string;
|
|
25757
26115
|
number: string;
|
|
25758
|
-
|
|
26116
|
+
items: {
|
|
26117
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
26118
|
+
account: string;
|
|
26119
|
+
amount: number;
|
|
26120
|
+
description?: string | undefined;
|
|
26121
|
+
counterpart_account: string;
|
|
26122
|
+
}[];
|
|
26123
|
+
}[]>;
|
|
25759
26124
|
createJournalEntry(journal_entry: {
|
|
25760
26125
|
reference?: string | undefined;
|
|
25761
26126
|
due_date?: string | undefined;
|
|
@@ -25813,6 +26178,7 @@ export declare class API {
|
|
|
25813
26178
|
invoicing: import("../types/api").ApiFor<{
|
|
25814
26179
|
getInvoices(params: {
|
|
25815
26180
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
26181
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
25816
26182
|
date_from?: string | undefined;
|
|
25817
26183
|
date_to?: string | undefined;
|
|
25818
26184
|
page?: number | undefined;
|
|
@@ -25831,12 +26197,13 @@ export declare class API {
|
|
|
25831
26197
|
untaxed_amount: number;
|
|
25832
26198
|
total: number;
|
|
25833
26199
|
lines?: {
|
|
25834
|
-
description
|
|
26200
|
+
description?: string | undefined;
|
|
25835
26201
|
unit_price: number;
|
|
25836
26202
|
quantity: number;
|
|
26203
|
+
discount_amount?: number | undefined;
|
|
25837
26204
|
tax_amount: number;
|
|
25838
|
-
total: number;
|
|
25839
26205
|
untaxed_amount: number;
|
|
26206
|
+
total: number;
|
|
25840
26207
|
tax_rate?: number | undefined;
|
|
25841
26208
|
account_number?: string | undefined;
|
|
25842
26209
|
tax_id?: string | undefined;
|
|
@@ -25873,12 +26240,13 @@ export declare class API {
|
|
|
25873
26240
|
untaxed_amount: number;
|
|
25874
26241
|
total: number;
|
|
25875
26242
|
lines?: {
|
|
25876
|
-
description
|
|
26243
|
+
description?: string | undefined;
|
|
25877
26244
|
unit_price: number;
|
|
25878
26245
|
quantity: number;
|
|
26246
|
+
discount_amount?: number | undefined;
|
|
25879
26247
|
tax_amount: number;
|
|
25880
|
-
total: number;
|
|
25881
26248
|
untaxed_amount: number;
|
|
26249
|
+
total: number;
|
|
25882
26250
|
tax_rate?: number | undefined;
|
|
25883
26251
|
account_number?: string | undefined;
|
|
25884
26252
|
tax_id?: string | undefined;
|
|
@@ -25908,12 +26276,13 @@ export declare class API {
|
|
|
25908
26276
|
untaxed_amount: number;
|
|
25909
26277
|
total: number;
|
|
25910
26278
|
lines?: {
|
|
25911
|
-
description
|
|
26279
|
+
description?: string | undefined;
|
|
25912
26280
|
unit_price: number;
|
|
25913
26281
|
quantity: number;
|
|
26282
|
+
discount_amount?: number | undefined;
|
|
25914
26283
|
tax_amount: number;
|
|
25915
|
-
total: number;
|
|
25916
26284
|
untaxed_amount: number;
|
|
26285
|
+
total: number;
|
|
25917
26286
|
tax_rate?: number | undefined;
|
|
25918
26287
|
account_number?: string | undefined;
|
|
25919
26288
|
tax_id?: string | undefined;
|
|
@@ -25947,12 +26316,13 @@ export declare class API {
|
|
|
25947
26316
|
untaxed_amount: number;
|
|
25948
26317
|
total: number;
|
|
25949
26318
|
lines?: {
|
|
25950
|
-
description
|
|
26319
|
+
description?: string | undefined;
|
|
25951
26320
|
unit_price: number;
|
|
25952
26321
|
quantity: number;
|
|
26322
|
+
discount_amount?: number | undefined;
|
|
25953
26323
|
tax_amount: number;
|
|
25954
|
-
total: number;
|
|
25955
26324
|
untaxed_amount: number;
|
|
26325
|
+
total: number;
|
|
25956
26326
|
tax_rate?: number | undefined;
|
|
25957
26327
|
account_number?: string | undefined;
|
|
25958
26328
|
tax_id?: string | undefined;
|
|
@@ -26560,7 +26930,7 @@ export declare class API {
|
|
|
26560
26930
|
last_updated_on?: string | undefined;
|
|
26561
26931
|
confirmed_on?: string | undefined;
|
|
26562
26932
|
cancelled_on?: string | undefined;
|
|
26563
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
26933
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
26564
26934
|
discount_amount: number;
|
|
26565
26935
|
untaxed_amount_without_fees: number;
|
|
26566
26936
|
tax_amount_without_fees: number;
|
|
@@ -26707,7 +27077,7 @@ export declare class API {
|
|
|
26707
27077
|
last_updated_on?: string | undefined;
|
|
26708
27078
|
confirmed_on?: string | undefined;
|
|
26709
27079
|
cancelled_on?: string | undefined;
|
|
26710
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
27080
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
26711
27081
|
discount_amount: number;
|
|
26712
27082
|
untaxed_amount_without_fees: number;
|
|
26713
27083
|
tax_amount_without_fees: number;
|
|
@@ -26813,7 +27183,7 @@ export declare class API {
|
|
|
26813
27183
|
last_updated_on?: string | undefined;
|
|
26814
27184
|
confirmed_on?: string | undefined;
|
|
26815
27185
|
cancelled_on?: string | undefined;
|
|
26816
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
27186
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
26817
27187
|
discount_amount: number;
|
|
26818
27188
|
untaxed_amount_without_fees: number;
|
|
26819
27189
|
tax_amount_without_fees: number;
|
|
@@ -26924,7 +27294,7 @@ export declare class API {
|
|
|
26924
27294
|
name: string;
|
|
26925
27295
|
title: string;
|
|
26926
27296
|
type: string;
|
|
26927
|
-
|
|
27297
|
+
optional?: boolean | undefined;
|
|
26928
27298
|
}[];
|
|
26929
27299
|
search_column?: string | undefined;
|
|
26930
27300
|
};
|
|
@@ -28422,12 +28792,13 @@ export declare class API {
|
|
|
28422
28792
|
reference?: string | undefined;
|
|
28423
28793
|
posted: boolean;
|
|
28424
28794
|
}[]>;
|
|
28425
|
-
|
|
28795
|
+
createFinancialEntryOld(financial_entry: {
|
|
28426
28796
|
date: string;
|
|
28427
28797
|
journal_id: string;
|
|
28428
28798
|
currency: string;
|
|
28429
28799
|
currency_exchange_rate?: number | undefined;
|
|
28430
28800
|
reference?: string | undefined;
|
|
28801
|
+
number?: string | undefined;
|
|
28431
28802
|
items: {
|
|
28432
28803
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
28433
28804
|
account_number: string;
|
|
@@ -28435,7 +28806,6 @@ export declare class API {
|
|
|
28435
28806
|
amount: number;
|
|
28436
28807
|
description?: string | undefined;
|
|
28437
28808
|
}[];
|
|
28438
|
-
number?: string | undefined;
|
|
28439
28809
|
pdf?: string | undefined;
|
|
28440
28810
|
}, params: {
|
|
28441
28811
|
financial_counterpart_account?: string | undefined;
|
|
@@ -28445,6 +28815,8 @@ export declare class API {
|
|
|
28445
28815
|
currency: string;
|
|
28446
28816
|
currency_exchange_rate?: number | undefined;
|
|
28447
28817
|
reference?: string | undefined;
|
|
28818
|
+
id: string;
|
|
28819
|
+
number: string;
|
|
28448
28820
|
items: {
|
|
28449
28821
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
28450
28822
|
account_number: string;
|
|
@@ -28453,9 +28825,39 @@ export declare class API {
|
|
|
28453
28825
|
description?: string | undefined;
|
|
28454
28826
|
counterpart_account: string;
|
|
28455
28827
|
}[];
|
|
28828
|
+
}>;
|
|
28829
|
+
createFinancialEntry(financial_entry: {
|
|
28830
|
+
date: string;
|
|
28831
|
+
journal_id: string;
|
|
28832
|
+
currency: string;
|
|
28833
|
+
currency_exchange_rate?: number | undefined;
|
|
28834
|
+
reference?: string | undefined;
|
|
28835
|
+
number?: string | undefined;
|
|
28836
|
+
items: {
|
|
28837
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
28838
|
+
account: string;
|
|
28839
|
+
amount: number;
|
|
28840
|
+
description?: string | undefined;
|
|
28841
|
+
}[];
|
|
28842
|
+
pdf?: string | undefined;
|
|
28843
|
+
}, params: {
|
|
28844
|
+
financial_counterpart_account?: string | undefined;
|
|
28845
|
+
} | undefined): import("../types/api").RequestData<{
|
|
28846
|
+
date: string;
|
|
28847
|
+
journal_id: string;
|
|
28848
|
+
currency: string;
|
|
28849
|
+
currency_exchange_rate?: number | undefined;
|
|
28850
|
+
reference?: string | undefined;
|
|
28456
28851
|
id: string;
|
|
28457
28852
|
number: string;
|
|
28458
|
-
|
|
28853
|
+
items: {
|
|
28854
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
28855
|
+
account: string;
|
|
28856
|
+
amount: number;
|
|
28857
|
+
description?: string | undefined;
|
|
28858
|
+
counterpart_account: string;
|
|
28859
|
+
}[];
|
|
28860
|
+
}[]>;
|
|
28459
28861
|
createJournalEntry(journal_entry: {
|
|
28460
28862
|
reference?: string | undefined;
|
|
28461
28863
|
due_date?: string | undefined;
|
|
@@ -28513,6 +28915,7 @@ export declare class API {
|
|
|
28513
28915
|
invoicing: import("../types/api").ApiFor<{
|
|
28514
28916
|
getInvoices(params: {
|
|
28515
28917
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
28918
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
28516
28919
|
date_from?: string | undefined;
|
|
28517
28920
|
date_to?: string | undefined;
|
|
28518
28921
|
page?: number | undefined;
|
|
@@ -28531,12 +28934,13 @@ export declare class API {
|
|
|
28531
28934
|
untaxed_amount: number;
|
|
28532
28935
|
total: number;
|
|
28533
28936
|
lines?: {
|
|
28534
|
-
description
|
|
28937
|
+
description?: string | undefined;
|
|
28535
28938
|
unit_price: number;
|
|
28536
28939
|
quantity: number;
|
|
28940
|
+
discount_amount?: number | undefined;
|
|
28537
28941
|
tax_amount: number;
|
|
28538
|
-
total: number;
|
|
28539
28942
|
untaxed_amount: number;
|
|
28943
|
+
total: number;
|
|
28540
28944
|
tax_rate?: number | undefined;
|
|
28541
28945
|
account_number?: string | undefined;
|
|
28542
28946
|
tax_id?: string | undefined;
|
|
@@ -28573,12 +28977,13 @@ export declare class API {
|
|
|
28573
28977
|
untaxed_amount: number;
|
|
28574
28978
|
total: number;
|
|
28575
28979
|
lines?: {
|
|
28576
|
-
description
|
|
28980
|
+
description?: string | undefined;
|
|
28577
28981
|
unit_price: number;
|
|
28578
28982
|
quantity: number;
|
|
28983
|
+
discount_amount?: number | undefined;
|
|
28579
28984
|
tax_amount: number;
|
|
28580
|
-
total: number;
|
|
28581
28985
|
untaxed_amount: number;
|
|
28986
|
+
total: number;
|
|
28582
28987
|
tax_rate?: number | undefined;
|
|
28583
28988
|
account_number?: string | undefined;
|
|
28584
28989
|
tax_id?: string | undefined;
|
|
@@ -28608,12 +29013,13 @@ export declare class API {
|
|
|
28608
29013
|
untaxed_amount: number;
|
|
28609
29014
|
total: number;
|
|
28610
29015
|
lines?: {
|
|
28611
|
-
description
|
|
29016
|
+
description?: string | undefined;
|
|
28612
29017
|
unit_price: number;
|
|
28613
29018
|
quantity: number;
|
|
29019
|
+
discount_amount?: number | undefined;
|
|
28614
29020
|
tax_amount: number;
|
|
28615
|
-
total: number;
|
|
28616
29021
|
untaxed_amount: number;
|
|
29022
|
+
total: number;
|
|
28617
29023
|
tax_rate?: number | undefined;
|
|
28618
29024
|
account_number?: string | undefined;
|
|
28619
29025
|
tax_id?: string | undefined;
|
|
@@ -28647,12 +29053,13 @@ export declare class API {
|
|
|
28647
29053
|
untaxed_amount: number;
|
|
28648
29054
|
total: number;
|
|
28649
29055
|
lines?: {
|
|
28650
|
-
description
|
|
29056
|
+
description?: string | undefined;
|
|
28651
29057
|
unit_price: number;
|
|
28652
29058
|
quantity: number;
|
|
29059
|
+
discount_amount?: number | undefined;
|
|
28653
29060
|
tax_amount: number;
|
|
28654
|
-
total: number;
|
|
28655
29061
|
untaxed_amount: number;
|
|
29062
|
+
total: number;
|
|
28656
29063
|
tax_rate?: number | undefined;
|
|
28657
29064
|
account_number?: string | undefined;
|
|
28658
29065
|
tax_id?: string | undefined;
|
|
@@ -29260,7 +29667,7 @@ export declare class API {
|
|
|
29260
29667
|
last_updated_on?: string | undefined;
|
|
29261
29668
|
confirmed_on?: string | undefined;
|
|
29262
29669
|
cancelled_on?: string | undefined;
|
|
29263
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
29670
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
29264
29671
|
discount_amount: number;
|
|
29265
29672
|
untaxed_amount_without_fees: number;
|
|
29266
29673
|
tax_amount_without_fees: number;
|
|
@@ -29407,7 +29814,7 @@ export declare class API {
|
|
|
29407
29814
|
last_updated_on?: string | undefined;
|
|
29408
29815
|
confirmed_on?: string | undefined;
|
|
29409
29816
|
cancelled_on?: string | undefined;
|
|
29410
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
29817
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
29411
29818
|
discount_amount: number;
|
|
29412
29819
|
untaxed_amount_without_fees: number;
|
|
29413
29820
|
tax_amount_without_fees: number;
|
|
@@ -29513,7 +29920,7 @@ export declare class API {
|
|
|
29513
29920
|
last_updated_on?: string | undefined;
|
|
29514
29921
|
confirmed_on?: string | undefined;
|
|
29515
29922
|
cancelled_on?: string | undefined;
|
|
29516
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
29923
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
29517
29924
|
discount_amount: number;
|
|
29518
29925
|
untaxed_amount_without_fees: number;
|
|
29519
29926
|
tax_amount_without_fees: number;
|
|
@@ -29624,7 +30031,7 @@ export declare class API {
|
|
|
29624
30031
|
name: string;
|
|
29625
30032
|
title: string;
|
|
29626
30033
|
type: string;
|
|
29627
|
-
|
|
30034
|
+
optional?: boolean | undefined;
|
|
29628
30035
|
}[];
|
|
29629
30036
|
search_column?: string | undefined;
|
|
29630
30037
|
};
|
|
@@ -31121,12 +31528,13 @@ export declare class API {
|
|
|
31121
31528
|
reference?: string | undefined;
|
|
31122
31529
|
posted: boolean;
|
|
31123
31530
|
}[]>;
|
|
31124
|
-
|
|
31531
|
+
createFinancialEntryOld(financial_entry: {
|
|
31125
31532
|
date: string;
|
|
31126
31533
|
journal_id: string;
|
|
31127
31534
|
currency: string;
|
|
31128
31535
|
currency_exchange_rate?: number | undefined;
|
|
31129
31536
|
reference?: string | undefined;
|
|
31537
|
+
number?: string | undefined;
|
|
31130
31538
|
items: {
|
|
31131
31539
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
31132
31540
|
account_number: string;
|
|
@@ -31134,7 +31542,6 @@ export declare class API {
|
|
|
31134
31542
|
amount: number;
|
|
31135
31543
|
description?: string | undefined;
|
|
31136
31544
|
}[];
|
|
31137
|
-
number?: string | undefined;
|
|
31138
31545
|
pdf?: string | undefined;
|
|
31139
31546
|
}, params: {
|
|
31140
31547
|
financial_counterpart_account?: string | undefined;
|
|
@@ -31144,6 +31551,8 @@ export declare class API {
|
|
|
31144
31551
|
currency: string;
|
|
31145
31552
|
currency_exchange_rate?: number | undefined;
|
|
31146
31553
|
reference?: string | undefined;
|
|
31554
|
+
id: string;
|
|
31555
|
+
number: string;
|
|
31147
31556
|
items: {
|
|
31148
31557
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
31149
31558
|
account_number: string;
|
|
@@ -31152,9 +31561,39 @@ export declare class API {
|
|
|
31152
31561
|
description?: string | undefined;
|
|
31153
31562
|
counterpart_account: string;
|
|
31154
31563
|
}[];
|
|
31564
|
+
}>;
|
|
31565
|
+
createFinancialEntry(financial_entry: {
|
|
31566
|
+
date: string;
|
|
31567
|
+
journal_id: string;
|
|
31568
|
+
currency: string;
|
|
31569
|
+
currency_exchange_rate?: number | undefined;
|
|
31570
|
+
reference?: string | undefined;
|
|
31571
|
+
number?: string | undefined;
|
|
31572
|
+
items: {
|
|
31573
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
31574
|
+
account: string;
|
|
31575
|
+
amount: number;
|
|
31576
|
+
description?: string | undefined;
|
|
31577
|
+
}[];
|
|
31578
|
+
pdf?: string | undefined;
|
|
31579
|
+
}, params: {
|
|
31580
|
+
financial_counterpart_account?: string | undefined;
|
|
31581
|
+
} | undefined): import("../types/api").RequestData<{
|
|
31582
|
+
date: string;
|
|
31583
|
+
journal_id: string;
|
|
31584
|
+
currency: string;
|
|
31585
|
+
currency_exchange_rate?: number | undefined;
|
|
31586
|
+
reference?: string | undefined;
|
|
31155
31587
|
id: string;
|
|
31156
31588
|
number: string;
|
|
31157
|
-
|
|
31589
|
+
items: {
|
|
31590
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
31591
|
+
account: string;
|
|
31592
|
+
amount: number;
|
|
31593
|
+
description?: string | undefined;
|
|
31594
|
+
counterpart_account: string;
|
|
31595
|
+
}[];
|
|
31596
|
+
}[]>;
|
|
31158
31597
|
createJournalEntry(journal_entry: {
|
|
31159
31598
|
reference?: string | undefined;
|
|
31160
31599
|
due_date?: string | undefined;
|
|
@@ -31212,6 +31651,7 @@ export declare class API {
|
|
|
31212
31651
|
invoicing: import("../types/api").ApiFor<{
|
|
31213
31652
|
getInvoices(params: {
|
|
31214
31653
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
31654
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
31215
31655
|
date_from?: string | undefined;
|
|
31216
31656
|
date_to?: string | undefined;
|
|
31217
31657
|
page?: number | undefined;
|
|
@@ -31230,12 +31670,13 @@ export declare class API {
|
|
|
31230
31670
|
untaxed_amount: number;
|
|
31231
31671
|
total: number;
|
|
31232
31672
|
lines?: {
|
|
31233
|
-
description
|
|
31673
|
+
description?: string | undefined;
|
|
31234
31674
|
unit_price: number;
|
|
31235
31675
|
quantity: number;
|
|
31676
|
+
discount_amount?: number | undefined;
|
|
31236
31677
|
tax_amount: number;
|
|
31237
|
-
total: number;
|
|
31238
31678
|
untaxed_amount: number;
|
|
31679
|
+
total: number;
|
|
31239
31680
|
tax_rate?: number | undefined;
|
|
31240
31681
|
account_number?: string | undefined;
|
|
31241
31682
|
tax_id?: string | undefined;
|
|
@@ -31272,12 +31713,13 @@ export declare class API {
|
|
|
31272
31713
|
untaxed_amount: number;
|
|
31273
31714
|
total: number;
|
|
31274
31715
|
lines?: {
|
|
31275
|
-
description
|
|
31716
|
+
description?: string | undefined;
|
|
31276
31717
|
unit_price: number;
|
|
31277
31718
|
quantity: number;
|
|
31719
|
+
discount_amount?: number | undefined;
|
|
31278
31720
|
tax_amount: number;
|
|
31279
|
-
total: number;
|
|
31280
31721
|
untaxed_amount: number;
|
|
31722
|
+
total: number;
|
|
31281
31723
|
tax_rate?: number | undefined;
|
|
31282
31724
|
account_number?: string | undefined;
|
|
31283
31725
|
tax_id?: string | undefined;
|
|
@@ -31307,12 +31749,13 @@ export declare class API {
|
|
|
31307
31749
|
untaxed_amount: number;
|
|
31308
31750
|
total: number;
|
|
31309
31751
|
lines?: {
|
|
31310
|
-
description
|
|
31752
|
+
description?: string | undefined;
|
|
31311
31753
|
unit_price: number;
|
|
31312
31754
|
quantity: number;
|
|
31755
|
+
discount_amount?: number | undefined;
|
|
31313
31756
|
tax_amount: number;
|
|
31314
|
-
total: number;
|
|
31315
31757
|
untaxed_amount: number;
|
|
31758
|
+
total: number;
|
|
31316
31759
|
tax_rate?: number | undefined;
|
|
31317
31760
|
account_number?: string | undefined;
|
|
31318
31761
|
tax_id?: string | undefined;
|
|
@@ -31346,12 +31789,13 @@ export declare class API {
|
|
|
31346
31789
|
untaxed_amount: number;
|
|
31347
31790
|
total: number;
|
|
31348
31791
|
lines?: {
|
|
31349
|
-
description
|
|
31792
|
+
description?: string | undefined;
|
|
31350
31793
|
unit_price: number;
|
|
31351
31794
|
quantity: number;
|
|
31795
|
+
discount_amount?: number | undefined;
|
|
31352
31796
|
tax_amount: number;
|
|
31353
|
-
total: number;
|
|
31354
31797
|
untaxed_amount: number;
|
|
31798
|
+
total: number;
|
|
31355
31799
|
tax_rate?: number | undefined;
|
|
31356
31800
|
account_number?: string | undefined;
|
|
31357
31801
|
tax_id?: string | undefined;
|
|
@@ -31959,7 +32403,7 @@ export declare class API {
|
|
|
31959
32403
|
last_updated_on?: string | undefined;
|
|
31960
32404
|
confirmed_on?: string | undefined;
|
|
31961
32405
|
cancelled_on?: string | undefined;
|
|
31962
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
32406
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
31963
32407
|
discount_amount: number;
|
|
31964
32408
|
untaxed_amount_without_fees: number;
|
|
31965
32409
|
tax_amount_without_fees: number;
|
|
@@ -32106,7 +32550,7 @@ export declare class API {
|
|
|
32106
32550
|
last_updated_on?: string | undefined;
|
|
32107
32551
|
confirmed_on?: string | undefined;
|
|
32108
32552
|
cancelled_on?: string | undefined;
|
|
32109
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
32553
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
32110
32554
|
discount_amount: number;
|
|
32111
32555
|
untaxed_amount_without_fees: number;
|
|
32112
32556
|
tax_amount_without_fees: number;
|
|
@@ -32212,7 +32656,7 @@ export declare class API {
|
|
|
32212
32656
|
last_updated_on?: string | undefined;
|
|
32213
32657
|
confirmed_on?: string | undefined;
|
|
32214
32658
|
cancelled_on?: string | undefined;
|
|
32215
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
32659
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
32216
32660
|
discount_amount: number;
|
|
32217
32661
|
untaxed_amount_without_fees: number;
|
|
32218
32662
|
tax_amount_without_fees: number;
|
|
@@ -32323,7 +32767,7 @@ export declare class API {
|
|
|
32323
32767
|
name: string;
|
|
32324
32768
|
title: string;
|
|
32325
32769
|
type: string;
|
|
32326
|
-
|
|
32770
|
+
optional?: boolean | undefined;
|
|
32327
32771
|
}[];
|
|
32328
32772
|
search_column?: string | undefined;
|
|
32329
32773
|
};
|
|
@@ -33824,12 +34268,13 @@ export declare class API {
|
|
|
33824
34268
|
reference?: string | undefined;
|
|
33825
34269
|
posted: boolean;
|
|
33826
34270
|
}[]>;
|
|
33827
|
-
|
|
34271
|
+
createFinancialEntryOld(financial_entry: {
|
|
33828
34272
|
date: string;
|
|
33829
34273
|
journal_id: string;
|
|
33830
34274
|
currency: string;
|
|
33831
34275
|
currency_exchange_rate?: number | undefined;
|
|
33832
34276
|
reference?: string | undefined;
|
|
34277
|
+
number?: string | undefined;
|
|
33833
34278
|
items: {
|
|
33834
34279
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
33835
34280
|
account_number: string;
|
|
@@ -33837,7 +34282,6 @@ export declare class API {
|
|
|
33837
34282
|
amount: number;
|
|
33838
34283
|
description?: string | undefined;
|
|
33839
34284
|
}[];
|
|
33840
|
-
number?: string | undefined;
|
|
33841
34285
|
pdf?: string | undefined;
|
|
33842
34286
|
}, params: {
|
|
33843
34287
|
financial_counterpart_account?: string | undefined;
|
|
@@ -33847,6 +34291,8 @@ export declare class API {
|
|
|
33847
34291
|
currency: string;
|
|
33848
34292
|
currency_exchange_rate?: number | undefined;
|
|
33849
34293
|
reference?: string | undefined;
|
|
34294
|
+
id: string;
|
|
34295
|
+
number: string;
|
|
33850
34296
|
items: {
|
|
33851
34297
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
33852
34298
|
account_number: string;
|
|
@@ -33855,9 +34301,39 @@ export declare class API {
|
|
|
33855
34301
|
description?: string | undefined;
|
|
33856
34302
|
counterpart_account: string;
|
|
33857
34303
|
}[];
|
|
34304
|
+
}>;
|
|
34305
|
+
createFinancialEntry(financial_entry: {
|
|
34306
|
+
date: string;
|
|
34307
|
+
journal_id: string;
|
|
34308
|
+
currency: string;
|
|
34309
|
+
currency_exchange_rate?: number | undefined;
|
|
34310
|
+
reference?: string | undefined;
|
|
34311
|
+
number?: string | undefined;
|
|
34312
|
+
items: {
|
|
34313
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
34314
|
+
account: string;
|
|
34315
|
+
amount: number;
|
|
34316
|
+
description?: string | undefined;
|
|
34317
|
+
}[];
|
|
34318
|
+
pdf?: string | undefined;
|
|
34319
|
+
}, params: {
|
|
34320
|
+
financial_counterpart_account?: string | undefined;
|
|
34321
|
+
} | undefined): import("../types/api").RequestData<{
|
|
34322
|
+
date: string;
|
|
34323
|
+
journal_id: string;
|
|
34324
|
+
currency: string;
|
|
34325
|
+
currency_exchange_rate?: number | undefined;
|
|
34326
|
+
reference?: string | undefined;
|
|
33858
34327
|
id: string;
|
|
33859
34328
|
number: string;
|
|
33860
|
-
|
|
34329
|
+
items: {
|
|
34330
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
34331
|
+
account: string;
|
|
34332
|
+
amount: number;
|
|
34333
|
+
description?: string | undefined;
|
|
34334
|
+
counterpart_account: string;
|
|
34335
|
+
}[];
|
|
34336
|
+
}[]>;
|
|
33861
34337
|
createJournalEntry(journal_entry: {
|
|
33862
34338
|
reference?: string | undefined;
|
|
33863
34339
|
due_date?: string | undefined;
|
|
@@ -33915,6 +34391,7 @@ export declare class API {
|
|
|
33915
34391
|
invoicing: import("../types/api").ApiFor<{
|
|
33916
34392
|
getInvoices(params: {
|
|
33917
34393
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
34394
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
33918
34395
|
date_from?: string | undefined;
|
|
33919
34396
|
date_to?: string | undefined;
|
|
33920
34397
|
page?: number | undefined;
|
|
@@ -33933,12 +34410,13 @@ export declare class API {
|
|
|
33933
34410
|
untaxed_amount: number;
|
|
33934
34411
|
total: number;
|
|
33935
34412
|
lines?: {
|
|
33936
|
-
description
|
|
34413
|
+
description?: string | undefined;
|
|
33937
34414
|
unit_price: number;
|
|
33938
34415
|
quantity: number;
|
|
34416
|
+
discount_amount?: number | undefined;
|
|
33939
34417
|
tax_amount: number;
|
|
33940
|
-
total: number;
|
|
33941
34418
|
untaxed_amount: number;
|
|
34419
|
+
total: number;
|
|
33942
34420
|
tax_rate?: number | undefined;
|
|
33943
34421
|
account_number?: string | undefined;
|
|
33944
34422
|
tax_id?: string | undefined;
|
|
@@ -33975,12 +34453,13 @@ export declare class API {
|
|
|
33975
34453
|
untaxed_amount: number;
|
|
33976
34454
|
total: number;
|
|
33977
34455
|
lines?: {
|
|
33978
|
-
description
|
|
34456
|
+
description?: string | undefined;
|
|
33979
34457
|
unit_price: number;
|
|
33980
34458
|
quantity: number;
|
|
34459
|
+
discount_amount?: number | undefined;
|
|
33981
34460
|
tax_amount: number;
|
|
33982
|
-
total: number;
|
|
33983
34461
|
untaxed_amount: number;
|
|
34462
|
+
total: number;
|
|
33984
34463
|
tax_rate?: number | undefined;
|
|
33985
34464
|
account_number?: string | undefined;
|
|
33986
34465
|
tax_id?: string | undefined;
|
|
@@ -34010,12 +34489,13 @@ export declare class API {
|
|
|
34010
34489
|
untaxed_amount: number;
|
|
34011
34490
|
total: number;
|
|
34012
34491
|
lines?: {
|
|
34013
|
-
description
|
|
34492
|
+
description?: string | undefined;
|
|
34014
34493
|
unit_price: number;
|
|
34015
34494
|
quantity: number;
|
|
34495
|
+
discount_amount?: number | undefined;
|
|
34016
34496
|
tax_amount: number;
|
|
34017
|
-
total: number;
|
|
34018
34497
|
untaxed_amount: number;
|
|
34498
|
+
total: number;
|
|
34019
34499
|
tax_rate?: number | undefined;
|
|
34020
34500
|
account_number?: string | undefined;
|
|
34021
34501
|
tax_id?: string | undefined;
|
|
@@ -34049,12 +34529,13 @@ export declare class API {
|
|
|
34049
34529
|
untaxed_amount: number;
|
|
34050
34530
|
total: number;
|
|
34051
34531
|
lines?: {
|
|
34052
|
-
description
|
|
34532
|
+
description?: string | undefined;
|
|
34053
34533
|
unit_price: number;
|
|
34054
34534
|
quantity: number;
|
|
34535
|
+
discount_amount?: number | undefined;
|
|
34055
34536
|
tax_amount: number;
|
|
34056
|
-
total: number;
|
|
34057
34537
|
untaxed_amount: number;
|
|
34538
|
+
total: number;
|
|
34058
34539
|
tax_rate?: number | undefined;
|
|
34059
34540
|
account_number?: string | undefined;
|
|
34060
34541
|
tax_id?: string | undefined;
|
|
@@ -34662,7 +35143,7 @@ export declare class API {
|
|
|
34662
35143
|
last_updated_on?: string | undefined;
|
|
34663
35144
|
confirmed_on?: string | undefined;
|
|
34664
35145
|
cancelled_on?: string | undefined;
|
|
34665
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
35146
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
34666
35147
|
discount_amount: number;
|
|
34667
35148
|
untaxed_amount_without_fees: number;
|
|
34668
35149
|
tax_amount_without_fees: number;
|
|
@@ -34809,7 +35290,7 @@ export declare class API {
|
|
|
34809
35290
|
last_updated_on?: string | undefined;
|
|
34810
35291
|
confirmed_on?: string | undefined;
|
|
34811
35292
|
cancelled_on?: string | undefined;
|
|
34812
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
35293
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
34813
35294
|
discount_amount: number;
|
|
34814
35295
|
untaxed_amount_without_fees: number;
|
|
34815
35296
|
tax_amount_without_fees: number;
|
|
@@ -34915,7 +35396,7 @@ export declare class API {
|
|
|
34915
35396
|
last_updated_on?: string | undefined;
|
|
34916
35397
|
confirmed_on?: string | undefined;
|
|
34917
35398
|
cancelled_on?: string | undefined;
|
|
34918
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
35399
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
34919
35400
|
discount_amount: number;
|
|
34920
35401
|
untaxed_amount_without_fees: number;
|
|
34921
35402
|
tax_amount_without_fees: number;
|
|
@@ -35026,7 +35507,7 @@ export declare class API {
|
|
|
35026
35507
|
name: string;
|
|
35027
35508
|
title: string;
|
|
35028
35509
|
type: string;
|
|
35029
|
-
|
|
35510
|
+
optional?: boolean | undefined;
|
|
35030
35511
|
}[];
|
|
35031
35512
|
search_column?: string | undefined;
|
|
35032
35513
|
};
|
|
@@ -36527,12 +37008,13 @@ export declare class API {
|
|
|
36527
37008
|
reference?: string | undefined;
|
|
36528
37009
|
posted: boolean;
|
|
36529
37010
|
}[]>;
|
|
36530
|
-
|
|
37011
|
+
createFinancialEntryOld(financial_entry: {
|
|
36531
37012
|
date: string;
|
|
36532
37013
|
journal_id: string;
|
|
36533
37014
|
currency: string;
|
|
36534
37015
|
currency_exchange_rate?: number | undefined;
|
|
36535
37016
|
reference?: string | undefined;
|
|
37017
|
+
number?: string | undefined;
|
|
36536
37018
|
items: {
|
|
36537
37019
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
36538
37020
|
account_number: string;
|
|
@@ -36540,7 +37022,6 @@ export declare class API {
|
|
|
36540
37022
|
amount: number;
|
|
36541
37023
|
description?: string | undefined;
|
|
36542
37024
|
}[];
|
|
36543
|
-
number?: string | undefined;
|
|
36544
37025
|
pdf?: string | undefined;
|
|
36545
37026
|
}, params: {
|
|
36546
37027
|
financial_counterpart_account?: string | undefined;
|
|
@@ -36550,6 +37031,8 @@ export declare class API {
|
|
|
36550
37031
|
currency: string;
|
|
36551
37032
|
currency_exchange_rate?: number | undefined;
|
|
36552
37033
|
reference?: string | undefined;
|
|
37034
|
+
id: string;
|
|
37035
|
+
number: string;
|
|
36553
37036
|
items: {
|
|
36554
37037
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
36555
37038
|
account_number: string;
|
|
@@ -36558,9 +37041,39 @@ export declare class API {
|
|
|
36558
37041
|
description?: string | undefined;
|
|
36559
37042
|
counterpart_account: string;
|
|
36560
37043
|
}[];
|
|
37044
|
+
}>;
|
|
37045
|
+
createFinancialEntry(financial_entry: {
|
|
37046
|
+
date: string;
|
|
37047
|
+
journal_id: string;
|
|
37048
|
+
currency: string;
|
|
37049
|
+
currency_exchange_rate?: number | undefined;
|
|
37050
|
+
reference?: string | undefined;
|
|
37051
|
+
number?: string | undefined;
|
|
37052
|
+
items: {
|
|
37053
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
37054
|
+
account: string;
|
|
37055
|
+
amount: number;
|
|
37056
|
+
description?: string | undefined;
|
|
37057
|
+
}[];
|
|
37058
|
+
pdf?: string | undefined;
|
|
37059
|
+
}, params: {
|
|
37060
|
+
financial_counterpart_account?: string | undefined;
|
|
37061
|
+
} | undefined): import("../types/api").RequestData<{
|
|
37062
|
+
date: string;
|
|
37063
|
+
journal_id: string;
|
|
37064
|
+
currency: string;
|
|
37065
|
+
currency_exchange_rate?: number | undefined;
|
|
37066
|
+
reference?: string | undefined;
|
|
36561
37067
|
id: string;
|
|
36562
37068
|
number: string;
|
|
36563
|
-
|
|
37069
|
+
items: {
|
|
37070
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
37071
|
+
account: string;
|
|
37072
|
+
amount: number;
|
|
37073
|
+
description?: string | undefined;
|
|
37074
|
+
counterpart_account: string;
|
|
37075
|
+
}[];
|
|
37076
|
+
}[]>;
|
|
36564
37077
|
createJournalEntry(journal_entry: {
|
|
36565
37078
|
reference?: string | undefined;
|
|
36566
37079
|
due_date?: string | undefined;
|
|
@@ -36618,6 +37131,7 @@ export declare class API {
|
|
|
36618
37131
|
invoicing: import("../types/api").ApiFor<{
|
|
36619
37132
|
getInvoices(params: {
|
|
36620
37133
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
37134
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
36621
37135
|
date_from?: string | undefined;
|
|
36622
37136
|
date_to?: string | undefined;
|
|
36623
37137
|
page?: number | undefined;
|
|
@@ -36636,12 +37150,13 @@ export declare class API {
|
|
|
36636
37150
|
untaxed_amount: number;
|
|
36637
37151
|
total: number;
|
|
36638
37152
|
lines?: {
|
|
36639
|
-
description
|
|
37153
|
+
description?: string | undefined;
|
|
36640
37154
|
unit_price: number;
|
|
36641
37155
|
quantity: number;
|
|
37156
|
+
discount_amount?: number | undefined;
|
|
36642
37157
|
tax_amount: number;
|
|
36643
|
-
total: number;
|
|
36644
37158
|
untaxed_amount: number;
|
|
37159
|
+
total: number;
|
|
36645
37160
|
tax_rate?: number | undefined;
|
|
36646
37161
|
account_number?: string | undefined;
|
|
36647
37162
|
tax_id?: string | undefined;
|
|
@@ -36678,12 +37193,13 @@ export declare class API {
|
|
|
36678
37193
|
untaxed_amount: number;
|
|
36679
37194
|
total: number;
|
|
36680
37195
|
lines?: {
|
|
36681
|
-
description
|
|
37196
|
+
description?: string | undefined;
|
|
36682
37197
|
unit_price: number;
|
|
36683
37198
|
quantity: number;
|
|
37199
|
+
discount_amount?: number | undefined;
|
|
36684
37200
|
tax_amount: number;
|
|
36685
|
-
total: number;
|
|
36686
37201
|
untaxed_amount: number;
|
|
37202
|
+
total: number;
|
|
36687
37203
|
tax_rate?: number | undefined;
|
|
36688
37204
|
account_number?: string | undefined;
|
|
36689
37205
|
tax_id?: string | undefined;
|
|
@@ -36713,12 +37229,13 @@ export declare class API {
|
|
|
36713
37229
|
untaxed_amount: number;
|
|
36714
37230
|
total: number;
|
|
36715
37231
|
lines?: {
|
|
36716
|
-
description
|
|
37232
|
+
description?: string | undefined;
|
|
36717
37233
|
unit_price: number;
|
|
36718
37234
|
quantity: number;
|
|
37235
|
+
discount_amount?: number | undefined;
|
|
36719
37236
|
tax_amount: number;
|
|
36720
|
-
total: number;
|
|
36721
37237
|
untaxed_amount: number;
|
|
37238
|
+
total: number;
|
|
36722
37239
|
tax_rate?: number | undefined;
|
|
36723
37240
|
account_number?: string | undefined;
|
|
36724
37241
|
tax_id?: string | undefined;
|
|
@@ -36752,12 +37269,13 @@ export declare class API {
|
|
|
36752
37269
|
untaxed_amount: number;
|
|
36753
37270
|
total: number;
|
|
36754
37271
|
lines?: {
|
|
36755
|
-
description
|
|
37272
|
+
description?: string | undefined;
|
|
36756
37273
|
unit_price: number;
|
|
36757
37274
|
quantity: number;
|
|
37275
|
+
discount_amount?: number | undefined;
|
|
36758
37276
|
tax_amount: number;
|
|
36759
|
-
total: number;
|
|
36760
37277
|
untaxed_amount: number;
|
|
37278
|
+
total: number;
|
|
36761
37279
|
tax_rate?: number | undefined;
|
|
36762
37280
|
account_number?: string | undefined;
|
|
36763
37281
|
tax_id?: string | undefined;
|
|
@@ -37365,7 +37883,7 @@ export declare class API {
|
|
|
37365
37883
|
last_updated_on?: string | undefined;
|
|
37366
37884
|
confirmed_on?: string | undefined;
|
|
37367
37885
|
cancelled_on?: string | undefined;
|
|
37368
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
37886
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
37369
37887
|
discount_amount: number;
|
|
37370
37888
|
untaxed_amount_without_fees: number;
|
|
37371
37889
|
tax_amount_without_fees: number;
|
|
@@ -37512,7 +38030,7 @@ export declare class API {
|
|
|
37512
38030
|
last_updated_on?: string | undefined;
|
|
37513
38031
|
confirmed_on?: string | undefined;
|
|
37514
38032
|
cancelled_on?: string | undefined;
|
|
37515
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
38033
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
37516
38034
|
discount_amount: number;
|
|
37517
38035
|
untaxed_amount_without_fees: number;
|
|
37518
38036
|
tax_amount_without_fees: number;
|
|
@@ -37618,7 +38136,7 @@ export declare class API {
|
|
|
37618
38136
|
last_updated_on?: string | undefined;
|
|
37619
38137
|
confirmed_on?: string | undefined;
|
|
37620
38138
|
cancelled_on?: string | undefined;
|
|
37621
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
38139
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
37622
38140
|
discount_amount: number;
|
|
37623
38141
|
untaxed_amount_without_fees: number;
|
|
37624
38142
|
tax_amount_without_fees: number;
|
|
@@ -37729,7 +38247,7 @@ export declare class API {
|
|
|
37729
38247
|
name: string;
|
|
37730
38248
|
title: string;
|
|
37731
38249
|
type: string;
|
|
37732
|
-
|
|
38250
|
+
optional?: boolean | undefined;
|
|
37733
38251
|
}[];
|
|
37734
38252
|
search_column?: string | undefined;
|
|
37735
38253
|
};
|
|
@@ -39230,12 +39748,13 @@ export declare class API {
|
|
|
39230
39748
|
reference?: string | undefined;
|
|
39231
39749
|
posted: boolean;
|
|
39232
39750
|
}[]>;
|
|
39233
|
-
|
|
39751
|
+
createFinancialEntryOld(financial_entry: {
|
|
39234
39752
|
date: string;
|
|
39235
39753
|
journal_id: string;
|
|
39236
39754
|
currency: string;
|
|
39237
39755
|
currency_exchange_rate?: number | undefined;
|
|
39238
39756
|
reference?: string | undefined;
|
|
39757
|
+
number?: string | undefined;
|
|
39239
39758
|
items: {
|
|
39240
39759
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
39241
39760
|
account_number: string;
|
|
@@ -39243,7 +39762,6 @@ export declare class API {
|
|
|
39243
39762
|
amount: number;
|
|
39244
39763
|
description?: string | undefined;
|
|
39245
39764
|
}[];
|
|
39246
|
-
number?: string | undefined;
|
|
39247
39765
|
pdf?: string | undefined;
|
|
39248
39766
|
}, params: {
|
|
39249
39767
|
financial_counterpart_account?: string | undefined;
|
|
@@ -39253,6 +39771,8 @@ export declare class API {
|
|
|
39253
39771
|
currency: string;
|
|
39254
39772
|
currency_exchange_rate?: number | undefined;
|
|
39255
39773
|
reference?: string | undefined;
|
|
39774
|
+
id: string;
|
|
39775
|
+
number: string;
|
|
39256
39776
|
items: {
|
|
39257
39777
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
39258
39778
|
account_number: string;
|
|
@@ -39261,9 +39781,39 @@ export declare class API {
|
|
|
39261
39781
|
description?: string | undefined;
|
|
39262
39782
|
counterpart_account: string;
|
|
39263
39783
|
}[];
|
|
39784
|
+
}>;
|
|
39785
|
+
createFinancialEntry(financial_entry: {
|
|
39786
|
+
date: string;
|
|
39787
|
+
journal_id: string;
|
|
39788
|
+
currency: string;
|
|
39789
|
+
currency_exchange_rate?: number | undefined;
|
|
39790
|
+
reference?: string | undefined;
|
|
39791
|
+
number?: string | undefined;
|
|
39792
|
+
items: {
|
|
39793
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
39794
|
+
account: string;
|
|
39795
|
+
amount: number;
|
|
39796
|
+
description?: string | undefined;
|
|
39797
|
+
}[];
|
|
39798
|
+
pdf?: string | undefined;
|
|
39799
|
+
}, params: {
|
|
39800
|
+
financial_counterpart_account?: string | undefined;
|
|
39801
|
+
} | undefined): import("../types/api").RequestData<{
|
|
39802
|
+
date: string;
|
|
39803
|
+
journal_id: string;
|
|
39804
|
+
currency: string;
|
|
39805
|
+
currency_exchange_rate?: number | undefined;
|
|
39806
|
+
reference?: string | undefined;
|
|
39264
39807
|
id: string;
|
|
39265
39808
|
number: string;
|
|
39266
|
-
|
|
39809
|
+
items: {
|
|
39810
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
39811
|
+
account: string;
|
|
39812
|
+
amount: number;
|
|
39813
|
+
description?: string | undefined;
|
|
39814
|
+
counterpart_account: string;
|
|
39815
|
+
}[];
|
|
39816
|
+
}[]>;
|
|
39267
39817
|
createJournalEntry(journal_entry: {
|
|
39268
39818
|
reference?: string | undefined;
|
|
39269
39819
|
due_date?: string | undefined;
|
|
@@ -39321,6 +39871,7 @@ export declare class API {
|
|
|
39321
39871
|
invoicing: import("../types/api").ApiFor<{
|
|
39322
39872
|
getInvoices(params: {
|
|
39323
39873
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
39874
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
39324
39875
|
date_from?: string | undefined;
|
|
39325
39876
|
date_to?: string | undefined;
|
|
39326
39877
|
page?: number | undefined;
|
|
@@ -39339,12 +39890,13 @@ export declare class API {
|
|
|
39339
39890
|
untaxed_amount: number;
|
|
39340
39891
|
total: number;
|
|
39341
39892
|
lines?: {
|
|
39342
|
-
description
|
|
39893
|
+
description?: string | undefined;
|
|
39343
39894
|
unit_price: number;
|
|
39344
39895
|
quantity: number;
|
|
39896
|
+
discount_amount?: number | undefined;
|
|
39345
39897
|
tax_amount: number;
|
|
39346
|
-
total: number;
|
|
39347
39898
|
untaxed_amount: number;
|
|
39899
|
+
total: number;
|
|
39348
39900
|
tax_rate?: number | undefined;
|
|
39349
39901
|
account_number?: string | undefined;
|
|
39350
39902
|
tax_id?: string | undefined;
|
|
@@ -39381,12 +39933,13 @@ export declare class API {
|
|
|
39381
39933
|
untaxed_amount: number;
|
|
39382
39934
|
total: number;
|
|
39383
39935
|
lines?: {
|
|
39384
|
-
description
|
|
39936
|
+
description?: string | undefined;
|
|
39385
39937
|
unit_price: number;
|
|
39386
39938
|
quantity: number;
|
|
39939
|
+
discount_amount?: number | undefined;
|
|
39387
39940
|
tax_amount: number;
|
|
39388
|
-
total: number;
|
|
39389
39941
|
untaxed_amount: number;
|
|
39942
|
+
total: number;
|
|
39390
39943
|
tax_rate?: number | undefined;
|
|
39391
39944
|
account_number?: string | undefined;
|
|
39392
39945
|
tax_id?: string | undefined;
|
|
@@ -39416,12 +39969,13 @@ export declare class API {
|
|
|
39416
39969
|
untaxed_amount: number;
|
|
39417
39970
|
total: number;
|
|
39418
39971
|
lines?: {
|
|
39419
|
-
description
|
|
39972
|
+
description?: string | undefined;
|
|
39420
39973
|
unit_price: number;
|
|
39421
39974
|
quantity: number;
|
|
39975
|
+
discount_amount?: number | undefined;
|
|
39422
39976
|
tax_amount: number;
|
|
39423
|
-
total: number;
|
|
39424
39977
|
untaxed_amount: number;
|
|
39978
|
+
total: number;
|
|
39425
39979
|
tax_rate?: number | undefined;
|
|
39426
39980
|
account_number?: string | undefined;
|
|
39427
39981
|
tax_id?: string | undefined;
|
|
@@ -39455,12 +40009,13 @@ export declare class API {
|
|
|
39455
40009
|
untaxed_amount: number;
|
|
39456
40010
|
total: number;
|
|
39457
40011
|
lines?: {
|
|
39458
|
-
description
|
|
40012
|
+
description?: string | undefined;
|
|
39459
40013
|
unit_price: number;
|
|
39460
40014
|
quantity: number;
|
|
40015
|
+
discount_amount?: number | undefined;
|
|
39461
40016
|
tax_amount: number;
|
|
39462
|
-
total: number;
|
|
39463
40017
|
untaxed_amount: number;
|
|
40018
|
+
total: number;
|
|
39464
40019
|
tax_rate?: number | undefined;
|
|
39465
40020
|
account_number?: string | undefined;
|
|
39466
40021
|
tax_id?: string | undefined;
|
|
@@ -40068,7 +40623,7 @@ export declare class API {
|
|
|
40068
40623
|
last_updated_on?: string | undefined;
|
|
40069
40624
|
confirmed_on?: string | undefined;
|
|
40070
40625
|
cancelled_on?: string | undefined;
|
|
40071
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
40626
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
40072
40627
|
discount_amount: number;
|
|
40073
40628
|
untaxed_amount_without_fees: number;
|
|
40074
40629
|
tax_amount_without_fees: number;
|
|
@@ -40215,7 +40770,7 @@ export declare class API {
|
|
|
40215
40770
|
last_updated_on?: string | undefined;
|
|
40216
40771
|
confirmed_on?: string | undefined;
|
|
40217
40772
|
cancelled_on?: string | undefined;
|
|
40218
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
40773
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
40219
40774
|
discount_amount: number;
|
|
40220
40775
|
untaxed_amount_without_fees: number;
|
|
40221
40776
|
tax_amount_without_fees: number;
|
|
@@ -40321,7 +40876,7 @@ export declare class API {
|
|
|
40321
40876
|
last_updated_on?: string | undefined;
|
|
40322
40877
|
confirmed_on?: string | undefined;
|
|
40323
40878
|
cancelled_on?: string | undefined;
|
|
40324
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
40879
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
40325
40880
|
discount_amount: number;
|
|
40326
40881
|
untaxed_amount_without_fees: number;
|
|
40327
40882
|
tax_amount_without_fees: number;
|
|
@@ -40432,7 +40987,7 @@ export declare class API {
|
|
|
40432
40987
|
name: string;
|
|
40433
40988
|
title: string;
|
|
40434
40989
|
type: string;
|
|
40435
|
-
|
|
40990
|
+
optional?: boolean | undefined;
|
|
40436
40991
|
}[];
|
|
40437
40992
|
search_column?: string | undefined;
|
|
40438
40993
|
};
|
|
@@ -40554,7 +41109,7 @@ export declare class API {
|
|
|
40554
41109
|
name: string;
|
|
40555
41110
|
title: string;
|
|
40556
41111
|
type: string;
|
|
40557
|
-
|
|
41112
|
+
optional?: boolean | undefined;
|
|
40558
41113
|
}[];
|
|
40559
41114
|
search_column?: string | undefined;
|
|
40560
41115
|
};
|