@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
|
@@ -1461,12 +1461,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
1461
1461
|
reference?: string | undefined;
|
|
1462
1462
|
posted: boolean;
|
|
1463
1463
|
}[]>;
|
|
1464
|
-
|
|
1464
|
+
createFinancialEntryOld(financial_entry: {
|
|
1465
1465
|
date: string;
|
|
1466
1466
|
journal_id: string;
|
|
1467
1467
|
currency: string;
|
|
1468
1468
|
currency_exchange_rate?: number | undefined;
|
|
1469
1469
|
reference?: string | undefined;
|
|
1470
|
+
number?: string | undefined;
|
|
1470
1471
|
items: {
|
|
1471
1472
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1472
1473
|
account_number: string;
|
|
@@ -1474,7 +1475,6 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
1474
1475
|
amount: number;
|
|
1475
1476
|
description?: string | undefined;
|
|
1476
1477
|
}[];
|
|
1477
|
-
number?: string | undefined;
|
|
1478
1478
|
pdf?: string | undefined;
|
|
1479
1479
|
}, params: {
|
|
1480
1480
|
financial_counterpart_account?: string | undefined;
|
|
@@ -1484,6 +1484,8 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
1484
1484
|
currency: string;
|
|
1485
1485
|
currency_exchange_rate?: number | undefined;
|
|
1486
1486
|
reference?: string | undefined;
|
|
1487
|
+
id: string;
|
|
1488
|
+
number: string;
|
|
1487
1489
|
items: {
|
|
1488
1490
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1489
1491
|
account_number: string;
|
|
@@ -1492,9 +1494,39 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
1492
1494
|
description?: string | undefined;
|
|
1493
1495
|
counterpart_account: string;
|
|
1494
1496
|
}[];
|
|
1497
|
+
}>;
|
|
1498
|
+
createFinancialEntry(financial_entry: {
|
|
1499
|
+
date: string;
|
|
1500
|
+
journal_id: string;
|
|
1501
|
+
currency: string;
|
|
1502
|
+
currency_exchange_rate?: number | undefined;
|
|
1503
|
+
reference?: string | undefined;
|
|
1504
|
+
number?: string | undefined;
|
|
1505
|
+
items: {
|
|
1506
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1507
|
+
account: string;
|
|
1508
|
+
amount: number;
|
|
1509
|
+
description?: string | undefined;
|
|
1510
|
+
}[];
|
|
1511
|
+
pdf?: string | undefined;
|
|
1512
|
+
}, params: {
|
|
1513
|
+
financial_counterpart_account?: string | undefined;
|
|
1514
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1515
|
+
date: string;
|
|
1516
|
+
journal_id: string;
|
|
1517
|
+
currency: string;
|
|
1518
|
+
currency_exchange_rate?: number | undefined;
|
|
1519
|
+
reference?: string | undefined;
|
|
1495
1520
|
id: string;
|
|
1496
1521
|
number: string;
|
|
1497
|
-
|
|
1522
|
+
items: {
|
|
1523
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1524
|
+
account: string;
|
|
1525
|
+
amount: number;
|
|
1526
|
+
description?: string | undefined;
|
|
1527
|
+
counterpart_account: string;
|
|
1528
|
+
}[];
|
|
1529
|
+
}[]>;
|
|
1498
1530
|
createJournalEntry(journal_entry: {
|
|
1499
1531
|
reference?: string | undefined;
|
|
1500
1532
|
due_date?: string | undefined;
|
|
@@ -1552,6 +1584,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
1552
1584
|
invoicing: import("../types/api").ApiFor<{
|
|
1553
1585
|
getInvoices(params: {
|
|
1554
1586
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
1587
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1555
1588
|
date_from?: string | undefined;
|
|
1556
1589
|
date_to?: string | undefined;
|
|
1557
1590
|
page?: number | undefined;
|
|
@@ -1570,12 +1603,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
1570
1603
|
untaxed_amount: number;
|
|
1571
1604
|
total: number;
|
|
1572
1605
|
lines?: {
|
|
1573
|
-
description
|
|
1606
|
+
description?: string | undefined;
|
|
1574
1607
|
unit_price: number;
|
|
1575
1608
|
quantity: number;
|
|
1609
|
+
discount_amount?: number | undefined;
|
|
1576
1610
|
tax_amount: number;
|
|
1577
|
-
total: number;
|
|
1578
1611
|
untaxed_amount: number;
|
|
1612
|
+
total: number;
|
|
1579
1613
|
tax_rate?: number | undefined;
|
|
1580
1614
|
account_number?: string | undefined;
|
|
1581
1615
|
tax_id?: string | undefined;
|
|
@@ -1612,12 +1646,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
1612
1646
|
untaxed_amount: number;
|
|
1613
1647
|
total: number;
|
|
1614
1648
|
lines?: {
|
|
1615
|
-
description
|
|
1649
|
+
description?: string | undefined;
|
|
1616
1650
|
unit_price: number;
|
|
1617
1651
|
quantity: number;
|
|
1652
|
+
discount_amount?: number | undefined;
|
|
1618
1653
|
tax_amount: number;
|
|
1619
|
-
total: number;
|
|
1620
1654
|
untaxed_amount: number;
|
|
1655
|
+
total: number;
|
|
1621
1656
|
tax_rate?: number | undefined;
|
|
1622
1657
|
account_number?: string | undefined;
|
|
1623
1658
|
tax_id?: string | undefined;
|
|
@@ -1647,12 +1682,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
1647
1682
|
untaxed_amount: number;
|
|
1648
1683
|
total: number;
|
|
1649
1684
|
lines?: {
|
|
1650
|
-
description
|
|
1685
|
+
description?: string | undefined;
|
|
1651
1686
|
unit_price: number;
|
|
1652
1687
|
quantity: number;
|
|
1688
|
+
discount_amount?: number | undefined;
|
|
1653
1689
|
tax_amount: number;
|
|
1654
|
-
total: number;
|
|
1655
1690
|
untaxed_amount: number;
|
|
1691
|
+
total: number;
|
|
1656
1692
|
tax_rate?: number | undefined;
|
|
1657
1693
|
account_number?: string | undefined;
|
|
1658
1694
|
tax_id?: string | undefined;
|
|
@@ -1686,12 +1722,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
1686
1722
|
untaxed_amount: number;
|
|
1687
1723
|
total: number;
|
|
1688
1724
|
lines?: {
|
|
1689
|
-
description
|
|
1725
|
+
description?: string | undefined;
|
|
1690
1726
|
unit_price: number;
|
|
1691
1727
|
quantity: number;
|
|
1728
|
+
discount_amount?: number | undefined;
|
|
1692
1729
|
tax_amount: number;
|
|
1693
|
-
total: number;
|
|
1694
1730
|
untaxed_amount: number;
|
|
1731
|
+
total: number;
|
|
1695
1732
|
tax_rate?: number | undefined;
|
|
1696
1733
|
account_number?: string | undefined;
|
|
1697
1734
|
tax_id?: string | undefined;
|
|
@@ -2299,7 +2336,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
2299
2336
|
last_updated_on?: string | undefined;
|
|
2300
2337
|
confirmed_on?: string | undefined;
|
|
2301
2338
|
cancelled_on?: string | undefined;
|
|
2302
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2339
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2303
2340
|
discount_amount: number;
|
|
2304
2341
|
untaxed_amount_without_fees: number;
|
|
2305
2342
|
tax_amount_without_fees: number;
|
|
@@ -2446,7 +2483,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
2446
2483
|
last_updated_on?: string | undefined;
|
|
2447
2484
|
confirmed_on?: string | undefined;
|
|
2448
2485
|
cancelled_on?: string | undefined;
|
|
2449
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2486
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2450
2487
|
discount_amount: number;
|
|
2451
2488
|
untaxed_amount_without_fees: number;
|
|
2452
2489
|
tax_amount_without_fees: number;
|
|
@@ -2552,7 +2589,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
2552
2589
|
last_updated_on?: string | undefined;
|
|
2553
2590
|
confirmed_on?: string | undefined;
|
|
2554
2591
|
cancelled_on?: string | undefined;
|
|
2555
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2592
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2556
2593
|
discount_amount: number;
|
|
2557
2594
|
untaxed_amount_without_fees: number;
|
|
2558
2595
|
tax_amount_without_fees: number;
|
|
@@ -2663,7 +2700,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
2663
2700
|
name: string;
|
|
2664
2701
|
title: string;
|
|
2665
2702
|
type: string;
|
|
2666
|
-
|
|
2703
|
+
optional?: boolean | undefined;
|
|
2667
2704
|
}[];
|
|
2668
2705
|
search_column?: string | undefined;
|
|
2669
2706
|
};
|
|
@@ -4160,12 +4197,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
4160
4197
|
reference?: string | undefined;
|
|
4161
4198
|
posted: boolean;
|
|
4162
4199
|
}[]>;
|
|
4163
|
-
|
|
4200
|
+
createFinancialEntryOld(financial_entry: {
|
|
4164
4201
|
date: string;
|
|
4165
4202
|
journal_id: string;
|
|
4166
4203
|
currency: string;
|
|
4167
4204
|
currency_exchange_rate?: number | undefined;
|
|
4168
4205
|
reference?: string | undefined;
|
|
4206
|
+
number?: string | undefined;
|
|
4169
4207
|
items: {
|
|
4170
4208
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4171
4209
|
account_number: string;
|
|
@@ -4173,7 +4211,6 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
4173
4211
|
amount: number;
|
|
4174
4212
|
description?: string | undefined;
|
|
4175
4213
|
}[];
|
|
4176
|
-
number?: string | undefined;
|
|
4177
4214
|
pdf?: string | undefined;
|
|
4178
4215
|
}, params: {
|
|
4179
4216
|
financial_counterpart_account?: string | undefined;
|
|
@@ -4183,6 +4220,8 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
4183
4220
|
currency: string;
|
|
4184
4221
|
currency_exchange_rate?: number | undefined;
|
|
4185
4222
|
reference?: string | undefined;
|
|
4223
|
+
id: string;
|
|
4224
|
+
number: string;
|
|
4186
4225
|
items: {
|
|
4187
4226
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4188
4227
|
account_number: string;
|
|
@@ -4191,9 +4230,39 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
4191
4230
|
description?: string | undefined;
|
|
4192
4231
|
counterpart_account: string;
|
|
4193
4232
|
}[];
|
|
4233
|
+
}>;
|
|
4234
|
+
createFinancialEntry(financial_entry: {
|
|
4235
|
+
date: string;
|
|
4236
|
+
journal_id: string;
|
|
4237
|
+
currency: string;
|
|
4238
|
+
currency_exchange_rate?: number | undefined;
|
|
4239
|
+
reference?: string | undefined;
|
|
4240
|
+
number?: string | undefined;
|
|
4241
|
+
items: {
|
|
4242
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4243
|
+
account: string;
|
|
4244
|
+
amount: number;
|
|
4245
|
+
description?: string | undefined;
|
|
4246
|
+
}[];
|
|
4247
|
+
pdf?: string | undefined;
|
|
4248
|
+
}, params: {
|
|
4249
|
+
financial_counterpart_account?: string | undefined;
|
|
4250
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4251
|
+
date: string;
|
|
4252
|
+
journal_id: string;
|
|
4253
|
+
currency: string;
|
|
4254
|
+
currency_exchange_rate?: number | undefined;
|
|
4255
|
+
reference?: string | undefined;
|
|
4194
4256
|
id: string;
|
|
4195
4257
|
number: string;
|
|
4196
|
-
|
|
4258
|
+
items: {
|
|
4259
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4260
|
+
account: string;
|
|
4261
|
+
amount: number;
|
|
4262
|
+
description?: string | undefined;
|
|
4263
|
+
counterpart_account: string;
|
|
4264
|
+
}[];
|
|
4265
|
+
}[]>;
|
|
4197
4266
|
createJournalEntry(journal_entry: {
|
|
4198
4267
|
reference?: string | undefined;
|
|
4199
4268
|
due_date?: string | undefined;
|
|
@@ -4251,6 +4320,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
4251
4320
|
invoicing: import("../types/api").ApiFor<{
|
|
4252
4321
|
getInvoices(params: {
|
|
4253
4322
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
4323
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
4254
4324
|
date_from?: string | undefined;
|
|
4255
4325
|
date_to?: string | undefined;
|
|
4256
4326
|
page?: number | undefined;
|
|
@@ -4269,12 +4339,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
4269
4339
|
untaxed_amount: number;
|
|
4270
4340
|
total: number;
|
|
4271
4341
|
lines?: {
|
|
4272
|
-
description
|
|
4342
|
+
description?: string | undefined;
|
|
4273
4343
|
unit_price: number;
|
|
4274
4344
|
quantity: number;
|
|
4345
|
+
discount_amount?: number | undefined;
|
|
4275
4346
|
tax_amount: number;
|
|
4276
|
-
total: number;
|
|
4277
4347
|
untaxed_amount: number;
|
|
4348
|
+
total: number;
|
|
4278
4349
|
tax_rate?: number | undefined;
|
|
4279
4350
|
account_number?: string | undefined;
|
|
4280
4351
|
tax_id?: string | undefined;
|
|
@@ -4311,12 +4382,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
4311
4382
|
untaxed_amount: number;
|
|
4312
4383
|
total: number;
|
|
4313
4384
|
lines?: {
|
|
4314
|
-
description
|
|
4385
|
+
description?: string | undefined;
|
|
4315
4386
|
unit_price: number;
|
|
4316
4387
|
quantity: number;
|
|
4388
|
+
discount_amount?: number | undefined;
|
|
4317
4389
|
tax_amount: number;
|
|
4318
|
-
total: number;
|
|
4319
4390
|
untaxed_amount: number;
|
|
4391
|
+
total: number;
|
|
4320
4392
|
tax_rate?: number | undefined;
|
|
4321
4393
|
account_number?: string | undefined;
|
|
4322
4394
|
tax_id?: string | undefined;
|
|
@@ -4346,12 +4418,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
4346
4418
|
untaxed_amount: number;
|
|
4347
4419
|
total: number;
|
|
4348
4420
|
lines?: {
|
|
4349
|
-
description
|
|
4421
|
+
description?: string | undefined;
|
|
4350
4422
|
unit_price: number;
|
|
4351
4423
|
quantity: number;
|
|
4424
|
+
discount_amount?: number | undefined;
|
|
4352
4425
|
tax_amount: number;
|
|
4353
|
-
total: number;
|
|
4354
4426
|
untaxed_amount: number;
|
|
4427
|
+
total: number;
|
|
4355
4428
|
tax_rate?: number | undefined;
|
|
4356
4429
|
account_number?: string | undefined;
|
|
4357
4430
|
tax_id?: string | undefined;
|
|
@@ -4385,12 +4458,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
4385
4458
|
untaxed_amount: number;
|
|
4386
4459
|
total: number;
|
|
4387
4460
|
lines?: {
|
|
4388
|
-
description
|
|
4461
|
+
description?: string | undefined;
|
|
4389
4462
|
unit_price: number;
|
|
4390
4463
|
quantity: number;
|
|
4464
|
+
discount_amount?: number | undefined;
|
|
4391
4465
|
tax_amount: number;
|
|
4392
|
-
total: number;
|
|
4393
4466
|
untaxed_amount: number;
|
|
4467
|
+
total: number;
|
|
4394
4468
|
tax_rate?: number | undefined;
|
|
4395
4469
|
account_number?: string | undefined;
|
|
4396
4470
|
tax_id?: string | undefined;
|
|
@@ -4998,7 +5072,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
4998
5072
|
last_updated_on?: string | undefined;
|
|
4999
5073
|
confirmed_on?: string | undefined;
|
|
5000
5074
|
cancelled_on?: string | undefined;
|
|
5001
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5075
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
5002
5076
|
discount_amount: number;
|
|
5003
5077
|
untaxed_amount_without_fees: number;
|
|
5004
5078
|
tax_amount_without_fees: number;
|
|
@@ -5145,7 +5219,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
5145
5219
|
last_updated_on?: string | undefined;
|
|
5146
5220
|
confirmed_on?: string | undefined;
|
|
5147
5221
|
cancelled_on?: string | undefined;
|
|
5148
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5222
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
5149
5223
|
discount_amount: number;
|
|
5150
5224
|
untaxed_amount_without_fees: number;
|
|
5151
5225
|
tax_amount_without_fees: number;
|
|
@@ -5251,7 +5325,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
5251
5325
|
last_updated_on?: string | undefined;
|
|
5252
5326
|
confirmed_on?: string | undefined;
|
|
5253
5327
|
cancelled_on?: string | undefined;
|
|
5254
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5328
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
5255
5329
|
discount_amount: number;
|
|
5256
5330
|
untaxed_amount_without_fees: number;
|
|
5257
5331
|
tax_amount_without_fees: number;
|
|
@@ -5362,7 +5436,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
5362
5436
|
name: string;
|
|
5363
5437
|
title: string;
|
|
5364
5438
|
type: string;
|
|
5365
|
-
|
|
5439
|
+
optional?: boolean | undefined;
|
|
5366
5440
|
}[];
|
|
5367
5441
|
search_column?: string | undefined;
|
|
5368
5442
|
};
|
|
@@ -6863,12 +6937,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
6863
6937
|
reference?: string | undefined;
|
|
6864
6938
|
posted: boolean;
|
|
6865
6939
|
}[]>;
|
|
6866
|
-
|
|
6940
|
+
createFinancialEntryOld(financial_entry: {
|
|
6867
6941
|
date: string;
|
|
6868
6942
|
journal_id: string;
|
|
6869
6943
|
currency: string;
|
|
6870
6944
|
currency_exchange_rate?: number | undefined;
|
|
6871
6945
|
reference?: string | undefined;
|
|
6946
|
+
number?: string | undefined;
|
|
6872
6947
|
items: {
|
|
6873
6948
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6874
6949
|
account_number: string;
|
|
@@ -6876,7 +6951,6 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
6876
6951
|
amount: number;
|
|
6877
6952
|
description?: string | undefined;
|
|
6878
6953
|
}[];
|
|
6879
|
-
number?: string | undefined;
|
|
6880
6954
|
pdf?: string | undefined;
|
|
6881
6955
|
}, params: {
|
|
6882
6956
|
financial_counterpart_account?: string | undefined;
|
|
@@ -6886,6 +6960,8 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
6886
6960
|
currency: string;
|
|
6887
6961
|
currency_exchange_rate?: number | undefined;
|
|
6888
6962
|
reference?: string | undefined;
|
|
6963
|
+
id: string;
|
|
6964
|
+
number: string;
|
|
6889
6965
|
items: {
|
|
6890
6966
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6891
6967
|
account_number: string;
|
|
@@ -6894,9 +6970,39 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
6894
6970
|
description?: string | undefined;
|
|
6895
6971
|
counterpart_account: string;
|
|
6896
6972
|
}[];
|
|
6973
|
+
}>;
|
|
6974
|
+
createFinancialEntry(financial_entry: {
|
|
6975
|
+
date: string;
|
|
6976
|
+
journal_id: string;
|
|
6977
|
+
currency: string;
|
|
6978
|
+
currency_exchange_rate?: number | undefined;
|
|
6979
|
+
reference?: string | undefined;
|
|
6980
|
+
number?: string | undefined;
|
|
6981
|
+
items: {
|
|
6982
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6983
|
+
account: string;
|
|
6984
|
+
amount: number;
|
|
6985
|
+
description?: string | undefined;
|
|
6986
|
+
}[];
|
|
6987
|
+
pdf?: string | undefined;
|
|
6988
|
+
}, params: {
|
|
6989
|
+
financial_counterpart_account?: string | undefined;
|
|
6990
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6991
|
+
date: string;
|
|
6992
|
+
journal_id: string;
|
|
6993
|
+
currency: string;
|
|
6994
|
+
currency_exchange_rate?: number | undefined;
|
|
6995
|
+
reference?: string | undefined;
|
|
6897
6996
|
id: string;
|
|
6898
6997
|
number: string;
|
|
6899
|
-
|
|
6998
|
+
items: {
|
|
6999
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
7000
|
+
account: string;
|
|
7001
|
+
amount: number;
|
|
7002
|
+
description?: string | undefined;
|
|
7003
|
+
counterpart_account: string;
|
|
7004
|
+
}[];
|
|
7005
|
+
}[]>;
|
|
6900
7006
|
createJournalEntry(journal_entry: {
|
|
6901
7007
|
reference?: string | undefined;
|
|
6902
7008
|
due_date?: string | undefined;
|
|
@@ -6954,6 +7060,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
6954
7060
|
invoicing: import("../types/api").ApiFor<{
|
|
6955
7061
|
getInvoices(params: {
|
|
6956
7062
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
7063
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
6957
7064
|
date_from?: string | undefined;
|
|
6958
7065
|
date_to?: string | undefined;
|
|
6959
7066
|
page?: number | undefined;
|
|
@@ -6972,12 +7079,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
6972
7079
|
untaxed_amount: number;
|
|
6973
7080
|
total: number;
|
|
6974
7081
|
lines?: {
|
|
6975
|
-
description
|
|
7082
|
+
description?: string | undefined;
|
|
6976
7083
|
unit_price: number;
|
|
6977
7084
|
quantity: number;
|
|
7085
|
+
discount_amount?: number | undefined;
|
|
6978
7086
|
tax_amount: number;
|
|
6979
|
-
total: number;
|
|
6980
7087
|
untaxed_amount: number;
|
|
7088
|
+
total: number;
|
|
6981
7089
|
tax_rate?: number | undefined;
|
|
6982
7090
|
account_number?: string | undefined;
|
|
6983
7091
|
tax_id?: string | undefined;
|
|
@@ -7014,12 +7122,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
7014
7122
|
untaxed_amount: number;
|
|
7015
7123
|
total: number;
|
|
7016
7124
|
lines?: {
|
|
7017
|
-
description
|
|
7125
|
+
description?: string | undefined;
|
|
7018
7126
|
unit_price: number;
|
|
7019
7127
|
quantity: number;
|
|
7128
|
+
discount_amount?: number | undefined;
|
|
7020
7129
|
tax_amount: number;
|
|
7021
|
-
total: number;
|
|
7022
7130
|
untaxed_amount: number;
|
|
7131
|
+
total: number;
|
|
7023
7132
|
tax_rate?: number | undefined;
|
|
7024
7133
|
account_number?: string | undefined;
|
|
7025
7134
|
tax_id?: string | undefined;
|
|
@@ -7049,12 +7158,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
7049
7158
|
untaxed_amount: number;
|
|
7050
7159
|
total: number;
|
|
7051
7160
|
lines?: {
|
|
7052
|
-
description
|
|
7161
|
+
description?: string | undefined;
|
|
7053
7162
|
unit_price: number;
|
|
7054
7163
|
quantity: number;
|
|
7164
|
+
discount_amount?: number | undefined;
|
|
7055
7165
|
tax_amount: number;
|
|
7056
|
-
total: number;
|
|
7057
7166
|
untaxed_amount: number;
|
|
7167
|
+
total: number;
|
|
7058
7168
|
tax_rate?: number | undefined;
|
|
7059
7169
|
account_number?: string | undefined;
|
|
7060
7170
|
tax_id?: string | undefined;
|
|
@@ -7088,12 +7198,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
7088
7198
|
untaxed_amount: number;
|
|
7089
7199
|
total: number;
|
|
7090
7200
|
lines?: {
|
|
7091
|
-
description
|
|
7201
|
+
description?: string | undefined;
|
|
7092
7202
|
unit_price: number;
|
|
7093
7203
|
quantity: number;
|
|
7204
|
+
discount_amount?: number | undefined;
|
|
7094
7205
|
tax_amount: number;
|
|
7095
|
-
total: number;
|
|
7096
7206
|
untaxed_amount: number;
|
|
7207
|
+
total: number;
|
|
7097
7208
|
tax_rate?: number | undefined;
|
|
7098
7209
|
account_number?: string | undefined;
|
|
7099
7210
|
tax_id?: string | undefined;
|
|
@@ -7701,7 +7812,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
7701
7812
|
last_updated_on?: string | undefined;
|
|
7702
7813
|
confirmed_on?: string | undefined;
|
|
7703
7814
|
cancelled_on?: string | undefined;
|
|
7704
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
7815
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7705
7816
|
discount_amount: number;
|
|
7706
7817
|
untaxed_amount_without_fees: number;
|
|
7707
7818
|
tax_amount_without_fees: number;
|
|
@@ -7848,7 +7959,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
7848
7959
|
last_updated_on?: string | undefined;
|
|
7849
7960
|
confirmed_on?: string | undefined;
|
|
7850
7961
|
cancelled_on?: string | undefined;
|
|
7851
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
7962
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7852
7963
|
discount_amount: number;
|
|
7853
7964
|
untaxed_amount_without_fees: number;
|
|
7854
7965
|
tax_amount_without_fees: number;
|
|
@@ -7954,7 +8065,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
7954
8065
|
last_updated_on?: string | undefined;
|
|
7955
8066
|
confirmed_on?: string | undefined;
|
|
7956
8067
|
cancelled_on?: string | undefined;
|
|
7957
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
8068
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7958
8069
|
discount_amount: number;
|
|
7959
8070
|
untaxed_amount_without_fees: number;
|
|
7960
8071
|
tax_amount_without_fees: number;
|
|
@@ -8065,7 +8176,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
8065
8176
|
name: string;
|
|
8066
8177
|
title: string;
|
|
8067
8178
|
type: string;
|
|
8068
|
-
|
|
8179
|
+
optional?: boolean | undefined;
|
|
8069
8180
|
}[];
|
|
8070
8181
|
search_column?: string | undefined;
|
|
8071
8182
|
};
|
|
@@ -9566,12 +9677,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
9566
9677
|
reference?: string | undefined;
|
|
9567
9678
|
posted: boolean;
|
|
9568
9679
|
}[]>;
|
|
9569
|
-
|
|
9680
|
+
createFinancialEntryOld(financial_entry: {
|
|
9570
9681
|
date: string;
|
|
9571
9682
|
journal_id: string;
|
|
9572
9683
|
currency: string;
|
|
9573
9684
|
currency_exchange_rate?: number | undefined;
|
|
9574
9685
|
reference?: string | undefined;
|
|
9686
|
+
number?: string | undefined;
|
|
9575
9687
|
items: {
|
|
9576
9688
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9577
9689
|
account_number: string;
|
|
@@ -9579,7 +9691,6 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
9579
9691
|
amount: number;
|
|
9580
9692
|
description?: string | undefined;
|
|
9581
9693
|
}[];
|
|
9582
|
-
number?: string | undefined;
|
|
9583
9694
|
pdf?: string | undefined;
|
|
9584
9695
|
}, params: {
|
|
9585
9696
|
financial_counterpart_account?: string | undefined;
|
|
@@ -9589,6 +9700,8 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
9589
9700
|
currency: string;
|
|
9590
9701
|
currency_exchange_rate?: number | undefined;
|
|
9591
9702
|
reference?: string | undefined;
|
|
9703
|
+
id: string;
|
|
9704
|
+
number: string;
|
|
9592
9705
|
items: {
|
|
9593
9706
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9594
9707
|
account_number: string;
|
|
@@ -9597,9 +9710,39 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
9597
9710
|
description?: string | undefined;
|
|
9598
9711
|
counterpart_account: string;
|
|
9599
9712
|
}[];
|
|
9713
|
+
}>;
|
|
9714
|
+
createFinancialEntry(financial_entry: {
|
|
9715
|
+
date: string;
|
|
9716
|
+
journal_id: string;
|
|
9717
|
+
currency: string;
|
|
9718
|
+
currency_exchange_rate?: number | undefined;
|
|
9719
|
+
reference?: string | undefined;
|
|
9720
|
+
number?: string | undefined;
|
|
9721
|
+
items: {
|
|
9722
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9723
|
+
account: string;
|
|
9724
|
+
amount: number;
|
|
9725
|
+
description?: string | undefined;
|
|
9726
|
+
}[];
|
|
9727
|
+
pdf?: string | undefined;
|
|
9728
|
+
}, params: {
|
|
9729
|
+
financial_counterpart_account?: string | undefined;
|
|
9730
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9731
|
+
date: string;
|
|
9732
|
+
journal_id: string;
|
|
9733
|
+
currency: string;
|
|
9734
|
+
currency_exchange_rate?: number | undefined;
|
|
9735
|
+
reference?: string | undefined;
|
|
9600
9736
|
id: string;
|
|
9601
9737
|
number: string;
|
|
9602
|
-
|
|
9738
|
+
items: {
|
|
9739
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9740
|
+
account: string;
|
|
9741
|
+
amount: number;
|
|
9742
|
+
description?: string | undefined;
|
|
9743
|
+
counterpart_account: string;
|
|
9744
|
+
}[];
|
|
9745
|
+
}[]>;
|
|
9603
9746
|
createJournalEntry(journal_entry: {
|
|
9604
9747
|
reference?: string | undefined;
|
|
9605
9748
|
due_date?: string | undefined;
|
|
@@ -9657,6 +9800,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
9657
9800
|
invoicing: import("../types/api").ApiFor<{
|
|
9658
9801
|
getInvoices(params: {
|
|
9659
9802
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
9803
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
9660
9804
|
date_from?: string | undefined;
|
|
9661
9805
|
date_to?: string | undefined;
|
|
9662
9806
|
page?: number | undefined;
|
|
@@ -9675,12 +9819,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
9675
9819
|
untaxed_amount: number;
|
|
9676
9820
|
total: number;
|
|
9677
9821
|
lines?: {
|
|
9678
|
-
description
|
|
9822
|
+
description?: string | undefined;
|
|
9679
9823
|
unit_price: number;
|
|
9680
9824
|
quantity: number;
|
|
9825
|
+
discount_amount?: number | undefined;
|
|
9681
9826
|
tax_amount: number;
|
|
9682
|
-
total: number;
|
|
9683
9827
|
untaxed_amount: number;
|
|
9828
|
+
total: number;
|
|
9684
9829
|
tax_rate?: number | undefined;
|
|
9685
9830
|
account_number?: string | undefined;
|
|
9686
9831
|
tax_id?: string | undefined;
|
|
@@ -9717,12 +9862,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
9717
9862
|
untaxed_amount: number;
|
|
9718
9863
|
total: number;
|
|
9719
9864
|
lines?: {
|
|
9720
|
-
description
|
|
9865
|
+
description?: string | undefined;
|
|
9721
9866
|
unit_price: number;
|
|
9722
9867
|
quantity: number;
|
|
9868
|
+
discount_amount?: number | undefined;
|
|
9723
9869
|
tax_amount: number;
|
|
9724
|
-
total: number;
|
|
9725
9870
|
untaxed_amount: number;
|
|
9871
|
+
total: number;
|
|
9726
9872
|
tax_rate?: number | undefined;
|
|
9727
9873
|
account_number?: string | undefined;
|
|
9728
9874
|
tax_id?: string | undefined;
|
|
@@ -9752,12 +9898,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
9752
9898
|
untaxed_amount: number;
|
|
9753
9899
|
total: number;
|
|
9754
9900
|
lines?: {
|
|
9755
|
-
description
|
|
9901
|
+
description?: string | undefined;
|
|
9756
9902
|
unit_price: number;
|
|
9757
9903
|
quantity: number;
|
|
9904
|
+
discount_amount?: number | undefined;
|
|
9758
9905
|
tax_amount: number;
|
|
9759
|
-
total: number;
|
|
9760
9906
|
untaxed_amount: number;
|
|
9907
|
+
total: number;
|
|
9761
9908
|
tax_rate?: number | undefined;
|
|
9762
9909
|
account_number?: string | undefined;
|
|
9763
9910
|
tax_id?: string | undefined;
|
|
@@ -9791,12 +9938,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
9791
9938
|
untaxed_amount: number;
|
|
9792
9939
|
total: number;
|
|
9793
9940
|
lines?: {
|
|
9794
|
-
description
|
|
9941
|
+
description?: string | undefined;
|
|
9795
9942
|
unit_price: number;
|
|
9796
9943
|
quantity: number;
|
|
9944
|
+
discount_amount?: number | undefined;
|
|
9797
9945
|
tax_amount: number;
|
|
9798
|
-
total: number;
|
|
9799
9946
|
untaxed_amount: number;
|
|
9947
|
+
total: number;
|
|
9800
9948
|
tax_rate?: number | undefined;
|
|
9801
9949
|
account_number?: string | undefined;
|
|
9802
9950
|
tax_id?: string | undefined;
|
|
@@ -10404,7 +10552,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
10404
10552
|
last_updated_on?: string | undefined;
|
|
10405
10553
|
confirmed_on?: string | undefined;
|
|
10406
10554
|
cancelled_on?: string | undefined;
|
|
10407
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10555
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10408
10556
|
discount_amount: number;
|
|
10409
10557
|
untaxed_amount_without_fees: number;
|
|
10410
10558
|
tax_amount_without_fees: number;
|
|
@@ -10551,7 +10699,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
10551
10699
|
last_updated_on?: string | undefined;
|
|
10552
10700
|
confirmed_on?: string | undefined;
|
|
10553
10701
|
cancelled_on?: string | undefined;
|
|
10554
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10702
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10555
10703
|
discount_amount: number;
|
|
10556
10704
|
untaxed_amount_without_fees: number;
|
|
10557
10705
|
tax_amount_without_fees: number;
|
|
@@ -10657,7 +10805,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
10657
10805
|
last_updated_on?: string | undefined;
|
|
10658
10806
|
confirmed_on?: string | undefined;
|
|
10659
10807
|
cancelled_on?: string | undefined;
|
|
10660
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10808
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10661
10809
|
discount_amount: number;
|
|
10662
10810
|
untaxed_amount_without_fees: number;
|
|
10663
10811
|
tax_amount_without_fees: number;
|
|
@@ -10768,7 +10916,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
10768
10916
|
name: string;
|
|
10769
10917
|
title: string;
|
|
10770
10918
|
type: string;
|
|
10771
|
-
|
|
10919
|
+
optional?: boolean | undefined;
|
|
10772
10920
|
}[];
|
|
10773
10921
|
search_column?: string | undefined;
|
|
10774
10922
|
};
|
|
@@ -12269,12 +12417,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
12269
12417
|
reference?: string | undefined;
|
|
12270
12418
|
posted: boolean;
|
|
12271
12419
|
}[]>;
|
|
12272
|
-
|
|
12420
|
+
createFinancialEntryOld(financial_entry: {
|
|
12273
12421
|
date: string;
|
|
12274
12422
|
journal_id: string;
|
|
12275
12423
|
currency: string;
|
|
12276
12424
|
currency_exchange_rate?: number | undefined;
|
|
12277
12425
|
reference?: string | undefined;
|
|
12426
|
+
number?: string | undefined;
|
|
12278
12427
|
items: {
|
|
12279
12428
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12280
12429
|
account_number: string;
|
|
@@ -12282,7 +12431,6 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
12282
12431
|
amount: number;
|
|
12283
12432
|
description?: string | undefined;
|
|
12284
12433
|
}[];
|
|
12285
|
-
number?: string | undefined;
|
|
12286
12434
|
pdf?: string | undefined;
|
|
12287
12435
|
}, params: {
|
|
12288
12436
|
financial_counterpart_account?: string | undefined;
|
|
@@ -12292,6 +12440,8 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
12292
12440
|
currency: string;
|
|
12293
12441
|
currency_exchange_rate?: number | undefined;
|
|
12294
12442
|
reference?: string | undefined;
|
|
12443
|
+
id: string;
|
|
12444
|
+
number: string;
|
|
12295
12445
|
items: {
|
|
12296
12446
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12297
12447
|
account_number: string;
|
|
@@ -12300,9 +12450,39 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
12300
12450
|
description?: string | undefined;
|
|
12301
12451
|
counterpart_account: string;
|
|
12302
12452
|
}[];
|
|
12453
|
+
}>;
|
|
12454
|
+
createFinancialEntry(financial_entry: {
|
|
12455
|
+
date: string;
|
|
12456
|
+
journal_id: string;
|
|
12457
|
+
currency: string;
|
|
12458
|
+
currency_exchange_rate?: number | undefined;
|
|
12459
|
+
reference?: string | undefined;
|
|
12460
|
+
number?: string | undefined;
|
|
12461
|
+
items: {
|
|
12462
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12463
|
+
account: string;
|
|
12464
|
+
amount: number;
|
|
12465
|
+
description?: string | undefined;
|
|
12466
|
+
}[];
|
|
12467
|
+
pdf?: string | undefined;
|
|
12468
|
+
}, params: {
|
|
12469
|
+
financial_counterpart_account?: string | undefined;
|
|
12470
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12471
|
+
date: string;
|
|
12472
|
+
journal_id: string;
|
|
12473
|
+
currency: string;
|
|
12474
|
+
currency_exchange_rate?: number | undefined;
|
|
12475
|
+
reference?: string | undefined;
|
|
12303
12476
|
id: string;
|
|
12304
12477
|
number: string;
|
|
12305
|
-
|
|
12478
|
+
items: {
|
|
12479
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12480
|
+
account: string;
|
|
12481
|
+
amount: number;
|
|
12482
|
+
description?: string | undefined;
|
|
12483
|
+
counterpart_account: string;
|
|
12484
|
+
}[];
|
|
12485
|
+
}[]>;
|
|
12306
12486
|
createJournalEntry(journal_entry: {
|
|
12307
12487
|
reference?: string | undefined;
|
|
12308
12488
|
due_date?: string | undefined;
|
|
@@ -12360,6 +12540,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
12360
12540
|
invoicing: import("../types/api").ApiFor<{
|
|
12361
12541
|
getInvoices(params: {
|
|
12362
12542
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
12543
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
12363
12544
|
date_from?: string | undefined;
|
|
12364
12545
|
date_to?: string | undefined;
|
|
12365
12546
|
page?: number | undefined;
|
|
@@ -12378,12 +12559,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
12378
12559
|
untaxed_amount: number;
|
|
12379
12560
|
total: number;
|
|
12380
12561
|
lines?: {
|
|
12381
|
-
description
|
|
12562
|
+
description?: string | undefined;
|
|
12382
12563
|
unit_price: number;
|
|
12383
12564
|
quantity: number;
|
|
12565
|
+
discount_amount?: number | undefined;
|
|
12384
12566
|
tax_amount: number;
|
|
12385
|
-
total: number;
|
|
12386
12567
|
untaxed_amount: number;
|
|
12568
|
+
total: number;
|
|
12387
12569
|
tax_rate?: number | undefined;
|
|
12388
12570
|
account_number?: string | undefined;
|
|
12389
12571
|
tax_id?: string | undefined;
|
|
@@ -12420,12 +12602,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
12420
12602
|
untaxed_amount: number;
|
|
12421
12603
|
total: number;
|
|
12422
12604
|
lines?: {
|
|
12423
|
-
description
|
|
12605
|
+
description?: string | undefined;
|
|
12424
12606
|
unit_price: number;
|
|
12425
12607
|
quantity: number;
|
|
12608
|
+
discount_amount?: number | undefined;
|
|
12426
12609
|
tax_amount: number;
|
|
12427
|
-
total: number;
|
|
12428
12610
|
untaxed_amount: number;
|
|
12611
|
+
total: number;
|
|
12429
12612
|
tax_rate?: number | undefined;
|
|
12430
12613
|
account_number?: string | undefined;
|
|
12431
12614
|
tax_id?: string | undefined;
|
|
@@ -12455,12 +12638,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
12455
12638
|
untaxed_amount: number;
|
|
12456
12639
|
total: number;
|
|
12457
12640
|
lines?: {
|
|
12458
|
-
description
|
|
12641
|
+
description?: string | undefined;
|
|
12459
12642
|
unit_price: number;
|
|
12460
12643
|
quantity: number;
|
|
12644
|
+
discount_amount?: number | undefined;
|
|
12461
12645
|
tax_amount: number;
|
|
12462
|
-
total: number;
|
|
12463
12646
|
untaxed_amount: number;
|
|
12647
|
+
total: number;
|
|
12464
12648
|
tax_rate?: number | undefined;
|
|
12465
12649
|
account_number?: string | undefined;
|
|
12466
12650
|
tax_id?: string | undefined;
|
|
@@ -12494,12 +12678,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
12494
12678
|
untaxed_amount: number;
|
|
12495
12679
|
total: number;
|
|
12496
12680
|
lines?: {
|
|
12497
|
-
description
|
|
12681
|
+
description?: string | undefined;
|
|
12498
12682
|
unit_price: number;
|
|
12499
12683
|
quantity: number;
|
|
12684
|
+
discount_amount?: number | undefined;
|
|
12500
12685
|
tax_amount: number;
|
|
12501
|
-
total: number;
|
|
12502
12686
|
untaxed_amount: number;
|
|
12687
|
+
total: number;
|
|
12503
12688
|
tax_rate?: number | undefined;
|
|
12504
12689
|
account_number?: string | undefined;
|
|
12505
12690
|
tax_id?: string | undefined;
|
|
@@ -13107,7 +13292,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
13107
13292
|
last_updated_on?: string | undefined;
|
|
13108
13293
|
confirmed_on?: string | undefined;
|
|
13109
13294
|
cancelled_on?: string | undefined;
|
|
13110
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
13295
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
13111
13296
|
discount_amount: number;
|
|
13112
13297
|
untaxed_amount_without_fees: number;
|
|
13113
13298
|
tax_amount_without_fees: number;
|
|
@@ -13254,7 +13439,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
13254
13439
|
last_updated_on?: string | undefined;
|
|
13255
13440
|
confirmed_on?: string | undefined;
|
|
13256
13441
|
cancelled_on?: string | undefined;
|
|
13257
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
13442
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
13258
13443
|
discount_amount: number;
|
|
13259
13444
|
untaxed_amount_without_fees: number;
|
|
13260
13445
|
tax_amount_without_fees: number;
|
|
@@ -13360,7 +13545,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
13360
13545
|
last_updated_on?: string | undefined;
|
|
13361
13546
|
confirmed_on?: string | undefined;
|
|
13362
13547
|
cancelled_on?: string | undefined;
|
|
13363
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
13548
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
13364
13549
|
discount_amount: number;
|
|
13365
13550
|
untaxed_amount_without_fees: number;
|
|
13366
13551
|
tax_amount_without_fees: number;
|
|
@@ -13471,7 +13656,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
13471
13656
|
name: string;
|
|
13472
13657
|
title: string;
|
|
13473
13658
|
type: string;
|
|
13474
|
-
|
|
13659
|
+
optional?: boolean | undefined;
|
|
13475
13660
|
}[];
|
|
13476
13661
|
search_column?: string | undefined;
|
|
13477
13662
|
};
|
|
@@ -14969,12 +15154,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
14969
15154
|
reference?: string | undefined;
|
|
14970
15155
|
posted: boolean;
|
|
14971
15156
|
}[]>;
|
|
14972
|
-
|
|
15157
|
+
createFinancialEntryOld(financial_entry: {
|
|
14973
15158
|
date: string;
|
|
14974
15159
|
journal_id: string;
|
|
14975
15160
|
currency: string;
|
|
14976
15161
|
currency_exchange_rate?: number | undefined;
|
|
14977
15162
|
reference?: string | undefined;
|
|
15163
|
+
number?: string | undefined;
|
|
14978
15164
|
items: {
|
|
14979
15165
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
14980
15166
|
account_number: string;
|
|
@@ -14982,7 +15168,6 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
14982
15168
|
amount: number;
|
|
14983
15169
|
description?: string | undefined;
|
|
14984
15170
|
}[];
|
|
14985
|
-
number?: string | undefined;
|
|
14986
15171
|
pdf?: string | undefined;
|
|
14987
15172
|
}, params: {
|
|
14988
15173
|
financial_counterpart_account?: string | undefined;
|
|
@@ -14992,6 +15177,8 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
14992
15177
|
currency: string;
|
|
14993
15178
|
currency_exchange_rate?: number | undefined;
|
|
14994
15179
|
reference?: string | undefined;
|
|
15180
|
+
id: string;
|
|
15181
|
+
number: string;
|
|
14995
15182
|
items: {
|
|
14996
15183
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
14997
15184
|
account_number: string;
|
|
@@ -15000,9 +15187,39 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
15000
15187
|
description?: string | undefined;
|
|
15001
15188
|
counterpart_account: string;
|
|
15002
15189
|
}[];
|
|
15190
|
+
}>;
|
|
15191
|
+
createFinancialEntry(financial_entry: {
|
|
15192
|
+
date: string;
|
|
15193
|
+
journal_id: string;
|
|
15194
|
+
currency: string;
|
|
15195
|
+
currency_exchange_rate?: number | undefined;
|
|
15196
|
+
reference?: string | undefined;
|
|
15197
|
+
number?: string | undefined;
|
|
15198
|
+
items: {
|
|
15199
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
15200
|
+
account: string;
|
|
15201
|
+
amount: number;
|
|
15202
|
+
description?: string | undefined;
|
|
15203
|
+
}[];
|
|
15204
|
+
pdf?: string | undefined;
|
|
15205
|
+
}, params: {
|
|
15206
|
+
financial_counterpart_account?: string | undefined;
|
|
15207
|
+
} | undefined): import("../types/api").RequestData<{
|
|
15208
|
+
date: string;
|
|
15209
|
+
journal_id: string;
|
|
15210
|
+
currency: string;
|
|
15211
|
+
currency_exchange_rate?: number | undefined;
|
|
15212
|
+
reference?: string | undefined;
|
|
15003
15213
|
id: string;
|
|
15004
15214
|
number: string;
|
|
15005
|
-
|
|
15215
|
+
items: {
|
|
15216
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
15217
|
+
account: string;
|
|
15218
|
+
amount: number;
|
|
15219
|
+
description?: string | undefined;
|
|
15220
|
+
counterpart_account: string;
|
|
15221
|
+
}[];
|
|
15222
|
+
}[]>;
|
|
15006
15223
|
createJournalEntry(journal_entry: {
|
|
15007
15224
|
reference?: string | undefined;
|
|
15008
15225
|
due_date?: string | undefined;
|
|
@@ -15060,6 +15277,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
15060
15277
|
invoicing: import("../types/api").ApiFor<{
|
|
15061
15278
|
getInvoices(params: {
|
|
15062
15279
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
15280
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
15063
15281
|
date_from?: string | undefined;
|
|
15064
15282
|
date_to?: string | undefined;
|
|
15065
15283
|
page?: number | undefined;
|
|
@@ -15078,12 +15296,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
15078
15296
|
untaxed_amount: number;
|
|
15079
15297
|
total: number;
|
|
15080
15298
|
lines?: {
|
|
15081
|
-
description
|
|
15299
|
+
description?: string | undefined;
|
|
15082
15300
|
unit_price: number;
|
|
15083
15301
|
quantity: number;
|
|
15302
|
+
discount_amount?: number | undefined;
|
|
15084
15303
|
tax_amount: number;
|
|
15085
|
-
total: number;
|
|
15086
15304
|
untaxed_amount: number;
|
|
15305
|
+
total: number;
|
|
15087
15306
|
tax_rate?: number | undefined;
|
|
15088
15307
|
account_number?: string | undefined;
|
|
15089
15308
|
tax_id?: string | undefined;
|
|
@@ -15120,12 +15339,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
15120
15339
|
untaxed_amount: number;
|
|
15121
15340
|
total: number;
|
|
15122
15341
|
lines?: {
|
|
15123
|
-
description
|
|
15342
|
+
description?: string | undefined;
|
|
15124
15343
|
unit_price: number;
|
|
15125
15344
|
quantity: number;
|
|
15345
|
+
discount_amount?: number | undefined;
|
|
15126
15346
|
tax_amount: number;
|
|
15127
|
-
total: number;
|
|
15128
15347
|
untaxed_amount: number;
|
|
15348
|
+
total: number;
|
|
15129
15349
|
tax_rate?: number | undefined;
|
|
15130
15350
|
account_number?: string | undefined;
|
|
15131
15351
|
tax_id?: string | undefined;
|
|
@@ -15155,12 +15375,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
15155
15375
|
untaxed_amount: number;
|
|
15156
15376
|
total: number;
|
|
15157
15377
|
lines?: {
|
|
15158
|
-
description
|
|
15378
|
+
description?: string | undefined;
|
|
15159
15379
|
unit_price: number;
|
|
15160
15380
|
quantity: number;
|
|
15381
|
+
discount_amount?: number | undefined;
|
|
15161
15382
|
tax_amount: number;
|
|
15162
|
-
total: number;
|
|
15163
15383
|
untaxed_amount: number;
|
|
15384
|
+
total: number;
|
|
15164
15385
|
tax_rate?: number | undefined;
|
|
15165
15386
|
account_number?: string | undefined;
|
|
15166
15387
|
tax_id?: string | undefined;
|
|
@@ -15194,12 +15415,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
15194
15415
|
untaxed_amount: number;
|
|
15195
15416
|
total: number;
|
|
15196
15417
|
lines?: {
|
|
15197
|
-
description
|
|
15418
|
+
description?: string | undefined;
|
|
15198
15419
|
unit_price: number;
|
|
15199
15420
|
quantity: number;
|
|
15421
|
+
discount_amount?: number | undefined;
|
|
15200
15422
|
tax_amount: number;
|
|
15201
|
-
total: number;
|
|
15202
15423
|
untaxed_amount: number;
|
|
15424
|
+
total: number;
|
|
15203
15425
|
tax_rate?: number | undefined;
|
|
15204
15426
|
account_number?: string | undefined;
|
|
15205
15427
|
tax_id?: string | undefined;
|
|
@@ -15807,7 +16029,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
15807
16029
|
last_updated_on?: string | undefined;
|
|
15808
16030
|
confirmed_on?: string | undefined;
|
|
15809
16031
|
cancelled_on?: string | undefined;
|
|
15810
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
16032
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
15811
16033
|
discount_amount: number;
|
|
15812
16034
|
untaxed_amount_without_fees: number;
|
|
15813
16035
|
tax_amount_without_fees: number;
|
|
@@ -15954,7 +16176,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
15954
16176
|
last_updated_on?: string | undefined;
|
|
15955
16177
|
confirmed_on?: string | undefined;
|
|
15956
16178
|
cancelled_on?: string | undefined;
|
|
15957
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
16179
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
15958
16180
|
discount_amount: number;
|
|
15959
16181
|
untaxed_amount_without_fees: number;
|
|
15960
16182
|
tax_amount_without_fees: number;
|
|
@@ -16060,7 +16282,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
16060
16282
|
last_updated_on?: string | undefined;
|
|
16061
16283
|
confirmed_on?: string | undefined;
|
|
16062
16284
|
cancelled_on?: string | undefined;
|
|
16063
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
16285
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
16064
16286
|
discount_amount: number;
|
|
16065
16287
|
untaxed_amount_without_fees: number;
|
|
16066
16288
|
tax_amount_without_fees: number;
|
|
@@ -16171,7 +16393,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
16171
16393
|
name: string;
|
|
16172
16394
|
title: string;
|
|
16173
16395
|
type: string;
|
|
16174
|
-
|
|
16396
|
+
optional?: boolean | undefined;
|
|
16175
16397
|
}[];
|
|
16176
16398
|
search_column?: string | undefined;
|
|
16177
16399
|
};
|
|
@@ -17668,12 +17890,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
17668
17890
|
reference?: string | undefined;
|
|
17669
17891
|
posted: boolean;
|
|
17670
17892
|
}[]>;
|
|
17671
|
-
|
|
17893
|
+
createFinancialEntryOld(financial_entry: {
|
|
17672
17894
|
date: string;
|
|
17673
17895
|
journal_id: string;
|
|
17674
17896
|
currency: string;
|
|
17675
17897
|
currency_exchange_rate?: number | undefined;
|
|
17676
17898
|
reference?: string | undefined;
|
|
17899
|
+
number?: string | undefined;
|
|
17677
17900
|
items: {
|
|
17678
17901
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
17679
17902
|
account_number: string;
|
|
@@ -17681,7 +17904,6 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
17681
17904
|
amount: number;
|
|
17682
17905
|
description?: string | undefined;
|
|
17683
17906
|
}[];
|
|
17684
|
-
number?: string | undefined;
|
|
17685
17907
|
pdf?: string | undefined;
|
|
17686
17908
|
}, params: {
|
|
17687
17909
|
financial_counterpart_account?: string | undefined;
|
|
@@ -17691,6 +17913,8 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
17691
17913
|
currency: string;
|
|
17692
17914
|
currency_exchange_rate?: number | undefined;
|
|
17693
17915
|
reference?: string | undefined;
|
|
17916
|
+
id: string;
|
|
17917
|
+
number: string;
|
|
17694
17918
|
items: {
|
|
17695
17919
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
17696
17920
|
account_number: string;
|
|
@@ -17699,9 +17923,39 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
17699
17923
|
description?: string | undefined;
|
|
17700
17924
|
counterpart_account: string;
|
|
17701
17925
|
}[];
|
|
17926
|
+
}>;
|
|
17927
|
+
createFinancialEntry(financial_entry: {
|
|
17928
|
+
date: string;
|
|
17929
|
+
journal_id: string;
|
|
17930
|
+
currency: string;
|
|
17931
|
+
currency_exchange_rate?: number | undefined;
|
|
17932
|
+
reference?: string | undefined;
|
|
17933
|
+
number?: string | undefined;
|
|
17934
|
+
items: {
|
|
17935
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
17936
|
+
account: string;
|
|
17937
|
+
amount: number;
|
|
17938
|
+
description?: string | undefined;
|
|
17939
|
+
}[];
|
|
17940
|
+
pdf?: string | undefined;
|
|
17941
|
+
}, params: {
|
|
17942
|
+
financial_counterpart_account?: string | undefined;
|
|
17943
|
+
} | undefined): import("../types/api").RequestData<{
|
|
17944
|
+
date: string;
|
|
17945
|
+
journal_id: string;
|
|
17946
|
+
currency: string;
|
|
17947
|
+
currency_exchange_rate?: number | undefined;
|
|
17948
|
+
reference?: string | undefined;
|
|
17702
17949
|
id: string;
|
|
17703
17950
|
number: string;
|
|
17704
|
-
|
|
17951
|
+
items: {
|
|
17952
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
17953
|
+
account: string;
|
|
17954
|
+
amount: number;
|
|
17955
|
+
description?: string | undefined;
|
|
17956
|
+
counterpart_account: string;
|
|
17957
|
+
}[];
|
|
17958
|
+
}[]>;
|
|
17705
17959
|
createJournalEntry(journal_entry: {
|
|
17706
17960
|
reference?: string | undefined;
|
|
17707
17961
|
due_date?: string | undefined;
|
|
@@ -17759,6 +18013,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
17759
18013
|
invoicing: import("../types/api").ApiFor<{
|
|
17760
18014
|
getInvoices(params: {
|
|
17761
18015
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
18016
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
17762
18017
|
date_from?: string | undefined;
|
|
17763
18018
|
date_to?: string | undefined;
|
|
17764
18019
|
page?: number | undefined;
|
|
@@ -17777,12 +18032,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
17777
18032
|
untaxed_amount: number;
|
|
17778
18033
|
total: number;
|
|
17779
18034
|
lines?: {
|
|
17780
|
-
description
|
|
18035
|
+
description?: string | undefined;
|
|
17781
18036
|
unit_price: number;
|
|
17782
18037
|
quantity: number;
|
|
18038
|
+
discount_amount?: number | undefined;
|
|
17783
18039
|
tax_amount: number;
|
|
17784
|
-
total: number;
|
|
17785
18040
|
untaxed_amount: number;
|
|
18041
|
+
total: number;
|
|
17786
18042
|
tax_rate?: number | undefined;
|
|
17787
18043
|
account_number?: string | undefined;
|
|
17788
18044
|
tax_id?: string | undefined;
|
|
@@ -17819,12 +18075,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
17819
18075
|
untaxed_amount: number;
|
|
17820
18076
|
total: number;
|
|
17821
18077
|
lines?: {
|
|
17822
|
-
description
|
|
18078
|
+
description?: string | undefined;
|
|
17823
18079
|
unit_price: number;
|
|
17824
18080
|
quantity: number;
|
|
18081
|
+
discount_amount?: number | undefined;
|
|
17825
18082
|
tax_amount: number;
|
|
17826
|
-
total: number;
|
|
17827
18083
|
untaxed_amount: number;
|
|
18084
|
+
total: number;
|
|
17828
18085
|
tax_rate?: number | undefined;
|
|
17829
18086
|
account_number?: string | undefined;
|
|
17830
18087
|
tax_id?: string | undefined;
|
|
@@ -17854,12 +18111,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
17854
18111
|
untaxed_amount: number;
|
|
17855
18112
|
total: number;
|
|
17856
18113
|
lines?: {
|
|
17857
|
-
description
|
|
18114
|
+
description?: string | undefined;
|
|
17858
18115
|
unit_price: number;
|
|
17859
18116
|
quantity: number;
|
|
18117
|
+
discount_amount?: number | undefined;
|
|
17860
18118
|
tax_amount: number;
|
|
17861
|
-
total: number;
|
|
17862
18119
|
untaxed_amount: number;
|
|
18120
|
+
total: number;
|
|
17863
18121
|
tax_rate?: number | undefined;
|
|
17864
18122
|
account_number?: string | undefined;
|
|
17865
18123
|
tax_id?: string | undefined;
|
|
@@ -17893,12 +18151,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
17893
18151
|
untaxed_amount: number;
|
|
17894
18152
|
total: number;
|
|
17895
18153
|
lines?: {
|
|
17896
|
-
description
|
|
18154
|
+
description?: string | undefined;
|
|
17897
18155
|
unit_price: number;
|
|
17898
18156
|
quantity: number;
|
|
18157
|
+
discount_amount?: number | undefined;
|
|
17899
18158
|
tax_amount: number;
|
|
17900
|
-
total: number;
|
|
17901
18159
|
untaxed_amount: number;
|
|
18160
|
+
total: number;
|
|
17902
18161
|
tax_rate?: number | undefined;
|
|
17903
18162
|
account_number?: string | undefined;
|
|
17904
18163
|
tax_id?: string | undefined;
|
|
@@ -18506,7 +18765,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
18506
18765
|
last_updated_on?: string | undefined;
|
|
18507
18766
|
confirmed_on?: string | undefined;
|
|
18508
18767
|
cancelled_on?: string | undefined;
|
|
18509
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
18768
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
18510
18769
|
discount_amount: number;
|
|
18511
18770
|
untaxed_amount_without_fees: number;
|
|
18512
18771
|
tax_amount_without_fees: number;
|
|
@@ -18653,7 +18912,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
18653
18912
|
last_updated_on?: string | undefined;
|
|
18654
18913
|
confirmed_on?: string | undefined;
|
|
18655
18914
|
cancelled_on?: string | undefined;
|
|
18656
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
18915
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
18657
18916
|
discount_amount: number;
|
|
18658
18917
|
untaxed_amount_without_fees: number;
|
|
18659
18918
|
tax_amount_without_fees: number;
|
|
@@ -18759,7 +19018,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
18759
19018
|
last_updated_on?: string | undefined;
|
|
18760
19019
|
confirmed_on?: string | undefined;
|
|
18761
19020
|
cancelled_on?: string | undefined;
|
|
18762
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
19021
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
18763
19022
|
discount_amount: number;
|
|
18764
19023
|
untaxed_amount_without_fees: number;
|
|
18765
19024
|
tax_amount_without_fees: number;
|
|
@@ -18870,7 +19129,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
18870
19129
|
name: string;
|
|
18871
19130
|
title: string;
|
|
18872
19131
|
type: string;
|
|
18873
|
-
|
|
19132
|
+
optional?: boolean | undefined;
|
|
18874
19133
|
}[];
|
|
18875
19134
|
search_column?: string | undefined;
|
|
18876
19135
|
};
|
|
@@ -20371,12 +20630,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
20371
20630
|
reference?: string | undefined;
|
|
20372
20631
|
posted: boolean;
|
|
20373
20632
|
}[]>;
|
|
20374
|
-
|
|
20633
|
+
createFinancialEntryOld(financial_entry: {
|
|
20375
20634
|
date: string;
|
|
20376
20635
|
journal_id: string;
|
|
20377
20636
|
currency: string;
|
|
20378
20637
|
currency_exchange_rate?: number | undefined;
|
|
20379
20638
|
reference?: string | undefined;
|
|
20639
|
+
number?: string | undefined;
|
|
20380
20640
|
items: {
|
|
20381
20641
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
20382
20642
|
account_number: string;
|
|
@@ -20384,7 +20644,6 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
20384
20644
|
amount: number;
|
|
20385
20645
|
description?: string | undefined;
|
|
20386
20646
|
}[];
|
|
20387
|
-
number?: string | undefined;
|
|
20388
20647
|
pdf?: string | undefined;
|
|
20389
20648
|
}, params: {
|
|
20390
20649
|
financial_counterpart_account?: string | undefined;
|
|
@@ -20394,6 +20653,8 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
20394
20653
|
currency: string;
|
|
20395
20654
|
currency_exchange_rate?: number | undefined;
|
|
20396
20655
|
reference?: string | undefined;
|
|
20656
|
+
id: string;
|
|
20657
|
+
number: string;
|
|
20397
20658
|
items: {
|
|
20398
20659
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
20399
20660
|
account_number: string;
|
|
@@ -20402,9 +20663,39 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
20402
20663
|
description?: string | undefined;
|
|
20403
20664
|
counterpart_account: string;
|
|
20404
20665
|
}[];
|
|
20666
|
+
}>;
|
|
20667
|
+
createFinancialEntry(financial_entry: {
|
|
20668
|
+
date: string;
|
|
20669
|
+
journal_id: string;
|
|
20670
|
+
currency: string;
|
|
20671
|
+
currency_exchange_rate?: number | undefined;
|
|
20672
|
+
reference?: string | undefined;
|
|
20673
|
+
number?: string | undefined;
|
|
20674
|
+
items: {
|
|
20675
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
20676
|
+
account: string;
|
|
20677
|
+
amount: number;
|
|
20678
|
+
description?: string | undefined;
|
|
20679
|
+
}[];
|
|
20680
|
+
pdf?: string | undefined;
|
|
20681
|
+
}, params: {
|
|
20682
|
+
financial_counterpart_account?: string | undefined;
|
|
20683
|
+
} | undefined): import("../types/api").RequestData<{
|
|
20684
|
+
date: string;
|
|
20685
|
+
journal_id: string;
|
|
20686
|
+
currency: string;
|
|
20687
|
+
currency_exchange_rate?: number | undefined;
|
|
20688
|
+
reference?: string | undefined;
|
|
20405
20689
|
id: string;
|
|
20406
20690
|
number: string;
|
|
20407
|
-
|
|
20691
|
+
items: {
|
|
20692
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
20693
|
+
account: string;
|
|
20694
|
+
amount: number;
|
|
20695
|
+
description?: string | undefined;
|
|
20696
|
+
counterpart_account: string;
|
|
20697
|
+
}[];
|
|
20698
|
+
}[]>;
|
|
20408
20699
|
createJournalEntry(journal_entry: {
|
|
20409
20700
|
reference?: string | undefined;
|
|
20410
20701
|
due_date?: string | undefined;
|
|
@@ -20462,6 +20753,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
20462
20753
|
invoicing: import("../types/api").ApiFor<{
|
|
20463
20754
|
getInvoices(params: {
|
|
20464
20755
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
20756
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
20465
20757
|
date_from?: string | undefined;
|
|
20466
20758
|
date_to?: string | undefined;
|
|
20467
20759
|
page?: number | undefined;
|
|
@@ -20480,12 +20772,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
20480
20772
|
untaxed_amount: number;
|
|
20481
20773
|
total: number;
|
|
20482
20774
|
lines?: {
|
|
20483
|
-
description
|
|
20775
|
+
description?: string | undefined;
|
|
20484
20776
|
unit_price: number;
|
|
20485
20777
|
quantity: number;
|
|
20778
|
+
discount_amount?: number | undefined;
|
|
20486
20779
|
tax_amount: number;
|
|
20487
|
-
total: number;
|
|
20488
20780
|
untaxed_amount: number;
|
|
20781
|
+
total: number;
|
|
20489
20782
|
tax_rate?: number | undefined;
|
|
20490
20783
|
account_number?: string | undefined;
|
|
20491
20784
|
tax_id?: string | undefined;
|
|
@@ -20522,12 +20815,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
20522
20815
|
untaxed_amount: number;
|
|
20523
20816
|
total: number;
|
|
20524
20817
|
lines?: {
|
|
20525
|
-
description
|
|
20818
|
+
description?: string | undefined;
|
|
20526
20819
|
unit_price: number;
|
|
20527
20820
|
quantity: number;
|
|
20821
|
+
discount_amount?: number | undefined;
|
|
20528
20822
|
tax_amount: number;
|
|
20529
|
-
total: number;
|
|
20530
20823
|
untaxed_amount: number;
|
|
20824
|
+
total: number;
|
|
20531
20825
|
tax_rate?: number | undefined;
|
|
20532
20826
|
account_number?: string | undefined;
|
|
20533
20827
|
tax_id?: string | undefined;
|
|
@@ -20557,12 +20851,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
20557
20851
|
untaxed_amount: number;
|
|
20558
20852
|
total: number;
|
|
20559
20853
|
lines?: {
|
|
20560
|
-
description
|
|
20854
|
+
description?: string | undefined;
|
|
20561
20855
|
unit_price: number;
|
|
20562
20856
|
quantity: number;
|
|
20857
|
+
discount_amount?: number | undefined;
|
|
20563
20858
|
tax_amount: number;
|
|
20564
|
-
total: number;
|
|
20565
20859
|
untaxed_amount: number;
|
|
20860
|
+
total: number;
|
|
20566
20861
|
tax_rate?: number | undefined;
|
|
20567
20862
|
account_number?: string | undefined;
|
|
20568
20863
|
tax_id?: string | undefined;
|
|
@@ -20596,12 +20891,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
20596
20891
|
untaxed_amount: number;
|
|
20597
20892
|
total: number;
|
|
20598
20893
|
lines?: {
|
|
20599
|
-
description
|
|
20894
|
+
description?: string | undefined;
|
|
20600
20895
|
unit_price: number;
|
|
20601
20896
|
quantity: number;
|
|
20897
|
+
discount_amount?: number | undefined;
|
|
20602
20898
|
tax_amount: number;
|
|
20603
|
-
total: number;
|
|
20604
20899
|
untaxed_amount: number;
|
|
20900
|
+
total: number;
|
|
20605
20901
|
tax_rate?: number | undefined;
|
|
20606
20902
|
account_number?: string | undefined;
|
|
20607
20903
|
tax_id?: string | undefined;
|
|
@@ -21209,7 +21505,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
21209
21505
|
last_updated_on?: string | undefined;
|
|
21210
21506
|
confirmed_on?: string | undefined;
|
|
21211
21507
|
cancelled_on?: string | undefined;
|
|
21212
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
21508
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
21213
21509
|
discount_amount: number;
|
|
21214
21510
|
untaxed_amount_without_fees: number;
|
|
21215
21511
|
tax_amount_without_fees: number;
|
|
@@ -21356,7 +21652,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
21356
21652
|
last_updated_on?: string | undefined;
|
|
21357
21653
|
confirmed_on?: string | undefined;
|
|
21358
21654
|
cancelled_on?: string | undefined;
|
|
21359
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
21655
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
21360
21656
|
discount_amount: number;
|
|
21361
21657
|
untaxed_amount_without_fees: number;
|
|
21362
21658
|
tax_amount_without_fees: number;
|
|
@@ -21462,7 +21758,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
21462
21758
|
last_updated_on?: string | undefined;
|
|
21463
21759
|
confirmed_on?: string | undefined;
|
|
21464
21760
|
cancelled_on?: string | undefined;
|
|
21465
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
21761
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
21466
21762
|
discount_amount: number;
|
|
21467
21763
|
untaxed_amount_without_fees: number;
|
|
21468
21764
|
tax_amount_without_fees: number;
|
|
@@ -21573,7 +21869,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
21573
21869
|
name: string;
|
|
21574
21870
|
title: string;
|
|
21575
21871
|
type: string;
|
|
21576
|
-
|
|
21872
|
+
optional?: boolean | undefined;
|
|
21577
21873
|
}[];
|
|
21578
21874
|
search_column?: string | undefined;
|
|
21579
21875
|
};
|
|
@@ -23074,12 +23370,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
23074
23370
|
reference?: string | undefined;
|
|
23075
23371
|
posted: boolean;
|
|
23076
23372
|
}[]>;
|
|
23077
|
-
|
|
23373
|
+
createFinancialEntryOld(financial_entry: {
|
|
23078
23374
|
date: string;
|
|
23079
23375
|
journal_id: string;
|
|
23080
23376
|
currency: string;
|
|
23081
23377
|
currency_exchange_rate?: number | undefined;
|
|
23082
23378
|
reference?: string | undefined;
|
|
23379
|
+
number?: string | undefined;
|
|
23083
23380
|
items: {
|
|
23084
23381
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
23085
23382
|
account_number: string;
|
|
@@ -23087,7 +23384,6 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
23087
23384
|
amount: number;
|
|
23088
23385
|
description?: string | undefined;
|
|
23089
23386
|
}[];
|
|
23090
|
-
number?: string | undefined;
|
|
23091
23387
|
pdf?: string | undefined;
|
|
23092
23388
|
}, params: {
|
|
23093
23389
|
financial_counterpart_account?: string | undefined;
|
|
@@ -23097,6 +23393,8 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
23097
23393
|
currency: string;
|
|
23098
23394
|
currency_exchange_rate?: number | undefined;
|
|
23099
23395
|
reference?: string | undefined;
|
|
23396
|
+
id: string;
|
|
23397
|
+
number: string;
|
|
23100
23398
|
items: {
|
|
23101
23399
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
23102
23400
|
account_number: string;
|
|
@@ -23105,9 +23403,39 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
23105
23403
|
description?: string | undefined;
|
|
23106
23404
|
counterpart_account: string;
|
|
23107
23405
|
}[];
|
|
23406
|
+
}>;
|
|
23407
|
+
createFinancialEntry(financial_entry: {
|
|
23408
|
+
date: string;
|
|
23409
|
+
journal_id: string;
|
|
23410
|
+
currency: string;
|
|
23411
|
+
currency_exchange_rate?: number | undefined;
|
|
23412
|
+
reference?: string | undefined;
|
|
23413
|
+
number?: string | undefined;
|
|
23414
|
+
items: {
|
|
23415
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
23416
|
+
account: string;
|
|
23417
|
+
amount: number;
|
|
23418
|
+
description?: string | undefined;
|
|
23419
|
+
}[];
|
|
23420
|
+
pdf?: string | undefined;
|
|
23421
|
+
}, params: {
|
|
23422
|
+
financial_counterpart_account?: string | undefined;
|
|
23423
|
+
} | undefined): import("../types/api").RequestData<{
|
|
23424
|
+
date: string;
|
|
23425
|
+
journal_id: string;
|
|
23426
|
+
currency: string;
|
|
23427
|
+
currency_exchange_rate?: number | undefined;
|
|
23428
|
+
reference?: string | undefined;
|
|
23108
23429
|
id: string;
|
|
23109
23430
|
number: string;
|
|
23110
|
-
|
|
23431
|
+
items: {
|
|
23432
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
23433
|
+
account: string;
|
|
23434
|
+
amount: number;
|
|
23435
|
+
description?: string | undefined;
|
|
23436
|
+
counterpart_account: string;
|
|
23437
|
+
}[];
|
|
23438
|
+
}[]>;
|
|
23111
23439
|
createJournalEntry(journal_entry: {
|
|
23112
23440
|
reference?: string | undefined;
|
|
23113
23441
|
due_date?: string | undefined;
|
|
@@ -23165,6 +23493,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
23165
23493
|
invoicing: import("../types/api").ApiFor<{
|
|
23166
23494
|
getInvoices(params: {
|
|
23167
23495
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
23496
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
23168
23497
|
date_from?: string | undefined;
|
|
23169
23498
|
date_to?: string | undefined;
|
|
23170
23499
|
page?: number | undefined;
|
|
@@ -23183,12 +23512,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
23183
23512
|
untaxed_amount: number;
|
|
23184
23513
|
total: number;
|
|
23185
23514
|
lines?: {
|
|
23186
|
-
description
|
|
23515
|
+
description?: string | undefined;
|
|
23187
23516
|
unit_price: number;
|
|
23188
23517
|
quantity: number;
|
|
23518
|
+
discount_amount?: number | undefined;
|
|
23189
23519
|
tax_amount: number;
|
|
23190
|
-
total: number;
|
|
23191
23520
|
untaxed_amount: number;
|
|
23521
|
+
total: number;
|
|
23192
23522
|
tax_rate?: number | undefined;
|
|
23193
23523
|
account_number?: string | undefined;
|
|
23194
23524
|
tax_id?: string | undefined;
|
|
@@ -23225,12 +23555,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
23225
23555
|
untaxed_amount: number;
|
|
23226
23556
|
total: number;
|
|
23227
23557
|
lines?: {
|
|
23228
|
-
description
|
|
23558
|
+
description?: string | undefined;
|
|
23229
23559
|
unit_price: number;
|
|
23230
23560
|
quantity: number;
|
|
23561
|
+
discount_amount?: number | undefined;
|
|
23231
23562
|
tax_amount: number;
|
|
23232
|
-
total: number;
|
|
23233
23563
|
untaxed_amount: number;
|
|
23564
|
+
total: number;
|
|
23234
23565
|
tax_rate?: number | undefined;
|
|
23235
23566
|
account_number?: string | undefined;
|
|
23236
23567
|
tax_id?: string | undefined;
|
|
@@ -23260,12 +23591,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
23260
23591
|
untaxed_amount: number;
|
|
23261
23592
|
total: number;
|
|
23262
23593
|
lines?: {
|
|
23263
|
-
description
|
|
23594
|
+
description?: string | undefined;
|
|
23264
23595
|
unit_price: number;
|
|
23265
23596
|
quantity: number;
|
|
23597
|
+
discount_amount?: number | undefined;
|
|
23266
23598
|
tax_amount: number;
|
|
23267
|
-
total: number;
|
|
23268
23599
|
untaxed_amount: number;
|
|
23600
|
+
total: number;
|
|
23269
23601
|
tax_rate?: number | undefined;
|
|
23270
23602
|
account_number?: string | undefined;
|
|
23271
23603
|
tax_id?: string | undefined;
|
|
@@ -23299,12 +23631,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
23299
23631
|
untaxed_amount: number;
|
|
23300
23632
|
total: number;
|
|
23301
23633
|
lines?: {
|
|
23302
|
-
description
|
|
23634
|
+
description?: string | undefined;
|
|
23303
23635
|
unit_price: number;
|
|
23304
23636
|
quantity: number;
|
|
23637
|
+
discount_amount?: number | undefined;
|
|
23305
23638
|
tax_amount: number;
|
|
23306
|
-
total: number;
|
|
23307
23639
|
untaxed_amount: number;
|
|
23640
|
+
total: number;
|
|
23308
23641
|
tax_rate?: number | undefined;
|
|
23309
23642
|
account_number?: string | undefined;
|
|
23310
23643
|
tax_id?: string | undefined;
|
|
@@ -23912,7 +24245,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
23912
24245
|
last_updated_on?: string | undefined;
|
|
23913
24246
|
confirmed_on?: string | undefined;
|
|
23914
24247
|
cancelled_on?: string | undefined;
|
|
23915
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
24248
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
23916
24249
|
discount_amount: number;
|
|
23917
24250
|
untaxed_amount_without_fees: number;
|
|
23918
24251
|
tax_amount_without_fees: number;
|
|
@@ -24059,7 +24392,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
24059
24392
|
last_updated_on?: string | undefined;
|
|
24060
24393
|
confirmed_on?: string | undefined;
|
|
24061
24394
|
cancelled_on?: string | undefined;
|
|
24062
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
24395
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
24063
24396
|
discount_amount: number;
|
|
24064
24397
|
untaxed_amount_without_fees: number;
|
|
24065
24398
|
tax_amount_without_fees: number;
|
|
@@ -24165,7 +24498,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
24165
24498
|
last_updated_on?: string | undefined;
|
|
24166
24499
|
confirmed_on?: string | undefined;
|
|
24167
24500
|
cancelled_on?: string | undefined;
|
|
24168
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
24501
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
24169
24502
|
discount_amount: number;
|
|
24170
24503
|
untaxed_amount_without_fees: number;
|
|
24171
24504
|
tax_amount_without_fees: number;
|
|
@@ -24276,7 +24609,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
24276
24609
|
name: string;
|
|
24277
24610
|
title: string;
|
|
24278
24611
|
type: string;
|
|
24279
|
-
|
|
24612
|
+
optional?: boolean | undefined;
|
|
24280
24613
|
}[];
|
|
24281
24614
|
search_column?: string | undefined;
|
|
24282
24615
|
};
|
|
@@ -25777,12 +26110,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
25777
26110
|
reference?: string | undefined;
|
|
25778
26111
|
posted: boolean;
|
|
25779
26112
|
}[]>;
|
|
25780
|
-
|
|
26113
|
+
createFinancialEntryOld(financial_entry: {
|
|
25781
26114
|
date: string;
|
|
25782
26115
|
journal_id: string;
|
|
25783
26116
|
currency: string;
|
|
25784
26117
|
currency_exchange_rate?: number | undefined;
|
|
25785
26118
|
reference?: string | undefined;
|
|
26119
|
+
number?: string | undefined;
|
|
25786
26120
|
items: {
|
|
25787
26121
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
25788
26122
|
account_number: string;
|
|
@@ -25790,7 +26124,6 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
25790
26124
|
amount: number;
|
|
25791
26125
|
description?: string | undefined;
|
|
25792
26126
|
}[];
|
|
25793
|
-
number?: string | undefined;
|
|
25794
26127
|
pdf?: string | undefined;
|
|
25795
26128
|
}, params: {
|
|
25796
26129
|
financial_counterpart_account?: string | undefined;
|
|
@@ -25800,6 +26133,8 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
25800
26133
|
currency: string;
|
|
25801
26134
|
currency_exchange_rate?: number | undefined;
|
|
25802
26135
|
reference?: string | undefined;
|
|
26136
|
+
id: string;
|
|
26137
|
+
number: string;
|
|
25803
26138
|
items: {
|
|
25804
26139
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
25805
26140
|
account_number: string;
|
|
@@ -25808,9 +26143,39 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
25808
26143
|
description?: string | undefined;
|
|
25809
26144
|
counterpart_account: string;
|
|
25810
26145
|
}[];
|
|
26146
|
+
}>;
|
|
26147
|
+
createFinancialEntry(financial_entry: {
|
|
26148
|
+
date: string;
|
|
26149
|
+
journal_id: string;
|
|
26150
|
+
currency: string;
|
|
26151
|
+
currency_exchange_rate?: number | undefined;
|
|
26152
|
+
reference?: string | undefined;
|
|
26153
|
+
number?: string | undefined;
|
|
26154
|
+
items: {
|
|
26155
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
26156
|
+
account: string;
|
|
26157
|
+
amount: number;
|
|
26158
|
+
description?: string | undefined;
|
|
26159
|
+
}[];
|
|
26160
|
+
pdf?: string | undefined;
|
|
26161
|
+
}, params: {
|
|
26162
|
+
financial_counterpart_account?: string | undefined;
|
|
26163
|
+
} | undefined): import("../types/api").RequestData<{
|
|
26164
|
+
date: string;
|
|
26165
|
+
journal_id: string;
|
|
26166
|
+
currency: string;
|
|
26167
|
+
currency_exchange_rate?: number | undefined;
|
|
26168
|
+
reference?: string | undefined;
|
|
25811
26169
|
id: string;
|
|
25812
26170
|
number: string;
|
|
25813
|
-
|
|
26171
|
+
items: {
|
|
26172
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
26173
|
+
account: string;
|
|
26174
|
+
amount: number;
|
|
26175
|
+
description?: string | undefined;
|
|
26176
|
+
counterpart_account: string;
|
|
26177
|
+
}[];
|
|
26178
|
+
}[]>;
|
|
25814
26179
|
createJournalEntry(journal_entry: {
|
|
25815
26180
|
reference?: string | undefined;
|
|
25816
26181
|
due_date?: string | undefined;
|
|
@@ -25868,6 +26233,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
25868
26233
|
invoicing: import("../types/api").ApiFor<{
|
|
25869
26234
|
getInvoices(params: {
|
|
25870
26235
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
26236
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
25871
26237
|
date_from?: string | undefined;
|
|
25872
26238
|
date_to?: string | undefined;
|
|
25873
26239
|
page?: number | undefined;
|
|
@@ -25886,12 +26252,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
25886
26252
|
untaxed_amount: number;
|
|
25887
26253
|
total: number;
|
|
25888
26254
|
lines?: {
|
|
25889
|
-
description
|
|
26255
|
+
description?: string | undefined;
|
|
25890
26256
|
unit_price: number;
|
|
25891
26257
|
quantity: number;
|
|
26258
|
+
discount_amount?: number | undefined;
|
|
25892
26259
|
tax_amount: number;
|
|
25893
|
-
total: number;
|
|
25894
26260
|
untaxed_amount: number;
|
|
26261
|
+
total: number;
|
|
25895
26262
|
tax_rate?: number | undefined;
|
|
25896
26263
|
account_number?: string | undefined;
|
|
25897
26264
|
tax_id?: string | undefined;
|
|
@@ -25928,12 +26295,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
25928
26295
|
untaxed_amount: number;
|
|
25929
26296
|
total: number;
|
|
25930
26297
|
lines?: {
|
|
25931
|
-
description
|
|
26298
|
+
description?: string | undefined;
|
|
25932
26299
|
unit_price: number;
|
|
25933
26300
|
quantity: number;
|
|
26301
|
+
discount_amount?: number | undefined;
|
|
25934
26302
|
tax_amount: number;
|
|
25935
|
-
total: number;
|
|
25936
26303
|
untaxed_amount: number;
|
|
26304
|
+
total: number;
|
|
25937
26305
|
tax_rate?: number | undefined;
|
|
25938
26306
|
account_number?: string | undefined;
|
|
25939
26307
|
tax_id?: string | undefined;
|
|
@@ -25963,12 +26331,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
25963
26331
|
untaxed_amount: number;
|
|
25964
26332
|
total: number;
|
|
25965
26333
|
lines?: {
|
|
25966
|
-
description
|
|
26334
|
+
description?: string | undefined;
|
|
25967
26335
|
unit_price: number;
|
|
25968
26336
|
quantity: number;
|
|
26337
|
+
discount_amount?: number | undefined;
|
|
25969
26338
|
tax_amount: number;
|
|
25970
|
-
total: number;
|
|
25971
26339
|
untaxed_amount: number;
|
|
26340
|
+
total: number;
|
|
25972
26341
|
tax_rate?: number | undefined;
|
|
25973
26342
|
account_number?: string | undefined;
|
|
25974
26343
|
tax_id?: string | undefined;
|
|
@@ -26002,12 +26371,13 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
26002
26371
|
untaxed_amount: number;
|
|
26003
26372
|
total: number;
|
|
26004
26373
|
lines?: {
|
|
26005
|
-
description
|
|
26374
|
+
description?: string | undefined;
|
|
26006
26375
|
unit_price: number;
|
|
26007
26376
|
quantity: number;
|
|
26377
|
+
discount_amount?: number | undefined;
|
|
26008
26378
|
tax_amount: number;
|
|
26009
|
-
total: number;
|
|
26010
26379
|
untaxed_amount: number;
|
|
26380
|
+
total: number;
|
|
26011
26381
|
tax_rate?: number | undefined;
|
|
26012
26382
|
account_number?: string | undefined;
|
|
26013
26383
|
tax_id?: string | undefined;
|
|
@@ -26615,7 +26985,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
26615
26985
|
last_updated_on?: string | undefined;
|
|
26616
26986
|
confirmed_on?: string | undefined;
|
|
26617
26987
|
cancelled_on?: string | undefined;
|
|
26618
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
26988
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
26619
26989
|
discount_amount: number;
|
|
26620
26990
|
untaxed_amount_without_fees: number;
|
|
26621
26991
|
tax_amount_without_fees: number;
|
|
@@ -26762,7 +27132,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
26762
27132
|
last_updated_on?: string | undefined;
|
|
26763
27133
|
confirmed_on?: string | undefined;
|
|
26764
27134
|
cancelled_on?: string | undefined;
|
|
26765
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
27135
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
26766
27136
|
discount_amount: number;
|
|
26767
27137
|
untaxed_amount_without_fees: number;
|
|
26768
27138
|
tax_amount_without_fees: number;
|
|
@@ -26868,7 +27238,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
26868
27238
|
last_updated_on?: string | undefined;
|
|
26869
27239
|
confirmed_on?: string | undefined;
|
|
26870
27240
|
cancelled_on?: string | undefined;
|
|
26871
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
27241
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
26872
27242
|
discount_amount: number;
|
|
26873
27243
|
untaxed_amount_without_fees: number;
|
|
26874
27244
|
tax_amount_without_fees: number;
|
|
@@ -26979,7 +27349,7 @@ declare const Syncs: (internalApi: InternalAPI) => {
|
|
|
26979
27349
|
name: string;
|
|
26980
27350
|
title: string;
|
|
26981
27351
|
type: string;
|
|
26982
|
-
|
|
27352
|
+
optional?: boolean | undefined;
|
|
26983
27353
|
}[];
|
|
26984
27354
|
search_column?: string | undefined;
|
|
26985
27355
|
};
|