@chift/chift-nodejs 1.0.2 → 1.0.3
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 +4 -0
- package/dist/src/modules/accounting.d.ts +4 -1
- package/dist/src/modules/accounting.js +16 -1
- package/dist/src/modules/api.d.ts +1494 -262
- package/dist/src/modules/consumer.d.ts +95 -13
- package/dist/src/modules/consumers.d.ts +475 -65
- package/dist/src/modules/integrations.d.ts +2 -0
- package/dist/src/modules/sync.d.ts +380 -52
- package/dist/src/modules/sync.js +0 -2
- package/dist/src/modules/syncs.d.ts +956 -136
- package/dist/test/modules/accounting.test.js +104 -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/.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,6 +1438,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1430
1438
|
reference?: string | undefined;
|
|
1431
1439
|
account_number?: string | undefined;
|
|
1432
1440
|
}[]>;
|
|
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
|
+
}[]>;
|
|
1433
1460
|
createFinancialEntry(financial_entry: {
|
|
1434
1461
|
date: string;
|
|
1435
1462
|
journal_id: string;
|
|
@@ -1445,7 +1472,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1445
1472
|
}[];
|
|
1446
1473
|
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;
|
|
@@ -1462,6 +1491,59 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1462
1491
|
id: string;
|
|
1463
1492
|
number: string;
|
|
1464
1493
|
}>;
|
|
1494
|
+
createJournalEntry(journal_entry: {
|
|
1495
|
+
reference?: string | undefined;
|
|
1496
|
+
due_date?: string | undefined;
|
|
1497
|
+
journal_id: string;
|
|
1498
|
+
name: string;
|
|
1499
|
+
date: string;
|
|
1500
|
+
items: {
|
|
1501
|
+
account_number: string;
|
|
1502
|
+
partner_id?: string | undefined;
|
|
1503
|
+
description?: string | undefined;
|
|
1504
|
+
debit: number;
|
|
1505
|
+
credit: number;
|
|
1506
|
+
currency: string;
|
|
1507
|
+
currency_exchange_rate?: number | undefined;
|
|
1508
|
+
analytic_distribution?: {
|
|
1509
|
+
analytic_plan: string;
|
|
1510
|
+
analytic_accounts: {
|
|
1511
|
+
analytic_account: string;
|
|
1512
|
+
percentage: number;
|
|
1513
|
+
}[];
|
|
1514
|
+
}[] | undefined;
|
|
1515
|
+
pdf?: string | undefined;
|
|
1516
|
+
}[];
|
|
1517
|
+
}): import("../types/api").RequestData<{
|
|
1518
|
+
reference?: string | undefined;
|
|
1519
|
+
due_date?: string | undefined;
|
|
1520
|
+
journal_id: string;
|
|
1521
|
+
name?: string | undefined;
|
|
1522
|
+
journal_name: string;
|
|
1523
|
+
date?: string | undefined;
|
|
1524
|
+
posted?: boolean | undefined;
|
|
1525
|
+
id: string;
|
|
1526
|
+
items?: {
|
|
1527
|
+
account_number: string;
|
|
1528
|
+
partner_id?: string | undefined;
|
|
1529
|
+
description?: string | undefined;
|
|
1530
|
+
debit: number;
|
|
1531
|
+
credit: number;
|
|
1532
|
+
currency: string;
|
|
1533
|
+
currency_exchange_rate?: number | undefined;
|
|
1534
|
+
id: string;
|
|
1535
|
+
partner_name?: string | undefined;
|
|
1536
|
+
account_name: string;
|
|
1537
|
+
matching_numbers?: string[] | undefined;
|
|
1538
|
+
analytic_distribution?: {
|
|
1539
|
+
analytic_plan: string;
|
|
1540
|
+
analytic_accounts: {
|
|
1541
|
+
analytic_account: string;
|
|
1542
|
+
percentage: number;
|
|
1543
|
+
}[];
|
|
1544
|
+
}[] | undefined;
|
|
1545
|
+
}[] | undefined;
|
|
1546
|
+
}>;
|
|
1465
1547
|
}>;
|
|
1466
1548
|
invoicing: import("../types/api").ApiFor<{
|
|
1467
1549
|
getInvoices(params: {
|
|
@@ -1690,7 +1772,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1690
1772
|
rate: number;
|
|
1691
1773
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1692
1774
|
code?: string | undefined;
|
|
1693
|
-
scope?: "
|
|
1775
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1694
1776
|
}[]>;
|
|
1695
1777
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
1696
1778
|
id: string;
|
|
@@ -1702,7 +1784,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1702
1784
|
rate: number;
|
|
1703
1785
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1704
1786
|
code?: string | undefined;
|
|
1705
|
-
scope?: "
|
|
1787
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1706
1788
|
}>;
|
|
1707
1789
|
getOpportunities(): import("../types/api").RequestData<{
|
|
1708
1790
|
id: string;
|
|
@@ -1757,7 +1839,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1757
1839
|
} | undefined;
|
|
1758
1840
|
}>;
|
|
1759
1841
|
getContacts(params?: {
|
|
1760
|
-
contact_type?: "all" | "
|
|
1842
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
1761
1843
|
page?: number | undefined;
|
|
1762
1844
|
size?: number | undefined;
|
|
1763
1845
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -2962,6 +3044,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2962
3044
|
country?: string | undefined;
|
|
2963
3045
|
}[] | undefined;
|
|
2964
3046
|
account_number?: string | undefined;
|
|
3047
|
+
company_number?: string | undefined;
|
|
2965
3048
|
id?: string | undefined;
|
|
2966
3049
|
}[]>;
|
|
2967
3050
|
createClient(client: {
|
|
@@ -3032,6 +3115,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3032
3115
|
country?: string | undefined;
|
|
3033
3116
|
}[] | undefined;
|
|
3034
3117
|
account_number?: string | undefined;
|
|
3118
|
+
company_number?: string | undefined;
|
|
3035
3119
|
id?: string | undefined;
|
|
3036
3120
|
}>;
|
|
3037
3121
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -3067,6 +3151,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3067
3151
|
country?: string | undefined;
|
|
3068
3152
|
}[] | undefined;
|
|
3069
3153
|
account_number?: string | undefined;
|
|
3154
|
+
company_number?: string | undefined;
|
|
3070
3155
|
id?: string | undefined;
|
|
3071
3156
|
}>;
|
|
3072
3157
|
updateClient(clientId: string, client: {
|
|
@@ -3134,6 +3219,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3134
3219
|
country?: string | undefined;
|
|
3135
3220
|
}[] | undefined;
|
|
3136
3221
|
account_number?: string | undefined;
|
|
3222
|
+
company_number?: string | undefined;
|
|
3137
3223
|
id?: string | undefined;
|
|
3138
3224
|
}>;
|
|
3139
3225
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -3169,6 +3255,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3169
3255
|
country?: string | undefined;
|
|
3170
3256
|
}[] | undefined;
|
|
3171
3257
|
account_number?: string | undefined;
|
|
3258
|
+
company_number?: string | undefined;
|
|
3172
3259
|
id?: string | undefined;
|
|
3173
3260
|
}[]>;
|
|
3174
3261
|
createSupplier(supplier: {
|
|
@@ -3239,6 +3326,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3239
3326
|
country?: string | undefined;
|
|
3240
3327
|
}[] | undefined;
|
|
3241
3328
|
account_number?: string | undefined;
|
|
3329
|
+
company_number?: string | undefined;
|
|
3242
3330
|
id?: string | undefined;
|
|
3243
3331
|
}>;
|
|
3244
3332
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -3274,6 +3362,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3274
3362
|
country?: string | undefined;
|
|
3275
3363
|
}[] | undefined;
|
|
3276
3364
|
account_number?: string | undefined;
|
|
3365
|
+
company_number?: string | undefined;
|
|
3277
3366
|
id?: string | undefined;
|
|
3278
3367
|
}>;
|
|
3279
3368
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -3341,6 +3430,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3341
3430
|
country?: string | undefined;
|
|
3342
3431
|
}[] | undefined;
|
|
3343
3432
|
account_number?: string | undefined;
|
|
3433
|
+
company_number?: string | undefined;
|
|
3344
3434
|
id?: string | undefined;
|
|
3345
3435
|
}>;
|
|
3346
3436
|
createInvoice(invoice: {
|
|
@@ -3405,7 +3495,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3405
3495
|
amount: number;
|
|
3406
3496
|
dedicated_amount?: number | undefined;
|
|
3407
3497
|
payment_date: string;
|
|
3408
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3498
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3409
3499
|
journal_id: string;
|
|
3410
3500
|
journal_name: string;
|
|
3411
3501
|
reconciled?: boolean | undefined;
|
|
@@ -3496,7 +3586,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3496
3586
|
amount: number;
|
|
3497
3587
|
dedicated_amount?: number | undefined;
|
|
3498
3588
|
payment_date: string;
|
|
3499
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3589
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3500
3590
|
journal_id: string;
|
|
3501
3591
|
journal_name: string;
|
|
3502
3592
|
reconciled?: boolean | undefined;
|
|
@@ -3547,7 +3637,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3547
3637
|
amount: number;
|
|
3548
3638
|
dedicated_amount?: number | undefined;
|
|
3549
3639
|
payment_date: string;
|
|
3550
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3640
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3551
3641
|
journal_id: string;
|
|
3552
3642
|
journal_name: string;
|
|
3553
3643
|
reconciled?: boolean | undefined;
|
|
@@ -3594,7 +3684,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3594
3684
|
amount: number;
|
|
3595
3685
|
dedicated_amount?: number | undefined;
|
|
3596
3686
|
payment_date: string;
|
|
3597
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3687
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3598
3688
|
journal_id: string;
|
|
3599
3689
|
journal_name: string;
|
|
3600
3690
|
reconciled?: boolean | undefined;
|
|
@@ -3641,7 +3731,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3641
3731
|
amount: number;
|
|
3642
3732
|
dedicated_amount?: number | undefined;
|
|
3643
3733
|
payment_date: string;
|
|
3644
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3734
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3645
3735
|
journal_id: string;
|
|
3646
3736
|
journal_name: string;
|
|
3647
3737
|
reconciled?: boolean | undefined;
|
|
@@ -3692,7 +3782,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3692
3782
|
amount: number;
|
|
3693
3783
|
dedicated_amount?: number | undefined;
|
|
3694
3784
|
payment_date: string;
|
|
3695
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3785
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3696
3786
|
journal_id: string;
|
|
3697
3787
|
journal_name: string;
|
|
3698
3788
|
reconciled?: boolean | undefined;
|
|
@@ -3906,7 +3996,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3906
3996
|
amount: number;
|
|
3907
3997
|
dedicated_amount?: number | undefined;
|
|
3908
3998
|
payment_date: string;
|
|
3909
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3999
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3910
4000
|
journal_id: string;
|
|
3911
4001
|
journal_name: string;
|
|
3912
4002
|
reconciled?: boolean | undefined;
|
|
@@ -3917,13 +4007,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3917
4007
|
id: string;
|
|
3918
4008
|
code: string;
|
|
3919
4009
|
name: string;
|
|
3920
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
4010
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3921
4011
|
}[]>;
|
|
3922
4012
|
getVatCodes(): import("../types/api").RequestData<{
|
|
3923
4013
|
id: string;
|
|
3924
4014
|
code?: string | undefined;
|
|
3925
4015
|
label: string;
|
|
3926
|
-
scope?: "
|
|
4016
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
3927
4017
|
rate: number;
|
|
3928
4018
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
3929
4019
|
}[]>;
|
|
@@ -4035,6 +4125,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4035
4125
|
reference?: string | undefined;
|
|
4036
4126
|
account_number?: string | undefined;
|
|
4037
4127
|
}[]>;
|
|
4128
|
+
getOutstandings(params: {
|
|
4129
|
+
unposted_allowed: "true" | "false";
|
|
4130
|
+
type: "client" | "supplier";
|
|
4131
|
+
}): import("../types/api").RequestData<{
|
|
4132
|
+
id: string;
|
|
4133
|
+
number?: string | undefined;
|
|
4134
|
+
journal_id: string;
|
|
4135
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
4136
|
+
date: string;
|
|
4137
|
+
due_date?: string | undefined;
|
|
4138
|
+
currency: string;
|
|
4139
|
+
currency_exchange_rate: number;
|
|
4140
|
+
amount: number;
|
|
4141
|
+
open_amount: number;
|
|
4142
|
+
partner_id: string;
|
|
4143
|
+
account_number: string;
|
|
4144
|
+
reference?: string | undefined;
|
|
4145
|
+
posted: boolean;
|
|
4146
|
+
}[]>;
|
|
4038
4147
|
createFinancialEntry(financial_entry: {
|
|
4039
4148
|
date: string;
|
|
4040
4149
|
journal_id: string;
|
|
@@ -4050,7 +4159,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4050
4159
|
}[];
|
|
4051
4160
|
number?: string | undefined;
|
|
4052
4161
|
pdf?: string | undefined;
|
|
4053
|
-
}
|
|
4162
|
+
}, params: {
|
|
4163
|
+
financial_counterpart_account?: string | undefined;
|
|
4164
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4054
4165
|
date: string;
|
|
4055
4166
|
journal_id: string;
|
|
4056
4167
|
currency: string;
|
|
@@ -4067,6 +4178,59 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4067
4178
|
id: string;
|
|
4068
4179
|
number: string;
|
|
4069
4180
|
}>;
|
|
4181
|
+
createJournalEntry(journal_entry: {
|
|
4182
|
+
reference?: string | undefined;
|
|
4183
|
+
due_date?: string | undefined;
|
|
4184
|
+
journal_id: string;
|
|
4185
|
+
name: string;
|
|
4186
|
+
date: string;
|
|
4187
|
+
items: {
|
|
4188
|
+
account_number: string;
|
|
4189
|
+
partner_id?: string | undefined;
|
|
4190
|
+
description?: string | undefined;
|
|
4191
|
+
debit: number;
|
|
4192
|
+
credit: number;
|
|
4193
|
+
currency: string;
|
|
4194
|
+
currency_exchange_rate?: number | undefined;
|
|
4195
|
+
analytic_distribution?: {
|
|
4196
|
+
analytic_plan: string;
|
|
4197
|
+
analytic_accounts: {
|
|
4198
|
+
analytic_account: string;
|
|
4199
|
+
percentage: number;
|
|
4200
|
+
}[];
|
|
4201
|
+
}[] | undefined;
|
|
4202
|
+
pdf?: string | undefined;
|
|
4203
|
+
}[];
|
|
4204
|
+
}): import("../types/api").RequestData<{
|
|
4205
|
+
reference?: string | undefined;
|
|
4206
|
+
due_date?: string | undefined;
|
|
4207
|
+
journal_id: string;
|
|
4208
|
+
name?: string | undefined;
|
|
4209
|
+
journal_name: string;
|
|
4210
|
+
date?: string | undefined;
|
|
4211
|
+
posted?: boolean | undefined;
|
|
4212
|
+
id: string;
|
|
4213
|
+
items?: {
|
|
4214
|
+
account_number: string;
|
|
4215
|
+
partner_id?: string | undefined;
|
|
4216
|
+
description?: string | undefined;
|
|
4217
|
+
debit: number;
|
|
4218
|
+
credit: number;
|
|
4219
|
+
currency: string;
|
|
4220
|
+
currency_exchange_rate?: number | undefined;
|
|
4221
|
+
id: string;
|
|
4222
|
+
partner_name?: string | undefined;
|
|
4223
|
+
account_name: string;
|
|
4224
|
+
matching_numbers?: string[] | undefined;
|
|
4225
|
+
analytic_distribution?: {
|
|
4226
|
+
analytic_plan: string;
|
|
4227
|
+
analytic_accounts: {
|
|
4228
|
+
analytic_account: string;
|
|
4229
|
+
percentage: number;
|
|
4230
|
+
}[];
|
|
4231
|
+
}[] | undefined;
|
|
4232
|
+
}[] | undefined;
|
|
4233
|
+
}>;
|
|
4070
4234
|
}>;
|
|
4071
4235
|
invoicing: import("../types/api").ApiFor<{
|
|
4072
4236
|
getInvoices(params: {
|
|
@@ -4295,7 +4459,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4295
4459
|
rate: number;
|
|
4296
4460
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
4297
4461
|
code?: string | undefined;
|
|
4298
|
-
scope?: "
|
|
4462
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
4299
4463
|
}[]>;
|
|
4300
4464
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
4301
4465
|
id: string;
|
|
@@ -4307,7 +4471,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4307
4471
|
rate: number;
|
|
4308
4472
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
4309
4473
|
code?: string | undefined;
|
|
4310
|
-
scope?: "
|
|
4474
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
4311
4475
|
}>;
|
|
4312
4476
|
getOpportunities(): import("../types/api").RequestData<{
|
|
4313
4477
|
id: string;
|
|
@@ -4362,7 +4526,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4362
4526
|
} | undefined;
|
|
4363
4527
|
}>;
|
|
4364
4528
|
getContacts(params?: {
|
|
4365
|
-
contact_type?: "all" | "
|
|
4529
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
4366
4530
|
page?: number | undefined;
|
|
4367
4531
|
size?: number | undefined;
|
|
4368
4532
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -5567,6 +5731,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5567
5731
|
country?: string | undefined;
|
|
5568
5732
|
}[] | undefined;
|
|
5569
5733
|
account_number?: string | undefined;
|
|
5734
|
+
company_number?: string | undefined;
|
|
5570
5735
|
id?: string | undefined;
|
|
5571
5736
|
}[]>;
|
|
5572
5737
|
createClient(client: {
|
|
@@ -5637,6 +5802,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5637
5802
|
country?: string | undefined;
|
|
5638
5803
|
}[] | undefined;
|
|
5639
5804
|
account_number?: string | undefined;
|
|
5805
|
+
company_number?: string | undefined;
|
|
5640
5806
|
id?: string | undefined;
|
|
5641
5807
|
}>;
|
|
5642
5808
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -5672,6 +5838,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5672
5838
|
country?: string | undefined;
|
|
5673
5839
|
}[] | undefined;
|
|
5674
5840
|
account_number?: string | undefined;
|
|
5841
|
+
company_number?: string | undefined;
|
|
5675
5842
|
id?: string | undefined;
|
|
5676
5843
|
}>;
|
|
5677
5844
|
updateClient(clientId: string, client: {
|
|
@@ -5739,6 +5906,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5739
5906
|
country?: string | undefined;
|
|
5740
5907
|
}[] | undefined;
|
|
5741
5908
|
account_number?: string | undefined;
|
|
5909
|
+
company_number?: string | undefined;
|
|
5742
5910
|
id?: string | undefined;
|
|
5743
5911
|
}>;
|
|
5744
5912
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -5774,6 +5942,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5774
5942
|
country?: string | undefined;
|
|
5775
5943
|
}[] | undefined;
|
|
5776
5944
|
account_number?: string | undefined;
|
|
5945
|
+
company_number?: string | undefined;
|
|
5777
5946
|
id?: string | undefined;
|
|
5778
5947
|
}[]>;
|
|
5779
5948
|
createSupplier(supplier: {
|
|
@@ -5844,6 +6013,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5844
6013
|
country?: string | undefined;
|
|
5845
6014
|
}[] | undefined;
|
|
5846
6015
|
account_number?: string | undefined;
|
|
6016
|
+
company_number?: string | undefined;
|
|
5847
6017
|
id?: string | undefined;
|
|
5848
6018
|
}>;
|
|
5849
6019
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -5879,6 +6049,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5879
6049
|
country?: string | undefined;
|
|
5880
6050
|
}[] | undefined;
|
|
5881
6051
|
account_number?: string | undefined;
|
|
6052
|
+
company_number?: string | undefined;
|
|
5882
6053
|
id?: string | undefined;
|
|
5883
6054
|
}>;
|
|
5884
6055
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -5946,6 +6117,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5946
6117
|
country?: string | undefined;
|
|
5947
6118
|
}[] | undefined;
|
|
5948
6119
|
account_number?: string | undefined;
|
|
6120
|
+
company_number?: string | undefined;
|
|
5949
6121
|
id?: string | undefined;
|
|
5950
6122
|
}>;
|
|
5951
6123
|
createInvoice(invoice: {
|
|
@@ -6010,7 +6182,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6010
6182
|
amount: number;
|
|
6011
6183
|
dedicated_amount?: number | undefined;
|
|
6012
6184
|
payment_date: string;
|
|
6013
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6185
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6014
6186
|
journal_id: string;
|
|
6015
6187
|
journal_name: string;
|
|
6016
6188
|
reconciled?: boolean | undefined;
|
|
@@ -6101,7 +6273,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6101
6273
|
amount: number;
|
|
6102
6274
|
dedicated_amount?: number | undefined;
|
|
6103
6275
|
payment_date: string;
|
|
6104
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6276
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6105
6277
|
journal_id: string;
|
|
6106
6278
|
journal_name: string;
|
|
6107
6279
|
reconciled?: boolean | undefined;
|
|
@@ -6152,7 +6324,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6152
6324
|
amount: number;
|
|
6153
6325
|
dedicated_amount?: number | undefined;
|
|
6154
6326
|
payment_date: string;
|
|
6155
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6327
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6156
6328
|
journal_id: string;
|
|
6157
6329
|
journal_name: string;
|
|
6158
6330
|
reconciled?: boolean | undefined;
|
|
@@ -6199,7 +6371,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6199
6371
|
amount: number;
|
|
6200
6372
|
dedicated_amount?: number | undefined;
|
|
6201
6373
|
payment_date: string;
|
|
6202
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6374
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6203
6375
|
journal_id: string;
|
|
6204
6376
|
journal_name: string;
|
|
6205
6377
|
reconciled?: boolean | undefined;
|
|
@@ -6246,7 +6418,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6246
6418
|
amount: number;
|
|
6247
6419
|
dedicated_amount?: number | undefined;
|
|
6248
6420
|
payment_date: string;
|
|
6249
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6421
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6250
6422
|
journal_id: string;
|
|
6251
6423
|
journal_name: string;
|
|
6252
6424
|
reconciled?: boolean | undefined;
|
|
@@ -6297,7 +6469,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6297
6469
|
amount: number;
|
|
6298
6470
|
dedicated_amount?: number | undefined;
|
|
6299
6471
|
payment_date: string;
|
|
6300
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6472
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6301
6473
|
journal_id: string;
|
|
6302
6474
|
journal_name: string;
|
|
6303
6475
|
reconciled?: boolean | undefined;
|
|
@@ -6511,7 +6683,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6511
6683
|
amount: number;
|
|
6512
6684
|
dedicated_amount?: number | undefined;
|
|
6513
6685
|
payment_date: string;
|
|
6514
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6686
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6515
6687
|
journal_id: string;
|
|
6516
6688
|
journal_name: string;
|
|
6517
6689
|
reconciled?: boolean | undefined;
|
|
@@ -6522,13 +6694,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6522
6694
|
id: string;
|
|
6523
6695
|
code: string;
|
|
6524
6696
|
name: string;
|
|
6525
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6697
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6526
6698
|
}[]>;
|
|
6527
6699
|
getVatCodes(): import("../types/api").RequestData<{
|
|
6528
6700
|
id: string;
|
|
6529
6701
|
code?: string | undefined;
|
|
6530
6702
|
label: string;
|
|
6531
|
-
scope?: "
|
|
6703
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
6532
6704
|
rate: number;
|
|
6533
6705
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
6534
6706
|
}[]>;
|
|
@@ -6640,6 +6812,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6640
6812
|
reference?: string | undefined;
|
|
6641
6813
|
account_number?: string | undefined;
|
|
6642
6814
|
}[]>;
|
|
6815
|
+
getOutstandings(params: {
|
|
6816
|
+
unposted_allowed: "true" | "false";
|
|
6817
|
+
type: "client" | "supplier";
|
|
6818
|
+
}): import("../types/api").RequestData<{
|
|
6819
|
+
id: string;
|
|
6820
|
+
number?: string | undefined;
|
|
6821
|
+
journal_id: string;
|
|
6822
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6823
|
+
date: string;
|
|
6824
|
+
due_date?: string | undefined;
|
|
6825
|
+
currency: string;
|
|
6826
|
+
currency_exchange_rate: number;
|
|
6827
|
+
amount: number;
|
|
6828
|
+
open_amount: number;
|
|
6829
|
+
partner_id: string;
|
|
6830
|
+
account_number: string;
|
|
6831
|
+
reference?: string | undefined;
|
|
6832
|
+
posted: boolean;
|
|
6833
|
+
}[]>;
|
|
6643
6834
|
createFinancialEntry(financial_entry: {
|
|
6644
6835
|
date: string;
|
|
6645
6836
|
journal_id: string;
|
|
@@ -6655,7 +6846,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6655
6846
|
}[];
|
|
6656
6847
|
number?: string | undefined;
|
|
6657
6848
|
pdf?: string | undefined;
|
|
6658
|
-
}
|
|
6849
|
+
}, params: {
|
|
6850
|
+
financial_counterpart_account?: string | undefined;
|
|
6851
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6659
6852
|
date: string;
|
|
6660
6853
|
journal_id: string;
|
|
6661
6854
|
currency: string;
|
|
@@ -6672,6 +6865,59 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6672
6865
|
id: string;
|
|
6673
6866
|
number: string;
|
|
6674
6867
|
}>;
|
|
6868
|
+
createJournalEntry(journal_entry: {
|
|
6869
|
+
reference?: string | undefined;
|
|
6870
|
+
due_date?: string | undefined;
|
|
6871
|
+
journal_id: string;
|
|
6872
|
+
name: string;
|
|
6873
|
+
date: string;
|
|
6874
|
+
items: {
|
|
6875
|
+
account_number: string;
|
|
6876
|
+
partner_id?: string | undefined;
|
|
6877
|
+
description?: string | undefined;
|
|
6878
|
+
debit: number;
|
|
6879
|
+
credit: number;
|
|
6880
|
+
currency: string;
|
|
6881
|
+
currency_exchange_rate?: number | undefined;
|
|
6882
|
+
analytic_distribution?: {
|
|
6883
|
+
analytic_plan: string;
|
|
6884
|
+
analytic_accounts: {
|
|
6885
|
+
analytic_account: string;
|
|
6886
|
+
percentage: number;
|
|
6887
|
+
}[];
|
|
6888
|
+
}[] | undefined;
|
|
6889
|
+
pdf?: string | undefined;
|
|
6890
|
+
}[];
|
|
6891
|
+
}): import("../types/api").RequestData<{
|
|
6892
|
+
reference?: string | undefined;
|
|
6893
|
+
due_date?: string | undefined;
|
|
6894
|
+
journal_id: string;
|
|
6895
|
+
name?: string | undefined;
|
|
6896
|
+
journal_name: string;
|
|
6897
|
+
date?: string | undefined;
|
|
6898
|
+
posted?: boolean | undefined;
|
|
6899
|
+
id: string;
|
|
6900
|
+
items?: {
|
|
6901
|
+
account_number: string;
|
|
6902
|
+
partner_id?: string | undefined;
|
|
6903
|
+
description?: string | undefined;
|
|
6904
|
+
debit: number;
|
|
6905
|
+
credit: number;
|
|
6906
|
+
currency: string;
|
|
6907
|
+
currency_exchange_rate?: number | undefined;
|
|
6908
|
+
id: string;
|
|
6909
|
+
partner_name?: string | undefined;
|
|
6910
|
+
account_name: string;
|
|
6911
|
+
matching_numbers?: string[] | undefined;
|
|
6912
|
+
analytic_distribution?: {
|
|
6913
|
+
analytic_plan: string;
|
|
6914
|
+
analytic_accounts: {
|
|
6915
|
+
analytic_account: string;
|
|
6916
|
+
percentage: number;
|
|
6917
|
+
}[];
|
|
6918
|
+
}[] | undefined;
|
|
6919
|
+
}[] | undefined;
|
|
6920
|
+
}>;
|
|
6675
6921
|
}>;
|
|
6676
6922
|
invoicing: import("../types/api").ApiFor<{
|
|
6677
6923
|
getInvoices(params: {
|
|
@@ -6900,7 +7146,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6900
7146
|
rate: number;
|
|
6901
7147
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
6902
7148
|
code?: string | undefined;
|
|
6903
|
-
scope?: "
|
|
7149
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
6904
7150
|
}[]>;
|
|
6905
7151
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
6906
7152
|
id: string;
|
|
@@ -6912,7 +7158,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6912
7158
|
rate: number;
|
|
6913
7159
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
6914
7160
|
code?: string | undefined;
|
|
6915
|
-
scope?: "
|
|
7161
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
6916
7162
|
}>;
|
|
6917
7163
|
getOpportunities(): import("../types/api").RequestData<{
|
|
6918
7164
|
id: string;
|
|
@@ -6967,7 +7213,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6967
7213
|
} | undefined;
|
|
6968
7214
|
}>;
|
|
6969
7215
|
getContacts(params?: {
|
|
6970
|
-
contact_type?: "all" | "
|
|
7216
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
6971
7217
|
page?: number | undefined;
|
|
6972
7218
|
size?: number | undefined;
|
|
6973
7219
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -8172,6 +8418,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8172
8418
|
country?: string | undefined;
|
|
8173
8419
|
}[] | undefined;
|
|
8174
8420
|
account_number?: string | undefined;
|
|
8421
|
+
company_number?: string | undefined;
|
|
8175
8422
|
id?: string | undefined;
|
|
8176
8423
|
}[]>;
|
|
8177
8424
|
createClient(client: {
|
|
@@ -8242,6 +8489,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8242
8489
|
country?: string | undefined;
|
|
8243
8490
|
}[] | undefined;
|
|
8244
8491
|
account_number?: string | undefined;
|
|
8492
|
+
company_number?: string | undefined;
|
|
8245
8493
|
id?: string | undefined;
|
|
8246
8494
|
}>;
|
|
8247
8495
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -8277,6 +8525,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8277
8525
|
country?: string | undefined;
|
|
8278
8526
|
}[] | undefined;
|
|
8279
8527
|
account_number?: string | undefined;
|
|
8528
|
+
company_number?: string | undefined;
|
|
8280
8529
|
id?: string | undefined;
|
|
8281
8530
|
}>;
|
|
8282
8531
|
updateClient(clientId: string, client: {
|
|
@@ -8344,6 +8593,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8344
8593
|
country?: string | undefined;
|
|
8345
8594
|
}[] | undefined;
|
|
8346
8595
|
account_number?: string | undefined;
|
|
8596
|
+
company_number?: string | undefined;
|
|
8347
8597
|
id?: string | undefined;
|
|
8348
8598
|
}>;
|
|
8349
8599
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -8379,6 +8629,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8379
8629
|
country?: string | undefined;
|
|
8380
8630
|
}[] | undefined;
|
|
8381
8631
|
account_number?: string | undefined;
|
|
8632
|
+
company_number?: string | undefined;
|
|
8382
8633
|
id?: string | undefined;
|
|
8383
8634
|
}[]>;
|
|
8384
8635
|
createSupplier(supplier: {
|
|
@@ -8449,6 +8700,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8449
8700
|
country?: string | undefined;
|
|
8450
8701
|
}[] | undefined;
|
|
8451
8702
|
account_number?: string | undefined;
|
|
8703
|
+
company_number?: string | undefined;
|
|
8452
8704
|
id?: string | undefined;
|
|
8453
8705
|
}>;
|
|
8454
8706
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -8484,6 +8736,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8484
8736
|
country?: string | undefined;
|
|
8485
8737
|
}[] | undefined;
|
|
8486
8738
|
account_number?: string | undefined;
|
|
8739
|
+
company_number?: string | undefined;
|
|
8487
8740
|
id?: string | undefined;
|
|
8488
8741
|
}>;
|
|
8489
8742
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -8551,6 +8804,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8551
8804
|
country?: string | undefined;
|
|
8552
8805
|
}[] | undefined;
|
|
8553
8806
|
account_number?: string | undefined;
|
|
8807
|
+
company_number?: string | undefined;
|
|
8554
8808
|
id?: string | undefined;
|
|
8555
8809
|
}>;
|
|
8556
8810
|
createInvoice(invoice: {
|
|
@@ -8615,7 +8869,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8615
8869
|
amount: number;
|
|
8616
8870
|
dedicated_amount?: number | undefined;
|
|
8617
8871
|
payment_date: string;
|
|
8618
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
8872
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8619
8873
|
journal_id: string;
|
|
8620
8874
|
journal_name: string;
|
|
8621
8875
|
reconciled?: boolean | undefined;
|
|
@@ -8706,7 +8960,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8706
8960
|
amount: number;
|
|
8707
8961
|
dedicated_amount?: number | undefined;
|
|
8708
8962
|
payment_date: string;
|
|
8709
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
8963
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8710
8964
|
journal_id: string;
|
|
8711
8965
|
journal_name: string;
|
|
8712
8966
|
reconciled?: boolean | undefined;
|
|
@@ -8757,7 +9011,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8757
9011
|
amount: number;
|
|
8758
9012
|
dedicated_amount?: number | undefined;
|
|
8759
9013
|
payment_date: string;
|
|
8760
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9014
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8761
9015
|
journal_id: string;
|
|
8762
9016
|
journal_name: string;
|
|
8763
9017
|
reconciled?: boolean | undefined;
|
|
@@ -8804,7 +9058,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8804
9058
|
amount: number;
|
|
8805
9059
|
dedicated_amount?: number | undefined;
|
|
8806
9060
|
payment_date: string;
|
|
8807
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9061
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8808
9062
|
journal_id: string;
|
|
8809
9063
|
journal_name: string;
|
|
8810
9064
|
reconciled?: boolean | undefined;
|
|
@@ -8851,7 +9105,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8851
9105
|
amount: number;
|
|
8852
9106
|
dedicated_amount?: number | undefined;
|
|
8853
9107
|
payment_date: string;
|
|
8854
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9108
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8855
9109
|
journal_id: string;
|
|
8856
9110
|
journal_name: string;
|
|
8857
9111
|
reconciled?: boolean | undefined;
|
|
@@ -8902,7 +9156,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8902
9156
|
amount: number;
|
|
8903
9157
|
dedicated_amount?: number | undefined;
|
|
8904
9158
|
payment_date: string;
|
|
8905
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9159
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8906
9160
|
journal_id: string;
|
|
8907
9161
|
journal_name: string;
|
|
8908
9162
|
reconciled?: boolean | undefined;
|
|
@@ -9116,7 +9370,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9116
9370
|
amount: number;
|
|
9117
9371
|
dedicated_amount?: number | undefined;
|
|
9118
9372
|
payment_date: string;
|
|
9119
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9373
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
9120
9374
|
journal_id: string;
|
|
9121
9375
|
journal_name: string;
|
|
9122
9376
|
reconciled?: boolean | undefined;
|
|
@@ -9127,13 +9381,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9127
9381
|
id: string;
|
|
9128
9382
|
code: string;
|
|
9129
9383
|
name: string;
|
|
9130
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9384
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
9131
9385
|
}[]>;
|
|
9132
9386
|
getVatCodes(): import("../types/api").RequestData<{
|
|
9133
9387
|
id: string;
|
|
9134
9388
|
code?: string | undefined;
|
|
9135
9389
|
label: string;
|
|
9136
|
-
scope?: "
|
|
9390
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
9137
9391
|
rate: number;
|
|
9138
9392
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
9139
9393
|
}[]>;
|
|
@@ -9245,6 +9499,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9245
9499
|
reference?: string | undefined;
|
|
9246
9500
|
account_number?: string | undefined;
|
|
9247
9501
|
}[]>;
|
|
9502
|
+
getOutstandings(params: {
|
|
9503
|
+
unposted_allowed: "true" | "false";
|
|
9504
|
+
type: "client" | "supplier";
|
|
9505
|
+
}): import("../types/api").RequestData<{
|
|
9506
|
+
id: string;
|
|
9507
|
+
number?: string | undefined;
|
|
9508
|
+
journal_id: string;
|
|
9509
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
9510
|
+
date: string;
|
|
9511
|
+
due_date?: string | undefined;
|
|
9512
|
+
currency: string;
|
|
9513
|
+
currency_exchange_rate: number;
|
|
9514
|
+
amount: number;
|
|
9515
|
+
open_amount: number;
|
|
9516
|
+
partner_id: string;
|
|
9517
|
+
account_number: string;
|
|
9518
|
+
reference?: string | undefined;
|
|
9519
|
+
posted: boolean;
|
|
9520
|
+
}[]>;
|
|
9248
9521
|
createFinancialEntry(financial_entry: {
|
|
9249
9522
|
date: string;
|
|
9250
9523
|
journal_id: string;
|
|
@@ -9260,7 +9533,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9260
9533
|
}[];
|
|
9261
9534
|
number?: string | undefined;
|
|
9262
9535
|
pdf?: string | undefined;
|
|
9263
|
-
}
|
|
9536
|
+
}, params: {
|
|
9537
|
+
financial_counterpart_account?: string | undefined;
|
|
9538
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9264
9539
|
date: string;
|
|
9265
9540
|
journal_id: string;
|
|
9266
9541
|
currency: string;
|
|
@@ -9277,6 +9552,59 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9277
9552
|
id: string;
|
|
9278
9553
|
number: string;
|
|
9279
9554
|
}>;
|
|
9555
|
+
createJournalEntry(journal_entry: {
|
|
9556
|
+
reference?: string | undefined;
|
|
9557
|
+
due_date?: string | undefined;
|
|
9558
|
+
journal_id: string;
|
|
9559
|
+
name: string;
|
|
9560
|
+
date: string;
|
|
9561
|
+
items: {
|
|
9562
|
+
account_number: string;
|
|
9563
|
+
partner_id?: string | undefined;
|
|
9564
|
+
description?: string | undefined;
|
|
9565
|
+
debit: number;
|
|
9566
|
+
credit: number;
|
|
9567
|
+
currency: string;
|
|
9568
|
+
currency_exchange_rate?: number | undefined;
|
|
9569
|
+
analytic_distribution?: {
|
|
9570
|
+
analytic_plan: string;
|
|
9571
|
+
analytic_accounts: {
|
|
9572
|
+
analytic_account: string;
|
|
9573
|
+
percentage: number;
|
|
9574
|
+
}[];
|
|
9575
|
+
}[] | undefined;
|
|
9576
|
+
pdf?: string | undefined;
|
|
9577
|
+
}[];
|
|
9578
|
+
}): import("../types/api").RequestData<{
|
|
9579
|
+
reference?: string | undefined;
|
|
9580
|
+
due_date?: string | undefined;
|
|
9581
|
+
journal_id: string;
|
|
9582
|
+
name?: string | undefined;
|
|
9583
|
+
journal_name: string;
|
|
9584
|
+
date?: string | undefined;
|
|
9585
|
+
posted?: boolean | undefined;
|
|
9586
|
+
id: string;
|
|
9587
|
+
items?: {
|
|
9588
|
+
account_number: string;
|
|
9589
|
+
partner_id?: string | undefined;
|
|
9590
|
+
description?: string | undefined;
|
|
9591
|
+
debit: number;
|
|
9592
|
+
credit: number;
|
|
9593
|
+
currency: string;
|
|
9594
|
+
currency_exchange_rate?: number | undefined;
|
|
9595
|
+
id: string;
|
|
9596
|
+
partner_name?: string | undefined;
|
|
9597
|
+
account_name: string;
|
|
9598
|
+
matching_numbers?: string[] | undefined;
|
|
9599
|
+
analytic_distribution?: {
|
|
9600
|
+
analytic_plan: string;
|
|
9601
|
+
analytic_accounts: {
|
|
9602
|
+
analytic_account: string;
|
|
9603
|
+
percentage: number;
|
|
9604
|
+
}[];
|
|
9605
|
+
}[] | undefined;
|
|
9606
|
+
}[] | undefined;
|
|
9607
|
+
}>;
|
|
9280
9608
|
}>;
|
|
9281
9609
|
invoicing: import("../types/api").ApiFor<{
|
|
9282
9610
|
getInvoices(params: {
|
|
@@ -9505,7 +9833,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9505
9833
|
rate: number;
|
|
9506
9834
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
9507
9835
|
code?: string | undefined;
|
|
9508
|
-
scope?: "
|
|
9836
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
9509
9837
|
}[]>;
|
|
9510
9838
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
9511
9839
|
id: string;
|
|
@@ -9517,7 +9845,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9517
9845
|
rate: number;
|
|
9518
9846
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
9519
9847
|
code?: string | undefined;
|
|
9520
|
-
scope?: "
|
|
9848
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
9521
9849
|
}>;
|
|
9522
9850
|
getOpportunities(): import("../types/api").RequestData<{
|
|
9523
9851
|
id: string;
|
|
@@ -9572,7 +9900,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9572
9900
|
} | undefined;
|
|
9573
9901
|
}>;
|
|
9574
9902
|
getContacts(params?: {
|
|
9575
|
-
contact_type?: "all" | "
|
|
9903
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
9576
9904
|
page?: number | undefined;
|
|
9577
9905
|
size?: number | undefined;
|
|
9578
9906
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10777,6 +11105,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10777
11105
|
country?: string | undefined;
|
|
10778
11106
|
}[] | undefined;
|
|
10779
11107
|
account_number?: string | undefined;
|
|
11108
|
+
company_number?: string | undefined;
|
|
10780
11109
|
id?: string | undefined;
|
|
10781
11110
|
}[]>;
|
|
10782
11111
|
createClient(client: {
|
|
@@ -10847,6 +11176,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10847
11176
|
country?: string | undefined;
|
|
10848
11177
|
}[] | undefined;
|
|
10849
11178
|
account_number?: string | undefined;
|
|
11179
|
+
company_number?: string | undefined;
|
|
10850
11180
|
id?: string | undefined;
|
|
10851
11181
|
}>;
|
|
10852
11182
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -10882,6 +11212,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10882
11212
|
country?: string | undefined;
|
|
10883
11213
|
}[] | undefined;
|
|
10884
11214
|
account_number?: string | undefined;
|
|
11215
|
+
company_number?: string | undefined;
|
|
10885
11216
|
id?: string | undefined;
|
|
10886
11217
|
}>;
|
|
10887
11218
|
updateClient(clientId: string, client: {
|
|
@@ -10949,6 +11280,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10949
11280
|
country?: string | undefined;
|
|
10950
11281
|
}[] | undefined;
|
|
10951
11282
|
account_number?: string | undefined;
|
|
11283
|
+
company_number?: string | undefined;
|
|
10952
11284
|
id?: string | undefined;
|
|
10953
11285
|
}>;
|
|
10954
11286
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -10984,6 +11316,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10984
11316
|
country?: string | undefined;
|
|
10985
11317
|
}[] | undefined;
|
|
10986
11318
|
account_number?: string | undefined;
|
|
11319
|
+
company_number?: string | undefined;
|
|
10987
11320
|
id?: string | undefined;
|
|
10988
11321
|
}[]>;
|
|
10989
11322
|
createSupplier(supplier: {
|
|
@@ -11054,6 +11387,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11054
11387
|
country?: string | undefined;
|
|
11055
11388
|
}[] | undefined;
|
|
11056
11389
|
account_number?: string | undefined;
|
|
11390
|
+
company_number?: string | undefined;
|
|
11057
11391
|
id?: string | undefined;
|
|
11058
11392
|
}>;
|
|
11059
11393
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -11089,6 +11423,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11089
11423
|
country?: string | undefined;
|
|
11090
11424
|
}[] | undefined;
|
|
11091
11425
|
account_number?: string | undefined;
|
|
11426
|
+
company_number?: string | undefined;
|
|
11092
11427
|
id?: string | undefined;
|
|
11093
11428
|
}>;
|
|
11094
11429
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -11156,6 +11491,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11156
11491
|
country?: string | undefined;
|
|
11157
11492
|
}[] | undefined;
|
|
11158
11493
|
account_number?: string | undefined;
|
|
11494
|
+
company_number?: string | undefined;
|
|
11159
11495
|
id?: string | undefined;
|
|
11160
11496
|
}>;
|
|
11161
11497
|
createInvoice(invoice: {
|
|
@@ -11220,7 +11556,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11220
11556
|
amount: number;
|
|
11221
11557
|
dedicated_amount?: number | undefined;
|
|
11222
11558
|
payment_date: string;
|
|
11223
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11559
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11224
11560
|
journal_id: string;
|
|
11225
11561
|
journal_name: string;
|
|
11226
11562
|
reconciled?: boolean | undefined;
|
|
@@ -11311,7 +11647,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11311
11647
|
amount: number;
|
|
11312
11648
|
dedicated_amount?: number | undefined;
|
|
11313
11649
|
payment_date: string;
|
|
11314
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11650
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11315
11651
|
journal_id: string;
|
|
11316
11652
|
journal_name: string;
|
|
11317
11653
|
reconciled?: boolean | undefined;
|
|
@@ -11362,7 +11698,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11362
11698
|
amount: number;
|
|
11363
11699
|
dedicated_amount?: number | undefined;
|
|
11364
11700
|
payment_date: string;
|
|
11365
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11701
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11366
11702
|
journal_id: string;
|
|
11367
11703
|
journal_name: string;
|
|
11368
11704
|
reconciled?: boolean | undefined;
|
|
@@ -11409,7 +11745,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11409
11745
|
amount: number;
|
|
11410
11746
|
dedicated_amount?: number | undefined;
|
|
11411
11747
|
payment_date: string;
|
|
11412
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11748
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11413
11749
|
journal_id: string;
|
|
11414
11750
|
journal_name: string;
|
|
11415
11751
|
reconciled?: boolean | undefined;
|
|
@@ -11456,7 +11792,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11456
11792
|
amount: number;
|
|
11457
11793
|
dedicated_amount?: number | undefined;
|
|
11458
11794
|
payment_date: string;
|
|
11459
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11795
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11460
11796
|
journal_id: string;
|
|
11461
11797
|
journal_name: string;
|
|
11462
11798
|
reconciled?: boolean | undefined;
|
|
@@ -11507,7 +11843,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11507
11843
|
amount: number;
|
|
11508
11844
|
dedicated_amount?: number | undefined;
|
|
11509
11845
|
payment_date: string;
|
|
11510
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11846
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11511
11847
|
journal_id: string;
|
|
11512
11848
|
journal_name: string;
|
|
11513
11849
|
reconciled?: boolean | undefined;
|
|
@@ -11721,7 +12057,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11721
12057
|
amount: number;
|
|
11722
12058
|
dedicated_amount?: number | undefined;
|
|
11723
12059
|
payment_date: string;
|
|
11724
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
12060
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11725
12061
|
journal_id: string;
|
|
11726
12062
|
journal_name: string;
|
|
11727
12063
|
reconciled?: boolean | undefined;
|
|
@@ -11732,13 +12068,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11732
12068
|
id: string;
|
|
11733
12069
|
code: string;
|
|
11734
12070
|
name: string;
|
|
11735
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
12071
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11736
12072
|
}[]>;
|
|
11737
12073
|
getVatCodes(): import("../types/api").RequestData<{
|
|
11738
12074
|
id: string;
|
|
11739
12075
|
code?: string | undefined;
|
|
11740
12076
|
label: string;
|
|
11741
|
-
scope?: "
|
|
12077
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
11742
12078
|
rate: number;
|
|
11743
12079
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
11744
12080
|
}[]>;
|
|
@@ -11850,6 +12186,25 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11850
12186
|
reference?: string | undefined;
|
|
11851
12187
|
account_number?: string | undefined;
|
|
11852
12188
|
}[]>;
|
|
12189
|
+
getOutstandings(params: {
|
|
12190
|
+
unposted_allowed: "true" | "false";
|
|
12191
|
+
type: "client" | "supplier";
|
|
12192
|
+
}): import("../types/api").RequestData<{
|
|
12193
|
+
id: string;
|
|
12194
|
+
number?: string | undefined;
|
|
12195
|
+
journal_id: string;
|
|
12196
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
12197
|
+
date: string;
|
|
12198
|
+
due_date?: string | undefined;
|
|
12199
|
+
currency: string;
|
|
12200
|
+
currency_exchange_rate: number;
|
|
12201
|
+
amount: number;
|
|
12202
|
+
open_amount: number;
|
|
12203
|
+
partner_id: string;
|
|
12204
|
+
account_number: string;
|
|
12205
|
+
reference?: string | undefined;
|
|
12206
|
+
posted: boolean;
|
|
12207
|
+
}[]>;
|
|
11853
12208
|
createFinancialEntry(financial_entry: {
|
|
11854
12209
|
date: string;
|
|
11855
12210
|
journal_id: string;
|
|
@@ -11865,7 +12220,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11865
12220
|
}[];
|
|
11866
12221
|
number?: string | undefined;
|
|
11867
12222
|
pdf?: string | undefined;
|
|
11868
|
-
}
|
|
12223
|
+
}, params: {
|
|
12224
|
+
financial_counterpart_account?: string | undefined;
|
|
12225
|
+
} | undefined): import("../types/api").RequestData<{
|
|
11869
12226
|
date: string;
|
|
11870
12227
|
journal_id: string;
|
|
11871
12228
|
currency: string;
|
|
@@ -11882,6 +12239,59 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11882
12239
|
id: string;
|
|
11883
12240
|
number: string;
|
|
11884
12241
|
}>;
|
|
12242
|
+
createJournalEntry(journal_entry: {
|
|
12243
|
+
reference?: string | undefined;
|
|
12244
|
+
due_date?: string | undefined;
|
|
12245
|
+
journal_id: string;
|
|
12246
|
+
name: string;
|
|
12247
|
+
date: string;
|
|
12248
|
+
items: {
|
|
12249
|
+
account_number: string;
|
|
12250
|
+
partner_id?: string | undefined;
|
|
12251
|
+
description?: string | undefined;
|
|
12252
|
+
debit: number;
|
|
12253
|
+
credit: number;
|
|
12254
|
+
currency: string;
|
|
12255
|
+
currency_exchange_rate?: number | undefined;
|
|
12256
|
+
analytic_distribution?: {
|
|
12257
|
+
analytic_plan: string;
|
|
12258
|
+
analytic_accounts: {
|
|
12259
|
+
analytic_account: string;
|
|
12260
|
+
percentage: number;
|
|
12261
|
+
}[];
|
|
12262
|
+
}[] | undefined;
|
|
12263
|
+
pdf?: string | undefined;
|
|
12264
|
+
}[];
|
|
12265
|
+
}): import("../types/api").RequestData<{
|
|
12266
|
+
reference?: string | undefined;
|
|
12267
|
+
due_date?: string | undefined;
|
|
12268
|
+
journal_id: string;
|
|
12269
|
+
name?: string | undefined;
|
|
12270
|
+
journal_name: string;
|
|
12271
|
+
date?: string | undefined;
|
|
12272
|
+
posted?: boolean | undefined;
|
|
12273
|
+
id: string;
|
|
12274
|
+
items?: {
|
|
12275
|
+
account_number: string;
|
|
12276
|
+
partner_id?: string | undefined;
|
|
12277
|
+
description?: string | undefined;
|
|
12278
|
+
debit: number;
|
|
12279
|
+
credit: number;
|
|
12280
|
+
currency: string;
|
|
12281
|
+
currency_exchange_rate?: number | undefined;
|
|
12282
|
+
id: string;
|
|
12283
|
+
partner_name?: string | undefined;
|
|
12284
|
+
account_name: string;
|
|
12285
|
+
matching_numbers?: string[] | undefined;
|
|
12286
|
+
analytic_distribution?: {
|
|
12287
|
+
analytic_plan: string;
|
|
12288
|
+
analytic_accounts: {
|
|
12289
|
+
analytic_account: string;
|
|
12290
|
+
percentage: number;
|
|
12291
|
+
}[];
|
|
12292
|
+
}[] | undefined;
|
|
12293
|
+
}[] | undefined;
|
|
12294
|
+
}>;
|
|
11885
12295
|
}>;
|
|
11886
12296
|
invoicing: import("../types/api").ApiFor<{
|
|
11887
12297
|
getInvoices(params: {
|
|
@@ -12110,7 +12520,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12110
12520
|
rate: number;
|
|
12111
12521
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
12112
12522
|
code?: string | undefined;
|
|
12113
|
-
scope?: "
|
|
12523
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
12114
12524
|
}[]>;
|
|
12115
12525
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
12116
12526
|
id: string;
|
|
@@ -12122,7 +12532,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12122
12532
|
rate: number;
|
|
12123
12533
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
12124
12534
|
code?: string | undefined;
|
|
12125
|
-
scope?: "
|
|
12535
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
12126
12536
|
}>;
|
|
12127
12537
|
getOpportunities(): import("../types/api").RequestData<{
|
|
12128
12538
|
id: string;
|
|
@@ -12177,7 +12587,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12177
12587
|
} | undefined;
|
|
12178
12588
|
}>;
|
|
12179
12589
|
getContacts(params?: {
|
|
12180
|
-
contact_type?: "all" | "
|
|
12590
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
12181
12591
|
page?: number | undefined;
|
|
12182
12592
|
size?: number | undefined;
|
|
12183
12593
|
} | undefined): import("../types/api").RequestData<{
|