@chift/chift-nodejs 1.0.2 → 1.0.4
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/CHANGELOG.md +9 -0
- package/dist/src/modules/accounting.d.ts +8 -1
- package/dist/src/modules/accounting.js +27 -1
- package/dist/src/modules/api.d.ts +2699 -912
- package/dist/src/modules/consumer.d.ts +146 -27
- package/dist/src/modules/consumers.d.ts +731 -136
- package/dist/src/modules/datastores.d.ts +1 -1
- package/dist/src/modules/integrations.d.ts +2 -0
- package/dist/src/modules/sync.d.ts +584 -108
- package/dist/src/modules/sync.js +0 -2
- package/dist/src/modules/syncs.d.ts +1464 -274
- package/dist/test/modules/accounting.test.js +127 -15
- package/dist/test/modules/consumers.test.js +1 -1
- package/dist/test/modules/pos.test.js +4 -4
- package/package.json +1 -1
- package/src/modules/accounting.ts +17 -3
- package/src/types/public-api/schema.d.ts +343 -33
- package/test/modules/accounting.test.ts +27 -0
- package/.eslintcache +0 -1
- package/coverage/clover.xml +0 -1645
- package/coverage/coverage-final.json +0 -19
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -146
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/helpers/index.html +0 -131
- package/coverage/lcov-report/src/helpers/openapi.ts.html +0 -151
- package/coverage/lcov-report/src/helpers/settings.ts.html +0 -94
- package/coverage/lcov-report/src/index.html +0 -116
- package/coverage/lcov-report/src/index.ts.html +0 -88
- package/coverage/lcov-report/src/modules/accounting.ts.html +0 -1156
- package/coverage/lcov-report/src/modules/api.ts.html +0 -190
- package/coverage/lcov-report/src/modules/consumer.ts.html +0 -616
- package/coverage/lcov-report/src/modules/consumers.ts.html +0 -331
- package/coverage/lcov-report/src/modules/custom.ts.html +0 -193
- package/coverage/lcov-report/src/modules/datastores.ts.html +0 -142
- package/coverage/lcov-report/src/modules/ecommerce.ts.html +0 -331
- package/coverage/lcov-report/src/modules/flow.ts.html +0 -589
- package/coverage/lcov-report/src/modules/index.html +0 -326
- package/coverage/lcov-report/src/modules/integrations.ts.html +0 -151
- package/coverage/lcov-report/src/modules/internalApi.ts.html +0 -586
- package/coverage/lcov-report/src/modules/invoicing.ts.html +0 -391
- package/coverage/lcov-report/src/modules/pos.ts.html +0 -421
- package/coverage/lcov-report/src/modules/sync.ts.html +0 -316
- package/coverage/lcov-report/src/modules/syncs.ts.html +0 -169
- package/coverage/lcov-report/src/modules/webhooks.ts.html +0 -343
- package/coverage/lcov.info +0 -1976
- package/dist/test/modules/flow.test.d.ts +0 -1
- package/dist/test/modules/flow.test.js +0 -69
|
@@ -357,6 +357,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
357
357
|
country?: string | undefined;
|
|
358
358
|
}[] | undefined;
|
|
359
359
|
account_number?: string | undefined;
|
|
360
|
+
company_number?: string | undefined;
|
|
360
361
|
id?: string | undefined;
|
|
361
362
|
}[]>;
|
|
362
363
|
createClient(client: {
|
|
@@ -427,6 +428,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
427
428
|
country?: string | undefined;
|
|
428
429
|
}[] | undefined;
|
|
429
430
|
account_number?: string | undefined;
|
|
431
|
+
company_number?: string | undefined;
|
|
430
432
|
id?: string | undefined;
|
|
431
433
|
}>;
|
|
432
434
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -462,6 +464,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
462
464
|
country?: string | undefined;
|
|
463
465
|
}[] | undefined;
|
|
464
466
|
account_number?: string | undefined;
|
|
467
|
+
company_number?: string | undefined;
|
|
465
468
|
id?: string | undefined;
|
|
466
469
|
}>;
|
|
467
470
|
updateClient(clientId: string, client: {
|
|
@@ -529,6 +532,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
529
532
|
country?: string | undefined;
|
|
530
533
|
}[] | undefined;
|
|
531
534
|
account_number?: string | undefined;
|
|
535
|
+
company_number?: string | undefined;
|
|
532
536
|
id?: string | undefined;
|
|
533
537
|
}>;
|
|
534
538
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -564,6 +568,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
564
568
|
country?: string | undefined;
|
|
565
569
|
}[] | undefined;
|
|
566
570
|
account_number?: string | undefined;
|
|
571
|
+
company_number?: string | undefined;
|
|
567
572
|
id?: string | undefined;
|
|
568
573
|
}[]>;
|
|
569
574
|
createSupplier(supplier: {
|
|
@@ -634,6 +639,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
634
639
|
country?: string | undefined;
|
|
635
640
|
}[] | undefined;
|
|
636
641
|
account_number?: string | undefined;
|
|
642
|
+
company_number?: string | undefined;
|
|
637
643
|
id?: string | undefined;
|
|
638
644
|
}>;
|
|
639
645
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -669,6 +675,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
669
675
|
country?: string | undefined;
|
|
670
676
|
}[] | undefined;
|
|
671
677
|
account_number?: string | undefined;
|
|
678
|
+
company_number?: string | undefined;
|
|
672
679
|
id?: string | undefined;
|
|
673
680
|
}>;
|
|
674
681
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -736,6 +743,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
736
743
|
country?: string | undefined;
|
|
737
744
|
}[] | undefined;
|
|
738
745
|
account_number?: string | undefined;
|
|
746
|
+
company_number?: string | undefined;
|
|
739
747
|
id?: string | undefined;
|
|
740
748
|
}>;
|
|
741
749
|
createInvoice(invoice: {
|
|
@@ -800,7 +808,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
800
808
|
amount: number;
|
|
801
809
|
dedicated_amount?: number | undefined;
|
|
802
810
|
payment_date: string;
|
|
803
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
811
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
804
812
|
journal_id: string;
|
|
805
813
|
journal_name: string;
|
|
806
814
|
reconciled?: boolean | undefined;
|
|
@@ -891,7 +899,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
891
899
|
amount: number;
|
|
892
900
|
dedicated_amount?: number | undefined;
|
|
893
901
|
payment_date: string;
|
|
894
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
902
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
895
903
|
journal_id: string;
|
|
896
904
|
journal_name: string;
|
|
897
905
|
reconciled?: boolean | undefined;
|
|
@@ -942,7 +950,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
942
950
|
amount: number;
|
|
943
951
|
dedicated_amount?: number | undefined;
|
|
944
952
|
payment_date: string;
|
|
945
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
953
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
946
954
|
journal_id: string;
|
|
947
955
|
journal_name: string;
|
|
948
956
|
reconciled?: boolean | undefined;
|
|
@@ -989,7 +997,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
989
997
|
amount: number;
|
|
990
998
|
dedicated_amount?: number | undefined;
|
|
991
999
|
payment_date: string;
|
|
992
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1000
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
993
1001
|
journal_id: string;
|
|
994
1002
|
journal_name: string;
|
|
995
1003
|
reconciled?: boolean | undefined;
|
|
@@ -1036,7 +1044,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1036
1044
|
amount: number;
|
|
1037
1045
|
dedicated_amount?: number | undefined;
|
|
1038
1046
|
payment_date: string;
|
|
1039
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1047
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1040
1048
|
journal_id: string;
|
|
1041
1049
|
journal_name: string;
|
|
1042
1050
|
reconciled?: boolean | undefined;
|
|
@@ -1087,7 +1095,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1087
1095
|
amount: number;
|
|
1088
1096
|
dedicated_amount?: number | undefined;
|
|
1089
1097
|
payment_date: string;
|
|
1090
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1098
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1091
1099
|
journal_id: string;
|
|
1092
1100
|
journal_name: string;
|
|
1093
1101
|
reconciled?: boolean | undefined;
|
|
@@ -1301,7 +1309,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1301
1309
|
amount: number;
|
|
1302
1310
|
dedicated_amount?: number | undefined;
|
|
1303
1311
|
payment_date: string;
|
|
1304
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1312
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1305
1313
|
journal_id: string;
|
|
1306
1314
|
journal_name: string;
|
|
1307
1315
|
reconciled?: boolean | undefined;
|
|
@@ -1312,13 +1320,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1312
1320
|
id: string;
|
|
1313
1321
|
code: string;
|
|
1314
1322
|
name: string;
|
|
1315
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1323
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1316
1324
|
}[]>;
|
|
1317
1325
|
getVatCodes(): import("../types/api").RequestData<{
|
|
1318
1326
|
id: string;
|
|
1319
1327
|
code?: string | undefined;
|
|
1320
1328
|
label: string;
|
|
1321
|
-
scope?: "
|
|
1329
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1322
1330
|
rate: number;
|
|
1323
1331
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1324
1332
|
}[]>;
|
|
@@ -1430,12 +1438,32 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1430
1438
|
reference?: string | undefined;
|
|
1431
1439
|
account_number?: string | undefined;
|
|
1432
1440
|
}[]>;
|
|
1433
|
-
|
|
1441
|
+
getOutstandings(params: {
|
|
1442
|
+
unposted_allowed: "true" | "false";
|
|
1443
|
+
type: "client" | "supplier";
|
|
1444
|
+
}): import("../types/api").RequestData<{
|
|
1445
|
+
id: string;
|
|
1446
|
+
number?: string | undefined;
|
|
1447
|
+
journal_id: string;
|
|
1448
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1449
|
+
date: string;
|
|
1450
|
+
due_date?: string | undefined;
|
|
1451
|
+
currency: string;
|
|
1452
|
+
currency_exchange_rate: number;
|
|
1453
|
+
amount: number;
|
|
1454
|
+
open_amount: number;
|
|
1455
|
+
partner_id: string;
|
|
1456
|
+
account_number: string;
|
|
1457
|
+
reference?: string | undefined;
|
|
1458
|
+
posted: boolean;
|
|
1459
|
+
}[]>;
|
|
1460
|
+
createFinancialEntryOld(financial_entry: {
|
|
1434
1461
|
date: string;
|
|
1435
1462
|
journal_id: string;
|
|
1436
1463
|
currency: string;
|
|
1437
1464
|
currency_exchange_rate?: number | undefined;
|
|
1438
1465
|
reference?: string | undefined;
|
|
1466
|
+
number?: string | undefined;
|
|
1439
1467
|
items: {
|
|
1440
1468
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1441
1469
|
account_number: string;
|
|
@@ -1443,14 +1471,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1443
1471
|
amount: number;
|
|
1444
1472
|
description?: string | undefined;
|
|
1445
1473
|
}[];
|
|
1446
|
-
number?: string | undefined;
|
|
1447
1474
|
pdf?: string | undefined;
|
|
1448
|
-
}
|
|
1475
|
+
}, params: {
|
|
1476
|
+
financial_counterpart_account?: string | undefined;
|
|
1477
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1449
1478
|
date: string;
|
|
1450
1479
|
journal_id: string;
|
|
1451
1480
|
currency: string;
|
|
1452
1481
|
currency_exchange_rate?: number | undefined;
|
|
1453
1482
|
reference?: string | undefined;
|
|
1483
|
+
id: string;
|
|
1484
|
+
number: string;
|
|
1454
1485
|
items: {
|
|
1455
1486
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1456
1487
|
account_number: string;
|
|
@@ -1459,13 +1490,97 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1459
1490
|
description?: string | undefined;
|
|
1460
1491
|
counterpart_account: string;
|
|
1461
1492
|
}[];
|
|
1493
|
+
}>;
|
|
1494
|
+
createFinancialEntry(financial_entry: {
|
|
1495
|
+
date: string;
|
|
1496
|
+
journal_id: string;
|
|
1497
|
+
currency: string;
|
|
1498
|
+
currency_exchange_rate?: number | undefined;
|
|
1499
|
+
reference?: string | undefined;
|
|
1500
|
+
number?: string | undefined;
|
|
1501
|
+
items: {
|
|
1502
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1503
|
+
account: string;
|
|
1504
|
+
amount: number;
|
|
1505
|
+
description?: string | undefined;
|
|
1506
|
+
}[];
|
|
1507
|
+
pdf?: string | undefined;
|
|
1508
|
+
}, params: {
|
|
1509
|
+
financial_counterpart_account?: string | undefined;
|
|
1510
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1511
|
+
date: string;
|
|
1512
|
+
journal_id: string;
|
|
1513
|
+
currency: string;
|
|
1514
|
+
currency_exchange_rate?: number | undefined;
|
|
1515
|
+
reference?: string | undefined;
|
|
1462
1516
|
id: string;
|
|
1463
1517
|
number: string;
|
|
1518
|
+
items: {
|
|
1519
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
1520
|
+
account: string;
|
|
1521
|
+
amount: number;
|
|
1522
|
+
description?: string | undefined;
|
|
1523
|
+
counterpart_account: string;
|
|
1524
|
+
}[];
|
|
1525
|
+
}[]>;
|
|
1526
|
+
createJournalEntry(journal_entry: {
|
|
1527
|
+
reference?: string | undefined;
|
|
1528
|
+
due_date?: string | undefined;
|
|
1529
|
+
journal_id: string;
|
|
1530
|
+
name: string;
|
|
1531
|
+
date: string;
|
|
1532
|
+
items: {
|
|
1533
|
+
account_number: string;
|
|
1534
|
+
partner_id?: string | undefined;
|
|
1535
|
+
description?: string | undefined;
|
|
1536
|
+
debit: number;
|
|
1537
|
+
credit: number;
|
|
1538
|
+
currency: string;
|
|
1539
|
+
currency_exchange_rate?: number | undefined;
|
|
1540
|
+
analytic_distribution?: {
|
|
1541
|
+
analytic_plan: string;
|
|
1542
|
+
analytic_accounts: {
|
|
1543
|
+
analytic_account: string;
|
|
1544
|
+
percentage: number;
|
|
1545
|
+
}[];
|
|
1546
|
+
}[] | undefined;
|
|
1547
|
+
pdf?: string | undefined;
|
|
1548
|
+
}[];
|
|
1549
|
+
}): import("../types/api").RequestData<{
|
|
1550
|
+
reference?: string | undefined;
|
|
1551
|
+
due_date?: string | undefined;
|
|
1552
|
+
journal_id: string;
|
|
1553
|
+
name?: string | undefined;
|
|
1554
|
+
journal_name: string;
|
|
1555
|
+
date?: string | undefined;
|
|
1556
|
+
posted?: boolean | undefined;
|
|
1557
|
+
id: string;
|
|
1558
|
+
items?: {
|
|
1559
|
+
account_number: string;
|
|
1560
|
+
partner_id?: string | undefined;
|
|
1561
|
+
description?: string | undefined;
|
|
1562
|
+
debit: number;
|
|
1563
|
+
credit: number;
|
|
1564
|
+
currency: string;
|
|
1565
|
+
currency_exchange_rate?: number | undefined;
|
|
1566
|
+
id: string;
|
|
1567
|
+
partner_name?: string | undefined;
|
|
1568
|
+
account_name: string;
|
|
1569
|
+
matching_numbers?: string[] | undefined;
|
|
1570
|
+
analytic_distribution?: {
|
|
1571
|
+
analytic_plan: string;
|
|
1572
|
+
analytic_accounts: {
|
|
1573
|
+
analytic_account: string;
|
|
1574
|
+
percentage: number;
|
|
1575
|
+
}[];
|
|
1576
|
+
}[] | undefined;
|
|
1577
|
+
}[] | undefined;
|
|
1464
1578
|
}>;
|
|
1465
1579
|
}>;
|
|
1466
1580
|
invoicing: import("../types/api").ApiFor<{
|
|
1467
1581
|
getInvoices(params: {
|
|
1468
1582
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
1583
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1469
1584
|
date_from?: string | undefined;
|
|
1470
1585
|
date_to?: string | undefined;
|
|
1471
1586
|
page?: number | undefined;
|
|
@@ -1484,12 +1599,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1484
1599
|
untaxed_amount: number;
|
|
1485
1600
|
total: number;
|
|
1486
1601
|
lines?: {
|
|
1487
|
-
description
|
|
1602
|
+
description?: string | undefined;
|
|
1488
1603
|
unit_price: number;
|
|
1489
1604
|
quantity: number;
|
|
1605
|
+
discount_amount?: number | undefined;
|
|
1490
1606
|
tax_amount: number;
|
|
1491
|
-
total: number;
|
|
1492
1607
|
untaxed_amount: number;
|
|
1608
|
+
total: number;
|
|
1493
1609
|
tax_rate?: number | undefined;
|
|
1494
1610
|
account_number?: string | undefined;
|
|
1495
1611
|
tax_id?: string | undefined;
|
|
@@ -1526,12 +1642,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1526
1642
|
untaxed_amount: number;
|
|
1527
1643
|
total: number;
|
|
1528
1644
|
lines?: {
|
|
1529
|
-
description
|
|
1645
|
+
description?: string | undefined;
|
|
1530
1646
|
unit_price: number;
|
|
1531
1647
|
quantity: number;
|
|
1648
|
+
discount_amount?: number | undefined;
|
|
1532
1649
|
tax_amount: number;
|
|
1533
|
-
total: number;
|
|
1534
1650
|
untaxed_amount: number;
|
|
1651
|
+
total: number;
|
|
1535
1652
|
tax_rate?: number | undefined;
|
|
1536
1653
|
account_number?: string | undefined;
|
|
1537
1654
|
tax_id?: string | undefined;
|
|
@@ -1561,12 +1678,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1561
1678
|
untaxed_amount: number;
|
|
1562
1679
|
total: number;
|
|
1563
1680
|
lines?: {
|
|
1564
|
-
description
|
|
1681
|
+
description?: string | undefined;
|
|
1565
1682
|
unit_price: number;
|
|
1566
1683
|
quantity: number;
|
|
1684
|
+
discount_amount?: number | undefined;
|
|
1567
1685
|
tax_amount: number;
|
|
1568
|
-
total: number;
|
|
1569
1686
|
untaxed_amount: number;
|
|
1687
|
+
total: number;
|
|
1570
1688
|
tax_rate?: number | undefined;
|
|
1571
1689
|
account_number?: string | undefined;
|
|
1572
1690
|
tax_id?: string | undefined;
|
|
@@ -1600,12 +1718,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1600
1718
|
untaxed_amount: number;
|
|
1601
1719
|
total: number;
|
|
1602
1720
|
lines?: {
|
|
1603
|
-
description
|
|
1721
|
+
description?: string | undefined;
|
|
1604
1722
|
unit_price: number;
|
|
1605
1723
|
quantity: number;
|
|
1724
|
+
discount_amount?: number | undefined;
|
|
1606
1725
|
tax_amount: number;
|
|
1607
|
-
total: number;
|
|
1608
1726
|
untaxed_amount: number;
|
|
1727
|
+
total: number;
|
|
1609
1728
|
tax_rate?: number | undefined;
|
|
1610
1729
|
account_number?: string | undefined;
|
|
1611
1730
|
tax_id?: string | undefined;
|
|
@@ -1690,7 +1809,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1690
1809
|
rate: number;
|
|
1691
1810
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1692
1811
|
code?: string | undefined;
|
|
1693
|
-
scope?: "
|
|
1812
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1694
1813
|
}[]>;
|
|
1695
1814
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
1696
1815
|
id: string;
|
|
@@ -1702,7 +1821,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1702
1821
|
rate: number;
|
|
1703
1822
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1704
1823
|
code?: string | undefined;
|
|
1705
|
-
scope?: "
|
|
1824
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1706
1825
|
}>;
|
|
1707
1826
|
getOpportunities(): import("../types/api").RequestData<{
|
|
1708
1827
|
id: string;
|
|
@@ -1757,7 +1876,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1757
1876
|
} | undefined;
|
|
1758
1877
|
}>;
|
|
1759
1878
|
getContacts(params?: {
|
|
1760
|
-
contact_type?: "all" | "
|
|
1879
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
1761
1880
|
page?: number | undefined;
|
|
1762
1881
|
size?: number | undefined;
|
|
1763
1882
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -2213,7 +2332,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2213
2332
|
last_updated_on?: string | undefined;
|
|
2214
2333
|
confirmed_on?: string | undefined;
|
|
2215
2334
|
cancelled_on?: string | undefined;
|
|
2216
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2335
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2217
2336
|
discount_amount: number;
|
|
2218
2337
|
untaxed_amount_without_fees: number;
|
|
2219
2338
|
tax_amount_without_fees: number;
|
|
@@ -2360,7 +2479,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2360
2479
|
last_updated_on?: string | undefined;
|
|
2361
2480
|
confirmed_on?: string | undefined;
|
|
2362
2481
|
cancelled_on?: string | undefined;
|
|
2363
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2482
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2364
2483
|
discount_amount: number;
|
|
2365
2484
|
untaxed_amount_without_fees: number;
|
|
2366
2485
|
tax_amount_without_fees: number;
|
|
@@ -2466,7 +2585,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2466
2585
|
last_updated_on?: string | undefined;
|
|
2467
2586
|
confirmed_on?: string | undefined;
|
|
2468
2587
|
cancelled_on?: string | undefined;
|
|
2469
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
2588
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
2470
2589
|
discount_amount: number;
|
|
2471
2590
|
untaxed_amount_without_fees: number;
|
|
2472
2591
|
tax_amount_without_fees: number;
|
|
@@ -2577,7 +2696,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2577
2696
|
name: string;
|
|
2578
2697
|
title: string;
|
|
2579
2698
|
type: string;
|
|
2580
|
-
|
|
2699
|
+
optional?: boolean | undefined;
|
|
2581
2700
|
}[];
|
|
2582
2701
|
search_column?: string | undefined;
|
|
2583
2702
|
};
|
|
@@ -2962,6 +3081,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2962
3081
|
country?: string | undefined;
|
|
2963
3082
|
}[] | undefined;
|
|
2964
3083
|
account_number?: string | undefined;
|
|
3084
|
+
company_number?: string | undefined;
|
|
2965
3085
|
id?: string | undefined;
|
|
2966
3086
|
}[]>;
|
|
2967
3087
|
createClient(client: {
|
|
@@ -3032,6 +3152,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3032
3152
|
country?: string | undefined;
|
|
3033
3153
|
}[] | undefined;
|
|
3034
3154
|
account_number?: string | undefined;
|
|
3155
|
+
company_number?: string | undefined;
|
|
3035
3156
|
id?: string | undefined;
|
|
3036
3157
|
}>;
|
|
3037
3158
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -3067,6 +3188,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3067
3188
|
country?: string | undefined;
|
|
3068
3189
|
}[] | undefined;
|
|
3069
3190
|
account_number?: string | undefined;
|
|
3191
|
+
company_number?: string | undefined;
|
|
3070
3192
|
id?: string | undefined;
|
|
3071
3193
|
}>;
|
|
3072
3194
|
updateClient(clientId: string, client: {
|
|
@@ -3134,6 +3256,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3134
3256
|
country?: string | undefined;
|
|
3135
3257
|
}[] | undefined;
|
|
3136
3258
|
account_number?: string | undefined;
|
|
3259
|
+
company_number?: string | undefined;
|
|
3137
3260
|
id?: string | undefined;
|
|
3138
3261
|
}>;
|
|
3139
3262
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -3169,6 +3292,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3169
3292
|
country?: string | undefined;
|
|
3170
3293
|
}[] | undefined;
|
|
3171
3294
|
account_number?: string | undefined;
|
|
3295
|
+
company_number?: string | undefined;
|
|
3172
3296
|
id?: string | undefined;
|
|
3173
3297
|
}[]>;
|
|
3174
3298
|
createSupplier(supplier: {
|
|
@@ -3239,6 +3363,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3239
3363
|
country?: string | undefined;
|
|
3240
3364
|
}[] | undefined;
|
|
3241
3365
|
account_number?: string | undefined;
|
|
3366
|
+
company_number?: string | undefined;
|
|
3242
3367
|
id?: string | undefined;
|
|
3243
3368
|
}>;
|
|
3244
3369
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -3274,6 +3399,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3274
3399
|
country?: string | undefined;
|
|
3275
3400
|
}[] | undefined;
|
|
3276
3401
|
account_number?: string | undefined;
|
|
3402
|
+
company_number?: string | undefined;
|
|
3277
3403
|
id?: string | undefined;
|
|
3278
3404
|
}>;
|
|
3279
3405
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -3341,6 +3467,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3341
3467
|
country?: string | undefined;
|
|
3342
3468
|
}[] | undefined;
|
|
3343
3469
|
account_number?: string | undefined;
|
|
3470
|
+
company_number?: string | undefined;
|
|
3344
3471
|
id?: string | undefined;
|
|
3345
3472
|
}>;
|
|
3346
3473
|
createInvoice(invoice: {
|
|
@@ -3405,7 +3532,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3405
3532
|
amount: number;
|
|
3406
3533
|
dedicated_amount?: number | undefined;
|
|
3407
3534
|
payment_date: string;
|
|
3408
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3535
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3409
3536
|
journal_id: string;
|
|
3410
3537
|
journal_name: string;
|
|
3411
3538
|
reconciled?: boolean | undefined;
|
|
@@ -3496,7 +3623,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3496
3623
|
amount: number;
|
|
3497
3624
|
dedicated_amount?: number | undefined;
|
|
3498
3625
|
payment_date: string;
|
|
3499
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3626
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3500
3627
|
journal_id: string;
|
|
3501
3628
|
journal_name: string;
|
|
3502
3629
|
reconciled?: boolean | undefined;
|
|
@@ -3547,7 +3674,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3547
3674
|
amount: number;
|
|
3548
3675
|
dedicated_amount?: number | undefined;
|
|
3549
3676
|
payment_date: string;
|
|
3550
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3677
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3551
3678
|
journal_id: string;
|
|
3552
3679
|
journal_name: string;
|
|
3553
3680
|
reconciled?: boolean | undefined;
|
|
@@ -3594,7 +3721,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3594
3721
|
amount: number;
|
|
3595
3722
|
dedicated_amount?: number | undefined;
|
|
3596
3723
|
payment_date: string;
|
|
3597
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3724
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3598
3725
|
journal_id: string;
|
|
3599
3726
|
journal_name: string;
|
|
3600
3727
|
reconciled?: boolean | undefined;
|
|
@@ -3641,7 +3768,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3641
3768
|
amount: number;
|
|
3642
3769
|
dedicated_amount?: number | undefined;
|
|
3643
3770
|
payment_date: string;
|
|
3644
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3771
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3645
3772
|
journal_id: string;
|
|
3646
3773
|
journal_name: string;
|
|
3647
3774
|
reconciled?: boolean | undefined;
|
|
@@ -3692,7 +3819,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3692
3819
|
amount: number;
|
|
3693
3820
|
dedicated_amount?: number | undefined;
|
|
3694
3821
|
payment_date: string;
|
|
3695
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3822
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3696
3823
|
journal_id: string;
|
|
3697
3824
|
journal_name: string;
|
|
3698
3825
|
reconciled?: boolean | undefined;
|
|
@@ -3906,7 +4033,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3906
4033
|
amount: number;
|
|
3907
4034
|
dedicated_amount?: number | undefined;
|
|
3908
4035
|
payment_date: string;
|
|
3909
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
4036
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3910
4037
|
journal_id: string;
|
|
3911
4038
|
journal_name: string;
|
|
3912
4039
|
reconciled?: boolean | undefined;
|
|
@@ -3917,13 +4044,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3917
4044
|
id: string;
|
|
3918
4045
|
code: string;
|
|
3919
4046
|
name: string;
|
|
3920
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
4047
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3921
4048
|
}[]>;
|
|
3922
4049
|
getVatCodes(): import("../types/api").RequestData<{
|
|
3923
4050
|
id: string;
|
|
3924
4051
|
code?: string | undefined;
|
|
3925
4052
|
label: string;
|
|
3926
|
-
scope?: "
|
|
4053
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
3927
4054
|
rate: number;
|
|
3928
4055
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
3929
4056
|
}[]>;
|
|
@@ -4035,12 +4162,32 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4035
4162
|
reference?: string | undefined;
|
|
4036
4163
|
account_number?: string | undefined;
|
|
4037
4164
|
}[]>;
|
|
4038
|
-
|
|
4165
|
+
getOutstandings(params: {
|
|
4166
|
+
unposted_allowed: "true" | "false";
|
|
4167
|
+
type: "client" | "supplier";
|
|
4168
|
+
}): import("../types/api").RequestData<{
|
|
4169
|
+
id: string;
|
|
4170
|
+
number?: string | undefined;
|
|
4171
|
+
journal_id: string;
|
|
4172
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
4173
|
+
date: string;
|
|
4174
|
+
due_date?: string | undefined;
|
|
4175
|
+
currency: string;
|
|
4176
|
+
currency_exchange_rate: number;
|
|
4177
|
+
amount: number;
|
|
4178
|
+
open_amount: number;
|
|
4179
|
+
partner_id: string;
|
|
4180
|
+
account_number: string;
|
|
4181
|
+
reference?: string | undefined;
|
|
4182
|
+
posted: boolean;
|
|
4183
|
+
}[]>;
|
|
4184
|
+
createFinancialEntryOld(financial_entry: {
|
|
4039
4185
|
date: string;
|
|
4040
4186
|
journal_id: string;
|
|
4041
4187
|
currency: string;
|
|
4042
4188
|
currency_exchange_rate?: number | undefined;
|
|
4043
4189
|
reference?: string | undefined;
|
|
4190
|
+
number?: string | undefined;
|
|
4044
4191
|
items: {
|
|
4045
4192
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4046
4193
|
account_number: string;
|
|
@@ -4048,14 +4195,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4048
4195
|
amount: number;
|
|
4049
4196
|
description?: string | undefined;
|
|
4050
4197
|
}[];
|
|
4051
|
-
number?: string | undefined;
|
|
4052
4198
|
pdf?: string | undefined;
|
|
4053
|
-
}
|
|
4199
|
+
}, params: {
|
|
4200
|
+
financial_counterpart_account?: string | undefined;
|
|
4201
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4054
4202
|
date: string;
|
|
4055
4203
|
journal_id: string;
|
|
4056
4204
|
currency: string;
|
|
4057
4205
|
currency_exchange_rate?: number | undefined;
|
|
4058
4206
|
reference?: string | undefined;
|
|
4207
|
+
id: string;
|
|
4208
|
+
number: string;
|
|
4059
4209
|
items: {
|
|
4060
4210
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4061
4211
|
account_number: string;
|
|
@@ -4064,13 +4214,97 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4064
4214
|
description?: string | undefined;
|
|
4065
4215
|
counterpart_account: string;
|
|
4066
4216
|
}[];
|
|
4217
|
+
}>;
|
|
4218
|
+
createFinancialEntry(financial_entry: {
|
|
4219
|
+
date: string;
|
|
4220
|
+
journal_id: string;
|
|
4221
|
+
currency: string;
|
|
4222
|
+
currency_exchange_rate?: number | undefined;
|
|
4223
|
+
reference?: string | undefined;
|
|
4224
|
+
number?: string | undefined;
|
|
4225
|
+
items: {
|
|
4226
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4227
|
+
account: string;
|
|
4228
|
+
amount: number;
|
|
4229
|
+
description?: string | undefined;
|
|
4230
|
+
}[];
|
|
4231
|
+
pdf?: string | undefined;
|
|
4232
|
+
}, params: {
|
|
4233
|
+
financial_counterpart_account?: string | undefined;
|
|
4234
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4235
|
+
date: string;
|
|
4236
|
+
journal_id: string;
|
|
4237
|
+
currency: string;
|
|
4238
|
+
currency_exchange_rate?: number | undefined;
|
|
4239
|
+
reference?: string | undefined;
|
|
4067
4240
|
id: string;
|
|
4068
4241
|
number: string;
|
|
4242
|
+
items: {
|
|
4243
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
4244
|
+
account: string;
|
|
4245
|
+
amount: number;
|
|
4246
|
+
description?: string | undefined;
|
|
4247
|
+
counterpart_account: string;
|
|
4248
|
+
}[];
|
|
4249
|
+
}[]>;
|
|
4250
|
+
createJournalEntry(journal_entry: {
|
|
4251
|
+
reference?: string | undefined;
|
|
4252
|
+
due_date?: string | undefined;
|
|
4253
|
+
journal_id: string;
|
|
4254
|
+
name: string;
|
|
4255
|
+
date: string;
|
|
4256
|
+
items: {
|
|
4257
|
+
account_number: string;
|
|
4258
|
+
partner_id?: string | undefined;
|
|
4259
|
+
description?: string | undefined;
|
|
4260
|
+
debit: number;
|
|
4261
|
+
credit: number;
|
|
4262
|
+
currency: string;
|
|
4263
|
+
currency_exchange_rate?: number | undefined;
|
|
4264
|
+
analytic_distribution?: {
|
|
4265
|
+
analytic_plan: string;
|
|
4266
|
+
analytic_accounts: {
|
|
4267
|
+
analytic_account: string;
|
|
4268
|
+
percentage: number;
|
|
4269
|
+
}[];
|
|
4270
|
+
}[] | undefined;
|
|
4271
|
+
pdf?: string | undefined;
|
|
4272
|
+
}[];
|
|
4273
|
+
}): import("../types/api").RequestData<{
|
|
4274
|
+
reference?: string | undefined;
|
|
4275
|
+
due_date?: string | undefined;
|
|
4276
|
+
journal_id: string;
|
|
4277
|
+
name?: string | undefined;
|
|
4278
|
+
journal_name: string;
|
|
4279
|
+
date?: string | undefined;
|
|
4280
|
+
posted?: boolean | undefined;
|
|
4281
|
+
id: string;
|
|
4282
|
+
items?: {
|
|
4283
|
+
account_number: string;
|
|
4284
|
+
partner_id?: string | undefined;
|
|
4285
|
+
description?: string | undefined;
|
|
4286
|
+
debit: number;
|
|
4287
|
+
credit: number;
|
|
4288
|
+
currency: string;
|
|
4289
|
+
currency_exchange_rate?: number | undefined;
|
|
4290
|
+
id: string;
|
|
4291
|
+
partner_name?: string | undefined;
|
|
4292
|
+
account_name: string;
|
|
4293
|
+
matching_numbers?: string[] | undefined;
|
|
4294
|
+
analytic_distribution?: {
|
|
4295
|
+
analytic_plan: string;
|
|
4296
|
+
analytic_accounts: {
|
|
4297
|
+
analytic_account: string;
|
|
4298
|
+
percentage: number;
|
|
4299
|
+
}[];
|
|
4300
|
+
}[] | undefined;
|
|
4301
|
+
}[] | undefined;
|
|
4069
4302
|
}>;
|
|
4070
4303
|
}>;
|
|
4071
4304
|
invoicing: import("../types/api").ApiFor<{
|
|
4072
4305
|
getInvoices(params: {
|
|
4073
4306
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
4307
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
4074
4308
|
date_from?: string | undefined;
|
|
4075
4309
|
date_to?: string | undefined;
|
|
4076
4310
|
page?: number | undefined;
|
|
@@ -4089,12 +4323,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4089
4323
|
untaxed_amount: number;
|
|
4090
4324
|
total: number;
|
|
4091
4325
|
lines?: {
|
|
4092
|
-
description
|
|
4326
|
+
description?: string | undefined;
|
|
4093
4327
|
unit_price: number;
|
|
4094
4328
|
quantity: number;
|
|
4329
|
+
discount_amount?: number | undefined;
|
|
4095
4330
|
tax_amount: number;
|
|
4096
|
-
total: number;
|
|
4097
4331
|
untaxed_amount: number;
|
|
4332
|
+
total: number;
|
|
4098
4333
|
tax_rate?: number | undefined;
|
|
4099
4334
|
account_number?: string | undefined;
|
|
4100
4335
|
tax_id?: string | undefined;
|
|
@@ -4131,12 +4366,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4131
4366
|
untaxed_amount: number;
|
|
4132
4367
|
total: number;
|
|
4133
4368
|
lines?: {
|
|
4134
|
-
description
|
|
4369
|
+
description?: string | undefined;
|
|
4135
4370
|
unit_price: number;
|
|
4136
4371
|
quantity: number;
|
|
4372
|
+
discount_amount?: number | undefined;
|
|
4137
4373
|
tax_amount: number;
|
|
4138
|
-
total: number;
|
|
4139
4374
|
untaxed_amount: number;
|
|
4375
|
+
total: number;
|
|
4140
4376
|
tax_rate?: number | undefined;
|
|
4141
4377
|
account_number?: string | undefined;
|
|
4142
4378
|
tax_id?: string | undefined;
|
|
@@ -4166,12 +4402,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4166
4402
|
untaxed_amount: number;
|
|
4167
4403
|
total: number;
|
|
4168
4404
|
lines?: {
|
|
4169
|
-
description
|
|
4405
|
+
description?: string | undefined;
|
|
4170
4406
|
unit_price: number;
|
|
4171
4407
|
quantity: number;
|
|
4408
|
+
discount_amount?: number | undefined;
|
|
4172
4409
|
tax_amount: number;
|
|
4173
|
-
total: number;
|
|
4174
4410
|
untaxed_amount: number;
|
|
4411
|
+
total: number;
|
|
4175
4412
|
tax_rate?: number | undefined;
|
|
4176
4413
|
account_number?: string | undefined;
|
|
4177
4414
|
tax_id?: string | undefined;
|
|
@@ -4205,12 +4442,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4205
4442
|
untaxed_amount: number;
|
|
4206
4443
|
total: number;
|
|
4207
4444
|
lines?: {
|
|
4208
|
-
description
|
|
4445
|
+
description?: string | undefined;
|
|
4209
4446
|
unit_price: number;
|
|
4210
4447
|
quantity: number;
|
|
4448
|
+
discount_amount?: number | undefined;
|
|
4211
4449
|
tax_amount: number;
|
|
4212
|
-
total: number;
|
|
4213
4450
|
untaxed_amount: number;
|
|
4451
|
+
total: number;
|
|
4214
4452
|
tax_rate?: number | undefined;
|
|
4215
4453
|
account_number?: string | undefined;
|
|
4216
4454
|
tax_id?: string | undefined;
|
|
@@ -4295,7 +4533,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4295
4533
|
rate: number;
|
|
4296
4534
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
4297
4535
|
code?: string | undefined;
|
|
4298
|
-
scope?: "
|
|
4536
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
4299
4537
|
}[]>;
|
|
4300
4538
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
4301
4539
|
id: string;
|
|
@@ -4307,7 +4545,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4307
4545
|
rate: number;
|
|
4308
4546
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
4309
4547
|
code?: string | undefined;
|
|
4310
|
-
scope?: "
|
|
4548
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
4311
4549
|
}>;
|
|
4312
4550
|
getOpportunities(): import("../types/api").RequestData<{
|
|
4313
4551
|
id: string;
|
|
@@ -4362,7 +4600,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4362
4600
|
} | undefined;
|
|
4363
4601
|
}>;
|
|
4364
4602
|
getContacts(params?: {
|
|
4365
|
-
contact_type?: "all" | "
|
|
4603
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
4366
4604
|
page?: number | undefined;
|
|
4367
4605
|
size?: number | undefined;
|
|
4368
4606
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -4818,7 +5056,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4818
5056
|
last_updated_on?: string | undefined;
|
|
4819
5057
|
confirmed_on?: string | undefined;
|
|
4820
5058
|
cancelled_on?: string | undefined;
|
|
4821
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5059
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
4822
5060
|
discount_amount: number;
|
|
4823
5061
|
untaxed_amount_without_fees: number;
|
|
4824
5062
|
tax_amount_without_fees: number;
|
|
@@ -4965,7 +5203,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4965
5203
|
last_updated_on?: string | undefined;
|
|
4966
5204
|
confirmed_on?: string | undefined;
|
|
4967
5205
|
cancelled_on?: string | undefined;
|
|
4968
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5206
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
4969
5207
|
discount_amount: number;
|
|
4970
5208
|
untaxed_amount_without_fees: number;
|
|
4971
5209
|
tax_amount_without_fees: number;
|
|
@@ -5071,7 +5309,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5071
5309
|
last_updated_on?: string | undefined;
|
|
5072
5310
|
confirmed_on?: string | undefined;
|
|
5073
5311
|
cancelled_on?: string | undefined;
|
|
5074
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
5312
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
5075
5313
|
discount_amount: number;
|
|
5076
5314
|
untaxed_amount_without_fees: number;
|
|
5077
5315
|
tax_amount_without_fees: number;
|
|
@@ -5182,7 +5420,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5182
5420
|
name: string;
|
|
5183
5421
|
title: string;
|
|
5184
5422
|
type: string;
|
|
5185
|
-
|
|
5423
|
+
optional?: boolean | undefined;
|
|
5186
5424
|
}[];
|
|
5187
5425
|
search_column?: string | undefined;
|
|
5188
5426
|
};
|
|
@@ -5567,6 +5805,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5567
5805
|
country?: string | undefined;
|
|
5568
5806
|
}[] | undefined;
|
|
5569
5807
|
account_number?: string | undefined;
|
|
5808
|
+
company_number?: string | undefined;
|
|
5570
5809
|
id?: string | undefined;
|
|
5571
5810
|
}[]>;
|
|
5572
5811
|
createClient(client: {
|
|
@@ -5637,6 +5876,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5637
5876
|
country?: string | undefined;
|
|
5638
5877
|
}[] | undefined;
|
|
5639
5878
|
account_number?: string | undefined;
|
|
5879
|
+
company_number?: string | undefined;
|
|
5640
5880
|
id?: string | undefined;
|
|
5641
5881
|
}>;
|
|
5642
5882
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -5672,6 +5912,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5672
5912
|
country?: string | undefined;
|
|
5673
5913
|
}[] | undefined;
|
|
5674
5914
|
account_number?: string | undefined;
|
|
5915
|
+
company_number?: string | undefined;
|
|
5675
5916
|
id?: string | undefined;
|
|
5676
5917
|
}>;
|
|
5677
5918
|
updateClient(clientId: string, client: {
|
|
@@ -5739,6 +5980,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5739
5980
|
country?: string | undefined;
|
|
5740
5981
|
}[] | undefined;
|
|
5741
5982
|
account_number?: string | undefined;
|
|
5983
|
+
company_number?: string | undefined;
|
|
5742
5984
|
id?: string | undefined;
|
|
5743
5985
|
}>;
|
|
5744
5986
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -5774,6 +6016,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5774
6016
|
country?: string | undefined;
|
|
5775
6017
|
}[] | undefined;
|
|
5776
6018
|
account_number?: string | undefined;
|
|
6019
|
+
company_number?: string | undefined;
|
|
5777
6020
|
id?: string | undefined;
|
|
5778
6021
|
}[]>;
|
|
5779
6022
|
createSupplier(supplier: {
|
|
@@ -5844,6 +6087,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5844
6087
|
country?: string | undefined;
|
|
5845
6088
|
}[] | undefined;
|
|
5846
6089
|
account_number?: string | undefined;
|
|
6090
|
+
company_number?: string | undefined;
|
|
5847
6091
|
id?: string | undefined;
|
|
5848
6092
|
}>;
|
|
5849
6093
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -5879,6 +6123,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5879
6123
|
country?: string | undefined;
|
|
5880
6124
|
}[] | undefined;
|
|
5881
6125
|
account_number?: string | undefined;
|
|
6126
|
+
company_number?: string | undefined;
|
|
5882
6127
|
id?: string | undefined;
|
|
5883
6128
|
}>;
|
|
5884
6129
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -5946,6 +6191,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5946
6191
|
country?: string | undefined;
|
|
5947
6192
|
}[] | undefined;
|
|
5948
6193
|
account_number?: string | undefined;
|
|
6194
|
+
company_number?: string | undefined;
|
|
5949
6195
|
id?: string | undefined;
|
|
5950
6196
|
}>;
|
|
5951
6197
|
createInvoice(invoice: {
|
|
@@ -6010,7 +6256,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6010
6256
|
amount: number;
|
|
6011
6257
|
dedicated_amount?: number | undefined;
|
|
6012
6258
|
payment_date: string;
|
|
6013
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6259
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6014
6260
|
journal_id: string;
|
|
6015
6261
|
journal_name: string;
|
|
6016
6262
|
reconciled?: boolean | undefined;
|
|
@@ -6101,7 +6347,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6101
6347
|
amount: number;
|
|
6102
6348
|
dedicated_amount?: number | undefined;
|
|
6103
6349
|
payment_date: string;
|
|
6104
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6350
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6105
6351
|
journal_id: string;
|
|
6106
6352
|
journal_name: string;
|
|
6107
6353
|
reconciled?: boolean | undefined;
|
|
@@ -6152,7 +6398,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6152
6398
|
amount: number;
|
|
6153
6399
|
dedicated_amount?: number | undefined;
|
|
6154
6400
|
payment_date: string;
|
|
6155
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6401
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6156
6402
|
journal_id: string;
|
|
6157
6403
|
journal_name: string;
|
|
6158
6404
|
reconciled?: boolean | undefined;
|
|
@@ -6199,7 +6445,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6199
6445
|
amount: number;
|
|
6200
6446
|
dedicated_amount?: number | undefined;
|
|
6201
6447
|
payment_date: string;
|
|
6202
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6448
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6203
6449
|
journal_id: string;
|
|
6204
6450
|
journal_name: string;
|
|
6205
6451
|
reconciled?: boolean | undefined;
|
|
@@ -6246,7 +6492,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6246
6492
|
amount: number;
|
|
6247
6493
|
dedicated_amount?: number | undefined;
|
|
6248
6494
|
payment_date: string;
|
|
6249
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6495
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6250
6496
|
journal_id: string;
|
|
6251
6497
|
journal_name: string;
|
|
6252
6498
|
reconciled?: boolean | undefined;
|
|
@@ -6297,7 +6543,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6297
6543
|
amount: number;
|
|
6298
6544
|
dedicated_amount?: number | undefined;
|
|
6299
6545
|
payment_date: string;
|
|
6300
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6546
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6301
6547
|
journal_id: string;
|
|
6302
6548
|
journal_name: string;
|
|
6303
6549
|
reconciled?: boolean | undefined;
|
|
@@ -6511,7 +6757,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6511
6757
|
amount: number;
|
|
6512
6758
|
dedicated_amount?: number | undefined;
|
|
6513
6759
|
payment_date: string;
|
|
6514
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6760
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6515
6761
|
journal_id: string;
|
|
6516
6762
|
journal_name: string;
|
|
6517
6763
|
reconciled?: boolean | undefined;
|
|
@@ -6522,13 +6768,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6522
6768
|
id: string;
|
|
6523
6769
|
code: string;
|
|
6524
6770
|
name: string;
|
|
6525
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6771
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6526
6772
|
}[]>;
|
|
6527
6773
|
getVatCodes(): import("../types/api").RequestData<{
|
|
6528
6774
|
id: string;
|
|
6529
6775
|
code?: string | undefined;
|
|
6530
6776
|
label: string;
|
|
6531
|
-
scope?: "
|
|
6777
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
6532
6778
|
rate: number;
|
|
6533
6779
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
6534
6780
|
}[]>;
|
|
@@ -6640,12 +6886,32 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6640
6886
|
reference?: string | undefined;
|
|
6641
6887
|
account_number?: string | undefined;
|
|
6642
6888
|
}[]>;
|
|
6643
|
-
|
|
6644
|
-
|
|
6889
|
+
getOutstandings(params: {
|
|
6890
|
+
unposted_allowed: "true" | "false";
|
|
6891
|
+
type: "client" | "supplier";
|
|
6892
|
+
}): import("../types/api").RequestData<{
|
|
6893
|
+
id: string;
|
|
6894
|
+
number?: string | undefined;
|
|
6895
|
+
journal_id: string;
|
|
6896
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6897
|
+
date: string;
|
|
6898
|
+
due_date?: string | undefined;
|
|
6899
|
+
currency: string;
|
|
6900
|
+
currency_exchange_rate: number;
|
|
6901
|
+
amount: number;
|
|
6902
|
+
open_amount: number;
|
|
6903
|
+
partner_id: string;
|
|
6904
|
+
account_number: string;
|
|
6905
|
+
reference?: string | undefined;
|
|
6906
|
+
posted: boolean;
|
|
6907
|
+
}[]>;
|
|
6908
|
+
createFinancialEntryOld(financial_entry: {
|
|
6909
|
+
date: string;
|
|
6645
6910
|
journal_id: string;
|
|
6646
6911
|
currency: string;
|
|
6647
6912
|
currency_exchange_rate?: number | undefined;
|
|
6648
6913
|
reference?: string | undefined;
|
|
6914
|
+
number?: string | undefined;
|
|
6649
6915
|
items: {
|
|
6650
6916
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6651
6917
|
account_number: string;
|
|
@@ -6653,14 +6919,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6653
6919
|
amount: number;
|
|
6654
6920
|
description?: string | undefined;
|
|
6655
6921
|
}[];
|
|
6656
|
-
number?: string | undefined;
|
|
6657
6922
|
pdf?: string | undefined;
|
|
6658
|
-
}
|
|
6923
|
+
}, params: {
|
|
6924
|
+
financial_counterpart_account?: string | undefined;
|
|
6925
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6659
6926
|
date: string;
|
|
6660
6927
|
journal_id: string;
|
|
6661
6928
|
currency: string;
|
|
6662
6929
|
currency_exchange_rate?: number | undefined;
|
|
6663
6930
|
reference?: string | undefined;
|
|
6931
|
+
id: string;
|
|
6932
|
+
number: string;
|
|
6664
6933
|
items: {
|
|
6665
6934
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6666
6935
|
account_number: string;
|
|
@@ -6669,13 +6938,97 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6669
6938
|
description?: string | undefined;
|
|
6670
6939
|
counterpart_account: string;
|
|
6671
6940
|
}[];
|
|
6941
|
+
}>;
|
|
6942
|
+
createFinancialEntry(financial_entry: {
|
|
6943
|
+
date: string;
|
|
6944
|
+
journal_id: string;
|
|
6945
|
+
currency: string;
|
|
6946
|
+
currency_exchange_rate?: number | undefined;
|
|
6947
|
+
reference?: string | undefined;
|
|
6948
|
+
number?: string | undefined;
|
|
6949
|
+
items: {
|
|
6950
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6951
|
+
account: string;
|
|
6952
|
+
amount: number;
|
|
6953
|
+
description?: string | undefined;
|
|
6954
|
+
}[];
|
|
6955
|
+
pdf?: string | undefined;
|
|
6956
|
+
}, params: {
|
|
6957
|
+
financial_counterpart_account?: string | undefined;
|
|
6958
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6959
|
+
date: string;
|
|
6960
|
+
journal_id: string;
|
|
6961
|
+
currency: string;
|
|
6962
|
+
currency_exchange_rate?: number | undefined;
|
|
6963
|
+
reference?: string | undefined;
|
|
6672
6964
|
id: string;
|
|
6673
6965
|
number: string;
|
|
6966
|
+
items: {
|
|
6967
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
6968
|
+
account: string;
|
|
6969
|
+
amount: number;
|
|
6970
|
+
description?: string | undefined;
|
|
6971
|
+
counterpart_account: string;
|
|
6972
|
+
}[];
|
|
6973
|
+
}[]>;
|
|
6974
|
+
createJournalEntry(journal_entry: {
|
|
6975
|
+
reference?: string | undefined;
|
|
6976
|
+
due_date?: string | undefined;
|
|
6977
|
+
journal_id: string;
|
|
6978
|
+
name: string;
|
|
6979
|
+
date: string;
|
|
6980
|
+
items: {
|
|
6981
|
+
account_number: string;
|
|
6982
|
+
partner_id?: string | undefined;
|
|
6983
|
+
description?: string | undefined;
|
|
6984
|
+
debit: number;
|
|
6985
|
+
credit: number;
|
|
6986
|
+
currency: string;
|
|
6987
|
+
currency_exchange_rate?: number | undefined;
|
|
6988
|
+
analytic_distribution?: {
|
|
6989
|
+
analytic_plan: string;
|
|
6990
|
+
analytic_accounts: {
|
|
6991
|
+
analytic_account: string;
|
|
6992
|
+
percentage: number;
|
|
6993
|
+
}[];
|
|
6994
|
+
}[] | undefined;
|
|
6995
|
+
pdf?: string | undefined;
|
|
6996
|
+
}[];
|
|
6997
|
+
}): import("../types/api").RequestData<{
|
|
6998
|
+
reference?: string | undefined;
|
|
6999
|
+
due_date?: string | undefined;
|
|
7000
|
+
journal_id: string;
|
|
7001
|
+
name?: string | undefined;
|
|
7002
|
+
journal_name: string;
|
|
7003
|
+
date?: string | undefined;
|
|
7004
|
+
posted?: boolean | undefined;
|
|
7005
|
+
id: string;
|
|
7006
|
+
items?: {
|
|
7007
|
+
account_number: string;
|
|
7008
|
+
partner_id?: string | undefined;
|
|
7009
|
+
description?: string | undefined;
|
|
7010
|
+
debit: number;
|
|
7011
|
+
credit: number;
|
|
7012
|
+
currency: string;
|
|
7013
|
+
currency_exchange_rate?: number | undefined;
|
|
7014
|
+
id: string;
|
|
7015
|
+
partner_name?: string | undefined;
|
|
7016
|
+
account_name: string;
|
|
7017
|
+
matching_numbers?: string[] | undefined;
|
|
7018
|
+
analytic_distribution?: {
|
|
7019
|
+
analytic_plan: string;
|
|
7020
|
+
analytic_accounts: {
|
|
7021
|
+
analytic_account: string;
|
|
7022
|
+
percentage: number;
|
|
7023
|
+
}[];
|
|
7024
|
+
}[] | undefined;
|
|
7025
|
+
}[] | undefined;
|
|
6674
7026
|
}>;
|
|
6675
7027
|
}>;
|
|
6676
7028
|
invoicing: import("../types/api").ApiFor<{
|
|
6677
7029
|
getInvoices(params: {
|
|
6678
7030
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
7031
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
6679
7032
|
date_from?: string | undefined;
|
|
6680
7033
|
date_to?: string | undefined;
|
|
6681
7034
|
page?: number | undefined;
|
|
@@ -6694,12 +7047,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6694
7047
|
untaxed_amount: number;
|
|
6695
7048
|
total: number;
|
|
6696
7049
|
lines?: {
|
|
6697
|
-
description
|
|
7050
|
+
description?: string | undefined;
|
|
6698
7051
|
unit_price: number;
|
|
6699
7052
|
quantity: number;
|
|
7053
|
+
discount_amount?: number | undefined;
|
|
6700
7054
|
tax_amount: number;
|
|
6701
|
-
total: number;
|
|
6702
7055
|
untaxed_amount: number;
|
|
7056
|
+
total: number;
|
|
6703
7057
|
tax_rate?: number | undefined;
|
|
6704
7058
|
account_number?: string | undefined;
|
|
6705
7059
|
tax_id?: string | undefined;
|
|
@@ -6736,12 +7090,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6736
7090
|
untaxed_amount: number;
|
|
6737
7091
|
total: number;
|
|
6738
7092
|
lines?: {
|
|
6739
|
-
description
|
|
7093
|
+
description?: string | undefined;
|
|
6740
7094
|
unit_price: number;
|
|
6741
7095
|
quantity: number;
|
|
7096
|
+
discount_amount?: number | undefined;
|
|
6742
7097
|
tax_amount: number;
|
|
6743
|
-
total: number;
|
|
6744
7098
|
untaxed_amount: number;
|
|
7099
|
+
total: number;
|
|
6745
7100
|
tax_rate?: number | undefined;
|
|
6746
7101
|
account_number?: string | undefined;
|
|
6747
7102
|
tax_id?: string | undefined;
|
|
@@ -6771,12 +7126,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6771
7126
|
untaxed_amount: number;
|
|
6772
7127
|
total: number;
|
|
6773
7128
|
lines?: {
|
|
6774
|
-
description
|
|
7129
|
+
description?: string | undefined;
|
|
6775
7130
|
unit_price: number;
|
|
6776
7131
|
quantity: number;
|
|
7132
|
+
discount_amount?: number | undefined;
|
|
6777
7133
|
tax_amount: number;
|
|
6778
|
-
total: number;
|
|
6779
7134
|
untaxed_amount: number;
|
|
7135
|
+
total: number;
|
|
6780
7136
|
tax_rate?: number | undefined;
|
|
6781
7137
|
account_number?: string | undefined;
|
|
6782
7138
|
tax_id?: string | undefined;
|
|
@@ -6810,12 +7166,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6810
7166
|
untaxed_amount: number;
|
|
6811
7167
|
total: number;
|
|
6812
7168
|
lines?: {
|
|
6813
|
-
description
|
|
7169
|
+
description?: string | undefined;
|
|
6814
7170
|
unit_price: number;
|
|
6815
7171
|
quantity: number;
|
|
7172
|
+
discount_amount?: number | undefined;
|
|
6816
7173
|
tax_amount: number;
|
|
6817
|
-
total: number;
|
|
6818
7174
|
untaxed_amount: number;
|
|
7175
|
+
total: number;
|
|
6819
7176
|
tax_rate?: number | undefined;
|
|
6820
7177
|
account_number?: string | undefined;
|
|
6821
7178
|
tax_id?: string | undefined;
|
|
@@ -6900,7 +7257,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6900
7257
|
rate: number;
|
|
6901
7258
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
6902
7259
|
code?: string | undefined;
|
|
6903
|
-
scope?: "
|
|
7260
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
6904
7261
|
}[]>;
|
|
6905
7262
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
6906
7263
|
id: string;
|
|
@@ -6912,7 +7269,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6912
7269
|
rate: number;
|
|
6913
7270
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
6914
7271
|
code?: string | undefined;
|
|
6915
|
-
scope?: "
|
|
7272
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
6916
7273
|
}>;
|
|
6917
7274
|
getOpportunities(): import("../types/api").RequestData<{
|
|
6918
7275
|
id: string;
|
|
@@ -6967,7 +7324,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6967
7324
|
} | undefined;
|
|
6968
7325
|
}>;
|
|
6969
7326
|
getContacts(params?: {
|
|
6970
|
-
contact_type?: "all" | "
|
|
7327
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
6971
7328
|
page?: number | undefined;
|
|
6972
7329
|
size?: number | undefined;
|
|
6973
7330
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -7423,7 +7780,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7423
7780
|
last_updated_on?: string | undefined;
|
|
7424
7781
|
confirmed_on?: string | undefined;
|
|
7425
7782
|
cancelled_on?: string | undefined;
|
|
7426
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
7783
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7427
7784
|
discount_amount: number;
|
|
7428
7785
|
untaxed_amount_without_fees: number;
|
|
7429
7786
|
tax_amount_without_fees: number;
|
|
@@ -7570,7 +7927,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7570
7927
|
last_updated_on?: string | undefined;
|
|
7571
7928
|
confirmed_on?: string | undefined;
|
|
7572
7929
|
cancelled_on?: string | undefined;
|
|
7573
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
7930
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7574
7931
|
discount_amount: number;
|
|
7575
7932
|
untaxed_amount_without_fees: number;
|
|
7576
7933
|
tax_amount_without_fees: number;
|
|
@@ -7676,7 +8033,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7676
8033
|
last_updated_on?: string | undefined;
|
|
7677
8034
|
confirmed_on?: string | undefined;
|
|
7678
8035
|
cancelled_on?: string | undefined;
|
|
7679
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
8036
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
7680
8037
|
discount_amount: number;
|
|
7681
8038
|
untaxed_amount_without_fees: number;
|
|
7682
8039
|
tax_amount_without_fees: number;
|
|
@@ -7787,7 +8144,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7787
8144
|
name: string;
|
|
7788
8145
|
title: string;
|
|
7789
8146
|
type: string;
|
|
7790
|
-
|
|
8147
|
+
optional?: boolean | undefined;
|
|
7791
8148
|
}[];
|
|
7792
8149
|
search_column?: string | undefined;
|
|
7793
8150
|
};
|
|
@@ -8172,6 +8529,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8172
8529
|
country?: string | undefined;
|
|
8173
8530
|
}[] | undefined;
|
|
8174
8531
|
account_number?: string | undefined;
|
|
8532
|
+
company_number?: string | undefined;
|
|
8175
8533
|
id?: string | undefined;
|
|
8176
8534
|
}[]>;
|
|
8177
8535
|
createClient(client: {
|
|
@@ -8242,6 +8600,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8242
8600
|
country?: string | undefined;
|
|
8243
8601
|
}[] | undefined;
|
|
8244
8602
|
account_number?: string | undefined;
|
|
8603
|
+
company_number?: string | undefined;
|
|
8245
8604
|
id?: string | undefined;
|
|
8246
8605
|
}>;
|
|
8247
8606
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -8277,6 +8636,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8277
8636
|
country?: string | undefined;
|
|
8278
8637
|
}[] | undefined;
|
|
8279
8638
|
account_number?: string | undefined;
|
|
8639
|
+
company_number?: string | undefined;
|
|
8280
8640
|
id?: string | undefined;
|
|
8281
8641
|
}>;
|
|
8282
8642
|
updateClient(clientId: string, client: {
|
|
@@ -8344,6 +8704,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8344
8704
|
country?: string | undefined;
|
|
8345
8705
|
}[] | undefined;
|
|
8346
8706
|
account_number?: string | undefined;
|
|
8707
|
+
company_number?: string | undefined;
|
|
8347
8708
|
id?: string | undefined;
|
|
8348
8709
|
}>;
|
|
8349
8710
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -8379,6 +8740,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8379
8740
|
country?: string | undefined;
|
|
8380
8741
|
}[] | undefined;
|
|
8381
8742
|
account_number?: string | undefined;
|
|
8743
|
+
company_number?: string | undefined;
|
|
8382
8744
|
id?: string | undefined;
|
|
8383
8745
|
}[]>;
|
|
8384
8746
|
createSupplier(supplier: {
|
|
@@ -8449,6 +8811,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8449
8811
|
country?: string | undefined;
|
|
8450
8812
|
}[] | undefined;
|
|
8451
8813
|
account_number?: string | undefined;
|
|
8814
|
+
company_number?: string | undefined;
|
|
8452
8815
|
id?: string | undefined;
|
|
8453
8816
|
}>;
|
|
8454
8817
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -8484,6 +8847,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8484
8847
|
country?: string | undefined;
|
|
8485
8848
|
}[] | undefined;
|
|
8486
8849
|
account_number?: string | undefined;
|
|
8850
|
+
company_number?: string | undefined;
|
|
8487
8851
|
id?: string | undefined;
|
|
8488
8852
|
}>;
|
|
8489
8853
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -8551,6 +8915,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8551
8915
|
country?: string | undefined;
|
|
8552
8916
|
}[] | undefined;
|
|
8553
8917
|
account_number?: string | undefined;
|
|
8918
|
+
company_number?: string | undefined;
|
|
8554
8919
|
id?: string | undefined;
|
|
8555
8920
|
}>;
|
|
8556
8921
|
createInvoice(invoice: {
|
|
@@ -8615,7 +8980,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8615
8980
|
amount: number;
|
|
8616
8981
|
dedicated_amount?: number | undefined;
|
|
8617
8982
|
payment_date: string;
|
|
8618
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
8983
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8619
8984
|
journal_id: string;
|
|
8620
8985
|
journal_name: string;
|
|
8621
8986
|
reconciled?: boolean | undefined;
|
|
@@ -8706,7 +9071,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8706
9071
|
amount: number;
|
|
8707
9072
|
dedicated_amount?: number | undefined;
|
|
8708
9073
|
payment_date: string;
|
|
8709
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9074
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8710
9075
|
journal_id: string;
|
|
8711
9076
|
journal_name: string;
|
|
8712
9077
|
reconciled?: boolean | undefined;
|
|
@@ -8757,7 +9122,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8757
9122
|
amount: number;
|
|
8758
9123
|
dedicated_amount?: number | undefined;
|
|
8759
9124
|
payment_date: string;
|
|
8760
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9125
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8761
9126
|
journal_id: string;
|
|
8762
9127
|
journal_name: string;
|
|
8763
9128
|
reconciled?: boolean | undefined;
|
|
@@ -8804,7 +9169,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8804
9169
|
amount: number;
|
|
8805
9170
|
dedicated_amount?: number | undefined;
|
|
8806
9171
|
payment_date: string;
|
|
8807
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9172
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8808
9173
|
journal_id: string;
|
|
8809
9174
|
journal_name: string;
|
|
8810
9175
|
reconciled?: boolean | undefined;
|
|
@@ -8851,7 +9216,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8851
9216
|
amount: number;
|
|
8852
9217
|
dedicated_amount?: number | undefined;
|
|
8853
9218
|
payment_date: string;
|
|
8854
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9219
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8855
9220
|
journal_id: string;
|
|
8856
9221
|
journal_name: string;
|
|
8857
9222
|
reconciled?: boolean | undefined;
|
|
@@ -8902,7 +9267,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8902
9267
|
amount: number;
|
|
8903
9268
|
dedicated_amount?: number | undefined;
|
|
8904
9269
|
payment_date: string;
|
|
8905
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9270
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8906
9271
|
journal_id: string;
|
|
8907
9272
|
journal_name: string;
|
|
8908
9273
|
reconciled?: boolean | undefined;
|
|
@@ -9116,7 +9481,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9116
9481
|
amount: number;
|
|
9117
9482
|
dedicated_amount?: number | undefined;
|
|
9118
9483
|
payment_date: string;
|
|
9119
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9484
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
9120
9485
|
journal_id: string;
|
|
9121
9486
|
journal_name: string;
|
|
9122
9487
|
reconciled?: boolean | undefined;
|
|
@@ -9127,13 +9492,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9127
9492
|
id: string;
|
|
9128
9493
|
code: string;
|
|
9129
9494
|
name: string;
|
|
9130
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9495
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
9131
9496
|
}[]>;
|
|
9132
9497
|
getVatCodes(): import("../types/api").RequestData<{
|
|
9133
9498
|
id: string;
|
|
9134
9499
|
code?: string | undefined;
|
|
9135
9500
|
label: string;
|
|
9136
|
-
scope?: "
|
|
9501
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
9137
9502
|
rate: number;
|
|
9138
9503
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
9139
9504
|
}[]>;
|
|
@@ -9245,12 +9610,32 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9245
9610
|
reference?: string | undefined;
|
|
9246
9611
|
account_number?: string | undefined;
|
|
9247
9612
|
}[]>;
|
|
9248
|
-
|
|
9613
|
+
getOutstandings(params: {
|
|
9614
|
+
unposted_allowed: "true" | "false";
|
|
9615
|
+
type: "client" | "supplier";
|
|
9616
|
+
}): import("../types/api").RequestData<{
|
|
9617
|
+
id: string;
|
|
9618
|
+
number?: string | undefined;
|
|
9619
|
+
journal_id: string;
|
|
9620
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
9621
|
+
date: string;
|
|
9622
|
+
due_date?: string | undefined;
|
|
9623
|
+
currency: string;
|
|
9624
|
+
currency_exchange_rate: number;
|
|
9625
|
+
amount: number;
|
|
9626
|
+
open_amount: number;
|
|
9627
|
+
partner_id: string;
|
|
9628
|
+
account_number: string;
|
|
9629
|
+
reference?: string | undefined;
|
|
9630
|
+
posted: boolean;
|
|
9631
|
+
}[]>;
|
|
9632
|
+
createFinancialEntryOld(financial_entry: {
|
|
9249
9633
|
date: string;
|
|
9250
9634
|
journal_id: string;
|
|
9251
9635
|
currency: string;
|
|
9252
9636
|
currency_exchange_rate?: number | undefined;
|
|
9253
9637
|
reference?: string | undefined;
|
|
9638
|
+
number?: string | undefined;
|
|
9254
9639
|
items: {
|
|
9255
9640
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9256
9641
|
account_number: string;
|
|
@@ -9258,14 +9643,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9258
9643
|
amount: number;
|
|
9259
9644
|
description?: string | undefined;
|
|
9260
9645
|
}[];
|
|
9261
|
-
number?: string | undefined;
|
|
9262
9646
|
pdf?: string | undefined;
|
|
9263
|
-
}
|
|
9647
|
+
}, params: {
|
|
9648
|
+
financial_counterpart_account?: string | undefined;
|
|
9649
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9264
9650
|
date: string;
|
|
9265
9651
|
journal_id: string;
|
|
9266
9652
|
currency: string;
|
|
9267
9653
|
currency_exchange_rate?: number | undefined;
|
|
9268
9654
|
reference?: string | undefined;
|
|
9655
|
+
id: string;
|
|
9656
|
+
number: string;
|
|
9269
9657
|
items: {
|
|
9270
9658
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9271
9659
|
account_number: string;
|
|
@@ -9274,13 +9662,97 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9274
9662
|
description?: string | undefined;
|
|
9275
9663
|
counterpart_account: string;
|
|
9276
9664
|
}[];
|
|
9665
|
+
}>;
|
|
9666
|
+
createFinancialEntry(financial_entry: {
|
|
9667
|
+
date: string;
|
|
9668
|
+
journal_id: string;
|
|
9669
|
+
currency: string;
|
|
9670
|
+
currency_exchange_rate?: number | undefined;
|
|
9671
|
+
reference?: string | undefined;
|
|
9672
|
+
number?: string | undefined;
|
|
9673
|
+
items: {
|
|
9674
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9675
|
+
account: string;
|
|
9676
|
+
amount: number;
|
|
9677
|
+
description?: string | undefined;
|
|
9678
|
+
}[];
|
|
9679
|
+
pdf?: string | undefined;
|
|
9680
|
+
}, params: {
|
|
9681
|
+
financial_counterpart_account?: string | undefined;
|
|
9682
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9683
|
+
date: string;
|
|
9684
|
+
journal_id: string;
|
|
9685
|
+
currency: string;
|
|
9686
|
+
currency_exchange_rate?: number | undefined;
|
|
9687
|
+
reference?: string | undefined;
|
|
9277
9688
|
id: string;
|
|
9278
9689
|
number: string;
|
|
9690
|
+
items: {
|
|
9691
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
9692
|
+
account: string;
|
|
9693
|
+
amount: number;
|
|
9694
|
+
description?: string | undefined;
|
|
9695
|
+
counterpart_account: string;
|
|
9696
|
+
}[];
|
|
9697
|
+
}[]>;
|
|
9698
|
+
createJournalEntry(journal_entry: {
|
|
9699
|
+
reference?: string | undefined;
|
|
9700
|
+
due_date?: string | undefined;
|
|
9701
|
+
journal_id: string;
|
|
9702
|
+
name: string;
|
|
9703
|
+
date: string;
|
|
9704
|
+
items: {
|
|
9705
|
+
account_number: string;
|
|
9706
|
+
partner_id?: string | undefined;
|
|
9707
|
+
description?: string | undefined;
|
|
9708
|
+
debit: number;
|
|
9709
|
+
credit: number;
|
|
9710
|
+
currency: string;
|
|
9711
|
+
currency_exchange_rate?: number | undefined;
|
|
9712
|
+
analytic_distribution?: {
|
|
9713
|
+
analytic_plan: string;
|
|
9714
|
+
analytic_accounts: {
|
|
9715
|
+
analytic_account: string;
|
|
9716
|
+
percentage: number;
|
|
9717
|
+
}[];
|
|
9718
|
+
}[] | undefined;
|
|
9719
|
+
pdf?: string | undefined;
|
|
9720
|
+
}[];
|
|
9721
|
+
}): import("../types/api").RequestData<{
|
|
9722
|
+
reference?: string | undefined;
|
|
9723
|
+
due_date?: string | undefined;
|
|
9724
|
+
journal_id: string;
|
|
9725
|
+
name?: string | undefined;
|
|
9726
|
+
journal_name: string;
|
|
9727
|
+
date?: string | undefined;
|
|
9728
|
+
posted?: boolean | undefined;
|
|
9729
|
+
id: string;
|
|
9730
|
+
items?: {
|
|
9731
|
+
account_number: string;
|
|
9732
|
+
partner_id?: string | undefined;
|
|
9733
|
+
description?: string | undefined;
|
|
9734
|
+
debit: number;
|
|
9735
|
+
credit: number;
|
|
9736
|
+
currency: string;
|
|
9737
|
+
currency_exchange_rate?: number | undefined;
|
|
9738
|
+
id: string;
|
|
9739
|
+
partner_name?: string | undefined;
|
|
9740
|
+
account_name: string;
|
|
9741
|
+
matching_numbers?: string[] | undefined;
|
|
9742
|
+
analytic_distribution?: {
|
|
9743
|
+
analytic_plan: string;
|
|
9744
|
+
analytic_accounts: {
|
|
9745
|
+
analytic_account: string;
|
|
9746
|
+
percentage: number;
|
|
9747
|
+
}[];
|
|
9748
|
+
}[] | undefined;
|
|
9749
|
+
}[] | undefined;
|
|
9279
9750
|
}>;
|
|
9280
9751
|
}>;
|
|
9281
9752
|
invoicing: import("../types/api").ApiFor<{
|
|
9282
9753
|
getInvoices(params: {
|
|
9283
9754
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
9755
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
9284
9756
|
date_from?: string | undefined;
|
|
9285
9757
|
date_to?: string | undefined;
|
|
9286
9758
|
page?: number | undefined;
|
|
@@ -9299,12 +9771,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9299
9771
|
untaxed_amount: number;
|
|
9300
9772
|
total: number;
|
|
9301
9773
|
lines?: {
|
|
9302
|
-
description
|
|
9774
|
+
description?: string | undefined;
|
|
9303
9775
|
unit_price: number;
|
|
9304
9776
|
quantity: number;
|
|
9777
|
+
discount_amount?: number | undefined;
|
|
9305
9778
|
tax_amount: number;
|
|
9306
|
-
total: number;
|
|
9307
9779
|
untaxed_amount: number;
|
|
9780
|
+
total: number;
|
|
9308
9781
|
tax_rate?: number | undefined;
|
|
9309
9782
|
account_number?: string | undefined;
|
|
9310
9783
|
tax_id?: string | undefined;
|
|
@@ -9341,12 +9814,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9341
9814
|
untaxed_amount: number;
|
|
9342
9815
|
total: number;
|
|
9343
9816
|
lines?: {
|
|
9344
|
-
description
|
|
9817
|
+
description?: string | undefined;
|
|
9345
9818
|
unit_price: number;
|
|
9346
9819
|
quantity: number;
|
|
9820
|
+
discount_amount?: number | undefined;
|
|
9347
9821
|
tax_amount: number;
|
|
9348
|
-
total: number;
|
|
9349
9822
|
untaxed_amount: number;
|
|
9823
|
+
total: number;
|
|
9350
9824
|
tax_rate?: number | undefined;
|
|
9351
9825
|
account_number?: string | undefined;
|
|
9352
9826
|
tax_id?: string | undefined;
|
|
@@ -9376,12 +9850,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9376
9850
|
untaxed_amount: number;
|
|
9377
9851
|
total: number;
|
|
9378
9852
|
lines?: {
|
|
9379
|
-
description
|
|
9853
|
+
description?: string | undefined;
|
|
9380
9854
|
unit_price: number;
|
|
9381
9855
|
quantity: number;
|
|
9856
|
+
discount_amount?: number | undefined;
|
|
9382
9857
|
tax_amount: number;
|
|
9383
|
-
total: number;
|
|
9384
9858
|
untaxed_amount: number;
|
|
9859
|
+
total: number;
|
|
9385
9860
|
tax_rate?: number | undefined;
|
|
9386
9861
|
account_number?: string | undefined;
|
|
9387
9862
|
tax_id?: string | undefined;
|
|
@@ -9415,12 +9890,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9415
9890
|
untaxed_amount: number;
|
|
9416
9891
|
total: number;
|
|
9417
9892
|
lines?: {
|
|
9418
|
-
description
|
|
9893
|
+
description?: string | undefined;
|
|
9419
9894
|
unit_price: number;
|
|
9420
9895
|
quantity: number;
|
|
9896
|
+
discount_amount?: number | undefined;
|
|
9421
9897
|
tax_amount: number;
|
|
9422
|
-
total: number;
|
|
9423
9898
|
untaxed_amount: number;
|
|
9899
|
+
total: number;
|
|
9424
9900
|
tax_rate?: number | undefined;
|
|
9425
9901
|
account_number?: string | undefined;
|
|
9426
9902
|
tax_id?: string | undefined;
|
|
@@ -9505,7 +9981,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9505
9981
|
rate: number;
|
|
9506
9982
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
9507
9983
|
code?: string | undefined;
|
|
9508
|
-
scope?: "
|
|
9984
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
9509
9985
|
}[]>;
|
|
9510
9986
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
9511
9987
|
id: string;
|
|
@@ -9517,7 +9993,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9517
9993
|
rate: number;
|
|
9518
9994
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
9519
9995
|
code?: string | undefined;
|
|
9520
|
-
scope?: "
|
|
9996
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
9521
9997
|
}>;
|
|
9522
9998
|
getOpportunities(): import("../types/api").RequestData<{
|
|
9523
9999
|
id: string;
|
|
@@ -9572,7 +10048,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9572
10048
|
} | undefined;
|
|
9573
10049
|
}>;
|
|
9574
10050
|
getContacts(params?: {
|
|
9575
|
-
contact_type?: "all" | "
|
|
10051
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
9576
10052
|
page?: number | undefined;
|
|
9577
10053
|
size?: number | undefined;
|
|
9578
10054
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10028,7 +10504,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10028
10504
|
last_updated_on?: string | undefined;
|
|
10029
10505
|
confirmed_on?: string | undefined;
|
|
10030
10506
|
cancelled_on?: string | undefined;
|
|
10031
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10507
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10032
10508
|
discount_amount: number;
|
|
10033
10509
|
untaxed_amount_without_fees: number;
|
|
10034
10510
|
tax_amount_without_fees: number;
|
|
@@ -10175,7 +10651,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10175
10651
|
last_updated_on?: string | undefined;
|
|
10176
10652
|
confirmed_on?: string | undefined;
|
|
10177
10653
|
cancelled_on?: string | undefined;
|
|
10178
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10654
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10179
10655
|
discount_amount: number;
|
|
10180
10656
|
untaxed_amount_without_fees: number;
|
|
10181
10657
|
tax_amount_without_fees: number;
|
|
@@ -10281,7 +10757,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10281
10757
|
last_updated_on?: string | undefined;
|
|
10282
10758
|
confirmed_on?: string | undefined;
|
|
10283
10759
|
cancelled_on?: string | undefined;
|
|
10284
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
10760
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
10285
10761
|
discount_amount: number;
|
|
10286
10762
|
untaxed_amount_without_fees: number;
|
|
10287
10763
|
tax_amount_without_fees: number;
|
|
@@ -10392,7 +10868,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10392
10868
|
name: string;
|
|
10393
10869
|
title: string;
|
|
10394
10870
|
type: string;
|
|
10395
|
-
|
|
10871
|
+
optional?: boolean | undefined;
|
|
10396
10872
|
}[];
|
|
10397
10873
|
search_column?: string | undefined;
|
|
10398
10874
|
};
|
|
@@ -10777,6 +11253,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10777
11253
|
country?: string | undefined;
|
|
10778
11254
|
}[] | undefined;
|
|
10779
11255
|
account_number?: string | undefined;
|
|
11256
|
+
company_number?: string | undefined;
|
|
10780
11257
|
id?: string | undefined;
|
|
10781
11258
|
}[]>;
|
|
10782
11259
|
createClient(client: {
|
|
@@ -10847,6 +11324,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10847
11324
|
country?: string | undefined;
|
|
10848
11325
|
}[] | undefined;
|
|
10849
11326
|
account_number?: string | undefined;
|
|
11327
|
+
company_number?: string | undefined;
|
|
10850
11328
|
id?: string | undefined;
|
|
10851
11329
|
}>;
|
|
10852
11330
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -10882,6 +11360,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10882
11360
|
country?: string | undefined;
|
|
10883
11361
|
}[] | undefined;
|
|
10884
11362
|
account_number?: string | undefined;
|
|
11363
|
+
company_number?: string | undefined;
|
|
10885
11364
|
id?: string | undefined;
|
|
10886
11365
|
}>;
|
|
10887
11366
|
updateClient(clientId: string, client: {
|
|
@@ -10949,6 +11428,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10949
11428
|
country?: string | undefined;
|
|
10950
11429
|
}[] | undefined;
|
|
10951
11430
|
account_number?: string | undefined;
|
|
11431
|
+
company_number?: string | undefined;
|
|
10952
11432
|
id?: string | undefined;
|
|
10953
11433
|
}>;
|
|
10954
11434
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -10984,6 +11464,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10984
11464
|
country?: string | undefined;
|
|
10985
11465
|
}[] | undefined;
|
|
10986
11466
|
account_number?: string | undefined;
|
|
11467
|
+
company_number?: string | undefined;
|
|
10987
11468
|
id?: string | undefined;
|
|
10988
11469
|
}[]>;
|
|
10989
11470
|
createSupplier(supplier: {
|
|
@@ -11054,6 +11535,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11054
11535
|
country?: string | undefined;
|
|
11055
11536
|
}[] | undefined;
|
|
11056
11537
|
account_number?: string | undefined;
|
|
11538
|
+
company_number?: string | undefined;
|
|
11057
11539
|
id?: string | undefined;
|
|
11058
11540
|
}>;
|
|
11059
11541
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -11089,6 +11571,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11089
11571
|
country?: string | undefined;
|
|
11090
11572
|
}[] | undefined;
|
|
11091
11573
|
account_number?: string | undefined;
|
|
11574
|
+
company_number?: string | undefined;
|
|
11092
11575
|
id?: string | undefined;
|
|
11093
11576
|
}>;
|
|
11094
11577
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -11156,6 +11639,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11156
11639
|
country?: string | undefined;
|
|
11157
11640
|
}[] | undefined;
|
|
11158
11641
|
account_number?: string | undefined;
|
|
11642
|
+
company_number?: string | undefined;
|
|
11159
11643
|
id?: string | undefined;
|
|
11160
11644
|
}>;
|
|
11161
11645
|
createInvoice(invoice: {
|
|
@@ -11220,7 +11704,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11220
11704
|
amount: number;
|
|
11221
11705
|
dedicated_amount?: number | undefined;
|
|
11222
11706
|
payment_date: string;
|
|
11223
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11707
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11224
11708
|
journal_id: string;
|
|
11225
11709
|
journal_name: string;
|
|
11226
11710
|
reconciled?: boolean | undefined;
|
|
@@ -11311,7 +11795,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11311
11795
|
amount: number;
|
|
11312
11796
|
dedicated_amount?: number | undefined;
|
|
11313
11797
|
payment_date: string;
|
|
11314
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11798
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11315
11799
|
journal_id: string;
|
|
11316
11800
|
journal_name: string;
|
|
11317
11801
|
reconciled?: boolean | undefined;
|
|
@@ -11362,7 +11846,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11362
11846
|
amount: number;
|
|
11363
11847
|
dedicated_amount?: number | undefined;
|
|
11364
11848
|
payment_date: string;
|
|
11365
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11849
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11366
11850
|
journal_id: string;
|
|
11367
11851
|
journal_name: string;
|
|
11368
11852
|
reconciled?: boolean | undefined;
|
|
@@ -11409,7 +11893,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11409
11893
|
amount: number;
|
|
11410
11894
|
dedicated_amount?: number | undefined;
|
|
11411
11895
|
payment_date: string;
|
|
11412
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11896
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11413
11897
|
journal_id: string;
|
|
11414
11898
|
journal_name: string;
|
|
11415
11899
|
reconciled?: boolean | undefined;
|
|
@@ -11456,7 +11940,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11456
11940
|
amount: number;
|
|
11457
11941
|
dedicated_amount?: number | undefined;
|
|
11458
11942
|
payment_date: string;
|
|
11459
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11943
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11460
11944
|
journal_id: string;
|
|
11461
11945
|
journal_name: string;
|
|
11462
11946
|
reconciled?: boolean | undefined;
|
|
@@ -11507,7 +11991,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11507
11991
|
amount: number;
|
|
11508
11992
|
dedicated_amount?: number | undefined;
|
|
11509
11993
|
payment_date: string;
|
|
11510
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11994
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11511
11995
|
journal_id: string;
|
|
11512
11996
|
journal_name: string;
|
|
11513
11997
|
reconciled?: boolean | undefined;
|
|
@@ -11721,7 +12205,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11721
12205
|
amount: number;
|
|
11722
12206
|
dedicated_amount?: number | undefined;
|
|
11723
12207
|
payment_date: string;
|
|
11724
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
12208
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11725
12209
|
journal_id: string;
|
|
11726
12210
|
journal_name: string;
|
|
11727
12211
|
reconciled?: boolean | undefined;
|
|
@@ -11732,13 +12216,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11732
12216
|
id: string;
|
|
11733
12217
|
code: string;
|
|
11734
12218
|
name: string;
|
|
11735
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
12219
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11736
12220
|
}[]>;
|
|
11737
12221
|
getVatCodes(): import("../types/api").RequestData<{
|
|
11738
12222
|
id: string;
|
|
11739
12223
|
code?: string | undefined;
|
|
11740
12224
|
label: string;
|
|
11741
|
-
scope?: "
|
|
12225
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
11742
12226
|
rate: number;
|
|
11743
12227
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
11744
12228
|
}[]>;
|
|
@@ -11850,12 +12334,32 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11850
12334
|
reference?: string | undefined;
|
|
11851
12335
|
account_number?: string | undefined;
|
|
11852
12336
|
}[]>;
|
|
11853
|
-
|
|
12337
|
+
getOutstandings(params: {
|
|
12338
|
+
unposted_allowed: "true" | "false";
|
|
12339
|
+
type: "client" | "supplier";
|
|
12340
|
+
}): import("../types/api").RequestData<{
|
|
12341
|
+
id: string;
|
|
12342
|
+
number?: string | undefined;
|
|
12343
|
+
journal_id: string;
|
|
12344
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
12345
|
+
date: string;
|
|
12346
|
+
due_date?: string | undefined;
|
|
12347
|
+
currency: string;
|
|
12348
|
+
currency_exchange_rate: number;
|
|
12349
|
+
amount: number;
|
|
12350
|
+
open_amount: number;
|
|
12351
|
+
partner_id: string;
|
|
12352
|
+
account_number: string;
|
|
12353
|
+
reference?: string | undefined;
|
|
12354
|
+
posted: boolean;
|
|
12355
|
+
}[]>;
|
|
12356
|
+
createFinancialEntryOld(financial_entry: {
|
|
11854
12357
|
date: string;
|
|
11855
12358
|
journal_id: string;
|
|
11856
12359
|
currency: string;
|
|
11857
12360
|
currency_exchange_rate?: number | undefined;
|
|
11858
12361
|
reference?: string | undefined;
|
|
12362
|
+
number?: string | undefined;
|
|
11859
12363
|
items: {
|
|
11860
12364
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
11861
12365
|
account_number: string;
|
|
@@ -11863,14 +12367,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11863
12367
|
amount: number;
|
|
11864
12368
|
description?: string | undefined;
|
|
11865
12369
|
}[];
|
|
11866
|
-
number?: string | undefined;
|
|
11867
12370
|
pdf?: string | undefined;
|
|
11868
|
-
}
|
|
12371
|
+
}, params: {
|
|
12372
|
+
financial_counterpart_account?: string | undefined;
|
|
12373
|
+
} | undefined): import("../types/api").RequestData<{
|
|
11869
12374
|
date: string;
|
|
11870
12375
|
journal_id: string;
|
|
11871
12376
|
currency: string;
|
|
11872
12377
|
currency_exchange_rate?: number | undefined;
|
|
11873
12378
|
reference?: string | undefined;
|
|
12379
|
+
id: string;
|
|
12380
|
+
number: string;
|
|
11874
12381
|
items: {
|
|
11875
12382
|
type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
11876
12383
|
account_number: string;
|
|
@@ -11879,13 +12386,97 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11879
12386
|
description?: string | undefined;
|
|
11880
12387
|
counterpart_account: string;
|
|
11881
12388
|
}[];
|
|
12389
|
+
}>;
|
|
12390
|
+
createFinancialEntry(financial_entry: {
|
|
12391
|
+
date: string;
|
|
12392
|
+
journal_id: string;
|
|
12393
|
+
currency: string;
|
|
12394
|
+
currency_exchange_rate?: number | undefined;
|
|
12395
|
+
reference?: string | undefined;
|
|
12396
|
+
number?: string | undefined;
|
|
12397
|
+
items: {
|
|
12398
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12399
|
+
account: string;
|
|
12400
|
+
amount: number;
|
|
12401
|
+
description?: string | undefined;
|
|
12402
|
+
}[];
|
|
12403
|
+
pdf?: string | undefined;
|
|
12404
|
+
}, params: {
|
|
12405
|
+
financial_counterpart_account?: string | undefined;
|
|
12406
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12407
|
+
date: string;
|
|
12408
|
+
journal_id: string;
|
|
12409
|
+
currency: string;
|
|
12410
|
+
currency_exchange_rate?: number | undefined;
|
|
12411
|
+
reference?: string | undefined;
|
|
11882
12412
|
id: string;
|
|
11883
12413
|
number: string;
|
|
12414
|
+
items: {
|
|
12415
|
+
account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
|
|
12416
|
+
account: string;
|
|
12417
|
+
amount: number;
|
|
12418
|
+
description?: string | undefined;
|
|
12419
|
+
counterpart_account: string;
|
|
12420
|
+
}[];
|
|
12421
|
+
}[]>;
|
|
12422
|
+
createJournalEntry(journal_entry: {
|
|
12423
|
+
reference?: string | undefined;
|
|
12424
|
+
due_date?: string | undefined;
|
|
12425
|
+
journal_id: string;
|
|
12426
|
+
name: string;
|
|
12427
|
+
date: string;
|
|
12428
|
+
items: {
|
|
12429
|
+
account_number: string;
|
|
12430
|
+
partner_id?: string | undefined;
|
|
12431
|
+
description?: string | undefined;
|
|
12432
|
+
debit: number;
|
|
12433
|
+
credit: number;
|
|
12434
|
+
currency: string;
|
|
12435
|
+
currency_exchange_rate?: number | undefined;
|
|
12436
|
+
analytic_distribution?: {
|
|
12437
|
+
analytic_plan: string;
|
|
12438
|
+
analytic_accounts: {
|
|
12439
|
+
analytic_account: string;
|
|
12440
|
+
percentage: number;
|
|
12441
|
+
}[];
|
|
12442
|
+
}[] | undefined;
|
|
12443
|
+
pdf?: string | undefined;
|
|
12444
|
+
}[];
|
|
12445
|
+
}): import("../types/api").RequestData<{
|
|
12446
|
+
reference?: string | undefined;
|
|
12447
|
+
due_date?: string | undefined;
|
|
12448
|
+
journal_id: string;
|
|
12449
|
+
name?: string | undefined;
|
|
12450
|
+
journal_name: string;
|
|
12451
|
+
date?: string | undefined;
|
|
12452
|
+
posted?: boolean | undefined;
|
|
12453
|
+
id: string;
|
|
12454
|
+
items?: {
|
|
12455
|
+
account_number: string;
|
|
12456
|
+
partner_id?: string | undefined;
|
|
12457
|
+
description?: string | undefined;
|
|
12458
|
+
debit: number;
|
|
12459
|
+
credit: number;
|
|
12460
|
+
currency: string;
|
|
12461
|
+
currency_exchange_rate?: number | undefined;
|
|
12462
|
+
id: string;
|
|
12463
|
+
partner_name?: string | undefined;
|
|
12464
|
+
account_name: string;
|
|
12465
|
+
matching_numbers?: string[] | undefined;
|
|
12466
|
+
analytic_distribution?: {
|
|
12467
|
+
analytic_plan: string;
|
|
12468
|
+
analytic_accounts: {
|
|
12469
|
+
analytic_account: string;
|
|
12470
|
+
percentage: number;
|
|
12471
|
+
}[];
|
|
12472
|
+
}[] | undefined;
|
|
12473
|
+
}[] | undefined;
|
|
11884
12474
|
}>;
|
|
11885
12475
|
}>;
|
|
11886
12476
|
invoicing: import("../types/api").ApiFor<{
|
|
11887
12477
|
getInvoices(params: {
|
|
11888
12478
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
|
|
12479
|
+
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
11889
12480
|
date_from?: string | undefined;
|
|
11890
12481
|
date_to?: string | undefined;
|
|
11891
12482
|
page?: number | undefined;
|
|
@@ -11904,12 +12495,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11904
12495
|
untaxed_amount: number;
|
|
11905
12496
|
total: number;
|
|
11906
12497
|
lines?: {
|
|
11907
|
-
description
|
|
12498
|
+
description?: string | undefined;
|
|
11908
12499
|
unit_price: number;
|
|
11909
12500
|
quantity: number;
|
|
12501
|
+
discount_amount?: number | undefined;
|
|
11910
12502
|
tax_amount: number;
|
|
11911
|
-
total: number;
|
|
11912
12503
|
untaxed_amount: number;
|
|
12504
|
+
total: number;
|
|
11913
12505
|
tax_rate?: number | undefined;
|
|
11914
12506
|
account_number?: string | undefined;
|
|
11915
12507
|
tax_id?: string | undefined;
|
|
@@ -11946,12 +12538,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11946
12538
|
untaxed_amount: number;
|
|
11947
12539
|
total: number;
|
|
11948
12540
|
lines?: {
|
|
11949
|
-
description
|
|
12541
|
+
description?: string | undefined;
|
|
11950
12542
|
unit_price: number;
|
|
11951
12543
|
quantity: number;
|
|
12544
|
+
discount_amount?: number | undefined;
|
|
11952
12545
|
tax_amount: number;
|
|
11953
|
-
total: number;
|
|
11954
12546
|
untaxed_amount: number;
|
|
12547
|
+
total: number;
|
|
11955
12548
|
tax_rate?: number | undefined;
|
|
11956
12549
|
account_number?: string | undefined;
|
|
11957
12550
|
tax_id?: string | undefined;
|
|
@@ -11981,12 +12574,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11981
12574
|
untaxed_amount: number;
|
|
11982
12575
|
total: number;
|
|
11983
12576
|
lines?: {
|
|
11984
|
-
description
|
|
12577
|
+
description?: string | undefined;
|
|
11985
12578
|
unit_price: number;
|
|
11986
12579
|
quantity: number;
|
|
12580
|
+
discount_amount?: number | undefined;
|
|
11987
12581
|
tax_amount: number;
|
|
11988
|
-
total: number;
|
|
11989
12582
|
untaxed_amount: number;
|
|
12583
|
+
total: number;
|
|
11990
12584
|
tax_rate?: number | undefined;
|
|
11991
12585
|
account_number?: string | undefined;
|
|
11992
12586
|
tax_id?: string | undefined;
|
|
@@ -12020,12 +12614,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12020
12614
|
untaxed_amount: number;
|
|
12021
12615
|
total: number;
|
|
12022
12616
|
lines?: {
|
|
12023
|
-
description
|
|
12617
|
+
description?: string | undefined;
|
|
12024
12618
|
unit_price: number;
|
|
12025
12619
|
quantity: number;
|
|
12620
|
+
discount_amount?: number | undefined;
|
|
12026
12621
|
tax_amount: number;
|
|
12027
|
-
total: number;
|
|
12028
12622
|
untaxed_amount: number;
|
|
12623
|
+
total: number;
|
|
12029
12624
|
tax_rate?: number | undefined;
|
|
12030
12625
|
account_number?: string | undefined;
|
|
12031
12626
|
tax_id?: string | undefined;
|
|
@@ -12110,7 +12705,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12110
12705
|
rate: number;
|
|
12111
12706
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
12112
12707
|
code?: string | undefined;
|
|
12113
|
-
scope?: "
|
|
12708
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
12114
12709
|
}[]>;
|
|
12115
12710
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
12116
12711
|
id: string;
|
|
@@ -12122,7 +12717,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12122
12717
|
rate: number;
|
|
12123
12718
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
12124
12719
|
code?: string | undefined;
|
|
12125
|
-
scope?: "
|
|
12720
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
12126
12721
|
}>;
|
|
12127
12722
|
getOpportunities(): import("../types/api").RequestData<{
|
|
12128
12723
|
id: string;
|
|
@@ -12177,7 +12772,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12177
12772
|
} | undefined;
|
|
12178
12773
|
}>;
|
|
12179
12774
|
getContacts(params?: {
|
|
12180
|
-
contact_type?: "all" | "
|
|
12775
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
12181
12776
|
page?: number | undefined;
|
|
12182
12777
|
size?: number | undefined;
|
|
12183
12778
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -12633,7 +13228,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12633
13228
|
last_updated_on?: string | undefined;
|
|
12634
13229
|
confirmed_on?: string | undefined;
|
|
12635
13230
|
cancelled_on?: string | undefined;
|
|
12636
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
13231
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
12637
13232
|
discount_amount: number;
|
|
12638
13233
|
untaxed_amount_without_fees: number;
|
|
12639
13234
|
tax_amount_without_fees: number;
|
|
@@ -12780,7 +13375,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12780
13375
|
last_updated_on?: string | undefined;
|
|
12781
13376
|
confirmed_on?: string | undefined;
|
|
12782
13377
|
cancelled_on?: string | undefined;
|
|
12783
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
13378
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
12784
13379
|
discount_amount: number;
|
|
12785
13380
|
untaxed_amount_without_fees: number;
|
|
12786
13381
|
tax_amount_without_fees: number;
|
|
@@ -12886,7 +13481,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12886
13481
|
last_updated_on?: string | undefined;
|
|
12887
13482
|
confirmed_on?: string | undefined;
|
|
12888
13483
|
cancelled_on?: string | undefined;
|
|
12889
|
-
status: "draft" | "cancelled" | "confirmed";
|
|
13484
|
+
status: "draft" | "cancelled" | "confirmed" | "shipped" | "refunded";
|
|
12890
13485
|
discount_amount: number;
|
|
12891
13486
|
untaxed_amount_without_fees: number;
|
|
12892
13487
|
tax_amount_without_fees: number;
|
|
@@ -12997,7 +13592,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12997
13592
|
name: string;
|
|
12998
13593
|
title: string;
|
|
12999
13594
|
type: string;
|
|
13000
|
-
|
|
13595
|
+
optional?: boolean | undefined;
|
|
13001
13596
|
}[];
|
|
13002
13597
|
search_column?: string | undefined;
|
|
13003
13598
|
};
|