@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
|
@@ -360,6 +360,7 @@ export declare class API {
|
|
|
360
360
|
country?: string | undefined;
|
|
361
361
|
}[] | undefined;
|
|
362
362
|
account_number?: string | undefined;
|
|
363
|
+
company_number?: string | undefined;
|
|
363
364
|
id?: string | undefined;
|
|
364
365
|
}[]>;
|
|
365
366
|
createClient(client: {
|
|
@@ -430,6 +431,7 @@ export declare class API {
|
|
|
430
431
|
country?: string | undefined;
|
|
431
432
|
}[] | undefined;
|
|
432
433
|
account_number?: string | undefined;
|
|
434
|
+
company_number?: string | undefined;
|
|
433
435
|
id?: string | undefined;
|
|
434
436
|
}>;
|
|
435
437
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -465,6 +467,7 @@ export declare class API {
|
|
|
465
467
|
country?: string | undefined;
|
|
466
468
|
}[] | undefined;
|
|
467
469
|
account_number?: string | undefined;
|
|
470
|
+
company_number?: string | undefined;
|
|
468
471
|
id?: string | undefined;
|
|
469
472
|
}>;
|
|
470
473
|
updateClient(clientId: string, client: {
|
|
@@ -532,6 +535,7 @@ export declare class API {
|
|
|
532
535
|
country?: string | undefined;
|
|
533
536
|
}[] | undefined;
|
|
534
537
|
account_number?: string | undefined;
|
|
538
|
+
company_number?: string | undefined;
|
|
535
539
|
id?: string | undefined;
|
|
536
540
|
}>;
|
|
537
541
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -567,6 +571,7 @@ export declare class API {
|
|
|
567
571
|
country?: string | undefined;
|
|
568
572
|
}[] | undefined;
|
|
569
573
|
account_number?: string | undefined;
|
|
574
|
+
company_number?: string | undefined;
|
|
570
575
|
id?: string | undefined;
|
|
571
576
|
}[]>;
|
|
572
577
|
createSupplier(supplier: {
|
|
@@ -637,6 +642,7 @@ export declare class API {
|
|
|
637
642
|
country?: string | undefined;
|
|
638
643
|
}[] | undefined;
|
|
639
644
|
account_number?: string | undefined;
|
|
645
|
+
company_number?: string | undefined;
|
|
640
646
|
id?: string | undefined;
|
|
641
647
|
}>;
|
|
642
648
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -672,6 +678,7 @@ export declare class API {
|
|
|
672
678
|
country?: string | undefined;
|
|
673
679
|
}[] | undefined;
|
|
674
680
|
account_number?: string | undefined;
|
|
681
|
+
company_number?: string | undefined;
|
|
675
682
|
id?: string | undefined;
|
|
676
683
|
}>;
|
|
677
684
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -739,6 +746,7 @@ export declare class API {
|
|
|
739
746
|
country?: string | undefined;
|
|
740
747
|
}[] | undefined;
|
|
741
748
|
account_number?: string | undefined;
|
|
749
|
+
company_number?: string | undefined;
|
|
742
750
|
id?: string | undefined;
|
|
743
751
|
}>;
|
|
744
752
|
createInvoice(invoice: {
|
|
@@ -803,7 +811,7 @@ export declare class API {
|
|
|
803
811
|
amount: number;
|
|
804
812
|
dedicated_amount?: number | undefined;
|
|
805
813
|
payment_date: string;
|
|
806
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
814
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
807
815
|
journal_id: string;
|
|
808
816
|
journal_name: string;
|
|
809
817
|
reconciled?: boolean | undefined;
|
|
@@ -894,7 +902,7 @@ export declare class API {
|
|
|
894
902
|
amount: number;
|
|
895
903
|
dedicated_amount?: number | undefined;
|
|
896
904
|
payment_date: string;
|
|
897
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
905
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
898
906
|
journal_id: string;
|
|
899
907
|
journal_name: string;
|
|
900
908
|
reconciled?: boolean | undefined;
|
|
@@ -945,7 +953,7 @@ export declare class API {
|
|
|
945
953
|
amount: number;
|
|
946
954
|
dedicated_amount?: number | undefined;
|
|
947
955
|
payment_date: string;
|
|
948
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
956
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
949
957
|
journal_id: string;
|
|
950
958
|
journal_name: string;
|
|
951
959
|
reconciled?: boolean | undefined;
|
|
@@ -992,7 +1000,7 @@ export declare class API {
|
|
|
992
1000
|
amount: number;
|
|
993
1001
|
dedicated_amount?: number | undefined;
|
|
994
1002
|
payment_date: string;
|
|
995
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1003
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
996
1004
|
journal_id: string;
|
|
997
1005
|
journal_name: string;
|
|
998
1006
|
reconciled?: boolean | undefined;
|
|
@@ -1039,7 +1047,7 @@ export declare class API {
|
|
|
1039
1047
|
amount: number;
|
|
1040
1048
|
dedicated_amount?: number | undefined;
|
|
1041
1049
|
payment_date: string;
|
|
1042
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1050
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1043
1051
|
journal_id: string;
|
|
1044
1052
|
journal_name: string;
|
|
1045
1053
|
reconciled?: boolean | undefined;
|
|
@@ -1090,7 +1098,7 @@ export declare class API {
|
|
|
1090
1098
|
amount: number;
|
|
1091
1099
|
dedicated_amount?: number | undefined;
|
|
1092
1100
|
payment_date: string;
|
|
1093
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1101
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1094
1102
|
journal_id: string;
|
|
1095
1103
|
journal_name: string;
|
|
1096
1104
|
reconciled?: boolean | undefined;
|
|
@@ -1304,7 +1312,7 @@ export declare class API {
|
|
|
1304
1312
|
amount: number;
|
|
1305
1313
|
dedicated_amount?: number | undefined;
|
|
1306
1314
|
payment_date: string;
|
|
1307
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1315
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1308
1316
|
journal_id: string;
|
|
1309
1317
|
journal_name: string;
|
|
1310
1318
|
reconciled?: boolean | undefined;
|
|
@@ -1315,13 +1323,13 @@ export declare class API {
|
|
|
1315
1323
|
id: string;
|
|
1316
1324
|
code: string;
|
|
1317
1325
|
name: string;
|
|
1318
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
1326
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1319
1327
|
}[]>;
|
|
1320
1328
|
getVatCodes(): import("../types/api").RequestData<{
|
|
1321
1329
|
id: string;
|
|
1322
1330
|
code?: string | undefined;
|
|
1323
1331
|
label: string;
|
|
1324
|
-
scope?: "
|
|
1332
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1325
1333
|
rate: number;
|
|
1326
1334
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1327
1335
|
}[]>;
|
|
@@ -1433,6 +1441,25 @@ export declare class API {
|
|
|
1433
1441
|
reference?: string | undefined;
|
|
1434
1442
|
account_number?: string | undefined;
|
|
1435
1443
|
}[]>;
|
|
1444
|
+
getOutstandings(params: {
|
|
1445
|
+
unposted_allowed: "true" | "false";
|
|
1446
|
+
type: "client" | "supplier";
|
|
1447
|
+
}): import("../types/api").RequestData<{
|
|
1448
|
+
id: string;
|
|
1449
|
+
number?: string | undefined;
|
|
1450
|
+
journal_id: string;
|
|
1451
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1452
|
+
date: string;
|
|
1453
|
+
due_date?: string | undefined;
|
|
1454
|
+
currency: string;
|
|
1455
|
+
currency_exchange_rate: number;
|
|
1456
|
+
amount: number;
|
|
1457
|
+
open_amount: number;
|
|
1458
|
+
partner_id: string;
|
|
1459
|
+
account_number: string;
|
|
1460
|
+
reference?: string | undefined;
|
|
1461
|
+
posted: boolean;
|
|
1462
|
+
}[]>;
|
|
1436
1463
|
createFinancialEntry(financial_entry: {
|
|
1437
1464
|
date: string;
|
|
1438
1465
|
journal_id: string;
|
|
@@ -1448,7 +1475,9 @@ export declare class API {
|
|
|
1448
1475
|
}[];
|
|
1449
1476
|
number?: string | undefined;
|
|
1450
1477
|
pdf?: string | undefined;
|
|
1451
|
-
}
|
|
1478
|
+
}, params: {
|
|
1479
|
+
financial_counterpart_account?: string | undefined;
|
|
1480
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1452
1481
|
date: string;
|
|
1453
1482
|
journal_id: string;
|
|
1454
1483
|
currency: string;
|
|
@@ -1465,6 +1494,59 @@ export declare class API {
|
|
|
1465
1494
|
id: string;
|
|
1466
1495
|
number: string;
|
|
1467
1496
|
}>;
|
|
1497
|
+
createJournalEntry(journal_entry: {
|
|
1498
|
+
reference?: string | undefined;
|
|
1499
|
+
due_date?: string | undefined;
|
|
1500
|
+
journal_id: string;
|
|
1501
|
+
name: string;
|
|
1502
|
+
date: string;
|
|
1503
|
+
items: {
|
|
1504
|
+
account_number: string;
|
|
1505
|
+
partner_id?: string | undefined;
|
|
1506
|
+
description?: string | undefined;
|
|
1507
|
+
debit: number;
|
|
1508
|
+
credit: number;
|
|
1509
|
+
currency: string;
|
|
1510
|
+
currency_exchange_rate?: number | undefined;
|
|
1511
|
+
analytic_distribution?: {
|
|
1512
|
+
analytic_plan: string;
|
|
1513
|
+
analytic_accounts: {
|
|
1514
|
+
analytic_account: string;
|
|
1515
|
+
percentage: number;
|
|
1516
|
+
}[];
|
|
1517
|
+
}[] | undefined;
|
|
1518
|
+
pdf?: string | undefined;
|
|
1519
|
+
}[];
|
|
1520
|
+
}): import("../types/api").RequestData<{
|
|
1521
|
+
reference?: string | undefined;
|
|
1522
|
+
due_date?: string | undefined;
|
|
1523
|
+
journal_id: string;
|
|
1524
|
+
name?: string | undefined;
|
|
1525
|
+
journal_name: string;
|
|
1526
|
+
date?: string | undefined;
|
|
1527
|
+
posted?: boolean | undefined;
|
|
1528
|
+
id: string;
|
|
1529
|
+
items?: {
|
|
1530
|
+
account_number: string;
|
|
1531
|
+
partner_id?: string | undefined;
|
|
1532
|
+
description?: string | undefined;
|
|
1533
|
+
debit: number;
|
|
1534
|
+
credit: number;
|
|
1535
|
+
currency: string;
|
|
1536
|
+
currency_exchange_rate?: number | undefined;
|
|
1537
|
+
id: string;
|
|
1538
|
+
partner_name?: string | undefined;
|
|
1539
|
+
account_name: string;
|
|
1540
|
+
matching_numbers?: string[] | undefined;
|
|
1541
|
+
analytic_distribution?: {
|
|
1542
|
+
analytic_plan: string;
|
|
1543
|
+
analytic_accounts: {
|
|
1544
|
+
analytic_account: string;
|
|
1545
|
+
percentage: number;
|
|
1546
|
+
}[];
|
|
1547
|
+
}[] | undefined;
|
|
1548
|
+
}[] | undefined;
|
|
1549
|
+
}>;
|
|
1468
1550
|
}>;
|
|
1469
1551
|
invoicing: import("../types/api").ApiFor<{
|
|
1470
1552
|
getInvoices(params: {
|
|
@@ -1693,7 +1775,7 @@ export declare class API {
|
|
|
1693
1775
|
rate: number;
|
|
1694
1776
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1695
1777
|
code?: string | undefined;
|
|
1696
|
-
scope?: "
|
|
1778
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1697
1779
|
}[]>;
|
|
1698
1780
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
1699
1781
|
id: string;
|
|
@@ -1705,7 +1787,7 @@ export declare class API {
|
|
|
1705
1787
|
rate: number;
|
|
1706
1788
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1707
1789
|
code?: string | undefined;
|
|
1708
|
-
scope?: "
|
|
1790
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1709
1791
|
}>;
|
|
1710
1792
|
getOpportunities(): import("../types/api").RequestData<{
|
|
1711
1793
|
id: string;
|
|
@@ -1760,7 +1842,7 @@ export declare class API {
|
|
|
1760
1842
|
} | undefined;
|
|
1761
1843
|
}>;
|
|
1762
1844
|
getContacts(params?: {
|
|
1763
|
-
contact_type?: "all" | "
|
|
1845
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
1764
1846
|
page?: number | undefined;
|
|
1765
1847
|
size?: number | undefined;
|
|
1766
1848
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -2969,6 +3051,7 @@ export declare class API {
|
|
|
2969
3051
|
country?: string | undefined;
|
|
2970
3052
|
}[] | undefined;
|
|
2971
3053
|
account_number?: string | undefined;
|
|
3054
|
+
company_number?: string | undefined;
|
|
2972
3055
|
id?: string | undefined;
|
|
2973
3056
|
}[]>;
|
|
2974
3057
|
createClient(client: {
|
|
@@ -3039,6 +3122,7 @@ export declare class API {
|
|
|
3039
3122
|
country?: string | undefined;
|
|
3040
3123
|
}[] | undefined;
|
|
3041
3124
|
account_number?: string | undefined;
|
|
3125
|
+
company_number?: string | undefined;
|
|
3042
3126
|
id?: string | undefined;
|
|
3043
3127
|
}>;
|
|
3044
3128
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -3074,6 +3158,7 @@ export declare class API {
|
|
|
3074
3158
|
country?: string | undefined;
|
|
3075
3159
|
}[] | undefined;
|
|
3076
3160
|
account_number?: string | undefined;
|
|
3161
|
+
company_number?: string | undefined;
|
|
3077
3162
|
id?: string | undefined;
|
|
3078
3163
|
}>;
|
|
3079
3164
|
updateClient(clientId: string, client: {
|
|
@@ -3141,6 +3226,7 @@ export declare class API {
|
|
|
3141
3226
|
country?: string | undefined;
|
|
3142
3227
|
}[] | undefined;
|
|
3143
3228
|
account_number?: string | undefined;
|
|
3229
|
+
company_number?: string | undefined;
|
|
3144
3230
|
id?: string | undefined;
|
|
3145
3231
|
}>;
|
|
3146
3232
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -3176,6 +3262,7 @@ export declare class API {
|
|
|
3176
3262
|
country?: string | undefined;
|
|
3177
3263
|
}[] | undefined;
|
|
3178
3264
|
account_number?: string | undefined;
|
|
3265
|
+
company_number?: string | undefined;
|
|
3179
3266
|
id?: string | undefined;
|
|
3180
3267
|
}[]>;
|
|
3181
3268
|
createSupplier(supplier: {
|
|
@@ -3246,6 +3333,7 @@ export declare class API {
|
|
|
3246
3333
|
country?: string | undefined;
|
|
3247
3334
|
}[] | undefined;
|
|
3248
3335
|
account_number?: string | undefined;
|
|
3336
|
+
company_number?: string | undefined;
|
|
3249
3337
|
id?: string | undefined;
|
|
3250
3338
|
}>;
|
|
3251
3339
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -3281,6 +3369,7 @@ export declare class API {
|
|
|
3281
3369
|
country?: string | undefined;
|
|
3282
3370
|
}[] | undefined;
|
|
3283
3371
|
account_number?: string | undefined;
|
|
3372
|
+
company_number?: string | undefined;
|
|
3284
3373
|
id?: string | undefined;
|
|
3285
3374
|
}>;
|
|
3286
3375
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -3348,6 +3437,7 @@ export declare class API {
|
|
|
3348
3437
|
country?: string | undefined;
|
|
3349
3438
|
}[] | undefined;
|
|
3350
3439
|
account_number?: string | undefined;
|
|
3440
|
+
company_number?: string | undefined;
|
|
3351
3441
|
id?: string | undefined;
|
|
3352
3442
|
}>;
|
|
3353
3443
|
createInvoice(invoice: {
|
|
@@ -3412,7 +3502,7 @@ export declare class API {
|
|
|
3412
3502
|
amount: number;
|
|
3413
3503
|
dedicated_amount?: number | undefined;
|
|
3414
3504
|
payment_date: string;
|
|
3415
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3505
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3416
3506
|
journal_id: string;
|
|
3417
3507
|
journal_name: string;
|
|
3418
3508
|
reconciled?: boolean | undefined;
|
|
@@ -3503,7 +3593,7 @@ export declare class API {
|
|
|
3503
3593
|
amount: number;
|
|
3504
3594
|
dedicated_amount?: number | undefined;
|
|
3505
3595
|
payment_date: string;
|
|
3506
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3596
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3507
3597
|
journal_id: string;
|
|
3508
3598
|
journal_name: string;
|
|
3509
3599
|
reconciled?: boolean | undefined;
|
|
@@ -3554,7 +3644,7 @@ export declare class API {
|
|
|
3554
3644
|
amount: number;
|
|
3555
3645
|
dedicated_amount?: number | undefined;
|
|
3556
3646
|
payment_date: string;
|
|
3557
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3647
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3558
3648
|
journal_id: string;
|
|
3559
3649
|
journal_name: string;
|
|
3560
3650
|
reconciled?: boolean | undefined;
|
|
@@ -3601,7 +3691,7 @@ export declare class API {
|
|
|
3601
3691
|
amount: number;
|
|
3602
3692
|
dedicated_amount?: number | undefined;
|
|
3603
3693
|
payment_date: string;
|
|
3604
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3694
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3605
3695
|
journal_id: string;
|
|
3606
3696
|
journal_name: string;
|
|
3607
3697
|
reconciled?: boolean | undefined;
|
|
@@ -3648,7 +3738,7 @@ export declare class API {
|
|
|
3648
3738
|
amount: number;
|
|
3649
3739
|
dedicated_amount?: number | undefined;
|
|
3650
3740
|
payment_date: string;
|
|
3651
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3741
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3652
3742
|
journal_id: string;
|
|
3653
3743
|
journal_name: string;
|
|
3654
3744
|
reconciled?: boolean | undefined;
|
|
@@ -3699,7 +3789,7 @@ export declare class API {
|
|
|
3699
3789
|
amount: number;
|
|
3700
3790
|
dedicated_amount?: number | undefined;
|
|
3701
3791
|
payment_date: string;
|
|
3702
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
3792
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3703
3793
|
journal_id: string;
|
|
3704
3794
|
journal_name: string;
|
|
3705
3795
|
reconciled?: boolean | undefined;
|
|
@@ -3913,7 +4003,7 @@ export declare class API {
|
|
|
3913
4003
|
amount: number;
|
|
3914
4004
|
dedicated_amount?: number | undefined;
|
|
3915
4005
|
payment_date: string;
|
|
3916
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
4006
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3917
4007
|
journal_id: string;
|
|
3918
4008
|
journal_name: string;
|
|
3919
4009
|
reconciled?: boolean | undefined;
|
|
@@ -3924,13 +4014,13 @@ export declare class API {
|
|
|
3924
4014
|
id: string;
|
|
3925
4015
|
code: string;
|
|
3926
4016
|
name: string;
|
|
3927
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
4017
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
3928
4018
|
}[]>;
|
|
3929
4019
|
getVatCodes(): import("../types/api").RequestData<{
|
|
3930
4020
|
id: string;
|
|
3931
4021
|
code?: string | undefined;
|
|
3932
4022
|
label: string;
|
|
3933
|
-
scope?: "
|
|
4023
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
3934
4024
|
rate: number;
|
|
3935
4025
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
3936
4026
|
}[]>;
|
|
@@ -4042,6 +4132,25 @@ export declare class API {
|
|
|
4042
4132
|
reference?: string | undefined;
|
|
4043
4133
|
account_number?: string | undefined;
|
|
4044
4134
|
}[]>;
|
|
4135
|
+
getOutstandings(params: {
|
|
4136
|
+
unposted_allowed: "true" | "false";
|
|
4137
|
+
type: "client" | "supplier";
|
|
4138
|
+
}): import("../types/api").RequestData<{
|
|
4139
|
+
id: string;
|
|
4140
|
+
number?: string | undefined;
|
|
4141
|
+
journal_id: string;
|
|
4142
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
4143
|
+
date: string;
|
|
4144
|
+
due_date?: string | undefined;
|
|
4145
|
+
currency: string;
|
|
4146
|
+
currency_exchange_rate: number;
|
|
4147
|
+
amount: number;
|
|
4148
|
+
open_amount: number;
|
|
4149
|
+
partner_id: string;
|
|
4150
|
+
account_number: string;
|
|
4151
|
+
reference?: string | undefined;
|
|
4152
|
+
posted: boolean;
|
|
4153
|
+
}[]>;
|
|
4045
4154
|
createFinancialEntry(financial_entry: {
|
|
4046
4155
|
date: string;
|
|
4047
4156
|
journal_id: string;
|
|
@@ -4057,7 +4166,9 @@ export declare class API {
|
|
|
4057
4166
|
}[];
|
|
4058
4167
|
number?: string | undefined;
|
|
4059
4168
|
pdf?: string | undefined;
|
|
4060
|
-
}
|
|
4169
|
+
}, params: {
|
|
4170
|
+
financial_counterpart_account?: string | undefined;
|
|
4171
|
+
} | undefined): import("../types/api").RequestData<{
|
|
4061
4172
|
date: string;
|
|
4062
4173
|
journal_id: string;
|
|
4063
4174
|
currency: string;
|
|
@@ -4074,6 +4185,59 @@ export declare class API {
|
|
|
4074
4185
|
id: string;
|
|
4075
4186
|
number: string;
|
|
4076
4187
|
}>;
|
|
4188
|
+
createJournalEntry(journal_entry: {
|
|
4189
|
+
reference?: string | undefined;
|
|
4190
|
+
due_date?: string | undefined;
|
|
4191
|
+
journal_id: string;
|
|
4192
|
+
name: string;
|
|
4193
|
+
date: string;
|
|
4194
|
+
items: {
|
|
4195
|
+
account_number: string;
|
|
4196
|
+
partner_id?: string | undefined;
|
|
4197
|
+
description?: string | undefined;
|
|
4198
|
+
debit: number;
|
|
4199
|
+
credit: number;
|
|
4200
|
+
currency: string;
|
|
4201
|
+
currency_exchange_rate?: number | undefined;
|
|
4202
|
+
analytic_distribution?: {
|
|
4203
|
+
analytic_plan: string;
|
|
4204
|
+
analytic_accounts: {
|
|
4205
|
+
analytic_account: string;
|
|
4206
|
+
percentage: number;
|
|
4207
|
+
}[];
|
|
4208
|
+
}[] | undefined;
|
|
4209
|
+
pdf?: string | undefined;
|
|
4210
|
+
}[];
|
|
4211
|
+
}): import("../types/api").RequestData<{
|
|
4212
|
+
reference?: string | undefined;
|
|
4213
|
+
due_date?: string | undefined;
|
|
4214
|
+
journal_id: string;
|
|
4215
|
+
name?: string | undefined;
|
|
4216
|
+
journal_name: string;
|
|
4217
|
+
date?: string | undefined;
|
|
4218
|
+
posted?: boolean | undefined;
|
|
4219
|
+
id: string;
|
|
4220
|
+
items?: {
|
|
4221
|
+
account_number: string;
|
|
4222
|
+
partner_id?: string | undefined;
|
|
4223
|
+
description?: string | undefined;
|
|
4224
|
+
debit: number;
|
|
4225
|
+
credit: number;
|
|
4226
|
+
currency: string;
|
|
4227
|
+
currency_exchange_rate?: number | undefined;
|
|
4228
|
+
id: string;
|
|
4229
|
+
partner_name?: string | undefined;
|
|
4230
|
+
account_name: string;
|
|
4231
|
+
matching_numbers?: string[] | undefined;
|
|
4232
|
+
analytic_distribution?: {
|
|
4233
|
+
analytic_plan: string;
|
|
4234
|
+
analytic_accounts: {
|
|
4235
|
+
analytic_account: string;
|
|
4236
|
+
percentage: number;
|
|
4237
|
+
}[];
|
|
4238
|
+
}[] | undefined;
|
|
4239
|
+
}[] | undefined;
|
|
4240
|
+
}>;
|
|
4077
4241
|
}>;
|
|
4078
4242
|
invoicing: import("../types/api").ApiFor<{
|
|
4079
4243
|
getInvoices(params: {
|
|
@@ -4302,7 +4466,7 @@ export declare class API {
|
|
|
4302
4466
|
rate: number;
|
|
4303
4467
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
4304
4468
|
code?: string | undefined;
|
|
4305
|
-
scope?: "
|
|
4469
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
4306
4470
|
}[]>;
|
|
4307
4471
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
4308
4472
|
id: string;
|
|
@@ -4314,7 +4478,7 @@ export declare class API {
|
|
|
4314
4478
|
rate: number;
|
|
4315
4479
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
4316
4480
|
code?: string | undefined;
|
|
4317
|
-
scope?: "
|
|
4481
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
4318
4482
|
}>;
|
|
4319
4483
|
getOpportunities(): import("../types/api").RequestData<{
|
|
4320
4484
|
id: string;
|
|
@@ -4369,7 +4533,7 @@ export declare class API {
|
|
|
4369
4533
|
} | undefined;
|
|
4370
4534
|
}>;
|
|
4371
4535
|
getContacts(params?: {
|
|
4372
|
-
contact_type?: "all" | "
|
|
4536
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
4373
4537
|
page?: number | undefined;
|
|
4374
4538
|
size?: number | undefined;
|
|
4375
4539
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -5574,6 +5738,7 @@ export declare class API {
|
|
|
5574
5738
|
country?: string | undefined;
|
|
5575
5739
|
}[] | undefined;
|
|
5576
5740
|
account_number?: string | undefined;
|
|
5741
|
+
company_number?: string | undefined;
|
|
5577
5742
|
id?: string | undefined;
|
|
5578
5743
|
}[]>;
|
|
5579
5744
|
createClient(client: {
|
|
@@ -5644,6 +5809,7 @@ export declare class API {
|
|
|
5644
5809
|
country?: string | undefined;
|
|
5645
5810
|
}[] | undefined;
|
|
5646
5811
|
account_number?: string | undefined;
|
|
5812
|
+
company_number?: string | undefined;
|
|
5647
5813
|
id?: string | undefined;
|
|
5648
5814
|
}>;
|
|
5649
5815
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -5679,6 +5845,7 @@ export declare class API {
|
|
|
5679
5845
|
country?: string | undefined;
|
|
5680
5846
|
}[] | undefined;
|
|
5681
5847
|
account_number?: string | undefined;
|
|
5848
|
+
company_number?: string | undefined;
|
|
5682
5849
|
id?: string | undefined;
|
|
5683
5850
|
}>;
|
|
5684
5851
|
updateClient(clientId: string, client: {
|
|
@@ -5746,6 +5913,7 @@ export declare class API {
|
|
|
5746
5913
|
country?: string | undefined;
|
|
5747
5914
|
}[] | undefined;
|
|
5748
5915
|
account_number?: string | undefined;
|
|
5916
|
+
company_number?: string | undefined;
|
|
5749
5917
|
id?: string | undefined;
|
|
5750
5918
|
}>;
|
|
5751
5919
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -5781,6 +5949,7 @@ export declare class API {
|
|
|
5781
5949
|
country?: string | undefined;
|
|
5782
5950
|
}[] | undefined;
|
|
5783
5951
|
account_number?: string | undefined;
|
|
5952
|
+
company_number?: string | undefined;
|
|
5784
5953
|
id?: string | undefined;
|
|
5785
5954
|
}[]>;
|
|
5786
5955
|
createSupplier(supplier: {
|
|
@@ -5851,6 +6020,7 @@ export declare class API {
|
|
|
5851
6020
|
country?: string | undefined;
|
|
5852
6021
|
}[] | undefined;
|
|
5853
6022
|
account_number?: string | undefined;
|
|
6023
|
+
company_number?: string | undefined;
|
|
5854
6024
|
id?: string | undefined;
|
|
5855
6025
|
}>;
|
|
5856
6026
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -5886,6 +6056,7 @@ export declare class API {
|
|
|
5886
6056
|
country?: string | undefined;
|
|
5887
6057
|
}[] | undefined;
|
|
5888
6058
|
account_number?: string | undefined;
|
|
6059
|
+
company_number?: string | undefined;
|
|
5889
6060
|
id?: string | undefined;
|
|
5890
6061
|
}>;
|
|
5891
6062
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -5953,6 +6124,7 @@ export declare class API {
|
|
|
5953
6124
|
country?: string | undefined;
|
|
5954
6125
|
}[] | undefined;
|
|
5955
6126
|
account_number?: string | undefined;
|
|
6127
|
+
company_number?: string | undefined;
|
|
5956
6128
|
id?: string | undefined;
|
|
5957
6129
|
}>;
|
|
5958
6130
|
createInvoice(invoice: {
|
|
@@ -6017,7 +6189,7 @@ export declare class API {
|
|
|
6017
6189
|
amount: number;
|
|
6018
6190
|
dedicated_amount?: number | undefined;
|
|
6019
6191
|
payment_date: string;
|
|
6020
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6192
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6021
6193
|
journal_id: string;
|
|
6022
6194
|
journal_name: string;
|
|
6023
6195
|
reconciled?: boolean | undefined;
|
|
@@ -6108,7 +6280,7 @@ export declare class API {
|
|
|
6108
6280
|
amount: number;
|
|
6109
6281
|
dedicated_amount?: number | undefined;
|
|
6110
6282
|
payment_date: string;
|
|
6111
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6283
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6112
6284
|
journal_id: string;
|
|
6113
6285
|
journal_name: string;
|
|
6114
6286
|
reconciled?: boolean | undefined;
|
|
@@ -6159,7 +6331,7 @@ export declare class API {
|
|
|
6159
6331
|
amount: number;
|
|
6160
6332
|
dedicated_amount?: number | undefined;
|
|
6161
6333
|
payment_date: string;
|
|
6162
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6334
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6163
6335
|
journal_id: string;
|
|
6164
6336
|
journal_name: string;
|
|
6165
6337
|
reconciled?: boolean | undefined;
|
|
@@ -6206,7 +6378,7 @@ export declare class API {
|
|
|
6206
6378
|
amount: number;
|
|
6207
6379
|
dedicated_amount?: number | undefined;
|
|
6208
6380
|
payment_date: string;
|
|
6209
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6381
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6210
6382
|
journal_id: string;
|
|
6211
6383
|
journal_name: string;
|
|
6212
6384
|
reconciled?: boolean | undefined;
|
|
@@ -6253,7 +6425,7 @@ export declare class API {
|
|
|
6253
6425
|
amount: number;
|
|
6254
6426
|
dedicated_amount?: number | undefined;
|
|
6255
6427
|
payment_date: string;
|
|
6256
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6428
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6257
6429
|
journal_id: string;
|
|
6258
6430
|
journal_name: string;
|
|
6259
6431
|
reconciled?: boolean | undefined;
|
|
@@ -6304,7 +6476,7 @@ export declare class API {
|
|
|
6304
6476
|
amount: number;
|
|
6305
6477
|
dedicated_amount?: number | undefined;
|
|
6306
6478
|
payment_date: string;
|
|
6307
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6479
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6308
6480
|
journal_id: string;
|
|
6309
6481
|
journal_name: string;
|
|
6310
6482
|
reconciled?: boolean | undefined;
|
|
@@ -6518,7 +6690,7 @@ export declare class API {
|
|
|
6518
6690
|
amount: number;
|
|
6519
6691
|
dedicated_amount?: number | undefined;
|
|
6520
6692
|
payment_date: string;
|
|
6521
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6693
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6522
6694
|
journal_id: string;
|
|
6523
6695
|
journal_name: string;
|
|
6524
6696
|
reconciled?: boolean | undefined;
|
|
@@ -6529,13 +6701,13 @@ export declare class API {
|
|
|
6529
6701
|
id: string;
|
|
6530
6702
|
code: string;
|
|
6531
6703
|
name: string;
|
|
6532
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
6704
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6533
6705
|
}[]>;
|
|
6534
6706
|
getVatCodes(): import("../types/api").RequestData<{
|
|
6535
6707
|
id: string;
|
|
6536
6708
|
code?: string | undefined;
|
|
6537
6709
|
label: string;
|
|
6538
|
-
scope?: "
|
|
6710
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
6539
6711
|
rate: number;
|
|
6540
6712
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
6541
6713
|
}[]>;
|
|
@@ -6647,6 +6819,25 @@ export declare class API {
|
|
|
6647
6819
|
reference?: string | undefined;
|
|
6648
6820
|
account_number?: string | undefined;
|
|
6649
6821
|
}[]>;
|
|
6822
|
+
getOutstandings(params: {
|
|
6823
|
+
unposted_allowed: "true" | "false";
|
|
6824
|
+
type: "client" | "supplier";
|
|
6825
|
+
}): import("../types/api").RequestData<{
|
|
6826
|
+
id: string;
|
|
6827
|
+
number?: string | undefined;
|
|
6828
|
+
journal_id: string;
|
|
6829
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6830
|
+
date: string;
|
|
6831
|
+
due_date?: string | undefined;
|
|
6832
|
+
currency: string;
|
|
6833
|
+
currency_exchange_rate: number;
|
|
6834
|
+
amount: number;
|
|
6835
|
+
open_amount: number;
|
|
6836
|
+
partner_id: string;
|
|
6837
|
+
account_number: string;
|
|
6838
|
+
reference?: string | undefined;
|
|
6839
|
+
posted: boolean;
|
|
6840
|
+
}[]>;
|
|
6650
6841
|
createFinancialEntry(financial_entry: {
|
|
6651
6842
|
date: string;
|
|
6652
6843
|
journal_id: string;
|
|
@@ -6662,7 +6853,9 @@ export declare class API {
|
|
|
6662
6853
|
}[];
|
|
6663
6854
|
number?: string | undefined;
|
|
6664
6855
|
pdf?: string | undefined;
|
|
6665
|
-
}
|
|
6856
|
+
}, params: {
|
|
6857
|
+
financial_counterpart_account?: string | undefined;
|
|
6858
|
+
} | undefined): import("../types/api").RequestData<{
|
|
6666
6859
|
date: string;
|
|
6667
6860
|
journal_id: string;
|
|
6668
6861
|
currency: string;
|
|
@@ -6679,6 +6872,59 @@ export declare class API {
|
|
|
6679
6872
|
id: string;
|
|
6680
6873
|
number: string;
|
|
6681
6874
|
}>;
|
|
6875
|
+
createJournalEntry(journal_entry: {
|
|
6876
|
+
reference?: string | undefined;
|
|
6877
|
+
due_date?: string | undefined;
|
|
6878
|
+
journal_id: string;
|
|
6879
|
+
name: string;
|
|
6880
|
+
date: string;
|
|
6881
|
+
items: {
|
|
6882
|
+
account_number: string;
|
|
6883
|
+
partner_id?: string | undefined;
|
|
6884
|
+
description?: string | undefined;
|
|
6885
|
+
debit: number;
|
|
6886
|
+
credit: number;
|
|
6887
|
+
currency: string;
|
|
6888
|
+
currency_exchange_rate?: number | undefined;
|
|
6889
|
+
analytic_distribution?: {
|
|
6890
|
+
analytic_plan: string;
|
|
6891
|
+
analytic_accounts: {
|
|
6892
|
+
analytic_account: string;
|
|
6893
|
+
percentage: number;
|
|
6894
|
+
}[];
|
|
6895
|
+
}[] | undefined;
|
|
6896
|
+
pdf?: string | undefined;
|
|
6897
|
+
}[];
|
|
6898
|
+
}): import("../types/api").RequestData<{
|
|
6899
|
+
reference?: string | undefined;
|
|
6900
|
+
due_date?: string | undefined;
|
|
6901
|
+
journal_id: string;
|
|
6902
|
+
name?: string | undefined;
|
|
6903
|
+
journal_name: string;
|
|
6904
|
+
date?: string | undefined;
|
|
6905
|
+
posted?: boolean | undefined;
|
|
6906
|
+
id: string;
|
|
6907
|
+
items?: {
|
|
6908
|
+
account_number: string;
|
|
6909
|
+
partner_id?: string | undefined;
|
|
6910
|
+
description?: string | undefined;
|
|
6911
|
+
debit: number;
|
|
6912
|
+
credit: number;
|
|
6913
|
+
currency: string;
|
|
6914
|
+
currency_exchange_rate?: number | undefined;
|
|
6915
|
+
id: string;
|
|
6916
|
+
partner_name?: string | undefined;
|
|
6917
|
+
account_name: string;
|
|
6918
|
+
matching_numbers?: string[] | undefined;
|
|
6919
|
+
analytic_distribution?: {
|
|
6920
|
+
analytic_plan: string;
|
|
6921
|
+
analytic_accounts: {
|
|
6922
|
+
analytic_account: string;
|
|
6923
|
+
percentage: number;
|
|
6924
|
+
}[];
|
|
6925
|
+
}[] | undefined;
|
|
6926
|
+
}[] | undefined;
|
|
6927
|
+
}>;
|
|
6682
6928
|
}>;
|
|
6683
6929
|
invoicing: import("../types/api").ApiFor<{
|
|
6684
6930
|
getInvoices(params: {
|
|
@@ -6907,7 +7153,7 @@ export declare class API {
|
|
|
6907
7153
|
rate: number;
|
|
6908
7154
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
6909
7155
|
code?: string | undefined;
|
|
6910
|
-
scope?: "
|
|
7156
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
6911
7157
|
}[]>;
|
|
6912
7158
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
6913
7159
|
id: string;
|
|
@@ -6919,7 +7165,7 @@ export declare class API {
|
|
|
6919
7165
|
rate: number;
|
|
6920
7166
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
6921
7167
|
code?: string | undefined;
|
|
6922
|
-
scope?: "
|
|
7168
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
6923
7169
|
}>;
|
|
6924
7170
|
getOpportunities(): import("../types/api").RequestData<{
|
|
6925
7171
|
id: string;
|
|
@@ -6974,7 +7220,7 @@ export declare class API {
|
|
|
6974
7220
|
} | undefined;
|
|
6975
7221
|
}>;
|
|
6976
7222
|
getContacts(params?: {
|
|
6977
|
-
contact_type?: "all" | "
|
|
7223
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
6978
7224
|
page?: number | undefined;
|
|
6979
7225
|
size?: number | undefined;
|
|
6980
7226
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -8179,6 +8425,7 @@ export declare class API {
|
|
|
8179
8425
|
country?: string | undefined;
|
|
8180
8426
|
}[] | undefined;
|
|
8181
8427
|
account_number?: string | undefined;
|
|
8428
|
+
company_number?: string | undefined;
|
|
8182
8429
|
id?: string | undefined;
|
|
8183
8430
|
}[]>;
|
|
8184
8431
|
createClient(client: {
|
|
@@ -8249,6 +8496,7 @@ export declare class API {
|
|
|
8249
8496
|
country?: string | undefined;
|
|
8250
8497
|
}[] | undefined;
|
|
8251
8498
|
account_number?: string | undefined;
|
|
8499
|
+
company_number?: string | undefined;
|
|
8252
8500
|
id?: string | undefined;
|
|
8253
8501
|
}>;
|
|
8254
8502
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -8284,6 +8532,7 @@ export declare class API {
|
|
|
8284
8532
|
country?: string | undefined;
|
|
8285
8533
|
}[] | undefined;
|
|
8286
8534
|
account_number?: string | undefined;
|
|
8535
|
+
company_number?: string | undefined;
|
|
8287
8536
|
id?: string | undefined;
|
|
8288
8537
|
}>;
|
|
8289
8538
|
updateClient(clientId: string, client: {
|
|
@@ -8351,6 +8600,7 @@ export declare class API {
|
|
|
8351
8600
|
country?: string | undefined;
|
|
8352
8601
|
}[] | undefined;
|
|
8353
8602
|
account_number?: string | undefined;
|
|
8603
|
+
company_number?: string | undefined;
|
|
8354
8604
|
id?: string | undefined;
|
|
8355
8605
|
}>;
|
|
8356
8606
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -8386,6 +8636,7 @@ export declare class API {
|
|
|
8386
8636
|
country?: string | undefined;
|
|
8387
8637
|
}[] | undefined;
|
|
8388
8638
|
account_number?: string | undefined;
|
|
8639
|
+
company_number?: string | undefined;
|
|
8389
8640
|
id?: string | undefined;
|
|
8390
8641
|
}[]>;
|
|
8391
8642
|
createSupplier(supplier: {
|
|
@@ -8456,6 +8707,7 @@ export declare class API {
|
|
|
8456
8707
|
country?: string | undefined;
|
|
8457
8708
|
}[] | undefined;
|
|
8458
8709
|
account_number?: string | undefined;
|
|
8710
|
+
company_number?: string | undefined;
|
|
8459
8711
|
id?: string | undefined;
|
|
8460
8712
|
}>;
|
|
8461
8713
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -8491,75 +8743,77 @@ export declare class API {
|
|
|
8491
8743
|
country?: string | undefined;
|
|
8492
8744
|
}[] | undefined;
|
|
8493
8745
|
account_number?: string | undefined;
|
|
8746
|
+
company_number?: string | undefined;
|
|
8747
|
+
id?: string | undefined;
|
|
8748
|
+
}>;
|
|
8749
|
+
updateSupplier(supplierId: string, supplier: {
|
|
8750
|
+
external_reference?: string | undefined;
|
|
8751
|
+
first_name?: string | undefined;
|
|
8752
|
+
last_name?: string | undefined;
|
|
8753
|
+
name?: string | undefined;
|
|
8754
|
+
function?: string | undefined;
|
|
8755
|
+
is_company?: boolean | undefined;
|
|
8756
|
+
company_id?: string | undefined;
|
|
8757
|
+
phone?: string | undefined;
|
|
8758
|
+
mobile?: string | undefined;
|
|
8759
|
+
email?: string | undefined;
|
|
8760
|
+
language?: string | undefined;
|
|
8761
|
+
internal_notes?: string | undefined;
|
|
8762
|
+
website?: string | undefined;
|
|
8763
|
+
vat?: string | undefined;
|
|
8764
|
+
iban?: string | undefined;
|
|
8765
|
+
bank_account?: string | undefined;
|
|
8766
|
+
currency?: string | undefined;
|
|
8767
|
+
active?: boolean | undefined;
|
|
8768
|
+
addresses?: {
|
|
8769
|
+
address_type: "main" | "delivery" | "invoice";
|
|
8770
|
+
name?: string | undefined;
|
|
8771
|
+
number?: string | undefined;
|
|
8772
|
+
box?: string | undefined;
|
|
8773
|
+
phone?: string | undefined;
|
|
8774
|
+
mobile?: string | undefined;
|
|
8775
|
+
email?: string | undefined;
|
|
8776
|
+
street?: string | undefined;
|
|
8777
|
+
city?: string | undefined;
|
|
8778
|
+
postal_code?: string | undefined;
|
|
8779
|
+
country?: string | undefined;
|
|
8780
|
+
}[] | undefined;
|
|
8781
|
+
}): import("../types/api").RequestData<{
|
|
8782
|
+
external_reference?: string | undefined;
|
|
8783
|
+
first_name?: string | undefined;
|
|
8784
|
+
last_name?: string | undefined;
|
|
8785
|
+
name?: string | undefined;
|
|
8786
|
+
function?: string | undefined;
|
|
8787
|
+
is_company?: boolean | undefined;
|
|
8788
|
+
company_id?: string | undefined;
|
|
8789
|
+
phone?: string | undefined;
|
|
8790
|
+
mobile?: string | undefined;
|
|
8791
|
+
email?: string | undefined;
|
|
8792
|
+
language?: string | undefined;
|
|
8793
|
+
internal_notes?: string | undefined;
|
|
8794
|
+
website?: string | undefined;
|
|
8795
|
+
vat?: string | undefined;
|
|
8796
|
+
iban?: string | undefined;
|
|
8797
|
+
bank_account?: string | undefined;
|
|
8798
|
+
currency?: string | undefined;
|
|
8799
|
+
active?: boolean | undefined;
|
|
8800
|
+
addresses?: {
|
|
8801
|
+
address_type: "main" | "delivery" | "invoice";
|
|
8802
|
+
name?: string | undefined;
|
|
8803
|
+
number?: string | undefined;
|
|
8804
|
+
box?: string | undefined;
|
|
8805
|
+
phone?: string | undefined;
|
|
8806
|
+
mobile?: string | undefined;
|
|
8807
|
+
email?: string | undefined;
|
|
8808
|
+
street?: string | undefined;
|
|
8809
|
+
city?: string | undefined;
|
|
8810
|
+
postal_code?: string | undefined;
|
|
8811
|
+
country?: string | undefined;
|
|
8812
|
+
}[] | undefined;
|
|
8813
|
+
account_number?: string | undefined;
|
|
8814
|
+
company_number?: string | undefined;
|
|
8494
8815
|
id?: string | undefined;
|
|
8495
8816
|
}>;
|
|
8496
|
-
updateSupplier(supplierId: string, supplier: {
|
|
8497
|
-
external_reference?: string | undefined;
|
|
8498
|
-
first_name?: string | undefined;
|
|
8499
|
-
last_name?: string | undefined;
|
|
8500
|
-
name?: string | undefined;
|
|
8501
|
-
function?: string | undefined;
|
|
8502
|
-
is_company?: boolean | undefined;
|
|
8503
|
-
company_id?: string | undefined;
|
|
8504
|
-
phone?: string | undefined;
|
|
8505
|
-
mobile?: string | undefined;
|
|
8506
|
-
email?: string | undefined;
|
|
8507
|
-
language?: string | undefined;
|
|
8508
|
-
internal_notes?: string | undefined;
|
|
8509
|
-
website?: string | undefined;
|
|
8510
|
-
vat?: string | undefined;
|
|
8511
|
-
iban?: string | undefined;
|
|
8512
|
-
bank_account?: string | undefined;
|
|
8513
|
-
currency?: string | undefined;
|
|
8514
|
-
active?: boolean | undefined;
|
|
8515
|
-
addresses?: {
|
|
8516
|
-
address_type: "main" | "delivery" | "invoice";
|
|
8517
|
-
name?: string | undefined;
|
|
8518
|
-
number?: string | undefined;
|
|
8519
|
-
box?: string | undefined;
|
|
8520
|
-
phone?: string | undefined;
|
|
8521
|
-
mobile?: string | undefined;
|
|
8522
|
-
email?: string | undefined;
|
|
8523
|
-
street?: string | undefined;
|
|
8524
|
-
city?: string | undefined;
|
|
8525
|
-
postal_code?: string | undefined;
|
|
8526
|
-
country?: string | undefined;
|
|
8527
|
-
}[] | undefined;
|
|
8528
|
-
}): import("../types/api").RequestData<{
|
|
8529
|
-
external_reference?: string | undefined;
|
|
8530
|
-
first_name?: string | undefined;
|
|
8531
|
-
last_name?: string | undefined;
|
|
8532
|
-
name?: string | undefined;
|
|
8533
|
-
function?: string | undefined;
|
|
8534
|
-
is_company?: boolean | undefined;
|
|
8535
|
-
company_id?: string | undefined;
|
|
8536
|
-
phone?: string | undefined;
|
|
8537
|
-
mobile?: string | undefined;
|
|
8538
|
-
email?: string | undefined;
|
|
8539
|
-
language?: string | undefined;
|
|
8540
|
-
internal_notes?: string | undefined;
|
|
8541
|
-
website?: string | undefined;
|
|
8542
|
-
vat?: string | undefined;
|
|
8543
|
-
iban?: string | undefined;
|
|
8544
|
-
bank_account?: string | undefined;
|
|
8545
|
-
currency?: string | undefined;
|
|
8546
|
-
active?: boolean | undefined;
|
|
8547
|
-
addresses?: {
|
|
8548
|
-
address_type: "main" | "delivery" | "invoice";
|
|
8549
|
-
name?: string | undefined;
|
|
8550
|
-
number?: string | undefined;
|
|
8551
|
-
box?: string | undefined;
|
|
8552
|
-
phone?: string | undefined;
|
|
8553
|
-
mobile?: string | undefined;
|
|
8554
|
-
email?: string | undefined;
|
|
8555
|
-
street?: string | undefined;
|
|
8556
|
-
city?: string | undefined;
|
|
8557
|
-
postal_code?: string | undefined;
|
|
8558
|
-
country?: string | undefined;
|
|
8559
|
-
}[] | undefined;
|
|
8560
|
-
account_number?: string | undefined;
|
|
8561
|
-
id?: string | undefined;
|
|
8562
|
-
}>;
|
|
8563
8817
|
createInvoice(invoice: {
|
|
8564
8818
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
8565
8819
|
invoice_number?: string | undefined;
|
|
@@ -8622,7 +8876,7 @@ export declare class API {
|
|
|
8622
8876
|
amount: number;
|
|
8623
8877
|
dedicated_amount?: number | undefined;
|
|
8624
8878
|
payment_date: string;
|
|
8625
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
8879
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8626
8880
|
journal_id: string;
|
|
8627
8881
|
journal_name: string;
|
|
8628
8882
|
reconciled?: boolean | undefined;
|
|
@@ -8713,7 +8967,7 @@ export declare class API {
|
|
|
8713
8967
|
amount: number;
|
|
8714
8968
|
dedicated_amount?: number | undefined;
|
|
8715
8969
|
payment_date: string;
|
|
8716
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
8970
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8717
8971
|
journal_id: string;
|
|
8718
8972
|
journal_name: string;
|
|
8719
8973
|
reconciled?: boolean | undefined;
|
|
@@ -8764,7 +9018,7 @@ export declare class API {
|
|
|
8764
9018
|
amount: number;
|
|
8765
9019
|
dedicated_amount?: number | undefined;
|
|
8766
9020
|
payment_date: string;
|
|
8767
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9021
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8768
9022
|
journal_id: string;
|
|
8769
9023
|
journal_name: string;
|
|
8770
9024
|
reconciled?: boolean | undefined;
|
|
@@ -8811,7 +9065,7 @@ export declare class API {
|
|
|
8811
9065
|
amount: number;
|
|
8812
9066
|
dedicated_amount?: number | undefined;
|
|
8813
9067
|
payment_date: string;
|
|
8814
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9068
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8815
9069
|
journal_id: string;
|
|
8816
9070
|
journal_name: string;
|
|
8817
9071
|
reconciled?: boolean | undefined;
|
|
@@ -8858,7 +9112,7 @@ export declare class API {
|
|
|
8858
9112
|
amount: number;
|
|
8859
9113
|
dedicated_amount?: number | undefined;
|
|
8860
9114
|
payment_date: string;
|
|
8861
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9115
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8862
9116
|
journal_id: string;
|
|
8863
9117
|
journal_name: string;
|
|
8864
9118
|
reconciled?: boolean | undefined;
|
|
@@ -8909,7 +9163,7 @@ export declare class API {
|
|
|
8909
9163
|
amount: number;
|
|
8910
9164
|
dedicated_amount?: number | undefined;
|
|
8911
9165
|
payment_date: string;
|
|
8912
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9166
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
8913
9167
|
journal_id: string;
|
|
8914
9168
|
journal_name: string;
|
|
8915
9169
|
reconciled?: boolean | undefined;
|
|
@@ -9123,7 +9377,7 @@ export declare class API {
|
|
|
9123
9377
|
amount: number;
|
|
9124
9378
|
dedicated_amount?: number | undefined;
|
|
9125
9379
|
payment_date: string;
|
|
9126
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9380
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
9127
9381
|
journal_id: string;
|
|
9128
9382
|
journal_name: string;
|
|
9129
9383
|
reconciled?: boolean | undefined;
|
|
@@ -9134,13 +9388,13 @@ export declare class API {
|
|
|
9134
9388
|
id: string;
|
|
9135
9389
|
code: string;
|
|
9136
9390
|
name: string;
|
|
9137
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
9391
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
9138
9392
|
}[]>;
|
|
9139
9393
|
getVatCodes(): import("../types/api").RequestData<{
|
|
9140
9394
|
id: string;
|
|
9141
9395
|
code?: string | undefined;
|
|
9142
9396
|
label: string;
|
|
9143
|
-
scope?: "
|
|
9397
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
9144
9398
|
rate: number;
|
|
9145
9399
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
9146
9400
|
}[]>;
|
|
@@ -9252,6 +9506,25 @@ export declare class API {
|
|
|
9252
9506
|
reference?: string | undefined;
|
|
9253
9507
|
account_number?: string | undefined;
|
|
9254
9508
|
}[]>;
|
|
9509
|
+
getOutstandings(params: {
|
|
9510
|
+
unposted_allowed: "true" | "false";
|
|
9511
|
+
type: "client" | "supplier";
|
|
9512
|
+
}): import("../types/api").RequestData<{
|
|
9513
|
+
id: string;
|
|
9514
|
+
number?: string | undefined;
|
|
9515
|
+
journal_id: string;
|
|
9516
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
9517
|
+
date: string;
|
|
9518
|
+
due_date?: string | undefined;
|
|
9519
|
+
currency: string;
|
|
9520
|
+
currency_exchange_rate: number;
|
|
9521
|
+
amount: number;
|
|
9522
|
+
open_amount: number;
|
|
9523
|
+
partner_id: string;
|
|
9524
|
+
account_number: string;
|
|
9525
|
+
reference?: string | undefined;
|
|
9526
|
+
posted: boolean;
|
|
9527
|
+
}[]>;
|
|
9255
9528
|
createFinancialEntry(financial_entry: {
|
|
9256
9529
|
date: string;
|
|
9257
9530
|
journal_id: string;
|
|
@@ -9267,7 +9540,9 @@ export declare class API {
|
|
|
9267
9540
|
}[];
|
|
9268
9541
|
number?: string | undefined;
|
|
9269
9542
|
pdf?: string | undefined;
|
|
9270
|
-
}
|
|
9543
|
+
}, params: {
|
|
9544
|
+
financial_counterpart_account?: string | undefined;
|
|
9545
|
+
} | undefined): import("../types/api").RequestData<{
|
|
9271
9546
|
date: string;
|
|
9272
9547
|
journal_id: string;
|
|
9273
9548
|
currency: string;
|
|
@@ -9284,6 +9559,59 @@ export declare class API {
|
|
|
9284
9559
|
id: string;
|
|
9285
9560
|
number: string;
|
|
9286
9561
|
}>;
|
|
9562
|
+
createJournalEntry(journal_entry: {
|
|
9563
|
+
reference?: string | undefined;
|
|
9564
|
+
due_date?: string | undefined;
|
|
9565
|
+
journal_id: string;
|
|
9566
|
+
name: string;
|
|
9567
|
+
date: string;
|
|
9568
|
+
items: {
|
|
9569
|
+
account_number: string;
|
|
9570
|
+
partner_id?: string | undefined;
|
|
9571
|
+
description?: string | undefined;
|
|
9572
|
+
debit: number;
|
|
9573
|
+
credit: number;
|
|
9574
|
+
currency: string;
|
|
9575
|
+
currency_exchange_rate?: number | undefined;
|
|
9576
|
+
analytic_distribution?: {
|
|
9577
|
+
analytic_plan: string;
|
|
9578
|
+
analytic_accounts: {
|
|
9579
|
+
analytic_account: string;
|
|
9580
|
+
percentage: number;
|
|
9581
|
+
}[];
|
|
9582
|
+
}[] | undefined;
|
|
9583
|
+
pdf?: string | undefined;
|
|
9584
|
+
}[];
|
|
9585
|
+
}): import("../types/api").RequestData<{
|
|
9586
|
+
reference?: string | undefined;
|
|
9587
|
+
due_date?: string | undefined;
|
|
9588
|
+
journal_id: string;
|
|
9589
|
+
name?: string | undefined;
|
|
9590
|
+
journal_name: string;
|
|
9591
|
+
date?: string | undefined;
|
|
9592
|
+
posted?: boolean | undefined;
|
|
9593
|
+
id: string;
|
|
9594
|
+
items?: {
|
|
9595
|
+
account_number: string;
|
|
9596
|
+
partner_id?: string | undefined;
|
|
9597
|
+
description?: string | undefined;
|
|
9598
|
+
debit: number;
|
|
9599
|
+
credit: number;
|
|
9600
|
+
currency: string;
|
|
9601
|
+
currency_exchange_rate?: number | undefined;
|
|
9602
|
+
id: string;
|
|
9603
|
+
partner_name?: string | undefined;
|
|
9604
|
+
account_name: string;
|
|
9605
|
+
matching_numbers?: string[] | undefined;
|
|
9606
|
+
analytic_distribution?: {
|
|
9607
|
+
analytic_plan: string;
|
|
9608
|
+
analytic_accounts: {
|
|
9609
|
+
analytic_account: string;
|
|
9610
|
+
percentage: number;
|
|
9611
|
+
}[];
|
|
9612
|
+
}[] | undefined;
|
|
9613
|
+
}[] | undefined;
|
|
9614
|
+
}>;
|
|
9287
9615
|
}>;
|
|
9288
9616
|
invoicing: import("../types/api").ApiFor<{
|
|
9289
9617
|
getInvoices(params: {
|
|
@@ -9512,7 +9840,7 @@ export declare class API {
|
|
|
9512
9840
|
rate: number;
|
|
9513
9841
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
9514
9842
|
code?: string | undefined;
|
|
9515
|
-
scope?: "
|
|
9843
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
9516
9844
|
}[]>;
|
|
9517
9845
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
9518
9846
|
id: string;
|
|
@@ -9524,7 +9852,7 @@ export declare class API {
|
|
|
9524
9852
|
rate: number;
|
|
9525
9853
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
9526
9854
|
code?: string | undefined;
|
|
9527
|
-
scope?: "
|
|
9855
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
9528
9856
|
}>;
|
|
9529
9857
|
getOpportunities(): import("../types/api").RequestData<{
|
|
9530
9858
|
id: string;
|
|
@@ -9579,7 +9907,7 @@ export declare class API {
|
|
|
9579
9907
|
} | undefined;
|
|
9580
9908
|
}>;
|
|
9581
9909
|
getContacts(params?: {
|
|
9582
|
-
contact_type?: "all" | "
|
|
9910
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
9583
9911
|
page?: number | undefined;
|
|
9584
9912
|
size?: number | undefined;
|
|
9585
9913
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -10788,6 +11116,7 @@ export declare class API {
|
|
|
10788
11116
|
country?: string | undefined;
|
|
10789
11117
|
}[] | undefined;
|
|
10790
11118
|
account_number?: string | undefined;
|
|
11119
|
+
company_number?: string | undefined;
|
|
10791
11120
|
id?: string | undefined;
|
|
10792
11121
|
}[]>;
|
|
10793
11122
|
createClient(client: {
|
|
@@ -10858,6 +11187,7 @@ export declare class API {
|
|
|
10858
11187
|
country?: string | undefined;
|
|
10859
11188
|
}[] | undefined;
|
|
10860
11189
|
account_number?: string | undefined;
|
|
11190
|
+
company_number?: string | undefined;
|
|
10861
11191
|
id?: string | undefined;
|
|
10862
11192
|
}>;
|
|
10863
11193
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -10893,6 +11223,7 @@ export declare class API {
|
|
|
10893
11223
|
country?: string | undefined;
|
|
10894
11224
|
}[] | undefined;
|
|
10895
11225
|
account_number?: string | undefined;
|
|
11226
|
+
company_number?: string | undefined;
|
|
10896
11227
|
id?: string | undefined;
|
|
10897
11228
|
}>;
|
|
10898
11229
|
updateClient(clientId: string, client: {
|
|
@@ -10960,6 +11291,7 @@ export declare class API {
|
|
|
10960
11291
|
country?: string | undefined;
|
|
10961
11292
|
}[] | undefined;
|
|
10962
11293
|
account_number?: string | undefined;
|
|
11294
|
+
company_number?: string | undefined;
|
|
10963
11295
|
id?: string | undefined;
|
|
10964
11296
|
}>;
|
|
10965
11297
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -10995,6 +11327,7 @@ export declare class API {
|
|
|
10995
11327
|
country?: string | undefined;
|
|
10996
11328
|
}[] | undefined;
|
|
10997
11329
|
account_number?: string | undefined;
|
|
11330
|
+
company_number?: string | undefined;
|
|
10998
11331
|
id?: string | undefined;
|
|
10999
11332
|
}[]>;
|
|
11000
11333
|
createSupplier(supplier: {
|
|
@@ -11065,6 +11398,7 @@ export declare class API {
|
|
|
11065
11398
|
country?: string | undefined;
|
|
11066
11399
|
}[] | undefined;
|
|
11067
11400
|
account_number?: string | undefined;
|
|
11401
|
+
company_number?: string | undefined;
|
|
11068
11402
|
id?: string | undefined;
|
|
11069
11403
|
}>;
|
|
11070
11404
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -11100,6 +11434,7 @@ export declare class API {
|
|
|
11100
11434
|
country?: string | undefined;
|
|
11101
11435
|
}[] | undefined;
|
|
11102
11436
|
account_number?: string | undefined;
|
|
11437
|
+
company_number?: string | undefined;
|
|
11103
11438
|
id?: string | undefined;
|
|
11104
11439
|
}>;
|
|
11105
11440
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -11167,6 +11502,7 @@ export declare class API {
|
|
|
11167
11502
|
country?: string | undefined;
|
|
11168
11503
|
}[] | undefined;
|
|
11169
11504
|
account_number?: string | undefined;
|
|
11505
|
+
company_number?: string | undefined;
|
|
11170
11506
|
id?: string | undefined;
|
|
11171
11507
|
}>;
|
|
11172
11508
|
createInvoice(invoice: {
|
|
@@ -11231,7 +11567,7 @@ export declare class API {
|
|
|
11231
11567
|
amount: number;
|
|
11232
11568
|
dedicated_amount?: number | undefined;
|
|
11233
11569
|
payment_date: string;
|
|
11234
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11570
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11235
11571
|
journal_id: string;
|
|
11236
11572
|
journal_name: string;
|
|
11237
11573
|
reconciled?: boolean | undefined;
|
|
@@ -11322,7 +11658,7 @@ export declare class API {
|
|
|
11322
11658
|
amount: number;
|
|
11323
11659
|
dedicated_amount?: number | undefined;
|
|
11324
11660
|
payment_date: string;
|
|
11325
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11661
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11326
11662
|
journal_id: string;
|
|
11327
11663
|
journal_name: string;
|
|
11328
11664
|
reconciled?: boolean | undefined;
|
|
@@ -11373,7 +11709,7 @@ export declare class API {
|
|
|
11373
11709
|
amount: number;
|
|
11374
11710
|
dedicated_amount?: number | undefined;
|
|
11375
11711
|
payment_date: string;
|
|
11376
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11712
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11377
11713
|
journal_id: string;
|
|
11378
11714
|
journal_name: string;
|
|
11379
11715
|
reconciled?: boolean | undefined;
|
|
@@ -11420,7 +11756,7 @@ export declare class API {
|
|
|
11420
11756
|
amount: number;
|
|
11421
11757
|
dedicated_amount?: number | undefined;
|
|
11422
11758
|
payment_date: string;
|
|
11423
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11759
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11424
11760
|
journal_id: string;
|
|
11425
11761
|
journal_name: string;
|
|
11426
11762
|
reconciled?: boolean | undefined;
|
|
@@ -11467,7 +11803,7 @@ export declare class API {
|
|
|
11467
11803
|
amount: number;
|
|
11468
11804
|
dedicated_amount?: number | undefined;
|
|
11469
11805
|
payment_date: string;
|
|
11470
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11806
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11471
11807
|
journal_id: string;
|
|
11472
11808
|
journal_name: string;
|
|
11473
11809
|
reconciled?: boolean | undefined;
|
|
@@ -11518,7 +11854,7 @@ export declare class API {
|
|
|
11518
11854
|
amount: number;
|
|
11519
11855
|
dedicated_amount?: number | undefined;
|
|
11520
11856
|
payment_date: string;
|
|
11521
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
11857
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11522
11858
|
journal_id: string;
|
|
11523
11859
|
journal_name: string;
|
|
11524
11860
|
reconciled?: boolean | undefined;
|
|
@@ -11732,7 +12068,7 @@ export declare class API {
|
|
|
11732
12068
|
amount: number;
|
|
11733
12069
|
dedicated_amount?: number | undefined;
|
|
11734
12070
|
payment_date: 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
|
journal_id: string;
|
|
11737
12073
|
journal_name: string;
|
|
11738
12074
|
reconciled?: boolean | undefined;
|
|
@@ -11743,13 +12079,13 @@ export declare class API {
|
|
|
11743
12079
|
id: string;
|
|
11744
12080
|
code: string;
|
|
11745
12081
|
name: string;
|
|
11746
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
12082
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11747
12083
|
}[]>;
|
|
11748
12084
|
getVatCodes(): import("../types/api").RequestData<{
|
|
11749
12085
|
id: string;
|
|
11750
12086
|
code?: string | undefined;
|
|
11751
12087
|
label: string;
|
|
11752
|
-
scope?: "
|
|
12088
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
11753
12089
|
rate: number;
|
|
11754
12090
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
11755
12091
|
}[]>;
|
|
@@ -11861,6 +12197,25 @@ export declare class API {
|
|
|
11861
12197
|
reference?: string | undefined;
|
|
11862
12198
|
account_number?: string | undefined;
|
|
11863
12199
|
}[]>;
|
|
12200
|
+
getOutstandings(params: {
|
|
12201
|
+
unposted_allowed: "true" | "false";
|
|
12202
|
+
type: "client" | "supplier";
|
|
12203
|
+
}): import("../types/api").RequestData<{
|
|
12204
|
+
id: string;
|
|
12205
|
+
number?: string | undefined;
|
|
12206
|
+
journal_id: string;
|
|
12207
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
12208
|
+
date: string;
|
|
12209
|
+
due_date?: string | undefined;
|
|
12210
|
+
currency: string;
|
|
12211
|
+
currency_exchange_rate: number;
|
|
12212
|
+
amount: number;
|
|
12213
|
+
open_amount: number;
|
|
12214
|
+
partner_id: string;
|
|
12215
|
+
account_number: string;
|
|
12216
|
+
reference?: string | undefined;
|
|
12217
|
+
posted: boolean;
|
|
12218
|
+
}[]>;
|
|
11864
12219
|
createFinancialEntry(financial_entry: {
|
|
11865
12220
|
date: string;
|
|
11866
12221
|
journal_id: string;
|
|
@@ -11876,7 +12231,9 @@ export declare class API {
|
|
|
11876
12231
|
}[];
|
|
11877
12232
|
number?: string | undefined;
|
|
11878
12233
|
pdf?: string | undefined;
|
|
11879
|
-
}
|
|
12234
|
+
}, params: {
|
|
12235
|
+
financial_counterpart_account?: string | undefined;
|
|
12236
|
+
} | undefined): import("../types/api").RequestData<{
|
|
11880
12237
|
date: string;
|
|
11881
12238
|
journal_id: string;
|
|
11882
12239
|
currency: string;
|
|
@@ -11893,6 +12250,59 @@ export declare class API {
|
|
|
11893
12250
|
id: string;
|
|
11894
12251
|
number: string;
|
|
11895
12252
|
}>;
|
|
12253
|
+
createJournalEntry(journal_entry: {
|
|
12254
|
+
reference?: string | undefined;
|
|
12255
|
+
due_date?: string | undefined;
|
|
12256
|
+
journal_id: string;
|
|
12257
|
+
name: string;
|
|
12258
|
+
date: string;
|
|
12259
|
+
items: {
|
|
12260
|
+
account_number: string;
|
|
12261
|
+
partner_id?: string | undefined;
|
|
12262
|
+
description?: string | undefined;
|
|
12263
|
+
debit: number;
|
|
12264
|
+
credit: number;
|
|
12265
|
+
currency: string;
|
|
12266
|
+
currency_exchange_rate?: number | undefined;
|
|
12267
|
+
analytic_distribution?: {
|
|
12268
|
+
analytic_plan: string;
|
|
12269
|
+
analytic_accounts: {
|
|
12270
|
+
analytic_account: string;
|
|
12271
|
+
percentage: number;
|
|
12272
|
+
}[];
|
|
12273
|
+
}[] | undefined;
|
|
12274
|
+
pdf?: string | undefined;
|
|
12275
|
+
}[];
|
|
12276
|
+
}): import("../types/api").RequestData<{
|
|
12277
|
+
reference?: string | undefined;
|
|
12278
|
+
due_date?: string | undefined;
|
|
12279
|
+
journal_id: string;
|
|
12280
|
+
name?: string | undefined;
|
|
12281
|
+
journal_name: string;
|
|
12282
|
+
date?: string | undefined;
|
|
12283
|
+
posted?: boolean | undefined;
|
|
12284
|
+
id: string;
|
|
12285
|
+
items?: {
|
|
12286
|
+
account_number: string;
|
|
12287
|
+
partner_id?: string | undefined;
|
|
12288
|
+
description?: string | undefined;
|
|
12289
|
+
debit: number;
|
|
12290
|
+
credit: number;
|
|
12291
|
+
currency: string;
|
|
12292
|
+
currency_exchange_rate?: number | undefined;
|
|
12293
|
+
id: string;
|
|
12294
|
+
partner_name?: string | undefined;
|
|
12295
|
+
account_name: string;
|
|
12296
|
+
matching_numbers?: string[] | undefined;
|
|
12297
|
+
analytic_distribution?: {
|
|
12298
|
+
analytic_plan: string;
|
|
12299
|
+
analytic_accounts: {
|
|
12300
|
+
analytic_account: string;
|
|
12301
|
+
percentage: number;
|
|
12302
|
+
}[];
|
|
12303
|
+
}[] | undefined;
|
|
12304
|
+
}[] | undefined;
|
|
12305
|
+
}>;
|
|
11896
12306
|
}>;
|
|
11897
12307
|
invoicing: import("../types/api").ApiFor<{
|
|
11898
12308
|
getInvoices(params: {
|
|
@@ -12121,7 +12531,7 @@ export declare class API {
|
|
|
12121
12531
|
rate: number;
|
|
12122
12532
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
12123
12533
|
code?: string | undefined;
|
|
12124
|
-
scope?: "
|
|
12534
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
12125
12535
|
}[]>;
|
|
12126
12536
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
12127
12537
|
id: string;
|
|
@@ -12133,7 +12543,7 @@ export declare class API {
|
|
|
12133
12543
|
rate: number;
|
|
12134
12544
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
12135
12545
|
code?: string | undefined;
|
|
12136
|
-
scope?: "
|
|
12546
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
12137
12547
|
}>;
|
|
12138
12548
|
getOpportunities(): import("../types/api").RequestData<{
|
|
12139
12549
|
id: string;
|
|
@@ -12188,7 +12598,7 @@ export declare class API {
|
|
|
12188
12598
|
} | undefined;
|
|
12189
12599
|
}>;
|
|
12190
12600
|
getContacts(params?: {
|
|
12191
|
-
contact_type?: "all" | "
|
|
12601
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
12192
12602
|
page?: number | undefined;
|
|
12193
12603
|
size?: number | undefined;
|
|
12194
12604
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -13404,6 +13814,7 @@ export declare class API {
|
|
|
13404
13814
|
country?: string | undefined;
|
|
13405
13815
|
}[] | undefined;
|
|
13406
13816
|
account_number?: string | undefined;
|
|
13817
|
+
company_number?: string | undefined;
|
|
13407
13818
|
id?: string | undefined;
|
|
13408
13819
|
}[]>;
|
|
13409
13820
|
createClient(client: {
|
|
@@ -13474,6 +13885,7 @@ export declare class API {
|
|
|
13474
13885
|
country?: string | undefined;
|
|
13475
13886
|
}[] | undefined;
|
|
13476
13887
|
account_number?: string | undefined;
|
|
13888
|
+
company_number?: string | undefined;
|
|
13477
13889
|
id?: string | undefined;
|
|
13478
13890
|
}>;
|
|
13479
13891
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -13509,6 +13921,7 @@ export declare class API {
|
|
|
13509
13921
|
country?: string | undefined;
|
|
13510
13922
|
}[] | undefined;
|
|
13511
13923
|
account_number?: string | undefined;
|
|
13924
|
+
company_number?: string | undefined;
|
|
13512
13925
|
id?: string | undefined;
|
|
13513
13926
|
}>;
|
|
13514
13927
|
updateClient(clientId: string, client: {
|
|
@@ -13576,6 +13989,7 @@ export declare class API {
|
|
|
13576
13989
|
country?: string | undefined;
|
|
13577
13990
|
}[] | undefined;
|
|
13578
13991
|
account_number?: string | undefined;
|
|
13992
|
+
company_number?: string | undefined;
|
|
13579
13993
|
id?: string | undefined;
|
|
13580
13994
|
}>;
|
|
13581
13995
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -13611,6 +14025,7 @@ export declare class API {
|
|
|
13611
14025
|
country?: string | undefined;
|
|
13612
14026
|
}[] | undefined;
|
|
13613
14027
|
account_number?: string | undefined;
|
|
14028
|
+
company_number?: string | undefined;
|
|
13614
14029
|
id?: string | undefined;
|
|
13615
14030
|
}[]>;
|
|
13616
14031
|
createSupplier(supplier: {
|
|
@@ -13681,6 +14096,7 @@ export declare class API {
|
|
|
13681
14096
|
country?: string | undefined;
|
|
13682
14097
|
}[] | undefined;
|
|
13683
14098
|
account_number?: string | undefined;
|
|
14099
|
+
company_number?: string | undefined;
|
|
13684
14100
|
id?: string | undefined;
|
|
13685
14101
|
}>;
|
|
13686
14102
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -13716,6 +14132,7 @@ export declare class API {
|
|
|
13716
14132
|
country?: string | undefined;
|
|
13717
14133
|
}[] | undefined;
|
|
13718
14134
|
account_number?: string | undefined;
|
|
14135
|
+
company_number?: string | undefined;
|
|
13719
14136
|
id?: string | undefined;
|
|
13720
14137
|
}>;
|
|
13721
14138
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -13783,6 +14200,7 @@ export declare class API {
|
|
|
13783
14200
|
country?: string | undefined;
|
|
13784
14201
|
}[] | undefined;
|
|
13785
14202
|
account_number?: string | undefined;
|
|
14203
|
+
company_number?: string | undefined;
|
|
13786
14204
|
id?: string | undefined;
|
|
13787
14205
|
}>;
|
|
13788
14206
|
createInvoice(invoice: {
|
|
@@ -13847,7 +14265,7 @@ export declare class API {
|
|
|
13847
14265
|
amount: number;
|
|
13848
14266
|
dedicated_amount?: number | undefined;
|
|
13849
14267
|
payment_date: string;
|
|
13850
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
14268
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
13851
14269
|
journal_id: string;
|
|
13852
14270
|
journal_name: string;
|
|
13853
14271
|
reconciled?: boolean | undefined;
|
|
@@ -13938,7 +14356,7 @@ export declare class API {
|
|
|
13938
14356
|
amount: number;
|
|
13939
14357
|
dedicated_amount?: number | undefined;
|
|
13940
14358
|
payment_date: string;
|
|
13941
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
14359
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
13942
14360
|
journal_id: string;
|
|
13943
14361
|
journal_name: string;
|
|
13944
14362
|
reconciled?: boolean | undefined;
|
|
@@ -13989,7 +14407,7 @@ export declare class API {
|
|
|
13989
14407
|
amount: number;
|
|
13990
14408
|
dedicated_amount?: number | undefined;
|
|
13991
14409
|
payment_date: string;
|
|
13992
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
14410
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
13993
14411
|
journal_id: string;
|
|
13994
14412
|
journal_name: string;
|
|
13995
14413
|
reconciled?: boolean | undefined;
|
|
@@ -14036,7 +14454,7 @@ export declare class API {
|
|
|
14036
14454
|
amount: number;
|
|
14037
14455
|
dedicated_amount?: number | undefined;
|
|
14038
14456
|
payment_date: string;
|
|
14039
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
14457
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
14040
14458
|
journal_id: string;
|
|
14041
14459
|
journal_name: string;
|
|
14042
14460
|
reconciled?: boolean | undefined;
|
|
@@ -14083,7 +14501,7 @@ export declare class API {
|
|
|
14083
14501
|
amount: number;
|
|
14084
14502
|
dedicated_amount?: number | undefined;
|
|
14085
14503
|
payment_date: string;
|
|
14086
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
14504
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
14087
14505
|
journal_id: string;
|
|
14088
14506
|
journal_name: string;
|
|
14089
14507
|
reconciled?: boolean | undefined;
|
|
@@ -14134,7 +14552,7 @@ export declare class API {
|
|
|
14134
14552
|
amount: number;
|
|
14135
14553
|
dedicated_amount?: number | undefined;
|
|
14136
14554
|
payment_date: string;
|
|
14137
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
14555
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
14138
14556
|
journal_id: string;
|
|
14139
14557
|
journal_name: string;
|
|
14140
14558
|
reconciled?: boolean | undefined;
|
|
@@ -14348,7 +14766,7 @@ export declare class API {
|
|
|
14348
14766
|
amount: number;
|
|
14349
14767
|
dedicated_amount?: number | undefined;
|
|
14350
14768
|
payment_date: string;
|
|
14351
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
14769
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
14352
14770
|
journal_id: string;
|
|
14353
14771
|
journal_name: string;
|
|
14354
14772
|
reconciled?: boolean | undefined;
|
|
@@ -14359,13 +14777,13 @@ export declare class API {
|
|
|
14359
14777
|
id: string;
|
|
14360
14778
|
code: string;
|
|
14361
14779
|
name: string;
|
|
14362
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
14780
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
14363
14781
|
}[]>;
|
|
14364
14782
|
getVatCodes(): import("../types/api").RequestData<{
|
|
14365
14783
|
id: string;
|
|
14366
14784
|
code?: string | undefined;
|
|
14367
14785
|
label: string;
|
|
14368
|
-
scope?: "
|
|
14786
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
14369
14787
|
rate: number;
|
|
14370
14788
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
14371
14789
|
}[]>;
|
|
@@ -14477,6 +14895,25 @@ export declare class API {
|
|
|
14477
14895
|
reference?: string | undefined;
|
|
14478
14896
|
account_number?: string | undefined;
|
|
14479
14897
|
}[]>;
|
|
14898
|
+
getOutstandings(params: {
|
|
14899
|
+
unposted_allowed: "true" | "false";
|
|
14900
|
+
type: "client" | "supplier";
|
|
14901
|
+
}): import("../types/api").RequestData<{
|
|
14902
|
+
id: string;
|
|
14903
|
+
number?: string | undefined;
|
|
14904
|
+
journal_id: string;
|
|
14905
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
14906
|
+
date: string;
|
|
14907
|
+
due_date?: string | undefined;
|
|
14908
|
+
currency: string;
|
|
14909
|
+
currency_exchange_rate: number;
|
|
14910
|
+
amount: number;
|
|
14911
|
+
open_amount: number;
|
|
14912
|
+
partner_id: string;
|
|
14913
|
+
account_number: string;
|
|
14914
|
+
reference?: string | undefined;
|
|
14915
|
+
posted: boolean;
|
|
14916
|
+
}[]>;
|
|
14480
14917
|
createFinancialEntry(financial_entry: {
|
|
14481
14918
|
date: string;
|
|
14482
14919
|
journal_id: string;
|
|
@@ -14492,7 +14929,9 @@ export declare class API {
|
|
|
14492
14929
|
}[];
|
|
14493
14930
|
number?: string | undefined;
|
|
14494
14931
|
pdf?: string | undefined;
|
|
14495
|
-
}
|
|
14932
|
+
}, params: {
|
|
14933
|
+
financial_counterpart_account?: string | undefined;
|
|
14934
|
+
} | undefined): import("../types/api").RequestData<{
|
|
14496
14935
|
date: string;
|
|
14497
14936
|
journal_id: string;
|
|
14498
14937
|
currency: string;
|
|
@@ -14509,6 +14948,59 @@ export declare class API {
|
|
|
14509
14948
|
id: string;
|
|
14510
14949
|
number: string;
|
|
14511
14950
|
}>;
|
|
14951
|
+
createJournalEntry(journal_entry: {
|
|
14952
|
+
reference?: string | undefined;
|
|
14953
|
+
due_date?: string | undefined;
|
|
14954
|
+
journal_id: string;
|
|
14955
|
+
name: string;
|
|
14956
|
+
date: string;
|
|
14957
|
+
items: {
|
|
14958
|
+
account_number: string;
|
|
14959
|
+
partner_id?: string | undefined;
|
|
14960
|
+
description?: string | undefined;
|
|
14961
|
+
debit: number;
|
|
14962
|
+
credit: number;
|
|
14963
|
+
currency: string;
|
|
14964
|
+
currency_exchange_rate?: number | undefined;
|
|
14965
|
+
analytic_distribution?: {
|
|
14966
|
+
analytic_plan: string;
|
|
14967
|
+
analytic_accounts: {
|
|
14968
|
+
analytic_account: string;
|
|
14969
|
+
percentage: number;
|
|
14970
|
+
}[];
|
|
14971
|
+
}[] | undefined;
|
|
14972
|
+
pdf?: string | undefined;
|
|
14973
|
+
}[];
|
|
14974
|
+
}): import("../types/api").RequestData<{
|
|
14975
|
+
reference?: string | undefined;
|
|
14976
|
+
due_date?: string | undefined;
|
|
14977
|
+
journal_id: string;
|
|
14978
|
+
name?: string | undefined;
|
|
14979
|
+
journal_name: string;
|
|
14980
|
+
date?: string | undefined;
|
|
14981
|
+
posted?: boolean | undefined;
|
|
14982
|
+
id: string;
|
|
14983
|
+
items?: {
|
|
14984
|
+
account_number: string;
|
|
14985
|
+
partner_id?: string | undefined;
|
|
14986
|
+
description?: string | undefined;
|
|
14987
|
+
debit: number;
|
|
14988
|
+
credit: number;
|
|
14989
|
+
currency: string;
|
|
14990
|
+
currency_exchange_rate?: number | undefined;
|
|
14991
|
+
id: string;
|
|
14992
|
+
partner_name?: string | undefined;
|
|
14993
|
+
account_name: string;
|
|
14994
|
+
matching_numbers?: string[] | undefined;
|
|
14995
|
+
analytic_distribution?: {
|
|
14996
|
+
analytic_plan: string;
|
|
14997
|
+
analytic_accounts: {
|
|
14998
|
+
analytic_account: string;
|
|
14999
|
+
percentage: number;
|
|
15000
|
+
}[];
|
|
15001
|
+
}[] | undefined;
|
|
15002
|
+
}[] | undefined;
|
|
15003
|
+
}>;
|
|
14512
15004
|
}>;
|
|
14513
15005
|
invoicing: import("../types/api").ApiFor<{
|
|
14514
15006
|
getInvoices(params: {
|
|
@@ -14737,7 +15229,7 @@ export declare class API {
|
|
|
14737
15229
|
rate: number;
|
|
14738
15230
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
14739
15231
|
code?: string | undefined;
|
|
14740
|
-
scope?: "
|
|
15232
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
14741
15233
|
}[]>;
|
|
14742
15234
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
14743
15235
|
id: string;
|
|
@@ -14749,7 +15241,7 @@ export declare class API {
|
|
|
14749
15241
|
rate: number;
|
|
14750
15242
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
14751
15243
|
code?: string | undefined;
|
|
14752
|
-
scope?: "
|
|
15244
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
14753
15245
|
}>;
|
|
14754
15246
|
getOpportunities(): import("../types/api").RequestData<{
|
|
14755
15247
|
id: string;
|
|
@@ -14804,7 +15296,7 @@ export declare class API {
|
|
|
14804
15296
|
} | undefined;
|
|
14805
15297
|
}>;
|
|
14806
15298
|
getContacts(params?: {
|
|
14807
|
-
contact_type?: "all" | "
|
|
15299
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
14808
15300
|
page?: number | undefined;
|
|
14809
15301
|
size?: number | undefined;
|
|
14810
15302
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -16021,6 +16513,7 @@ export declare class API {
|
|
|
16021
16513
|
country?: string | undefined;
|
|
16022
16514
|
}[] | undefined;
|
|
16023
16515
|
account_number?: string | undefined;
|
|
16516
|
+
company_number?: string | undefined;
|
|
16024
16517
|
id?: string | undefined;
|
|
16025
16518
|
}[]>;
|
|
16026
16519
|
createClient(client: {
|
|
@@ -16091,6 +16584,7 @@ export declare class API {
|
|
|
16091
16584
|
country?: string | undefined;
|
|
16092
16585
|
}[] | undefined;
|
|
16093
16586
|
account_number?: string | undefined;
|
|
16587
|
+
company_number?: string | undefined;
|
|
16094
16588
|
id?: string | undefined;
|
|
16095
16589
|
}>;
|
|
16096
16590
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -16126,6 +16620,7 @@ export declare class API {
|
|
|
16126
16620
|
country?: string | undefined;
|
|
16127
16621
|
}[] | undefined;
|
|
16128
16622
|
account_number?: string | undefined;
|
|
16623
|
+
company_number?: string | undefined;
|
|
16129
16624
|
id?: string | undefined;
|
|
16130
16625
|
}>;
|
|
16131
16626
|
updateClient(clientId: string, client: {
|
|
@@ -16193,6 +16688,7 @@ export declare class API {
|
|
|
16193
16688
|
country?: string | undefined;
|
|
16194
16689
|
}[] | undefined;
|
|
16195
16690
|
account_number?: string | undefined;
|
|
16691
|
+
company_number?: string | undefined;
|
|
16196
16692
|
id?: string | undefined;
|
|
16197
16693
|
}>;
|
|
16198
16694
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -16228,6 +16724,7 @@ export declare class API {
|
|
|
16228
16724
|
country?: string | undefined;
|
|
16229
16725
|
}[] | undefined;
|
|
16230
16726
|
account_number?: string | undefined;
|
|
16727
|
+
company_number?: string | undefined;
|
|
16231
16728
|
id?: string | undefined;
|
|
16232
16729
|
}[]>;
|
|
16233
16730
|
createSupplier(supplier: {
|
|
@@ -16298,6 +16795,7 @@ export declare class API {
|
|
|
16298
16795
|
country?: string | undefined;
|
|
16299
16796
|
}[] | undefined;
|
|
16300
16797
|
account_number?: string | undefined;
|
|
16798
|
+
company_number?: string | undefined;
|
|
16301
16799
|
id?: string | undefined;
|
|
16302
16800
|
}>;
|
|
16303
16801
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -16333,6 +16831,7 @@ export declare class API {
|
|
|
16333
16831
|
country?: string | undefined;
|
|
16334
16832
|
}[] | undefined;
|
|
16335
16833
|
account_number?: string | undefined;
|
|
16834
|
+
company_number?: string | undefined;
|
|
16336
16835
|
id?: string | undefined;
|
|
16337
16836
|
}>;
|
|
16338
16837
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -16400,6 +16899,7 @@ export declare class API {
|
|
|
16400
16899
|
country?: string | undefined;
|
|
16401
16900
|
}[] | undefined;
|
|
16402
16901
|
account_number?: string | undefined;
|
|
16902
|
+
company_number?: string | undefined;
|
|
16403
16903
|
id?: string | undefined;
|
|
16404
16904
|
}>;
|
|
16405
16905
|
createInvoice(invoice: {
|
|
@@ -16464,7 +16964,7 @@ export declare class API {
|
|
|
16464
16964
|
amount: number;
|
|
16465
16965
|
dedicated_amount?: number | undefined;
|
|
16466
16966
|
payment_date: string;
|
|
16467
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
16967
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
16468
16968
|
journal_id: string;
|
|
16469
16969
|
journal_name: string;
|
|
16470
16970
|
reconciled?: boolean | undefined;
|
|
@@ -16555,7 +17055,7 @@ export declare class API {
|
|
|
16555
17055
|
amount: number;
|
|
16556
17056
|
dedicated_amount?: number | undefined;
|
|
16557
17057
|
payment_date: string;
|
|
16558
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
17058
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
16559
17059
|
journal_id: string;
|
|
16560
17060
|
journal_name: string;
|
|
16561
17061
|
reconciled?: boolean | undefined;
|
|
@@ -16606,7 +17106,7 @@ export declare class API {
|
|
|
16606
17106
|
amount: number;
|
|
16607
17107
|
dedicated_amount?: number | undefined;
|
|
16608
17108
|
payment_date: string;
|
|
16609
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
17109
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
16610
17110
|
journal_id: string;
|
|
16611
17111
|
journal_name: string;
|
|
16612
17112
|
reconciled?: boolean | undefined;
|
|
@@ -16653,7 +17153,7 @@ export declare class API {
|
|
|
16653
17153
|
amount: number;
|
|
16654
17154
|
dedicated_amount?: number | undefined;
|
|
16655
17155
|
payment_date: string;
|
|
16656
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
17156
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
16657
17157
|
journal_id: string;
|
|
16658
17158
|
journal_name: string;
|
|
16659
17159
|
reconciled?: boolean | undefined;
|
|
@@ -16700,7 +17200,7 @@ export declare class API {
|
|
|
16700
17200
|
amount: number;
|
|
16701
17201
|
dedicated_amount?: number | undefined;
|
|
16702
17202
|
payment_date: string;
|
|
16703
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
17203
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
16704
17204
|
journal_id: string;
|
|
16705
17205
|
journal_name: string;
|
|
16706
17206
|
reconciled?: boolean | undefined;
|
|
@@ -16751,7 +17251,7 @@ export declare class API {
|
|
|
16751
17251
|
amount: number;
|
|
16752
17252
|
dedicated_amount?: number | undefined;
|
|
16753
17253
|
payment_date: string;
|
|
16754
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
17254
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
16755
17255
|
journal_id: string;
|
|
16756
17256
|
journal_name: string;
|
|
16757
17257
|
reconciled?: boolean | undefined;
|
|
@@ -16965,7 +17465,7 @@ export declare class API {
|
|
|
16965
17465
|
amount: number;
|
|
16966
17466
|
dedicated_amount?: number | undefined;
|
|
16967
17467
|
payment_date: string;
|
|
16968
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
17468
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
16969
17469
|
journal_id: string;
|
|
16970
17470
|
journal_name: string;
|
|
16971
17471
|
reconciled?: boolean | undefined;
|
|
@@ -16976,13 +17476,13 @@ export declare class API {
|
|
|
16976
17476
|
id: string;
|
|
16977
17477
|
code: string;
|
|
16978
17478
|
name: string;
|
|
16979
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
17479
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
16980
17480
|
}[]>;
|
|
16981
17481
|
getVatCodes(): import("../types/api").RequestData<{
|
|
16982
17482
|
id: string;
|
|
16983
17483
|
code?: string | undefined;
|
|
16984
17484
|
label: string;
|
|
16985
|
-
scope?: "
|
|
17485
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
16986
17486
|
rate: number;
|
|
16987
17487
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
16988
17488
|
}[]>;
|
|
@@ -17094,6 +17594,25 @@ export declare class API {
|
|
|
17094
17594
|
reference?: string | undefined;
|
|
17095
17595
|
account_number?: string | undefined;
|
|
17096
17596
|
}[]>;
|
|
17597
|
+
getOutstandings(params: {
|
|
17598
|
+
unposted_allowed: "true" | "false";
|
|
17599
|
+
type: "client" | "supplier";
|
|
17600
|
+
}): import("../types/api").RequestData<{
|
|
17601
|
+
id: string;
|
|
17602
|
+
number?: string | undefined;
|
|
17603
|
+
journal_id: string;
|
|
17604
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
17605
|
+
date: string;
|
|
17606
|
+
due_date?: string | undefined;
|
|
17607
|
+
currency: string;
|
|
17608
|
+
currency_exchange_rate: number;
|
|
17609
|
+
amount: number;
|
|
17610
|
+
open_amount: number;
|
|
17611
|
+
partner_id: string;
|
|
17612
|
+
account_number: string;
|
|
17613
|
+
reference?: string | undefined;
|
|
17614
|
+
posted: boolean;
|
|
17615
|
+
}[]>;
|
|
17097
17616
|
createFinancialEntry(financial_entry: {
|
|
17098
17617
|
date: string;
|
|
17099
17618
|
journal_id: string;
|
|
@@ -17109,7 +17628,9 @@ export declare class API {
|
|
|
17109
17628
|
}[];
|
|
17110
17629
|
number?: string | undefined;
|
|
17111
17630
|
pdf?: string | undefined;
|
|
17112
|
-
}
|
|
17631
|
+
}, params: {
|
|
17632
|
+
financial_counterpart_account?: string | undefined;
|
|
17633
|
+
} | undefined): import("../types/api").RequestData<{
|
|
17113
17634
|
date: string;
|
|
17114
17635
|
journal_id: string;
|
|
17115
17636
|
currency: string;
|
|
@@ -17126,6 +17647,59 @@ export declare class API {
|
|
|
17126
17647
|
id: string;
|
|
17127
17648
|
number: string;
|
|
17128
17649
|
}>;
|
|
17650
|
+
createJournalEntry(journal_entry: {
|
|
17651
|
+
reference?: string | undefined;
|
|
17652
|
+
due_date?: string | undefined;
|
|
17653
|
+
journal_id: string;
|
|
17654
|
+
name: string;
|
|
17655
|
+
date: string;
|
|
17656
|
+
items: {
|
|
17657
|
+
account_number: string;
|
|
17658
|
+
partner_id?: string | undefined;
|
|
17659
|
+
description?: string | undefined;
|
|
17660
|
+
debit: number;
|
|
17661
|
+
credit: number;
|
|
17662
|
+
currency: string;
|
|
17663
|
+
currency_exchange_rate?: number | undefined;
|
|
17664
|
+
analytic_distribution?: {
|
|
17665
|
+
analytic_plan: string;
|
|
17666
|
+
analytic_accounts: {
|
|
17667
|
+
analytic_account: string;
|
|
17668
|
+
percentage: number;
|
|
17669
|
+
}[];
|
|
17670
|
+
}[] | undefined;
|
|
17671
|
+
pdf?: string | undefined;
|
|
17672
|
+
}[];
|
|
17673
|
+
}): import("../types/api").RequestData<{
|
|
17674
|
+
reference?: string | undefined;
|
|
17675
|
+
due_date?: string | undefined;
|
|
17676
|
+
journal_id: string;
|
|
17677
|
+
name?: string | undefined;
|
|
17678
|
+
journal_name: string;
|
|
17679
|
+
date?: string | undefined;
|
|
17680
|
+
posted?: boolean | undefined;
|
|
17681
|
+
id: string;
|
|
17682
|
+
items?: {
|
|
17683
|
+
account_number: string;
|
|
17684
|
+
partner_id?: string | undefined;
|
|
17685
|
+
description?: string | undefined;
|
|
17686
|
+
debit: number;
|
|
17687
|
+
credit: number;
|
|
17688
|
+
currency: string;
|
|
17689
|
+
currency_exchange_rate?: number | undefined;
|
|
17690
|
+
id: string;
|
|
17691
|
+
partner_name?: string | undefined;
|
|
17692
|
+
account_name: string;
|
|
17693
|
+
matching_numbers?: string[] | undefined;
|
|
17694
|
+
analytic_distribution?: {
|
|
17695
|
+
analytic_plan: string;
|
|
17696
|
+
analytic_accounts: {
|
|
17697
|
+
analytic_account: string;
|
|
17698
|
+
percentage: number;
|
|
17699
|
+
}[];
|
|
17700
|
+
}[] | undefined;
|
|
17701
|
+
}[] | undefined;
|
|
17702
|
+
}>;
|
|
17129
17703
|
}>;
|
|
17130
17704
|
invoicing: import("../types/api").ApiFor<{
|
|
17131
17705
|
getInvoices(params: {
|
|
@@ -17354,7 +17928,7 @@ export declare class API {
|
|
|
17354
17928
|
rate: number;
|
|
17355
17929
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
17356
17930
|
code?: string | undefined;
|
|
17357
|
-
scope?: "
|
|
17931
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
17358
17932
|
}[]>;
|
|
17359
17933
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
17360
17934
|
id: string;
|
|
@@ -17366,7 +17940,7 @@ export declare class API {
|
|
|
17366
17940
|
rate: number;
|
|
17367
17941
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
17368
17942
|
code?: string | undefined;
|
|
17369
|
-
scope?: "
|
|
17943
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
17370
17944
|
}>;
|
|
17371
17945
|
getOpportunities(): import("../types/api").RequestData<{
|
|
17372
17946
|
id: string;
|
|
@@ -17421,7 +17995,7 @@ export declare class API {
|
|
|
17421
17995
|
} | undefined;
|
|
17422
17996
|
}>;
|
|
17423
17997
|
getContacts(params?: {
|
|
17424
|
-
contact_type?: "all" | "
|
|
17998
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
17425
17999
|
page?: number | undefined;
|
|
17426
18000
|
size?: number | undefined;
|
|
17427
18001
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -18642,6 +19216,7 @@ export declare class API {
|
|
|
18642
19216
|
country?: string | undefined;
|
|
18643
19217
|
}[] | undefined;
|
|
18644
19218
|
account_number?: string | undefined;
|
|
19219
|
+
company_number?: string | undefined;
|
|
18645
19220
|
id?: string | undefined;
|
|
18646
19221
|
}[]>;
|
|
18647
19222
|
createClient(client: {
|
|
@@ -18712,6 +19287,7 @@ export declare class API {
|
|
|
18712
19287
|
country?: string | undefined;
|
|
18713
19288
|
}[] | undefined;
|
|
18714
19289
|
account_number?: string | undefined;
|
|
19290
|
+
company_number?: string | undefined;
|
|
18715
19291
|
id?: string | undefined;
|
|
18716
19292
|
}>;
|
|
18717
19293
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -18747,6 +19323,7 @@ export declare class API {
|
|
|
18747
19323
|
country?: string | undefined;
|
|
18748
19324
|
}[] | undefined;
|
|
18749
19325
|
account_number?: string | undefined;
|
|
19326
|
+
company_number?: string | undefined;
|
|
18750
19327
|
id?: string | undefined;
|
|
18751
19328
|
}>;
|
|
18752
19329
|
updateClient(clientId: string, client: {
|
|
@@ -18814,6 +19391,7 @@ export declare class API {
|
|
|
18814
19391
|
country?: string | undefined;
|
|
18815
19392
|
}[] | undefined;
|
|
18816
19393
|
account_number?: string | undefined;
|
|
19394
|
+
company_number?: string | undefined;
|
|
18817
19395
|
id?: string | undefined;
|
|
18818
19396
|
}>;
|
|
18819
19397
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -18849,6 +19427,7 @@ export declare class API {
|
|
|
18849
19427
|
country?: string | undefined;
|
|
18850
19428
|
}[] | undefined;
|
|
18851
19429
|
account_number?: string | undefined;
|
|
19430
|
+
company_number?: string | undefined;
|
|
18852
19431
|
id?: string | undefined;
|
|
18853
19432
|
}[]>;
|
|
18854
19433
|
createSupplier(supplier: {
|
|
@@ -18919,6 +19498,7 @@ export declare class API {
|
|
|
18919
19498
|
country?: string | undefined;
|
|
18920
19499
|
}[] | undefined;
|
|
18921
19500
|
account_number?: string | undefined;
|
|
19501
|
+
company_number?: string | undefined;
|
|
18922
19502
|
id?: string | undefined;
|
|
18923
19503
|
}>;
|
|
18924
19504
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -18954,6 +19534,7 @@ export declare class API {
|
|
|
18954
19534
|
country?: string | undefined;
|
|
18955
19535
|
}[] | undefined;
|
|
18956
19536
|
account_number?: string | undefined;
|
|
19537
|
+
company_number?: string | undefined;
|
|
18957
19538
|
id?: string | undefined;
|
|
18958
19539
|
}>;
|
|
18959
19540
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -19021,6 +19602,7 @@ export declare class API {
|
|
|
19021
19602
|
country?: string | undefined;
|
|
19022
19603
|
}[] | undefined;
|
|
19023
19604
|
account_number?: string | undefined;
|
|
19605
|
+
company_number?: string | undefined;
|
|
19024
19606
|
id?: string | undefined;
|
|
19025
19607
|
}>;
|
|
19026
19608
|
createInvoice(invoice: {
|
|
@@ -19085,7 +19667,7 @@ export declare class API {
|
|
|
19085
19667
|
amount: number;
|
|
19086
19668
|
dedicated_amount?: number | undefined;
|
|
19087
19669
|
payment_date: string;
|
|
19088
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
19670
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
19089
19671
|
journal_id: string;
|
|
19090
19672
|
journal_name: string;
|
|
19091
19673
|
reconciled?: boolean | undefined;
|
|
@@ -19176,7 +19758,7 @@ export declare class API {
|
|
|
19176
19758
|
amount: number;
|
|
19177
19759
|
dedicated_amount?: number | undefined;
|
|
19178
19760
|
payment_date: string;
|
|
19179
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
19761
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
19180
19762
|
journal_id: string;
|
|
19181
19763
|
journal_name: string;
|
|
19182
19764
|
reconciled?: boolean | undefined;
|
|
@@ -19227,7 +19809,7 @@ export declare class API {
|
|
|
19227
19809
|
amount: number;
|
|
19228
19810
|
dedicated_amount?: number | undefined;
|
|
19229
19811
|
payment_date: string;
|
|
19230
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
19812
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
19231
19813
|
journal_id: string;
|
|
19232
19814
|
journal_name: string;
|
|
19233
19815
|
reconciled?: boolean | undefined;
|
|
@@ -19274,7 +19856,7 @@ export declare class API {
|
|
|
19274
19856
|
amount: number;
|
|
19275
19857
|
dedicated_amount?: number | undefined;
|
|
19276
19858
|
payment_date: string;
|
|
19277
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
19859
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
19278
19860
|
journal_id: string;
|
|
19279
19861
|
journal_name: string;
|
|
19280
19862
|
reconciled?: boolean | undefined;
|
|
@@ -19321,7 +19903,7 @@ export declare class API {
|
|
|
19321
19903
|
amount: number;
|
|
19322
19904
|
dedicated_amount?: number | undefined;
|
|
19323
19905
|
payment_date: string;
|
|
19324
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
19906
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
19325
19907
|
journal_id: string;
|
|
19326
19908
|
journal_name: string;
|
|
19327
19909
|
reconciled?: boolean | undefined;
|
|
@@ -19372,7 +19954,7 @@ export declare class API {
|
|
|
19372
19954
|
amount: number;
|
|
19373
19955
|
dedicated_amount?: number | undefined;
|
|
19374
19956
|
payment_date: string;
|
|
19375
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
19957
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
19376
19958
|
journal_id: string;
|
|
19377
19959
|
journal_name: string;
|
|
19378
19960
|
reconciled?: boolean | undefined;
|
|
@@ -19586,7 +20168,7 @@ export declare class API {
|
|
|
19586
20168
|
amount: number;
|
|
19587
20169
|
dedicated_amount?: number | undefined;
|
|
19588
20170
|
payment_date: string;
|
|
19589
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
20171
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
19590
20172
|
journal_id: string;
|
|
19591
20173
|
journal_name: string;
|
|
19592
20174
|
reconciled?: boolean | undefined;
|
|
@@ -19597,13 +20179,13 @@ export declare class API {
|
|
|
19597
20179
|
id: string;
|
|
19598
20180
|
code: string;
|
|
19599
20181
|
name: string;
|
|
19600
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
20182
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
19601
20183
|
}[]>;
|
|
19602
20184
|
getVatCodes(): import("../types/api").RequestData<{
|
|
19603
20185
|
id: string;
|
|
19604
20186
|
code?: string | undefined;
|
|
19605
20187
|
label: string;
|
|
19606
|
-
scope?: "
|
|
20188
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
19607
20189
|
rate: number;
|
|
19608
20190
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
19609
20191
|
}[]>;
|
|
@@ -19715,6 +20297,25 @@ export declare class API {
|
|
|
19715
20297
|
reference?: string | undefined;
|
|
19716
20298
|
account_number?: string | undefined;
|
|
19717
20299
|
}[]>;
|
|
20300
|
+
getOutstandings(params: {
|
|
20301
|
+
unposted_allowed: "true" | "false";
|
|
20302
|
+
type: "client" | "supplier";
|
|
20303
|
+
}): import("../types/api").RequestData<{
|
|
20304
|
+
id: string;
|
|
20305
|
+
number?: string | undefined;
|
|
20306
|
+
journal_id: string;
|
|
20307
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
20308
|
+
date: string;
|
|
20309
|
+
due_date?: string | undefined;
|
|
20310
|
+
currency: string;
|
|
20311
|
+
currency_exchange_rate: number;
|
|
20312
|
+
amount: number;
|
|
20313
|
+
open_amount: number;
|
|
20314
|
+
partner_id: string;
|
|
20315
|
+
account_number: string;
|
|
20316
|
+
reference?: string | undefined;
|
|
20317
|
+
posted: boolean;
|
|
20318
|
+
}[]>;
|
|
19718
20319
|
createFinancialEntry(financial_entry: {
|
|
19719
20320
|
date: string;
|
|
19720
20321
|
journal_id: string;
|
|
@@ -19730,7 +20331,9 @@ export declare class API {
|
|
|
19730
20331
|
}[];
|
|
19731
20332
|
number?: string | undefined;
|
|
19732
20333
|
pdf?: string | undefined;
|
|
19733
|
-
}
|
|
20334
|
+
}, params: {
|
|
20335
|
+
financial_counterpart_account?: string | undefined;
|
|
20336
|
+
} | undefined): import("../types/api").RequestData<{
|
|
19734
20337
|
date: string;
|
|
19735
20338
|
journal_id: string;
|
|
19736
20339
|
currency: string;
|
|
@@ -19747,6 +20350,59 @@ export declare class API {
|
|
|
19747
20350
|
id: string;
|
|
19748
20351
|
number: string;
|
|
19749
20352
|
}>;
|
|
20353
|
+
createJournalEntry(journal_entry: {
|
|
20354
|
+
reference?: string | undefined;
|
|
20355
|
+
due_date?: string | undefined;
|
|
20356
|
+
journal_id: string;
|
|
20357
|
+
name: string;
|
|
20358
|
+
date: string;
|
|
20359
|
+
items: {
|
|
20360
|
+
account_number: string;
|
|
20361
|
+
partner_id?: string | undefined;
|
|
20362
|
+
description?: string | undefined;
|
|
20363
|
+
debit: number;
|
|
20364
|
+
credit: number;
|
|
20365
|
+
currency: string;
|
|
20366
|
+
currency_exchange_rate?: number | undefined;
|
|
20367
|
+
analytic_distribution?: {
|
|
20368
|
+
analytic_plan: string;
|
|
20369
|
+
analytic_accounts: {
|
|
20370
|
+
analytic_account: string;
|
|
20371
|
+
percentage: number;
|
|
20372
|
+
}[];
|
|
20373
|
+
}[] | undefined;
|
|
20374
|
+
pdf?: string | undefined;
|
|
20375
|
+
}[];
|
|
20376
|
+
}): import("../types/api").RequestData<{
|
|
20377
|
+
reference?: string | undefined;
|
|
20378
|
+
due_date?: string | undefined;
|
|
20379
|
+
journal_id: string;
|
|
20380
|
+
name?: string | undefined;
|
|
20381
|
+
journal_name: string;
|
|
20382
|
+
date?: string | undefined;
|
|
20383
|
+
posted?: boolean | undefined;
|
|
20384
|
+
id: string;
|
|
20385
|
+
items?: {
|
|
20386
|
+
account_number: string;
|
|
20387
|
+
partner_id?: string | undefined;
|
|
20388
|
+
description?: string | undefined;
|
|
20389
|
+
debit: number;
|
|
20390
|
+
credit: number;
|
|
20391
|
+
currency: string;
|
|
20392
|
+
currency_exchange_rate?: number | undefined;
|
|
20393
|
+
id: string;
|
|
20394
|
+
partner_name?: string | undefined;
|
|
20395
|
+
account_name: string;
|
|
20396
|
+
matching_numbers?: string[] | undefined;
|
|
20397
|
+
analytic_distribution?: {
|
|
20398
|
+
analytic_plan: string;
|
|
20399
|
+
analytic_accounts: {
|
|
20400
|
+
analytic_account: string;
|
|
20401
|
+
percentage: number;
|
|
20402
|
+
}[];
|
|
20403
|
+
}[] | undefined;
|
|
20404
|
+
}[] | undefined;
|
|
20405
|
+
}>;
|
|
19750
20406
|
}>;
|
|
19751
20407
|
invoicing: import("../types/api").ApiFor<{
|
|
19752
20408
|
getInvoices(params: {
|
|
@@ -19975,7 +20631,7 @@ export declare class API {
|
|
|
19975
20631
|
rate: number;
|
|
19976
20632
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
19977
20633
|
code?: string | undefined;
|
|
19978
|
-
scope?: "
|
|
20634
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
19979
20635
|
}[]>;
|
|
19980
20636
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
19981
20637
|
id: string;
|
|
@@ -19987,7 +20643,7 @@ export declare class API {
|
|
|
19987
20643
|
rate: number;
|
|
19988
20644
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
19989
20645
|
code?: string | undefined;
|
|
19990
|
-
scope?: "
|
|
20646
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
19991
20647
|
}>;
|
|
19992
20648
|
getOpportunities(): import("../types/api").RequestData<{
|
|
19993
20649
|
id: string;
|
|
@@ -20042,7 +20698,7 @@ export declare class API {
|
|
|
20042
20698
|
} | undefined;
|
|
20043
20699
|
}>;
|
|
20044
20700
|
getContacts(params?: {
|
|
20045
|
-
contact_type?: "all" | "
|
|
20701
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
20046
20702
|
page?: number | undefined;
|
|
20047
20703
|
size?: number | undefined;
|
|
20048
20704
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -21263,6 +21919,7 @@ export declare class API {
|
|
|
21263
21919
|
country?: string | undefined;
|
|
21264
21920
|
}[] | undefined;
|
|
21265
21921
|
account_number?: string | undefined;
|
|
21922
|
+
company_number?: string | undefined;
|
|
21266
21923
|
id?: string | undefined;
|
|
21267
21924
|
}[]>;
|
|
21268
21925
|
createClient(client: {
|
|
@@ -21333,6 +21990,7 @@ export declare class API {
|
|
|
21333
21990
|
country?: string | undefined;
|
|
21334
21991
|
}[] | undefined;
|
|
21335
21992
|
account_number?: string | undefined;
|
|
21993
|
+
company_number?: string | undefined;
|
|
21336
21994
|
id?: string | undefined;
|
|
21337
21995
|
}>;
|
|
21338
21996
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -21368,6 +22026,7 @@ export declare class API {
|
|
|
21368
22026
|
country?: string | undefined;
|
|
21369
22027
|
}[] | undefined;
|
|
21370
22028
|
account_number?: string | undefined;
|
|
22029
|
+
company_number?: string | undefined;
|
|
21371
22030
|
id?: string | undefined;
|
|
21372
22031
|
}>;
|
|
21373
22032
|
updateClient(clientId: string, client: {
|
|
@@ -21435,6 +22094,7 @@ export declare class API {
|
|
|
21435
22094
|
country?: string | undefined;
|
|
21436
22095
|
}[] | undefined;
|
|
21437
22096
|
account_number?: string | undefined;
|
|
22097
|
+
company_number?: string | undefined;
|
|
21438
22098
|
id?: string | undefined;
|
|
21439
22099
|
}>;
|
|
21440
22100
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -21470,6 +22130,7 @@ export declare class API {
|
|
|
21470
22130
|
country?: string | undefined;
|
|
21471
22131
|
}[] | undefined;
|
|
21472
22132
|
account_number?: string | undefined;
|
|
22133
|
+
company_number?: string | undefined;
|
|
21473
22134
|
id?: string | undefined;
|
|
21474
22135
|
}[]>;
|
|
21475
22136
|
createSupplier(supplier: {
|
|
@@ -21540,6 +22201,7 @@ export declare class API {
|
|
|
21540
22201
|
country?: string | undefined;
|
|
21541
22202
|
}[] | undefined;
|
|
21542
22203
|
account_number?: string | undefined;
|
|
22204
|
+
company_number?: string | undefined;
|
|
21543
22205
|
id?: string | undefined;
|
|
21544
22206
|
}>;
|
|
21545
22207
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -21575,6 +22237,7 @@ export declare class API {
|
|
|
21575
22237
|
country?: string | undefined;
|
|
21576
22238
|
}[] | undefined;
|
|
21577
22239
|
account_number?: string | undefined;
|
|
22240
|
+
company_number?: string | undefined;
|
|
21578
22241
|
id?: string | undefined;
|
|
21579
22242
|
}>;
|
|
21580
22243
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -21642,6 +22305,7 @@ export declare class API {
|
|
|
21642
22305
|
country?: string | undefined;
|
|
21643
22306
|
}[] | undefined;
|
|
21644
22307
|
account_number?: string | undefined;
|
|
22308
|
+
company_number?: string | undefined;
|
|
21645
22309
|
id?: string | undefined;
|
|
21646
22310
|
}>;
|
|
21647
22311
|
createInvoice(invoice: {
|
|
@@ -21706,7 +22370,7 @@ export declare class API {
|
|
|
21706
22370
|
amount: number;
|
|
21707
22371
|
dedicated_amount?: number | undefined;
|
|
21708
22372
|
payment_date: string;
|
|
21709
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
22373
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
21710
22374
|
journal_id: string;
|
|
21711
22375
|
journal_name: string;
|
|
21712
22376
|
reconciled?: boolean | undefined;
|
|
@@ -21797,7 +22461,7 @@ export declare class API {
|
|
|
21797
22461
|
amount: number;
|
|
21798
22462
|
dedicated_amount?: number | undefined;
|
|
21799
22463
|
payment_date: string;
|
|
21800
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
22464
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
21801
22465
|
journal_id: string;
|
|
21802
22466
|
journal_name: string;
|
|
21803
22467
|
reconciled?: boolean | undefined;
|
|
@@ -21848,7 +22512,7 @@ export declare class API {
|
|
|
21848
22512
|
amount: number;
|
|
21849
22513
|
dedicated_amount?: number | undefined;
|
|
21850
22514
|
payment_date: string;
|
|
21851
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
22515
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
21852
22516
|
journal_id: string;
|
|
21853
22517
|
journal_name: string;
|
|
21854
22518
|
reconciled?: boolean | undefined;
|
|
@@ -21895,7 +22559,7 @@ export declare class API {
|
|
|
21895
22559
|
amount: number;
|
|
21896
22560
|
dedicated_amount?: number | undefined;
|
|
21897
22561
|
payment_date: string;
|
|
21898
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
22562
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
21899
22563
|
journal_id: string;
|
|
21900
22564
|
journal_name: string;
|
|
21901
22565
|
reconciled?: boolean | undefined;
|
|
@@ -21942,7 +22606,7 @@ export declare class API {
|
|
|
21942
22606
|
amount: number;
|
|
21943
22607
|
dedicated_amount?: number | undefined;
|
|
21944
22608
|
payment_date: string;
|
|
21945
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
22609
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
21946
22610
|
journal_id: string;
|
|
21947
22611
|
journal_name: string;
|
|
21948
22612
|
reconciled?: boolean | undefined;
|
|
@@ -21993,7 +22657,7 @@ export declare class API {
|
|
|
21993
22657
|
amount: number;
|
|
21994
22658
|
dedicated_amount?: number | undefined;
|
|
21995
22659
|
payment_date: string;
|
|
21996
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
22660
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
21997
22661
|
journal_id: string;
|
|
21998
22662
|
journal_name: string;
|
|
21999
22663
|
reconciled?: boolean | undefined;
|
|
@@ -22207,7 +22871,7 @@ export declare class API {
|
|
|
22207
22871
|
amount: number;
|
|
22208
22872
|
dedicated_amount?: number | undefined;
|
|
22209
22873
|
payment_date: string;
|
|
22210
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
22874
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
22211
22875
|
journal_id: string;
|
|
22212
22876
|
journal_name: string;
|
|
22213
22877
|
reconciled?: boolean | undefined;
|
|
@@ -22218,13 +22882,13 @@ export declare class API {
|
|
|
22218
22882
|
id: string;
|
|
22219
22883
|
code: string;
|
|
22220
22884
|
name: string;
|
|
22221
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
22885
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
22222
22886
|
}[]>;
|
|
22223
22887
|
getVatCodes(): import("../types/api").RequestData<{
|
|
22224
22888
|
id: string;
|
|
22225
22889
|
code?: string | undefined;
|
|
22226
22890
|
label: string;
|
|
22227
|
-
scope?: "
|
|
22891
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
22228
22892
|
rate: number;
|
|
22229
22893
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
22230
22894
|
}[]>;
|
|
@@ -22336,6 +23000,25 @@ export declare class API {
|
|
|
22336
23000
|
reference?: string | undefined;
|
|
22337
23001
|
account_number?: string | undefined;
|
|
22338
23002
|
}[]>;
|
|
23003
|
+
getOutstandings(params: {
|
|
23004
|
+
unposted_allowed: "true" | "false";
|
|
23005
|
+
type: "client" | "supplier";
|
|
23006
|
+
}): import("../types/api").RequestData<{
|
|
23007
|
+
id: string;
|
|
23008
|
+
number?: string | undefined;
|
|
23009
|
+
journal_id: string;
|
|
23010
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
23011
|
+
date: string;
|
|
23012
|
+
due_date?: string | undefined;
|
|
23013
|
+
currency: string;
|
|
23014
|
+
currency_exchange_rate: number;
|
|
23015
|
+
amount: number;
|
|
23016
|
+
open_amount: number;
|
|
23017
|
+
partner_id: string;
|
|
23018
|
+
account_number: string;
|
|
23019
|
+
reference?: string | undefined;
|
|
23020
|
+
posted: boolean;
|
|
23021
|
+
}[]>;
|
|
22339
23022
|
createFinancialEntry(financial_entry: {
|
|
22340
23023
|
date: string;
|
|
22341
23024
|
journal_id: string;
|
|
@@ -22351,7 +23034,9 @@ export declare class API {
|
|
|
22351
23034
|
}[];
|
|
22352
23035
|
number?: string | undefined;
|
|
22353
23036
|
pdf?: string | undefined;
|
|
22354
|
-
}
|
|
23037
|
+
}, params: {
|
|
23038
|
+
financial_counterpart_account?: string | undefined;
|
|
23039
|
+
} | undefined): import("../types/api").RequestData<{
|
|
22355
23040
|
date: string;
|
|
22356
23041
|
journal_id: string;
|
|
22357
23042
|
currency: string;
|
|
@@ -22368,6 +23053,59 @@ export declare class API {
|
|
|
22368
23053
|
id: string;
|
|
22369
23054
|
number: string;
|
|
22370
23055
|
}>;
|
|
23056
|
+
createJournalEntry(journal_entry: {
|
|
23057
|
+
reference?: string | undefined;
|
|
23058
|
+
due_date?: string | undefined;
|
|
23059
|
+
journal_id: string;
|
|
23060
|
+
name: string;
|
|
23061
|
+
date: string;
|
|
23062
|
+
items: {
|
|
23063
|
+
account_number: string;
|
|
23064
|
+
partner_id?: string | undefined;
|
|
23065
|
+
description?: string | undefined;
|
|
23066
|
+
debit: number;
|
|
23067
|
+
credit: number;
|
|
23068
|
+
currency: string;
|
|
23069
|
+
currency_exchange_rate?: number | undefined;
|
|
23070
|
+
analytic_distribution?: {
|
|
23071
|
+
analytic_plan: string;
|
|
23072
|
+
analytic_accounts: {
|
|
23073
|
+
analytic_account: string;
|
|
23074
|
+
percentage: number;
|
|
23075
|
+
}[];
|
|
23076
|
+
}[] | undefined;
|
|
23077
|
+
pdf?: string | undefined;
|
|
23078
|
+
}[];
|
|
23079
|
+
}): import("../types/api").RequestData<{
|
|
23080
|
+
reference?: string | undefined;
|
|
23081
|
+
due_date?: string | undefined;
|
|
23082
|
+
journal_id: string;
|
|
23083
|
+
name?: string | undefined;
|
|
23084
|
+
journal_name: string;
|
|
23085
|
+
date?: string | undefined;
|
|
23086
|
+
posted?: boolean | undefined;
|
|
23087
|
+
id: string;
|
|
23088
|
+
items?: {
|
|
23089
|
+
account_number: string;
|
|
23090
|
+
partner_id?: string | undefined;
|
|
23091
|
+
description?: string | undefined;
|
|
23092
|
+
debit: number;
|
|
23093
|
+
credit: number;
|
|
23094
|
+
currency: string;
|
|
23095
|
+
currency_exchange_rate?: number | undefined;
|
|
23096
|
+
id: string;
|
|
23097
|
+
partner_name?: string | undefined;
|
|
23098
|
+
account_name: string;
|
|
23099
|
+
matching_numbers?: string[] | undefined;
|
|
23100
|
+
analytic_distribution?: {
|
|
23101
|
+
analytic_plan: string;
|
|
23102
|
+
analytic_accounts: {
|
|
23103
|
+
analytic_account: string;
|
|
23104
|
+
percentage: number;
|
|
23105
|
+
}[];
|
|
23106
|
+
}[] | undefined;
|
|
23107
|
+
}[] | undefined;
|
|
23108
|
+
}>;
|
|
22371
23109
|
}>;
|
|
22372
23110
|
invoicing: import("../types/api").ApiFor<{
|
|
22373
23111
|
getInvoices(params: {
|
|
@@ -22596,7 +23334,7 @@ export declare class API {
|
|
|
22596
23334
|
rate: number;
|
|
22597
23335
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
22598
23336
|
code?: string | undefined;
|
|
22599
|
-
scope?: "
|
|
23337
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
22600
23338
|
}[]>;
|
|
22601
23339
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
22602
23340
|
id: string;
|
|
@@ -22608,7 +23346,7 @@ export declare class API {
|
|
|
22608
23346
|
rate: number;
|
|
22609
23347
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
22610
23348
|
code?: string | undefined;
|
|
22611
|
-
scope?: "
|
|
23349
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
22612
23350
|
}>;
|
|
22613
23351
|
getOpportunities(): import("../types/api").RequestData<{
|
|
22614
23352
|
id: string;
|
|
@@ -22663,7 +23401,7 @@ export declare class API {
|
|
|
22663
23401
|
} | undefined;
|
|
22664
23402
|
}>;
|
|
22665
23403
|
getContacts(params?: {
|
|
22666
|
-
contact_type?: "all" | "
|
|
23404
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
22667
23405
|
page?: number | undefined;
|
|
22668
23406
|
size?: number | undefined;
|
|
22669
23407
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -23884,6 +24622,7 @@ export declare class API {
|
|
|
23884
24622
|
country?: string | undefined;
|
|
23885
24623
|
}[] | undefined;
|
|
23886
24624
|
account_number?: string | undefined;
|
|
24625
|
+
company_number?: string | undefined;
|
|
23887
24626
|
id?: string | undefined;
|
|
23888
24627
|
}[]>;
|
|
23889
24628
|
createClient(client: {
|
|
@@ -23954,6 +24693,7 @@ export declare class API {
|
|
|
23954
24693
|
country?: string | undefined;
|
|
23955
24694
|
}[] | undefined;
|
|
23956
24695
|
account_number?: string | undefined;
|
|
24696
|
+
company_number?: string | undefined;
|
|
23957
24697
|
id?: string | undefined;
|
|
23958
24698
|
}>;
|
|
23959
24699
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -23989,6 +24729,7 @@ export declare class API {
|
|
|
23989
24729
|
country?: string | undefined;
|
|
23990
24730
|
}[] | undefined;
|
|
23991
24731
|
account_number?: string | undefined;
|
|
24732
|
+
company_number?: string | undefined;
|
|
23992
24733
|
id?: string | undefined;
|
|
23993
24734
|
}>;
|
|
23994
24735
|
updateClient(clientId: string, client: {
|
|
@@ -24056,6 +24797,7 @@ export declare class API {
|
|
|
24056
24797
|
country?: string | undefined;
|
|
24057
24798
|
}[] | undefined;
|
|
24058
24799
|
account_number?: string | undefined;
|
|
24800
|
+
company_number?: string | undefined;
|
|
24059
24801
|
id?: string | undefined;
|
|
24060
24802
|
}>;
|
|
24061
24803
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -24091,6 +24833,7 @@ export declare class API {
|
|
|
24091
24833
|
country?: string | undefined;
|
|
24092
24834
|
}[] | undefined;
|
|
24093
24835
|
account_number?: string | undefined;
|
|
24836
|
+
company_number?: string | undefined;
|
|
24094
24837
|
id?: string | undefined;
|
|
24095
24838
|
}[]>;
|
|
24096
24839
|
createSupplier(supplier: {
|
|
@@ -24161,6 +24904,7 @@ export declare class API {
|
|
|
24161
24904
|
country?: string | undefined;
|
|
24162
24905
|
}[] | undefined;
|
|
24163
24906
|
account_number?: string | undefined;
|
|
24907
|
+
company_number?: string | undefined;
|
|
24164
24908
|
id?: string | undefined;
|
|
24165
24909
|
}>;
|
|
24166
24910
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -24196,6 +24940,7 @@ export declare class API {
|
|
|
24196
24940
|
country?: string | undefined;
|
|
24197
24941
|
}[] | undefined;
|
|
24198
24942
|
account_number?: string | undefined;
|
|
24943
|
+
company_number?: string | undefined;
|
|
24199
24944
|
id?: string | undefined;
|
|
24200
24945
|
}>;
|
|
24201
24946
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -24263,6 +25008,7 @@ export declare class API {
|
|
|
24263
25008
|
country?: string | undefined;
|
|
24264
25009
|
}[] | undefined;
|
|
24265
25010
|
account_number?: string | undefined;
|
|
25011
|
+
company_number?: string | undefined;
|
|
24266
25012
|
id?: string | undefined;
|
|
24267
25013
|
}>;
|
|
24268
25014
|
createInvoice(invoice: {
|
|
@@ -24327,7 +25073,7 @@ export declare class API {
|
|
|
24327
25073
|
amount: number;
|
|
24328
25074
|
dedicated_amount?: number | undefined;
|
|
24329
25075
|
payment_date: string;
|
|
24330
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
25076
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
24331
25077
|
journal_id: string;
|
|
24332
25078
|
journal_name: string;
|
|
24333
25079
|
reconciled?: boolean | undefined;
|
|
@@ -24418,7 +25164,7 @@ export declare class API {
|
|
|
24418
25164
|
amount: number;
|
|
24419
25165
|
dedicated_amount?: number | undefined;
|
|
24420
25166
|
payment_date: string;
|
|
24421
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
25167
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
24422
25168
|
journal_id: string;
|
|
24423
25169
|
journal_name: string;
|
|
24424
25170
|
reconciled?: boolean | undefined;
|
|
@@ -24469,7 +25215,7 @@ export declare class API {
|
|
|
24469
25215
|
amount: number;
|
|
24470
25216
|
dedicated_amount?: number | undefined;
|
|
24471
25217
|
payment_date: string;
|
|
24472
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
25218
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
24473
25219
|
journal_id: string;
|
|
24474
25220
|
journal_name: string;
|
|
24475
25221
|
reconciled?: boolean | undefined;
|
|
@@ -24516,7 +25262,7 @@ export declare class API {
|
|
|
24516
25262
|
amount: number;
|
|
24517
25263
|
dedicated_amount?: number | undefined;
|
|
24518
25264
|
payment_date: string;
|
|
24519
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
25265
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
24520
25266
|
journal_id: string;
|
|
24521
25267
|
journal_name: string;
|
|
24522
25268
|
reconciled?: boolean | undefined;
|
|
@@ -24563,7 +25309,7 @@ export declare class API {
|
|
|
24563
25309
|
amount: number;
|
|
24564
25310
|
dedicated_amount?: number | undefined;
|
|
24565
25311
|
payment_date: string;
|
|
24566
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
25312
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
24567
25313
|
journal_id: string;
|
|
24568
25314
|
journal_name: string;
|
|
24569
25315
|
reconciled?: boolean | undefined;
|
|
@@ -24614,7 +25360,7 @@ export declare class API {
|
|
|
24614
25360
|
amount: number;
|
|
24615
25361
|
dedicated_amount?: number | undefined;
|
|
24616
25362
|
payment_date: string;
|
|
24617
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
25363
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
24618
25364
|
journal_id: string;
|
|
24619
25365
|
journal_name: string;
|
|
24620
25366
|
reconciled?: boolean | undefined;
|
|
@@ -24828,7 +25574,7 @@ export declare class API {
|
|
|
24828
25574
|
amount: number;
|
|
24829
25575
|
dedicated_amount?: number | undefined;
|
|
24830
25576
|
payment_date: string;
|
|
24831
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
25577
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
24832
25578
|
journal_id: string;
|
|
24833
25579
|
journal_name: string;
|
|
24834
25580
|
reconciled?: boolean | undefined;
|
|
@@ -24839,13 +25585,13 @@ export declare class API {
|
|
|
24839
25585
|
id: string;
|
|
24840
25586
|
code: string;
|
|
24841
25587
|
name: string;
|
|
24842
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
25588
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
24843
25589
|
}[]>;
|
|
24844
25590
|
getVatCodes(): import("../types/api").RequestData<{
|
|
24845
25591
|
id: string;
|
|
24846
25592
|
code?: string | undefined;
|
|
24847
25593
|
label: string;
|
|
24848
|
-
scope?: "
|
|
25594
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
24849
25595
|
rate: number;
|
|
24850
25596
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
24851
25597
|
}[]>;
|
|
@@ -24957,6 +25703,25 @@ export declare class API {
|
|
|
24957
25703
|
reference?: string | undefined;
|
|
24958
25704
|
account_number?: string | undefined;
|
|
24959
25705
|
}[]>;
|
|
25706
|
+
getOutstandings(params: {
|
|
25707
|
+
unposted_allowed: "true" | "false";
|
|
25708
|
+
type: "client" | "supplier";
|
|
25709
|
+
}): import("../types/api").RequestData<{
|
|
25710
|
+
id: string;
|
|
25711
|
+
number?: string | undefined;
|
|
25712
|
+
journal_id: string;
|
|
25713
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
25714
|
+
date: string;
|
|
25715
|
+
due_date?: string | undefined;
|
|
25716
|
+
currency: string;
|
|
25717
|
+
currency_exchange_rate: number;
|
|
25718
|
+
amount: number;
|
|
25719
|
+
open_amount: number;
|
|
25720
|
+
partner_id: string;
|
|
25721
|
+
account_number: string;
|
|
25722
|
+
reference?: string | undefined;
|
|
25723
|
+
posted: boolean;
|
|
25724
|
+
}[]>;
|
|
24960
25725
|
createFinancialEntry(financial_entry: {
|
|
24961
25726
|
date: string;
|
|
24962
25727
|
journal_id: string;
|
|
@@ -24972,7 +25737,9 @@ export declare class API {
|
|
|
24972
25737
|
}[];
|
|
24973
25738
|
number?: string | undefined;
|
|
24974
25739
|
pdf?: string | undefined;
|
|
24975
|
-
}
|
|
25740
|
+
}, params: {
|
|
25741
|
+
financial_counterpart_account?: string | undefined;
|
|
25742
|
+
} | undefined): import("../types/api").RequestData<{
|
|
24976
25743
|
date: string;
|
|
24977
25744
|
journal_id: string;
|
|
24978
25745
|
currency: string;
|
|
@@ -24989,6 +25756,59 @@ export declare class API {
|
|
|
24989
25756
|
id: string;
|
|
24990
25757
|
number: string;
|
|
24991
25758
|
}>;
|
|
25759
|
+
createJournalEntry(journal_entry: {
|
|
25760
|
+
reference?: string | undefined;
|
|
25761
|
+
due_date?: string | undefined;
|
|
25762
|
+
journal_id: string;
|
|
25763
|
+
name: string;
|
|
25764
|
+
date: string;
|
|
25765
|
+
items: {
|
|
25766
|
+
account_number: string;
|
|
25767
|
+
partner_id?: string | undefined;
|
|
25768
|
+
description?: string | undefined;
|
|
25769
|
+
debit: number;
|
|
25770
|
+
credit: number;
|
|
25771
|
+
currency: string;
|
|
25772
|
+
currency_exchange_rate?: number | undefined;
|
|
25773
|
+
analytic_distribution?: {
|
|
25774
|
+
analytic_plan: string;
|
|
25775
|
+
analytic_accounts: {
|
|
25776
|
+
analytic_account: string;
|
|
25777
|
+
percentage: number;
|
|
25778
|
+
}[];
|
|
25779
|
+
}[] | undefined;
|
|
25780
|
+
pdf?: string | undefined;
|
|
25781
|
+
}[];
|
|
25782
|
+
}): import("../types/api").RequestData<{
|
|
25783
|
+
reference?: string | undefined;
|
|
25784
|
+
due_date?: string | undefined;
|
|
25785
|
+
journal_id: string;
|
|
25786
|
+
name?: string | undefined;
|
|
25787
|
+
journal_name: string;
|
|
25788
|
+
date?: string | undefined;
|
|
25789
|
+
posted?: boolean | undefined;
|
|
25790
|
+
id: string;
|
|
25791
|
+
items?: {
|
|
25792
|
+
account_number: string;
|
|
25793
|
+
partner_id?: string | undefined;
|
|
25794
|
+
description?: string | undefined;
|
|
25795
|
+
debit: number;
|
|
25796
|
+
credit: number;
|
|
25797
|
+
currency: string;
|
|
25798
|
+
currency_exchange_rate?: number | undefined;
|
|
25799
|
+
id: string;
|
|
25800
|
+
partner_name?: string | undefined;
|
|
25801
|
+
account_name: string;
|
|
25802
|
+
matching_numbers?: string[] | undefined;
|
|
25803
|
+
analytic_distribution?: {
|
|
25804
|
+
analytic_plan: string;
|
|
25805
|
+
analytic_accounts: {
|
|
25806
|
+
analytic_account: string;
|
|
25807
|
+
percentage: number;
|
|
25808
|
+
}[];
|
|
25809
|
+
}[] | undefined;
|
|
25810
|
+
}[] | undefined;
|
|
25811
|
+
}>;
|
|
24992
25812
|
}>;
|
|
24993
25813
|
invoicing: import("../types/api").ApiFor<{
|
|
24994
25814
|
getInvoices(params: {
|
|
@@ -25217,7 +26037,7 @@ export declare class API {
|
|
|
25217
26037
|
rate: number;
|
|
25218
26038
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
25219
26039
|
code?: string | undefined;
|
|
25220
|
-
scope?: "
|
|
26040
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
25221
26041
|
}[]>;
|
|
25222
26042
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
25223
26043
|
id: string;
|
|
@@ -25229,7 +26049,7 @@ export declare class API {
|
|
|
25229
26049
|
rate: number;
|
|
25230
26050
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
25231
26051
|
code?: string | undefined;
|
|
25232
|
-
scope?: "
|
|
26052
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
25233
26053
|
}>;
|
|
25234
26054
|
getOpportunities(): import("../types/api").RequestData<{
|
|
25235
26055
|
id: string;
|
|
@@ -25284,7 +26104,7 @@ export declare class API {
|
|
|
25284
26104
|
} | undefined;
|
|
25285
26105
|
}>;
|
|
25286
26106
|
getContacts(params?: {
|
|
25287
|
-
contact_type?: "all" | "
|
|
26107
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
25288
26108
|
page?: number | undefined;
|
|
25289
26109
|
size?: number | undefined;
|
|
25290
26110
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -26502,6 +27322,7 @@ export declare class API {
|
|
|
26502
27322
|
country?: string | undefined;
|
|
26503
27323
|
}[] | undefined;
|
|
26504
27324
|
account_number?: string | undefined;
|
|
27325
|
+
company_number?: string | undefined;
|
|
26505
27326
|
id?: string | undefined;
|
|
26506
27327
|
}[]>;
|
|
26507
27328
|
createClient(client: {
|
|
@@ -26572,6 +27393,7 @@ export declare class API {
|
|
|
26572
27393
|
country?: string | undefined;
|
|
26573
27394
|
}[] | undefined;
|
|
26574
27395
|
account_number?: string | undefined;
|
|
27396
|
+
company_number?: string | undefined;
|
|
26575
27397
|
id?: string | undefined;
|
|
26576
27398
|
}>;
|
|
26577
27399
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -26607,6 +27429,7 @@ export declare class API {
|
|
|
26607
27429
|
country?: string | undefined;
|
|
26608
27430
|
}[] | undefined;
|
|
26609
27431
|
account_number?: string | undefined;
|
|
27432
|
+
company_number?: string | undefined;
|
|
26610
27433
|
id?: string | undefined;
|
|
26611
27434
|
}>;
|
|
26612
27435
|
updateClient(clientId: string, client: {
|
|
@@ -26674,6 +27497,7 @@ export declare class API {
|
|
|
26674
27497
|
country?: string | undefined;
|
|
26675
27498
|
}[] | undefined;
|
|
26676
27499
|
account_number?: string | undefined;
|
|
27500
|
+
company_number?: string | undefined;
|
|
26677
27501
|
id?: string | undefined;
|
|
26678
27502
|
}>;
|
|
26679
27503
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -26709,6 +27533,7 @@ export declare class API {
|
|
|
26709
27533
|
country?: string | undefined;
|
|
26710
27534
|
}[] | undefined;
|
|
26711
27535
|
account_number?: string | undefined;
|
|
27536
|
+
company_number?: string | undefined;
|
|
26712
27537
|
id?: string | undefined;
|
|
26713
27538
|
}[]>;
|
|
26714
27539
|
createSupplier(supplier: {
|
|
@@ -26779,6 +27604,7 @@ export declare class API {
|
|
|
26779
27604
|
country?: string | undefined;
|
|
26780
27605
|
}[] | undefined;
|
|
26781
27606
|
account_number?: string | undefined;
|
|
27607
|
+
company_number?: string | undefined;
|
|
26782
27608
|
id?: string | undefined;
|
|
26783
27609
|
}>;
|
|
26784
27610
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -26814,6 +27640,7 @@ export declare class API {
|
|
|
26814
27640
|
country?: string | undefined;
|
|
26815
27641
|
}[] | undefined;
|
|
26816
27642
|
account_number?: string | undefined;
|
|
27643
|
+
company_number?: string | undefined;
|
|
26817
27644
|
id?: string | undefined;
|
|
26818
27645
|
}>;
|
|
26819
27646
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -26881,6 +27708,7 @@ export declare class API {
|
|
|
26881
27708
|
country?: string | undefined;
|
|
26882
27709
|
}[] | undefined;
|
|
26883
27710
|
account_number?: string | undefined;
|
|
27711
|
+
company_number?: string | undefined;
|
|
26884
27712
|
id?: string | undefined;
|
|
26885
27713
|
}>;
|
|
26886
27714
|
createInvoice(invoice: {
|
|
@@ -26945,7 +27773,7 @@ export declare class API {
|
|
|
26945
27773
|
amount: number;
|
|
26946
27774
|
dedicated_amount?: number | undefined;
|
|
26947
27775
|
payment_date: string;
|
|
26948
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
27776
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
26949
27777
|
journal_id: string;
|
|
26950
27778
|
journal_name: string;
|
|
26951
27779
|
reconciled?: boolean | undefined;
|
|
@@ -27036,7 +27864,7 @@ export declare class API {
|
|
|
27036
27864
|
amount: number;
|
|
27037
27865
|
dedicated_amount?: number | undefined;
|
|
27038
27866
|
payment_date: string;
|
|
27039
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
27867
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
27040
27868
|
journal_id: string;
|
|
27041
27869
|
journal_name: string;
|
|
27042
27870
|
reconciled?: boolean | undefined;
|
|
@@ -27087,7 +27915,7 @@ export declare class API {
|
|
|
27087
27915
|
amount: number;
|
|
27088
27916
|
dedicated_amount?: number | undefined;
|
|
27089
27917
|
payment_date: string;
|
|
27090
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
27918
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
27091
27919
|
journal_id: string;
|
|
27092
27920
|
journal_name: string;
|
|
27093
27921
|
reconciled?: boolean | undefined;
|
|
@@ -27134,7 +27962,7 @@ export declare class API {
|
|
|
27134
27962
|
amount: number;
|
|
27135
27963
|
dedicated_amount?: number | undefined;
|
|
27136
27964
|
payment_date: string;
|
|
27137
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
27965
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
27138
27966
|
journal_id: string;
|
|
27139
27967
|
journal_name: string;
|
|
27140
27968
|
reconciled?: boolean | undefined;
|
|
@@ -27181,7 +28009,7 @@ export declare class API {
|
|
|
27181
28009
|
amount: number;
|
|
27182
28010
|
dedicated_amount?: number | undefined;
|
|
27183
28011
|
payment_date: string;
|
|
27184
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
28012
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
27185
28013
|
journal_id: string;
|
|
27186
28014
|
journal_name: string;
|
|
27187
28015
|
reconciled?: boolean | undefined;
|
|
@@ -27232,7 +28060,7 @@ export declare class API {
|
|
|
27232
28060
|
amount: number;
|
|
27233
28061
|
dedicated_amount?: number | undefined;
|
|
27234
28062
|
payment_date: string;
|
|
27235
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
28063
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
27236
28064
|
journal_id: string;
|
|
27237
28065
|
journal_name: string;
|
|
27238
28066
|
reconciled?: boolean | undefined;
|
|
@@ -27446,7 +28274,7 @@ export declare class API {
|
|
|
27446
28274
|
amount: number;
|
|
27447
28275
|
dedicated_amount?: number | undefined;
|
|
27448
28276
|
payment_date: string;
|
|
27449
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
28277
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
27450
28278
|
journal_id: string;
|
|
27451
28279
|
journal_name: string;
|
|
27452
28280
|
reconciled?: boolean | undefined;
|
|
@@ -27457,13 +28285,13 @@ export declare class API {
|
|
|
27457
28285
|
id: string;
|
|
27458
28286
|
code: string;
|
|
27459
28287
|
name: string;
|
|
27460
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
28288
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
27461
28289
|
}[]>;
|
|
27462
28290
|
getVatCodes(): import("../types/api").RequestData<{
|
|
27463
28291
|
id: string;
|
|
27464
28292
|
code?: string | undefined;
|
|
27465
28293
|
label: string;
|
|
27466
|
-
scope?: "
|
|
28294
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
27467
28295
|
rate: number;
|
|
27468
28296
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
27469
28297
|
}[]>;
|
|
@@ -27575,6 +28403,25 @@ export declare class API {
|
|
|
27575
28403
|
reference?: string | undefined;
|
|
27576
28404
|
account_number?: string | undefined;
|
|
27577
28405
|
}[]>;
|
|
28406
|
+
getOutstandings(params: {
|
|
28407
|
+
unposted_allowed: "true" | "false";
|
|
28408
|
+
type: "client" | "supplier";
|
|
28409
|
+
}): import("../types/api").RequestData<{
|
|
28410
|
+
id: string;
|
|
28411
|
+
number?: string | undefined;
|
|
28412
|
+
journal_id: string;
|
|
28413
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
28414
|
+
date: string;
|
|
28415
|
+
due_date?: string | undefined;
|
|
28416
|
+
currency: string;
|
|
28417
|
+
currency_exchange_rate: number;
|
|
28418
|
+
amount: number;
|
|
28419
|
+
open_amount: number;
|
|
28420
|
+
partner_id: string;
|
|
28421
|
+
account_number: string;
|
|
28422
|
+
reference?: string | undefined;
|
|
28423
|
+
posted: boolean;
|
|
28424
|
+
}[]>;
|
|
27578
28425
|
createFinancialEntry(financial_entry: {
|
|
27579
28426
|
date: string;
|
|
27580
28427
|
journal_id: string;
|
|
@@ -27590,7 +28437,9 @@ export declare class API {
|
|
|
27590
28437
|
}[];
|
|
27591
28438
|
number?: string | undefined;
|
|
27592
28439
|
pdf?: string | undefined;
|
|
27593
|
-
}
|
|
28440
|
+
}, params: {
|
|
28441
|
+
financial_counterpart_account?: string | undefined;
|
|
28442
|
+
} | undefined): import("../types/api").RequestData<{
|
|
27594
28443
|
date: string;
|
|
27595
28444
|
journal_id: string;
|
|
27596
28445
|
currency: string;
|
|
@@ -27607,6 +28456,59 @@ export declare class API {
|
|
|
27607
28456
|
id: string;
|
|
27608
28457
|
number: string;
|
|
27609
28458
|
}>;
|
|
28459
|
+
createJournalEntry(journal_entry: {
|
|
28460
|
+
reference?: string | undefined;
|
|
28461
|
+
due_date?: string | undefined;
|
|
28462
|
+
journal_id: string;
|
|
28463
|
+
name: string;
|
|
28464
|
+
date: string;
|
|
28465
|
+
items: {
|
|
28466
|
+
account_number: string;
|
|
28467
|
+
partner_id?: string | undefined;
|
|
28468
|
+
description?: string | undefined;
|
|
28469
|
+
debit: number;
|
|
28470
|
+
credit: number;
|
|
28471
|
+
currency: string;
|
|
28472
|
+
currency_exchange_rate?: number | undefined;
|
|
28473
|
+
analytic_distribution?: {
|
|
28474
|
+
analytic_plan: string;
|
|
28475
|
+
analytic_accounts: {
|
|
28476
|
+
analytic_account: string;
|
|
28477
|
+
percentage: number;
|
|
28478
|
+
}[];
|
|
28479
|
+
}[] | undefined;
|
|
28480
|
+
pdf?: string | undefined;
|
|
28481
|
+
}[];
|
|
28482
|
+
}): import("../types/api").RequestData<{
|
|
28483
|
+
reference?: string | undefined;
|
|
28484
|
+
due_date?: string | undefined;
|
|
28485
|
+
journal_id: string;
|
|
28486
|
+
name?: string | undefined;
|
|
28487
|
+
journal_name: string;
|
|
28488
|
+
date?: string | undefined;
|
|
28489
|
+
posted?: boolean | undefined;
|
|
28490
|
+
id: string;
|
|
28491
|
+
items?: {
|
|
28492
|
+
account_number: string;
|
|
28493
|
+
partner_id?: string | undefined;
|
|
28494
|
+
description?: string | undefined;
|
|
28495
|
+
debit: number;
|
|
28496
|
+
credit: number;
|
|
28497
|
+
currency: string;
|
|
28498
|
+
currency_exchange_rate?: number | undefined;
|
|
28499
|
+
id: string;
|
|
28500
|
+
partner_name?: string | undefined;
|
|
28501
|
+
account_name: string;
|
|
28502
|
+
matching_numbers?: string[] | undefined;
|
|
28503
|
+
analytic_distribution?: {
|
|
28504
|
+
analytic_plan: string;
|
|
28505
|
+
analytic_accounts: {
|
|
28506
|
+
analytic_account: string;
|
|
28507
|
+
percentage: number;
|
|
28508
|
+
}[];
|
|
28509
|
+
}[] | undefined;
|
|
28510
|
+
}[] | undefined;
|
|
28511
|
+
}>;
|
|
27610
28512
|
}>;
|
|
27611
28513
|
invoicing: import("../types/api").ApiFor<{
|
|
27612
28514
|
getInvoices(params: {
|
|
@@ -27835,7 +28737,7 @@ export declare class API {
|
|
|
27835
28737
|
rate: number;
|
|
27836
28738
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
27837
28739
|
code?: string | undefined;
|
|
27838
|
-
scope?: "
|
|
28740
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
27839
28741
|
}[]>;
|
|
27840
28742
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
27841
28743
|
id: string;
|
|
@@ -27847,7 +28749,7 @@ export declare class API {
|
|
|
27847
28749
|
rate: number;
|
|
27848
28750
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
27849
28751
|
code?: string | undefined;
|
|
27850
|
-
scope?: "
|
|
28752
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
27851
28753
|
}>;
|
|
27852
28754
|
getOpportunities(): import("../types/api").RequestData<{
|
|
27853
28755
|
id: string;
|
|
@@ -27902,7 +28804,7 @@ export declare class API {
|
|
|
27902
28804
|
} | undefined;
|
|
27903
28805
|
}>;
|
|
27904
28806
|
getContacts(params?: {
|
|
27905
|
-
contact_type?: "all" | "
|
|
28807
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
27906
28808
|
page?: number | undefined;
|
|
27907
28809
|
size?: number | undefined;
|
|
27908
28810
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -29119,6 +30021,7 @@ export declare class API {
|
|
|
29119
30021
|
country?: string | undefined;
|
|
29120
30022
|
}[] | undefined;
|
|
29121
30023
|
account_number?: string | undefined;
|
|
30024
|
+
company_number?: string | undefined;
|
|
29122
30025
|
id?: string | undefined;
|
|
29123
30026
|
}[]>;
|
|
29124
30027
|
createClient(client: {
|
|
@@ -29189,6 +30092,7 @@ export declare class API {
|
|
|
29189
30092
|
country?: string | undefined;
|
|
29190
30093
|
}[] | undefined;
|
|
29191
30094
|
account_number?: string | undefined;
|
|
30095
|
+
company_number?: string | undefined;
|
|
29192
30096
|
id?: string | undefined;
|
|
29193
30097
|
}>;
|
|
29194
30098
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -29224,6 +30128,7 @@ export declare class API {
|
|
|
29224
30128
|
country?: string | undefined;
|
|
29225
30129
|
}[] | undefined;
|
|
29226
30130
|
account_number?: string | undefined;
|
|
30131
|
+
company_number?: string | undefined;
|
|
29227
30132
|
id?: string | undefined;
|
|
29228
30133
|
}>;
|
|
29229
30134
|
updateClient(clientId: string, client: {
|
|
@@ -29291,6 +30196,7 @@ export declare class API {
|
|
|
29291
30196
|
country?: string | undefined;
|
|
29292
30197
|
}[] | undefined;
|
|
29293
30198
|
account_number?: string | undefined;
|
|
30199
|
+
company_number?: string | undefined;
|
|
29294
30200
|
id?: string | undefined;
|
|
29295
30201
|
}>;
|
|
29296
30202
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -29326,6 +30232,7 @@ export declare class API {
|
|
|
29326
30232
|
country?: string | undefined;
|
|
29327
30233
|
}[] | undefined;
|
|
29328
30234
|
account_number?: string | undefined;
|
|
30235
|
+
company_number?: string | undefined;
|
|
29329
30236
|
id?: string | undefined;
|
|
29330
30237
|
}[]>;
|
|
29331
30238
|
createSupplier(supplier: {
|
|
@@ -29396,6 +30303,7 @@ export declare class API {
|
|
|
29396
30303
|
country?: string | undefined;
|
|
29397
30304
|
}[] | undefined;
|
|
29398
30305
|
account_number?: string | undefined;
|
|
30306
|
+
company_number?: string | undefined;
|
|
29399
30307
|
id?: string | undefined;
|
|
29400
30308
|
}>;
|
|
29401
30309
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -29431,6 +30339,7 @@ export declare class API {
|
|
|
29431
30339
|
country?: string | undefined;
|
|
29432
30340
|
}[] | undefined;
|
|
29433
30341
|
account_number?: string | undefined;
|
|
30342
|
+
company_number?: string | undefined;
|
|
29434
30343
|
id?: string | undefined;
|
|
29435
30344
|
}>;
|
|
29436
30345
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -29498,6 +30407,7 @@ export declare class API {
|
|
|
29498
30407
|
country?: string | undefined;
|
|
29499
30408
|
}[] | undefined;
|
|
29500
30409
|
account_number?: string | undefined;
|
|
30410
|
+
company_number?: string | undefined;
|
|
29501
30411
|
id?: string | undefined;
|
|
29502
30412
|
}>;
|
|
29503
30413
|
createInvoice(invoice: {
|
|
@@ -29562,7 +30472,7 @@ export declare class API {
|
|
|
29562
30472
|
amount: number;
|
|
29563
30473
|
dedicated_amount?: number | undefined;
|
|
29564
30474
|
payment_date: string;
|
|
29565
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
30475
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
29566
30476
|
journal_id: string;
|
|
29567
30477
|
journal_name: string;
|
|
29568
30478
|
reconciled?: boolean | undefined;
|
|
@@ -29653,7 +30563,7 @@ export declare class API {
|
|
|
29653
30563
|
amount: number;
|
|
29654
30564
|
dedicated_amount?: number | undefined;
|
|
29655
30565
|
payment_date: string;
|
|
29656
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
30566
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
29657
30567
|
journal_id: string;
|
|
29658
30568
|
journal_name: string;
|
|
29659
30569
|
reconciled?: boolean | undefined;
|
|
@@ -29704,7 +30614,7 @@ export declare class API {
|
|
|
29704
30614
|
amount: number;
|
|
29705
30615
|
dedicated_amount?: number | undefined;
|
|
29706
30616
|
payment_date: string;
|
|
29707
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
30617
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
29708
30618
|
journal_id: string;
|
|
29709
30619
|
journal_name: string;
|
|
29710
30620
|
reconciled?: boolean | undefined;
|
|
@@ -29751,7 +30661,7 @@ export declare class API {
|
|
|
29751
30661
|
amount: number;
|
|
29752
30662
|
dedicated_amount?: number | undefined;
|
|
29753
30663
|
payment_date: string;
|
|
29754
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
30664
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
29755
30665
|
journal_id: string;
|
|
29756
30666
|
journal_name: string;
|
|
29757
30667
|
reconciled?: boolean | undefined;
|
|
@@ -29798,7 +30708,7 @@ export declare class API {
|
|
|
29798
30708
|
amount: number;
|
|
29799
30709
|
dedicated_amount?: number | undefined;
|
|
29800
30710
|
payment_date: string;
|
|
29801
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
30711
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
29802
30712
|
journal_id: string;
|
|
29803
30713
|
journal_name: string;
|
|
29804
30714
|
reconciled?: boolean | undefined;
|
|
@@ -29849,7 +30759,7 @@ export declare class API {
|
|
|
29849
30759
|
amount: number;
|
|
29850
30760
|
dedicated_amount?: number | undefined;
|
|
29851
30761
|
payment_date: string;
|
|
29852
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
30762
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
29853
30763
|
journal_id: string;
|
|
29854
30764
|
journal_name: string;
|
|
29855
30765
|
reconciled?: boolean | undefined;
|
|
@@ -30063,7 +30973,7 @@ export declare class API {
|
|
|
30063
30973
|
amount: number;
|
|
30064
30974
|
dedicated_amount?: number | undefined;
|
|
30065
30975
|
payment_date: string;
|
|
30066
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
30976
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
30067
30977
|
journal_id: string;
|
|
30068
30978
|
journal_name: string;
|
|
30069
30979
|
reconciled?: boolean | undefined;
|
|
@@ -30074,13 +30984,13 @@ export declare class API {
|
|
|
30074
30984
|
id: string;
|
|
30075
30985
|
code: string;
|
|
30076
30986
|
name: string;
|
|
30077
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
30987
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
30078
30988
|
}[]>;
|
|
30079
30989
|
getVatCodes(): import("../types/api").RequestData<{
|
|
30080
30990
|
id: string;
|
|
30081
30991
|
code?: string | undefined;
|
|
30082
30992
|
label: string;
|
|
30083
|
-
scope?: "
|
|
30993
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
30084
30994
|
rate: number;
|
|
30085
30995
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
30086
30996
|
}[]>;
|
|
@@ -30192,6 +31102,25 @@ export declare class API {
|
|
|
30192
31102
|
reference?: string | undefined;
|
|
30193
31103
|
account_number?: string | undefined;
|
|
30194
31104
|
}[]>;
|
|
31105
|
+
getOutstandings(params: {
|
|
31106
|
+
unposted_allowed: "true" | "false";
|
|
31107
|
+
type: "client" | "supplier";
|
|
31108
|
+
}): import("../types/api").RequestData<{
|
|
31109
|
+
id: string;
|
|
31110
|
+
number?: string | undefined;
|
|
31111
|
+
journal_id: string;
|
|
31112
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
31113
|
+
date: string;
|
|
31114
|
+
due_date?: string | undefined;
|
|
31115
|
+
currency: string;
|
|
31116
|
+
currency_exchange_rate: number;
|
|
31117
|
+
amount: number;
|
|
31118
|
+
open_amount: number;
|
|
31119
|
+
partner_id: string;
|
|
31120
|
+
account_number: string;
|
|
31121
|
+
reference?: string | undefined;
|
|
31122
|
+
posted: boolean;
|
|
31123
|
+
}[]>;
|
|
30195
31124
|
createFinancialEntry(financial_entry: {
|
|
30196
31125
|
date: string;
|
|
30197
31126
|
journal_id: string;
|
|
@@ -30207,7 +31136,9 @@ export declare class API {
|
|
|
30207
31136
|
}[];
|
|
30208
31137
|
number?: string | undefined;
|
|
30209
31138
|
pdf?: string | undefined;
|
|
30210
|
-
}
|
|
31139
|
+
}, params: {
|
|
31140
|
+
financial_counterpart_account?: string | undefined;
|
|
31141
|
+
} | undefined): import("../types/api").RequestData<{
|
|
30211
31142
|
date: string;
|
|
30212
31143
|
journal_id: string;
|
|
30213
31144
|
currency: string;
|
|
@@ -30224,6 +31155,59 @@ export declare class API {
|
|
|
30224
31155
|
id: string;
|
|
30225
31156
|
number: string;
|
|
30226
31157
|
}>;
|
|
31158
|
+
createJournalEntry(journal_entry: {
|
|
31159
|
+
reference?: string | undefined;
|
|
31160
|
+
due_date?: string | undefined;
|
|
31161
|
+
journal_id: string;
|
|
31162
|
+
name: string;
|
|
31163
|
+
date: string;
|
|
31164
|
+
items: {
|
|
31165
|
+
account_number: string;
|
|
31166
|
+
partner_id?: string | undefined;
|
|
31167
|
+
description?: string | undefined;
|
|
31168
|
+
debit: number;
|
|
31169
|
+
credit: number;
|
|
31170
|
+
currency: string;
|
|
31171
|
+
currency_exchange_rate?: number | undefined;
|
|
31172
|
+
analytic_distribution?: {
|
|
31173
|
+
analytic_plan: string;
|
|
31174
|
+
analytic_accounts: {
|
|
31175
|
+
analytic_account: string;
|
|
31176
|
+
percentage: number;
|
|
31177
|
+
}[];
|
|
31178
|
+
}[] | undefined;
|
|
31179
|
+
pdf?: string | undefined;
|
|
31180
|
+
}[];
|
|
31181
|
+
}): import("../types/api").RequestData<{
|
|
31182
|
+
reference?: string | undefined;
|
|
31183
|
+
due_date?: string | undefined;
|
|
31184
|
+
journal_id: string;
|
|
31185
|
+
name?: string | undefined;
|
|
31186
|
+
journal_name: string;
|
|
31187
|
+
date?: string | undefined;
|
|
31188
|
+
posted?: boolean | undefined;
|
|
31189
|
+
id: string;
|
|
31190
|
+
items?: {
|
|
31191
|
+
account_number: string;
|
|
31192
|
+
partner_id?: string | undefined;
|
|
31193
|
+
description?: string | undefined;
|
|
31194
|
+
debit: number;
|
|
31195
|
+
credit: number;
|
|
31196
|
+
currency: string;
|
|
31197
|
+
currency_exchange_rate?: number | undefined;
|
|
31198
|
+
id: string;
|
|
31199
|
+
partner_name?: string | undefined;
|
|
31200
|
+
account_name: string;
|
|
31201
|
+
matching_numbers?: string[] | undefined;
|
|
31202
|
+
analytic_distribution?: {
|
|
31203
|
+
analytic_plan: string;
|
|
31204
|
+
analytic_accounts: {
|
|
31205
|
+
analytic_account: string;
|
|
31206
|
+
percentage: number;
|
|
31207
|
+
}[];
|
|
31208
|
+
}[] | undefined;
|
|
31209
|
+
}[] | undefined;
|
|
31210
|
+
}>;
|
|
30227
31211
|
}>;
|
|
30228
31212
|
invoicing: import("../types/api").ApiFor<{
|
|
30229
31213
|
getInvoices(params: {
|
|
@@ -30452,7 +31436,7 @@ export declare class API {
|
|
|
30452
31436
|
rate: number;
|
|
30453
31437
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
30454
31438
|
code?: string | undefined;
|
|
30455
|
-
scope?: "
|
|
31439
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
30456
31440
|
}[]>;
|
|
30457
31441
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
30458
31442
|
id: string;
|
|
@@ -30464,7 +31448,7 @@ export declare class API {
|
|
|
30464
31448
|
rate: number;
|
|
30465
31449
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
30466
31450
|
code?: string | undefined;
|
|
30467
|
-
scope?: "
|
|
31451
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
30468
31452
|
}>;
|
|
30469
31453
|
getOpportunities(): import("../types/api").RequestData<{
|
|
30470
31454
|
id: string;
|
|
@@ -30519,7 +31503,7 @@ export declare class API {
|
|
|
30519
31503
|
} | undefined;
|
|
30520
31504
|
}>;
|
|
30521
31505
|
getContacts(params?: {
|
|
30522
|
-
contact_type?: "all" | "
|
|
31506
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
30523
31507
|
page?: number | undefined;
|
|
30524
31508
|
size?: number | undefined;
|
|
30525
31509
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -31740,6 +32724,7 @@ export declare class API {
|
|
|
31740
32724
|
country?: string | undefined;
|
|
31741
32725
|
}[] | undefined;
|
|
31742
32726
|
account_number?: string | undefined;
|
|
32727
|
+
company_number?: string | undefined;
|
|
31743
32728
|
id?: string | undefined;
|
|
31744
32729
|
}[]>;
|
|
31745
32730
|
createClient(client: {
|
|
@@ -31810,6 +32795,7 @@ export declare class API {
|
|
|
31810
32795
|
country?: string | undefined;
|
|
31811
32796
|
}[] | undefined;
|
|
31812
32797
|
account_number?: string | undefined;
|
|
32798
|
+
company_number?: string | undefined;
|
|
31813
32799
|
id?: string | undefined;
|
|
31814
32800
|
}>;
|
|
31815
32801
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -31845,6 +32831,7 @@ export declare class API {
|
|
|
31845
32831
|
country?: string | undefined;
|
|
31846
32832
|
}[] | undefined;
|
|
31847
32833
|
account_number?: string | undefined;
|
|
32834
|
+
company_number?: string | undefined;
|
|
31848
32835
|
id?: string | undefined;
|
|
31849
32836
|
}>;
|
|
31850
32837
|
updateClient(clientId: string, client: {
|
|
@@ -31912,6 +32899,7 @@ export declare class API {
|
|
|
31912
32899
|
country?: string | undefined;
|
|
31913
32900
|
}[] | undefined;
|
|
31914
32901
|
account_number?: string | undefined;
|
|
32902
|
+
company_number?: string | undefined;
|
|
31915
32903
|
id?: string | undefined;
|
|
31916
32904
|
}>;
|
|
31917
32905
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -31947,6 +32935,7 @@ export declare class API {
|
|
|
31947
32935
|
country?: string | undefined;
|
|
31948
32936
|
}[] | undefined;
|
|
31949
32937
|
account_number?: string | undefined;
|
|
32938
|
+
company_number?: string | undefined;
|
|
31950
32939
|
id?: string | undefined;
|
|
31951
32940
|
}[]>;
|
|
31952
32941
|
createSupplier(supplier: {
|
|
@@ -32017,6 +33006,7 @@ export declare class API {
|
|
|
32017
33006
|
country?: string | undefined;
|
|
32018
33007
|
}[] | undefined;
|
|
32019
33008
|
account_number?: string | undefined;
|
|
33009
|
+
company_number?: string | undefined;
|
|
32020
33010
|
id?: string | undefined;
|
|
32021
33011
|
}>;
|
|
32022
33012
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -32052,6 +33042,7 @@ export declare class API {
|
|
|
32052
33042
|
country?: string | undefined;
|
|
32053
33043
|
}[] | undefined;
|
|
32054
33044
|
account_number?: string | undefined;
|
|
33045
|
+
company_number?: string | undefined;
|
|
32055
33046
|
id?: string | undefined;
|
|
32056
33047
|
}>;
|
|
32057
33048
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -32119,6 +33110,7 @@ export declare class API {
|
|
|
32119
33110
|
country?: string | undefined;
|
|
32120
33111
|
}[] | undefined;
|
|
32121
33112
|
account_number?: string | undefined;
|
|
33113
|
+
company_number?: string | undefined;
|
|
32122
33114
|
id?: string | undefined;
|
|
32123
33115
|
}>;
|
|
32124
33116
|
createInvoice(invoice: {
|
|
@@ -32183,7 +33175,7 @@ export declare class API {
|
|
|
32183
33175
|
amount: number;
|
|
32184
33176
|
dedicated_amount?: number | undefined;
|
|
32185
33177
|
payment_date: string;
|
|
32186
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
33178
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
32187
33179
|
journal_id: string;
|
|
32188
33180
|
journal_name: string;
|
|
32189
33181
|
reconciled?: boolean | undefined;
|
|
@@ -32274,7 +33266,7 @@ export declare class API {
|
|
|
32274
33266
|
amount: number;
|
|
32275
33267
|
dedicated_amount?: number | undefined;
|
|
32276
33268
|
payment_date: string;
|
|
32277
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
33269
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
32278
33270
|
journal_id: string;
|
|
32279
33271
|
journal_name: string;
|
|
32280
33272
|
reconciled?: boolean | undefined;
|
|
@@ -32325,7 +33317,7 @@ export declare class API {
|
|
|
32325
33317
|
amount: number;
|
|
32326
33318
|
dedicated_amount?: number | undefined;
|
|
32327
33319
|
payment_date: string;
|
|
32328
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
33320
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
32329
33321
|
journal_id: string;
|
|
32330
33322
|
journal_name: string;
|
|
32331
33323
|
reconciled?: boolean | undefined;
|
|
@@ -32372,7 +33364,7 @@ export declare class API {
|
|
|
32372
33364
|
amount: number;
|
|
32373
33365
|
dedicated_amount?: number | undefined;
|
|
32374
33366
|
payment_date: string;
|
|
32375
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
33367
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
32376
33368
|
journal_id: string;
|
|
32377
33369
|
journal_name: string;
|
|
32378
33370
|
reconciled?: boolean | undefined;
|
|
@@ -32419,7 +33411,7 @@ export declare class API {
|
|
|
32419
33411
|
amount: number;
|
|
32420
33412
|
dedicated_amount?: number | undefined;
|
|
32421
33413
|
payment_date: string;
|
|
32422
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
33414
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
32423
33415
|
journal_id: string;
|
|
32424
33416
|
journal_name: string;
|
|
32425
33417
|
reconciled?: boolean | undefined;
|
|
@@ -32470,7 +33462,7 @@ export declare class API {
|
|
|
32470
33462
|
amount: number;
|
|
32471
33463
|
dedicated_amount?: number | undefined;
|
|
32472
33464
|
payment_date: string;
|
|
32473
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
33465
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
32474
33466
|
journal_id: string;
|
|
32475
33467
|
journal_name: string;
|
|
32476
33468
|
reconciled?: boolean | undefined;
|
|
@@ -32684,7 +33676,7 @@ export declare class API {
|
|
|
32684
33676
|
amount: number;
|
|
32685
33677
|
dedicated_amount?: number | undefined;
|
|
32686
33678
|
payment_date: string;
|
|
32687
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
33679
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
32688
33680
|
journal_id: string;
|
|
32689
33681
|
journal_name: string;
|
|
32690
33682
|
reconciled?: boolean | undefined;
|
|
@@ -32695,13 +33687,13 @@ export declare class API {
|
|
|
32695
33687
|
id: string;
|
|
32696
33688
|
code: string;
|
|
32697
33689
|
name: string;
|
|
32698
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
33690
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
32699
33691
|
}[]>;
|
|
32700
33692
|
getVatCodes(): import("../types/api").RequestData<{
|
|
32701
33693
|
id: string;
|
|
32702
33694
|
code?: string | undefined;
|
|
32703
33695
|
label: string;
|
|
32704
|
-
scope?: "
|
|
33696
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
32705
33697
|
rate: number;
|
|
32706
33698
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
32707
33699
|
}[]>;
|
|
@@ -32813,6 +33805,25 @@ export declare class API {
|
|
|
32813
33805
|
reference?: string | undefined;
|
|
32814
33806
|
account_number?: string | undefined;
|
|
32815
33807
|
}[]>;
|
|
33808
|
+
getOutstandings(params: {
|
|
33809
|
+
unposted_allowed: "true" | "false";
|
|
33810
|
+
type: "client" | "supplier";
|
|
33811
|
+
}): import("../types/api").RequestData<{
|
|
33812
|
+
id: string;
|
|
33813
|
+
number?: string | undefined;
|
|
33814
|
+
journal_id: string;
|
|
33815
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
33816
|
+
date: string;
|
|
33817
|
+
due_date?: string | undefined;
|
|
33818
|
+
currency: string;
|
|
33819
|
+
currency_exchange_rate: number;
|
|
33820
|
+
amount: number;
|
|
33821
|
+
open_amount: number;
|
|
33822
|
+
partner_id: string;
|
|
33823
|
+
account_number: string;
|
|
33824
|
+
reference?: string | undefined;
|
|
33825
|
+
posted: boolean;
|
|
33826
|
+
}[]>;
|
|
32816
33827
|
createFinancialEntry(financial_entry: {
|
|
32817
33828
|
date: string;
|
|
32818
33829
|
journal_id: string;
|
|
@@ -32828,7 +33839,9 @@ export declare class API {
|
|
|
32828
33839
|
}[];
|
|
32829
33840
|
number?: string | undefined;
|
|
32830
33841
|
pdf?: string | undefined;
|
|
32831
|
-
}
|
|
33842
|
+
}, params: {
|
|
33843
|
+
financial_counterpart_account?: string | undefined;
|
|
33844
|
+
} | undefined): import("../types/api").RequestData<{
|
|
32832
33845
|
date: string;
|
|
32833
33846
|
journal_id: string;
|
|
32834
33847
|
currency: string;
|
|
@@ -32845,6 +33858,59 @@ export declare class API {
|
|
|
32845
33858
|
id: string;
|
|
32846
33859
|
number: string;
|
|
32847
33860
|
}>;
|
|
33861
|
+
createJournalEntry(journal_entry: {
|
|
33862
|
+
reference?: string | undefined;
|
|
33863
|
+
due_date?: string | undefined;
|
|
33864
|
+
journal_id: string;
|
|
33865
|
+
name: string;
|
|
33866
|
+
date: string;
|
|
33867
|
+
items: {
|
|
33868
|
+
account_number: string;
|
|
33869
|
+
partner_id?: string | undefined;
|
|
33870
|
+
description?: string | undefined;
|
|
33871
|
+
debit: number;
|
|
33872
|
+
credit: number;
|
|
33873
|
+
currency: string;
|
|
33874
|
+
currency_exchange_rate?: number | undefined;
|
|
33875
|
+
analytic_distribution?: {
|
|
33876
|
+
analytic_plan: string;
|
|
33877
|
+
analytic_accounts: {
|
|
33878
|
+
analytic_account: string;
|
|
33879
|
+
percentage: number;
|
|
33880
|
+
}[];
|
|
33881
|
+
}[] | undefined;
|
|
33882
|
+
pdf?: string | undefined;
|
|
33883
|
+
}[];
|
|
33884
|
+
}): import("../types/api").RequestData<{
|
|
33885
|
+
reference?: string | undefined;
|
|
33886
|
+
due_date?: string | undefined;
|
|
33887
|
+
journal_id: string;
|
|
33888
|
+
name?: string | undefined;
|
|
33889
|
+
journal_name: string;
|
|
33890
|
+
date?: string | undefined;
|
|
33891
|
+
posted?: boolean | undefined;
|
|
33892
|
+
id: string;
|
|
33893
|
+
items?: {
|
|
33894
|
+
account_number: string;
|
|
33895
|
+
partner_id?: string | undefined;
|
|
33896
|
+
description?: string | undefined;
|
|
33897
|
+
debit: number;
|
|
33898
|
+
credit: number;
|
|
33899
|
+
currency: string;
|
|
33900
|
+
currency_exchange_rate?: number | undefined;
|
|
33901
|
+
id: string;
|
|
33902
|
+
partner_name?: string | undefined;
|
|
33903
|
+
account_name: string;
|
|
33904
|
+
matching_numbers?: string[] | undefined;
|
|
33905
|
+
analytic_distribution?: {
|
|
33906
|
+
analytic_plan: string;
|
|
33907
|
+
analytic_accounts: {
|
|
33908
|
+
analytic_account: string;
|
|
33909
|
+
percentage: number;
|
|
33910
|
+
}[];
|
|
33911
|
+
}[] | undefined;
|
|
33912
|
+
}[] | undefined;
|
|
33913
|
+
}>;
|
|
32848
33914
|
}>;
|
|
32849
33915
|
invoicing: import("../types/api").ApiFor<{
|
|
32850
33916
|
getInvoices(params: {
|
|
@@ -33073,7 +34139,7 @@ export declare class API {
|
|
|
33073
34139
|
rate: number;
|
|
33074
34140
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
33075
34141
|
code?: string | undefined;
|
|
33076
|
-
scope?: "
|
|
34142
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
33077
34143
|
}[]>;
|
|
33078
34144
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
33079
34145
|
id: string;
|
|
@@ -33085,7 +34151,7 @@ export declare class API {
|
|
|
33085
34151
|
rate: number;
|
|
33086
34152
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
33087
34153
|
code?: string | undefined;
|
|
33088
|
-
scope?: "
|
|
34154
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
33089
34155
|
}>;
|
|
33090
34156
|
getOpportunities(): import("../types/api").RequestData<{
|
|
33091
34157
|
id: string;
|
|
@@ -33140,7 +34206,7 @@ export declare class API {
|
|
|
33140
34206
|
} | undefined;
|
|
33141
34207
|
}>;
|
|
33142
34208
|
getContacts(params?: {
|
|
33143
|
-
contact_type?: "all" | "
|
|
34209
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
33144
34210
|
page?: number | undefined;
|
|
33145
34211
|
size?: number | undefined;
|
|
33146
34212
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -34361,6 +35427,7 @@ export declare class API {
|
|
|
34361
35427
|
country?: string | undefined;
|
|
34362
35428
|
}[] | undefined;
|
|
34363
35429
|
account_number?: string | undefined;
|
|
35430
|
+
company_number?: string | undefined;
|
|
34364
35431
|
id?: string | undefined;
|
|
34365
35432
|
}[]>;
|
|
34366
35433
|
createClient(client: {
|
|
@@ -34431,6 +35498,7 @@ export declare class API {
|
|
|
34431
35498
|
country?: string | undefined;
|
|
34432
35499
|
}[] | undefined;
|
|
34433
35500
|
account_number?: string | undefined;
|
|
35501
|
+
company_number?: string | undefined;
|
|
34434
35502
|
id?: string | undefined;
|
|
34435
35503
|
}>;
|
|
34436
35504
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -34466,6 +35534,7 @@ export declare class API {
|
|
|
34466
35534
|
country?: string | undefined;
|
|
34467
35535
|
}[] | undefined;
|
|
34468
35536
|
account_number?: string | undefined;
|
|
35537
|
+
company_number?: string | undefined;
|
|
34469
35538
|
id?: string | undefined;
|
|
34470
35539
|
}>;
|
|
34471
35540
|
updateClient(clientId: string, client: {
|
|
@@ -34533,6 +35602,7 @@ export declare class API {
|
|
|
34533
35602
|
country?: string | undefined;
|
|
34534
35603
|
}[] | undefined;
|
|
34535
35604
|
account_number?: string | undefined;
|
|
35605
|
+
company_number?: string | undefined;
|
|
34536
35606
|
id?: string | undefined;
|
|
34537
35607
|
}>;
|
|
34538
35608
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -34568,6 +35638,7 @@ export declare class API {
|
|
|
34568
35638
|
country?: string | undefined;
|
|
34569
35639
|
}[] | undefined;
|
|
34570
35640
|
account_number?: string | undefined;
|
|
35641
|
+
company_number?: string | undefined;
|
|
34571
35642
|
id?: string | undefined;
|
|
34572
35643
|
}[]>;
|
|
34573
35644
|
createSupplier(supplier: {
|
|
@@ -34638,6 +35709,7 @@ export declare class API {
|
|
|
34638
35709
|
country?: string | undefined;
|
|
34639
35710
|
}[] | undefined;
|
|
34640
35711
|
account_number?: string | undefined;
|
|
35712
|
+
company_number?: string | undefined;
|
|
34641
35713
|
id?: string | undefined;
|
|
34642
35714
|
}>;
|
|
34643
35715
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -34673,6 +35745,7 @@ export declare class API {
|
|
|
34673
35745
|
country?: string | undefined;
|
|
34674
35746
|
}[] | undefined;
|
|
34675
35747
|
account_number?: string | undefined;
|
|
35748
|
+
company_number?: string | undefined;
|
|
34676
35749
|
id?: string | undefined;
|
|
34677
35750
|
}>;
|
|
34678
35751
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -34740,6 +35813,7 @@ export declare class API {
|
|
|
34740
35813
|
country?: string | undefined;
|
|
34741
35814
|
}[] | undefined;
|
|
34742
35815
|
account_number?: string | undefined;
|
|
35816
|
+
company_number?: string | undefined;
|
|
34743
35817
|
id?: string | undefined;
|
|
34744
35818
|
}>;
|
|
34745
35819
|
createInvoice(invoice: {
|
|
@@ -34804,7 +35878,7 @@ export declare class API {
|
|
|
34804
35878
|
amount: number;
|
|
34805
35879
|
dedicated_amount?: number | undefined;
|
|
34806
35880
|
payment_date: string;
|
|
34807
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
35881
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
34808
35882
|
journal_id: string;
|
|
34809
35883
|
journal_name: string;
|
|
34810
35884
|
reconciled?: boolean | undefined;
|
|
@@ -34895,7 +35969,7 @@ export declare class API {
|
|
|
34895
35969
|
amount: number;
|
|
34896
35970
|
dedicated_amount?: number | undefined;
|
|
34897
35971
|
payment_date: string;
|
|
34898
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
35972
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
34899
35973
|
journal_id: string;
|
|
34900
35974
|
journal_name: string;
|
|
34901
35975
|
reconciled?: boolean | undefined;
|
|
@@ -34946,7 +36020,7 @@ export declare class API {
|
|
|
34946
36020
|
amount: number;
|
|
34947
36021
|
dedicated_amount?: number | undefined;
|
|
34948
36022
|
payment_date: string;
|
|
34949
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
36023
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
34950
36024
|
journal_id: string;
|
|
34951
36025
|
journal_name: string;
|
|
34952
36026
|
reconciled?: boolean | undefined;
|
|
@@ -34993,7 +36067,7 @@ export declare class API {
|
|
|
34993
36067
|
amount: number;
|
|
34994
36068
|
dedicated_amount?: number | undefined;
|
|
34995
36069
|
payment_date: string;
|
|
34996
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
36070
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
34997
36071
|
journal_id: string;
|
|
34998
36072
|
journal_name: string;
|
|
34999
36073
|
reconciled?: boolean | undefined;
|
|
@@ -35040,7 +36114,7 @@ export declare class API {
|
|
|
35040
36114
|
amount: number;
|
|
35041
36115
|
dedicated_amount?: number | undefined;
|
|
35042
36116
|
payment_date: string;
|
|
35043
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
36117
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
35044
36118
|
journal_id: string;
|
|
35045
36119
|
journal_name: string;
|
|
35046
36120
|
reconciled?: boolean | undefined;
|
|
@@ -35091,7 +36165,7 @@ export declare class API {
|
|
|
35091
36165
|
amount: number;
|
|
35092
36166
|
dedicated_amount?: number | undefined;
|
|
35093
36167
|
payment_date: string;
|
|
35094
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
36168
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
35095
36169
|
journal_id: string;
|
|
35096
36170
|
journal_name: string;
|
|
35097
36171
|
reconciled?: boolean | undefined;
|
|
@@ -35305,7 +36379,7 @@ export declare class API {
|
|
|
35305
36379
|
amount: number;
|
|
35306
36380
|
dedicated_amount?: number | undefined;
|
|
35307
36381
|
payment_date: string;
|
|
35308
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
36382
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
35309
36383
|
journal_id: string;
|
|
35310
36384
|
journal_name: string;
|
|
35311
36385
|
reconciled?: boolean | undefined;
|
|
@@ -35316,13 +36390,13 @@ export declare class API {
|
|
|
35316
36390
|
id: string;
|
|
35317
36391
|
code: string;
|
|
35318
36392
|
name: string;
|
|
35319
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
36393
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
35320
36394
|
}[]>;
|
|
35321
36395
|
getVatCodes(): import("../types/api").RequestData<{
|
|
35322
36396
|
id: string;
|
|
35323
36397
|
code?: string | undefined;
|
|
35324
36398
|
label: string;
|
|
35325
|
-
scope?: "
|
|
36399
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
35326
36400
|
rate: number;
|
|
35327
36401
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
35328
36402
|
}[]>;
|
|
@@ -35434,6 +36508,25 @@ export declare class API {
|
|
|
35434
36508
|
reference?: string | undefined;
|
|
35435
36509
|
account_number?: string | undefined;
|
|
35436
36510
|
}[]>;
|
|
36511
|
+
getOutstandings(params: {
|
|
36512
|
+
unposted_allowed: "true" | "false";
|
|
36513
|
+
type: "client" | "supplier";
|
|
36514
|
+
}): import("../types/api").RequestData<{
|
|
36515
|
+
id: string;
|
|
36516
|
+
number?: string | undefined;
|
|
36517
|
+
journal_id: string;
|
|
36518
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
36519
|
+
date: string;
|
|
36520
|
+
due_date?: string | undefined;
|
|
36521
|
+
currency: string;
|
|
36522
|
+
currency_exchange_rate: number;
|
|
36523
|
+
amount: number;
|
|
36524
|
+
open_amount: number;
|
|
36525
|
+
partner_id: string;
|
|
36526
|
+
account_number: string;
|
|
36527
|
+
reference?: string | undefined;
|
|
36528
|
+
posted: boolean;
|
|
36529
|
+
}[]>;
|
|
35437
36530
|
createFinancialEntry(financial_entry: {
|
|
35438
36531
|
date: string;
|
|
35439
36532
|
journal_id: string;
|
|
@@ -35449,7 +36542,9 @@ export declare class API {
|
|
|
35449
36542
|
}[];
|
|
35450
36543
|
number?: string | undefined;
|
|
35451
36544
|
pdf?: string | undefined;
|
|
35452
|
-
}
|
|
36545
|
+
}, params: {
|
|
36546
|
+
financial_counterpart_account?: string | undefined;
|
|
36547
|
+
} | undefined): import("../types/api").RequestData<{
|
|
35453
36548
|
date: string;
|
|
35454
36549
|
journal_id: string;
|
|
35455
36550
|
currency: string;
|
|
@@ -35466,6 +36561,59 @@ export declare class API {
|
|
|
35466
36561
|
id: string;
|
|
35467
36562
|
number: string;
|
|
35468
36563
|
}>;
|
|
36564
|
+
createJournalEntry(journal_entry: {
|
|
36565
|
+
reference?: string | undefined;
|
|
36566
|
+
due_date?: string | undefined;
|
|
36567
|
+
journal_id: string;
|
|
36568
|
+
name: string;
|
|
36569
|
+
date: string;
|
|
36570
|
+
items: {
|
|
36571
|
+
account_number: string;
|
|
36572
|
+
partner_id?: string | undefined;
|
|
36573
|
+
description?: string | undefined;
|
|
36574
|
+
debit: number;
|
|
36575
|
+
credit: number;
|
|
36576
|
+
currency: string;
|
|
36577
|
+
currency_exchange_rate?: number | undefined;
|
|
36578
|
+
analytic_distribution?: {
|
|
36579
|
+
analytic_plan: string;
|
|
36580
|
+
analytic_accounts: {
|
|
36581
|
+
analytic_account: string;
|
|
36582
|
+
percentage: number;
|
|
36583
|
+
}[];
|
|
36584
|
+
}[] | undefined;
|
|
36585
|
+
pdf?: string | undefined;
|
|
36586
|
+
}[];
|
|
36587
|
+
}): import("../types/api").RequestData<{
|
|
36588
|
+
reference?: string | undefined;
|
|
36589
|
+
due_date?: string | undefined;
|
|
36590
|
+
journal_id: string;
|
|
36591
|
+
name?: string | undefined;
|
|
36592
|
+
journal_name: string;
|
|
36593
|
+
date?: string | undefined;
|
|
36594
|
+
posted?: boolean | undefined;
|
|
36595
|
+
id: string;
|
|
36596
|
+
items?: {
|
|
36597
|
+
account_number: string;
|
|
36598
|
+
partner_id?: string | undefined;
|
|
36599
|
+
description?: string | undefined;
|
|
36600
|
+
debit: number;
|
|
36601
|
+
credit: number;
|
|
36602
|
+
currency: string;
|
|
36603
|
+
currency_exchange_rate?: number | undefined;
|
|
36604
|
+
id: string;
|
|
36605
|
+
partner_name?: string | undefined;
|
|
36606
|
+
account_name: string;
|
|
36607
|
+
matching_numbers?: string[] | undefined;
|
|
36608
|
+
analytic_distribution?: {
|
|
36609
|
+
analytic_plan: string;
|
|
36610
|
+
analytic_accounts: {
|
|
36611
|
+
analytic_account: string;
|
|
36612
|
+
percentage: number;
|
|
36613
|
+
}[];
|
|
36614
|
+
}[] | undefined;
|
|
36615
|
+
}[] | undefined;
|
|
36616
|
+
}>;
|
|
35469
36617
|
}>;
|
|
35470
36618
|
invoicing: import("../types/api").ApiFor<{
|
|
35471
36619
|
getInvoices(params: {
|
|
@@ -35694,7 +36842,7 @@ export declare class API {
|
|
|
35694
36842
|
rate: number;
|
|
35695
36843
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
35696
36844
|
code?: string | undefined;
|
|
35697
|
-
scope?: "
|
|
36845
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
35698
36846
|
}[]>;
|
|
35699
36847
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
35700
36848
|
id: string;
|
|
@@ -35706,7 +36854,7 @@ export declare class API {
|
|
|
35706
36854
|
rate: number;
|
|
35707
36855
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
35708
36856
|
code?: string | undefined;
|
|
35709
|
-
scope?: "
|
|
36857
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
35710
36858
|
}>;
|
|
35711
36859
|
getOpportunities(): import("../types/api").RequestData<{
|
|
35712
36860
|
id: string;
|
|
@@ -35761,7 +36909,7 @@ export declare class API {
|
|
|
35761
36909
|
} | undefined;
|
|
35762
36910
|
}>;
|
|
35763
36911
|
getContacts(params?: {
|
|
35764
|
-
contact_type?: "all" | "
|
|
36912
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
35765
36913
|
page?: number | undefined;
|
|
35766
36914
|
size?: number | undefined;
|
|
35767
36915
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -36982,6 +38130,7 @@ export declare class API {
|
|
|
36982
38130
|
country?: string | undefined;
|
|
36983
38131
|
}[] | undefined;
|
|
36984
38132
|
account_number?: string | undefined;
|
|
38133
|
+
company_number?: string | undefined;
|
|
36985
38134
|
id?: string | undefined;
|
|
36986
38135
|
}[]>;
|
|
36987
38136
|
createClient(client: {
|
|
@@ -37052,6 +38201,7 @@ export declare class API {
|
|
|
37052
38201
|
country?: string | undefined;
|
|
37053
38202
|
}[] | undefined;
|
|
37054
38203
|
account_number?: string | undefined;
|
|
38204
|
+
company_number?: string | undefined;
|
|
37055
38205
|
id?: string | undefined;
|
|
37056
38206
|
}>;
|
|
37057
38207
|
getClient(clientId: string): import("../types/api").RequestData<{
|
|
@@ -37087,6 +38237,7 @@ export declare class API {
|
|
|
37087
38237
|
country?: string | undefined;
|
|
37088
38238
|
}[] | undefined;
|
|
37089
38239
|
account_number?: string | undefined;
|
|
38240
|
+
company_number?: string | undefined;
|
|
37090
38241
|
id?: string | undefined;
|
|
37091
38242
|
}>;
|
|
37092
38243
|
updateClient(clientId: string, client: {
|
|
@@ -37154,6 +38305,7 @@ export declare class API {
|
|
|
37154
38305
|
country?: string | undefined;
|
|
37155
38306
|
}[] | undefined;
|
|
37156
38307
|
account_number?: string | undefined;
|
|
38308
|
+
company_number?: string | undefined;
|
|
37157
38309
|
id?: string | undefined;
|
|
37158
38310
|
}>;
|
|
37159
38311
|
getSuppliers(): import("../types/api").RequestData<{
|
|
@@ -37189,6 +38341,7 @@ export declare class API {
|
|
|
37189
38341
|
country?: string | undefined;
|
|
37190
38342
|
}[] | undefined;
|
|
37191
38343
|
account_number?: string | undefined;
|
|
38344
|
+
company_number?: string | undefined;
|
|
37192
38345
|
id?: string | undefined;
|
|
37193
38346
|
}[]>;
|
|
37194
38347
|
createSupplier(supplier: {
|
|
@@ -37259,6 +38412,7 @@ export declare class API {
|
|
|
37259
38412
|
country?: string | undefined;
|
|
37260
38413
|
}[] | undefined;
|
|
37261
38414
|
account_number?: string | undefined;
|
|
38415
|
+
company_number?: string | undefined;
|
|
37262
38416
|
id?: string | undefined;
|
|
37263
38417
|
}>;
|
|
37264
38418
|
getSupplier(supplierId: string): import("../types/api").RequestData<{
|
|
@@ -37294,6 +38448,7 @@ export declare class API {
|
|
|
37294
38448
|
country?: string | undefined;
|
|
37295
38449
|
}[] | undefined;
|
|
37296
38450
|
account_number?: string | undefined;
|
|
38451
|
+
company_number?: string | undefined;
|
|
37297
38452
|
id?: string | undefined;
|
|
37298
38453
|
}>;
|
|
37299
38454
|
updateSupplier(supplierId: string, supplier: {
|
|
@@ -37361,6 +38516,7 @@ export declare class API {
|
|
|
37361
38516
|
country?: string | undefined;
|
|
37362
38517
|
}[] | undefined;
|
|
37363
38518
|
account_number?: string | undefined;
|
|
38519
|
+
company_number?: string | undefined;
|
|
37364
38520
|
id?: string | undefined;
|
|
37365
38521
|
}>;
|
|
37366
38522
|
createInvoice(invoice: {
|
|
@@ -37425,7 +38581,7 @@ export declare class API {
|
|
|
37425
38581
|
amount: number;
|
|
37426
38582
|
dedicated_amount?: number | undefined;
|
|
37427
38583
|
payment_date: string;
|
|
37428
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
38584
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
37429
38585
|
journal_id: string;
|
|
37430
38586
|
journal_name: string;
|
|
37431
38587
|
reconciled?: boolean | undefined;
|
|
@@ -37516,7 +38672,7 @@ export declare class API {
|
|
|
37516
38672
|
amount: number;
|
|
37517
38673
|
dedicated_amount?: number | undefined;
|
|
37518
38674
|
payment_date: string;
|
|
37519
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
38675
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
37520
38676
|
journal_id: string;
|
|
37521
38677
|
journal_name: string;
|
|
37522
38678
|
reconciled?: boolean | undefined;
|
|
@@ -37567,7 +38723,7 @@ export declare class API {
|
|
|
37567
38723
|
amount: number;
|
|
37568
38724
|
dedicated_amount?: number | undefined;
|
|
37569
38725
|
payment_date: string;
|
|
37570
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
38726
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
37571
38727
|
journal_id: string;
|
|
37572
38728
|
journal_name: string;
|
|
37573
38729
|
reconciled?: boolean | undefined;
|
|
@@ -37614,7 +38770,7 @@ export declare class API {
|
|
|
37614
38770
|
amount: number;
|
|
37615
38771
|
dedicated_amount?: number | undefined;
|
|
37616
38772
|
payment_date: string;
|
|
37617
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
38773
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
37618
38774
|
journal_id: string;
|
|
37619
38775
|
journal_name: string;
|
|
37620
38776
|
reconciled?: boolean | undefined;
|
|
@@ -37661,7 +38817,7 @@ export declare class API {
|
|
|
37661
38817
|
amount: number;
|
|
37662
38818
|
dedicated_amount?: number | undefined;
|
|
37663
38819
|
payment_date: string;
|
|
37664
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
38820
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
37665
38821
|
journal_id: string;
|
|
37666
38822
|
journal_name: string;
|
|
37667
38823
|
reconciled?: boolean | undefined;
|
|
@@ -37712,7 +38868,7 @@ export declare class API {
|
|
|
37712
38868
|
amount: number;
|
|
37713
38869
|
dedicated_amount?: number | undefined;
|
|
37714
38870
|
payment_date: string;
|
|
37715
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
38871
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
37716
38872
|
journal_id: string;
|
|
37717
38873
|
journal_name: string;
|
|
37718
38874
|
reconciled?: boolean | undefined;
|
|
@@ -37926,7 +39082,7 @@ export declare class API {
|
|
|
37926
39082
|
amount: number;
|
|
37927
39083
|
dedicated_amount?: number | undefined;
|
|
37928
39084
|
payment_date: string;
|
|
37929
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
39085
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
37930
39086
|
journal_id: string;
|
|
37931
39087
|
journal_name: string;
|
|
37932
39088
|
reconciled?: boolean | undefined;
|
|
@@ -37937,13 +39093,13 @@ export declare class API {
|
|
|
37937
39093
|
id: string;
|
|
37938
39094
|
code: string;
|
|
37939
39095
|
name: string;
|
|
37940
|
-
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation";
|
|
39096
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
37941
39097
|
}[]>;
|
|
37942
39098
|
getVatCodes(): import("../types/api").RequestData<{
|
|
37943
39099
|
id: string;
|
|
37944
39100
|
code?: string | undefined;
|
|
37945
39101
|
label: string;
|
|
37946
|
-
scope?: "
|
|
39102
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
37947
39103
|
rate: number;
|
|
37948
39104
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
37949
39105
|
}[]>;
|
|
@@ -38055,6 +39211,25 @@ export declare class API {
|
|
|
38055
39211
|
reference?: string | undefined;
|
|
38056
39212
|
account_number?: string | undefined;
|
|
38057
39213
|
}[]>;
|
|
39214
|
+
getOutstandings(params: {
|
|
39215
|
+
unposted_allowed: "true" | "false";
|
|
39216
|
+
type: "client" | "supplier";
|
|
39217
|
+
}): import("../types/api").RequestData<{
|
|
39218
|
+
id: string;
|
|
39219
|
+
number?: string | undefined;
|
|
39220
|
+
journal_id: string;
|
|
39221
|
+
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
39222
|
+
date: string;
|
|
39223
|
+
due_date?: string | undefined;
|
|
39224
|
+
currency: string;
|
|
39225
|
+
currency_exchange_rate: number;
|
|
39226
|
+
amount: number;
|
|
39227
|
+
open_amount: number;
|
|
39228
|
+
partner_id: string;
|
|
39229
|
+
account_number: string;
|
|
39230
|
+
reference?: string | undefined;
|
|
39231
|
+
posted: boolean;
|
|
39232
|
+
}[]>;
|
|
38058
39233
|
createFinancialEntry(financial_entry: {
|
|
38059
39234
|
date: string;
|
|
38060
39235
|
journal_id: string;
|
|
@@ -38070,7 +39245,9 @@ export declare class API {
|
|
|
38070
39245
|
}[];
|
|
38071
39246
|
number?: string | undefined;
|
|
38072
39247
|
pdf?: string | undefined;
|
|
38073
|
-
}
|
|
39248
|
+
}, params: {
|
|
39249
|
+
financial_counterpart_account?: string | undefined;
|
|
39250
|
+
} | undefined): import("../types/api").RequestData<{
|
|
38074
39251
|
date: string;
|
|
38075
39252
|
journal_id: string;
|
|
38076
39253
|
currency: string;
|
|
@@ -38087,6 +39264,59 @@ export declare class API {
|
|
|
38087
39264
|
id: string;
|
|
38088
39265
|
number: string;
|
|
38089
39266
|
}>;
|
|
39267
|
+
createJournalEntry(journal_entry: {
|
|
39268
|
+
reference?: string | undefined;
|
|
39269
|
+
due_date?: string | undefined;
|
|
39270
|
+
journal_id: string;
|
|
39271
|
+
name: string;
|
|
39272
|
+
date: string;
|
|
39273
|
+
items: {
|
|
39274
|
+
account_number: string;
|
|
39275
|
+
partner_id?: string | undefined;
|
|
39276
|
+
description?: string | undefined;
|
|
39277
|
+
debit: number;
|
|
39278
|
+
credit: number;
|
|
39279
|
+
currency: string;
|
|
39280
|
+
currency_exchange_rate?: number | undefined;
|
|
39281
|
+
analytic_distribution?: {
|
|
39282
|
+
analytic_plan: string;
|
|
39283
|
+
analytic_accounts: {
|
|
39284
|
+
analytic_account: string;
|
|
39285
|
+
percentage: number;
|
|
39286
|
+
}[];
|
|
39287
|
+
}[] | undefined;
|
|
39288
|
+
pdf?: string | undefined;
|
|
39289
|
+
}[];
|
|
39290
|
+
}): import("../types/api").RequestData<{
|
|
39291
|
+
reference?: string | undefined;
|
|
39292
|
+
due_date?: string | undefined;
|
|
39293
|
+
journal_id: string;
|
|
39294
|
+
name?: string | undefined;
|
|
39295
|
+
journal_name: string;
|
|
39296
|
+
date?: string | undefined;
|
|
39297
|
+
posted?: boolean | undefined;
|
|
39298
|
+
id: string;
|
|
39299
|
+
items?: {
|
|
39300
|
+
account_number: string;
|
|
39301
|
+
partner_id?: string | undefined;
|
|
39302
|
+
description?: string | undefined;
|
|
39303
|
+
debit: number;
|
|
39304
|
+
credit: number;
|
|
39305
|
+
currency: string;
|
|
39306
|
+
currency_exchange_rate?: number | undefined;
|
|
39307
|
+
id: string;
|
|
39308
|
+
partner_name?: string | undefined;
|
|
39309
|
+
account_name: string;
|
|
39310
|
+
matching_numbers?: string[] | undefined;
|
|
39311
|
+
analytic_distribution?: {
|
|
39312
|
+
analytic_plan: string;
|
|
39313
|
+
analytic_accounts: {
|
|
39314
|
+
analytic_account: string;
|
|
39315
|
+
percentage: number;
|
|
39316
|
+
}[];
|
|
39317
|
+
}[] | undefined;
|
|
39318
|
+
}[] | undefined;
|
|
39319
|
+
}>;
|
|
38090
39320
|
}>;
|
|
38091
39321
|
invoicing: import("../types/api").ApiFor<{
|
|
38092
39322
|
getInvoices(params: {
|
|
@@ -38315,7 +39545,7 @@ export declare class API {
|
|
|
38315
39545
|
rate: number;
|
|
38316
39546
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
38317
39547
|
code?: string | undefined;
|
|
38318
|
-
scope?: "
|
|
39548
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
38319
39549
|
}[]>;
|
|
38320
39550
|
getTaxById(taxId: string): import("../types/api").RequestData<{
|
|
38321
39551
|
id: string;
|
|
@@ -38327,7 +39557,7 @@ export declare class API {
|
|
|
38327
39557
|
rate: number;
|
|
38328
39558
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
38329
39559
|
code?: string | undefined;
|
|
38330
|
-
scope?: "
|
|
39560
|
+
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
38331
39561
|
}>;
|
|
38332
39562
|
getOpportunities(): import("../types/api").RequestData<{
|
|
38333
39563
|
id: string;
|
|
@@ -38382,7 +39612,7 @@ export declare class API {
|
|
|
38382
39612
|
} | undefined;
|
|
38383
39613
|
}>;
|
|
38384
39614
|
getContacts(params?: {
|
|
38385
|
-
contact_type?: "all" | "
|
|
39615
|
+
contact_type?: "all" | "supplier" | "prospect" | "customer" | undefined;
|
|
38386
39616
|
page?: number | undefined;
|
|
38387
39617
|
size?: number | undefined;
|
|
38388
39618
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -39246,6 +40476,8 @@ export declare class API {
|
|
|
39246
40476
|
name: string;
|
|
39247
40477
|
status: "active" | "inactive";
|
|
39248
40478
|
api: "Payment" | "Point of Sale" | "eCommerce" | "Accounting" | "Invoicing" | "Communication" | "Banking" | "Custom";
|
|
40479
|
+
logo_url: string;
|
|
40480
|
+
icon_url: string;
|
|
39249
40481
|
credentials?: {
|
|
39250
40482
|
name: string;
|
|
39251
40483
|
optional?: boolean | undefined;
|