@chift/chift-nodejs 1.0.26 → 1.0.28
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/dist/src/modules/accounting.d.ts +8 -0
- package/dist/src/modules/accounting.js +41 -0
- package/dist/src/modules/api.d.ts +2238 -83
- package/dist/src/modules/api.js +2 -0
- package/dist/src/modules/banking.d.ts +3 -1
- package/dist/src/modules/banking.js +10 -2
- package/dist/src/modules/consumer.d.ts +426 -15
- package/dist/src/modules/consumer.js +5 -0
- package/dist/src/modules/consumers.d.ts +2154 -84
- package/dist/src/modules/integrations.d.ts +5 -0
- package/dist/src/modules/internalApi.d.ts +4 -4
- package/dist/src/modules/issues.d.ts +68 -0
- package/dist/src/modules/issues.js +33 -0
- package/dist/src/modules/pms.d.ts +3 -0
- package/dist/src/modules/pms.js +15 -0
- package/dist/src/modules/sync.d.ts +1723 -67
- package/dist/src/modules/syncs.d.ts +0 -1
- package/dist/src/modules/syncs.js +0 -5
- package/dist/src/types/public-api/mappings.d.ts +21 -3
- package/dist/src/types/public-api/schema.d.ts +2441 -762
- package/dist/test/modules/banking.test.js +3 -1
- package/dist/test/modules/consumer.test.js +1 -1
- package/dist/test/modules/raw-data.test.js +6 -4
- package/package.json +1 -1
- package/src/types/public-api/schema.d.ts +2441 -762
|
@@ -26,7 +26,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
26
26
|
value: string;
|
|
27
27
|
}[] | null | undefined;
|
|
28
28
|
country?: string | null | undefined;
|
|
29
|
-
|
|
29
|
+
redirect: boolean | null;
|
|
30
|
+
} | null | undefined) => Promise<{
|
|
30
31
|
url: string;
|
|
31
32
|
}>;
|
|
32
33
|
updateConnection: (connectionId: string, body?: {
|
|
@@ -45,6 +46,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
45
46
|
};
|
|
46
47
|
content?: undefined;
|
|
47
48
|
}>;
|
|
49
|
+
getTransactionByClientRequestId: (connectionId: string, params: {
|
|
50
|
+
client_request_id: string;
|
|
51
|
+
}) => Promise<{
|
|
52
|
+
created_on: string;
|
|
53
|
+
method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
|
|
54
|
+
route: string;
|
|
55
|
+
status_code: number;
|
|
56
|
+
created_entity_id?: string | null | undefined;
|
|
57
|
+
}>;
|
|
48
58
|
enableFlow: (syncId: string, flowId: string, body: {
|
|
49
59
|
integrationids: string[];
|
|
50
60
|
triggerid: string | null;
|
|
@@ -101,6 +111,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
101
111
|
total_refund: number | null;
|
|
102
112
|
total_tip: number | null;
|
|
103
113
|
delivery_fee: number | null;
|
|
114
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
104
115
|
currency?: string | null | undefined;
|
|
105
116
|
country?: string | null | undefined;
|
|
106
117
|
loyalty?: number | null | undefined;
|
|
@@ -179,6 +190,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
179
190
|
total_refund: number | null;
|
|
180
191
|
total_tip: number | null;
|
|
181
192
|
delivery_fee: number | null;
|
|
193
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
182
194
|
currency?: string | null | undefined;
|
|
183
195
|
country?: string | null | undefined;
|
|
184
196
|
loyalty?: number | null | undefined;
|
|
@@ -367,6 +379,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
367
379
|
total_refund: number | null;
|
|
368
380
|
total_tip: number | null;
|
|
369
381
|
delivery_fee: number | null;
|
|
382
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
370
383
|
currency?: string | null | undefined;
|
|
371
384
|
country?: string | null | undefined;
|
|
372
385
|
loyalty?: number | null | undefined;
|
|
@@ -471,6 +484,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
471
484
|
total_refund: number | null;
|
|
472
485
|
total_tip: number | null;
|
|
473
486
|
delivery_fee: number | null;
|
|
487
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
474
488
|
currency?: string | null | undefined;
|
|
475
489
|
country?: string | null | undefined;
|
|
476
490
|
loyalty?: number | null | undefined;
|
|
@@ -650,6 +664,30 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
650
664
|
country?: string | null | undefined;
|
|
651
665
|
}[] | null | undefined;
|
|
652
666
|
}[]>;
|
|
667
|
+
getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
668
|
+
id: string;
|
|
669
|
+
source_ref: {
|
|
670
|
+
id?: string | null | undefined;
|
|
671
|
+
model?: string | null | undefined;
|
|
672
|
+
};
|
|
673
|
+
first_name?: string | null | undefined;
|
|
674
|
+
last_name?: string | null | undefined;
|
|
675
|
+
company_name?: string | null | undefined;
|
|
676
|
+
phone?: string | null | undefined;
|
|
677
|
+
email?: string | null | undefined;
|
|
678
|
+
account_number?: string | null | undefined;
|
|
679
|
+
created_on?: string | null | undefined;
|
|
680
|
+
addresses?: {
|
|
681
|
+
address_type?: string | null | undefined;
|
|
682
|
+
name?: string | null | undefined;
|
|
683
|
+
street?: string | null | undefined;
|
|
684
|
+
number?: string | null | undefined;
|
|
685
|
+
box?: string | null | undefined;
|
|
686
|
+
city?: string | null | undefined;
|
|
687
|
+
postal_code?: string | null | undefined;
|
|
688
|
+
country?: string | null | undefined;
|
|
689
|
+
}[] | null | undefined;
|
|
690
|
+
}>;
|
|
653
691
|
getInvoices(params?: {
|
|
654
692
|
date_from: string;
|
|
655
693
|
date_to: string;
|
|
@@ -752,6 +790,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
752
790
|
untaxed_amount: number;
|
|
753
791
|
total: number;
|
|
754
792
|
}[]>;
|
|
793
|
+
getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
794
|
+
items: {
|
|
795
|
+
id: string;
|
|
796
|
+
source_ref: {
|
|
797
|
+
id?: string | null | undefined;
|
|
798
|
+
model?: string | null | undefined;
|
|
799
|
+
};
|
|
800
|
+
label?: string | null | undefined;
|
|
801
|
+
rate?: number | null | undefined;
|
|
802
|
+
}[];
|
|
803
|
+
total: number;
|
|
804
|
+
page: number;
|
|
805
|
+
size: number;
|
|
806
|
+
}>;
|
|
755
807
|
}>;
|
|
756
808
|
payment: import("../types/api").ApiFor<{
|
|
757
809
|
getPayments(params: {
|
|
@@ -885,6 +937,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
885
937
|
postal_code?: string | null | undefined;
|
|
886
938
|
country?: string | null | undefined;
|
|
887
939
|
}[] | null;
|
|
940
|
+
third_party_account?: string | null | undefined;
|
|
888
941
|
}[]>;
|
|
889
942
|
createClient(client: {
|
|
890
943
|
external_reference?: string | null | undefined;
|
|
@@ -958,6 +1011,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
958
1011
|
postal_code?: string | null | undefined;
|
|
959
1012
|
country?: string | null | undefined;
|
|
960
1013
|
}[] | null;
|
|
1014
|
+
third_party_account?: string | null | undefined;
|
|
961
1015
|
}>;
|
|
962
1016
|
getClient(clientId: string, params?: {
|
|
963
1017
|
folder_id?: string | null | undefined;
|
|
@@ -997,6 +1051,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
997
1051
|
postal_code?: string | null | undefined;
|
|
998
1052
|
country?: string | null | undefined;
|
|
999
1053
|
}[] | null;
|
|
1054
|
+
third_party_account?: string | null | undefined;
|
|
1000
1055
|
}>;
|
|
1001
1056
|
updateClient(clientId: string, client: {
|
|
1002
1057
|
external_reference?: string | null | undefined;
|
|
@@ -1068,6 +1123,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1068
1123
|
postal_code?: string | null | undefined;
|
|
1069
1124
|
country?: string | null | undefined;
|
|
1070
1125
|
}[] | null;
|
|
1126
|
+
third_party_account?: string | null | undefined;
|
|
1071
1127
|
}>;
|
|
1072
1128
|
getSuppliers(params?: {
|
|
1073
1129
|
search?: string | null | undefined;
|
|
@@ -1109,6 +1165,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1109
1165
|
postal_code?: string | null | undefined;
|
|
1110
1166
|
country?: string | null | undefined;
|
|
1111
1167
|
}[] | null;
|
|
1168
|
+
third_party_account?: string | null | undefined;
|
|
1112
1169
|
}[]>;
|
|
1113
1170
|
createSupplier(supplier: {
|
|
1114
1171
|
external_reference?: string | null | undefined;
|
|
@@ -1182,6 +1239,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1182
1239
|
postal_code?: string | null | undefined;
|
|
1183
1240
|
country?: string | null | undefined;
|
|
1184
1241
|
}[] | null;
|
|
1242
|
+
third_party_account?: string | null | undefined;
|
|
1185
1243
|
}>;
|
|
1186
1244
|
getSupplier(supplierId: string, params?: {
|
|
1187
1245
|
folder_id?: string | null | undefined;
|
|
@@ -1221,6 +1279,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1221
1279
|
postal_code?: string | null | undefined;
|
|
1222
1280
|
country?: string | null | undefined;
|
|
1223
1281
|
}[] | null;
|
|
1282
|
+
third_party_account?: string | null | undefined;
|
|
1224
1283
|
}>;
|
|
1225
1284
|
updateSupplier(supplierId: string, supplier: {
|
|
1226
1285
|
external_reference?: string | null | undefined;
|
|
@@ -1292,6 +1351,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1292
1351
|
postal_code?: string | null | undefined;
|
|
1293
1352
|
country?: string | null | undefined;
|
|
1294
1353
|
}[] | null;
|
|
1354
|
+
third_party_account?: string | null | undefined;
|
|
1295
1355
|
}>;
|
|
1296
1356
|
createInvoice(invoice: {
|
|
1297
1357
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
@@ -1303,6 +1363,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1303
1363
|
reference?: string | null | undefined;
|
|
1304
1364
|
payment_communication?: string | null | undefined;
|
|
1305
1365
|
customer_memo?: string | null | undefined;
|
|
1366
|
+
payment_term_id?: string | null | undefined;
|
|
1367
|
+
withholding_tax?: {
|
|
1368
|
+
tax_rate: number;
|
|
1369
|
+
tax_code: string;
|
|
1370
|
+
tax_amount: number;
|
|
1371
|
+
} | null | undefined;
|
|
1306
1372
|
invoice_date: string;
|
|
1307
1373
|
due_date: string;
|
|
1308
1374
|
partner_id?: string | null | undefined;
|
|
@@ -1345,10 +1411,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1345
1411
|
description: string;
|
|
1346
1412
|
analytic_account?: string | null | undefined;
|
|
1347
1413
|
}[];
|
|
1414
|
+
start_date?: string | null | undefined;
|
|
1415
|
+
end_date?: string | null | undefined;
|
|
1416
|
+
payment_method_id?: string | null | undefined;
|
|
1348
1417
|
}, params?: {
|
|
1349
1418
|
folder_id?: string | null | undefined;
|
|
1350
1419
|
force_financial_period?: string | null | undefined;
|
|
1351
1420
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
1421
|
+
ignore_accounting_id?: boolean | undefined;
|
|
1422
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
1352
1423
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
1353
1424
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1354
1425
|
invoice_number?: string | null | undefined;
|
|
@@ -1359,10 +1430,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1359
1430
|
reference?: string | null | undefined;
|
|
1360
1431
|
payment_communication?: string | null | undefined;
|
|
1361
1432
|
customer_memo?: string | null | undefined;
|
|
1433
|
+
payment_term_id?: string | null | undefined;
|
|
1434
|
+
withholding_tax?: {
|
|
1435
|
+
tax_rate: number;
|
|
1436
|
+
tax_code: string;
|
|
1437
|
+
tax_amount: number;
|
|
1438
|
+
} | null | undefined;
|
|
1362
1439
|
id?: string | null | undefined;
|
|
1363
1440
|
invoice_date: string;
|
|
1364
1441
|
due_date: string;
|
|
1365
|
-
partner_id: string;
|
|
1442
|
+
partner_id: string | null;
|
|
1366
1443
|
journal_id?: string | null | undefined;
|
|
1367
1444
|
payments?: {
|
|
1368
1445
|
id: string;
|
|
@@ -1416,12 +1493,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1416
1493
|
postal_code?: string | null | undefined;
|
|
1417
1494
|
country?: string | null | undefined;
|
|
1418
1495
|
}[] | null;
|
|
1496
|
+
third_party_account?: string | null | undefined;
|
|
1419
1497
|
} | null | undefined;
|
|
1420
1498
|
due_dates: {
|
|
1421
1499
|
due_date: string;
|
|
1422
1500
|
payment_method?: string | null | undefined;
|
|
1501
|
+
payment_method_id?: string | null | undefined;
|
|
1423
1502
|
amount: number;
|
|
1424
1503
|
}[] | null;
|
|
1504
|
+
attachments_info?: {
|
|
1505
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
1506
|
+
attachments: {
|
|
1507
|
+
filename?: string | null | undefined;
|
|
1508
|
+
url?: string | null | undefined;
|
|
1509
|
+
}[] | null;
|
|
1510
|
+
} | undefined;
|
|
1511
|
+
accounting_info?: {
|
|
1512
|
+
main_currency?: string | undefined;
|
|
1513
|
+
main_currency_total: number;
|
|
1514
|
+
account_number?: string | null | undefined;
|
|
1515
|
+
} | null | undefined;
|
|
1516
|
+
payment_method_id?: string | null | undefined;
|
|
1425
1517
|
lines: {
|
|
1426
1518
|
line_number: number | null;
|
|
1427
1519
|
unit_price: number;
|
|
@@ -1447,6 +1539,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1447
1539
|
reference?: string | null | undefined;
|
|
1448
1540
|
payment_communication?: string | null | undefined;
|
|
1449
1541
|
customer_memo?: string | null | undefined;
|
|
1542
|
+
payment_term_id?: string | null | undefined;
|
|
1543
|
+
withholding_tax?: {
|
|
1544
|
+
tax_rate: number;
|
|
1545
|
+
tax_code: string;
|
|
1546
|
+
tax_amount: number;
|
|
1547
|
+
} | null | undefined;
|
|
1450
1548
|
invoice_date: string;
|
|
1451
1549
|
due_date: string;
|
|
1452
1550
|
partner_id?: string | null | undefined;
|
|
@@ -1495,10 +1593,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1495
1593
|
}[];
|
|
1496
1594
|
}[] | null;
|
|
1497
1595
|
}[];
|
|
1596
|
+
start_date?: string | null | undefined;
|
|
1597
|
+
end_date?: string | null | undefined;
|
|
1598
|
+
payment_method_id?: string | null | undefined;
|
|
1498
1599
|
}, params?: {
|
|
1499
1600
|
folder_id?: string | null | undefined;
|
|
1500
1601
|
force_financial_period?: string | null | undefined;
|
|
1501
1602
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
1603
|
+
ignore_accounting_id?: boolean | undefined;
|
|
1604
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
1502
1605
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
1503
1606
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1504
1607
|
invoice_number?: string | null | undefined;
|
|
@@ -1509,10 +1612,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1509
1612
|
reference?: string | null | undefined;
|
|
1510
1613
|
payment_communication?: string | null | undefined;
|
|
1511
1614
|
customer_memo?: string | null | undefined;
|
|
1615
|
+
payment_term_id?: string | null | undefined;
|
|
1616
|
+
withholding_tax?: {
|
|
1617
|
+
tax_rate: number;
|
|
1618
|
+
tax_code: string;
|
|
1619
|
+
tax_amount: number;
|
|
1620
|
+
} | null | undefined;
|
|
1512
1621
|
id?: string | null | undefined;
|
|
1513
1622
|
invoice_date: string;
|
|
1514
1623
|
due_date: string;
|
|
1515
|
-
partner_id: string;
|
|
1624
|
+
partner_id: string | null;
|
|
1516
1625
|
journal_id?: string | null | undefined;
|
|
1517
1626
|
payments?: {
|
|
1518
1627
|
id: string;
|
|
@@ -1566,12 +1675,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1566
1675
|
postal_code?: string | null | undefined;
|
|
1567
1676
|
country?: string | null | undefined;
|
|
1568
1677
|
}[] | null;
|
|
1678
|
+
third_party_account?: string | null | undefined;
|
|
1569
1679
|
} | null | undefined;
|
|
1570
1680
|
due_dates: {
|
|
1571
1681
|
due_date: string;
|
|
1572
1682
|
payment_method?: string | null | undefined;
|
|
1683
|
+
payment_method_id?: string | null | undefined;
|
|
1573
1684
|
amount: number;
|
|
1574
1685
|
}[] | null;
|
|
1686
|
+
attachments_info?: {
|
|
1687
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
1688
|
+
attachments: {
|
|
1689
|
+
filename?: string | null | undefined;
|
|
1690
|
+
url?: string | null | undefined;
|
|
1691
|
+
}[] | null;
|
|
1692
|
+
} | undefined;
|
|
1693
|
+
accounting_info?: {
|
|
1694
|
+
main_currency?: string | undefined;
|
|
1695
|
+
main_currency_total: number;
|
|
1696
|
+
account_number?: string | null | undefined;
|
|
1697
|
+
} | null | undefined;
|
|
1698
|
+
payment_method_id?: string | null | undefined;
|
|
1575
1699
|
lines: {
|
|
1576
1700
|
line_number: number | null;
|
|
1577
1701
|
unit_price: number;
|
|
@@ -1613,10 +1737,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1613
1737
|
reference?: string | null | undefined;
|
|
1614
1738
|
payment_communication?: string | null | undefined;
|
|
1615
1739
|
customer_memo?: string | null | undefined;
|
|
1740
|
+
payment_term_id?: string | null | undefined;
|
|
1741
|
+
withholding_tax?: {
|
|
1742
|
+
tax_rate: number;
|
|
1743
|
+
tax_code: string;
|
|
1744
|
+
tax_amount: number;
|
|
1745
|
+
} | null | undefined;
|
|
1616
1746
|
id?: string | null | undefined;
|
|
1617
1747
|
invoice_date: string;
|
|
1618
1748
|
due_date: string;
|
|
1619
|
-
partner_id: string;
|
|
1749
|
+
partner_id: string | null;
|
|
1620
1750
|
journal_id?: string | null | undefined;
|
|
1621
1751
|
payments?: {
|
|
1622
1752
|
id: string;
|
|
@@ -1670,12 +1800,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1670
1800
|
postal_code?: string | null | undefined;
|
|
1671
1801
|
country?: string | null | undefined;
|
|
1672
1802
|
}[] | null;
|
|
1803
|
+
third_party_account?: string | null | undefined;
|
|
1673
1804
|
} | null | undefined;
|
|
1674
1805
|
due_dates: {
|
|
1675
1806
|
due_date: string;
|
|
1676
1807
|
payment_method?: string | null | undefined;
|
|
1808
|
+
payment_method_id?: string | null | undefined;
|
|
1677
1809
|
amount: number;
|
|
1678
1810
|
}[] | null;
|
|
1811
|
+
attachments_info?: {
|
|
1812
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
1813
|
+
attachments: {
|
|
1814
|
+
filename?: string | null | undefined;
|
|
1815
|
+
url?: string | null | undefined;
|
|
1816
|
+
}[] | null;
|
|
1817
|
+
} | undefined;
|
|
1818
|
+
accounting_info?: {
|
|
1819
|
+
main_currency?: string | undefined;
|
|
1820
|
+
main_currency_total: number;
|
|
1821
|
+
account_number?: string | null | undefined;
|
|
1822
|
+
} | null | undefined;
|
|
1823
|
+
payment_method_id?: string | null | undefined;
|
|
1679
1824
|
lines: {
|
|
1680
1825
|
line_number: number | null;
|
|
1681
1826
|
unit_price: number;
|
|
@@ -1706,10 +1851,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1706
1851
|
reference?: string | null | undefined;
|
|
1707
1852
|
payment_communication?: string | null | undefined;
|
|
1708
1853
|
customer_memo?: string | null | undefined;
|
|
1854
|
+
payment_term_id?: string | null | undefined;
|
|
1855
|
+
withholding_tax?: {
|
|
1856
|
+
tax_rate: number;
|
|
1857
|
+
tax_code: string;
|
|
1858
|
+
tax_amount: number;
|
|
1859
|
+
} | null | undefined;
|
|
1709
1860
|
id?: string | null | undefined;
|
|
1710
1861
|
invoice_date: string;
|
|
1711
1862
|
due_date: string;
|
|
1712
|
-
partner_id: string;
|
|
1863
|
+
partner_id: string | null;
|
|
1713
1864
|
journal_id?: string | null | undefined;
|
|
1714
1865
|
payments?: {
|
|
1715
1866
|
id: string;
|
|
@@ -1763,12 +1914,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1763
1914
|
postal_code?: string | null | undefined;
|
|
1764
1915
|
country?: string | null | undefined;
|
|
1765
1916
|
}[] | null;
|
|
1917
|
+
third_party_account?: string | null | undefined;
|
|
1766
1918
|
} | null | undefined;
|
|
1767
1919
|
due_dates: {
|
|
1768
1920
|
due_date: string;
|
|
1769
1921
|
payment_method?: string | null | undefined;
|
|
1922
|
+
payment_method_id?: string | null | undefined;
|
|
1770
1923
|
amount: number;
|
|
1771
1924
|
}[] | null;
|
|
1925
|
+
attachments_info?: {
|
|
1926
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
1927
|
+
attachments: {
|
|
1928
|
+
filename?: string | null | undefined;
|
|
1929
|
+
url?: string | null | undefined;
|
|
1930
|
+
}[] | null;
|
|
1931
|
+
} | undefined;
|
|
1932
|
+
accounting_info?: {
|
|
1933
|
+
main_currency?: string | undefined;
|
|
1934
|
+
main_currency_total: number;
|
|
1935
|
+
account_number?: string | null | undefined;
|
|
1936
|
+
} | null | undefined;
|
|
1937
|
+
payment_method_id?: string | null | undefined;
|
|
1772
1938
|
lines: {
|
|
1773
1939
|
line_number: number | null;
|
|
1774
1940
|
unit_price: number;
|
|
@@ -1799,10 +1965,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1799
1965
|
reference?: string | null | undefined;
|
|
1800
1966
|
payment_communication?: string | null | undefined;
|
|
1801
1967
|
customer_memo?: string | null | undefined;
|
|
1968
|
+
payment_term_id?: string | null | undefined;
|
|
1969
|
+
withholding_tax?: {
|
|
1970
|
+
tax_rate: number;
|
|
1971
|
+
tax_code: string;
|
|
1972
|
+
tax_amount: number;
|
|
1973
|
+
} | null | undefined;
|
|
1802
1974
|
id?: string | null | undefined;
|
|
1803
1975
|
invoice_date: string;
|
|
1804
1976
|
due_date: string;
|
|
1805
|
-
partner_id: string;
|
|
1977
|
+
partner_id: string | null;
|
|
1806
1978
|
journal_id?: string | null | undefined;
|
|
1807
1979
|
payments?: {
|
|
1808
1980
|
id: string;
|
|
@@ -1856,12 +2028,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1856
2028
|
postal_code?: string | null | undefined;
|
|
1857
2029
|
country?: string | null | undefined;
|
|
1858
2030
|
}[] | null;
|
|
2031
|
+
third_party_account?: string | null | undefined;
|
|
1859
2032
|
} | null | undefined;
|
|
1860
2033
|
due_dates: {
|
|
1861
2034
|
due_date: string;
|
|
1862
2035
|
payment_method?: string | null | undefined;
|
|
2036
|
+
payment_method_id?: string | null | undefined;
|
|
1863
2037
|
amount: number;
|
|
1864
2038
|
}[] | null;
|
|
2039
|
+
attachments_info?: {
|
|
2040
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
2041
|
+
attachments: {
|
|
2042
|
+
filename?: string | null | undefined;
|
|
2043
|
+
url?: string | null | undefined;
|
|
2044
|
+
}[] | null;
|
|
2045
|
+
} | undefined;
|
|
2046
|
+
accounting_info?: {
|
|
2047
|
+
main_currency?: string | undefined;
|
|
2048
|
+
main_currency_total: number;
|
|
2049
|
+
account_number?: string | null | undefined;
|
|
2050
|
+
} | null | undefined;
|
|
2051
|
+
payment_method_id?: string | null | undefined;
|
|
1865
2052
|
lines: {
|
|
1866
2053
|
line_number: number | null;
|
|
1867
2054
|
unit_price: number;
|
|
@@ -1903,10 +2090,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1903
2090
|
reference?: string | null | undefined;
|
|
1904
2091
|
payment_communication?: string | null | undefined;
|
|
1905
2092
|
customer_memo?: string | null | undefined;
|
|
2093
|
+
payment_term_id?: string | null | undefined;
|
|
2094
|
+
withholding_tax?: {
|
|
2095
|
+
tax_rate: number;
|
|
2096
|
+
tax_code: string;
|
|
2097
|
+
tax_amount: number;
|
|
2098
|
+
} | null | undefined;
|
|
1906
2099
|
id?: string | null | undefined;
|
|
1907
2100
|
invoice_date: string;
|
|
1908
2101
|
due_date: string;
|
|
1909
|
-
partner_id: string;
|
|
2102
|
+
partner_id: string | null;
|
|
1910
2103
|
journal_id?: string | null | undefined;
|
|
1911
2104
|
payments?: {
|
|
1912
2105
|
id: string;
|
|
@@ -1960,12 +2153,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1960
2153
|
postal_code?: string | null | undefined;
|
|
1961
2154
|
country?: string | null | undefined;
|
|
1962
2155
|
}[] | null;
|
|
2156
|
+
third_party_account?: string | null | undefined;
|
|
1963
2157
|
} | null | undefined;
|
|
1964
2158
|
due_dates: {
|
|
1965
2159
|
due_date: string;
|
|
1966
2160
|
payment_method?: string | null | undefined;
|
|
2161
|
+
payment_method_id?: string | null | undefined;
|
|
1967
2162
|
amount: number;
|
|
1968
2163
|
}[] | null;
|
|
2164
|
+
attachments_info?: {
|
|
2165
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
2166
|
+
attachments: {
|
|
2167
|
+
filename?: string | null | undefined;
|
|
2168
|
+
url?: string | null | undefined;
|
|
2169
|
+
}[] | null;
|
|
2170
|
+
} | undefined;
|
|
2171
|
+
accounting_info?: {
|
|
2172
|
+
main_currency?: string | undefined;
|
|
2173
|
+
main_currency_total: number;
|
|
2174
|
+
account_number?: string | null | undefined;
|
|
2175
|
+
} | null | undefined;
|
|
2176
|
+
payment_method_id?: string | null | undefined;
|
|
1969
2177
|
lines: {
|
|
1970
2178
|
line_number: number | null;
|
|
1971
2179
|
unit_price: number;
|
|
@@ -2113,7 +2321,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2113
2321
|
folder_id?: string | null | undefined;
|
|
2114
2322
|
updated_after?: string | null | undefined;
|
|
2115
2323
|
unposted_allowed: "true" | "false";
|
|
2116
|
-
journal_id
|
|
2324
|
+
journal_id?: string | null | undefined;
|
|
2117
2325
|
partner_id?: string | null | undefined;
|
|
2118
2326
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2119
2327
|
reference?: string | null | undefined;
|
|
@@ -2127,9 +2335,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2127
2335
|
due_dates: {
|
|
2128
2336
|
due_date: string;
|
|
2129
2337
|
payment_method?: string | null | undefined;
|
|
2338
|
+
payment_method_id?: string | null | undefined;
|
|
2130
2339
|
debit: number | null;
|
|
2131
2340
|
credit: number | null;
|
|
2132
2341
|
}[] | null;
|
|
2342
|
+
attachments_info?: {
|
|
2343
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
2344
|
+
attachments: {
|
|
2345
|
+
filename?: string | null | undefined;
|
|
2346
|
+
url?: string | null | undefined;
|
|
2347
|
+
}[] | null;
|
|
2348
|
+
} | undefined;
|
|
2133
2349
|
items: {
|
|
2134
2350
|
account_number: string;
|
|
2135
2351
|
partner_id?: string | null | undefined;
|
|
@@ -2152,7 +2368,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2152
2368
|
folder_id?: string | null | undefined;
|
|
2153
2369
|
updated_after?: string | null | undefined;
|
|
2154
2370
|
unposted_allowed: "true" | "false";
|
|
2155
|
-
journal_id
|
|
2371
|
+
journal_id?: string | null | undefined;
|
|
2156
2372
|
partner_id?: string | null | undefined;
|
|
2157
2373
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2158
2374
|
reference?: string | null | undefined;
|
|
@@ -2166,9 +2382,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2166
2382
|
due_dates: {
|
|
2167
2383
|
due_date: string;
|
|
2168
2384
|
payment_method?: string | null | undefined;
|
|
2385
|
+
payment_method_id?: string | null | undefined;
|
|
2169
2386
|
debit: number | null;
|
|
2170
2387
|
credit: number | null;
|
|
2171
2388
|
}[] | null;
|
|
2389
|
+
attachments_info?: {
|
|
2390
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
2391
|
+
attachments: {
|
|
2392
|
+
filename?: string | null | undefined;
|
|
2393
|
+
url?: string | null | undefined;
|
|
2394
|
+
}[] | null;
|
|
2395
|
+
} | undefined;
|
|
2172
2396
|
items: {
|
|
2173
2397
|
account_number: string;
|
|
2174
2398
|
partner_id?: string | null | undefined;
|
|
@@ -2258,6 +2482,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2258
2482
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2259
2483
|
id: string;
|
|
2260
2484
|
code?: string | null | undefined;
|
|
2485
|
+
active: boolean | null;
|
|
2261
2486
|
label: string;
|
|
2262
2487
|
scope: "unknown" | "nat" | "eu" | "int" | null;
|
|
2263
2488
|
rate: number;
|
|
@@ -2265,6 +2490,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2265
2490
|
deductible_account?: string | null | undefined;
|
|
2266
2491
|
payable_account?: string | null | undefined;
|
|
2267
2492
|
reversed: boolean | null;
|
|
2493
|
+
withholding_tax: boolean | null;
|
|
2268
2494
|
country?: string | null | undefined;
|
|
2269
2495
|
}[]>;
|
|
2270
2496
|
getMiscOperations(params?: {
|
|
@@ -2367,12 +2593,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2367
2593
|
getChartOfAccounts(params?: {
|
|
2368
2594
|
folder_id?: string | null | undefined;
|
|
2369
2595
|
classes?: string | null | undefined;
|
|
2370
|
-
type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
|
|
2596
|
+
type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
|
|
2371
2597
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2372
2598
|
number: string;
|
|
2373
2599
|
name: string;
|
|
2374
2600
|
active: boolean | null;
|
|
2375
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
2601
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
2602
|
+
scheme_ids?: string[] | null | undefined;
|
|
2603
|
+
accounting_category?: string | null | undefined;
|
|
2376
2604
|
}[]>;
|
|
2377
2605
|
getBalanceOfAccounts(filter: {
|
|
2378
2606
|
accounts: string[];
|
|
@@ -2448,11 +2676,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2448
2676
|
account: string;
|
|
2449
2677
|
amount: number;
|
|
2450
2678
|
description?: string | null | undefined;
|
|
2679
|
+
automated_matching_number?: string | null | undefined;
|
|
2451
2680
|
}[];
|
|
2452
2681
|
pdf?: string | null | undefined;
|
|
2453
2682
|
}, params?: {
|
|
2454
2683
|
folder_id?: string | null | undefined;
|
|
2455
2684
|
financial_counterpart_account?: string | null | undefined;
|
|
2685
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
2456
2686
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2457
2687
|
date: string;
|
|
2458
2688
|
journal_id: string;
|
|
@@ -2466,6 +2696,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2466
2696
|
account: string;
|
|
2467
2697
|
amount: number;
|
|
2468
2698
|
description?: string | null | undefined;
|
|
2699
|
+
automated_matching_number?: string | null | undefined;
|
|
2469
2700
|
counterpart_account: string;
|
|
2470
2701
|
}[];
|
|
2471
2702
|
}>;
|
|
@@ -2493,6 +2724,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2493
2724
|
}[];
|
|
2494
2725
|
}[] | null;
|
|
2495
2726
|
tax_code?: string | null | undefined;
|
|
2727
|
+
tax_info?: {
|
|
2728
|
+
tax_code: string;
|
|
2729
|
+
tax_amount: number;
|
|
2730
|
+
vat_account?: string | null | undefined;
|
|
2731
|
+
reversed_vat_account?: string | null | undefined;
|
|
2732
|
+
description?: string | null | undefined;
|
|
2733
|
+
} | null | undefined;
|
|
2496
2734
|
account_info?: {
|
|
2497
2735
|
account_number: string;
|
|
2498
2736
|
account_name: string;
|
|
@@ -2505,6 +2743,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2505
2743
|
}, params?: {
|
|
2506
2744
|
folder_id?: string | null | undefined;
|
|
2507
2745
|
force_currency_exchange?: "true" | "false" | null | undefined;
|
|
2746
|
+
ignore_accounting_id?: boolean | undefined;
|
|
2508
2747
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2509
2748
|
reference?: string | null | undefined;
|
|
2510
2749
|
due_date?: string | null | undefined;
|
|
@@ -2517,9 +2756,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2517
2756
|
due_dates: {
|
|
2518
2757
|
due_date: string;
|
|
2519
2758
|
payment_method?: string | null | undefined;
|
|
2759
|
+
payment_method_id?: string | null | undefined;
|
|
2520
2760
|
debit: number | null;
|
|
2521
2761
|
credit: number | null;
|
|
2522
2762
|
}[] | null;
|
|
2763
|
+
attachments_info?: {
|
|
2764
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
2765
|
+
attachments: {
|
|
2766
|
+
filename?: string | null | undefined;
|
|
2767
|
+
url?: string | null | undefined;
|
|
2768
|
+
}[] | null;
|
|
2769
|
+
} | undefined;
|
|
2523
2770
|
items: {
|
|
2524
2771
|
account_number: string;
|
|
2525
2772
|
partner_id?: string | null | undefined;
|
|
@@ -2635,14 +2882,35 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2635
2882
|
createLedgerAccount(account: {
|
|
2636
2883
|
name: string;
|
|
2637
2884
|
number: string;
|
|
2638
|
-
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
2885
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
|
|
2639
2886
|
}, params?: {
|
|
2640
2887
|
folder_id?: string | null | undefined;
|
|
2641
2888
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2642
2889
|
number: string;
|
|
2643
2890
|
name: string;
|
|
2644
2891
|
active: boolean | null;
|
|
2645
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
2892
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
2893
|
+
scheme_ids?: string[] | null | undefined;
|
|
2894
|
+
accounting_category?: string | null | undefined;
|
|
2895
|
+
}>;
|
|
2896
|
+
getBankAccounts(params?: {
|
|
2897
|
+
folder_id?: string | null | undefined;
|
|
2898
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2899
|
+
items: {
|
|
2900
|
+
id: string;
|
|
2901
|
+
code?: string | null | undefined;
|
|
2902
|
+
currency?: string | null | undefined;
|
|
2903
|
+
account_name?: string | null | undefined;
|
|
2904
|
+
account_number?: string | null | undefined;
|
|
2905
|
+
iban?: string | null | undefined;
|
|
2906
|
+
bank_name?: string | null | undefined;
|
|
2907
|
+
journal_id?: string | null | undefined;
|
|
2908
|
+
ledger_account?: string | null | undefined;
|
|
2909
|
+
unallocated_account?: string | null | undefined;
|
|
2910
|
+
}[];
|
|
2911
|
+
total: number;
|
|
2912
|
+
page: number;
|
|
2913
|
+
size: number;
|
|
2646
2914
|
}>;
|
|
2647
2915
|
createBankAccount(bankAccount: {
|
|
2648
2916
|
code: string;
|
|
@@ -2665,6 +2933,45 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2665
2933
|
ledger_account?: string | null | undefined;
|
|
2666
2934
|
unallocated_account?: string | null | undefined;
|
|
2667
2935
|
}>;
|
|
2936
|
+
createBankTransactions(bankStatement: {
|
|
2937
|
+
bank_statement_date: string;
|
|
2938
|
+
bank_account_id: string;
|
|
2939
|
+
external_bank_statement_id: string;
|
|
2940
|
+
opening_balance?: number | null | undefined;
|
|
2941
|
+
pdf?: string | null | undefined;
|
|
2942
|
+
items: {
|
|
2943
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
2944
|
+
account?: string | null | undefined;
|
|
2945
|
+
description?: string | null | undefined;
|
|
2946
|
+
external_transaction_id?: string | null | undefined;
|
|
2947
|
+
date: string;
|
|
2948
|
+
amount: number;
|
|
2949
|
+
fee_amount: number | null;
|
|
2950
|
+
tax_amount: number | null;
|
|
2951
|
+
currency: string;
|
|
2952
|
+
currency_exchange_rate: number | null;
|
|
2953
|
+
}[];
|
|
2954
|
+
}, params?: {
|
|
2955
|
+
folder_id?: string | null | undefined;
|
|
2956
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2957
|
+
bank_statement_date: string;
|
|
2958
|
+
bank_account_id: string;
|
|
2959
|
+
id?: string | null | undefined;
|
|
2960
|
+
external_bank_statement_id?: string | null | undefined;
|
|
2961
|
+
items: {
|
|
2962
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
2963
|
+
account?: string | null | undefined;
|
|
2964
|
+
description?: string | null | undefined;
|
|
2965
|
+
external_transaction_id?: string | null | undefined;
|
|
2966
|
+
date: string;
|
|
2967
|
+
amount: number;
|
|
2968
|
+
fee_amount: number | null;
|
|
2969
|
+
tax_amount: number | null;
|
|
2970
|
+
currency: string;
|
|
2971
|
+
currency_exchange_rate: number | null;
|
|
2972
|
+
id?: string | null | undefined;
|
|
2973
|
+
}[];
|
|
2974
|
+
}>;
|
|
2668
2975
|
getJournalEntry(journalEntryId: string, params?: {
|
|
2669
2976
|
folder_id?: string | null | undefined;
|
|
2670
2977
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -2679,9 +2986,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2679
2986
|
due_dates: {
|
|
2680
2987
|
due_date: string;
|
|
2681
2988
|
payment_method?: string | null | undefined;
|
|
2989
|
+
payment_method_id?: string | null | undefined;
|
|
2682
2990
|
debit: number | null;
|
|
2683
2991
|
credit: number | null;
|
|
2684
2992
|
}[] | null;
|
|
2993
|
+
attachments_info?: {
|
|
2994
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
2995
|
+
attachments: {
|
|
2996
|
+
filename?: string | null | undefined;
|
|
2997
|
+
url?: string | null | undefined;
|
|
2998
|
+
}[] | null;
|
|
2999
|
+
} | undefined;
|
|
2685
3000
|
items: {
|
|
2686
3001
|
account_number: string;
|
|
2687
3002
|
partner_id?: string | null | undefined;
|
|
@@ -2716,6 +3031,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2716
3031
|
page: number;
|
|
2717
3032
|
size: number;
|
|
2718
3033
|
}>;
|
|
3034
|
+
getPaymentTerms(params?: {
|
|
3035
|
+
folder_id?: string | null | undefined;
|
|
3036
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3037
|
+
items: {
|
|
3038
|
+
id: string;
|
|
3039
|
+
name?: string | null | undefined;
|
|
3040
|
+
}[];
|
|
3041
|
+
total: number;
|
|
3042
|
+
page: number;
|
|
3043
|
+
size: number;
|
|
3044
|
+
}>;
|
|
3045
|
+
getSchemes(params?: {
|
|
3046
|
+
folder_id?: string | null | undefined;
|
|
3047
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3048
|
+
items: {
|
|
3049
|
+
id: string;
|
|
3050
|
+
code: string;
|
|
3051
|
+
name: string;
|
|
3052
|
+
}[];
|
|
3053
|
+
total: number;
|
|
3054
|
+
page: number;
|
|
3055
|
+
size: number;
|
|
3056
|
+
}>;
|
|
2719
3057
|
createInvoicePayment(body: {
|
|
2720
3058
|
date: string;
|
|
2721
3059
|
payment_method_id: string;
|
|
@@ -2735,6 +3073,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2735
3073
|
};
|
|
2736
3074
|
content?: undefined;
|
|
2737
3075
|
}>;
|
|
3076
|
+
exportFec(params: {
|
|
3077
|
+
folder_id?: string | null | undefined;
|
|
3078
|
+
date_from: string;
|
|
3079
|
+
date_to: string;
|
|
3080
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3081
|
+
JournalCode: string;
|
|
3082
|
+
JournalLib: string;
|
|
3083
|
+
EcritureNum: string;
|
|
3084
|
+
EcritureDate: string;
|
|
3085
|
+
CompteNum: string;
|
|
3086
|
+
CompteLib: string;
|
|
3087
|
+
CompAuxNum: string;
|
|
3088
|
+
CompAuxLib: string;
|
|
3089
|
+
PieceRef: string;
|
|
3090
|
+
PieceDate: string;
|
|
3091
|
+
Debit: number;
|
|
3092
|
+
Credit: number;
|
|
3093
|
+
EcritureLet: string;
|
|
3094
|
+
DateLet: string | null;
|
|
3095
|
+
ValidDate: string | null;
|
|
3096
|
+
Montantdevise: number;
|
|
3097
|
+
Idevise: string;
|
|
3098
|
+
}[]>;
|
|
2738
3099
|
}>;
|
|
2739
3100
|
invoicing: import("../types/api").ApiFor<{
|
|
2740
3101
|
getInvoices(params?: {
|
|
@@ -2744,6 +3105,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2744
3105
|
updated_after?: string | null | undefined;
|
|
2745
3106
|
include_invoice_lines?: "true" | "false" | null | undefined;
|
|
2746
3107
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
3108
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
2747
3109
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2748
3110
|
id: string;
|
|
2749
3111
|
source_ref: {
|
|
@@ -2773,6 +3135,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2773
3135
|
product_id?: string | null | undefined;
|
|
2774
3136
|
product_code?: string | null | undefined;
|
|
2775
3137
|
product_name?: string | null | undefined;
|
|
3138
|
+
analytic_distribution: {
|
|
3139
|
+
analytic_plan_code: string;
|
|
3140
|
+
analytic_accounts: {
|
|
3141
|
+
analytic_account_code: string;
|
|
3142
|
+
analytic_account_name: string;
|
|
3143
|
+
percentage: number;
|
|
3144
|
+
}[];
|
|
3145
|
+
}[] | null;
|
|
2776
3146
|
}[];
|
|
2777
3147
|
partner_id?: string | null | undefined;
|
|
2778
3148
|
invoice_number?: string | null | undefined;
|
|
@@ -2812,6 +3182,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2812
3182
|
}[]>;
|
|
2813
3183
|
getInvoiceById(invoiceId: string, params?: {
|
|
2814
3184
|
include_pdf?: "true" | "false" | null | undefined;
|
|
3185
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
2815
3186
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2816
3187
|
id: string;
|
|
2817
3188
|
source_ref: {
|
|
@@ -2841,6 +3212,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2841
3212
|
product_id?: string | null | undefined;
|
|
2842
3213
|
product_code?: string | null | undefined;
|
|
2843
3214
|
product_name?: string | null | undefined;
|
|
3215
|
+
analytic_distribution: {
|
|
3216
|
+
analytic_plan_code: string;
|
|
3217
|
+
analytic_accounts: {
|
|
3218
|
+
analytic_account_code: string;
|
|
3219
|
+
analytic_account_name: string;
|
|
3220
|
+
percentage: number;
|
|
3221
|
+
}[];
|
|
3222
|
+
}[] | null;
|
|
2844
3223
|
}[];
|
|
2845
3224
|
partner_id?: string | null | undefined;
|
|
2846
3225
|
invoice_number?: string | null | undefined;
|
|
@@ -2962,6 +3341,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2962
3341
|
product_id?: string | null | undefined;
|
|
2963
3342
|
product_code?: string | null | undefined;
|
|
2964
3343
|
product_name?: string | null | undefined;
|
|
3344
|
+
analytic_distribution: {
|
|
3345
|
+
analytic_plan_code: string;
|
|
3346
|
+
analytic_accounts: {
|
|
3347
|
+
analytic_account_code: string;
|
|
3348
|
+
analytic_account_name: string;
|
|
3349
|
+
percentage: number;
|
|
3350
|
+
}[];
|
|
3351
|
+
}[] | null;
|
|
2965
3352
|
}[];
|
|
2966
3353
|
partner_id?: string | null | undefined;
|
|
2967
3354
|
invoice_number?: string | null | undefined;
|
|
@@ -4540,14 +4927,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4540
4927
|
reference: string;
|
|
4541
4928
|
reference_type: string;
|
|
4542
4929
|
holder_name?: string | null | undefined;
|
|
4930
|
+
active: boolean | null;
|
|
4543
4931
|
}[]>;
|
|
4544
|
-
getAccountTransactions(
|
|
4932
|
+
getAccountTransactions(params: {
|
|
4545
4933
|
date_from?: string | null | undefined;
|
|
4546
4934
|
date_to?: string | null | undefined;
|
|
4935
|
+
updated_after?: string | null | undefined;
|
|
4936
|
+
account_id: string;
|
|
4547
4937
|
date_type?: "value_date" | "execution_date" | null | undefined;
|
|
4548
|
-
}
|
|
4938
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
4549
4939
|
id: string;
|
|
4550
4940
|
amount: number;
|
|
4941
|
+
tax_amount?: number | null | undefined;
|
|
4551
4942
|
currency: string;
|
|
4552
4943
|
description?: string | null | undefined;
|
|
4553
4944
|
additional_information?: string | null | undefined;
|
|
@@ -4557,6 +4948,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4557
4948
|
creation_date: string;
|
|
4558
4949
|
value_date: string;
|
|
4559
4950
|
execution_date: string;
|
|
4951
|
+
internal_transaction: boolean | null;
|
|
4952
|
+
operation_type: "other" | "fee" | "incoming_transfer" | "outgoing_transfer" | "card" | "direct_debit" | "direct_debit_collection" | "direct_debit_hold" | "cheque" | "recall" | "swift_income" | "pay_later" | "financing_installment" | null;
|
|
4953
|
+
last_update_on?: string | null | undefined;
|
|
4954
|
+
status?: "completed" | "pending" | "declined" | null | undefined;
|
|
4955
|
+
attachments_info?: {
|
|
4956
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
4957
|
+
attachments: {
|
|
4958
|
+
filename?: string | null | undefined;
|
|
4959
|
+
url?: string | null | undefined;
|
|
4960
|
+
}[] | null;
|
|
4961
|
+
} | undefined;
|
|
4560
4962
|
}[]>;
|
|
4561
4963
|
getAccountCounterparts(params?: {
|
|
4562
4964
|
date_from?: string | null | undefined;
|
|
@@ -4567,6 +4969,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4567
4969
|
reference?: string | null | undefined;
|
|
4568
4970
|
details?: string | null | undefined;
|
|
4569
4971
|
}[]>;
|
|
4972
|
+
getAttachments(params: {
|
|
4973
|
+
transaction_id: string;
|
|
4974
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
4975
|
+
items: {
|
|
4976
|
+
id: string;
|
|
4977
|
+
base64_string: string;
|
|
4978
|
+
}[];
|
|
4979
|
+
total: number;
|
|
4980
|
+
page: number;
|
|
4981
|
+
size: number;
|
|
4982
|
+
}>;
|
|
4570
4983
|
}>;
|
|
4571
4984
|
getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
|
|
4572
4985
|
data: {
|
|
@@ -4606,6 +5019,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4606
5019
|
source_id?: string | null | undefined;
|
|
4607
5020
|
target_id?: string | null | undefined;
|
|
4608
5021
|
}[];
|
|
5022
|
+
hidden_source_ids: string[];
|
|
4609
5023
|
sub_mapping_name: string;
|
|
4610
5024
|
sub_mapping_description?: string | null | undefined;
|
|
4611
5025
|
}[] | null | undefined;
|
|
@@ -4769,7 +5183,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4769
5183
|
value: string;
|
|
4770
5184
|
}[] | null | undefined;
|
|
4771
5185
|
country?: string | null | undefined;
|
|
4772
|
-
|
|
5186
|
+
redirect: boolean | null;
|
|
5187
|
+
} | null | undefined) => Promise<{
|
|
4773
5188
|
url: string;
|
|
4774
5189
|
}>;
|
|
4775
5190
|
updateConnection: (connectionId: string, body?: {
|
|
@@ -4788,6 +5203,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4788
5203
|
};
|
|
4789
5204
|
content?: undefined;
|
|
4790
5205
|
}>;
|
|
5206
|
+
getTransactionByClientRequestId: (connectionId: string, params: {
|
|
5207
|
+
client_request_id: string;
|
|
5208
|
+
}) => Promise<{
|
|
5209
|
+
created_on: string;
|
|
5210
|
+
method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
|
|
5211
|
+
route: string;
|
|
5212
|
+
status_code: number;
|
|
5213
|
+
created_entity_id?: string | null | undefined;
|
|
5214
|
+
}>;
|
|
4791
5215
|
enableFlow: (syncId: string, flowId: string, body: {
|
|
4792
5216
|
integrationids: string[];
|
|
4793
5217
|
triggerid: string | null;
|
|
@@ -4844,6 +5268,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4844
5268
|
total_refund: number | null;
|
|
4845
5269
|
total_tip: number | null;
|
|
4846
5270
|
delivery_fee: number | null;
|
|
5271
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
4847
5272
|
currency?: string | null | undefined;
|
|
4848
5273
|
country?: string | null | undefined;
|
|
4849
5274
|
loyalty?: number | null | undefined;
|
|
@@ -4922,6 +5347,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4922
5347
|
total_refund: number | null;
|
|
4923
5348
|
total_tip: number | null;
|
|
4924
5349
|
delivery_fee: number | null;
|
|
5350
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
4925
5351
|
currency?: string | null | undefined;
|
|
4926
5352
|
country?: string | null | undefined;
|
|
4927
5353
|
loyalty?: number | null | undefined;
|
|
@@ -5110,6 +5536,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5110
5536
|
total_refund: number | null;
|
|
5111
5537
|
total_tip: number | null;
|
|
5112
5538
|
delivery_fee: number | null;
|
|
5539
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
5113
5540
|
currency?: string | null | undefined;
|
|
5114
5541
|
country?: string | null | undefined;
|
|
5115
5542
|
loyalty?: number | null | undefined;
|
|
@@ -5214,6 +5641,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5214
5641
|
total_refund: number | null;
|
|
5215
5642
|
total_tip: number | null;
|
|
5216
5643
|
delivery_fee: number | null;
|
|
5644
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
5217
5645
|
currency?: string | null | undefined;
|
|
5218
5646
|
country?: string | null | undefined;
|
|
5219
5647
|
loyalty?: number | null | undefined;
|
|
@@ -5393,6 +5821,30 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5393
5821
|
country?: string | null | undefined;
|
|
5394
5822
|
}[] | null | undefined;
|
|
5395
5823
|
}[]>;
|
|
5824
|
+
getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
5825
|
+
id: string;
|
|
5826
|
+
source_ref: {
|
|
5827
|
+
id?: string | null | undefined;
|
|
5828
|
+
model?: string | null | undefined;
|
|
5829
|
+
};
|
|
5830
|
+
first_name?: string | null | undefined;
|
|
5831
|
+
last_name?: string | null | undefined;
|
|
5832
|
+
company_name?: string | null | undefined;
|
|
5833
|
+
phone?: string | null | undefined;
|
|
5834
|
+
email?: string | null | undefined;
|
|
5835
|
+
account_number?: string | null | undefined;
|
|
5836
|
+
created_on?: string | null | undefined;
|
|
5837
|
+
addresses?: {
|
|
5838
|
+
address_type?: string | null | undefined;
|
|
5839
|
+
name?: string | null | undefined;
|
|
5840
|
+
street?: string | null | undefined;
|
|
5841
|
+
number?: string | null | undefined;
|
|
5842
|
+
box?: string | null | undefined;
|
|
5843
|
+
city?: string | null | undefined;
|
|
5844
|
+
postal_code?: string | null | undefined;
|
|
5845
|
+
country?: string | null | undefined;
|
|
5846
|
+
}[] | null | undefined;
|
|
5847
|
+
}>;
|
|
5396
5848
|
getInvoices(params?: {
|
|
5397
5849
|
date_from: string;
|
|
5398
5850
|
date_to: string;
|
|
@@ -5495,14 +5947,28 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5495
5947
|
untaxed_amount: number;
|
|
5496
5948
|
total: number;
|
|
5497
5949
|
}[]>;
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5950
|
+
getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
5951
|
+
items: {
|
|
5952
|
+
id: string;
|
|
5953
|
+
source_ref: {
|
|
5954
|
+
id?: string | null | undefined;
|
|
5955
|
+
model?: string | null | undefined;
|
|
5956
|
+
};
|
|
5957
|
+
label?: string | null | undefined;
|
|
5958
|
+
rate?: number | null | undefined;
|
|
5959
|
+
}[];
|
|
5960
|
+
total: number;
|
|
5961
|
+
page: number;
|
|
5962
|
+
size: number;
|
|
5963
|
+
}>;
|
|
5964
|
+
}>;
|
|
5965
|
+
payment: import("../types/api").ApiFor<{
|
|
5966
|
+
getPayments(params: {
|
|
5967
|
+
date_from?: string | null | undefined;
|
|
5968
|
+
date_to?: string | null | undefined;
|
|
5969
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
5970
|
+
id: string;
|
|
5971
|
+
source_ref: {
|
|
5506
5972
|
id?: string | null | undefined;
|
|
5507
5973
|
model?: string | null | undefined;
|
|
5508
5974
|
};
|
|
@@ -5628,6 +6094,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5628
6094
|
postal_code?: string | null | undefined;
|
|
5629
6095
|
country?: string | null | undefined;
|
|
5630
6096
|
}[] | null;
|
|
6097
|
+
third_party_account?: string | null | undefined;
|
|
5631
6098
|
}[]>;
|
|
5632
6099
|
createClient(client: {
|
|
5633
6100
|
external_reference?: string | null | undefined;
|
|
@@ -5701,6 +6168,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5701
6168
|
postal_code?: string | null | undefined;
|
|
5702
6169
|
country?: string | null | undefined;
|
|
5703
6170
|
}[] | null;
|
|
6171
|
+
third_party_account?: string | null | undefined;
|
|
5704
6172
|
}>;
|
|
5705
6173
|
getClient(clientId: string, params?: {
|
|
5706
6174
|
folder_id?: string | null | undefined;
|
|
@@ -5740,6 +6208,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5740
6208
|
postal_code?: string | null | undefined;
|
|
5741
6209
|
country?: string | null | undefined;
|
|
5742
6210
|
}[] | null;
|
|
6211
|
+
third_party_account?: string | null | undefined;
|
|
5743
6212
|
}>;
|
|
5744
6213
|
updateClient(clientId: string, client: {
|
|
5745
6214
|
external_reference?: string | null | undefined;
|
|
@@ -5811,6 +6280,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5811
6280
|
postal_code?: string | null | undefined;
|
|
5812
6281
|
country?: string | null | undefined;
|
|
5813
6282
|
}[] | null;
|
|
6283
|
+
third_party_account?: string | null | undefined;
|
|
5814
6284
|
}>;
|
|
5815
6285
|
getSuppliers(params?: {
|
|
5816
6286
|
search?: string | null | undefined;
|
|
@@ -5852,6 +6322,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5852
6322
|
postal_code?: string | null | undefined;
|
|
5853
6323
|
country?: string | null | undefined;
|
|
5854
6324
|
}[] | null;
|
|
6325
|
+
third_party_account?: string | null | undefined;
|
|
5855
6326
|
}[]>;
|
|
5856
6327
|
createSupplier(supplier: {
|
|
5857
6328
|
external_reference?: string | null | undefined;
|
|
@@ -5925,6 +6396,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5925
6396
|
postal_code?: string | null | undefined;
|
|
5926
6397
|
country?: string | null | undefined;
|
|
5927
6398
|
}[] | null;
|
|
6399
|
+
third_party_account?: string | null | undefined;
|
|
5928
6400
|
}>;
|
|
5929
6401
|
getSupplier(supplierId: string, params?: {
|
|
5930
6402
|
folder_id?: string | null | undefined;
|
|
@@ -5964,6 +6436,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5964
6436
|
postal_code?: string | null | undefined;
|
|
5965
6437
|
country?: string | null | undefined;
|
|
5966
6438
|
}[] | null;
|
|
6439
|
+
third_party_account?: string | null | undefined;
|
|
5967
6440
|
}>;
|
|
5968
6441
|
updateSupplier(supplierId: string, supplier: {
|
|
5969
6442
|
external_reference?: string | null | undefined;
|
|
@@ -6035,6 +6508,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6035
6508
|
postal_code?: string | null | undefined;
|
|
6036
6509
|
country?: string | null | undefined;
|
|
6037
6510
|
}[] | null;
|
|
6511
|
+
third_party_account?: string | null | undefined;
|
|
6038
6512
|
}>;
|
|
6039
6513
|
createInvoice(invoice: {
|
|
6040
6514
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
@@ -6046,6 +6520,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6046
6520
|
reference?: string | null | undefined;
|
|
6047
6521
|
payment_communication?: string | null | undefined;
|
|
6048
6522
|
customer_memo?: string | null | undefined;
|
|
6523
|
+
payment_term_id?: string | null | undefined;
|
|
6524
|
+
withholding_tax?: {
|
|
6525
|
+
tax_rate: number;
|
|
6526
|
+
tax_code: string;
|
|
6527
|
+
tax_amount: number;
|
|
6528
|
+
} | null | undefined;
|
|
6049
6529
|
invoice_date: string;
|
|
6050
6530
|
due_date: string;
|
|
6051
6531
|
partner_id?: string | null | undefined;
|
|
@@ -6088,10 +6568,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6088
6568
|
description: string;
|
|
6089
6569
|
analytic_account?: string | null | undefined;
|
|
6090
6570
|
}[];
|
|
6571
|
+
start_date?: string | null | undefined;
|
|
6572
|
+
end_date?: string | null | undefined;
|
|
6573
|
+
payment_method_id?: string | null | undefined;
|
|
6091
6574
|
}, params?: {
|
|
6092
6575
|
folder_id?: string | null | undefined;
|
|
6093
6576
|
force_financial_period?: string | null | undefined;
|
|
6094
6577
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
6578
|
+
ignore_accounting_id?: boolean | undefined;
|
|
6579
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
6095
6580
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
6096
6581
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
6097
6582
|
invoice_number?: string | null | undefined;
|
|
@@ -6102,10 +6587,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6102
6587
|
reference?: string | null | undefined;
|
|
6103
6588
|
payment_communication?: string | null | undefined;
|
|
6104
6589
|
customer_memo?: string | null | undefined;
|
|
6590
|
+
payment_term_id?: string | null | undefined;
|
|
6591
|
+
withholding_tax?: {
|
|
6592
|
+
tax_rate: number;
|
|
6593
|
+
tax_code: string;
|
|
6594
|
+
tax_amount: number;
|
|
6595
|
+
} | null | undefined;
|
|
6105
6596
|
id?: string | null | undefined;
|
|
6106
6597
|
invoice_date: string;
|
|
6107
6598
|
due_date: string;
|
|
6108
|
-
partner_id: string;
|
|
6599
|
+
partner_id: string | null;
|
|
6109
6600
|
journal_id?: string | null | undefined;
|
|
6110
6601
|
payments?: {
|
|
6111
6602
|
id: string;
|
|
@@ -6159,12 +6650,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6159
6650
|
postal_code?: string | null | undefined;
|
|
6160
6651
|
country?: string | null | undefined;
|
|
6161
6652
|
}[] | null;
|
|
6653
|
+
third_party_account?: string | null | undefined;
|
|
6162
6654
|
} | null | undefined;
|
|
6163
6655
|
due_dates: {
|
|
6164
6656
|
due_date: string;
|
|
6165
6657
|
payment_method?: string | null | undefined;
|
|
6658
|
+
payment_method_id?: string | null | undefined;
|
|
6166
6659
|
amount: number;
|
|
6167
6660
|
}[] | null;
|
|
6661
|
+
attachments_info?: {
|
|
6662
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
6663
|
+
attachments: {
|
|
6664
|
+
filename?: string | null | undefined;
|
|
6665
|
+
url?: string | null | undefined;
|
|
6666
|
+
}[] | null;
|
|
6667
|
+
} | undefined;
|
|
6668
|
+
accounting_info?: {
|
|
6669
|
+
main_currency?: string | undefined;
|
|
6670
|
+
main_currency_total: number;
|
|
6671
|
+
account_number?: string | null | undefined;
|
|
6672
|
+
} | null | undefined;
|
|
6673
|
+
payment_method_id?: string | null | undefined;
|
|
6168
6674
|
lines: {
|
|
6169
6675
|
line_number: number | null;
|
|
6170
6676
|
unit_price: number;
|
|
@@ -6190,6 +6696,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6190
6696
|
reference?: string | null | undefined;
|
|
6191
6697
|
payment_communication?: string | null | undefined;
|
|
6192
6698
|
customer_memo?: string | null | undefined;
|
|
6699
|
+
payment_term_id?: string | null | undefined;
|
|
6700
|
+
withholding_tax?: {
|
|
6701
|
+
tax_rate: number;
|
|
6702
|
+
tax_code: string;
|
|
6703
|
+
tax_amount: number;
|
|
6704
|
+
} | null | undefined;
|
|
6193
6705
|
invoice_date: string;
|
|
6194
6706
|
due_date: string;
|
|
6195
6707
|
partner_id?: string | null | undefined;
|
|
@@ -6238,10 +6750,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6238
6750
|
}[];
|
|
6239
6751
|
}[] | null;
|
|
6240
6752
|
}[];
|
|
6753
|
+
start_date?: string | null | undefined;
|
|
6754
|
+
end_date?: string | null | undefined;
|
|
6755
|
+
payment_method_id?: string | null | undefined;
|
|
6241
6756
|
}, params?: {
|
|
6242
6757
|
folder_id?: string | null | undefined;
|
|
6243
6758
|
force_financial_period?: string | null | undefined;
|
|
6244
6759
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
6760
|
+
ignore_accounting_id?: boolean | undefined;
|
|
6761
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
6245
6762
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
6246
6763
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
6247
6764
|
invoice_number?: string | null | undefined;
|
|
@@ -6252,10 +6769,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6252
6769
|
reference?: string | null | undefined;
|
|
6253
6770
|
payment_communication?: string | null | undefined;
|
|
6254
6771
|
customer_memo?: string | null | undefined;
|
|
6772
|
+
payment_term_id?: string | null | undefined;
|
|
6773
|
+
withholding_tax?: {
|
|
6774
|
+
tax_rate: number;
|
|
6775
|
+
tax_code: string;
|
|
6776
|
+
tax_amount: number;
|
|
6777
|
+
} | null | undefined;
|
|
6255
6778
|
id?: string | null | undefined;
|
|
6256
6779
|
invoice_date: string;
|
|
6257
6780
|
due_date: string;
|
|
6258
|
-
partner_id: string;
|
|
6781
|
+
partner_id: string | null;
|
|
6259
6782
|
journal_id?: string | null | undefined;
|
|
6260
6783
|
payments?: {
|
|
6261
6784
|
id: string;
|
|
@@ -6309,12 +6832,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6309
6832
|
postal_code?: string | null | undefined;
|
|
6310
6833
|
country?: string | null | undefined;
|
|
6311
6834
|
}[] | null;
|
|
6835
|
+
third_party_account?: string | null | undefined;
|
|
6312
6836
|
} | null | undefined;
|
|
6313
6837
|
due_dates: {
|
|
6314
6838
|
due_date: string;
|
|
6315
6839
|
payment_method?: string | null | undefined;
|
|
6840
|
+
payment_method_id?: string | null | undefined;
|
|
6316
6841
|
amount: number;
|
|
6317
6842
|
}[] | null;
|
|
6843
|
+
attachments_info?: {
|
|
6844
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
6845
|
+
attachments: {
|
|
6846
|
+
filename?: string | null | undefined;
|
|
6847
|
+
url?: string | null | undefined;
|
|
6848
|
+
}[] | null;
|
|
6849
|
+
} | undefined;
|
|
6850
|
+
accounting_info?: {
|
|
6851
|
+
main_currency?: string | undefined;
|
|
6852
|
+
main_currency_total: number;
|
|
6853
|
+
account_number?: string | null | undefined;
|
|
6854
|
+
} | null | undefined;
|
|
6855
|
+
payment_method_id?: string | null | undefined;
|
|
6318
6856
|
lines: {
|
|
6319
6857
|
line_number: number | null;
|
|
6320
6858
|
unit_price: number;
|
|
@@ -6356,10 +6894,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6356
6894
|
reference?: string | null | undefined;
|
|
6357
6895
|
payment_communication?: string | null | undefined;
|
|
6358
6896
|
customer_memo?: string | null | undefined;
|
|
6897
|
+
payment_term_id?: string | null | undefined;
|
|
6898
|
+
withholding_tax?: {
|
|
6899
|
+
tax_rate: number;
|
|
6900
|
+
tax_code: string;
|
|
6901
|
+
tax_amount: number;
|
|
6902
|
+
} | null | undefined;
|
|
6359
6903
|
id?: string | null | undefined;
|
|
6360
6904
|
invoice_date: string;
|
|
6361
6905
|
due_date: string;
|
|
6362
|
-
partner_id: string;
|
|
6906
|
+
partner_id: string | null;
|
|
6363
6907
|
journal_id?: string | null | undefined;
|
|
6364
6908
|
payments?: {
|
|
6365
6909
|
id: string;
|
|
@@ -6413,12 +6957,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6413
6957
|
postal_code?: string | null | undefined;
|
|
6414
6958
|
country?: string | null | undefined;
|
|
6415
6959
|
}[] | null;
|
|
6960
|
+
third_party_account?: string | null | undefined;
|
|
6416
6961
|
} | null | undefined;
|
|
6417
6962
|
due_dates: {
|
|
6418
6963
|
due_date: string;
|
|
6419
6964
|
payment_method?: string | null | undefined;
|
|
6965
|
+
payment_method_id?: string | null | undefined;
|
|
6420
6966
|
amount: number;
|
|
6421
6967
|
}[] | null;
|
|
6968
|
+
attachments_info?: {
|
|
6969
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
6970
|
+
attachments: {
|
|
6971
|
+
filename?: string | null | undefined;
|
|
6972
|
+
url?: string | null | undefined;
|
|
6973
|
+
}[] | null;
|
|
6974
|
+
} | undefined;
|
|
6975
|
+
accounting_info?: {
|
|
6976
|
+
main_currency?: string | undefined;
|
|
6977
|
+
main_currency_total: number;
|
|
6978
|
+
account_number?: string | null | undefined;
|
|
6979
|
+
} | null | undefined;
|
|
6980
|
+
payment_method_id?: string | null | undefined;
|
|
6422
6981
|
lines: {
|
|
6423
6982
|
line_number: number | null;
|
|
6424
6983
|
unit_price: number;
|
|
@@ -6449,10 +7008,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6449
7008
|
reference?: string | null | undefined;
|
|
6450
7009
|
payment_communication?: string | null | undefined;
|
|
6451
7010
|
customer_memo?: string | null | undefined;
|
|
7011
|
+
payment_term_id?: string | null | undefined;
|
|
7012
|
+
withholding_tax?: {
|
|
7013
|
+
tax_rate: number;
|
|
7014
|
+
tax_code: string;
|
|
7015
|
+
tax_amount: number;
|
|
7016
|
+
} | null | undefined;
|
|
6452
7017
|
id?: string | null | undefined;
|
|
6453
7018
|
invoice_date: string;
|
|
6454
7019
|
due_date: string;
|
|
6455
|
-
partner_id: string;
|
|
7020
|
+
partner_id: string | null;
|
|
6456
7021
|
journal_id?: string | null | undefined;
|
|
6457
7022
|
payments?: {
|
|
6458
7023
|
id: string;
|
|
@@ -6506,12 +7071,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6506
7071
|
postal_code?: string | null | undefined;
|
|
6507
7072
|
country?: string | null | undefined;
|
|
6508
7073
|
}[] | null;
|
|
7074
|
+
third_party_account?: string | null | undefined;
|
|
6509
7075
|
} | null | undefined;
|
|
6510
7076
|
due_dates: {
|
|
6511
7077
|
due_date: string;
|
|
6512
7078
|
payment_method?: string | null | undefined;
|
|
7079
|
+
payment_method_id?: string | null | undefined;
|
|
6513
7080
|
amount: number;
|
|
6514
7081
|
}[] | null;
|
|
7082
|
+
attachments_info?: {
|
|
7083
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
7084
|
+
attachments: {
|
|
7085
|
+
filename?: string | null | undefined;
|
|
7086
|
+
url?: string | null | undefined;
|
|
7087
|
+
}[] | null;
|
|
7088
|
+
} | undefined;
|
|
7089
|
+
accounting_info?: {
|
|
7090
|
+
main_currency?: string | undefined;
|
|
7091
|
+
main_currency_total: number;
|
|
7092
|
+
account_number?: string | null | undefined;
|
|
7093
|
+
} | null | undefined;
|
|
7094
|
+
payment_method_id?: string | null | undefined;
|
|
6515
7095
|
lines: {
|
|
6516
7096
|
line_number: number | null;
|
|
6517
7097
|
unit_price: number;
|
|
@@ -6542,10 +7122,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6542
7122
|
reference?: string | null | undefined;
|
|
6543
7123
|
payment_communication?: string | null | undefined;
|
|
6544
7124
|
customer_memo?: string | null | undefined;
|
|
7125
|
+
payment_term_id?: string | null | undefined;
|
|
7126
|
+
withholding_tax?: {
|
|
7127
|
+
tax_rate: number;
|
|
7128
|
+
tax_code: string;
|
|
7129
|
+
tax_amount: number;
|
|
7130
|
+
} | null | undefined;
|
|
6545
7131
|
id?: string | null | undefined;
|
|
6546
7132
|
invoice_date: string;
|
|
6547
7133
|
due_date: string;
|
|
6548
|
-
partner_id: string;
|
|
7134
|
+
partner_id: string | null;
|
|
6549
7135
|
journal_id?: string | null | undefined;
|
|
6550
7136
|
payments?: {
|
|
6551
7137
|
id: string;
|
|
@@ -6599,12 +7185,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6599
7185
|
postal_code?: string | null | undefined;
|
|
6600
7186
|
country?: string | null | undefined;
|
|
6601
7187
|
}[] | null;
|
|
7188
|
+
third_party_account?: string | null | undefined;
|
|
6602
7189
|
} | null | undefined;
|
|
6603
7190
|
due_dates: {
|
|
6604
7191
|
due_date: string;
|
|
6605
7192
|
payment_method?: string | null | undefined;
|
|
7193
|
+
payment_method_id?: string | null | undefined;
|
|
6606
7194
|
amount: number;
|
|
6607
7195
|
}[] | null;
|
|
7196
|
+
attachments_info?: {
|
|
7197
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
7198
|
+
attachments: {
|
|
7199
|
+
filename?: string | null | undefined;
|
|
7200
|
+
url?: string | null | undefined;
|
|
7201
|
+
}[] | null;
|
|
7202
|
+
} | undefined;
|
|
7203
|
+
accounting_info?: {
|
|
7204
|
+
main_currency?: string | undefined;
|
|
7205
|
+
main_currency_total: number;
|
|
7206
|
+
account_number?: string | null | undefined;
|
|
7207
|
+
} | null | undefined;
|
|
7208
|
+
payment_method_id?: string | null | undefined;
|
|
6608
7209
|
lines: {
|
|
6609
7210
|
line_number: number | null;
|
|
6610
7211
|
unit_price: number;
|
|
@@ -6646,10 +7247,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6646
7247
|
reference?: string | null | undefined;
|
|
6647
7248
|
payment_communication?: string | null | undefined;
|
|
6648
7249
|
customer_memo?: string | null | undefined;
|
|
7250
|
+
payment_term_id?: string | null | undefined;
|
|
7251
|
+
withholding_tax?: {
|
|
7252
|
+
tax_rate: number;
|
|
7253
|
+
tax_code: string;
|
|
7254
|
+
tax_amount: number;
|
|
7255
|
+
} | null | undefined;
|
|
6649
7256
|
id?: string | null | undefined;
|
|
6650
7257
|
invoice_date: string;
|
|
6651
7258
|
due_date: string;
|
|
6652
|
-
partner_id: string;
|
|
7259
|
+
partner_id: string | null;
|
|
6653
7260
|
journal_id?: string | null | undefined;
|
|
6654
7261
|
payments?: {
|
|
6655
7262
|
id: string;
|
|
@@ -6703,12 +7310,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6703
7310
|
postal_code?: string | null | undefined;
|
|
6704
7311
|
country?: string | null | undefined;
|
|
6705
7312
|
}[] | null;
|
|
7313
|
+
third_party_account?: string | null | undefined;
|
|
6706
7314
|
} | null | undefined;
|
|
6707
7315
|
due_dates: {
|
|
6708
7316
|
due_date: string;
|
|
6709
7317
|
payment_method?: string | null | undefined;
|
|
7318
|
+
payment_method_id?: string | null | undefined;
|
|
6710
7319
|
amount: number;
|
|
6711
7320
|
}[] | null;
|
|
7321
|
+
attachments_info?: {
|
|
7322
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
7323
|
+
attachments: {
|
|
7324
|
+
filename?: string | null | undefined;
|
|
7325
|
+
url?: string | null | undefined;
|
|
7326
|
+
}[] | null;
|
|
7327
|
+
} | undefined;
|
|
7328
|
+
accounting_info?: {
|
|
7329
|
+
main_currency?: string | undefined;
|
|
7330
|
+
main_currency_total: number;
|
|
7331
|
+
account_number?: string | null | undefined;
|
|
7332
|
+
} | null | undefined;
|
|
7333
|
+
payment_method_id?: string | null | undefined;
|
|
6712
7334
|
lines: {
|
|
6713
7335
|
line_number: number | null;
|
|
6714
7336
|
unit_price: number;
|
|
@@ -6856,7 +7478,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6856
7478
|
folder_id?: string | null | undefined;
|
|
6857
7479
|
updated_after?: string | null | undefined;
|
|
6858
7480
|
unposted_allowed: "true" | "false";
|
|
6859
|
-
journal_id
|
|
7481
|
+
journal_id?: string | null | undefined;
|
|
6860
7482
|
partner_id?: string | null | undefined;
|
|
6861
7483
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
6862
7484
|
reference?: string | null | undefined;
|
|
@@ -6870,9 +7492,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6870
7492
|
due_dates: {
|
|
6871
7493
|
due_date: string;
|
|
6872
7494
|
payment_method?: string | null | undefined;
|
|
7495
|
+
payment_method_id?: string | null | undefined;
|
|
6873
7496
|
debit: number | null;
|
|
6874
7497
|
credit: number | null;
|
|
6875
7498
|
}[] | null;
|
|
7499
|
+
attachments_info?: {
|
|
7500
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
7501
|
+
attachments: {
|
|
7502
|
+
filename?: string | null | undefined;
|
|
7503
|
+
url?: string | null | undefined;
|
|
7504
|
+
}[] | null;
|
|
7505
|
+
} | undefined;
|
|
6876
7506
|
items: {
|
|
6877
7507
|
account_number: string;
|
|
6878
7508
|
partner_id?: string | null | undefined;
|
|
@@ -6895,7 +7525,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6895
7525
|
folder_id?: string | null | undefined;
|
|
6896
7526
|
updated_after?: string | null | undefined;
|
|
6897
7527
|
unposted_allowed: "true" | "false";
|
|
6898
|
-
journal_id
|
|
7528
|
+
journal_id?: string | null | undefined;
|
|
6899
7529
|
partner_id?: string | null | undefined;
|
|
6900
7530
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
6901
7531
|
reference?: string | null | undefined;
|
|
@@ -6909,9 +7539,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6909
7539
|
due_dates: {
|
|
6910
7540
|
due_date: string;
|
|
6911
7541
|
payment_method?: string | null | undefined;
|
|
7542
|
+
payment_method_id?: string | null | undefined;
|
|
6912
7543
|
debit: number | null;
|
|
6913
7544
|
credit: number | null;
|
|
6914
7545
|
}[] | null;
|
|
7546
|
+
attachments_info?: {
|
|
7547
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
7548
|
+
attachments: {
|
|
7549
|
+
filename?: string | null | undefined;
|
|
7550
|
+
url?: string | null | undefined;
|
|
7551
|
+
}[] | null;
|
|
7552
|
+
} | undefined;
|
|
6915
7553
|
items: {
|
|
6916
7554
|
account_number: string;
|
|
6917
7555
|
partner_id?: string | null | undefined;
|
|
@@ -7001,6 +7639,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7001
7639
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
7002
7640
|
id: string;
|
|
7003
7641
|
code?: string | null | undefined;
|
|
7642
|
+
active: boolean | null;
|
|
7004
7643
|
label: string;
|
|
7005
7644
|
scope: "unknown" | "nat" | "eu" | "int" | null;
|
|
7006
7645
|
rate: number;
|
|
@@ -7008,6 +7647,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7008
7647
|
deductible_account?: string | null | undefined;
|
|
7009
7648
|
payable_account?: string | null | undefined;
|
|
7010
7649
|
reversed: boolean | null;
|
|
7650
|
+
withholding_tax: boolean | null;
|
|
7011
7651
|
country?: string | null | undefined;
|
|
7012
7652
|
}[]>;
|
|
7013
7653
|
getMiscOperations(params?: {
|
|
@@ -7110,12 +7750,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7110
7750
|
getChartOfAccounts(params?: {
|
|
7111
7751
|
folder_id?: string | null | undefined;
|
|
7112
7752
|
classes?: string | null | undefined;
|
|
7113
|
-
type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
|
|
7753
|
+
type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
|
|
7114
7754
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
7115
7755
|
number: string;
|
|
7116
7756
|
name: string;
|
|
7117
7757
|
active: boolean | null;
|
|
7118
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
7758
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
7759
|
+
scheme_ids?: string[] | null | undefined;
|
|
7760
|
+
accounting_category?: string | null | undefined;
|
|
7119
7761
|
}[]>;
|
|
7120
7762
|
getBalanceOfAccounts(filter: {
|
|
7121
7763
|
accounts: string[];
|
|
@@ -7191,11 +7833,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7191
7833
|
account: string;
|
|
7192
7834
|
amount: number;
|
|
7193
7835
|
description?: string | null | undefined;
|
|
7836
|
+
automated_matching_number?: string | null | undefined;
|
|
7194
7837
|
}[];
|
|
7195
7838
|
pdf?: string | null | undefined;
|
|
7196
7839
|
}, params?: {
|
|
7197
7840
|
folder_id?: string | null | undefined;
|
|
7198
7841
|
financial_counterpart_account?: string | null | undefined;
|
|
7842
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
7199
7843
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
7200
7844
|
date: string;
|
|
7201
7845
|
journal_id: string;
|
|
@@ -7209,6 +7853,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7209
7853
|
account: string;
|
|
7210
7854
|
amount: number;
|
|
7211
7855
|
description?: string | null | undefined;
|
|
7856
|
+
automated_matching_number?: string | null | undefined;
|
|
7212
7857
|
counterpart_account: string;
|
|
7213
7858
|
}[];
|
|
7214
7859
|
}>;
|
|
@@ -7236,6 +7881,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7236
7881
|
}[];
|
|
7237
7882
|
}[] | null;
|
|
7238
7883
|
tax_code?: string | null | undefined;
|
|
7884
|
+
tax_info?: {
|
|
7885
|
+
tax_code: string;
|
|
7886
|
+
tax_amount: number;
|
|
7887
|
+
vat_account?: string | null | undefined;
|
|
7888
|
+
reversed_vat_account?: string | null | undefined;
|
|
7889
|
+
description?: string | null | undefined;
|
|
7890
|
+
} | null | undefined;
|
|
7239
7891
|
account_info?: {
|
|
7240
7892
|
account_number: string;
|
|
7241
7893
|
account_name: string;
|
|
@@ -7248,6 +7900,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7248
7900
|
}, params?: {
|
|
7249
7901
|
folder_id?: string | null | undefined;
|
|
7250
7902
|
force_currency_exchange?: "true" | "false" | null | undefined;
|
|
7903
|
+
ignore_accounting_id?: boolean | undefined;
|
|
7251
7904
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
7252
7905
|
reference?: string | null | undefined;
|
|
7253
7906
|
due_date?: string | null | undefined;
|
|
@@ -7260,9 +7913,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7260
7913
|
due_dates: {
|
|
7261
7914
|
due_date: string;
|
|
7262
7915
|
payment_method?: string | null | undefined;
|
|
7916
|
+
payment_method_id?: string | null | undefined;
|
|
7263
7917
|
debit: number | null;
|
|
7264
7918
|
credit: number | null;
|
|
7265
7919
|
}[] | null;
|
|
7920
|
+
attachments_info?: {
|
|
7921
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
7922
|
+
attachments: {
|
|
7923
|
+
filename?: string | null | undefined;
|
|
7924
|
+
url?: string | null | undefined;
|
|
7925
|
+
}[] | null;
|
|
7926
|
+
} | undefined;
|
|
7266
7927
|
items: {
|
|
7267
7928
|
account_number: string;
|
|
7268
7929
|
partner_id?: string | null | undefined;
|
|
@@ -7378,14 +8039,35 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7378
8039
|
createLedgerAccount(account: {
|
|
7379
8040
|
name: string;
|
|
7380
8041
|
number: string;
|
|
7381
|
-
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
8042
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
|
|
7382
8043
|
}, params?: {
|
|
7383
8044
|
folder_id?: string | null | undefined;
|
|
7384
8045
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
7385
8046
|
number: string;
|
|
7386
8047
|
name: string;
|
|
7387
8048
|
active: boolean | null;
|
|
7388
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
8049
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
8050
|
+
scheme_ids?: string[] | null | undefined;
|
|
8051
|
+
accounting_category?: string | null | undefined;
|
|
8052
|
+
}>;
|
|
8053
|
+
getBankAccounts(params?: {
|
|
8054
|
+
folder_id?: string | null | undefined;
|
|
8055
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
8056
|
+
items: {
|
|
8057
|
+
id: string;
|
|
8058
|
+
code?: string | null | undefined;
|
|
8059
|
+
currency?: string | null | undefined;
|
|
8060
|
+
account_name?: string | null | undefined;
|
|
8061
|
+
account_number?: string | null | undefined;
|
|
8062
|
+
iban?: string | null | undefined;
|
|
8063
|
+
bank_name?: string | null | undefined;
|
|
8064
|
+
journal_id?: string | null | undefined;
|
|
8065
|
+
ledger_account?: string | null | undefined;
|
|
8066
|
+
unallocated_account?: string | null | undefined;
|
|
8067
|
+
}[];
|
|
8068
|
+
total: number;
|
|
8069
|
+
page: number;
|
|
8070
|
+
size: number;
|
|
7389
8071
|
}>;
|
|
7390
8072
|
createBankAccount(bankAccount: {
|
|
7391
8073
|
code: string;
|
|
@@ -7408,6 +8090,45 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7408
8090
|
ledger_account?: string | null | undefined;
|
|
7409
8091
|
unallocated_account?: string | null | undefined;
|
|
7410
8092
|
}>;
|
|
8093
|
+
createBankTransactions(bankStatement: {
|
|
8094
|
+
bank_statement_date: string;
|
|
8095
|
+
bank_account_id: string;
|
|
8096
|
+
external_bank_statement_id: string;
|
|
8097
|
+
opening_balance?: number | null | undefined;
|
|
8098
|
+
pdf?: string | null | undefined;
|
|
8099
|
+
items: {
|
|
8100
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
8101
|
+
account?: string | null | undefined;
|
|
8102
|
+
description?: string | null | undefined;
|
|
8103
|
+
external_transaction_id?: string | null | undefined;
|
|
8104
|
+
date: string;
|
|
8105
|
+
amount: number;
|
|
8106
|
+
fee_amount: number | null;
|
|
8107
|
+
tax_amount: number | null;
|
|
8108
|
+
currency: string;
|
|
8109
|
+
currency_exchange_rate: number | null;
|
|
8110
|
+
}[];
|
|
8111
|
+
}, params?: {
|
|
8112
|
+
folder_id?: string | null | undefined;
|
|
8113
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
8114
|
+
bank_statement_date: string;
|
|
8115
|
+
bank_account_id: string;
|
|
8116
|
+
id?: string | null | undefined;
|
|
8117
|
+
external_bank_statement_id?: string | null | undefined;
|
|
8118
|
+
items: {
|
|
8119
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
8120
|
+
account?: string | null | undefined;
|
|
8121
|
+
description?: string | null | undefined;
|
|
8122
|
+
external_transaction_id?: string | null | undefined;
|
|
8123
|
+
date: string;
|
|
8124
|
+
amount: number;
|
|
8125
|
+
fee_amount: number | null;
|
|
8126
|
+
tax_amount: number | null;
|
|
8127
|
+
currency: string;
|
|
8128
|
+
currency_exchange_rate: number | null;
|
|
8129
|
+
id?: string | null | undefined;
|
|
8130
|
+
}[];
|
|
8131
|
+
}>;
|
|
7411
8132
|
getJournalEntry(journalEntryId: string, params?: {
|
|
7412
8133
|
folder_id?: string | null | undefined;
|
|
7413
8134
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -7422,9 +8143,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7422
8143
|
due_dates: {
|
|
7423
8144
|
due_date: string;
|
|
7424
8145
|
payment_method?: string | null | undefined;
|
|
8146
|
+
payment_method_id?: string | null | undefined;
|
|
7425
8147
|
debit: number | null;
|
|
7426
8148
|
credit: number | null;
|
|
7427
8149
|
}[] | null;
|
|
8150
|
+
attachments_info?: {
|
|
8151
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
8152
|
+
attachments: {
|
|
8153
|
+
filename?: string | null | undefined;
|
|
8154
|
+
url?: string | null | undefined;
|
|
8155
|
+
}[] | null;
|
|
8156
|
+
} | undefined;
|
|
7428
8157
|
items: {
|
|
7429
8158
|
account_number: string;
|
|
7430
8159
|
partner_id?: string | null | undefined;
|
|
@@ -7459,6 +8188,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7459
8188
|
page: number;
|
|
7460
8189
|
size: number;
|
|
7461
8190
|
}>;
|
|
8191
|
+
getPaymentTerms(params?: {
|
|
8192
|
+
folder_id?: string | null | undefined;
|
|
8193
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
8194
|
+
items: {
|
|
8195
|
+
id: string;
|
|
8196
|
+
name?: string | null | undefined;
|
|
8197
|
+
}[];
|
|
8198
|
+
total: number;
|
|
8199
|
+
page: number;
|
|
8200
|
+
size: number;
|
|
8201
|
+
}>;
|
|
8202
|
+
getSchemes(params?: {
|
|
8203
|
+
folder_id?: string | null | undefined;
|
|
8204
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
8205
|
+
items: {
|
|
8206
|
+
id: string;
|
|
8207
|
+
code: string;
|
|
8208
|
+
name: string;
|
|
8209
|
+
}[];
|
|
8210
|
+
total: number;
|
|
8211
|
+
page: number;
|
|
8212
|
+
size: number;
|
|
8213
|
+
}>;
|
|
7462
8214
|
createInvoicePayment(body: {
|
|
7463
8215
|
date: string;
|
|
7464
8216
|
payment_method_id: string;
|
|
@@ -7478,6 +8230,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7478
8230
|
};
|
|
7479
8231
|
content?: undefined;
|
|
7480
8232
|
}>;
|
|
8233
|
+
exportFec(params: {
|
|
8234
|
+
folder_id?: string | null | undefined;
|
|
8235
|
+
date_from: string;
|
|
8236
|
+
date_to: string;
|
|
8237
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
8238
|
+
JournalCode: string;
|
|
8239
|
+
JournalLib: string;
|
|
8240
|
+
EcritureNum: string;
|
|
8241
|
+
EcritureDate: string;
|
|
8242
|
+
CompteNum: string;
|
|
8243
|
+
CompteLib: string;
|
|
8244
|
+
CompAuxNum: string;
|
|
8245
|
+
CompAuxLib: string;
|
|
8246
|
+
PieceRef: string;
|
|
8247
|
+
PieceDate: string;
|
|
8248
|
+
Debit: number;
|
|
8249
|
+
Credit: number;
|
|
8250
|
+
EcritureLet: string;
|
|
8251
|
+
DateLet: string | null;
|
|
8252
|
+
ValidDate: string | null;
|
|
8253
|
+
Montantdevise: number;
|
|
8254
|
+
Idevise: string;
|
|
8255
|
+
}[]>;
|
|
7481
8256
|
}>;
|
|
7482
8257
|
invoicing: import("../types/api").ApiFor<{
|
|
7483
8258
|
getInvoices(params?: {
|
|
@@ -7487,6 +8262,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7487
8262
|
updated_after?: string | null | undefined;
|
|
7488
8263
|
include_invoice_lines?: "true" | "false" | null | undefined;
|
|
7489
8264
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
8265
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
7490
8266
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
7491
8267
|
id: string;
|
|
7492
8268
|
source_ref: {
|
|
@@ -7516,6 +8292,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7516
8292
|
product_id?: string | null | undefined;
|
|
7517
8293
|
product_code?: string | null | undefined;
|
|
7518
8294
|
product_name?: string | null | undefined;
|
|
8295
|
+
analytic_distribution: {
|
|
8296
|
+
analytic_plan_code: string;
|
|
8297
|
+
analytic_accounts: {
|
|
8298
|
+
analytic_account_code: string;
|
|
8299
|
+
analytic_account_name: string;
|
|
8300
|
+
percentage: number;
|
|
8301
|
+
}[];
|
|
8302
|
+
}[] | null;
|
|
7519
8303
|
}[];
|
|
7520
8304
|
partner_id?: string | null | undefined;
|
|
7521
8305
|
invoice_number?: string | null | undefined;
|
|
@@ -7555,6 +8339,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7555
8339
|
}[]>;
|
|
7556
8340
|
getInvoiceById(invoiceId: string, params?: {
|
|
7557
8341
|
include_pdf?: "true" | "false" | null | undefined;
|
|
8342
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
7558
8343
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
7559
8344
|
id: string;
|
|
7560
8345
|
source_ref: {
|
|
@@ -7584,6 +8369,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7584
8369
|
product_id?: string | null | undefined;
|
|
7585
8370
|
product_code?: string | null | undefined;
|
|
7586
8371
|
product_name?: string | null | undefined;
|
|
8372
|
+
analytic_distribution: {
|
|
8373
|
+
analytic_plan_code: string;
|
|
8374
|
+
analytic_accounts: {
|
|
8375
|
+
analytic_account_code: string;
|
|
8376
|
+
analytic_account_name: string;
|
|
8377
|
+
percentage: number;
|
|
8378
|
+
}[];
|
|
8379
|
+
}[] | null;
|
|
7587
8380
|
}[];
|
|
7588
8381
|
partner_id?: string | null | undefined;
|
|
7589
8382
|
invoice_number?: string | null | undefined;
|
|
@@ -7705,6 +8498,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7705
8498
|
product_id?: string | null | undefined;
|
|
7706
8499
|
product_code?: string | null | undefined;
|
|
7707
8500
|
product_name?: string | null | undefined;
|
|
8501
|
+
analytic_distribution: {
|
|
8502
|
+
analytic_plan_code: string;
|
|
8503
|
+
analytic_accounts: {
|
|
8504
|
+
analytic_account_code: string;
|
|
8505
|
+
analytic_account_name: string;
|
|
8506
|
+
percentage: number;
|
|
8507
|
+
}[];
|
|
8508
|
+
}[] | null;
|
|
7708
8509
|
}[];
|
|
7709
8510
|
partner_id?: string | null | undefined;
|
|
7710
8511
|
invoice_number?: string | null | undefined;
|
|
@@ -9283,14 +10084,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9283
10084
|
reference: string;
|
|
9284
10085
|
reference_type: string;
|
|
9285
10086
|
holder_name?: string | null | undefined;
|
|
10087
|
+
active: boolean | null;
|
|
9286
10088
|
}[]>;
|
|
9287
|
-
getAccountTransactions(
|
|
10089
|
+
getAccountTransactions(params: {
|
|
9288
10090
|
date_from?: string | null | undefined;
|
|
9289
10091
|
date_to?: string | null | undefined;
|
|
10092
|
+
updated_after?: string | null | undefined;
|
|
10093
|
+
account_id: string;
|
|
9290
10094
|
date_type?: "value_date" | "execution_date" | null | undefined;
|
|
9291
|
-
}
|
|
10095
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
9292
10096
|
id: string;
|
|
9293
10097
|
amount: number;
|
|
10098
|
+
tax_amount?: number | null | undefined;
|
|
9294
10099
|
currency: string;
|
|
9295
10100
|
description?: string | null | undefined;
|
|
9296
10101
|
additional_information?: string | null | undefined;
|
|
@@ -9300,6 +10105,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9300
10105
|
creation_date: string;
|
|
9301
10106
|
value_date: string;
|
|
9302
10107
|
execution_date: string;
|
|
10108
|
+
internal_transaction: boolean | null;
|
|
10109
|
+
operation_type: "other" | "fee" | "incoming_transfer" | "outgoing_transfer" | "card" | "direct_debit" | "direct_debit_collection" | "direct_debit_hold" | "cheque" | "recall" | "swift_income" | "pay_later" | "financing_installment" | null;
|
|
10110
|
+
last_update_on?: string | null | undefined;
|
|
10111
|
+
status?: "completed" | "pending" | "declined" | null | undefined;
|
|
10112
|
+
attachments_info?: {
|
|
10113
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
10114
|
+
attachments: {
|
|
10115
|
+
filename?: string | null | undefined;
|
|
10116
|
+
url?: string | null | undefined;
|
|
10117
|
+
}[] | null;
|
|
10118
|
+
} | undefined;
|
|
9303
10119
|
}[]>;
|
|
9304
10120
|
getAccountCounterparts(params?: {
|
|
9305
10121
|
date_from?: string | null | undefined;
|
|
@@ -9310,6 +10126,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9310
10126
|
reference?: string | null | undefined;
|
|
9311
10127
|
details?: string | null | undefined;
|
|
9312
10128
|
}[]>;
|
|
10129
|
+
getAttachments(params: {
|
|
10130
|
+
transaction_id: string;
|
|
10131
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
10132
|
+
items: {
|
|
10133
|
+
id: string;
|
|
10134
|
+
base64_string: string;
|
|
10135
|
+
}[];
|
|
10136
|
+
total: number;
|
|
10137
|
+
page: number;
|
|
10138
|
+
size: number;
|
|
10139
|
+
}>;
|
|
9313
10140
|
}>;
|
|
9314
10141
|
getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
|
|
9315
10142
|
data: {
|
|
@@ -9349,6 +10176,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9349
10176
|
source_id?: string | null | undefined;
|
|
9350
10177
|
target_id?: string | null | undefined;
|
|
9351
10178
|
}[];
|
|
10179
|
+
hidden_source_ids: string[];
|
|
9352
10180
|
sub_mapping_name: string;
|
|
9353
10181
|
sub_mapping_description?: string | null | undefined;
|
|
9354
10182
|
}[] | null | undefined;
|
|
@@ -9512,7 +10340,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9512
10340
|
value: string;
|
|
9513
10341
|
}[] | null | undefined;
|
|
9514
10342
|
country?: string | null | undefined;
|
|
9515
|
-
|
|
10343
|
+
redirect: boolean | null;
|
|
10344
|
+
} | null | undefined) => Promise<{
|
|
9516
10345
|
url: string;
|
|
9517
10346
|
}>;
|
|
9518
10347
|
updateConnection: (connectionId: string, body?: {
|
|
@@ -9531,6 +10360,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9531
10360
|
};
|
|
9532
10361
|
content?: undefined;
|
|
9533
10362
|
}>;
|
|
10363
|
+
getTransactionByClientRequestId: (connectionId: string, params: {
|
|
10364
|
+
client_request_id: string;
|
|
10365
|
+
}) => Promise<{
|
|
10366
|
+
created_on: string;
|
|
10367
|
+
method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
|
|
10368
|
+
route: string;
|
|
10369
|
+
status_code: number;
|
|
10370
|
+
created_entity_id?: string | null | undefined;
|
|
10371
|
+
}>;
|
|
9534
10372
|
enableFlow: (syncId: string, flowId: string, body: {
|
|
9535
10373
|
integrationids: string[];
|
|
9536
10374
|
triggerid: string | null;
|
|
@@ -9587,6 +10425,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9587
10425
|
total_refund: number | null;
|
|
9588
10426
|
total_tip: number | null;
|
|
9589
10427
|
delivery_fee: number | null;
|
|
10428
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
9590
10429
|
currency?: string | null | undefined;
|
|
9591
10430
|
country?: string | null | undefined;
|
|
9592
10431
|
loyalty?: number | null | undefined;
|
|
@@ -9665,6 +10504,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9665
10504
|
total_refund: number | null;
|
|
9666
10505
|
total_tip: number | null;
|
|
9667
10506
|
delivery_fee: number | null;
|
|
10507
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
9668
10508
|
currency?: string | null | undefined;
|
|
9669
10509
|
country?: string | null | undefined;
|
|
9670
10510
|
loyalty?: number | null | undefined;
|
|
@@ -9853,6 +10693,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9853
10693
|
total_refund: number | null;
|
|
9854
10694
|
total_tip: number | null;
|
|
9855
10695
|
delivery_fee: number | null;
|
|
10696
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
9856
10697
|
currency?: string | null | undefined;
|
|
9857
10698
|
country?: string | null | undefined;
|
|
9858
10699
|
loyalty?: number | null | undefined;
|
|
@@ -9957,6 +10798,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9957
10798
|
total_refund: number | null;
|
|
9958
10799
|
total_tip: number | null;
|
|
9959
10800
|
delivery_fee: number | null;
|
|
10801
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
9960
10802
|
currency?: string | null | undefined;
|
|
9961
10803
|
country?: string | null | undefined;
|
|
9962
10804
|
loyalty?: number | null | undefined;
|
|
@@ -10136,6 +10978,30 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10136
10978
|
country?: string | null | undefined;
|
|
10137
10979
|
}[] | null | undefined;
|
|
10138
10980
|
}[]>;
|
|
10981
|
+
getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
10982
|
+
id: string;
|
|
10983
|
+
source_ref: {
|
|
10984
|
+
id?: string | null | undefined;
|
|
10985
|
+
model?: string | null | undefined;
|
|
10986
|
+
};
|
|
10987
|
+
first_name?: string | null | undefined;
|
|
10988
|
+
last_name?: string | null | undefined;
|
|
10989
|
+
company_name?: string | null | undefined;
|
|
10990
|
+
phone?: string | null | undefined;
|
|
10991
|
+
email?: string | null | undefined;
|
|
10992
|
+
account_number?: string | null | undefined;
|
|
10993
|
+
created_on?: string | null | undefined;
|
|
10994
|
+
addresses?: {
|
|
10995
|
+
address_type?: string | null | undefined;
|
|
10996
|
+
name?: string | null | undefined;
|
|
10997
|
+
street?: string | null | undefined;
|
|
10998
|
+
number?: string | null | undefined;
|
|
10999
|
+
box?: string | null | undefined;
|
|
11000
|
+
city?: string | null | undefined;
|
|
11001
|
+
postal_code?: string | null | undefined;
|
|
11002
|
+
country?: string | null | undefined;
|
|
11003
|
+
}[] | null | undefined;
|
|
11004
|
+
}>;
|
|
10139
11005
|
getInvoices(params?: {
|
|
10140
11006
|
date_from: string;
|
|
10141
11007
|
date_to: string;
|
|
@@ -10238,6 +11104,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10238
11104
|
untaxed_amount: number;
|
|
10239
11105
|
total: number;
|
|
10240
11106
|
}[]>;
|
|
11107
|
+
getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
11108
|
+
items: {
|
|
11109
|
+
id: string;
|
|
11110
|
+
source_ref: {
|
|
11111
|
+
id?: string | null | undefined;
|
|
11112
|
+
model?: string | null | undefined;
|
|
11113
|
+
};
|
|
11114
|
+
label?: string | null | undefined;
|
|
11115
|
+
rate?: number | null | undefined;
|
|
11116
|
+
}[];
|
|
11117
|
+
total: number;
|
|
11118
|
+
page: number;
|
|
11119
|
+
size: number;
|
|
11120
|
+
}>;
|
|
10241
11121
|
}>;
|
|
10242
11122
|
payment: import("../types/api").ApiFor<{
|
|
10243
11123
|
getPayments(params: {
|
|
@@ -10371,6 +11251,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10371
11251
|
postal_code?: string | null | undefined;
|
|
10372
11252
|
country?: string | null | undefined;
|
|
10373
11253
|
}[] | null;
|
|
11254
|
+
third_party_account?: string | null | undefined;
|
|
10374
11255
|
}[]>;
|
|
10375
11256
|
createClient(client: {
|
|
10376
11257
|
external_reference?: string | null | undefined;
|
|
@@ -10444,6 +11325,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10444
11325
|
postal_code?: string | null | undefined;
|
|
10445
11326
|
country?: string | null | undefined;
|
|
10446
11327
|
}[] | null;
|
|
11328
|
+
third_party_account?: string | null | undefined;
|
|
10447
11329
|
}>;
|
|
10448
11330
|
getClient(clientId: string, params?: {
|
|
10449
11331
|
folder_id?: string | null | undefined;
|
|
@@ -10483,6 +11365,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10483
11365
|
postal_code?: string | null | undefined;
|
|
10484
11366
|
country?: string | null | undefined;
|
|
10485
11367
|
}[] | null;
|
|
11368
|
+
third_party_account?: string | null | undefined;
|
|
10486
11369
|
}>;
|
|
10487
11370
|
updateClient(clientId: string, client: {
|
|
10488
11371
|
external_reference?: string | null | undefined;
|
|
@@ -10554,6 +11437,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10554
11437
|
postal_code?: string | null | undefined;
|
|
10555
11438
|
country?: string | null | undefined;
|
|
10556
11439
|
}[] | null;
|
|
11440
|
+
third_party_account?: string | null | undefined;
|
|
10557
11441
|
}>;
|
|
10558
11442
|
getSuppliers(params?: {
|
|
10559
11443
|
search?: string | null | undefined;
|
|
@@ -10595,6 +11479,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10595
11479
|
postal_code?: string | null | undefined;
|
|
10596
11480
|
country?: string | null | undefined;
|
|
10597
11481
|
}[] | null;
|
|
11482
|
+
third_party_account?: string | null | undefined;
|
|
10598
11483
|
}[]>;
|
|
10599
11484
|
createSupplier(supplier: {
|
|
10600
11485
|
external_reference?: string | null | undefined;
|
|
@@ -10668,6 +11553,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10668
11553
|
postal_code?: string | null | undefined;
|
|
10669
11554
|
country?: string | null | undefined;
|
|
10670
11555
|
}[] | null;
|
|
11556
|
+
third_party_account?: string | null | undefined;
|
|
10671
11557
|
}>;
|
|
10672
11558
|
getSupplier(supplierId: string, params?: {
|
|
10673
11559
|
folder_id?: string | null | undefined;
|
|
@@ -10707,6 +11593,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10707
11593
|
postal_code?: string | null | undefined;
|
|
10708
11594
|
country?: string | null | undefined;
|
|
10709
11595
|
}[] | null;
|
|
11596
|
+
third_party_account?: string | null | undefined;
|
|
10710
11597
|
}>;
|
|
10711
11598
|
updateSupplier(supplierId: string, supplier: {
|
|
10712
11599
|
external_reference?: string | null | undefined;
|
|
@@ -10778,6 +11665,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10778
11665
|
postal_code?: string | null | undefined;
|
|
10779
11666
|
country?: string | null | undefined;
|
|
10780
11667
|
}[] | null;
|
|
11668
|
+
third_party_account?: string | null | undefined;
|
|
10781
11669
|
}>;
|
|
10782
11670
|
createInvoice(invoice: {
|
|
10783
11671
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
@@ -10789,6 +11677,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10789
11677
|
reference?: string | null | undefined;
|
|
10790
11678
|
payment_communication?: string | null | undefined;
|
|
10791
11679
|
customer_memo?: string | null | undefined;
|
|
11680
|
+
payment_term_id?: string | null | undefined;
|
|
11681
|
+
withholding_tax?: {
|
|
11682
|
+
tax_rate: number;
|
|
11683
|
+
tax_code: string;
|
|
11684
|
+
tax_amount: number;
|
|
11685
|
+
} | null | undefined;
|
|
10792
11686
|
invoice_date: string;
|
|
10793
11687
|
due_date: string;
|
|
10794
11688
|
partner_id?: string | null | undefined;
|
|
@@ -10831,10 +11725,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10831
11725
|
description: string;
|
|
10832
11726
|
analytic_account?: string | null | undefined;
|
|
10833
11727
|
}[];
|
|
11728
|
+
start_date?: string | null | undefined;
|
|
11729
|
+
end_date?: string | null | undefined;
|
|
11730
|
+
payment_method_id?: string | null | undefined;
|
|
10834
11731
|
}, params?: {
|
|
10835
11732
|
folder_id?: string | null | undefined;
|
|
10836
11733
|
force_financial_period?: string | null | undefined;
|
|
10837
11734
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
11735
|
+
ignore_accounting_id?: boolean | undefined;
|
|
11736
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
10838
11737
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
10839
11738
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10840
11739
|
invoice_number?: string | null | undefined;
|
|
@@ -10845,10 +11744,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10845
11744
|
reference?: string | null | undefined;
|
|
10846
11745
|
payment_communication?: string | null | undefined;
|
|
10847
11746
|
customer_memo?: string | null | undefined;
|
|
11747
|
+
payment_term_id?: string | null | undefined;
|
|
11748
|
+
withholding_tax?: {
|
|
11749
|
+
tax_rate: number;
|
|
11750
|
+
tax_code: string;
|
|
11751
|
+
tax_amount: number;
|
|
11752
|
+
} | null | undefined;
|
|
10848
11753
|
id?: string | null | undefined;
|
|
10849
11754
|
invoice_date: string;
|
|
10850
11755
|
due_date: string;
|
|
10851
|
-
partner_id: string;
|
|
11756
|
+
partner_id: string | null;
|
|
10852
11757
|
journal_id?: string | null | undefined;
|
|
10853
11758
|
payments?: {
|
|
10854
11759
|
id: string;
|
|
@@ -10902,12 +11807,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10902
11807
|
postal_code?: string | null | undefined;
|
|
10903
11808
|
country?: string | null | undefined;
|
|
10904
11809
|
}[] | null;
|
|
11810
|
+
third_party_account?: string | null | undefined;
|
|
10905
11811
|
} | null | undefined;
|
|
10906
11812
|
due_dates: {
|
|
10907
11813
|
due_date: string;
|
|
10908
11814
|
payment_method?: string | null | undefined;
|
|
11815
|
+
payment_method_id?: string | null | undefined;
|
|
10909
11816
|
amount: number;
|
|
10910
11817
|
}[] | null;
|
|
11818
|
+
attachments_info?: {
|
|
11819
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
11820
|
+
attachments: {
|
|
11821
|
+
filename?: string | null | undefined;
|
|
11822
|
+
url?: string | null | undefined;
|
|
11823
|
+
}[] | null;
|
|
11824
|
+
} | undefined;
|
|
11825
|
+
accounting_info?: {
|
|
11826
|
+
main_currency?: string | undefined;
|
|
11827
|
+
main_currency_total: number;
|
|
11828
|
+
account_number?: string | null | undefined;
|
|
11829
|
+
} | null | undefined;
|
|
11830
|
+
payment_method_id?: string | null | undefined;
|
|
10911
11831
|
lines: {
|
|
10912
11832
|
line_number: number | null;
|
|
10913
11833
|
unit_price: number;
|
|
@@ -10933,6 +11853,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10933
11853
|
reference?: string | null | undefined;
|
|
10934
11854
|
payment_communication?: string | null | undefined;
|
|
10935
11855
|
customer_memo?: string | null | undefined;
|
|
11856
|
+
payment_term_id?: string | null | undefined;
|
|
11857
|
+
withholding_tax?: {
|
|
11858
|
+
tax_rate: number;
|
|
11859
|
+
tax_code: string;
|
|
11860
|
+
tax_amount: number;
|
|
11861
|
+
} | null | undefined;
|
|
10936
11862
|
invoice_date: string;
|
|
10937
11863
|
due_date: string;
|
|
10938
11864
|
partner_id?: string | null | undefined;
|
|
@@ -10981,10 +11907,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10981
11907
|
}[];
|
|
10982
11908
|
}[] | null;
|
|
10983
11909
|
}[];
|
|
11910
|
+
start_date?: string | null | undefined;
|
|
11911
|
+
end_date?: string | null | undefined;
|
|
11912
|
+
payment_method_id?: string | null | undefined;
|
|
10984
11913
|
}, params?: {
|
|
10985
11914
|
folder_id?: string | null | undefined;
|
|
10986
11915
|
force_financial_period?: string | null | undefined;
|
|
10987
11916
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
11917
|
+
ignore_accounting_id?: boolean | undefined;
|
|
11918
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
10988
11919
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
10989
11920
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10990
11921
|
invoice_number?: string | null | undefined;
|
|
@@ -10995,10 +11926,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10995
11926
|
reference?: string | null | undefined;
|
|
10996
11927
|
payment_communication?: string | null | undefined;
|
|
10997
11928
|
customer_memo?: string | null | undefined;
|
|
11929
|
+
payment_term_id?: string | null | undefined;
|
|
11930
|
+
withholding_tax?: {
|
|
11931
|
+
tax_rate: number;
|
|
11932
|
+
tax_code: string;
|
|
11933
|
+
tax_amount: number;
|
|
11934
|
+
} | null | undefined;
|
|
10998
11935
|
id?: string | null | undefined;
|
|
10999
11936
|
invoice_date: string;
|
|
11000
11937
|
due_date: string;
|
|
11001
|
-
partner_id: string;
|
|
11938
|
+
partner_id: string | null;
|
|
11002
11939
|
journal_id?: string | null | undefined;
|
|
11003
11940
|
payments?: {
|
|
11004
11941
|
id: string;
|
|
@@ -11052,12 +11989,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11052
11989
|
postal_code?: string | null | undefined;
|
|
11053
11990
|
country?: string | null | undefined;
|
|
11054
11991
|
}[] | null;
|
|
11992
|
+
third_party_account?: string | null | undefined;
|
|
11055
11993
|
} | null | undefined;
|
|
11056
11994
|
due_dates: {
|
|
11057
11995
|
due_date: string;
|
|
11058
11996
|
payment_method?: string | null | undefined;
|
|
11997
|
+
payment_method_id?: string | null | undefined;
|
|
11059
11998
|
amount: number;
|
|
11060
11999
|
}[] | null;
|
|
12000
|
+
attachments_info?: {
|
|
12001
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12002
|
+
attachments: {
|
|
12003
|
+
filename?: string | null | undefined;
|
|
12004
|
+
url?: string | null | undefined;
|
|
12005
|
+
}[] | null;
|
|
12006
|
+
} | undefined;
|
|
12007
|
+
accounting_info?: {
|
|
12008
|
+
main_currency?: string | undefined;
|
|
12009
|
+
main_currency_total: number;
|
|
12010
|
+
account_number?: string | null | undefined;
|
|
12011
|
+
} | null | undefined;
|
|
12012
|
+
payment_method_id?: string | null | undefined;
|
|
11061
12013
|
lines: {
|
|
11062
12014
|
line_number: number | null;
|
|
11063
12015
|
unit_price: number;
|
|
@@ -11099,10 +12051,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11099
12051
|
reference?: string | null | undefined;
|
|
11100
12052
|
payment_communication?: string | null | undefined;
|
|
11101
12053
|
customer_memo?: string | null | undefined;
|
|
12054
|
+
payment_term_id?: string | null | undefined;
|
|
12055
|
+
withholding_tax?: {
|
|
12056
|
+
tax_rate: number;
|
|
12057
|
+
tax_code: string;
|
|
12058
|
+
tax_amount: number;
|
|
12059
|
+
} | null | undefined;
|
|
11102
12060
|
id?: string | null | undefined;
|
|
11103
12061
|
invoice_date: string;
|
|
11104
12062
|
due_date: string;
|
|
11105
|
-
partner_id: string;
|
|
12063
|
+
partner_id: string | null;
|
|
11106
12064
|
journal_id?: string | null | undefined;
|
|
11107
12065
|
payments?: {
|
|
11108
12066
|
id: string;
|
|
@@ -11156,12 +12114,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11156
12114
|
postal_code?: string | null | undefined;
|
|
11157
12115
|
country?: string | null | undefined;
|
|
11158
12116
|
}[] | null;
|
|
12117
|
+
third_party_account?: string | null | undefined;
|
|
11159
12118
|
} | null | undefined;
|
|
11160
12119
|
due_dates: {
|
|
11161
12120
|
due_date: string;
|
|
11162
12121
|
payment_method?: string | null | undefined;
|
|
12122
|
+
payment_method_id?: string | null | undefined;
|
|
11163
12123
|
amount: number;
|
|
11164
12124
|
}[] | null;
|
|
12125
|
+
attachments_info?: {
|
|
12126
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12127
|
+
attachments: {
|
|
12128
|
+
filename?: string | null | undefined;
|
|
12129
|
+
url?: string | null | undefined;
|
|
12130
|
+
}[] | null;
|
|
12131
|
+
} | undefined;
|
|
12132
|
+
accounting_info?: {
|
|
12133
|
+
main_currency?: string | undefined;
|
|
12134
|
+
main_currency_total: number;
|
|
12135
|
+
account_number?: string | null | undefined;
|
|
12136
|
+
} | null | undefined;
|
|
12137
|
+
payment_method_id?: string | null | undefined;
|
|
11165
12138
|
lines: {
|
|
11166
12139
|
line_number: number | null;
|
|
11167
12140
|
unit_price: number;
|
|
@@ -11192,10 +12165,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11192
12165
|
reference?: string | null | undefined;
|
|
11193
12166
|
payment_communication?: string | null | undefined;
|
|
11194
12167
|
customer_memo?: string | null | undefined;
|
|
12168
|
+
payment_term_id?: string | null | undefined;
|
|
12169
|
+
withholding_tax?: {
|
|
12170
|
+
tax_rate: number;
|
|
12171
|
+
tax_code: string;
|
|
12172
|
+
tax_amount: number;
|
|
12173
|
+
} | null | undefined;
|
|
11195
12174
|
id?: string | null | undefined;
|
|
11196
12175
|
invoice_date: string;
|
|
11197
12176
|
due_date: string;
|
|
11198
|
-
partner_id: string;
|
|
12177
|
+
partner_id: string | null;
|
|
11199
12178
|
journal_id?: string | null | undefined;
|
|
11200
12179
|
payments?: {
|
|
11201
12180
|
id: string;
|
|
@@ -11249,12 +12228,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11249
12228
|
postal_code?: string | null | undefined;
|
|
11250
12229
|
country?: string | null | undefined;
|
|
11251
12230
|
}[] | null;
|
|
12231
|
+
third_party_account?: string | null | undefined;
|
|
11252
12232
|
} | null | undefined;
|
|
11253
12233
|
due_dates: {
|
|
11254
12234
|
due_date: string;
|
|
11255
12235
|
payment_method?: string | null | undefined;
|
|
12236
|
+
payment_method_id?: string | null | undefined;
|
|
11256
12237
|
amount: number;
|
|
11257
12238
|
}[] | null;
|
|
12239
|
+
attachments_info?: {
|
|
12240
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12241
|
+
attachments: {
|
|
12242
|
+
filename?: string | null | undefined;
|
|
12243
|
+
url?: string | null | undefined;
|
|
12244
|
+
}[] | null;
|
|
12245
|
+
} | undefined;
|
|
12246
|
+
accounting_info?: {
|
|
12247
|
+
main_currency?: string | undefined;
|
|
12248
|
+
main_currency_total: number;
|
|
12249
|
+
account_number?: string | null | undefined;
|
|
12250
|
+
} | null | undefined;
|
|
12251
|
+
payment_method_id?: string | null | undefined;
|
|
11258
12252
|
lines: {
|
|
11259
12253
|
line_number: number | null;
|
|
11260
12254
|
unit_price: number;
|
|
@@ -11285,10 +12279,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11285
12279
|
reference?: string | null | undefined;
|
|
11286
12280
|
payment_communication?: string | null | undefined;
|
|
11287
12281
|
customer_memo?: string | null | undefined;
|
|
12282
|
+
payment_term_id?: string | null | undefined;
|
|
12283
|
+
withholding_tax?: {
|
|
12284
|
+
tax_rate: number;
|
|
12285
|
+
tax_code: string;
|
|
12286
|
+
tax_amount: number;
|
|
12287
|
+
} | null | undefined;
|
|
11288
12288
|
id?: string | null | undefined;
|
|
11289
12289
|
invoice_date: string;
|
|
11290
12290
|
due_date: string;
|
|
11291
|
-
partner_id: string;
|
|
12291
|
+
partner_id: string | null;
|
|
11292
12292
|
journal_id?: string | null | undefined;
|
|
11293
12293
|
payments?: {
|
|
11294
12294
|
id: string;
|
|
@@ -11342,12 +12342,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11342
12342
|
postal_code?: string | null | undefined;
|
|
11343
12343
|
country?: string | null | undefined;
|
|
11344
12344
|
}[] | null;
|
|
12345
|
+
third_party_account?: string | null | undefined;
|
|
11345
12346
|
} | null | undefined;
|
|
11346
12347
|
due_dates: {
|
|
11347
12348
|
due_date: string;
|
|
11348
12349
|
payment_method?: string | null | undefined;
|
|
12350
|
+
payment_method_id?: string | null | undefined;
|
|
11349
12351
|
amount: number;
|
|
11350
12352
|
}[] | null;
|
|
12353
|
+
attachments_info?: {
|
|
12354
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12355
|
+
attachments: {
|
|
12356
|
+
filename?: string | null | undefined;
|
|
12357
|
+
url?: string | null | undefined;
|
|
12358
|
+
}[] | null;
|
|
12359
|
+
} | undefined;
|
|
12360
|
+
accounting_info?: {
|
|
12361
|
+
main_currency?: string | undefined;
|
|
12362
|
+
main_currency_total: number;
|
|
12363
|
+
account_number?: string | null | undefined;
|
|
12364
|
+
} | null | undefined;
|
|
12365
|
+
payment_method_id?: string | null | undefined;
|
|
11351
12366
|
lines: {
|
|
11352
12367
|
line_number: number | null;
|
|
11353
12368
|
unit_price: number;
|
|
@@ -11389,10 +12404,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11389
12404
|
reference?: string | null | undefined;
|
|
11390
12405
|
payment_communication?: string | null | undefined;
|
|
11391
12406
|
customer_memo?: string | null | undefined;
|
|
12407
|
+
payment_term_id?: string | null | undefined;
|
|
12408
|
+
withholding_tax?: {
|
|
12409
|
+
tax_rate: number;
|
|
12410
|
+
tax_code: string;
|
|
12411
|
+
tax_amount: number;
|
|
12412
|
+
} | null | undefined;
|
|
11392
12413
|
id?: string | null | undefined;
|
|
11393
12414
|
invoice_date: string;
|
|
11394
12415
|
due_date: string;
|
|
11395
|
-
partner_id: string;
|
|
12416
|
+
partner_id: string | null;
|
|
11396
12417
|
journal_id?: string | null | undefined;
|
|
11397
12418
|
payments?: {
|
|
11398
12419
|
id: string;
|
|
@@ -11446,12 +12467,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11446
12467
|
postal_code?: string | null | undefined;
|
|
11447
12468
|
country?: string | null | undefined;
|
|
11448
12469
|
}[] | null;
|
|
12470
|
+
third_party_account?: string | null | undefined;
|
|
11449
12471
|
} | null | undefined;
|
|
11450
12472
|
due_dates: {
|
|
11451
12473
|
due_date: string;
|
|
11452
12474
|
payment_method?: string | null | undefined;
|
|
12475
|
+
payment_method_id?: string | null | undefined;
|
|
11453
12476
|
amount: number;
|
|
11454
12477
|
}[] | null;
|
|
12478
|
+
attachments_info?: {
|
|
12479
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12480
|
+
attachments: {
|
|
12481
|
+
filename?: string | null | undefined;
|
|
12482
|
+
url?: string | null | undefined;
|
|
12483
|
+
}[] | null;
|
|
12484
|
+
} | undefined;
|
|
12485
|
+
accounting_info?: {
|
|
12486
|
+
main_currency?: string | undefined;
|
|
12487
|
+
main_currency_total: number;
|
|
12488
|
+
account_number?: string | null | undefined;
|
|
12489
|
+
} | null | undefined;
|
|
12490
|
+
payment_method_id?: string | null | undefined;
|
|
11455
12491
|
lines: {
|
|
11456
12492
|
line_number: number | null;
|
|
11457
12493
|
unit_price: number;
|
|
@@ -11599,7 +12635,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11599
12635
|
folder_id?: string | null | undefined;
|
|
11600
12636
|
updated_after?: string | null | undefined;
|
|
11601
12637
|
unposted_allowed: "true" | "false";
|
|
11602
|
-
journal_id
|
|
12638
|
+
journal_id?: string | null | undefined;
|
|
11603
12639
|
partner_id?: string | null | undefined;
|
|
11604
12640
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
11605
12641
|
reference?: string | null | undefined;
|
|
@@ -11613,9 +12649,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11613
12649
|
due_dates: {
|
|
11614
12650
|
due_date: string;
|
|
11615
12651
|
payment_method?: string | null | undefined;
|
|
12652
|
+
payment_method_id?: string | null | undefined;
|
|
11616
12653
|
debit: number | null;
|
|
11617
12654
|
credit: number | null;
|
|
11618
12655
|
}[] | null;
|
|
12656
|
+
attachments_info?: {
|
|
12657
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12658
|
+
attachments: {
|
|
12659
|
+
filename?: string | null | undefined;
|
|
12660
|
+
url?: string | null | undefined;
|
|
12661
|
+
}[] | null;
|
|
12662
|
+
} | undefined;
|
|
11619
12663
|
items: {
|
|
11620
12664
|
account_number: string;
|
|
11621
12665
|
partner_id?: string | null | undefined;
|
|
@@ -11638,7 +12682,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11638
12682
|
folder_id?: string | null | undefined;
|
|
11639
12683
|
updated_after?: string | null | undefined;
|
|
11640
12684
|
unposted_allowed: "true" | "false";
|
|
11641
|
-
journal_id
|
|
12685
|
+
journal_id?: string | null | undefined;
|
|
11642
12686
|
partner_id?: string | null | undefined;
|
|
11643
12687
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
11644
12688
|
reference?: string | null | undefined;
|
|
@@ -11652,9 +12696,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11652
12696
|
due_dates: {
|
|
11653
12697
|
due_date: string;
|
|
11654
12698
|
payment_method?: string | null | undefined;
|
|
12699
|
+
payment_method_id?: string | null | undefined;
|
|
11655
12700
|
debit: number | null;
|
|
11656
12701
|
credit: number | null;
|
|
11657
12702
|
}[] | null;
|
|
12703
|
+
attachments_info?: {
|
|
12704
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12705
|
+
attachments: {
|
|
12706
|
+
filename?: string | null | undefined;
|
|
12707
|
+
url?: string | null | undefined;
|
|
12708
|
+
}[] | null;
|
|
12709
|
+
} | undefined;
|
|
11658
12710
|
items: {
|
|
11659
12711
|
account_number: string;
|
|
11660
12712
|
partner_id?: string | null | undefined;
|
|
@@ -11744,6 +12796,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11744
12796
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
11745
12797
|
id: string;
|
|
11746
12798
|
code?: string | null | undefined;
|
|
12799
|
+
active: boolean | null;
|
|
11747
12800
|
label: string;
|
|
11748
12801
|
scope: "unknown" | "nat" | "eu" | "int" | null;
|
|
11749
12802
|
rate: number;
|
|
@@ -11751,6 +12804,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11751
12804
|
deductible_account?: string | null | undefined;
|
|
11752
12805
|
payable_account?: string | null | undefined;
|
|
11753
12806
|
reversed: boolean | null;
|
|
12807
|
+
withholding_tax: boolean | null;
|
|
11754
12808
|
country?: string | null | undefined;
|
|
11755
12809
|
}[]>;
|
|
11756
12810
|
getMiscOperations(params?: {
|
|
@@ -11853,12 +12907,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11853
12907
|
getChartOfAccounts(params?: {
|
|
11854
12908
|
folder_id?: string | null | undefined;
|
|
11855
12909
|
classes?: string | null | undefined;
|
|
11856
|
-
type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
|
|
12910
|
+
type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
|
|
11857
12911
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
11858
12912
|
number: string;
|
|
11859
12913
|
name: string;
|
|
11860
12914
|
active: boolean | null;
|
|
11861
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
12915
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
12916
|
+
scheme_ids?: string[] | null | undefined;
|
|
12917
|
+
accounting_category?: string | null | undefined;
|
|
11862
12918
|
}[]>;
|
|
11863
12919
|
getBalanceOfAccounts(filter: {
|
|
11864
12920
|
accounts: string[];
|
|
@@ -11934,11 +12990,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11934
12990
|
account: string;
|
|
11935
12991
|
amount: number;
|
|
11936
12992
|
description?: string | null | undefined;
|
|
12993
|
+
automated_matching_number?: string | null | undefined;
|
|
11937
12994
|
}[];
|
|
11938
12995
|
pdf?: string | null | undefined;
|
|
11939
12996
|
}, params?: {
|
|
11940
12997
|
folder_id?: string | null | undefined;
|
|
11941
12998
|
financial_counterpart_account?: string | null | undefined;
|
|
12999
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
11942
13000
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
11943
13001
|
date: string;
|
|
11944
13002
|
journal_id: string;
|
|
@@ -11952,6 +13010,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11952
13010
|
account: string;
|
|
11953
13011
|
amount: number;
|
|
11954
13012
|
description?: string | null | undefined;
|
|
13013
|
+
automated_matching_number?: string | null | undefined;
|
|
11955
13014
|
counterpart_account: string;
|
|
11956
13015
|
}[];
|
|
11957
13016
|
}>;
|
|
@@ -11979,6 +13038,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11979
13038
|
}[];
|
|
11980
13039
|
}[] | null;
|
|
11981
13040
|
tax_code?: string | null | undefined;
|
|
13041
|
+
tax_info?: {
|
|
13042
|
+
tax_code: string;
|
|
13043
|
+
tax_amount: number;
|
|
13044
|
+
vat_account?: string | null | undefined;
|
|
13045
|
+
reversed_vat_account?: string | null | undefined;
|
|
13046
|
+
description?: string | null | undefined;
|
|
13047
|
+
} | null | undefined;
|
|
11982
13048
|
account_info?: {
|
|
11983
13049
|
account_number: string;
|
|
11984
13050
|
account_name: string;
|
|
@@ -11991,6 +13057,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11991
13057
|
}, params?: {
|
|
11992
13058
|
folder_id?: string | null | undefined;
|
|
11993
13059
|
force_currency_exchange?: "true" | "false" | null | undefined;
|
|
13060
|
+
ignore_accounting_id?: boolean | undefined;
|
|
11994
13061
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
11995
13062
|
reference?: string | null | undefined;
|
|
11996
13063
|
due_date?: string | null | undefined;
|
|
@@ -12003,9 +13070,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12003
13070
|
due_dates: {
|
|
12004
13071
|
due_date: string;
|
|
12005
13072
|
payment_method?: string | null | undefined;
|
|
13073
|
+
payment_method_id?: string | null | undefined;
|
|
12006
13074
|
debit: number | null;
|
|
12007
13075
|
credit: number | null;
|
|
12008
13076
|
}[] | null;
|
|
13077
|
+
attachments_info?: {
|
|
13078
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
13079
|
+
attachments: {
|
|
13080
|
+
filename?: string | null | undefined;
|
|
13081
|
+
url?: string | null | undefined;
|
|
13082
|
+
}[] | null;
|
|
13083
|
+
} | undefined;
|
|
12009
13084
|
items: {
|
|
12010
13085
|
account_number: string;
|
|
12011
13086
|
partner_id?: string | null | undefined;
|
|
@@ -12121,14 +13196,35 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12121
13196
|
createLedgerAccount(account: {
|
|
12122
13197
|
name: string;
|
|
12123
13198
|
number: string;
|
|
12124
|
-
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
13199
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
|
|
12125
13200
|
}, params?: {
|
|
12126
13201
|
folder_id?: string | null | undefined;
|
|
12127
13202
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
12128
13203
|
number: string;
|
|
12129
13204
|
name: string;
|
|
12130
13205
|
active: boolean | null;
|
|
12131
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
13206
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
13207
|
+
scheme_ids?: string[] | null | undefined;
|
|
13208
|
+
accounting_category?: string | null | undefined;
|
|
13209
|
+
}>;
|
|
13210
|
+
getBankAccounts(params?: {
|
|
13211
|
+
folder_id?: string | null | undefined;
|
|
13212
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
13213
|
+
items: {
|
|
13214
|
+
id: string;
|
|
13215
|
+
code?: string | null | undefined;
|
|
13216
|
+
currency?: string | null | undefined;
|
|
13217
|
+
account_name?: string | null | undefined;
|
|
13218
|
+
account_number?: string | null | undefined;
|
|
13219
|
+
iban?: string | null | undefined;
|
|
13220
|
+
bank_name?: string | null | undefined;
|
|
13221
|
+
journal_id?: string | null | undefined;
|
|
13222
|
+
ledger_account?: string | null | undefined;
|
|
13223
|
+
unallocated_account?: string | null | undefined;
|
|
13224
|
+
}[];
|
|
13225
|
+
total: number;
|
|
13226
|
+
page: number;
|
|
13227
|
+
size: number;
|
|
12132
13228
|
}>;
|
|
12133
13229
|
createBankAccount(bankAccount: {
|
|
12134
13230
|
code: string;
|
|
@@ -12151,6 +13247,45 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12151
13247
|
ledger_account?: string | null | undefined;
|
|
12152
13248
|
unallocated_account?: string | null | undefined;
|
|
12153
13249
|
}>;
|
|
13250
|
+
createBankTransactions(bankStatement: {
|
|
13251
|
+
bank_statement_date: string;
|
|
13252
|
+
bank_account_id: string;
|
|
13253
|
+
external_bank_statement_id: string;
|
|
13254
|
+
opening_balance?: number | null | undefined;
|
|
13255
|
+
pdf?: string | null | undefined;
|
|
13256
|
+
items: {
|
|
13257
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
13258
|
+
account?: string | null | undefined;
|
|
13259
|
+
description?: string | null | undefined;
|
|
13260
|
+
external_transaction_id?: string | null | undefined;
|
|
13261
|
+
date: string;
|
|
13262
|
+
amount: number;
|
|
13263
|
+
fee_amount: number | null;
|
|
13264
|
+
tax_amount: number | null;
|
|
13265
|
+
currency: string;
|
|
13266
|
+
currency_exchange_rate: number | null;
|
|
13267
|
+
}[];
|
|
13268
|
+
}, params?: {
|
|
13269
|
+
folder_id?: string | null | undefined;
|
|
13270
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
13271
|
+
bank_statement_date: string;
|
|
13272
|
+
bank_account_id: string;
|
|
13273
|
+
id?: string | null | undefined;
|
|
13274
|
+
external_bank_statement_id?: string | null | undefined;
|
|
13275
|
+
items: {
|
|
13276
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
13277
|
+
account?: string | null | undefined;
|
|
13278
|
+
description?: string | null | undefined;
|
|
13279
|
+
external_transaction_id?: string | null | undefined;
|
|
13280
|
+
date: string;
|
|
13281
|
+
amount: number;
|
|
13282
|
+
fee_amount: number | null;
|
|
13283
|
+
tax_amount: number | null;
|
|
13284
|
+
currency: string;
|
|
13285
|
+
currency_exchange_rate: number | null;
|
|
13286
|
+
id?: string | null | undefined;
|
|
13287
|
+
}[];
|
|
13288
|
+
}>;
|
|
12154
13289
|
getJournalEntry(journalEntryId: string, params?: {
|
|
12155
13290
|
folder_id?: string | null | undefined;
|
|
12156
13291
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -12165,9 +13300,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12165
13300
|
due_dates: {
|
|
12166
13301
|
due_date: string;
|
|
12167
13302
|
payment_method?: string | null | undefined;
|
|
13303
|
+
payment_method_id?: string | null | undefined;
|
|
12168
13304
|
debit: number | null;
|
|
12169
13305
|
credit: number | null;
|
|
12170
13306
|
}[] | null;
|
|
13307
|
+
attachments_info?: {
|
|
13308
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
13309
|
+
attachments: {
|
|
13310
|
+
filename?: string | null | undefined;
|
|
13311
|
+
url?: string | null | undefined;
|
|
13312
|
+
}[] | null;
|
|
13313
|
+
} | undefined;
|
|
12171
13314
|
items: {
|
|
12172
13315
|
account_number: string;
|
|
12173
13316
|
partner_id?: string | null | undefined;
|
|
@@ -12202,6 +13345,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12202
13345
|
page: number;
|
|
12203
13346
|
size: number;
|
|
12204
13347
|
}>;
|
|
13348
|
+
getPaymentTerms(params?: {
|
|
13349
|
+
folder_id?: string | null | undefined;
|
|
13350
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
13351
|
+
items: {
|
|
13352
|
+
id: string;
|
|
13353
|
+
name?: string | null | undefined;
|
|
13354
|
+
}[];
|
|
13355
|
+
total: number;
|
|
13356
|
+
page: number;
|
|
13357
|
+
size: number;
|
|
13358
|
+
}>;
|
|
13359
|
+
getSchemes(params?: {
|
|
13360
|
+
folder_id?: string | null | undefined;
|
|
13361
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
13362
|
+
items: {
|
|
13363
|
+
id: string;
|
|
13364
|
+
code: string;
|
|
13365
|
+
name: string;
|
|
13366
|
+
}[];
|
|
13367
|
+
total: number;
|
|
13368
|
+
page: number;
|
|
13369
|
+
size: number;
|
|
13370
|
+
}>;
|
|
12205
13371
|
createInvoicePayment(body: {
|
|
12206
13372
|
date: string;
|
|
12207
13373
|
payment_method_id: string;
|
|
@@ -12221,6 +13387,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12221
13387
|
};
|
|
12222
13388
|
content?: undefined;
|
|
12223
13389
|
}>;
|
|
13390
|
+
exportFec(params: {
|
|
13391
|
+
folder_id?: string | null | undefined;
|
|
13392
|
+
date_from: string;
|
|
13393
|
+
date_to: string;
|
|
13394
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
13395
|
+
JournalCode: string;
|
|
13396
|
+
JournalLib: string;
|
|
13397
|
+
EcritureNum: string;
|
|
13398
|
+
EcritureDate: string;
|
|
13399
|
+
CompteNum: string;
|
|
13400
|
+
CompteLib: string;
|
|
13401
|
+
CompAuxNum: string;
|
|
13402
|
+
CompAuxLib: string;
|
|
13403
|
+
PieceRef: string;
|
|
13404
|
+
PieceDate: string;
|
|
13405
|
+
Debit: number;
|
|
13406
|
+
Credit: number;
|
|
13407
|
+
EcritureLet: string;
|
|
13408
|
+
DateLet: string | null;
|
|
13409
|
+
ValidDate: string | null;
|
|
13410
|
+
Montantdevise: number;
|
|
13411
|
+
Idevise: string;
|
|
13412
|
+
}[]>;
|
|
12224
13413
|
}>;
|
|
12225
13414
|
invoicing: import("../types/api").ApiFor<{
|
|
12226
13415
|
getInvoices(params?: {
|
|
@@ -12230,6 +13419,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12230
13419
|
updated_after?: string | null | undefined;
|
|
12231
13420
|
include_invoice_lines?: "true" | "false" | null | undefined;
|
|
12232
13421
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
13422
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
12233
13423
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
12234
13424
|
id: string;
|
|
12235
13425
|
source_ref: {
|
|
@@ -12259,6 +13449,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12259
13449
|
product_id?: string | null | undefined;
|
|
12260
13450
|
product_code?: string | null | undefined;
|
|
12261
13451
|
product_name?: string | null | undefined;
|
|
13452
|
+
analytic_distribution: {
|
|
13453
|
+
analytic_plan_code: string;
|
|
13454
|
+
analytic_accounts: {
|
|
13455
|
+
analytic_account_code: string;
|
|
13456
|
+
analytic_account_name: string;
|
|
13457
|
+
percentage: number;
|
|
13458
|
+
}[];
|
|
13459
|
+
}[] | null;
|
|
12262
13460
|
}[];
|
|
12263
13461
|
partner_id?: string | null | undefined;
|
|
12264
13462
|
invoice_number?: string | null | undefined;
|
|
@@ -12298,6 +13496,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12298
13496
|
}[]>;
|
|
12299
13497
|
getInvoiceById(invoiceId: string, params?: {
|
|
12300
13498
|
include_pdf?: "true" | "false" | null | undefined;
|
|
13499
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
12301
13500
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
12302
13501
|
id: string;
|
|
12303
13502
|
source_ref: {
|
|
@@ -12327,6 +13526,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12327
13526
|
product_id?: string | null | undefined;
|
|
12328
13527
|
product_code?: string | null | undefined;
|
|
12329
13528
|
product_name?: string | null | undefined;
|
|
13529
|
+
analytic_distribution: {
|
|
13530
|
+
analytic_plan_code: string;
|
|
13531
|
+
analytic_accounts: {
|
|
13532
|
+
analytic_account_code: string;
|
|
13533
|
+
analytic_account_name: string;
|
|
13534
|
+
percentage: number;
|
|
13535
|
+
}[];
|
|
13536
|
+
}[] | null;
|
|
12330
13537
|
}[];
|
|
12331
13538
|
partner_id?: string | null | undefined;
|
|
12332
13539
|
invoice_number?: string | null | undefined;
|
|
@@ -12448,6 +13655,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12448
13655
|
product_id?: string | null | undefined;
|
|
12449
13656
|
product_code?: string | null | undefined;
|
|
12450
13657
|
product_name?: string | null | undefined;
|
|
13658
|
+
analytic_distribution: {
|
|
13659
|
+
analytic_plan_code: string;
|
|
13660
|
+
analytic_accounts: {
|
|
13661
|
+
analytic_account_code: string;
|
|
13662
|
+
analytic_account_name: string;
|
|
13663
|
+
percentage: number;
|
|
13664
|
+
}[];
|
|
13665
|
+
}[] | null;
|
|
12451
13666
|
}[];
|
|
12452
13667
|
partner_id?: string | null | undefined;
|
|
12453
13668
|
invoice_number?: string | null | undefined;
|
|
@@ -14026,14 +15241,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14026
15241
|
reference: string;
|
|
14027
15242
|
reference_type: string;
|
|
14028
15243
|
holder_name?: string | null | undefined;
|
|
15244
|
+
active: boolean | null;
|
|
14029
15245
|
}[]>;
|
|
14030
|
-
getAccountTransactions(
|
|
15246
|
+
getAccountTransactions(params: {
|
|
14031
15247
|
date_from?: string | null | undefined;
|
|
14032
15248
|
date_to?: string | null | undefined;
|
|
15249
|
+
updated_after?: string | null | undefined;
|
|
15250
|
+
account_id: string;
|
|
14033
15251
|
date_type?: "value_date" | "execution_date" | null | undefined;
|
|
14034
|
-
}
|
|
15252
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
14035
15253
|
id: string;
|
|
14036
15254
|
amount: number;
|
|
15255
|
+
tax_amount?: number | null | undefined;
|
|
14037
15256
|
currency: string;
|
|
14038
15257
|
description?: string | null | undefined;
|
|
14039
15258
|
additional_information?: string | null | undefined;
|
|
@@ -14043,6 +15262,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14043
15262
|
creation_date: string;
|
|
14044
15263
|
value_date: string;
|
|
14045
15264
|
execution_date: string;
|
|
15265
|
+
internal_transaction: boolean | null;
|
|
15266
|
+
operation_type: "other" | "fee" | "incoming_transfer" | "outgoing_transfer" | "card" | "direct_debit" | "direct_debit_collection" | "direct_debit_hold" | "cheque" | "recall" | "swift_income" | "pay_later" | "financing_installment" | null;
|
|
15267
|
+
last_update_on?: string | null | undefined;
|
|
15268
|
+
status?: "completed" | "pending" | "declined" | null | undefined;
|
|
15269
|
+
attachments_info?: {
|
|
15270
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
15271
|
+
attachments: {
|
|
15272
|
+
filename?: string | null | undefined;
|
|
15273
|
+
url?: string | null | undefined;
|
|
15274
|
+
}[] | null;
|
|
15275
|
+
} | undefined;
|
|
14046
15276
|
}[]>;
|
|
14047
15277
|
getAccountCounterparts(params?: {
|
|
14048
15278
|
date_from?: string | null | undefined;
|
|
@@ -14053,6 +15283,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14053
15283
|
reference?: string | null | undefined;
|
|
14054
15284
|
details?: string | null | undefined;
|
|
14055
15285
|
}[]>;
|
|
15286
|
+
getAttachments(params: {
|
|
15287
|
+
transaction_id: string;
|
|
15288
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
15289
|
+
items: {
|
|
15290
|
+
id: string;
|
|
15291
|
+
base64_string: string;
|
|
15292
|
+
}[];
|
|
15293
|
+
total: number;
|
|
15294
|
+
page: number;
|
|
15295
|
+
size: number;
|
|
15296
|
+
}>;
|
|
14056
15297
|
}>;
|
|
14057
15298
|
getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
|
|
14058
15299
|
data: {
|
|
@@ -14092,6 +15333,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14092
15333
|
source_id?: string | null | undefined;
|
|
14093
15334
|
target_id?: string | null | undefined;
|
|
14094
15335
|
}[];
|
|
15336
|
+
hidden_source_ids: string[];
|
|
14095
15337
|
sub_mapping_name: string;
|
|
14096
15338
|
sub_mapping_description?: string | null | undefined;
|
|
14097
15339
|
}[] | null | undefined;
|
|
@@ -14255,7 +15497,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14255
15497
|
value: string;
|
|
14256
15498
|
}[] | null | undefined;
|
|
14257
15499
|
country?: string | null | undefined;
|
|
14258
|
-
|
|
15500
|
+
redirect: boolean | null;
|
|
15501
|
+
} | null | undefined) => Promise<{
|
|
14259
15502
|
url: string;
|
|
14260
15503
|
}>;
|
|
14261
15504
|
updateConnection: (connectionId: string, body?: {
|
|
@@ -14274,6 +15517,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14274
15517
|
};
|
|
14275
15518
|
content?: undefined;
|
|
14276
15519
|
}>;
|
|
15520
|
+
getTransactionByClientRequestId: (connectionId: string, params: {
|
|
15521
|
+
client_request_id: string;
|
|
15522
|
+
}) => Promise<{
|
|
15523
|
+
created_on: string;
|
|
15524
|
+
method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
|
|
15525
|
+
route: string;
|
|
15526
|
+
status_code: number;
|
|
15527
|
+
created_entity_id?: string | null | undefined;
|
|
15528
|
+
}>;
|
|
14277
15529
|
enableFlow: (syncId: string, flowId: string, body: {
|
|
14278
15530
|
integrationids: string[];
|
|
14279
15531
|
triggerid: string | null;
|
|
@@ -14330,6 +15582,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14330
15582
|
total_refund: number | null;
|
|
14331
15583
|
total_tip: number | null;
|
|
14332
15584
|
delivery_fee: number | null;
|
|
15585
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
14333
15586
|
currency?: string | null | undefined;
|
|
14334
15587
|
country?: string | null | undefined;
|
|
14335
15588
|
loyalty?: number | null | undefined;
|
|
@@ -14408,6 +15661,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14408
15661
|
total_refund: number | null;
|
|
14409
15662
|
total_tip: number | null;
|
|
14410
15663
|
delivery_fee: number | null;
|
|
15664
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
14411
15665
|
currency?: string | null | undefined;
|
|
14412
15666
|
country?: string | null | undefined;
|
|
14413
15667
|
loyalty?: number | null | undefined;
|
|
@@ -14596,6 +15850,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14596
15850
|
total_refund: number | null;
|
|
14597
15851
|
total_tip: number | null;
|
|
14598
15852
|
delivery_fee: number | null;
|
|
15853
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
14599
15854
|
currency?: string | null | undefined;
|
|
14600
15855
|
country?: string | null | undefined;
|
|
14601
15856
|
loyalty?: number | null | undefined;
|
|
@@ -14700,6 +15955,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14700
15955
|
total_refund: number | null;
|
|
14701
15956
|
total_tip: number | null;
|
|
14702
15957
|
delivery_fee: number | null;
|
|
15958
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
14703
15959
|
currency?: string | null | undefined;
|
|
14704
15960
|
country?: string | null | undefined;
|
|
14705
15961
|
loyalty?: number | null | undefined;
|
|
@@ -14879,6 +16135,30 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14879
16135
|
country?: string | null | undefined;
|
|
14880
16136
|
}[] | null | undefined;
|
|
14881
16137
|
}[]>;
|
|
16138
|
+
getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
16139
|
+
id: string;
|
|
16140
|
+
source_ref: {
|
|
16141
|
+
id?: string | null | undefined;
|
|
16142
|
+
model?: string | null | undefined;
|
|
16143
|
+
};
|
|
16144
|
+
first_name?: string | null | undefined;
|
|
16145
|
+
last_name?: string | null | undefined;
|
|
16146
|
+
company_name?: string | null | undefined;
|
|
16147
|
+
phone?: string | null | undefined;
|
|
16148
|
+
email?: string | null | undefined;
|
|
16149
|
+
account_number?: string | null | undefined;
|
|
16150
|
+
created_on?: string | null | undefined;
|
|
16151
|
+
addresses?: {
|
|
16152
|
+
address_type?: string | null | undefined;
|
|
16153
|
+
name?: string | null | undefined;
|
|
16154
|
+
street?: string | null | undefined;
|
|
16155
|
+
number?: string | null | undefined;
|
|
16156
|
+
box?: string | null | undefined;
|
|
16157
|
+
city?: string | null | undefined;
|
|
16158
|
+
postal_code?: string | null | undefined;
|
|
16159
|
+
country?: string | null | undefined;
|
|
16160
|
+
}[] | null | undefined;
|
|
16161
|
+
}>;
|
|
14882
16162
|
getInvoices(params?: {
|
|
14883
16163
|
date_from: string;
|
|
14884
16164
|
date_to: string;
|
|
@@ -14981,6 +16261,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14981
16261
|
untaxed_amount: number;
|
|
14982
16262
|
total: number;
|
|
14983
16263
|
}[]>;
|
|
16264
|
+
getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
16265
|
+
items: {
|
|
16266
|
+
id: string;
|
|
16267
|
+
source_ref: {
|
|
16268
|
+
id?: string | null | undefined;
|
|
16269
|
+
model?: string | null | undefined;
|
|
16270
|
+
};
|
|
16271
|
+
label?: string | null | undefined;
|
|
16272
|
+
rate?: number | null | undefined;
|
|
16273
|
+
}[];
|
|
16274
|
+
total: number;
|
|
16275
|
+
page: number;
|
|
16276
|
+
size: number;
|
|
16277
|
+
}>;
|
|
14984
16278
|
}>;
|
|
14985
16279
|
payment: import("../types/api").ApiFor<{
|
|
14986
16280
|
getPayments(params: {
|
|
@@ -15114,6 +16408,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15114
16408
|
postal_code?: string | null | undefined;
|
|
15115
16409
|
country?: string | null | undefined;
|
|
15116
16410
|
}[] | null;
|
|
16411
|
+
third_party_account?: string | null | undefined;
|
|
15117
16412
|
}[]>;
|
|
15118
16413
|
createClient(client: {
|
|
15119
16414
|
external_reference?: string | null | undefined;
|
|
@@ -15187,6 +16482,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15187
16482
|
postal_code?: string | null | undefined;
|
|
15188
16483
|
country?: string | null | undefined;
|
|
15189
16484
|
}[] | null;
|
|
16485
|
+
third_party_account?: string | null | undefined;
|
|
15190
16486
|
}>;
|
|
15191
16487
|
getClient(clientId: string, params?: {
|
|
15192
16488
|
folder_id?: string | null | undefined;
|
|
@@ -15226,6 +16522,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15226
16522
|
postal_code?: string | null | undefined;
|
|
15227
16523
|
country?: string | null | undefined;
|
|
15228
16524
|
}[] | null;
|
|
16525
|
+
third_party_account?: string | null | undefined;
|
|
15229
16526
|
}>;
|
|
15230
16527
|
updateClient(clientId: string, client: {
|
|
15231
16528
|
external_reference?: string | null | undefined;
|
|
@@ -15297,6 +16594,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15297
16594
|
postal_code?: string | null | undefined;
|
|
15298
16595
|
country?: string | null | undefined;
|
|
15299
16596
|
}[] | null;
|
|
16597
|
+
third_party_account?: string | null | undefined;
|
|
15300
16598
|
}>;
|
|
15301
16599
|
getSuppliers(params?: {
|
|
15302
16600
|
search?: string | null | undefined;
|
|
@@ -15338,6 +16636,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15338
16636
|
postal_code?: string | null | undefined;
|
|
15339
16637
|
country?: string | null | undefined;
|
|
15340
16638
|
}[] | null;
|
|
16639
|
+
third_party_account?: string | null | undefined;
|
|
15341
16640
|
}[]>;
|
|
15342
16641
|
createSupplier(supplier: {
|
|
15343
16642
|
external_reference?: string | null | undefined;
|
|
@@ -15411,6 +16710,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15411
16710
|
postal_code?: string | null | undefined;
|
|
15412
16711
|
country?: string | null | undefined;
|
|
15413
16712
|
}[] | null;
|
|
16713
|
+
third_party_account?: string | null | undefined;
|
|
15414
16714
|
}>;
|
|
15415
16715
|
getSupplier(supplierId: string, params?: {
|
|
15416
16716
|
folder_id?: string | null | undefined;
|
|
@@ -15450,6 +16750,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15450
16750
|
postal_code?: string | null | undefined;
|
|
15451
16751
|
country?: string | null | undefined;
|
|
15452
16752
|
}[] | null;
|
|
16753
|
+
third_party_account?: string | null | undefined;
|
|
15453
16754
|
}>;
|
|
15454
16755
|
updateSupplier(supplierId: string, supplier: {
|
|
15455
16756
|
external_reference?: string | null | undefined;
|
|
@@ -15521,6 +16822,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15521
16822
|
postal_code?: string | null | undefined;
|
|
15522
16823
|
country?: string | null | undefined;
|
|
15523
16824
|
}[] | null;
|
|
16825
|
+
third_party_account?: string | null | undefined;
|
|
15524
16826
|
}>;
|
|
15525
16827
|
createInvoice(invoice: {
|
|
15526
16828
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
@@ -15532,6 +16834,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15532
16834
|
reference?: string | null | undefined;
|
|
15533
16835
|
payment_communication?: string | null | undefined;
|
|
15534
16836
|
customer_memo?: string | null | undefined;
|
|
16837
|
+
payment_term_id?: string | null | undefined;
|
|
16838
|
+
withholding_tax?: {
|
|
16839
|
+
tax_rate: number;
|
|
16840
|
+
tax_code: string;
|
|
16841
|
+
tax_amount: number;
|
|
16842
|
+
} | null | undefined;
|
|
15535
16843
|
invoice_date: string;
|
|
15536
16844
|
due_date: string;
|
|
15537
16845
|
partner_id?: string | null | undefined;
|
|
@@ -15574,10 +16882,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15574
16882
|
description: string;
|
|
15575
16883
|
analytic_account?: string | null | undefined;
|
|
15576
16884
|
}[];
|
|
16885
|
+
start_date?: string | null | undefined;
|
|
16886
|
+
end_date?: string | null | undefined;
|
|
16887
|
+
payment_method_id?: string | null | undefined;
|
|
15577
16888
|
}, params?: {
|
|
15578
16889
|
folder_id?: string | null | undefined;
|
|
15579
16890
|
force_financial_period?: string | null | undefined;
|
|
15580
16891
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
16892
|
+
ignore_accounting_id?: boolean | undefined;
|
|
16893
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
15581
16894
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
15582
16895
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
15583
16896
|
invoice_number?: string | null | undefined;
|
|
@@ -15588,10 +16901,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15588
16901
|
reference?: string | null | undefined;
|
|
15589
16902
|
payment_communication?: string | null | undefined;
|
|
15590
16903
|
customer_memo?: string | null | undefined;
|
|
16904
|
+
payment_term_id?: string | null | undefined;
|
|
16905
|
+
withholding_tax?: {
|
|
16906
|
+
tax_rate: number;
|
|
16907
|
+
tax_code: string;
|
|
16908
|
+
tax_amount: number;
|
|
16909
|
+
} | null | undefined;
|
|
15591
16910
|
id?: string | null | undefined;
|
|
15592
16911
|
invoice_date: string;
|
|
15593
16912
|
due_date: string;
|
|
15594
|
-
partner_id: string;
|
|
16913
|
+
partner_id: string | null;
|
|
15595
16914
|
journal_id?: string | null | undefined;
|
|
15596
16915
|
payments?: {
|
|
15597
16916
|
id: string;
|
|
@@ -15645,12 +16964,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15645
16964
|
postal_code?: string | null | undefined;
|
|
15646
16965
|
country?: string | null | undefined;
|
|
15647
16966
|
}[] | null;
|
|
16967
|
+
third_party_account?: string | null | undefined;
|
|
15648
16968
|
} | null | undefined;
|
|
15649
16969
|
due_dates: {
|
|
15650
16970
|
due_date: string;
|
|
15651
16971
|
payment_method?: string | null | undefined;
|
|
16972
|
+
payment_method_id?: string | null | undefined;
|
|
15652
16973
|
amount: number;
|
|
15653
16974
|
}[] | null;
|
|
16975
|
+
attachments_info?: {
|
|
16976
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
16977
|
+
attachments: {
|
|
16978
|
+
filename?: string | null | undefined;
|
|
16979
|
+
url?: string | null | undefined;
|
|
16980
|
+
}[] | null;
|
|
16981
|
+
} | undefined;
|
|
16982
|
+
accounting_info?: {
|
|
16983
|
+
main_currency?: string | undefined;
|
|
16984
|
+
main_currency_total: number;
|
|
16985
|
+
account_number?: string | null | undefined;
|
|
16986
|
+
} | null | undefined;
|
|
16987
|
+
payment_method_id?: string | null | undefined;
|
|
15654
16988
|
lines: {
|
|
15655
16989
|
line_number: number | null;
|
|
15656
16990
|
unit_price: number;
|
|
@@ -15676,6 +17010,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15676
17010
|
reference?: string | null | undefined;
|
|
15677
17011
|
payment_communication?: string | null | undefined;
|
|
15678
17012
|
customer_memo?: string | null | undefined;
|
|
17013
|
+
payment_term_id?: string | null | undefined;
|
|
17014
|
+
withholding_tax?: {
|
|
17015
|
+
tax_rate: number;
|
|
17016
|
+
tax_code: string;
|
|
17017
|
+
tax_amount: number;
|
|
17018
|
+
} | null | undefined;
|
|
15679
17019
|
invoice_date: string;
|
|
15680
17020
|
due_date: string;
|
|
15681
17021
|
partner_id?: string | null | undefined;
|
|
@@ -15724,10 +17064,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15724
17064
|
}[];
|
|
15725
17065
|
}[] | null;
|
|
15726
17066
|
}[];
|
|
17067
|
+
start_date?: string | null | undefined;
|
|
17068
|
+
end_date?: string | null | undefined;
|
|
17069
|
+
payment_method_id?: string | null | undefined;
|
|
15727
17070
|
}, params?: {
|
|
15728
17071
|
folder_id?: string | null | undefined;
|
|
15729
17072
|
force_financial_period?: string | null | undefined;
|
|
15730
17073
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
17074
|
+
ignore_accounting_id?: boolean | undefined;
|
|
17075
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
15731
17076
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
15732
17077
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
15733
17078
|
invoice_number?: string | null | undefined;
|
|
@@ -15738,10 +17083,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15738
17083
|
reference?: string | null | undefined;
|
|
15739
17084
|
payment_communication?: string | null | undefined;
|
|
15740
17085
|
customer_memo?: string | null | undefined;
|
|
17086
|
+
payment_term_id?: string | null | undefined;
|
|
17087
|
+
withholding_tax?: {
|
|
17088
|
+
tax_rate: number;
|
|
17089
|
+
tax_code: string;
|
|
17090
|
+
tax_amount: number;
|
|
17091
|
+
} | null | undefined;
|
|
15741
17092
|
id?: string | null | undefined;
|
|
15742
17093
|
invoice_date: string;
|
|
15743
17094
|
due_date: string;
|
|
15744
|
-
partner_id: string;
|
|
17095
|
+
partner_id: string | null;
|
|
15745
17096
|
journal_id?: string | null | undefined;
|
|
15746
17097
|
payments?: {
|
|
15747
17098
|
id: string;
|
|
@@ -15795,12 +17146,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15795
17146
|
postal_code?: string | null | undefined;
|
|
15796
17147
|
country?: string | null | undefined;
|
|
15797
17148
|
}[] | null;
|
|
17149
|
+
third_party_account?: string | null | undefined;
|
|
15798
17150
|
} | null | undefined;
|
|
15799
17151
|
due_dates: {
|
|
15800
17152
|
due_date: string;
|
|
15801
17153
|
payment_method?: string | null | undefined;
|
|
17154
|
+
payment_method_id?: string | null | undefined;
|
|
15802
17155
|
amount: number;
|
|
15803
17156
|
}[] | null;
|
|
17157
|
+
attachments_info?: {
|
|
17158
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17159
|
+
attachments: {
|
|
17160
|
+
filename?: string | null | undefined;
|
|
17161
|
+
url?: string | null | undefined;
|
|
17162
|
+
}[] | null;
|
|
17163
|
+
} | undefined;
|
|
17164
|
+
accounting_info?: {
|
|
17165
|
+
main_currency?: string | undefined;
|
|
17166
|
+
main_currency_total: number;
|
|
17167
|
+
account_number?: string | null | undefined;
|
|
17168
|
+
} | null | undefined;
|
|
17169
|
+
payment_method_id?: string | null | undefined;
|
|
15804
17170
|
lines: {
|
|
15805
17171
|
line_number: number | null;
|
|
15806
17172
|
unit_price: number;
|
|
@@ -15842,10 +17208,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15842
17208
|
reference?: string | null | undefined;
|
|
15843
17209
|
payment_communication?: string | null | undefined;
|
|
15844
17210
|
customer_memo?: string | null | undefined;
|
|
17211
|
+
payment_term_id?: string | null | undefined;
|
|
17212
|
+
withholding_tax?: {
|
|
17213
|
+
tax_rate: number;
|
|
17214
|
+
tax_code: string;
|
|
17215
|
+
tax_amount: number;
|
|
17216
|
+
} | null | undefined;
|
|
15845
17217
|
id?: string | null | undefined;
|
|
15846
17218
|
invoice_date: string;
|
|
15847
17219
|
due_date: string;
|
|
15848
|
-
partner_id: string;
|
|
17220
|
+
partner_id: string | null;
|
|
15849
17221
|
journal_id?: string | null | undefined;
|
|
15850
17222
|
payments?: {
|
|
15851
17223
|
id: string;
|
|
@@ -15899,12 +17271,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15899
17271
|
postal_code?: string | null | undefined;
|
|
15900
17272
|
country?: string | null | undefined;
|
|
15901
17273
|
}[] | null;
|
|
17274
|
+
third_party_account?: string | null | undefined;
|
|
15902
17275
|
} | null | undefined;
|
|
15903
17276
|
due_dates: {
|
|
15904
17277
|
due_date: string;
|
|
15905
17278
|
payment_method?: string | null | undefined;
|
|
17279
|
+
payment_method_id?: string | null | undefined;
|
|
15906
17280
|
amount: number;
|
|
15907
17281
|
}[] | null;
|
|
17282
|
+
attachments_info?: {
|
|
17283
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17284
|
+
attachments: {
|
|
17285
|
+
filename?: string | null | undefined;
|
|
17286
|
+
url?: string | null | undefined;
|
|
17287
|
+
}[] | null;
|
|
17288
|
+
} | undefined;
|
|
17289
|
+
accounting_info?: {
|
|
17290
|
+
main_currency?: string | undefined;
|
|
17291
|
+
main_currency_total: number;
|
|
17292
|
+
account_number?: string | null | undefined;
|
|
17293
|
+
} | null | undefined;
|
|
17294
|
+
payment_method_id?: string | null | undefined;
|
|
15908
17295
|
lines: {
|
|
15909
17296
|
line_number: number | null;
|
|
15910
17297
|
unit_price: number;
|
|
@@ -15935,10 +17322,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15935
17322
|
reference?: string | null | undefined;
|
|
15936
17323
|
payment_communication?: string | null | undefined;
|
|
15937
17324
|
customer_memo?: string | null | undefined;
|
|
17325
|
+
payment_term_id?: string | null | undefined;
|
|
17326
|
+
withholding_tax?: {
|
|
17327
|
+
tax_rate: number;
|
|
17328
|
+
tax_code: string;
|
|
17329
|
+
tax_amount: number;
|
|
17330
|
+
} | null | undefined;
|
|
15938
17331
|
id?: string | null | undefined;
|
|
15939
17332
|
invoice_date: string;
|
|
15940
17333
|
due_date: string;
|
|
15941
|
-
partner_id: string;
|
|
17334
|
+
partner_id: string | null;
|
|
15942
17335
|
journal_id?: string | null | undefined;
|
|
15943
17336
|
payments?: {
|
|
15944
17337
|
id: string;
|
|
@@ -15992,12 +17385,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15992
17385
|
postal_code?: string | null | undefined;
|
|
15993
17386
|
country?: string | null | undefined;
|
|
15994
17387
|
}[] | null;
|
|
17388
|
+
third_party_account?: string | null | undefined;
|
|
15995
17389
|
} | null | undefined;
|
|
15996
17390
|
due_dates: {
|
|
15997
17391
|
due_date: string;
|
|
15998
17392
|
payment_method?: string | null | undefined;
|
|
17393
|
+
payment_method_id?: string | null | undefined;
|
|
15999
17394
|
amount: number;
|
|
16000
17395
|
}[] | null;
|
|
17396
|
+
attachments_info?: {
|
|
17397
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17398
|
+
attachments: {
|
|
17399
|
+
filename?: string | null | undefined;
|
|
17400
|
+
url?: string | null | undefined;
|
|
17401
|
+
}[] | null;
|
|
17402
|
+
} | undefined;
|
|
17403
|
+
accounting_info?: {
|
|
17404
|
+
main_currency?: string | undefined;
|
|
17405
|
+
main_currency_total: number;
|
|
17406
|
+
account_number?: string | null | undefined;
|
|
17407
|
+
} | null | undefined;
|
|
17408
|
+
payment_method_id?: string | null | undefined;
|
|
16001
17409
|
lines: {
|
|
16002
17410
|
line_number: number | null;
|
|
16003
17411
|
unit_price: number;
|
|
@@ -16028,10 +17436,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16028
17436
|
reference?: string | null | undefined;
|
|
16029
17437
|
payment_communication?: string | null | undefined;
|
|
16030
17438
|
customer_memo?: string | null | undefined;
|
|
17439
|
+
payment_term_id?: string | null | undefined;
|
|
17440
|
+
withholding_tax?: {
|
|
17441
|
+
tax_rate: number;
|
|
17442
|
+
tax_code: string;
|
|
17443
|
+
tax_amount: number;
|
|
17444
|
+
} | null | undefined;
|
|
16031
17445
|
id?: string | null | undefined;
|
|
16032
17446
|
invoice_date: string;
|
|
16033
17447
|
due_date: string;
|
|
16034
|
-
partner_id: string;
|
|
17448
|
+
partner_id: string | null;
|
|
16035
17449
|
journal_id?: string | null | undefined;
|
|
16036
17450
|
payments?: {
|
|
16037
17451
|
id: string;
|
|
@@ -16085,12 +17499,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16085
17499
|
postal_code?: string | null | undefined;
|
|
16086
17500
|
country?: string | null | undefined;
|
|
16087
17501
|
}[] | null;
|
|
17502
|
+
third_party_account?: string | null | undefined;
|
|
16088
17503
|
} | null | undefined;
|
|
16089
17504
|
due_dates: {
|
|
16090
17505
|
due_date: string;
|
|
16091
17506
|
payment_method?: string | null | undefined;
|
|
17507
|
+
payment_method_id?: string | null | undefined;
|
|
16092
17508
|
amount: number;
|
|
16093
17509
|
}[] | null;
|
|
17510
|
+
attachments_info?: {
|
|
17511
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17512
|
+
attachments: {
|
|
17513
|
+
filename?: string | null | undefined;
|
|
17514
|
+
url?: string | null | undefined;
|
|
17515
|
+
}[] | null;
|
|
17516
|
+
} | undefined;
|
|
17517
|
+
accounting_info?: {
|
|
17518
|
+
main_currency?: string | undefined;
|
|
17519
|
+
main_currency_total: number;
|
|
17520
|
+
account_number?: string | null | undefined;
|
|
17521
|
+
} | null | undefined;
|
|
17522
|
+
payment_method_id?: string | null | undefined;
|
|
16094
17523
|
lines: {
|
|
16095
17524
|
line_number: number | null;
|
|
16096
17525
|
unit_price: number;
|
|
@@ -16132,10 +17561,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16132
17561
|
reference?: string | null | undefined;
|
|
16133
17562
|
payment_communication?: string | null | undefined;
|
|
16134
17563
|
customer_memo?: string | null | undefined;
|
|
17564
|
+
payment_term_id?: string | null | undefined;
|
|
17565
|
+
withholding_tax?: {
|
|
17566
|
+
tax_rate: number;
|
|
17567
|
+
tax_code: string;
|
|
17568
|
+
tax_amount: number;
|
|
17569
|
+
} | null | undefined;
|
|
16135
17570
|
id?: string | null | undefined;
|
|
16136
17571
|
invoice_date: string;
|
|
16137
17572
|
due_date: string;
|
|
16138
|
-
partner_id: string;
|
|
17573
|
+
partner_id: string | null;
|
|
16139
17574
|
journal_id?: string | null | undefined;
|
|
16140
17575
|
payments?: {
|
|
16141
17576
|
id: string;
|
|
@@ -16189,12 +17624,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16189
17624
|
postal_code?: string | null | undefined;
|
|
16190
17625
|
country?: string | null | undefined;
|
|
16191
17626
|
}[] | null;
|
|
17627
|
+
third_party_account?: string | null | undefined;
|
|
16192
17628
|
} | null | undefined;
|
|
16193
17629
|
due_dates: {
|
|
16194
17630
|
due_date: string;
|
|
16195
17631
|
payment_method?: string | null | undefined;
|
|
17632
|
+
payment_method_id?: string | null | undefined;
|
|
16196
17633
|
amount: number;
|
|
16197
17634
|
}[] | null;
|
|
17635
|
+
attachments_info?: {
|
|
17636
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17637
|
+
attachments: {
|
|
17638
|
+
filename?: string | null | undefined;
|
|
17639
|
+
url?: string | null | undefined;
|
|
17640
|
+
}[] | null;
|
|
17641
|
+
} | undefined;
|
|
17642
|
+
accounting_info?: {
|
|
17643
|
+
main_currency?: string | undefined;
|
|
17644
|
+
main_currency_total: number;
|
|
17645
|
+
account_number?: string | null | undefined;
|
|
17646
|
+
} | null | undefined;
|
|
17647
|
+
payment_method_id?: string | null | undefined;
|
|
16198
17648
|
lines: {
|
|
16199
17649
|
line_number: number | null;
|
|
16200
17650
|
unit_price: number;
|
|
@@ -16342,7 +17792,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16342
17792
|
folder_id?: string | null | undefined;
|
|
16343
17793
|
updated_after?: string | null | undefined;
|
|
16344
17794
|
unposted_allowed: "true" | "false";
|
|
16345
|
-
journal_id
|
|
17795
|
+
journal_id?: string | null | undefined;
|
|
16346
17796
|
partner_id?: string | null | undefined;
|
|
16347
17797
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16348
17798
|
reference?: string | null | undefined;
|
|
@@ -16356,9 +17806,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16356
17806
|
due_dates: {
|
|
16357
17807
|
due_date: string;
|
|
16358
17808
|
payment_method?: string | null | undefined;
|
|
17809
|
+
payment_method_id?: string | null | undefined;
|
|
16359
17810
|
debit: number | null;
|
|
16360
17811
|
credit: number | null;
|
|
16361
17812
|
}[] | null;
|
|
17813
|
+
attachments_info?: {
|
|
17814
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17815
|
+
attachments: {
|
|
17816
|
+
filename?: string | null | undefined;
|
|
17817
|
+
url?: string | null | undefined;
|
|
17818
|
+
}[] | null;
|
|
17819
|
+
} | undefined;
|
|
16362
17820
|
items: {
|
|
16363
17821
|
account_number: string;
|
|
16364
17822
|
partner_id?: string | null | undefined;
|
|
@@ -16381,7 +17839,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16381
17839
|
folder_id?: string | null | undefined;
|
|
16382
17840
|
updated_after?: string | null | undefined;
|
|
16383
17841
|
unposted_allowed: "true" | "false";
|
|
16384
|
-
journal_id
|
|
17842
|
+
journal_id?: string | null | undefined;
|
|
16385
17843
|
partner_id?: string | null | undefined;
|
|
16386
17844
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16387
17845
|
reference?: string | null | undefined;
|
|
@@ -16395,9 +17853,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16395
17853
|
due_dates: {
|
|
16396
17854
|
due_date: string;
|
|
16397
17855
|
payment_method?: string | null | undefined;
|
|
17856
|
+
payment_method_id?: string | null | undefined;
|
|
16398
17857
|
debit: number | null;
|
|
16399
17858
|
credit: number | null;
|
|
16400
17859
|
}[] | null;
|
|
17860
|
+
attachments_info?: {
|
|
17861
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17862
|
+
attachments: {
|
|
17863
|
+
filename?: string | null | undefined;
|
|
17864
|
+
url?: string | null | undefined;
|
|
17865
|
+
}[] | null;
|
|
17866
|
+
} | undefined;
|
|
16401
17867
|
items: {
|
|
16402
17868
|
account_number: string;
|
|
16403
17869
|
partner_id?: string | null | undefined;
|
|
@@ -16487,6 +17953,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16487
17953
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16488
17954
|
id: string;
|
|
16489
17955
|
code?: string | null | undefined;
|
|
17956
|
+
active: boolean | null;
|
|
16490
17957
|
label: string;
|
|
16491
17958
|
scope: "unknown" | "nat" | "eu" | "int" | null;
|
|
16492
17959
|
rate: number;
|
|
@@ -16494,6 +17961,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16494
17961
|
deductible_account?: string | null | undefined;
|
|
16495
17962
|
payable_account?: string | null | undefined;
|
|
16496
17963
|
reversed: boolean | null;
|
|
17964
|
+
withholding_tax: boolean | null;
|
|
16497
17965
|
country?: string | null | undefined;
|
|
16498
17966
|
}[]>;
|
|
16499
17967
|
getMiscOperations(params?: {
|
|
@@ -16596,12 +18064,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16596
18064
|
getChartOfAccounts(params?: {
|
|
16597
18065
|
folder_id?: string | null | undefined;
|
|
16598
18066
|
classes?: string | null | undefined;
|
|
16599
|
-
type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
|
|
18067
|
+
type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
|
|
16600
18068
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16601
18069
|
number: string;
|
|
16602
18070
|
name: string;
|
|
16603
18071
|
active: boolean | null;
|
|
16604
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
18072
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
18073
|
+
scheme_ids?: string[] | null | undefined;
|
|
18074
|
+
accounting_category?: string | null | undefined;
|
|
16605
18075
|
}[]>;
|
|
16606
18076
|
getBalanceOfAccounts(filter: {
|
|
16607
18077
|
accounts: string[];
|
|
@@ -16677,11 +18147,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16677
18147
|
account: string;
|
|
16678
18148
|
amount: number;
|
|
16679
18149
|
description?: string | null | undefined;
|
|
18150
|
+
automated_matching_number?: string | null | undefined;
|
|
16680
18151
|
}[];
|
|
16681
18152
|
pdf?: string | null | undefined;
|
|
16682
18153
|
}, params?: {
|
|
16683
18154
|
folder_id?: string | null | undefined;
|
|
16684
18155
|
financial_counterpart_account?: string | null | undefined;
|
|
18156
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
16685
18157
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
16686
18158
|
date: string;
|
|
16687
18159
|
journal_id: string;
|
|
@@ -16695,6 +18167,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16695
18167
|
account: string;
|
|
16696
18168
|
amount: number;
|
|
16697
18169
|
description?: string | null | undefined;
|
|
18170
|
+
automated_matching_number?: string | null | undefined;
|
|
16698
18171
|
counterpart_account: string;
|
|
16699
18172
|
}[];
|
|
16700
18173
|
}>;
|
|
@@ -16722,6 +18195,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16722
18195
|
}[];
|
|
16723
18196
|
}[] | null;
|
|
16724
18197
|
tax_code?: string | null | undefined;
|
|
18198
|
+
tax_info?: {
|
|
18199
|
+
tax_code: string;
|
|
18200
|
+
tax_amount: number;
|
|
18201
|
+
vat_account?: string | null | undefined;
|
|
18202
|
+
reversed_vat_account?: string | null | undefined;
|
|
18203
|
+
description?: string | null | undefined;
|
|
18204
|
+
} | null | undefined;
|
|
16725
18205
|
account_info?: {
|
|
16726
18206
|
account_number: string;
|
|
16727
18207
|
account_name: string;
|
|
@@ -16734,6 +18214,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16734
18214
|
}, params?: {
|
|
16735
18215
|
folder_id?: string | null | undefined;
|
|
16736
18216
|
force_currency_exchange?: "true" | "false" | null | undefined;
|
|
18217
|
+
ignore_accounting_id?: boolean | undefined;
|
|
16737
18218
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
16738
18219
|
reference?: string | null | undefined;
|
|
16739
18220
|
due_date?: string | null | undefined;
|
|
@@ -16746,9 +18227,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16746
18227
|
due_dates: {
|
|
16747
18228
|
due_date: string;
|
|
16748
18229
|
payment_method?: string | null | undefined;
|
|
18230
|
+
payment_method_id?: string | null | undefined;
|
|
16749
18231
|
debit: number | null;
|
|
16750
18232
|
credit: number | null;
|
|
16751
18233
|
}[] | null;
|
|
18234
|
+
attachments_info?: {
|
|
18235
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
18236
|
+
attachments: {
|
|
18237
|
+
filename?: string | null | undefined;
|
|
18238
|
+
url?: string | null | undefined;
|
|
18239
|
+
}[] | null;
|
|
18240
|
+
} | undefined;
|
|
16752
18241
|
items: {
|
|
16753
18242
|
account_number: string;
|
|
16754
18243
|
partner_id?: string | null | undefined;
|
|
@@ -16864,14 +18353,35 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16864
18353
|
createLedgerAccount(account: {
|
|
16865
18354
|
name: string;
|
|
16866
18355
|
number: string;
|
|
16867
|
-
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
18356
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
|
|
16868
18357
|
}, params?: {
|
|
16869
18358
|
folder_id?: string | null | undefined;
|
|
16870
18359
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
16871
18360
|
number: string;
|
|
16872
18361
|
name: string;
|
|
16873
18362
|
active: boolean | null;
|
|
16874
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
18363
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
18364
|
+
scheme_ids?: string[] | null | undefined;
|
|
18365
|
+
accounting_category?: string | null | undefined;
|
|
18366
|
+
}>;
|
|
18367
|
+
getBankAccounts(params?: {
|
|
18368
|
+
folder_id?: string | null | undefined;
|
|
18369
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
18370
|
+
items: {
|
|
18371
|
+
id: string;
|
|
18372
|
+
code?: string | null | undefined;
|
|
18373
|
+
currency?: string | null | undefined;
|
|
18374
|
+
account_name?: string | null | undefined;
|
|
18375
|
+
account_number?: string | null | undefined;
|
|
18376
|
+
iban?: string | null | undefined;
|
|
18377
|
+
bank_name?: string | null | undefined;
|
|
18378
|
+
journal_id?: string | null | undefined;
|
|
18379
|
+
ledger_account?: string | null | undefined;
|
|
18380
|
+
unallocated_account?: string | null | undefined;
|
|
18381
|
+
}[];
|
|
18382
|
+
total: number;
|
|
18383
|
+
page: number;
|
|
18384
|
+
size: number;
|
|
16875
18385
|
}>;
|
|
16876
18386
|
createBankAccount(bankAccount: {
|
|
16877
18387
|
code: string;
|
|
@@ -16894,6 +18404,45 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16894
18404
|
ledger_account?: string | null | undefined;
|
|
16895
18405
|
unallocated_account?: string | null | undefined;
|
|
16896
18406
|
}>;
|
|
18407
|
+
createBankTransactions(bankStatement: {
|
|
18408
|
+
bank_statement_date: string;
|
|
18409
|
+
bank_account_id: string;
|
|
18410
|
+
external_bank_statement_id: string;
|
|
18411
|
+
opening_balance?: number | null | undefined;
|
|
18412
|
+
pdf?: string | null | undefined;
|
|
18413
|
+
items: {
|
|
18414
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
18415
|
+
account?: string | null | undefined;
|
|
18416
|
+
description?: string | null | undefined;
|
|
18417
|
+
external_transaction_id?: string | null | undefined;
|
|
18418
|
+
date: string;
|
|
18419
|
+
amount: number;
|
|
18420
|
+
fee_amount: number | null;
|
|
18421
|
+
tax_amount: number | null;
|
|
18422
|
+
currency: string;
|
|
18423
|
+
currency_exchange_rate: number | null;
|
|
18424
|
+
}[];
|
|
18425
|
+
}, params?: {
|
|
18426
|
+
folder_id?: string | null | undefined;
|
|
18427
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
18428
|
+
bank_statement_date: string;
|
|
18429
|
+
bank_account_id: string;
|
|
18430
|
+
id?: string | null | undefined;
|
|
18431
|
+
external_bank_statement_id?: string | null | undefined;
|
|
18432
|
+
items: {
|
|
18433
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
18434
|
+
account?: string | null | undefined;
|
|
18435
|
+
description?: string | null | undefined;
|
|
18436
|
+
external_transaction_id?: string | null | undefined;
|
|
18437
|
+
date: string;
|
|
18438
|
+
amount: number;
|
|
18439
|
+
fee_amount: number | null;
|
|
18440
|
+
tax_amount: number | null;
|
|
18441
|
+
currency: string;
|
|
18442
|
+
currency_exchange_rate: number | null;
|
|
18443
|
+
id?: string | null | undefined;
|
|
18444
|
+
}[];
|
|
18445
|
+
}>;
|
|
16897
18446
|
getJournalEntry(journalEntryId: string, params?: {
|
|
16898
18447
|
folder_id?: string | null | undefined;
|
|
16899
18448
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -16908,9 +18457,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16908
18457
|
due_dates: {
|
|
16909
18458
|
due_date: string;
|
|
16910
18459
|
payment_method?: string | null | undefined;
|
|
18460
|
+
payment_method_id?: string | null | undefined;
|
|
16911
18461
|
debit: number | null;
|
|
16912
18462
|
credit: number | null;
|
|
16913
18463
|
}[] | null;
|
|
18464
|
+
attachments_info?: {
|
|
18465
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
18466
|
+
attachments: {
|
|
18467
|
+
filename?: string | null | undefined;
|
|
18468
|
+
url?: string | null | undefined;
|
|
18469
|
+
}[] | null;
|
|
18470
|
+
} | undefined;
|
|
16914
18471
|
items: {
|
|
16915
18472
|
account_number: string;
|
|
16916
18473
|
partner_id?: string | null | undefined;
|
|
@@ -16939,7 +18496,30 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16939
18496
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16940
18497
|
items: {
|
|
16941
18498
|
id: string;
|
|
16942
|
-
name?: string | null | undefined;
|
|
18499
|
+
name?: string | null | undefined;
|
|
18500
|
+
}[];
|
|
18501
|
+
total: number;
|
|
18502
|
+
page: number;
|
|
18503
|
+
size: number;
|
|
18504
|
+
}>;
|
|
18505
|
+
getPaymentTerms(params?: {
|
|
18506
|
+
folder_id?: string | null | undefined;
|
|
18507
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
18508
|
+
items: {
|
|
18509
|
+
id: string;
|
|
18510
|
+
name?: string | null | undefined;
|
|
18511
|
+
}[];
|
|
18512
|
+
total: number;
|
|
18513
|
+
page: number;
|
|
18514
|
+
size: number;
|
|
18515
|
+
}>;
|
|
18516
|
+
getSchemes(params?: {
|
|
18517
|
+
folder_id?: string | null | undefined;
|
|
18518
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
18519
|
+
items: {
|
|
18520
|
+
id: string;
|
|
18521
|
+
code: string;
|
|
18522
|
+
name: string;
|
|
16943
18523
|
}[];
|
|
16944
18524
|
total: number;
|
|
16945
18525
|
page: number;
|
|
@@ -16964,6 +18544,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16964
18544
|
};
|
|
16965
18545
|
content?: undefined;
|
|
16966
18546
|
}>;
|
|
18547
|
+
exportFec(params: {
|
|
18548
|
+
folder_id?: string | null | undefined;
|
|
18549
|
+
date_from: string;
|
|
18550
|
+
date_to: string;
|
|
18551
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
18552
|
+
JournalCode: string;
|
|
18553
|
+
JournalLib: string;
|
|
18554
|
+
EcritureNum: string;
|
|
18555
|
+
EcritureDate: string;
|
|
18556
|
+
CompteNum: string;
|
|
18557
|
+
CompteLib: string;
|
|
18558
|
+
CompAuxNum: string;
|
|
18559
|
+
CompAuxLib: string;
|
|
18560
|
+
PieceRef: string;
|
|
18561
|
+
PieceDate: string;
|
|
18562
|
+
Debit: number;
|
|
18563
|
+
Credit: number;
|
|
18564
|
+
EcritureLet: string;
|
|
18565
|
+
DateLet: string | null;
|
|
18566
|
+
ValidDate: string | null;
|
|
18567
|
+
Montantdevise: number;
|
|
18568
|
+
Idevise: string;
|
|
18569
|
+
}[]>;
|
|
16967
18570
|
}>;
|
|
16968
18571
|
invoicing: import("../types/api").ApiFor<{
|
|
16969
18572
|
getInvoices(params?: {
|
|
@@ -16973,6 +18576,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16973
18576
|
updated_after?: string | null | undefined;
|
|
16974
18577
|
include_invoice_lines?: "true" | "false" | null | undefined;
|
|
16975
18578
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
18579
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
16976
18580
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16977
18581
|
id: string;
|
|
16978
18582
|
source_ref: {
|
|
@@ -17002,6 +18606,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17002
18606
|
product_id?: string | null | undefined;
|
|
17003
18607
|
product_code?: string | null | undefined;
|
|
17004
18608
|
product_name?: string | null | undefined;
|
|
18609
|
+
analytic_distribution: {
|
|
18610
|
+
analytic_plan_code: string;
|
|
18611
|
+
analytic_accounts: {
|
|
18612
|
+
analytic_account_code: string;
|
|
18613
|
+
analytic_account_name: string;
|
|
18614
|
+
percentage: number;
|
|
18615
|
+
}[];
|
|
18616
|
+
}[] | null;
|
|
17005
18617
|
}[];
|
|
17006
18618
|
partner_id?: string | null | undefined;
|
|
17007
18619
|
invoice_number?: string | null | undefined;
|
|
@@ -17041,6 +18653,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17041
18653
|
}[]>;
|
|
17042
18654
|
getInvoiceById(invoiceId: string, params?: {
|
|
17043
18655
|
include_pdf?: "true" | "false" | null | undefined;
|
|
18656
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
17044
18657
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
17045
18658
|
id: string;
|
|
17046
18659
|
source_ref: {
|
|
@@ -17070,6 +18683,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17070
18683
|
product_id?: string | null | undefined;
|
|
17071
18684
|
product_code?: string | null | undefined;
|
|
17072
18685
|
product_name?: string | null | undefined;
|
|
18686
|
+
analytic_distribution: {
|
|
18687
|
+
analytic_plan_code: string;
|
|
18688
|
+
analytic_accounts: {
|
|
18689
|
+
analytic_account_code: string;
|
|
18690
|
+
analytic_account_name: string;
|
|
18691
|
+
percentage: number;
|
|
18692
|
+
}[];
|
|
18693
|
+
}[] | null;
|
|
17073
18694
|
}[];
|
|
17074
18695
|
partner_id?: string | null | undefined;
|
|
17075
18696
|
invoice_number?: string | null | undefined;
|
|
@@ -17191,6 +18812,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17191
18812
|
product_id?: string | null | undefined;
|
|
17192
18813
|
product_code?: string | null | undefined;
|
|
17193
18814
|
product_name?: string | null | undefined;
|
|
18815
|
+
analytic_distribution: {
|
|
18816
|
+
analytic_plan_code: string;
|
|
18817
|
+
analytic_accounts: {
|
|
18818
|
+
analytic_account_code: string;
|
|
18819
|
+
analytic_account_name: string;
|
|
18820
|
+
percentage: number;
|
|
18821
|
+
}[];
|
|
18822
|
+
}[] | null;
|
|
17194
18823
|
}[];
|
|
17195
18824
|
partner_id?: string | null | undefined;
|
|
17196
18825
|
invoice_number?: string | null | undefined;
|
|
@@ -18769,14 +20398,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18769
20398
|
reference: string;
|
|
18770
20399
|
reference_type: string;
|
|
18771
20400
|
holder_name?: string | null | undefined;
|
|
20401
|
+
active: boolean | null;
|
|
18772
20402
|
}[]>;
|
|
18773
|
-
getAccountTransactions(
|
|
20403
|
+
getAccountTransactions(params: {
|
|
18774
20404
|
date_from?: string | null | undefined;
|
|
18775
20405
|
date_to?: string | null | undefined;
|
|
20406
|
+
updated_after?: string | null | undefined;
|
|
20407
|
+
account_id: string;
|
|
18776
20408
|
date_type?: "value_date" | "execution_date" | null | undefined;
|
|
18777
|
-
}
|
|
20409
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
18778
20410
|
id: string;
|
|
18779
20411
|
amount: number;
|
|
20412
|
+
tax_amount?: number | null | undefined;
|
|
18780
20413
|
currency: string;
|
|
18781
20414
|
description?: string | null | undefined;
|
|
18782
20415
|
additional_information?: string | null | undefined;
|
|
@@ -18786,6 +20419,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18786
20419
|
creation_date: string;
|
|
18787
20420
|
value_date: string;
|
|
18788
20421
|
execution_date: string;
|
|
20422
|
+
internal_transaction: boolean | null;
|
|
20423
|
+
operation_type: "other" | "fee" | "incoming_transfer" | "outgoing_transfer" | "card" | "direct_debit" | "direct_debit_collection" | "direct_debit_hold" | "cheque" | "recall" | "swift_income" | "pay_later" | "financing_installment" | null;
|
|
20424
|
+
last_update_on?: string | null | undefined;
|
|
20425
|
+
status?: "completed" | "pending" | "declined" | null | undefined;
|
|
20426
|
+
attachments_info?: {
|
|
20427
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
20428
|
+
attachments: {
|
|
20429
|
+
filename?: string | null | undefined;
|
|
20430
|
+
url?: string | null | undefined;
|
|
20431
|
+
}[] | null;
|
|
20432
|
+
} | undefined;
|
|
18789
20433
|
}[]>;
|
|
18790
20434
|
getAccountCounterparts(params?: {
|
|
18791
20435
|
date_from?: string | null | undefined;
|
|
@@ -18796,6 +20440,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18796
20440
|
reference?: string | null | undefined;
|
|
18797
20441
|
details?: string | null | undefined;
|
|
18798
20442
|
}[]>;
|
|
20443
|
+
getAttachments(params: {
|
|
20444
|
+
transaction_id: string;
|
|
20445
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
20446
|
+
items: {
|
|
20447
|
+
id: string;
|
|
20448
|
+
base64_string: string;
|
|
20449
|
+
}[];
|
|
20450
|
+
total: number;
|
|
20451
|
+
page: number;
|
|
20452
|
+
size: number;
|
|
20453
|
+
}>;
|
|
18799
20454
|
}>;
|
|
18800
20455
|
getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
|
|
18801
20456
|
data: {
|
|
@@ -18835,6 +20490,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18835
20490
|
source_id?: string | null | undefined;
|
|
18836
20491
|
target_id?: string | null | undefined;
|
|
18837
20492
|
}[];
|
|
20493
|
+
hidden_source_ids: string[];
|
|
18838
20494
|
sub_mapping_name: string;
|
|
18839
20495
|
sub_mapping_description?: string | null | undefined;
|
|
18840
20496
|
}[] | null | undefined;
|
|
@@ -18998,7 +20654,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18998
20654
|
value: string;
|
|
18999
20655
|
}[] | null | undefined;
|
|
19000
20656
|
country?: string | null | undefined;
|
|
19001
|
-
|
|
20657
|
+
redirect: boolean | null;
|
|
20658
|
+
} | null | undefined) => Promise<{
|
|
19002
20659
|
url: string;
|
|
19003
20660
|
}>;
|
|
19004
20661
|
updateConnection: (connectionId: string, body?: {
|
|
@@ -19017,6 +20674,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19017
20674
|
};
|
|
19018
20675
|
content?: undefined;
|
|
19019
20676
|
}>;
|
|
20677
|
+
getTransactionByClientRequestId: (connectionId: string, params: {
|
|
20678
|
+
client_request_id: string;
|
|
20679
|
+
}) => Promise<{
|
|
20680
|
+
created_on: string;
|
|
20681
|
+
method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
|
|
20682
|
+
route: string;
|
|
20683
|
+
status_code: number;
|
|
20684
|
+
created_entity_id?: string | null | undefined;
|
|
20685
|
+
}>;
|
|
19020
20686
|
enableFlow: (syncId: string, flowId: string, body: {
|
|
19021
20687
|
integrationids: string[];
|
|
19022
20688
|
triggerid: string | null;
|
|
@@ -19073,6 +20739,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19073
20739
|
total_refund: number | null;
|
|
19074
20740
|
total_tip: number | null;
|
|
19075
20741
|
delivery_fee: number | null;
|
|
20742
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
19076
20743
|
currency?: string | null | undefined;
|
|
19077
20744
|
country?: string | null | undefined;
|
|
19078
20745
|
loyalty?: number | null | undefined;
|
|
@@ -19151,6 +20818,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19151
20818
|
total_refund: number | null;
|
|
19152
20819
|
total_tip: number | null;
|
|
19153
20820
|
delivery_fee: number | null;
|
|
20821
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
19154
20822
|
currency?: string | null | undefined;
|
|
19155
20823
|
country?: string | null | undefined;
|
|
19156
20824
|
loyalty?: number | null | undefined;
|
|
@@ -19339,6 +21007,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19339
21007
|
total_refund: number | null;
|
|
19340
21008
|
total_tip: number | null;
|
|
19341
21009
|
delivery_fee: number | null;
|
|
21010
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
19342
21011
|
currency?: string | null | undefined;
|
|
19343
21012
|
country?: string | null | undefined;
|
|
19344
21013
|
loyalty?: number | null | undefined;
|
|
@@ -19443,6 +21112,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19443
21112
|
total_refund: number | null;
|
|
19444
21113
|
total_tip: number | null;
|
|
19445
21114
|
delivery_fee: number | null;
|
|
21115
|
+
mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
|
|
19446
21116
|
currency?: string | null | undefined;
|
|
19447
21117
|
country?: string | null | undefined;
|
|
19448
21118
|
loyalty?: number | null | undefined;
|
|
@@ -19622,6 +21292,30 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19622
21292
|
country?: string | null | undefined;
|
|
19623
21293
|
}[] | null | undefined;
|
|
19624
21294
|
}[]>;
|
|
21295
|
+
getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
21296
|
+
id: string;
|
|
21297
|
+
source_ref: {
|
|
21298
|
+
id?: string | null | undefined;
|
|
21299
|
+
model?: string | null | undefined;
|
|
21300
|
+
};
|
|
21301
|
+
first_name?: string | null | undefined;
|
|
21302
|
+
last_name?: string | null | undefined;
|
|
21303
|
+
company_name?: string | null | undefined;
|
|
21304
|
+
phone?: string | null | undefined;
|
|
21305
|
+
email?: string | null | undefined;
|
|
21306
|
+
account_number?: string | null | undefined;
|
|
21307
|
+
created_on?: string | null | undefined;
|
|
21308
|
+
addresses?: {
|
|
21309
|
+
address_type?: string | null | undefined;
|
|
21310
|
+
name?: string | null | undefined;
|
|
21311
|
+
street?: string | null | undefined;
|
|
21312
|
+
number?: string | null | undefined;
|
|
21313
|
+
box?: string | null | undefined;
|
|
21314
|
+
city?: string | null | undefined;
|
|
21315
|
+
postal_code?: string | null | undefined;
|
|
21316
|
+
country?: string | null | undefined;
|
|
21317
|
+
}[] | null | undefined;
|
|
21318
|
+
}>;
|
|
19625
21319
|
getInvoices(params?: {
|
|
19626
21320
|
date_from: string;
|
|
19627
21321
|
date_to: string;
|
|
@@ -19724,6 +21418,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19724
21418
|
untaxed_amount: number;
|
|
19725
21419
|
total: number;
|
|
19726
21420
|
}[]>;
|
|
21421
|
+
getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
21422
|
+
items: {
|
|
21423
|
+
id: string;
|
|
21424
|
+
source_ref: {
|
|
21425
|
+
id?: string | null | undefined;
|
|
21426
|
+
model?: string | null | undefined;
|
|
21427
|
+
};
|
|
21428
|
+
label?: string | null | undefined;
|
|
21429
|
+
rate?: number | null | undefined;
|
|
21430
|
+
}[];
|
|
21431
|
+
total: number;
|
|
21432
|
+
page: number;
|
|
21433
|
+
size: number;
|
|
21434
|
+
}>;
|
|
19727
21435
|
}>;
|
|
19728
21436
|
payment: import("../types/api").ApiFor<{
|
|
19729
21437
|
getPayments(params: {
|
|
@@ -19857,6 +21565,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19857
21565
|
postal_code?: string | null | undefined;
|
|
19858
21566
|
country?: string | null | undefined;
|
|
19859
21567
|
}[] | null;
|
|
21568
|
+
third_party_account?: string | null | undefined;
|
|
19860
21569
|
}[]>;
|
|
19861
21570
|
createClient(client: {
|
|
19862
21571
|
external_reference?: string | null | undefined;
|
|
@@ -19930,6 +21639,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19930
21639
|
postal_code?: string | null | undefined;
|
|
19931
21640
|
country?: string | null | undefined;
|
|
19932
21641
|
}[] | null;
|
|
21642
|
+
third_party_account?: string | null | undefined;
|
|
19933
21643
|
}>;
|
|
19934
21644
|
getClient(clientId: string, params?: {
|
|
19935
21645
|
folder_id?: string | null | undefined;
|
|
@@ -19969,6 +21679,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19969
21679
|
postal_code?: string | null | undefined;
|
|
19970
21680
|
country?: string | null | undefined;
|
|
19971
21681
|
}[] | null;
|
|
21682
|
+
third_party_account?: string | null | undefined;
|
|
19972
21683
|
}>;
|
|
19973
21684
|
updateClient(clientId: string, client: {
|
|
19974
21685
|
external_reference?: string | null | undefined;
|
|
@@ -20040,6 +21751,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20040
21751
|
postal_code?: string | null | undefined;
|
|
20041
21752
|
country?: string | null | undefined;
|
|
20042
21753
|
}[] | null;
|
|
21754
|
+
third_party_account?: string | null | undefined;
|
|
20043
21755
|
}>;
|
|
20044
21756
|
getSuppliers(params?: {
|
|
20045
21757
|
search?: string | null | undefined;
|
|
@@ -20081,6 +21793,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20081
21793
|
postal_code?: string | null | undefined;
|
|
20082
21794
|
country?: string | null | undefined;
|
|
20083
21795
|
}[] | null;
|
|
21796
|
+
third_party_account?: string | null | undefined;
|
|
20084
21797
|
}[]>;
|
|
20085
21798
|
createSupplier(supplier: {
|
|
20086
21799
|
external_reference?: string | null | undefined;
|
|
@@ -20154,6 +21867,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20154
21867
|
postal_code?: string | null | undefined;
|
|
20155
21868
|
country?: string | null | undefined;
|
|
20156
21869
|
}[] | null;
|
|
21870
|
+
third_party_account?: string | null | undefined;
|
|
20157
21871
|
}>;
|
|
20158
21872
|
getSupplier(supplierId: string, params?: {
|
|
20159
21873
|
folder_id?: string | null | undefined;
|
|
@@ -20193,6 +21907,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20193
21907
|
postal_code?: string | null | undefined;
|
|
20194
21908
|
country?: string | null | undefined;
|
|
20195
21909
|
}[] | null;
|
|
21910
|
+
third_party_account?: string | null | undefined;
|
|
20196
21911
|
}>;
|
|
20197
21912
|
updateSupplier(supplierId: string, supplier: {
|
|
20198
21913
|
external_reference?: string | null | undefined;
|
|
@@ -20264,6 +21979,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20264
21979
|
postal_code?: string | null | undefined;
|
|
20265
21980
|
country?: string | null | undefined;
|
|
20266
21981
|
}[] | null;
|
|
21982
|
+
third_party_account?: string | null | undefined;
|
|
20267
21983
|
}>;
|
|
20268
21984
|
createInvoice(invoice: {
|
|
20269
21985
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
@@ -20275,6 +21991,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20275
21991
|
reference?: string | null | undefined;
|
|
20276
21992
|
payment_communication?: string | null | undefined;
|
|
20277
21993
|
customer_memo?: string | null | undefined;
|
|
21994
|
+
payment_term_id?: string | null | undefined;
|
|
21995
|
+
withholding_tax?: {
|
|
21996
|
+
tax_rate: number;
|
|
21997
|
+
tax_code: string;
|
|
21998
|
+
tax_amount: number;
|
|
21999
|
+
} | null | undefined;
|
|
20278
22000
|
invoice_date: string;
|
|
20279
22001
|
due_date: string;
|
|
20280
22002
|
partner_id?: string | null | undefined;
|
|
@@ -20317,10 +22039,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20317
22039
|
description: string;
|
|
20318
22040
|
analytic_account?: string | null | undefined;
|
|
20319
22041
|
}[];
|
|
22042
|
+
start_date?: string | null | undefined;
|
|
22043
|
+
end_date?: string | null | undefined;
|
|
22044
|
+
payment_method_id?: string | null | undefined;
|
|
20320
22045
|
}, params?: {
|
|
20321
22046
|
folder_id?: string | null | undefined;
|
|
20322
22047
|
force_financial_period?: string | null | undefined;
|
|
20323
22048
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
22049
|
+
ignore_accounting_id?: boolean | undefined;
|
|
22050
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
20324
22051
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
20325
22052
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
20326
22053
|
invoice_number?: string | null | undefined;
|
|
@@ -20331,10 +22058,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20331
22058
|
reference?: string | null | undefined;
|
|
20332
22059
|
payment_communication?: string | null | undefined;
|
|
20333
22060
|
customer_memo?: string | null | undefined;
|
|
22061
|
+
payment_term_id?: string | null | undefined;
|
|
22062
|
+
withholding_tax?: {
|
|
22063
|
+
tax_rate: number;
|
|
22064
|
+
tax_code: string;
|
|
22065
|
+
tax_amount: number;
|
|
22066
|
+
} | null | undefined;
|
|
20334
22067
|
id?: string | null | undefined;
|
|
20335
22068
|
invoice_date: string;
|
|
20336
22069
|
due_date: string;
|
|
20337
|
-
partner_id: string;
|
|
22070
|
+
partner_id: string | null;
|
|
20338
22071
|
journal_id?: string | null | undefined;
|
|
20339
22072
|
payments?: {
|
|
20340
22073
|
id: string;
|
|
@@ -20388,12 +22121,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20388
22121
|
postal_code?: string | null | undefined;
|
|
20389
22122
|
country?: string | null | undefined;
|
|
20390
22123
|
}[] | null;
|
|
22124
|
+
third_party_account?: string | null | undefined;
|
|
20391
22125
|
} | null | undefined;
|
|
20392
22126
|
due_dates: {
|
|
20393
22127
|
due_date: string;
|
|
20394
22128
|
payment_method?: string | null | undefined;
|
|
22129
|
+
payment_method_id?: string | null | undefined;
|
|
20395
22130
|
amount: number;
|
|
20396
22131
|
}[] | null;
|
|
22132
|
+
attachments_info?: {
|
|
22133
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22134
|
+
attachments: {
|
|
22135
|
+
filename?: string | null | undefined;
|
|
22136
|
+
url?: string | null | undefined;
|
|
22137
|
+
}[] | null;
|
|
22138
|
+
} | undefined;
|
|
22139
|
+
accounting_info?: {
|
|
22140
|
+
main_currency?: string | undefined;
|
|
22141
|
+
main_currency_total: number;
|
|
22142
|
+
account_number?: string | null | undefined;
|
|
22143
|
+
} | null | undefined;
|
|
22144
|
+
payment_method_id?: string | null | undefined;
|
|
20397
22145
|
lines: {
|
|
20398
22146
|
line_number: number | null;
|
|
20399
22147
|
unit_price: number;
|
|
@@ -20419,6 +22167,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20419
22167
|
reference?: string | null | undefined;
|
|
20420
22168
|
payment_communication?: string | null | undefined;
|
|
20421
22169
|
customer_memo?: string | null | undefined;
|
|
22170
|
+
payment_term_id?: string | null | undefined;
|
|
22171
|
+
withholding_tax?: {
|
|
22172
|
+
tax_rate: number;
|
|
22173
|
+
tax_code: string;
|
|
22174
|
+
tax_amount: number;
|
|
22175
|
+
} | null | undefined;
|
|
20422
22176
|
invoice_date: string;
|
|
20423
22177
|
due_date: string;
|
|
20424
22178
|
partner_id?: string | null | undefined;
|
|
@@ -20467,10 +22221,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20467
22221
|
}[];
|
|
20468
22222
|
}[] | null;
|
|
20469
22223
|
}[];
|
|
22224
|
+
start_date?: string | null | undefined;
|
|
22225
|
+
end_date?: string | null | undefined;
|
|
22226
|
+
payment_method_id?: string | null | undefined;
|
|
20470
22227
|
}, params?: {
|
|
20471
22228
|
folder_id?: string | null | undefined;
|
|
20472
22229
|
force_financial_period?: string | null | undefined;
|
|
20473
22230
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
22231
|
+
ignore_accounting_id?: boolean | undefined;
|
|
22232
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
20474
22233
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
20475
22234
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
20476
22235
|
invoice_number?: string | null | undefined;
|
|
@@ -20481,10 +22240,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20481
22240
|
reference?: string | null | undefined;
|
|
20482
22241
|
payment_communication?: string | null | undefined;
|
|
20483
22242
|
customer_memo?: string | null | undefined;
|
|
22243
|
+
payment_term_id?: string | null | undefined;
|
|
22244
|
+
withholding_tax?: {
|
|
22245
|
+
tax_rate: number;
|
|
22246
|
+
tax_code: string;
|
|
22247
|
+
tax_amount: number;
|
|
22248
|
+
} | null | undefined;
|
|
20484
22249
|
id?: string | null | undefined;
|
|
20485
22250
|
invoice_date: string;
|
|
20486
22251
|
due_date: string;
|
|
20487
|
-
partner_id: string;
|
|
22252
|
+
partner_id: string | null;
|
|
20488
22253
|
journal_id?: string | null | undefined;
|
|
20489
22254
|
payments?: {
|
|
20490
22255
|
id: string;
|
|
@@ -20538,12 +22303,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20538
22303
|
postal_code?: string | null | undefined;
|
|
20539
22304
|
country?: string | null | undefined;
|
|
20540
22305
|
}[] | null;
|
|
22306
|
+
third_party_account?: string | null | undefined;
|
|
20541
22307
|
} | null | undefined;
|
|
20542
22308
|
due_dates: {
|
|
20543
22309
|
due_date: string;
|
|
20544
22310
|
payment_method?: string | null | undefined;
|
|
22311
|
+
payment_method_id?: string | null | undefined;
|
|
20545
22312
|
amount: number;
|
|
20546
22313
|
}[] | null;
|
|
22314
|
+
attachments_info?: {
|
|
22315
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22316
|
+
attachments: {
|
|
22317
|
+
filename?: string | null | undefined;
|
|
22318
|
+
url?: string | null | undefined;
|
|
22319
|
+
}[] | null;
|
|
22320
|
+
} | undefined;
|
|
22321
|
+
accounting_info?: {
|
|
22322
|
+
main_currency?: string | undefined;
|
|
22323
|
+
main_currency_total: number;
|
|
22324
|
+
account_number?: string | null | undefined;
|
|
22325
|
+
} | null | undefined;
|
|
22326
|
+
payment_method_id?: string | null | undefined;
|
|
20547
22327
|
lines: {
|
|
20548
22328
|
line_number: number | null;
|
|
20549
22329
|
unit_price: number;
|
|
@@ -20585,10 +22365,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20585
22365
|
reference?: string | null | undefined;
|
|
20586
22366
|
payment_communication?: string | null | undefined;
|
|
20587
22367
|
customer_memo?: string | null | undefined;
|
|
22368
|
+
payment_term_id?: string | null | undefined;
|
|
22369
|
+
withholding_tax?: {
|
|
22370
|
+
tax_rate: number;
|
|
22371
|
+
tax_code: string;
|
|
22372
|
+
tax_amount: number;
|
|
22373
|
+
} | null | undefined;
|
|
20588
22374
|
id?: string | null | undefined;
|
|
20589
22375
|
invoice_date: string;
|
|
20590
22376
|
due_date: string;
|
|
20591
|
-
partner_id: string;
|
|
22377
|
+
partner_id: string | null;
|
|
20592
22378
|
journal_id?: string | null | undefined;
|
|
20593
22379
|
payments?: {
|
|
20594
22380
|
id: string;
|
|
@@ -20642,12 +22428,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20642
22428
|
postal_code?: string | null | undefined;
|
|
20643
22429
|
country?: string | null | undefined;
|
|
20644
22430
|
}[] | null;
|
|
22431
|
+
third_party_account?: string | null | undefined;
|
|
20645
22432
|
} | null | undefined;
|
|
20646
22433
|
due_dates: {
|
|
20647
22434
|
due_date: string;
|
|
20648
22435
|
payment_method?: string | null | undefined;
|
|
22436
|
+
payment_method_id?: string | null | undefined;
|
|
20649
22437
|
amount: number;
|
|
20650
22438
|
}[] | null;
|
|
22439
|
+
attachments_info?: {
|
|
22440
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22441
|
+
attachments: {
|
|
22442
|
+
filename?: string | null | undefined;
|
|
22443
|
+
url?: string | null | undefined;
|
|
22444
|
+
}[] | null;
|
|
22445
|
+
} | undefined;
|
|
22446
|
+
accounting_info?: {
|
|
22447
|
+
main_currency?: string | undefined;
|
|
22448
|
+
main_currency_total: number;
|
|
22449
|
+
account_number?: string | null | undefined;
|
|
22450
|
+
} | null | undefined;
|
|
22451
|
+
payment_method_id?: string | null | undefined;
|
|
20651
22452
|
lines: {
|
|
20652
22453
|
line_number: number | null;
|
|
20653
22454
|
unit_price: number;
|
|
@@ -20678,10 +22479,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20678
22479
|
reference?: string | null | undefined;
|
|
20679
22480
|
payment_communication?: string | null | undefined;
|
|
20680
22481
|
customer_memo?: string | null | undefined;
|
|
22482
|
+
payment_term_id?: string | null | undefined;
|
|
22483
|
+
withholding_tax?: {
|
|
22484
|
+
tax_rate: number;
|
|
22485
|
+
tax_code: string;
|
|
22486
|
+
tax_amount: number;
|
|
22487
|
+
} | null | undefined;
|
|
20681
22488
|
id?: string | null | undefined;
|
|
20682
22489
|
invoice_date: string;
|
|
20683
22490
|
due_date: string;
|
|
20684
|
-
partner_id: string;
|
|
22491
|
+
partner_id: string | null;
|
|
20685
22492
|
journal_id?: string | null | undefined;
|
|
20686
22493
|
payments?: {
|
|
20687
22494
|
id: string;
|
|
@@ -20735,12 +22542,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20735
22542
|
postal_code?: string | null | undefined;
|
|
20736
22543
|
country?: string | null | undefined;
|
|
20737
22544
|
}[] | null;
|
|
22545
|
+
third_party_account?: string | null | undefined;
|
|
20738
22546
|
} | null | undefined;
|
|
20739
22547
|
due_dates: {
|
|
20740
22548
|
due_date: string;
|
|
20741
22549
|
payment_method?: string | null | undefined;
|
|
22550
|
+
payment_method_id?: string | null | undefined;
|
|
20742
22551
|
amount: number;
|
|
20743
22552
|
}[] | null;
|
|
22553
|
+
attachments_info?: {
|
|
22554
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22555
|
+
attachments: {
|
|
22556
|
+
filename?: string | null | undefined;
|
|
22557
|
+
url?: string | null | undefined;
|
|
22558
|
+
}[] | null;
|
|
22559
|
+
} | undefined;
|
|
22560
|
+
accounting_info?: {
|
|
22561
|
+
main_currency?: string | undefined;
|
|
22562
|
+
main_currency_total: number;
|
|
22563
|
+
account_number?: string | null | undefined;
|
|
22564
|
+
} | null | undefined;
|
|
22565
|
+
payment_method_id?: string | null | undefined;
|
|
20744
22566
|
lines: {
|
|
20745
22567
|
line_number: number | null;
|
|
20746
22568
|
unit_price: number;
|
|
@@ -20771,10 +22593,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20771
22593
|
reference?: string | null | undefined;
|
|
20772
22594
|
payment_communication?: string | null | undefined;
|
|
20773
22595
|
customer_memo?: string | null | undefined;
|
|
22596
|
+
payment_term_id?: string | null | undefined;
|
|
22597
|
+
withholding_tax?: {
|
|
22598
|
+
tax_rate: number;
|
|
22599
|
+
tax_code: string;
|
|
22600
|
+
tax_amount: number;
|
|
22601
|
+
} | null | undefined;
|
|
20774
22602
|
id?: string | null | undefined;
|
|
20775
22603
|
invoice_date: string;
|
|
20776
22604
|
due_date: string;
|
|
20777
|
-
partner_id: string;
|
|
22605
|
+
partner_id: string | null;
|
|
20778
22606
|
journal_id?: string | null | undefined;
|
|
20779
22607
|
payments?: {
|
|
20780
22608
|
id: string;
|
|
@@ -20828,12 +22656,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20828
22656
|
postal_code?: string | null | undefined;
|
|
20829
22657
|
country?: string | null | undefined;
|
|
20830
22658
|
}[] | null;
|
|
22659
|
+
third_party_account?: string | null | undefined;
|
|
20831
22660
|
} | null | undefined;
|
|
20832
22661
|
due_dates: {
|
|
20833
22662
|
due_date: string;
|
|
20834
22663
|
payment_method?: string | null | undefined;
|
|
22664
|
+
payment_method_id?: string | null | undefined;
|
|
20835
22665
|
amount: number;
|
|
20836
22666
|
}[] | null;
|
|
22667
|
+
attachments_info?: {
|
|
22668
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22669
|
+
attachments: {
|
|
22670
|
+
filename?: string | null | undefined;
|
|
22671
|
+
url?: string | null | undefined;
|
|
22672
|
+
}[] | null;
|
|
22673
|
+
} | undefined;
|
|
22674
|
+
accounting_info?: {
|
|
22675
|
+
main_currency?: string | undefined;
|
|
22676
|
+
main_currency_total: number;
|
|
22677
|
+
account_number?: string | null | undefined;
|
|
22678
|
+
} | null | undefined;
|
|
22679
|
+
payment_method_id?: string | null | undefined;
|
|
20837
22680
|
lines: {
|
|
20838
22681
|
line_number: number | null;
|
|
20839
22682
|
unit_price: number;
|
|
@@ -20875,10 +22718,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20875
22718
|
reference?: string | null | undefined;
|
|
20876
22719
|
payment_communication?: string | null | undefined;
|
|
20877
22720
|
customer_memo?: string | null | undefined;
|
|
22721
|
+
payment_term_id?: string | null | undefined;
|
|
22722
|
+
withholding_tax?: {
|
|
22723
|
+
tax_rate: number;
|
|
22724
|
+
tax_code: string;
|
|
22725
|
+
tax_amount: number;
|
|
22726
|
+
} | null | undefined;
|
|
20878
22727
|
id?: string | null | undefined;
|
|
20879
22728
|
invoice_date: string;
|
|
20880
22729
|
due_date: string;
|
|
20881
|
-
partner_id: string;
|
|
22730
|
+
partner_id: string | null;
|
|
20882
22731
|
journal_id?: string | null | undefined;
|
|
20883
22732
|
payments?: {
|
|
20884
22733
|
id: string;
|
|
@@ -20932,12 +22781,27 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20932
22781
|
postal_code?: string | null | undefined;
|
|
20933
22782
|
country?: string | null | undefined;
|
|
20934
22783
|
}[] | null;
|
|
22784
|
+
third_party_account?: string | null | undefined;
|
|
20935
22785
|
} | null | undefined;
|
|
20936
22786
|
due_dates: {
|
|
20937
22787
|
due_date: string;
|
|
20938
22788
|
payment_method?: string | null | undefined;
|
|
22789
|
+
payment_method_id?: string | null | undefined;
|
|
20939
22790
|
amount: number;
|
|
20940
22791
|
}[] | null;
|
|
22792
|
+
attachments_info?: {
|
|
22793
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22794
|
+
attachments: {
|
|
22795
|
+
filename?: string | null | undefined;
|
|
22796
|
+
url?: string | null | undefined;
|
|
22797
|
+
}[] | null;
|
|
22798
|
+
} | undefined;
|
|
22799
|
+
accounting_info?: {
|
|
22800
|
+
main_currency?: string | undefined;
|
|
22801
|
+
main_currency_total: number;
|
|
22802
|
+
account_number?: string | null | undefined;
|
|
22803
|
+
} | null | undefined;
|
|
22804
|
+
payment_method_id?: string | null | undefined;
|
|
20941
22805
|
lines: {
|
|
20942
22806
|
line_number: number | null;
|
|
20943
22807
|
unit_price: number;
|
|
@@ -21085,7 +22949,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21085
22949
|
folder_id?: string | null | undefined;
|
|
21086
22950
|
updated_after?: string | null | undefined;
|
|
21087
22951
|
unposted_allowed: "true" | "false";
|
|
21088
|
-
journal_id
|
|
22952
|
+
journal_id?: string | null | undefined;
|
|
21089
22953
|
partner_id?: string | null | undefined;
|
|
21090
22954
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21091
22955
|
reference?: string | null | undefined;
|
|
@@ -21099,9 +22963,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21099
22963
|
due_dates: {
|
|
21100
22964
|
due_date: string;
|
|
21101
22965
|
payment_method?: string | null | undefined;
|
|
22966
|
+
payment_method_id?: string | null | undefined;
|
|
21102
22967
|
debit: number | null;
|
|
21103
22968
|
credit: number | null;
|
|
21104
22969
|
}[] | null;
|
|
22970
|
+
attachments_info?: {
|
|
22971
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22972
|
+
attachments: {
|
|
22973
|
+
filename?: string | null | undefined;
|
|
22974
|
+
url?: string | null | undefined;
|
|
22975
|
+
}[] | null;
|
|
22976
|
+
} | undefined;
|
|
21105
22977
|
items: {
|
|
21106
22978
|
account_number: string;
|
|
21107
22979
|
partner_id?: string | null | undefined;
|
|
@@ -21124,7 +22996,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21124
22996
|
folder_id?: string | null | undefined;
|
|
21125
22997
|
updated_after?: string | null | undefined;
|
|
21126
22998
|
unposted_allowed: "true" | "false";
|
|
21127
|
-
journal_id
|
|
22999
|
+
journal_id?: string | null | undefined;
|
|
21128
23000
|
partner_id?: string | null | undefined;
|
|
21129
23001
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21130
23002
|
reference?: string | null | undefined;
|
|
@@ -21138,9 +23010,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21138
23010
|
due_dates: {
|
|
21139
23011
|
due_date: string;
|
|
21140
23012
|
payment_method?: string | null | undefined;
|
|
23013
|
+
payment_method_id?: string | null | undefined;
|
|
21141
23014
|
debit: number | null;
|
|
21142
23015
|
credit: number | null;
|
|
21143
23016
|
}[] | null;
|
|
23017
|
+
attachments_info?: {
|
|
23018
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
23019
|
+
attachments: {
|
|
23020
|
+
filename?: string | null | undefined;
|
|
23021
|
+
url?: string | null | undefined;
|
|
23022
|
+
}[] | null;
|
|
23023
|
+
} | undefined;
|
|
21144
23024
|
items: {
|
|
21145
23025
|
account_number: string;
|
|
21146
23026
|
partner_id?: string | null | undefined;
|
|
@@ -21230,6 +23110,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21230
23110
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21231
23111
|
id: string;
|
|
21232
23112
|
code?: string | null | undefined;
|
|
23113
|
+
active: boolean | null;
|
|
21233
23114
|
label: string;
|
|
21234
23115
|
scope: "unknown" | "nat" | "eu" | "int" | null;
|
|
21235
23116
|
rate: number;
|
|
@@ -21237,6 +23118,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21237
23118
|
deductible_account?: string | null | undefined;
|
|
21238
23119
|
payable_account?: string | null | undefined;
|
|
21239
23120
|
reversed: boolean | null;
|
|
23121
|
+
withholding_tax: boolean | null;
|
|
21240
23122
|
country?: string | null | undefined;
|
|
21241
23123
|
}[]>;
|
|
21242
23124
|
getMiscOperations(params?: {
|
|
@@ -21339,12 +23221,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21339
23221
|
getChartOfAccounts(params?: {
|
|
21340
23222
|
folder_id?: string | null | undefined;
|
|
21341
23223
|
classes?: string | null | undefined;
|
|
21342
|
-
type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
|
|
23224
|
+
type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
|
|
21343
23225
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21344
23226
|
number: string;
|
|
21345
23227
|
name: string;
|
|
21346
23228
|
active: boolean | null;
|
|
21347
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
23229
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
23230
|
+
scheme_ids?: string[] | null | undefined;
|
|
23231
|
+
accounting_category?: string | null | undefined;
|
|
21348
23232
|
}[]>;
|
|
21349
23233
|
getBalanceOfAccounts(filter: {
|
|
21350
23234
|
accounts: string[];
|
|
@@ -21420,11 +23304,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21420
23304
|
account: string;
|
|
21421
23305
|
amount: number;
|
|
21422
23306
|
description?: string | null | undefined;
|
|
23307
|
+
automated_matching_number?: string | null | undefined;
|
|
21423
23308
|
}[];
|
|
21424
23309
|
pdf?: string | null | undefined;
|
|
21425
23310
|
}, params?: {
|
|
21426
23311
|
folder_id?: string | null | undefined;
|
|
21427
23312
|
financial_counterpart_account?: string | null | undefined;
|
|
23313
|
+
force_currency_exchange?: boolean | null | undefined;
|
|
21428
23314
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
21429
23315
|
date: string;
|
|
21430
23316
|
journal_id: string;
|
|
@@ -21438,6 +23324,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21438
23324
|
account: string;
|
|
21439
23325
|
amount: number;
|
|
21440
23326
|
description?: string | null | undefined;
|
|
23327
|
+
automated_matching_number?: string | null | undefined;
|
|
21441
23328
|
counterpart_account: string;
|
|
21442
23329
|
}[];
|
|
21443
23330
|
}>;
|
|
@@ -21465,6 +23352,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21465
23352
|
}[];
|
|
21466
23353
|
}[] | null;
|
|
21467
23354
|
tax_code?: string | null | undefined;
|
|
23355
|
+
tax_info?: {
|
|
23356
|
+
tax_code: string;
|
|
23357
|
+
tax_amount: number;
|
|
23358
|
+
vat_account?: string | null | undefined;
|
|
23359
|
+
reversed_vat_account?: string | null | undefined;
|
|
23360
|
+
description?: string | null | undefined;
|
|
23361
|
+
} | null | undefined;
|
|
21468
23362
|
account_info?: {
|
|
21469
23363
|
account_number: string;
|
|
21470
23364
|
account_name: string;
|
|
@@ -21477,6 +23371,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21477
23371
|
}, params?: {
|
|
21478
23372
|
folder_id?: string | null | undefined;
|
|
21479
23373
|
force_currency_exchange?: "true" | "false" | null | undefined;
|
|
23374
|
+
ignore_accounting_id?: boolean | undefined;
|
|
21480
23375
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
21481
23376
|
reference?: string | null | undefined;
|
|
21482
23377
|
due_date?: string | null | undefined;
|
|
@@ -21489,9 +23384,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21489
23384
|
due_dates: {
|
|
21490
23385
|
due_date: string;
|
|
21491
23386
|
payment_method?: string | null | undefined;
|
|
23387
|
+
payment_method_id?: string | null | undefined;
|
|
21492
23388
|
debit: number | null;
|
|
21493
23389
|
credit: number | null;
|
|
21494
23390
|
}[] | null;
|
|
23391
|
+
attachments_info?: {
|
|
23392
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
23393
|
+
attachments: {
|
|
23394
|
+
filename?: string | null | undefined;
|
|
23395
|
+
url?: string | null | undefined;
|
|
23396
|
+
}[] | null;
|
|
23397
|
+
} | undefined;
|
|
21495
23398
|
items: {
|
|
21496
23399
|
account_number: string;
|
|
21497
23400
|
partner_id?: string | null | undefined;
|
|
@@ -21607,14 +23510,35 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21607
23510
|
createLedgerAccount(account: {
|
|
21608
23511
|
name: string;
|
|
21609
23512
|
number: string;
|
|
21610
|
-
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
23513
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
|
|
21611
23514
|
}, params?: {
|
|
21612
23515
|
folder_id?: string | null | undefined;
|
|
21613
23516
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
21614
23517
|
number: string;
|
|
21615
23518
|
name: string;
|
|
21616
23519
|
active: boolean | null;
|
|
21617
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
23520
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
23521
|
+
scheme_ids?: string[] | null | undefined;
|
|
23522
|
+
accounting_category?: string | null | undefined;
|
|
23523
|
+
}>;
|
|
23524
|
+
getBankAccounts(params?: {
|
|
23525
|
+
folder_id?: string | null | undefined;
|
|
23526
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
23527
|
+
items: {
|
|
23528
|
+
id: string;
|
|
23529
|
+
code?: string | null | undefined;
|
|
23530
|
+
currency?: string | null | undefined;
|
|
23531
|
+
account_name?: string | null | undefined;
|
|
23532
|
+
account_number?: string | null | undefined;
|
|
23533
|
+
iban?: string | null | undefined;
|
|
23534
|
+
bank_name?: string | null | undefined;
|
|
23535
|
+
journal_id?: string | null | undefined;
|
|
23536
|
+
ledger_account?: string | null | undefined;
|
|
23537
|
+
unallocated_account?: string | null | undefined;
|
|
23538
|
+
}[];
|
|
23539
|
+
total: number;
|
|
23540
|
+
page: number;
|
|
23541
|
+
size: number;
|
|
21618
23542
|
}>;
|
|
21619
23543
|
createBankAccount(bankAccount: {
|
|
21620
23544
|
code: string;
|
|
@@ -21637,6 +23561,45 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21637
23561
|
ledger_account?: string | null | undefined;
|
|
21638
23562
|
unallocated_account?: string | null | undefined;
|
|
21639
23563
|
}>;
|
|
23564
|
+
createBankTransactions(bankStatement: {
|
|
23565
|
+
bank_statement_date: string;
|
|
23566
|
+
bank_account_id: string;
|
|
23567
|
+
external_bank_statement_id: string;
|
|
23568
|
+
opening_balance?: number | null | undefined;
|
|
23569
|
+
pdf?: string | null | undefined;
|
|
23570
|
+
items: {
|
|
23571
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
23572
|
+
account?: string | null | undefined;
|
|
23573
|
+
description?: string | null | undefined;
|
|
23574
|
+
external_transaction_id?: string | null | undefined;
|
|
23575
|
+
date: string;
|
|
23576
|
+
amount: number;
|
|
23577
|
+
fee_amount: number | null;
|
|
23578
|
+
tax_amount: number | null;
|
|
23579
|
+
currency: string;
|
|
23580
|
+
currency_exchange_rate: number | null;
|
|
23581
|
+
}[];
|
|
23582
|
+
}, params?: {
|
|
23583
|
+
folder_id?: string | null | undefined;
|
|
23584
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
23585
|
+
bank_statement_date: string;
|
|
23586
|
+
bank_account_id: string;
|
|
23587
|
+
id?: string | null | undefined;
|
|
23588
|
+
external_bank_statement_id?: string | null | undefined;
|
|
23589
|
+
items: {
|
|
23590
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
23591
|
+
account?: string | null | undefined;
|
|
23592
|
+
description?: string | null | undefined;
|
|
23593
|
+
external_transaction_id?: string | null | undefined;
|
|
23594
|
+
date: string;
|
|
23595
|
+
amount: number;
|
|
23596
|
+
fee_amount: number | null;
|
|
23597
|
+
tax_amount: number | null;
|
|
23598
|
+
currency: string;
|
|
23599
|
+
currency_exchange_rate: number | null;
|
|
23600
|
+
id?: string | null | undefined;
|
|
23601
|
+
}[];
|
|
23602
|
+
}>;
|
|
21640
23603
|
getJournalEntry(journalEntryId: string, params?: {
|
|
21641
23604
|
folder_id?: string | null | undefined;
|
|
21642
23605
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -21651,9 +23614,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21651
23614
|
due_dates: {
|
|
21652
23615
|
due_date: string;
|
|
21653
23616
|
payment_method?: string | null | undefined;
|
|
23617
|
+
payment_method_id?: string | null | undefined;
|
|
21654
23618
|
debit: number | null;
|
|
21655
23619
|
credit: number | null;
|
|
21656
23620
|
}[] | null;
|
|
23621
|
+
attachments_info?: {
|
|
23622
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
23623
|
+
attachments: {
|
|
23624
|
+
filename?: string | null | undefined;
|
|
23625
|
+
url?: string | null | undefined;
|
|
23626
|
+
}[] | null;
|
|
23627
|
+
} | undefined;
|
|
21657
23628
|
items: {
|
|
21658
23629
|
account_number: string;
|
|
21659
23630
|
partner_id?: string | null | undefined;
|
|
@@ -21688,6 +23659,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21688
23659
|
page: number;
|
|
21689
23660
|
size: number;
|
|
21690
23661
|
}>;
|
|
23662
|
+
getPaymentTerms(params?: {
|
|
23663
|
+
folder_id?: string | null | undefined;
|
|
23664
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
23665
|
+
items: {
|
|
23666
|
+
id: string;
|
|
23667
|
+
name?: string | null | undefined;
|
|
23668
|
+
}[];
|
|
23669
|
+
total: number;
|
|
23670
|
+
page: number;
|
|
23671
|
+
size: number;
|
|
23672
|
+
}>;
|
|
23673
|
+
getSchemes(params?: {
|
|
23674
|
+
folder_id?: string | null | undefined;
|
|
23675
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
23676
|
+
items: {
|
|
23677
|
+
id: string;
|
|
23678
|
+
code: string;
|
|
23679
|
+
name: string;
|
|
23680
|
+
}[];
|
|
23681
|
+
total: number;
|
|
23682
|
+
page: number;
|
|
23683
|
+
size: number;
|
|
23684
|
+
}>;
|
|
21691
23685
|
createInvoicePayment(body: {
|
|
21692
23686
|
date: string;
|
|
21693
23687
|
payment_method_id: string;
|
|
@@ -21707,6 +23701,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21707
23701
|
};
|
|
21708
23702
|
content?: undefined;
|
|
21709
23703
|
}>;
|
|
23704
|
+
exportFec(params: {
|
|
23705
|
+
folder_id?: string | null | undefined;
|
|
23706
|
+
date_from: string;
|
|
23707
|
+
date_to: string;
|
|
23708
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
23709
|
+
JournalCode: string;
|
|
23710
|
+
JournalLib: string;
|
|
23711
|
+
EcritureNum: string;
|
|
23712
|
+
EcritureDate: string;
|
|
23713
|
+
CompteNum: string;
|
|
23714
|
+
CompteLib: string;
|
|
23715
|
+
CompAuxNum: string;
|
|
23716
|
+
CompAuxLib: string;
|
|
23717
|
+
PieceRef: string;
|
|
23718
|
+
PieceDate: string;
|
|
23719
|
+
Debit: number;
|
|
23720
|
+
Credit: number;
|
|
23721
|
+
EcritureLet: string;
|
|
23722
|
+
DateLet: string | null;
|
|
23723
|
+
ValidDate: string | null;
|
|
23724
|
+
Montantdevise: number;
|
|
23725
|
+
Idevise: string;
|
|
23726
|
+
}[]>;
|
|
21710
23727
|
}>;
|
|
21711
23728
|
invoicing: import("../types/api").ApiFor<{
|
|
21712
23729
|
getInvoices(params?: {
|
|
@@ -21716,6 +23733,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21716
23733
|
updated_after?: string | null | undefined;
|
|
21717
23734
|
include_invoice_lines?: "true" | "false" | null | undefined;
|
|
21718
23735
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
23736
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
21719
23737
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21720
23738
|
id: string;
|
|
21721
23739
|
source_ref: {
|
|
@@ -21745,6 +23763,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21745
23763
|
product_id?: string | null | undefined;
|
|
21746
23764
|
product_code?: string | null | undefined;
|
|
21747
23765
|
product_name?: string | null | undefined;
|
|
23766
|
+
analytic_distribution: {
|
|
23767
|
+
analytic_plan_code: string;
|
|
23768
|
+
analytic_accounts: {
|
|
23769
|
+
analytic_account_code: string;
|
|
23770
|
+
analytic_account_name: string;
|
|
23771
|
+
percentage: number;
|
|
23772
|
+
}[];
|
|
23773
|
+
}[] | null;
|
|
21748
23774
|
}[];
|
|
21749
23775
|
partner_id?: string | null | undefined;
|
|
21750
23776
|
invoice_number?: string | null | undefined;
|
|
@@ -21784,6 +23810,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21784
23810
|
}[]>;
|
|
21785
23811
|
getInvoiceById(invoiceId: string, params?: {
|
|
21786
23812
|
include_pdf?: "true" | "false" | null | undefined;
|
|
23813
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
21787
23814
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21788
23815
|
id: string;
|
|
21789
23816
|
source_ref: {
|
|
@@ -21813,6 +23840,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21813
23840
|
product_id?: string | null | undefined;
|
|
21814
23841
|
product_code?: string | null | undefined;
|
|
21815
23842
|
product_name?: string | null | undefined;
|
|
23843
|
+
analytic_distribution: {
|
|
23844
|
+
analytic_plan_code: string;
|
|
23845
|
+
analytic_accounts: {
|
|
23846
|
+
analytic_account_code: string;
|
|
23847
|
+
analytic_account_name: string;
|
|
23848
|
+
percentage: number;
|
|
23849
|
+
}[];
|
|
23850
|
+
}[] | null;
|
|
21816
23851
|
}[];
|
|
21817
23852
|
partner_id?: string | null | undefined;
|
|
21818
23853
|
invoice_number?: string | null | undefined;
|
|
@@ -21934,6 +23969,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21934
23969
|
product_id?: string | null | undefined;
|
|
21935
23970
|
product_code?: string | null | undefined;
|
|
21936
23971
|
product_name?: string | null | undefined;
|
|
23972
|
+
analytic_distribution: {
|
|
23973
|
+
analytic_plan_code: string;
|
|
23974
|
+
analytic_accounts: {
|
|
23975
|
+
analytic_account_code: string;
|
|
23976
|
+
analytic_account_name: string;
|
|
23977
|
+
percentage: number;
|
|
23978
|
+
}[];
|
|
23979
|
+
}[] | null;
|
|
21937
23980
|
}[];
|
|
21938
23981
|
partner_id?: string | null | undefined;
|
|
21939
23982
|
invoice_number?: string | null | undefined;
|
|
@@ -23512,14 +25555,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
23512
25555
|
reference: string;
|
|
23513
25556
|
reference_type: string;
|
|
23514
25557
|
holder_name?: string | null | undefined;
|
|
25558
|
+
active: boolean | null;
|
|
23515
25559
|
}[]>;
|
|
23516
|
-
getAccountTransactions(
|
|
25560
|
+
getAccountTransactions(params: {
|
|
23517
25561
|
date_from?: string | null | undefined;
|
|
23518
25562
|
date_to?: string | null | undefined;
|
|
25563
|
+
updated_after?: string | null | undefined;
|
|
25564
|
+
account_id: string;
|
|
23519
25565
|
date_type?: "value_date" | "execution_date" | null | undefined;
|
|
23520
|
-
}
|
|
25566
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
23521
25567
|
id: string;
|
|
23522
25568
|
amount: number;
|
|
25569
|
+
tax_amount?: number | null | undefined;
|
|
23523
25570
|
currency: string;
|
|
23524
25571
|
description?: string | null | undefined;
|
|
23525
25572
|
additional_information?: string | null | undefined;
|
|
@@ -23529,6 +25576,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
23529
25576
|
creation_date: string;
|
|
23530
25577
|
value_date: string;
|
|
23531
25578
|
execution_date: string;
|
|
25579
|
+
internal_transaction: boolean | null;
|
|
25580
|
+
operation_type: "other" | "fee" | "incoming_transfer" | "outgoing_transfer" | "card" | "direct_debit" | "direct_debit_collection" | "direct_debit_hold" | "cheque" | "recall" | "swift_income" | "pay_later" | "financing_installment" | null;
|
|
25581
|
+
last_update_on?: string | null | undefined;
|
|
25582
|
+
status?: "completed" | "pending" | "declined" | null | undefined;
|
|
25583
|
+
attachments_info?: {
|
|
25584
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
25585
|
+
attachments: {
|
|
25586
|
+
filename?: string | null | undefined;
|
|
25587
|
+
url?: string | null | undefined;
|
|
25588
|
+
}[] | null;
|
|
25589
|
+
} | undefined;
|
|
23532
25590
|
}[]>;
|
|
23533
25591
|
getAccountCounterparts(params?: {
|
|
23534
25592
|
date_from?: string | null | undefined;
|
|
@@ -23539,6 +25597,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
23539
25597
|
reference?: string | null | undefined;
|
|
23540
25598
|
details?: string | null | undefined;
|
|
23541
25599
|
}[]>;
|
|
25600
|
+
getAttachments(params: {
|
|
25601
|
+
transaction_id: string;
|
|
25602
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
25603
|
+
items: {
|
|
25604
|
+
id: string;
|
|
25605
|
+
base64_string: string;
|
|
25606
|
+
}[];
|
|
25607
|
+
total: number;
|
|
25608
|
+
page: number;
|
|
25609
|
+
size: number;
|
|
25610
|
+
}>;
|
|
23542
25611
|
}>;
|
|
23543
25612
|
getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
|
|
23544
25613
|
data: {
|
|
@@ -23578,6 +25647,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
23578
25647
|
source_id?: string | null | undefined;
|
|
23579
25648
|
target_id?: string | null | undefined;
|
|
23580
25649
|
}[];
|
|
25650
|
+
hidden_source_ids: string[];
|
|
23581
25651
|
sub_mapping_name: string;
|
|
23582
25652
|
sub_mapping_description?: string | null | undefined;
|
|
23583
25653
|
}[] | null | undefined;
|