@chift/chift-nodejs 1.0.26 → 1.0.27
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 +2133 -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 +405 -15
- package/dist/src/modules/consumer.js +5 -0
- package/dist/src/modules/consumers.d.ts +2049 -84
- package/dist/src/modules/ecommerce.d.ts +2 -2
- package/dist/src/modules/integrations.d.ts +5 -0
- package/dist/src/modules/internalApi.d.ts +4 -4
- package/dist/src/modules/invoicing.d.ts +2 -2
- 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 +1639 -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 +2682 -1001
- 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 +2 -2
- package/src/types/public-api/schema.d.ts +2682 -1001
|
@@ -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;
|
|
@@ -650,6 +660,30 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
650
660
|
country?: string | null | undefined;
|
|
651
661
|
}[] | null | undefined;
|
|
652
662
|
}[]>;
|
|
663
|
+
getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
664
|
+
id: string;
|
|
665
|
+
source_ref: {
|
|
666
|
+
id?: string | null | undefined;
|
|
667
|
+
model?: string | null | undefined;
|
|
668
|
+
};
|
|
669
|
+
first_name?: string | null | undefined;
|
|
670
|
+
last_name?: string | null | undefined;
|
|
671
|
+
company_name?: string | null | undefined;
|
|
672
|
+
phone?: string | null | undefined;
|
|
673
|
+
email?: string | null | undefined;
|
|
674
|
+
account_number?: string | null | undefined;
|
|
675
|
+
created_on?: string | null | undefined;
|
|
676
|
+
addresses?: {
|
|
677
|
+
address_type?: string | null | undefined;
|
|
678
|
+
name?: string | null | undefined;
|
|
679
|
+
street?: string | null | undefined;
|
|
680
|
+
number?: string | null | undefined;
|
|
681
|
+
box?: string | null | undefined;
|
|
682
|
+
city?: string | null | undefined;
|
|
683
|
+
postal_code?: string | null | undefined;
|
|
684
|
+
country?: string | null | undefined;
|
|
685
|
+
}[] | null | undefined;
|
|
686
|
+
}>;
|
|
653
687
|
getInvoices(params?: {
|
|
654
688
|
date_from: string;
|
|
655
689
|
date_to: string;
|
|
@@ -752,6 +786,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
752
786
|
untaxed_amount: number;
|
|
753
787
|
total: number;
|
|
754
788
|
}[]>;
|
|
789
|
+
getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
790
|
+
items: {
|
|
791
|
+
id: string;
|
|
792
|
+
source_ref: {
|
|
793
|
+
id?: string | null | undefined;
|
|
794
|
+
model?: string | null | undefined;
|
|
795
|
+
};
|
|
796
|
+
label?: string | null | undefined;
|
|
797
|
+
rate?: number | null | undefined;
|
|
798
|
+
}[];
|
|
799
|
+
total: number;
|
|
800
|
+
page: number;
|
|
801
|
+
size: number;
|
|
802
|
+
}>;
|
|
755
803
|
}>;
|
|
756
804
|
payment: import("../types/api").ApiFor<{
|
|
757
805
|
getPayments(params: {
|
|
@@ -1303,6 +1351,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1303
1351
|
reference?: string | null | undefined;
|
|
1304
1352
|
payment_communication?: string | null | undefined;
|
|
1305
1353
|
customer_memo?: string | null | undefined;
|
|
1354
|
+
payment_term_id?: string | null | undefined;
|
|
1355
|
+
withholding_tax?: {
|
|
1356
|
+
tax_rate: number;
|
|
1357
|
+
tax_code: string;
|
|
1358
|
+
tax_amount: number;
|
|
1359
|
+
} | null | undefined;
|
|
1306
1360
|
invoice_date: string;
|
|
1307
1361
|
due_date: string;
|
|
1308
1362
|
partner_id?: string | null | undefined;
|
|
@@ -1345,10 +1399,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1345
1399
|
description: string;
|
|
1346
1400
|
analytic_account?: string | null | undefined;
|
|
1347
1401
|
}[];
|
|
1402
|
+
start_date?: string | null | undefined;
|
|
1403
|
+
end_date?: string | null | undefined;
|
|
1404
|
+
payment_method_id?: string | null | undefined;
|
|
1348
1405
|
}, params?: {
|
|
1349
1406
|
folder_id?: string | null | undefined;
|
|
1350
1407
|
force_financial_period?: string | null | undefined;
|
|
1351
1408
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
1409
|
+
ignore_accounting_id?: boolean | undefined;
|
|
1352
1410
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
1353
1411
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1354
1412
|
invoice_number?: string | null | undefined;
|
|
@@ -1359,10 +1417,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1359
1417
|
reference?: string | null | undefined;
|
|
1360
1418
|
payment_communication?: string | null | undefined;
|
|
1361
1419
|
customer_memo?: string | null | undefined;
|
|
1420
|
+
payment_term_id?: string | null | undefined;
|
|
1421
|
+
withholding_tax?: {
|
|
1422
|
+
tax_rate: number;
|
|
1423
|
+
tax_code: string;
|
|
1424
|
+
tax_amount: number;
|
|
1425
|
+
} | null | undefined;
|
|
1362
1426
|
id?: string | null | undefined;
|
|
1363
1427
|
invoice_date: string;
|
|
1364
1428
|
due_date: string;
|
|
1365
|
-
partner_id: string;
|
|
1429
|
+
partner_id: string | null;
|
|
1366
1430
|
journal_id?: string | null | undefined;
|
|
1367
1431
|
payments?: {
|
|
1368
1432
|
id: string;
|
|
@@ -1420,8 +1484,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1420
1484
|
due_dates: {
|
|
1421
1485
|
due_date: string;
|
|
1422
1486
|
payment_method?: string | null | undefined;
|
|
1487
|
+
payment_method_id?: string | null | undefined;
|
|
1423
1488
|
amount: number;
|
|
1424
1489
|
}[] | null;
|
|
1490
|
+
attachments_info?: {
|
|
1491
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
1492
|
+
attachments: {
|
|
1493
|
+
filename?: string | null | undefined;
|
|
1494
|
+
url?: string | null | undefined;
|
|
1495
|
+
}[] | null;
|
|
1496
|
+
} | undefined;
|
|
1497
|
+
accounting_info?: {
|
|
1498
|
+
main_currency?: string | undefined;
|
|
1499
|
+
main_currency_total: number;
|
|
1500
|
+
account_number?: string | null | undefined;
|
|
1501
|
+
} | null | undefined;
|
|
1502
|
+
payment_method_id?: string | null | undefined;
|
|
1425
1503
|
lines: {
|
|
1426
1504
|
line_number: number | null;
|
|
1427
1505
|
unit_price: number;
|
|
@@ -1447,6 +1525,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1447
1525
|
reference?: string | null | undefined;
|
|
1448
1526
|
payment_communication?: string | null | undefined;
|
|
1449
1527
|
customer_memo?: string | null | undefined;
|
|
1528
|
+
payment_term_id?: string | null | undefined;
|
|
1529
|
+
withholding_tax?: {
|
|
1530
|
+
tax_rate: number;
|
|
1531
|
+
tax_code: string;
|
|
1532
|
+
tax_amount: number;
|
|
1533
|
+
} | null | undefined;
|
|
1450
1534
|
invoice_date: string;
|
|
1451
1535
|
due_date: string;
|
|
1452
1536
|
partner_id?: string | null | undefined;
|
|
@@ -1495,10 +1579,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1495
1579
|
}[];
|
|
1496
1580
|
}[] | null;
|
|
1497
1581
|
}[];
|
|
1582
|
+
start_date?: string | null | undefined;
|
|
1583
|
+
end_date?: string | null | undefined;
|
|
1584
|
+
payment_method_id?: string | null | undefined;
|
|
1498
1585
|
}, params?: {
|
|
1499
1586
|
folder_id?: string | null | undefined;
|
|
1500
1587
|
force_financial_period?: string | null | undefined;
|
|
1501
1588
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
1589
|
+
ignore_accounting_id?: boolean | undefined;
|
|
1502
1590
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
1503
1591
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1504
1592
|
invoice_number?: string | null | undefined;
|
|
@@ -1509,10 +1597,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1509
1597
|
reference?: string | null | undefined;
|
|
1510
1598
|
payment_communication?: string | null | undefined;
|
|
1511
1599
|
customer_memo?: string | null | undefined;
|
|
1600
|
+
payment_term_id?: string | null | undefined;
|
|
1601
|
+
withholding_tax?: {
|
|
1602
|
+
tax_rate: number;
|
|
1603
|
+
tax_code: string;
|
|
1604
|
+
tax_amount: number;
|
|
1605
|
+
} | null | undefined;
|
|
1512
1606
|
id?: string | null | undefined;
|
|
1513
1607
|
invoice_date: string;
|
|
1514
1608
|
due_date: string;
|
|
1515
|
-
partner_id: string;
|
|
1609
|
+
partner_id: string | null;
|
|
1516
1610
|
journal_id?: string | null | undefined;
|
|
1517
1611
|
payments?: {
|
|
1518
1612
|
id: string;
|
|
@@ -1570,8 +1664,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1570
1664
|
due_dates: {
|
|
1571
1665
|
due_date: string;
|
|
1572
1666
|
payment_method?: string | null | undefined;
|
|
1667
|
+
payment_method_id?: string | null | undefined;
|
|
1573
1668
|
amount: number;
|
|
1574
1669
|
}[] | null;
|
|
1670
|
+
attachments_info?: {
|
|
1671
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
1672
|
+
attachments: {
|
|
1673
|
+
filename?: string | null | undefined;
|
|
1674
|
+
url?: string | null | undefined;
|
|
1675
|
+
}[] | null;
|
|
1676
|
+
} | undefined;
|
|
1677
|
+
accounting_info?: {
|
|
1678
|
+
main_currency?: string | undefined;
|
|
1679
|
+
main_currency_total: number;
|
|
1680
|
+
account_number?: string | null | undefined;
|
|
1681
|
+
} | null | undefined;
|
|
1682
|
+
payment_method_id?: string | null | undefined;
|
|
1575
1683
|
lines: {
|
|
1576
1684
|
line_number: number | null;
|
|
1577
1685
|
unit_price: number;
|
|
@@ -1613,10 +1721,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1613
1721
|
reference?: string | null | undefined;
|
|
1614
1722
|
payment_communication?: string | null | undefined;
|
|
1615
1723
|
customer_memo?: string | null | undefined;
|
|
1724
|
+
payment_term_id?: string | null | undefined;
|
|
1725
|
+
withholding_tax?: {
|
|
1726
|
+
tax_rate: number;
|
|
1727
|
+
tax_code: string;
|
|
1728
|
+
tax_amount: number;
|
|
1729
|
+
} | null | undefined;
|
|
1616
1730
|
id?: string | null | undefined;
|
|
1617
1731
|
invoice_date: string;
|
|
1618
1732
|
due_date: string;
|
|
1619
|
-
partner_id: string;
|
|
1733
|
+
partner_id: string | null;
|
|
1620
1734
|
journal_id?: string | null | undefined;
|
|
1621
1735
|
payments?: {
|
|
1622
1736
|
id: string;
|
|
@@ -1674,8 +1788,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1674
1788
|
due_dates: {
|
|
1675
1789
|
due_date: string;
|
|
1676
1790
|
payment_method?: string | null | undefined;
|
|
1791
|
+
payment_method_id?: string | null | undefined;
|
|
1677
1792
|
amount: number;
|
|
1678
1793
|
}[] | null;
|
|
1794
|
+
attachments_info?: {
|
|
1795
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
1796
|
+
attachments: {
|
|
1797
|
+
filename?: string | null | undefined;
|
|
1798
|
+
url?: string | null | undefined;
|
|
1799
|
+
}[] | null;
|
|
1800
|
+
} | undefined;
|
|
1801
|
+
accounting_info?: {
|
|
1802
|
+
main_currency?: string | undefined;
|
|
1803
|
+
main_currency_total: number;
|
|
1804
|
+
account_number?: string | null | undefined;
|
|
1805
|
+
} | null | undefined;
|
|
1806
|
+
payment_method_id?: string | null | undefined;
|
|
1679
1807
|
lines: {
|
|
1680
1808
|
line_number: number | null;
|
|
1681
1809
|
unit_price: number;
|
|
@@ -1706,10 +1834,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1706
1834
|
reference?: string | null | undefined;
|
|
1707
1835
|
payment_communication?: string | null | undefined;
|
|
1708
1836
|
customer_memo?: string | null | undefined;
|
|
1837
|
+
payment_term_id?: string | null | undefined;
|
|
1838
|
+
withholding_tax?: {
|
|
1839
|
+
tax_rate: number;
|
|
1840
|
+
tax_code: string;
|
|
1841
|
+
tax_amount: number;
|
|
1842
|
+
} | null | undefined;
|
|
1709
1843
|
id?: string | null | undefined;
|
|
1710
1844
|
invoice_date: string;
|
|
1711
1845
|
due_date: string;
|
|
1712
|
-
partner_id: string;
|
|
1846
|
+
partner_id: string | null;
|
|
1713
1847
|
journal_id?: string | null | undefined;
|
|
1714
1848
|
payments?: {
|
|
1715
1849
|
id: string;
|
|
@@ -1767,8 +1901,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1767
1901
|
due_dates: {
|
|
1768
1902
|
due_date: string;
|
|
1769
1903
|
payment_method?: string | null | undefined;
|
|
1904
|
+
payment_method_id?: string | null | undefined;
|
|
1770
1905
|
amount: number;
|
|
1771
1906
|
}[] | null;
|
|
1907
|
+
attachments_info?: {
|
|
1908
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
1909
|
+
attachments: {
|
|
1910
|
+
filename?: string | null | undefined;
|
|
1911
|
+
url?: string | null | undefined;
|
|
1912
|
+
}[] | null;
|
|
1913
|
+
} | undefined;
|
|
1914
|
+
accounting_info?: {
|
|
1915
|
+
main_currency?: string | undefined;
|
|
1916
|
+
main_currency_total: number;
|
|
1917
|
+
account_number?: string | null | undefined;
|
|
1918
|
+
} | null | undefined;
|
|
1919
|
+
payment_method_id?: string | null | undefined;
|
|
1772
1920
|
lines: {
|
|
1773
1921
|
line_number: number | null;
|
|
1774
1922
|
unit_price: number;
|
|
@@ -1799,10 +1947,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1799
1947
|
reference?: string | null | undefined;
|
|
1800
1948
|
payment_communication?: string | null | undefined;
|
|
1801
1949
|
customer_memo?: string | null | undefined;
|
|
1950
|
+
payment_term_id?: string | null | undefined;
|
|
1951
|
+
withholding_tax?: {
|
|
1952
|
+
tax_rate: number;
|
|
1953
|
+
tax_code: string;
|
|
1954
|
+
tax_amount: number;
|
|
1955
|
+
} | null | undefined;
|
|
1802
1956
|
id?: string | null | undefined;
|
|
1803
1957
|
invoice_date: string;
|
|
1804
1958
|
due_date: string;
|
|
1805
|
-
partner_id: string;
|
|
1959
|
+
partner_id: string | null;
|
|
1806
1960
|
journal_id?: string | null | undefined;
|
|
1807
1961
|
payments?: {
|
|
1808
1962
|
id: string;
|
|
@@ -1860,8 +2014,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1860
2014
|
due_dates: {
|
|
1861
2015
|
due_date: string;
|
|
1862
2016
|
payment_method?: string | null | undefined;
|
|
2017
|
+
payment_method_id?: string | null | undefined;
|
|
1863
2018
|
amount: number;
|
|
1864
2019
|
}[] | null;
|
|
2020
|
+
attachments_info?: {
|
|
2021
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
2022
|
+
attachments: {
|
|
2023
|
+
filename?: string | null | undefined;
|
|
2024
|
+
url?: string | null | undefined;
|
|
2025
|
+
}[] | null;
|
|
2026
|
+
} | undefined;
|
|
2027
|
+
accounting_info?: {
|
|
2028
|
+
main_currency?: string | undefined;
|
|
2029
|
+
main_currency_total: number;
|
|
2030
|
+
account_number?: string | null | undefined;
|
|
2031
|
+
} | null | undefined;
|
|
2032
|
+
payment_method_id?: string | null | undefined;
|
|
1865
2033
|
lines: {
|
|
1866
2034
|
line_number: number | null;
|
|
1867
2035
|
unit_price: number;
|
|
@@ -1903,10 +2071,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1903
2071
|
reference?: string | null | undefined;
|
|
1904
2072
|
payment_communication?: string | null | undefined;
|
|
1905
2073
|
customer_memo?: string | null | undefined;
|
|
2074
|
+
payment_term_id?: string | null | undefined;
|
|
2075
|
+
withholding_tax?: {
|
|
2076
|
+
tax_rate: number;
|
|
2077
|
+
tax_code: string;
|
|
2078
|
+
tax_amount: number;
|
|
2079
|
+
} | null | undefined;
|
|
1906
2080
|
id?: string | null | undefined;
|
|
1907
2081
|
invoice_date: string;
|
|
1908
2082
|
due_date: string;
|
|
1909
|
-
partner_id: string;
|
|
2083
|
+
partner_id: string | null;
|
|
1910
2084
|
journal_id?: string | null | undefined;
|
|
1911
2085
|
payments?: {
|
|
1912
2086
|
id: string;
|
|
@@ -1964,8 +2138,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1964
2138
|
due_dates: {
|
|
1965
2139
|
due_date: string;
|
|
1966
2140
|
payment_method?: string | null | undefined;
|
|
2141
|
+
payment_method_id?: string | null | undefined;
|
|
1967
2142
|
amount: number;
|
|
1968
2143
|
}[] | null;
|
|
2144
|
+
attachments_info?: {
|
|
2145
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
2146
|
+
attachments: {
|
|
2147
|
+
filename?: string | null | undefined;
|
|
2148
|
+
url?: string | null | undefined;
|
|
2149
|
+
}[] | null;
|
|
2150
|
+
} | undefined;
|
|
2151
|
+
accounting_info?: {
|
|
2152
|
+
main_currency?: string | undefined;
|
|
2153
|
+
main_currency_total: number;
|
|
2154
|
+
account_number?: string | null | undefined;
|
|
2155
|
+
} | null | undefined;
|
|
2156
|
+
payment_method_id?: string | null | undefined;
|
|
1969
2157
|
lines: {
|
|
1970
2158
|
line_number: number | null;
|
|
1971
2159
|
unit_price: number;
|
|
@@ -2113,7 +2301,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2113
2301
|
folder_id?: string | null | undefined;
|
|
2114
2302
|
updated_after?: string | null | undefined;
|
|
2115
2303
|
unposted_allowed: "true" | "false";
|
|
2116
|
-
journal_id
|
|
2304
|
+
journal_id?: string | null | undefined;
|
|
2117
2305
|
partner_id?: string | null | undefined;
|
|
2118
2306
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2119
2307
|
reference?: string | null | undefined;
|
|
@@ -2127,9 +2315,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2127
2315
|
due_dates: {
|
|
2128
2316
|
due_date: string;
|
|
2129
2317
|
payment_method?: string | null | undefined;
|
|
2318
|
+
payment_method_id?: string | null | undefined;
|
|
2130
2319
|
debit: number | null;
|
|
2131
2320
|
credit: number | null;
|
|
2132
2321
|
}[] | null;
|
|
2322
|
+
attachments_info?: {
|
|
2323
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
2324
|
+
attachments: {
|
|
2325
|
+
filename?: string | null | undefined;
|
|
2326
|
+
url?: string | null | undefined;
|
|
2327
|
+
}[] | null;
|
|
2328
|
+
} | undefined;
|
|
2133
2329
|
items: {
|
|
2134
2330
|
account_number: string;
|
|
2135
2331
|
partner_id?: string | null | undefined;
|
|
@@ -2152,7 +2348,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2152
2348
|
folder_id?: string | null | undefined;
|
|
2153
2349
|
updated_after?: string | null | undefined;
|
|
2154
2350
|
unposted_allowed: "true" | "false";
|
|
2155
|
-
journal_id
|
|
2351
|
+
journal_id?: string | null | undefined;
|
|
2156
2352
|
partner_id?: string | null | undefined;
|
|
2157
2353
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2158
2354
|
reference?: string | null | undefined;
|
|
@@ -2166,9 +2362,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2166
2362
|
due_dates: {
|
|
2167
2363
|
due_date: string;
|
|
2168
2364
|
payment_method?: string | null | undefined;
|
|
2365
|
+
payment_method_id?: string | null | undefined;
|
|
2169
2366
|
debit: number | null;
|
|
2170
2367
|
credit: number | null;
|
|
2171
2368
|
}[] | null;
|
|
2369
|
+
attachments_info?: {
|
|
2370
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
2371
|
+
attachments: {
|
|
2372
|
+
filename?: string | null | undefined;
|
|
2373
|
+
url?: string | null | undefined;
|
|
2374
|
+
}[] | null;
|
|
2375
|
+
} | undefined;
|
|
2172
2376
|
items: {
|
|
2173
2377
|
account_number: string;
|
|
2174
2378
|
partner_id?: string | null | undefined;
|
|
@@ -2258,6 +2462,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2258
2462
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2259
2463
|
id: string;
|
|
2260
2464
|
code?: string | null | undefined;
|
|
2465
|
+
active: boolean | null;
|
|
2261
2466
|
label: string;
|
|
2262
2467
|
scope: "unknown" | "nat" | "eu" | "int" | null;
|
|
2263
2468
|
rate: number;
|
|
@@ -2265,6 +2470,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2265
2470
|
deductible_account?: string | null | undefined;
|
|
2266
2471
|
payable_account?: string | null | undefined;
|
|
2267
2472
|
reversed: boolean | null;
|
|
2473
|
+
withholding_tax: boolean | null;
|
|
2268
2474
|
country?: string | null | undefined;
|
|
2269
2475
|
}[]>;
|
|
2270
2476
|
getMiscOperations(params?: {
|
|
@@ -2367,12 +2573,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2367
2573
|
getChartOfAccounts(params?: {
|
|
2368
2574
|
folder_id?: string | null | undefined;
|
|
2369
2575
|
classes?: string | null | undefined;
|
|
2370
|
-
type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
|
|
2576
|
+
type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
|
|
2371
2577
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2372
2578
|
number: string;
|
|
2373
2579
|
name: string;
|
|
2374
2580
|
active: boolean | null;
|
|
2375
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
2581
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
2582
|
+
scheme_ids?: string[] | null | undefined;
|
|
2583
|
+
accounting_category?: string | null | undefined;
|
|
2376
2584
|
}[]>;
|
|
2377
2585
|
getBalanceOfAccounts(filter: {
|
|
2378
2586
|
accounts: string[];
|
|
@@ -2448,6 +2656,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2448
2656
|
account: string;
|
|
2449
2657
|
amount: number;
|
|
2450
2658
|
description?: string | null | undefined;
|
|
2659
|
+
automated_matching_number?: string | null | undefined;
|
|
2451
2660
|
}[];
|
|
2452
2661
|
pdf?: string | null | undefined;
|
|
2453
2662
|
}, params?: {
|
|
@@ -2466,6 +2675,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2466
2675
|
account: string;
|
|
2467
2676
|
amount: number;
|
|
2468
2677
|
description?: string | null | undefined;
|
|
2678
|
+
automated_matching_number?: string | null | undefined;
|
|
2469
2679
|
counterpart_account: string;
|
|
2470
2680
|
}[];
|
|
2471
2681
|
}>;
|
|
@@ -2493,6 +2703,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2493
2703
|
}[];
|
|
2494
2704
|
}[] | null;
|
|
2495
2705
|
tax_code?: string | null | undefined;
|
|
2706
|
+
tax_info?: {
|
|
2707
|
+
tax_code: string;
|
|
2708
|
+
tax_amount: number;
|
|
2709
|
+
vat_account?: string | null | undefined;
|
|
2710
|
+
reversed_vat_account?: string | null | undefined;
|
|
2711
|
+
description?: string | null | undefined;
|
|
2712
|
+
} | null | undefined;
|
|
2496
2713
|
account_info?: {
|
|
2497
2714
|
account_number: string;
|
|
2498
2715
|
account_name: string;
|
|
@@ -2505,6 +2722,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2505
2722
|
}, params?: {
|
|
2506
2723
|
folder_id?: string | null | undefined;
|
|
2507
2724
|
force_currency_exchange?: "true" | "false" | null | undefined;
|
|
2725
|
+
ignore_accounting_id?: boolean | undefined;
|
|
2508
2726
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2509
2727
|
reference?: string | null | undefined;
|
|
2510
2728
|
due_date?: string | null | undefined;
|
|
@@ -2517,9 +2735,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2517
2735
|
due_dates: {
|
|
2518
2736
|
due_date: string;
|
|
2519
2737
|
payment_method?: string | null | undefined;
|
|
2738
|
+
payment_method_id?: string | null | undefined;
|
|
2520
2739
|
debit: number | null;
|
|
2521
2740
|
credit: number | null;
|
|
2522
2741
|
}[] | null;
|
|
2742
|
+
attachments_info?: {
|
|
2743
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
2744
|
+
attachments: {
|
|
2745
|
+
filename?: string | null | undefined;
|
|
2746
|
+
url?: string | null | undefined;
|
|
2747
|
+
}[] | null;
|
|
2748
|
+
} | undefined;
|
|
2523
2749
|
items: {
|
|
2524
2750
|
account_number: string;
|
|
2525
2751
|
partner_id?: string | null | undefined;
|
|
@@ -2635,14 +2861,35 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2635
2861
|
createLedgerAccount(account: {
|
|
2636
2862
|
name: string;
|
|
2637
2863
|
number: string;
|
|
2638
|
-
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
2864
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
|
|
2639
2865
|
}, params?: {
|
|
2640
2866
|
folder_id?: string | null | undefined;
|
|
2641
2867
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2642
2868
|
number: string;
|
|
2643
2869
|
name: string;
|
|
2644
2870
|
active: boolean | null;
|
|
2645
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
2871
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
2872
|
+
scheme_ids?: string[] | null | undefined;
|
|
2873
|
+
accounting_category?: string | null | undefined;
|
|
2874
|
+
}>;
|
|
2875
|
+
getBankAccounts(params?: {
|
|
2876
|
+
folder_id?: string | null | undefined;
|
|
2877
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2878
|
+
items: {
|
|
2879
|
+
id: string;
|
|
2880
|
+
code?: string | null | undefined;
|
|
2881
|
+
currency?: string | null | undefined;
|
|
2882
|
+
account_name?: string | null | undefined;
|
|
2883
|
+
account_number?: string | null | undefined;
|
|
2884
|
+
iban?: string | null | undefined;
|
|
2885
|
+
bank_name?: string | null | undefined;
|
|
2886
|
+
journal_id?: string | null | undefined;
|
|
2887
|
+
ledger_account?: string | null | undefined;
|
|
2888
|
+
unallocated_account?: string | null | undefined;
|
|
2889
|
+
}[];
|
|
2890
|
+
total: number;
|
|
2891
|
+
page: number;
|
|
2892
|
+
size: number;
|
|
2646
2893
|
}>;
|
|
2647
2894
|
createBankAccount(bankAccount: {
|
|
2648
2895
|
code: string;
|
|
@@ -2665,6 +2912,45 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2665
2912
|
ledger_account?: string | null | undefined;
|
|
2666
2913
|
unallocated_account?: string | null | undefined;
|
|
2667
2914
|
}>;
|
|
2915
|
+
createBankTransactions(bankStatement: {
|
|
2916
|
+
bank_statement_date: string;
|
|
2917
|
+
bank_account_id: string;
|
|
2918
|
+
external_bank_statement_id: string;
|
|
2919
|
+
opening_balance?: number | null | undefined;
|
|
2920
|
+
pdf?: string | null | undefined;
|
|
2921
|
+
items: {
|
|
2922
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
2923
|
+
account?: string | null | undefined;
|
|
2924
|
+
description?: string | null | undefined;
|
|
2925
|
+
external_transaction_id?: string | null | undefined;
|
|
2926
|
+
date: string;
|
|
2927
|
+
amount: number;
|
|
2928
|
+
fee_amount: number | null;
|
|
2929
|
+
tax_amount: number | null;
|
|
2930
|
+
currency: string;
|
|
2931
|
+
currency_exchange_rate: number | null;
|
|
2932
|
+
}[];
|
|
2933
|
+
}, params?: {
|
|
2934
|
+
folder_id?: string | null | undefined;
|
|
2935
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2936
|
+
bank_statement_date: string;
|
|
2937
|
+
bank_account_id: string;
|
|
2938
|
+
id?: string | null | undefined;
|
|
2939
|
+
external_bank_statement_id?: string | null | undefined;
|
|
2940
|
+
items: {
|
|
2941
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
2942
|
+
account?: string | null | undefined;
|
|
2943
|
+
description?: string | null | undefined;
|
|
2944
|
+
external_transaction_id?: string | null | undefined;
|
|
2945
|
+
date: string;
|
|
2946
|
+
amount: number;
|
|
2947
|
+
fee_amount: number | null;
|
|
2948
|
+
tax_amount: number | null;
|
|
2949
|
+
currency: string;
|
|
2950
|
+
currency_exchange_rate: number | null;
|
|
2951
|
+
id?: string | null | undefined;
|
|
2952
|
+
}[];
|
|
2953
|
+
}>;
|
|
2668
2954
|
getJournalEntry(journalEntryId: string, params?: {
|
|
2669
2955
|
folder_id?: string | null | undefined;
|
|
2670
2956
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -2679,9 +2965,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2679
2965
|
due_dates: {
|
|
2680
2966
|
due_date: string;
|
|
2681
2967
|
payment_method?: string | null | undefined;
|
|
2968
|
+
payment_method_id?: string | null | undefined;
|
|
2682
2969
|
debit: number | null;
|
|
2683
2970
|
credit: number | null;
|
|
2684
2971
|
}[] | null;
|
|
2972
|
+
attachments_info?: {
|
|
2973
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
2974
|
+
attachments: {
|
|
2975
|
+
filename?: string | null | undefined;
|
|
2976
|
+
url?: string | null | undefined;
|
|
2977
|
+
}[] | null;
|
|
2978
|
+
} | undefined;
|
|
2685
2979
|
items: {
|
|
2686
2980
|
account_number: string;
|
|
2687
2981
|
partner_id?: string | null | undefined;
|
|
@@ -2716,6 +3010,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2716
3010
|
page: number;
|
|
2717
3011
|
size: number;
|
|
2718
3012
|
}>;
|
|
3013
|
+
getPaymentTerms(params?: {
|
|
3014
|
+
folder_id?: string | null | undefined;
|
|
3015
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3016
|
+
items: {
|
|
3017
|
+
id: string;
|
|
3018
|
+
name?: string | null | undefined;
|
|
3019
|
+
}[];
|
|
3020
|
+
total: number;
|
|
3021
|
+
page: number;
|
|
3022
|
+
size: number;
|
|
3023
|
+
}>;
|
|
3024
|
+
getSchemes(params?: {
|
|
3025
|
+
folder_id?: string | null | undefined;
|
|
3026
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3027
|
+
items: {
|
|
3028
|
+
id: string;
|
|
3029
|
+
code: string;
|
|
3030
|
+
name: string;
|
|
3031
|
+
}[];
|
|
3032
|
+
total: number;
|
|
3033
|
+
page: number;
|
|
3034
|
+
size: number;
|
|
3035
|
+
}>;
|
|
2719
3036
|
createInvoicePayment(body: {
|
|
2720
3037
|
date: string;
|
|
2721
3038
|
payment_method_id: string;
|
|
@@ -2735,6 +3052,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2735
3052
|
};
|
|
2736
3053
|
content?: undefined;
|
|
2737
3054
|
}>;
|
|
3055
|
+
exportFec(params: {
|
|
3056
|
+
folder_id?: string | null | undefined;
|
|
3057
|
+
date_from: string;
|
|
3058
|
+
date_to: string;
|
|
3059
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3060
|
+
JournalCode: string;
|
|
3061
|
+
JournalLib: string;
|
|
3062
|
+
EcritureNum: string;
|
|
3063
|
+
EcritureDate: string;
|
|
3064
|
+
CompteNum: string;
|
|
3065
|
+
CompteLib: string;
|
|
3066
|
+
CompAuxNum: string;
|
|
3067
|
+
CompAuxLib: string;
|
|
3068
|
+
PieceRef: string;
|
|
3069
|
+
PieceDate: string;
|
|
3070
|
+
Debit: number;
|
|
3071
|
+
Credit: number;
|
|
3072
|
+
EcritureLet: string;
|
|
3073
|
+
DateLet: string | null;
|
|
3074
|
+
ValidDate: string | null;
|
|
3075
|
+
Montantdevise: number;
|
|
3076
|
+
Idevise: string;
|
|
3077
|
+
}[]>;
|
|
2738
3078
|
}>;
|
|
2739
3079
|
invoicing: import("../types/api").ApiFor<{
|
|
2740
3080
|
getInvoices(params?: {
|
|
@@ -2744,6 +3084,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2744
3084
|
updated_after?: string | null | undefined;
|
|
2745
3085
|
include_invoice_lines?: "true" | "false" | null | undefined;
|
|
2746
3086
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
3087
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
2747
3088
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2748
3089
|
id: string;
|
|
2749
3090
|
source_ref: {
|
|
@@ -2773,6 +3114,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2773
3114
|
product_id?: string | null | undefined;
|
|
2774
3115
|
product_code?: string | null | undefined;
|
|
2775
3116
|
product_name?: string | null | undefined;
|
|
3117
|
+
analytic_distribution: {
|
|
3118
|
+
analytic_plan_code: string;
|
|
3119
|
+
analytic_accounts: {
|
|
3120
|
+
analytic_account_code: string;
|
|
3121
|
+
analytic_account_name: string;
|
|
3122
|
+
percentage: number;
|
|
3123
|
+
}[];
|
|
3124
|
+
}[] | null;
|
|
2776
3125
|
}[];
|
|
2777
3126
|
partner_id?: string | null | undefined;
|
|
2778
3127
|
invoice_number?: string | null | undefined;
|
|
@@ -2812,6 +3161,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2812
3161
|
}[]>;
|
|
2813
3162
|
getInvoiceById(invoiceId: string, params?: {
|
|
2814
3163
|
include_pdf?: "true" | "false" | null | undefined;
|
|
3164
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
2815
3165
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2816
3166
|
id: string;
|
|
2817
3167
|
source_ref: {
|
|
@@ -2841,6 +3191,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2841
3191
|
product_id?: string | null | undefined;
|
|
2842
3192
|
product_code?: string | null | undefined;
|
|
2843
3193
|
product_name?: string | null | undefined;
|
|
3194
|
+
analytic_distribution: {
|
|
3195
|
+
analytic_plan_code: string;
|
|
3196
|
+
analytic_accounts: {
|
|
3197
|
+
analytic_account_code: string;
|
|
3198
|
+
analytic_account_name: string;
|
|
3199
|
+
percentage: number;
|
|
3200
|
+
}[];
|
|
3201
|
+
}[] | null;
|
|
2844
3202
|
}[];
|
|
2845
3203
|
partner_id?: string | null | undefined;
|
|
2846
3204
|
invoice_number?: string | null | undefined;
|
|
@@ -2962,6 +3320,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2962
3320
|
product_id?: string | null | undefined;
|
|
2963
3321
|
product_code?: string | null | undefined;
|
|
2964
3322
|
product_name?: string | null | undefined;
|
|
3323
|
+
analytic_distribution: {
|
|
3324
|
+
analytic_plan_code: string;
|
|
3325
|
+
analytic_accounts: {
|
|
3326
|
+
analytic_account_code: string;
|
|
3327
|
+
analytic_account_name: string;
|
|
3328
|
+
percentage: number;
|
|
3329
|
+
}[];
|
|
3330
|
+
}[] | null;
|
|
2965
3331
|
}[];
|
|
2966
3332
|
partner_id?: string | null | undefined;
|
|
2967
3333
|
invoice_number?: string | null | undefined;
|
|
@@ -4540,14 +4906,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4540
4906
|
reference: string;
|
|
4541
4907
|
reference_type: string;
|
|
4542
4908
|
holder_name?: string | null | undefined;
|
|
4909
|
+
active: boolean | null;
|
|
4543
4910
|
}[]>;
|
|
4544
|
-
getAccountTransactions(
|
|
4911
|
+
getAccountTransactions(params: {
|
|
4545
4912
|
date_from?: string | null | undefined;
|
|
4546
4913
|
date_to?: string | null | undefined;
|
|
4914
|
+
updated_after?: string | null | undefined;
|
|
4915
|
+
account_id: string;
|
|
4547
4916
|
date_type?: "value_date" | "execution_date" | null | undefined;
|
|
4548
|
-
}
|
|
4917
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
4549
4918
|
id: string;
|
|
4550
4919
|
amount: number;
|
|
4920
|
+
tax_amount?: number | null | undefined;
|
|
4551
4921
|
currency: string;
|
|
4552
4922
|
description?: string | null | undefined;
|
|
4553
4923
|
additional_information?: string | null | undefined;
|
|
@@ -4557,6 +4927,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4557
4927
|
creation_date: string;
|
|
4558
4928
|
value_date: string;
|
|
4559
4929
|
execution_date: string;
|
|
4930
|
+
internal_transaction: boolean | null;
|
|
4931
|
+
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;
|
|
4932
|
+
last_update_on?: string | null | undefined;
|
|
4933
|
+
status?: "completed" | "pending" | "declined" | null | undefined;
|
|
4934
|
+
attachments_info?: {
|
|
4935
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
4936
|
+
attachments: {
|
|
4937
|
+
filename?: string | null | undefined;
|
|
4938
|
+
url?: string | null | undefined;
|
|
4939
|
+
}[] | null;
|
|
4940
|
+
} | undefined;
|
|
4560
4941
|
}[]>;
|
|
4561
4942
|
getAccountCounterparts(params?: {
|
|
4562
4943
|
date_from?: string | null | undefined;
|
|
@@ -4567,6 +4948,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4567
4948
|
reference?: string | null | undefined;
|
|
4568
4949
|
details?: string | null | undefined;
|
|
4569
4950
|
}[]>;
|
|
4951
|
+
getAttachments(params: {
|
|
4952
|
+
transaction_id: string;
|
|
4953
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
4954
|
+
items: {
|
|
4955
|
+
id: string;
|
|
4956
|
+
base64_string: string;
|
|
4957
|
+
}[];
|
|
4958
|
+
total: number;
|
|
4959
|
+
page: number;
|
|
4960
|
+
size: number;
|
|
4961
|
+
}>;
|
|
4570
4962
|
}>;
|
|
4571
4963
|
getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
|
|
4572
4964
|
data: {
|
|
@@ -4606,6 +4998,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4606
4998
|
source_id?: string | null | undefined;
|
|
4607
4999
|
target_id?: string | null | undefined;
|
|
4608
5000
|
}[];
|
|
5001
|
+
hidden_source_ids: string[];
|
|
4609
5002
|
sub_mapping_name: string;
|
|
4610
5003
|
sub_mapping_description?: string | null | undefined;
|
|
4611
5004
|
}[] | null | undefined;
|
|
@@ -4769,7 +5162,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4769
5162
|
value: string;
|
|
4770
5163
|
}[] | null | undefined;
|
|
4771
5164
|
country?: string | null | undefined;
|
|
4772
|
-
|
|
5165
|
+
redirect: boolean | null;
|
|
5166
|
+
} | null | undefined) => Promise<{
|
|
4773
5167
|
url: string;
|
|
4774
5168
|
}>;
|
|
4775
5169
|
updateConnection: (connectionId: string, body?: {
|
|
@@ -4788,6 +5182,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4788
5182
|
};
|
|
4789
5183
|
content?: undefined;
|
|
4790
5184
|
}>;
|
|
5185
|
+
getTransactionByClientRequestId: (connectionId: string, params: {
|
|
5186
|
+
client_request_id: string;
|
|
5187
|
+
}) => Promise<{
|
|
5188
|
+
created_on: string;
|
|
5189
|
+
method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
|
|
5190
|
+
route: string;
|
|
5191
|
+
status_code: number;
|
|
5192
|
+
created_entity_id?: string | null | undefined;
|
|
5193
|
+
}>;
|
|
4791
5194
|
enableFlow: (syncId: string, flowId: string, body: {
|
|
4792
5195
|
integrationids: string[];
|
|
4793
5196
|
triggerid: string | null;
|
|
@@ -5393,6 +5796,30 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5393
5796
|
country?: string | null | undefined;
|
|
5394
5797
|
}[] | null | undefined;
|
|
5395
5798
|
}[]>;
|
|
5799
|
+
getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
5800
|
+
id: string;
|
|
5801
|
+
source_ref: {
|
|
5802
|
+
id?: string | null | undefined;
|
|
5803
|
+
model?: string | null | undefined;
|
|
5804
|
+
};
|
|
5805
|
+
first_name?: string | null | undefined;
|
|
5806
|
+
last_name?: string | null | undefined;
|
|
5807
|
+
company_name?: string | null | undefined;
|
|
5808
|
+
phone?: string | null | undefined;
|
|
5809
|
+
email?: string | null | undefined;
|
|
5810
|
+
account_number?: string | null | undefined;
|
|
5811
|
+
created_on?: string | null | undefined;
|
|
5812
|
+
addresses?: {
|
|
5813
|
+
address_type?: string | null | undefined;
|
|
5814
|
+
name?: string | null | undefined;
|
|
5815
|
+
street?: string | null | undefined;
|
|
5816
|
+
number?: string | null | undefined;
|
|
5817
|
+
box?: string | null | undefined;
|
|
5818
|
+
city?: string | null | undefined;
|
|
5819
|
+
postal_code?: string | null | undefined;
|
|
5820
|
+
country?: string | null | undefined;
|
|
5821
|
+
}[] | null | undefined;
|
|
5822
|
+
}>;
|
|
5396
5823
|
getInvoices(params?: {
|
|
5397
5824
|
date_from: string;
|
|
5398
5825
|
date_to: string;
|
|
@@ -5495,14 +5922,28 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5495
5922
|
untaxed_amount: number;
|
|
5496
5923
|
total: number;
|
|
5497
5924
|
}[]>;
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5925
|
+
getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
5926
|
+
items: {
|
|
5927
|
+
id: string;
|
|
5928
|
+
source_ref: {
|
|
5929
|
+
id?: string | null | undefined;
|
|
5930
|
+
model?: string | null | undefined;
|
|
5931
|
+
};
|
|
5932
|
+
label?: string | null | undefined;
|
|
5933
|
+
rate?: number | null | undefined;
|
|
5934
|
+
}[];
|
|
5935
|
+
total: number;
|
|
5936
|
+
page: number;
|
|
5937
|
+
size: number;
|
|
5938
|
+
}>;
|
|
5939
|
+
}>;
|
|
5940
|
+
payment: import("../types/api").ApiFor<{
|
|
5941
|
+
getPayments(params: {
|
|
5942
|
+
date_from?: string | null | undefined;
|
|
5943
|
+
date_to?: string | null | undefined;
|
|
5944
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
5945
|
+
id: string;
|
|
5946
|
+
source_ref: {
|
|
5506
5947
|
id?: string | null | undefined;
|
|
5507
5948
|
model?: string | null | undefined;
|
|
5508
5949
|
};
|
|
@@ -6046,6 +6487,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6046
6487
|
reference?: string | null | undefined;
|
|
6047
6488
|
payment_communication?: string | null | undefined;
|
|
6048
6489
|
customer_memo?: string | null | undefined;
|
|
6490
|
+
payment_term_id?: string | null | undefined;
|
|
6491
|
+
withholding_tax?: {
|
|
6492
|
+
tax_rate: number;
|
|
6493
|
+
tax_code: string;
|
|
6494
|
+
tax_amount: number;
|
|
6495
|
+
} | null | undefined;
|
|
6049
6496
|
invoice_date: string;
|
|
6050
6497
|
due_date: string;
|
|
6051
6498
|
partner_id?: string | null | undefined;
|
|
@@ -6088,10 +6535,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6088
6535
|
description: string;
|
|
6089
6536
|
analytic_account?: string | null | undefined;
|
|
6090
6537
|
}[];
|
|
6538
|
+
start_date?: string | null | undefined;
|
|
6539
|
+
end_date?: string | null | undefined;
|
|
6540
|
+
payment_method_id?: string | null | undefined;
|
|
6091
6541
|
}, params?: {
|
|
6092
6542
|
folder_id?: string | null | undefined;
|
|
6093
6543
|
force_financial_period?: string | null | undefined;
|
|
6094
6544
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
6545
|
+
ignore_accounting_id?: boolean | undefined;
|
|
6095
6546
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
6096
6547
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
6097
6548
|
invoice_number?: string | null | undefined;
|
|
@@ -6102,10 +6553,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6102
6553
|
reference?: string | null | undefined;
|
|
6103
6554
|
payment_communication?: string | null | undefined;
|
|
6104
6555
|
customer_memo?: string | null | undefined;
|
|
6556
|
+
payment_term_id?: string | null | undefined;
|
|
6557
|
+
withholding_tax?: {
|
|
6558
|
+
tax_rate: number;
|
|
6559
|
+
tax_code: string;
|
|
6560
|
+
tax_amount: number;
|
|
6561
|
+
} | null | undefined;
|
|
6105
6562
|
id?: string | null | undefined;
|
|
6106
6563
|
invoice_date: string;
|
|
6107
6564
|
due_date: string;
|
|
6108
|
-
partner_id: string;
|
|
6565
|
+
partner_id: string | null;
|
|
6109
6566
|
journal_id?: string | null | undefined;
|
|
6110
6567
|
payments?: {
|
|
6111
6568
|
id: string;
|
|
@@ -6163,8 +6620,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6163
6620
|
due_dates: {
|
|
6164
6621
|
due_date: string;
|
|
6165
6622
|
payment_method?: string | null | undefined;
|
|
6623
|
+
payment_method_id?: string | null | undefined;
|
|
6166
6624
|
amount: number;
|
|
6167
6625
|
}[] | null;
|
|
6626
|
+
attachments_info?: {
|
|
6627
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
6628
|
+
attachments: {
|
|
6629
|
+
filename?: string | null | undefined;
|
|
6630
|
+
url?: string | null | undefined;
|
|
6631
|
+
}[] | null;
|
|
6632
|
+
} | undefined;
|
|
6633
|
+
accounting_info?: {
|
|
6634
|
+
main_currency?: string | undefined;
|
|
6635
|
+
main_currency_total: number;
|
|
6636
|
+
account_number?: string | null | undefined;
|
|
6637
|
+
} | null | undefined;
|
|
6638
|
+
payment_method_id?: string | null | undefined;
|
|
6168
6639
|
lines: {
|
|
6169
6640
|
line_number: number | null;
|
|
6170
6641
|
unit_price: number;
|
|
@@ -6190,6 +6661,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6190
6661
|
reference?: string | null | undefined;
|
|
6191
6662
|
payment_communication?: string | null | undefined;
|
|
6192
6663
|
customer_memo?: string | null | undefined;
|
|
6664
|
+
payment_term_id?: string | null | undefined;
|
|
6665
|
+
withholding_tax?: {
|
|
6666
|
+
tax_rate: number;
|
|
6667
|
+
tax_code: string;
|
|
6668
|
+
tax_amount: number;
|
|
6669
|
+
} | null | undefined;
|
|
6193
6670
|
invoice_date: string;
|
|
6194
6671
|
due_date: string;
|
|
6195
6672
|
partner_id?: string | null | undefined;
|
|
@@ -6238,10 +6715,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6238
6715
|
}[];
|
|
6239
6716
|
}[] | null;
|
|
6240
6717
|
}[];
|
|
6718
|
+
start_date?: string | null | undefined;
|
|
6719
|
+
end_date?: string | null | undefined;
|
|
6720
|
+
payment_method_id?: string | null | undefined;
|
|
6241
6721
|
}, params?: {
|
|
6242
6722
|
folder_id?: string | null | undefined;
|
|
6243
6723
|
force_financial_period?: string | null | undefined;
|
|
6244
6724
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
6725
|
+
ignore_accounting_id?: boolean | undefined;
|
|
6245
6726
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
6246
6727
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
6247
6728
|
invoice_number?: string | null | undefined;
|
|
@@ -6252,10 +6733,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6252
6733
|
reference?: string | null | undefined;
|
|
6253
6734
|
payment_communication?: string | null | undefined;
|
|
6254
6735
|
customer_memo?: string | null | undefined;
|
|
6736
|
+
payment_term_id?: string | null | undefined;
|
|
6737
|
+
withholding_tax?: {
|
|
6738
|
+
tax_rate: number;
|
|
6739
|
+
tax_code: string;
|
|
6740
|
+
tax_amount: number;
|
|
6741
|
+
} | null | undefined;
|
|
6255
6742
|
id?: string | null | undefined;
|
|
6256
6743
|
invoice_date: string;
|
|
6257
6744
|
due_date: string;
|
|
6258
|
-
partner_id: string;
|
|
6745
|
+
partner_id: string | null;
|
|
6259
6746
|
journal_id?: string | null | undefined;
|
|
6260
6747
|
payments?: {
|
|
6261
6748
|
id: string;
|
|
@@ -6313,8 +6800,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6313
6800
|
due_dates: {
|
|
6314
6801
|
due_date: string;
|
|
6315
6802
|
payment_method?: string | null | undefined;
|
|
6803
|
+
payment_method_id?: string | null | undefined;
|
|
6316
6804
|
amount: number;
|
|
6317
6805
|
}[] | null;
|
|
6806
|
+
attachments_info?: {
|
|
6807
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
6808
|
+
attachments: {
|
|
6809
|
+
filename?: string | null | undefined;
|
|
6810
|
+
url?: string | null | undefined;
|
|
6811
|
+
}[] | null;
|
|
6812
|
+
} | undefined;
|
|
6813
|
+
accounting_info?: {
|
|
6814
|
+
main_currency?: string | undefined;
|
|
6815
|
+
main_currency_total: number;
|
|
6816
|
+
account_number?: string | null | undefined;
|
|
6817
|
+
} | null | undefined;
|
|
6818
|
+
payment_method_id?: string | null | undefined;
|
|
6318
6819
|
lines: {
|
|
6319
6820
|
line_number: number | null;
|
|
6320
6821
|
unit_price: number;
|
|
@@ -6356,10 +6857,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6356
6857
|
reference?: string | null | undefined;
|
|
6357
6858
|
payment_communication?: string | null | undefined;
|
|
6358
6859
|
customer_memo?: string | null | undefined;
|
|
6860
|
+
payment_term_id?: string | null | undefined;
|
|
6861
|
+
withholding_tax?: {
|
|
6862
|
+
tax_rate: number;
|
|
6863
|
+
tax_code: string;
|
|
6864
|
+
tax_amount: number;
|
|
6865
|
+
} | null | undefined;
|
|
6359
6866
|
id?: string | null | undefined;
|
|
6360
6867
|
invoice_date: string;
|
|
6361
6868
|
due_date: string;
|
|
6362
|
-
partner_id: string;
|
|
6869
|
+
partner_id: string | null;
|
|
6363
6870
|
journal_id?: string | null | undefined;
|
|
6364
6871
|
payments?: {
|
|
6365
6872
|
id: string;
|
|
@@ -6417,8 +6924,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6417
6924
|
due_dates: {
|
|
6418
6925
|
due_date: string;
|
|
6419
6926
|
payment_method?: string | null | undefined;
|
|
6927
|
+
payment_method_id?: string | null | undefined;
|
|
6420
6928
|
amount: number;
|
|
6421
6929
|
}[] | null;
|
|
6930
|
+
attachments_info?: {
|
|
6931
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
6932
|
+
attachments: {
|
|
6933
|
+
filename?: string | null | undefined;
|
|
6934
|
+
url?: string | null | undefined;
|
|
6935
|
+
}[] | null;
|
|
6936
|
+
} | undefined;
|
|
6937
|
+
accounting_info?: {
|
|
6938
|
+
main_currency?: string | undefined;
|
|
6939
|
+
main_currency_total: number;
|
|
6940
|
+
account_number?: string | null | undefined;
|
|
6941
|
+
} | null | undefined;
|
|
6942
|
+
payment_method_id?: string | null | undefined;
|
|
6422
6943
|
lines: {
|
|
6423
6944
|
line_number: number | null;
|
|
6424
6945
|
unit_price: number;
|
|
@@ -6449,10 +6970,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6449
6970
|
reference?: string | null | undefined;
|
|
6450
6971
|
payment_communication?: string | null | undefined;
|
|
6451
6972
|
customer_memo?: string | null | undefined;
|
|
6973
|
+
payment_term_id?: string | null | undefined;
|
|
6974
|
+
withholding_tax?: {
|
|
6975
|
+
tax_rate: number;
|
|
6976
|
+
tax_code: string;
|
|
6977
|
+
tax_amount: number;
|
|
6978
|
+
} | null | undefined;
|
|
6452
6979
|
id?: string | null | undefined;
|
|
6453
6980
|
invoice_date: string;
|
|
6454
6981
|
due_date: string;
|
|
6455
|
-
partner_id: string;
|
|
6982
|
+
partner_id: string | null;
|
|
6456
6983
|
journal_id?: string | null | undefined;
|
|
6457
6984
|
payments?: {
|
|
6458
6985
|
id: string;
|
|
@@ -6510,8 +7037,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6510
7037
|
due_dates: {
|
|
6511
7038
|
due_date: string;
|
|
6512
7039
|
payment_method?: string | null | undefined;
|
|
7040
|
+
payment_method_id?: string | null | undefined;
|
|
6513
7041
|
amount: number;
|
|
6514
7042
|
}[] | null;
|
|
7043
|
+
attachments_info?: {
|
|
7044
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
7045
|
+
attachments: {
|
|
7046
|
+
filename?: string | null | undefined;
|
|
7047
|
+
url?: string | null | undefined;
|
|
7048
|
+
}[] | null;
|
|
7049
|
+
} | undefined;
|
|
7050
|
+
accounting_info?: {
|
|
7051
|
+
main_currency?: string | undefined;
|
|
7052
|
+
main_currency_total: number;
|
|
7053
|
+
account_number?: string | null | undefined;
|
|
7054
|
+
} | null | undefined;
|
|
7055
|
+
payment_method_id?: string | null | undefined;
|
|
6515
7056
|
lines: {
|
|
6516
7057
|
line_number: number | null;
|
|
6517
7058
|
unit_price: number;
|
|
@@ -6542,10 +7083,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6542
7083
|
reference?: string | null | undefined;
|
|
6543
7084
|
payment_communication?: string | null | undefined;
|
|
6544
7085
|
customer_memo?: string | null | undefined;
|
|
7086
|
+
payment_term_id?: string | null | undefined;
|
|
7087
|
+
withholding_tax?: {
|
|
7088
|
+
tax_rate: number;
|
|
7089
|
+
tax_code: string;
|
|
7090
|
+
tax_amount: number;
|
|
7091
|
+
} | null | undefined;
|
|
6545
7092
|
id?: string | null | undefined;
|
|
6546
7093
|
invoice_date: string;
|
|
6547
7094
|
due_date: string;
|
|
6548
|
-
partner_id: string;
|
|
7095
|
+
partner_id: string | null;
|
|
6549
7096
|
journal_id?: string | null | undefined;
|
|
6550
7097
|
payments?: {
|
|
6551
7098
|
id: string;
|
|
@@ -6603,8 +7150,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6603
7150
|
due_dates: {
|
|
6604
7151
|
due_date: string;
|
|
6605
7152
|
payment_method?: string | null | undefined;
|
|
7153
|
+
payment_method_id?: string | null | undefined;
|
|
6606
7154
|
amount: number;
|
|
6607
7155
|
}[] | null;
|
|
7156
|
+
attachments_info?: {
|
|
7157
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
7158
|
+
attachments: {
|
|
7159
|
+
filename?: string | null | undefined;
|
|
7160
|
+
url?: string | null | undefined;
|
|
7161
|
+
}[] | null;
|
|
7162
|
+
} | undefined;
|
|
7163
|
+
accounting_info?: {
|
|
7164
|
+
main_currency?: string | undefined;
|
|
7165
|
+
main_currency_total: number;
|
|
7166
|
+
account_number?: string | null | undefined;
|
|
7167
|
+
} | null | undefined;
|
|
7168
|
+
payment_method_id?: string | null | undefined;
|
|
6608
7169
|
lines: {
|
|
6609
7170
|
line_number: number | null;
|
|
6610
7171
|
unit_price: number;
|
|
@@ -6646,10 +7207,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6646
7207
|
reference?: string | null | undefined;
|
|
6647
7208
|
payment_communication?: string | null | undefined;
|
|
6648
7209
|
customer_memo?: string | null | undefined;
|
|
7210
|
+
payment_term_id?: string | null | undefined;
|
|
7211
|
+
withholding_tax?: {
|
|
7212
|
+
tax_rate: number;
|
|
7213
|
+
tax_code: string;
|
|
7214
|
+
tax_amount: number;
|
|
7215
|
+
} | null | undefined;
|
|
6649
7216
|
id?: string | null | undefined;
|
|
6650
7217
|
invoice_date: string;
|
|
6651
7218
|
due_date: string;
|
|
6652
|
-
partner_id: string;
|
|
7219
|
+
partner_id: string | null;
|
|
6653
7220
|
journal_id?: string | null | undefined;
|
|
6654
7221
|
payments?: {
|
|
6655
7222
|
id: string;
|
|
@@ -6707,8 +7274,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6707
7274
|
due_dates: {
|
|
6708
7275
|
due_date: string;
|
|
6709
7276
|
payment_method?: string | null | undefined;
|
|
7277
|
+
payment_method_id?: string | null | undefined;
|
|
6710
7278
|
amount: number;
|
|
6711
7279
|
}[] | null;
|
|
7280
|
+
attachments_info?: {
|
|
7281
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
7282
|
+
attachments: {
|
|
7283
|
+
filename?: string | null | undefined;
|
|
7284
|
+
url?: string | null | undefined;
|
|
7285
|
+
}[] | null;
|
|
7286
|
+
} | undefined;
|
|
7287
|
+
accounting_info?: {
|
|
7288
|
+
main_currency?: string | undefined;
|
|
7289
|
+
main_currency_total: number;
|
|
7290
|
+
account_number?: string | null | undefined;
|
|
7291
|
+
} | null | undefined;
|
|
7292
|
+
payment_method_id?: string | null | undefined;
|
|
6712
7293
|
lines: {
|
|
6713
7294
|
line_number: number | null;
|
|
6714
7295
|
unit_price: number;
|
|
@@ -6856,7 +7437,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6856
7437
|
folder_id?: string | null | undefined;
|
|
6857
7438
|
updated_after?: string | null | undefined;
|
|
6858
7439
|
unposted_allowed: "true" | "false";
|
|
6859
|
-
journal_id
|
|
7440
|
+
journal_id?: string | null | undefined;
|
|
6860
7441
|
partner_id?: string | null | undefined;
|
|
6861
7442
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
6862
7443
|
reference?: string | null | undefined;
|
|
@@ -6870,9 +7451,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6870
7451
|
due_dates: {
|
|
6871
7452
|
due_date: string;
|
|
6872
7453
|
payment_method?: string | null | undefined;
|
|
7454
|
+
payment_method_id?: string | null | undefined;
|
|
6873
7455
|
debit: number | null;
|
|
6874
7456
|
credit: number | null;
|
|
6875
7457
|
}[] | null;
|
|
7458
|
+
attachments_info?: {
|
|
7459
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
7460
|
+
attachments: {
|
|
7461
|
+
filename?: string | null | undefined;
|
|
7462
|
+
url?: string | null | undefined;
|
|
7463
|
+
}[] | null;
|
|
7464
|
+
} | undefined;
|
|
6876
7465
|
items: {
|
|
6877
7466
|
account_number: string;
|
|
6878
7467
|
partner_id?: string | null | undefined;
|
|
@@ -6895,7 +7484,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6895
7484
|
folder_id?: string | null | undefined;
|
|
6896
7485
|
updated_after?: string | null | undefined;
|
|
6897
7486
|
unposted_allowed: "true" | "false";
|
|
6898
|
-
journal_id
|
|
7487
|
+
journal_id?: string | null | undefined;
|
|
6899
7488
|
partner_id?: string | null | undefined;
|
|
6900
7489
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
6901
7490
|
reference?: string | null | undefined;
|
|
@@ -6909,9 +7498,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6909
7498
|
due_dates: {
|
|
6910
7499
|
due_date: string;
|
|
6911
7500
|
payment_method?: string | null | undefined;
|
|
7501
|
+
payment_method_id?: string | null | undefined;
|
|
6912
7502
|
debit: number | null;
|
|
6913
7503
|
credit: number | null;
|
|
6914
7504
|
}[] | null;
|
|
7505
|
+
attachments_info?: {
|
|
7506
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
7507
|
+
attachments: {
|
|
7508
|
+
filename?: string | null | undefined;
|
|
7509
|
+
url?: string | null | undefined;
|
|
7510
|
+
}[] | null;
|
|
7511
|
+
} | undefined;
|
|
6915
7512
|
items: {
|
|
6916
7513
|
account_number: string;
|
|
6917
7514
|
partner_id?: string | null | undefined;
|
|
@@ -7001,6 +7598,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7001
7598
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
7002
7599
|
id: string;
|
|
7003
7600
|
code?: string | null | undefined;
|
|
7601
|
+
active: boolean | null;
|
|
7004
7602
|
label: string;
|
|
7005
7603
|
scope: "unknown" | "nat" | "eu" | "int" | null;
|
|
7006
7604
|
rate: number;
|
|
@@ -7008,6 +7606,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7008
7606
|
deductible_account?: string | null | undefined;
|
|
7009
7607
|
payable_account?: string | null | undefined;
|
|
7010
7608
|
reversed: boolean | null;
|
|
7609
|
+
withholding_tax: boolean | null;
|
|
7011
7610
|
country?: string | null | undefined;
|
|
7012
7611
|
}[]>;
|
|
7013
7612
|
getMiscOperations(params?: {
|
|
@@ -7110,12 +7709,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7110
7709
|
getChartOfAccounts(params?: {
|
|
7111
7710
|
folder_id?: string | null | undefined;
|
|
7112
7711
|
classes?: string | null | undefined;
|
|
7113
|
-
type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
|
|
7712
|
+
type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
|
|
7114
7713
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
7115
7714
|
number: string;
|
|
7116
7715
|
name: string;
|
|
7117
7716
|
active: boolean | null;
|
|
7118
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
7717
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
7718
|
+
scheme_ids?: string[] | null | undefined;
|
|
7719
|
+
accounting_category?: string | null | undefined;
|
|
7119
7720
|
}[]>;
|
|
7120
7721
|
getBalanceOfAccounts(filter: {
|
|
7121
7722
|
accounts: string[];
|
|
@@ -7191,6 +7792,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7191
7792
|
account: string;
|
|
7192
7793
|
amount: number;
|
|
7193
7794
|
description?: string | null | undefined;
|
|
7795
|
+
automated_matching_number?: string | null | undefined;
|
|
7194
7796
|
}[];
|
|
7195
7797
|
pdf?: string | null | undefined;
|
|
7196
7798
|
}, params?: {
|
|
@@ -7209,6 +7811,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7209
7811
|
account: string;
|
|
7210
7812
|
amount: number;
|
|
7211
7813
|
description?: string | null | undefined;
|
|
7814
|
+
automated_matching_number?: string | null | undefined;
|
|
7212
7815
|
counterpart_account: string;
|
|
7213
7816
|
}[];
|
|
7214
7817
|
}>;
|
|
@@ -7236,6 +7839,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7236
7839
|
}[];
|
|
7237
7840
|
}[] | null;
|
|
7238
7841
|
tax_code?: string | null | undefined;
|
|
7842
|
+
tax_info?: {
|
|
7843
|
+
tax_code: string;
|
|
7844
|
+
tax_amount: number;
|
|
7845
|
+
vat_account?: string | null | undefined;
|
|
7846
|
+
reversed_vat_account?: string | null | undefined;
|
|
7847
|
+
description?: string | null | undefined;
|
|
7848
|
+
} | null | undefined;
|
|
7239
7849
|
account_info?: {
|
|
7240
7850
|
account_number: string;
|
|
7241
7851
|
account_name: string;
|
|
@@ -7248,6 +7858,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7248
7858
|
}, params?: {
|
|
7249
7859
|
folder_id?: string | null | undefined;
|
|
7250
7860
|
force_currency_exchange?: "true" | "false" | null | undefined;
|
|
7861
|
+
ignore_accounting_id?: boolean | undefined;
|
|
7251
7862
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
7252
7863
|
reference?: string | null | undefined;
|
|
7253
7864
|
due_date?: string | null | undefined;
|
|
@@ -7260,9 +7871,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7260
7871
|
due_dates: {
|
|
7261
7872
|
due_date: string;
|
|
7262
7873
|
payment_method?: string | null | undefined;
|
|
7874
|
+
payment_method_id?: string | null | undefined;
|
|
7263
7875
|
debit: number | null;
|
|
7264
7876
|
credit: number | null;
|
|
7265
7877
|
}[] | null;
|
|
7878
|
+
attachments_info?: {
|
|
7879
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
7880
|
+
attachments: {
|
|
7881
|
+
filename?: string | null | undefined;
|
|
7882
|
+
url?: string | null | undefined;
|
|
7883
|
+
}[] | null;
|
|
7884
|
+
} | undefined;
|
|
7266
7885
|
items: {
|
|
7267
7886
|
account_number: string;
|
|
7268
7887
|
partner_id?: string | null | undefined;
|
|
@@ -7378,14 +7997,35 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7378
7997
|
createLedgerAccount(account: {
|
|
7379
7998
|
name: string;
|
|
7380
7999
|
number: string;
|
|
7381
|
-
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
8000
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
|
|
7382
8001
|
}, params?: {
|
|
7383
8002
|
folder_id?: string | null | undefined;
|
|
7384
8003
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
7385
8004
|
number: string;
|
|
7386
8005
|
name: string;
|
|
7387
8006
|
active: boolean | null;
|
|
7388
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
8007
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
8008
|
+
scheme_ids?: string[] | null | undefined;
|
|
8009
|
+
accounting_category?: string | null | undefined;
|
|
8010
|
+
}>;
|
|
8011
|
+
getBankAccounts(params?: {
|
|
8012
|
+
folder_id?: string | null | undefined;
|
|
8013
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
8014
|
+
items: {
|
|
8015
|
+
id: string;
|
|
8016
|
+
code?: string | null | undefined;
|
|
8017
|
+
currency?: string | null | undefined;
|
|
8018
|
+
account_name?: string | null | undefined;
|
|
8019
|
+
account_number?: string | null | undefined;
|
|
8020
|
+
iban?: string | null | undefined;
|
|
8021
|
+
bank_name?: string | null | undefined;
|
|
8022
|
+
journal_id?: string | null | undefined;
|
|
8023
|
+
ledger_account?: string | null | undefined;
|
|
8024
|
+
unallocated_account?: string | null | undefined;
|
|
8025
|
+
}[];
|
|
8026
|
+
total: number;
|
|
8027
|
+
page: number;
|
|
8028
|
+
size: number;
|
|
7389
8029
|
}>;
|
|
7390
8030
|
createBankAccount(bankAccount: {
|
|
7391
8031
|
code: string;
|
|
@@ -7408,6 +8048,45 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7408
8048
|
ledger_account?: string | null | undefined;
|
|
7409
8049
|
unallocated_account?: string | null | undefined;
|
|
7410
8050
|
}>;
|
|
8051
|
+
createBankTransactions(bankStatement: {
|
|
8052
|
+
bank_statement_date: string;
|
|
8053
|
+
bank_account_id: string;
|
|
8054
|
+
external_bank_statement_id: string;
|
|
8055
|
+
opening_balance?: number | null | undefined;
|
|
8056
|
+
pdf?: string | null | undefined;
|
|
8057
|
+
items: {
|
|
8058
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
8059
|
+
account?: string | null | undefined;
|
|
8060
|
+
description?: string | null | undefined;
|
|
8061
|
+
external_transaction_id?: string | null | undefined;
|
|
8062
|
+
date: string;
|
|
8063
|
+
amount: number;
|
|
8064
|
+
fee_amount: number | null;
|
|
8065
|
+
tax_amount: number | null;
|
|
8066
|
+
currency: string;
|
|
8067
|
+
currency_exchange_rate: number | null;
|
|
8068
|
+
}[];
|
|
8069
|
+
}, params?: {
|
|
8070
|
+
folder_id?: string | null | undefined;
|
|
8071
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
8072
|
+
bank_statement_date: string;
|
|
8073
|
+
bank_account_id: string;
|
|
8074
|
+
id?: string | null | undefined;
|
|
8075
|
+
external_bank_statement_id?: string | null | undefined;
|
|
8076
|
+
items: {
|
|
8077
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
8078
|
+
account?: string | null | undefined;
|
|
8079
|
+
description?: string | null | undefined;
|
|
8080
|
+
external_transaction_id?: string | null | undefined;
|
|
8081
|
+
date: string;
|
|
8082
|
+
amount: number;
|
|
8083
|
+
fee_amount: number | null;
|
|
8084
|
+
tax_amount: number | null;
|
|
8085
|
+
currency: string;
|
|
8086
|
+
currency_exchange_rate: number | null;
|
|
8087
|
+
id?: string | null | undefined;
|
|
8088
|
+
}[];
|
|
8089
|
+
}>;
|
|
7411
8090
|
getJournalEntry(journalEntryId: string, params?: {
|
|
7412
8091
|
folder_id?: string | null | undefined;
|
|
7413
8092
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -7422,9 +8101,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7422
8101
|
due_dates: {
|
|
7423
8102
|
due_date: string;
|
|
7424
8103
|
payment_method?: string | null | undefined;
|
|
8104
|
+
payment_method_id?: string | null | undefined;
|
|
7425
8105
|
debit: number | null;
|
|
7426
8106
|
credit: number | null;
|
|
7427
8107
|
}[] | null;
|
|
8108
|
+
attachments_info?: {
|
|
8109
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
8110
|
+
attachments: {
|
|
8111
|
+
filename?: string | null | undefined;
|
|
8112
|
+
url?: string | null | undefined;
|
|
8113
|
+
}[] | null;
|
|
8114
|
+
} | undefined;
|
|
7428
8115
|
items: {
|
|
7429
8116
|
account_number: string;
|
|
7430
8117
|
partner_id?: string | null | undefined;
|
|
@@ -7459,6 +8146,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7459
8146
|
page: number;
|
|
7460
8147
|
size: number;
|
|
7461
8148
|
}>;
|
|
8149
|
+
getPaymentTerms(params?: {
|
|
8150
|
+
folder_id?: string | null | undefined;
|
|
8151
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
8152
|
+
items: {
|
|
8153
|
+
id: string;
|
|
8154
|
+
name?: string | null | undefined;
|
|
8155
|
+
}[];
|
|
8156
|
+
total: number;
|
|
8157
|
+
page: number;
|
|
8158
|
+
size: number;
|
|
8159
|
+
}>;
|
|
8160
|
+
getSchemes(params?: {
|
|
8161
|
+
folder_id?: string | null | undefined;
|
|
8162
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
8163
|
+
items: {
|
|
8164
|
+
id: string;
|
|
8165
|
+
code: string;
|
|
8166
|
+
name: string;
|
|
8167
|
+
}[];
|
|
8168
|
+
total: number;
|
|
8169
|
+
page: number;
|
|
8170
|
+
size: number;
|
|
8171
|
+
}>;
|
|
7462
8172
|
createInvoicePayment(body: {
|
|
7463
8173
|
date: string;
|
|
7464
8174
|
payment_method_id: string;
|
|
@@ -7478,6 +8188,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7478
8188
|
};
|
|
7479
8189
|
content?: undefined;
|
|
7480
8190
|
}>;
|
|
8191
|
+
exportFec(params: {
|
|
8192
|
+
folder_id?: string | null | undefined;
|
|
8193
|
+
date_from: string;
|
|
8194
|
+
date_to: string;
|
|
8195
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
8196
|
+
JournalCode: string;
|
|
8197
|
+
JournalLib: string;
|
|
8198
|
+
EcritureNum: string;
|
|
8199
|
+
EcritureDate: string;
|
|
8200
|
+
CompteNum: string;
|
|
8201
|
+
CompteLib: string;
|
|
8202
|
+
CompAuxNum: string;
|
|
8203
|
+
CompAuxLib: string;
|
|
8204
|
+
PieceRef: string;
|
|
8205
|
+
PieceDate: string;
|
|
8206
|
+
Debit: number;
|
|
8207
|
+
Credit: number;
|
|
8208
|
+
EcritureLet: string;
|
|
8209
|
+
DateLet: string | null;
|
|
8210
|
+
ValidDate: string | null;
|
|
8211
|
+
Montantdevise: number;
|
|
8212
|
+
Idevise: string;
|
|
8213
|
+
}[]>;
|
|
7481
8214
|
}>;
|
|
7482
8215
|
invoicing: import("../types/api").ApiFor<{
|
|
7483
8216
|
getInvoices(params?: {
|
|
@@ -7487,6 +8220,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7487
8220
|
updated_after?: string | null | undefined;
|
|
7488
8221
|
include_invoice_lines?: "true" | "false" | null | undefined;
|
|
7489
8222
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
8223
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
7490
8224
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
7491
8225
|
id: string;
|
|
7492
8226
|
source_ref: {
|
|
@@ -7516,6 +8250,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7516
8250
|
product_id?: string | null | undefined;
|
|
7517
8251
|
product_code?: string | null | undefined;
|
|
7518
8252
|
product_name?: string | null | undefined;
|
|
8253
|
+
analytic_distribution: {
|
|
8254
|
+
analytic_plan_code: string;
|
|
8255
|
+
analytic_accounts: {
|
|
8256
|
+
analytic_account_code: string;
|
|
8257
|
+
analytic_account_name: string;
|
|
8258
|
+
percentage: number;
|
|
8259
|
+
}[];
|
|
8260
|
+
}[] | null;
|
|
7519
8261
|
}[];
|
|
7520
8262
|
partner_id?: string | null | undefined;
|
|
7521
8263
|
invoice_number?: string | null | undefined;
|
|
@@ -7555,6 +8297,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7555
8297
|
}[]>;
|
|
7556
8298
|
getInvoiceById(invoiceId: string, params?: {
|
|
7557
8299
|
include_pdf?: "true" | "false" | null | undefined;
|
|
8300
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
7558
8301
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
7559
8302
|
id: string;
|
|
7560
8303
|
source_ref: {
|
|
@@ -7584,6 +8327,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7584
8327
|
product_id?: string | null | undefined;
|
|
7585
8328
|
product_code?: string | null | undefined;
|
|
7586
8329
|
product_name?: string | null | undefined;
|
|
8330
|
+
analytic_distribution: {
|
|
8331
|
+
analytic_plan_code: string;
|
|
8332
|
+
analytic_accounts: {
|
|
8333
|
+
analytic_account_code: string;
|
|
8334
|
+
analytic_account_name: string;
|
|
8335
|
+
percentage: number;
|
|
8336
|
+
}[];
|
|
8337
|
+
}[] | null;
|
|
7587
8338
|
}[];
|
|
7588
8339
|
partner_id?: string | null | undefined;
|
|
7589
8340
|
invoice_number?: string | null | undefined;
|
|
@@ -7705,6 +8456,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7705
8456
|
product_id?: string | null | undefined;
|
|
7706
8457
|
product_code?: string | null | undefined;
|
|
7707
8458
|
product_name?: string | null | undefined;
|
|
8459
|
+
analytic_distribution: {
|
|
8460
|
+
analytic_plan_code: string;
|
|
8461
|
+
analytic_accounts: {
|
|
8462
|
+
analytic_account_code: string;
|
|
8463
|
+
analytic_account_name: string;
|
|
8464
|
+
percentage: number;
|
|
8465
|
+
}[];
|
|
8466
|
+
}[] | null;
|
|
7708
8467
|
}[];
|
|
7709
8468
|
partner_id?: string | null | undefined;
|
|
7710
8469
|
invoice_number?: string | null | undefined;
|
|
@@ -9283,14 +10042,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9283
10042
|
reference: string;
|
|
9284
10043
|
reference_type: string;
|
|
9285
10044
|
holder_name?: string | null | undefined;
|
|
10045
|
+
active: boolean | null;
|
|
9286
10046
|
}[]>;
|
|
9287
|
-
getAccountTransactions(
|
|
10047
|
+
getAccountTransactions(params: {
|
|
9288
10048
|
date_from?: string | null | undefined;
|
|
9289
10049
|
date_to?: string | null | undefined;
|
|
10050
|
+
updated_after?: string | null | undefined;
|
|
10051
|
+
account_id: string;
|
|
9290
10052
|
date_type?: "value_date" | "execution_date" | null | undefined;
|
|
9291
|
-
}
|
|
10053
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
9292
10054
|
id: string;
|
|
9293
10055
|
amount: number;
|
|
10056
|
+
tax_amount?: number | null | undefined;
|
|
9294
10057
|
currency: string;
|
|
9295
10058
|
description?: string | null | undefined;
|
|
9296
10059
|
additional_information?: string | null | undefined;
|
|
@@ -9300,6 +10063,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9300
10063
|
creation_date: string;
|
|
9301
10064
|
value_date: string;
|
|
9302
10065
|
execution_date: string;
|
|
10066
|
+
internal_transaction: boolean | null;
|
|
10067
|
+
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;
|
|
10068
|
+
last_update_on?: string | null | undefined;
|
|
10069
|
+
status?: "completed" | "pending" | "declined" | null | undefined;
|
|
10070
|
+
attachments_info?: {
|
|
10071
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
10072
|
+
attachments: {
|
|
10073
|
+
filename?: string | null | undefined;
|
|
10074
|
+
url?: string | null | undefined;
|
|
10075
|
+
}[] | null;
|
|
10076
|
+
} | undefined;
|
|
9303
10077
|
}[]>;
|
|
9304
10078
|
getAccountCounterparts(params?: {
|
|
9305
10079
|
date_from?: string | null | undefined;
|
|
@@ -9310,6 +10084,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9310
10084
|
reference?: string | null | undefined;
|
|
9311
10085
|
details?: string | null | undefined;
|
|
9312
10086
|
}[]>;
|
|
10087
|
+
getAttachments(params: {
|
|
10088
|
+
transaction_id: string;
|
|
10089
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
10090
|
+
items: {
|
|
10091
|
+
id: string;
|
|
10092
|
+
base64_string: string;
|
|
10093
|
+
}[];
|
|
10094
|
+
total: number;
|
|
10095
|
+
page: number;
|
|
10096
|
+
size: number;
|
|
10097
|
+
}>;
|
|
9313
10098
|
}>;
|
|
9314
10099
|
getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
|
|
9315
10100
|
data: {
|
|
@@ -9349,6 +10134,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9349
10134
|
source_id?: string | null | undefined;
|
|
9350
10135
|
target_id?: string | null | undefined;
|
|
9351
10136
|
}[];
|
|
10137
|
+
hidden_source_ids: string[];
|
|
9352
10138
|
sub_mapping_name: string;
|
|
9353
10139
|
sub_mapping_description?: string | null | undefined;
|
|
9354
10140
|
}[] | null | undefined;
|
|
@@ -9512,7 +10298,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9512
10298
|
value: string;
|
|
9513
10299
|
}[] | null | undefined;
|
|
9514
10300
|
country?: string | null | undefined;
|
|
9515
|
-
|
|
10301
|
+
redirect: boolean | null;
|
|
10302
|
+
} | null | undefined) => Promise<{
|
|
9516
10303
|
url: string;
|
|
9517
10304
|
}>;
|
|
9518
10305
|
updateConnection: (connectionId: string, body?: {
|
|
@@ -9531,6 +10318,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9531
10318
|
};
|
|
9532
10319
|
content?: undefined;
|
|
9533
10320
|
}>;
|
|
10321
|
+
getTransactionByClientRequestId: (connectionId: string, params: {
|
|
10322
|
+
client_request_id: string;
|
|
10323
|
+
}) => Promise<{
|
|
10324
|
+
created_on: string;
|
|
10325
|
+
method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
|
|
10326
|
+
route: string;
|
|
10327
|
+
status_code: number;
|
|
10328
|
+
created_entity_id?: string | null | undefined;
|
|
10329
|
+
}>;
|
|
9534
10330
|
enableFlow: (syncId: string, flowId: string, body: {
|
|
9535
10331
|
integrationids: string[];
|
|
9536
10332
|
triggerid: string | null;
|
|
@@ -10136,6 +10932,30 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10136
10932
|
country?: string | null | undefined;
|
|
10137
10933
|
}[] | null | undefined;
|
|
10138
10934
|
}[]>;
|
|
10935
|
+
getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
10936
|
+
id: string;
|
|
10937
|
+
source_ref: {
|
|
10938
|
+
id?: string | null | undefined;
|
|
10939
|
+
model?: string | null | undefined;
|
|
10940
|
+
};
|
|
10941
|
+
first_name?: string | null | undefined;
|
|
10942
|
+
last_name?: string | null | undefined;
|
|
10943
|
+
company_name?: string | null | undefined;
|
|
10944
|
+
phone?: string | null | undefined;
|
|
10945
|
+
email?: string | null | undefined;
|
|
10946
|
+
account_number?: string | null | undefined;
|
|
10947
|
+
created_on?: string | null | undefined;
|
|
10948
|
+
addresses?: {
|
|
10949
|
+
address_type?: string | null | undefined;
|
|
10950
|
+
name?: string | null | undefined;
|
|
10951
|
+
street?: string | null | undefined;
|
|
10952
|
+
number?: string | null | undefined;
|
|
10953
|
+
box?: string | null | undefined;
|
|
10954
|
+
city?: string | null | undefined;
|
|
10955
|
+
postal_code?: string | null | undefined;
|
|
10956
|
+
country?: string | null | undefined;
|
|
10957
|
+
}[] | null | undefined;
|
|
10958
|
+
}>;
|
|
10139
10959
|
getInvoices(params?: {
|
|
10140
10960
|
date_from: string;
|
|
10141
10961
|
date_to: string;
|
|
@@ -10238,6 +11058,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10238
11058
|
untaxed_amount: number;
|
|
10239
11059
|
total: number;
|
|
10240
11060
|
}[]>;
|
|
11061
|
+
getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
11062
|
+
items: {
|
|
11063
|
+
id: string;
|
|
11064
|
+
source_ref: {
|
|
11065
|
+
id?: string | null | undefined;
|
|
11066
|
+
model?: string | null | undefined;
|
|
11067
|
+
};
|
|
11068
|
+
label?: string | null | undefined;
|
|
11069
|
+
rate?: number | null | undefined;
|
|
11070
|
+
}[];
|
|
11071
|
+
total: number;
|
|
11072
|
+
page: number;
|
|
11073
|
+
size: number;
|
|
11074
|
+
}>;
|
|
10241
11075
|
}>;
|
|
10242
11076
|
payment: import("../types/api").ApiFor<{
|
|
10243
11077
|
getPayments(params: {
|
|
@@ -10789,6 +11623,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10789
11623
|
reference?: string | null | undefined;
|
|
10790
11624
|
payment_communication?: string | null | undefined;
|
|
10791
11625
|
customer_memo?: string | null | undefined;
|
|
11626
|
+
payment_term_id?: string | null | undefined;
|
|
11627
|
+
withholding_tax?: {
|
|
11628
|
+
tax_rate: number;
|
|
11629
|
+
tax_code: string;
|
|
11630
|
+
tax_amount: number;
|
|
11631
|
+
} | null | undefined;
|
|
10792
11632
|
invoice_date: string;
|
|
10793
11633
|
due_date: string;
|
|
10794
11634
|
partner_id?: string | null | undefined;
|
|
@@ -10831,10 +11671,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10831
11671
|
description: string;
|
|
10832
11672
|
analytic_account?: string | null | undefined;
|
|
10833
11673
|
}[];
|
|
11674
|
+
start_date?: string | null | undefined;
|
|
11675
|
+
end_date?: string | null | undefined;
|
|
11676
|
+
payment_method_id?: string | null | undefined;
|
|
10834
11677
|
}, params?: {
|
|
10835
11678
|
folder_id?: string | null | undefined;
|
|
10836
11679
|
force_financial_period?: string | null | undefined;
|
|
10837
11680
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
11681
|
+
ignore_accounting_id?: boolean | undefined;
|
|
10838
11682
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
10839
11683
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10840
11684
|
invoice_number?: string | null | undefined;
|
|
@@ -10845,10 +11689,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10845
11689
|
reference?: string | null | undefined;
|
|
10846
11690
|
payment_communication?: string | null | undefined;
|
|
10847
11691
|
customer_memo?: string | null | undefined;
|
|
11692
|
+
payment_term_id?: string | null | undefined;
|
|
11693
|
+
withholding_tax?: {
|
|
11694
|
+
tax_rate: number;
|
|
11695
|
+
tax_code: string;
|
|
11696
|
+
tax_amount: number;
|
|
11697
|
+
} | null | undefined;
|
|
10848
11698
|
id?: string | null | undefined;
|
|
10849
11699
|
invoice_date: string;
|
|
10850
11700
|
due_date: string;
|
|
10851
|
-
partner_id: string;
|
|
11701
|
+
partner_id: string | null;
|
|
10852
11702
|
journal_id?: string | null | undefined;
|
|
10853
11703
|
payments?: {
|
|
10854
11704
|
id: string;
|
|
@@ -10906,8 +11756,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10906
11756
|
due_dates: {
|
|
10907
11757
|
due_date: string;
|
|
10908
11758
|
payment_method?: string | null | undefined;
|
|
11759
|
+
payment_method_id?: string | null | undefined;
|
|
10909
11760
|
amount: number;
|
|
10910
11761
|
}[] | null;
|
|
11762
|
+
attachments_info?: {
|
|
11763
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
11764
|
+
attachments: {
|
|
11765
|
+
filename?: string | null | undefined;
|
|
11766
|
+
url?: string | null | undefined;
|
|
11767
|
+
}[] | null;
|
|
11768
|
+
} | undefined;
|
|
11769
|
+
accounting_info?: {
|
|
11770
|
+
main_currency?: string | undefined;
|
|
11771
|
+
main_currency_total: number;
|
|
11772
|
+
account_number?: string | null | undefined;
|
|
11773
|
+
} | null | undefined;
|
|
11774
|
+
payment_method_id?: string | null | undefined;
|
|
10911
11775
|
lines: {
|
|
10912
11776
|
line_number: number | null;
|
|
10913
11777
|
unit_price: number;
|
|
@@ -10933,6 +11797,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10933
11797
|
reference?: string | null | undefined;
|
|
10934
11798
|
payment_communication?: string | null | undefined;
|
|
10935
11799
|
customer_memo?: string | null | undefined;
|
|
11800
|
+
payment_term_id?: string | null | undefined;
|
|
11801
|
+
withholding_tax?: {
|
|
11802
|
+
tax_rate: number;
|
|
11803
|
+
tax_code: string;
|
|
11804
|
+
tax_amount: number;
|
|
11805
|
+
} | null | undefined;
|
|
10936
11806
|
invoice_date: string;
|
|
10937
11807
|
due_date: string;
|
|
10938
11808
|
partner_id?: string | null | undefined;
|
|
@@ -10981,10 +11851,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10981
11851
|
}[];
|
|
10982
11852
|
}[] | null;
|
|
10983
11853
|
}[];
|
|
11854
|
+
start_date?: string | null | undefined;
|
|
11855
|
+
end_date?: string | null | undefined;
|
|
11856
|
+
payment_method_id?: string | null | undefined;
|
|
10984
11857
|
}, params?: {
|
|
10985
11858
|
folder_id?: string | null | undefined;
|
|
10986
11859
|
force_financial_period?: string | null | undefined;
|
|
10987
11860
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
11861
|
+
ignore_accounting_id?: boolean | undefined;
|
|
10988
11862
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
10989
11863
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
10990
11864
|
invoice_number?: string | null | undefined;
|
|
@@ -10995,10 +11869,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10995
11869
|
reference?: string | null | undefined;
|
|
10996
11870
|
payment_communication?: string | null | undefined;
|
|
10997
11871
|
customer_memo?: string | null | undefined;
|
|
11872
|
+
payment_term_id?: string | null | undefined;
|
|
11873
|
+
withholding_tax?: {
|
|
11874
|
+
tax_rate: number;
|
|
11875
|
+
tax_code: string;
|
|
11876
|
+
tax_amount: number;
|
|
11877
|
+
} | null | undefined;
|
|
10998
11878
|
id?: string | null | undefined;
|
|
10999
11879
|
invoice_date: string;
|
|
11000
11880
|
due_date: string;
|
|
11001
|
-
partner_id: string;
|
|
11881
|
+
partner_id: string | null;
|
|
11002
11882
|
journal_id?: string | null | undefined;
|
|
11003
11883
|
payments?: {
|
|
11004
11884
|
id: string;
|
|
@@ -11056,8 +11936,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11056
11936
|
due_dates: {
|
|
11057
11937
|
due_date: string;
|
|
11058
11938
|
payment_method?: string | null | undefined;
|
|
11939
|
+
payment_method_id?: string | null | undefined;
|
|
11059
11940
|
amount: number;
|
|
11060
11941
|
}[] | null;
|
|
11942
|
+
attachments_info?: {
|
|
11943
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
11944
|
+
attachments: {
|
|
11945
|
+
filename?: string | null | undefined;
|
|
11946
|
+
url?: string | null | undefined;
|
|
11947
|
+
}[] | null;
|
|
11948
|
+
} | undefined;
|
|
11949
|
+
accounting_info?: {
|
|
11950
|
+
main_currency?: string | undefined;
|
|
11951
|
+
main_currency_total: number;
|
|
11952
|
+
account_number?: string | null | undefined;
|
|
11953
|
+
} | null | undefined;
|
|
11954
|
+
payment_method_id?: string | null | undefined;
|
|
11061
11955
|
lines: {
|
|
11062
11956
|
line_number: number | null;
|
|
11063
11957
|
unit_price: number;
|
|
@@ -11099,10 +11993,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11099
11993
|
reference?: string | null | undefined;
|
|
11100
11994
|
payment_communication?: string | null | undefined;
|
|
11101
11995
|
customer_memo?: string | null | undefined;
|
|
11996
|
+
payment_term_id?: string | null | undefined;
|
|
11997
|
+
withholding_tax?: {
|
|
11998
|
+
tax_rate: number;
|
|
11999
|
+
tax_code: string;
|
|
12000
|
+
tax_amount: number;
|
|
12001
|
+
} | null | undefined;
|
|
11102
12002
|
id?: string | null | undefined;
|
|
11103
12003
|
invoice_date: string;
|
|
11104
12004
|
due_date: string;
|
|
11105
|
-
partner_id: string;
|
|
12005
|
+
partner_id: string | null;
|
|
11106
12006
|
journal_id?: string | null | undefined;
|
|
11107
12007
|
payments?: {
|
|
11108
12008
|
id: string;
|
|
@@ -11160,8 +12060,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11160
12060
|
due_dates: {
|
|
11161
12061
|
due_date: string;
|
|
11162
12062
|
payment_method?: string | null | undefined;
|
|
12063
|
+
payment_method_id?: string | null | undefined;
|
|
11163
12064
|
amount: number;
|
|
11164
12065
|
}[] | null;
|
|
12066
|
+
attachments_info?: {
|
|
12067
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12068
|
+
attachments: {
|
|
12069
|
+
filename?: string | null | undefined;
|
|
12070
|
+
url?: string | null | undefined;
|
|
12071
|
+
}[] | null;
|
|
12072
|
+
} | undefined;
|
|
12073
|
+
accounting_info?: {
|
|
12074
|
+
main_currency?: string | undefined;
|
|
12075
|
+
main_currency_total: number;
|
|
12076
|
+
account_number?: string | null | undefined;
|
|
12077
|
+
} | null | undefined;
|
|
12078
|
+
payment_method_id?: string | null | undefined;
|
|
11165
12079
|
lines: {
|
|
11166
12080
|
line_number: number | null;
|
|
11167
12081
|
unit_price: number;
|
|
@@ -11192,10 +12106,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11192
12106
|
reference?: string | null | undefined;
|
|
11193
12107
|
payment_communication?: string | null | undefined;
|
|
11194
12108
|
customer_memo?: string | null | undefined;
|
|
12109
|
+
payment_term_id?: string | null | undefined;
|
|
12110
|
+
withholding_tax?: {
|
|
12111
|
+
tax_rate: number;
|
|
12112
|
+
tax_code: string;
|
|
12113
|
+
tax_amount: number;
|
|
12114
|
+
} | null | undefined;
|
|
11195
12115
|
id?: string | null | undefined;
|
|
11196
12116
|
invoice_date: string;
|
|
11197
12117
|
due_date: string;
|
|
11198
|
-
partner_id: string;
|
|
12118
|
+
partner_id: string | null;
|
|
11199
12119
|
journal_id?: string | null | undefined;
|
|
11200
12120
|
payments?: {
|
|
11201
12121
|
id: string;
|
|
@@ -11253,8 +12173,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11253
12173
|
due_dates: {
|
|
11254
12174
|
due_date: string;
|
|
11255
12175
|
payment_method?: string | null | undefined;
|
|
12176
|
+
payment_method_id?: string | null | undefined;
|
|
11256
12177
|
amount: number;
|
|
11257
12178
|
}[] | null;
|
|
12179
|
+
attachments_info?: {
|
|
12180
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12181
|
+
attachments: {
|
|
12182
|
+
filename?: string | null | undefined;
|
|
12183
|
+
url?: string | null | undefined;
|
|
12184
|
+
}[] | null;
|
|
12185
|
+
} | undefined;
|
|
12186
|
+
accounting_info?: {
|
|
12187
|
+
main_currency?: string | undefined;
|
|
12188
|
+
main_currency_total: number;
|
|
12189
|
+
account_number?: string | null | undefined;
|
|
12190
|
+
} | null | undefined;
|
|
12191
|
+
payment_method_id?: string | null | undefined;
|
|
11258
12192
|
lines: {
|
|
11259
12193
|
line_number: number | null;
|
|
11260
12194
|
unit_price: number;
|
|
@@ -11285,10 +12219,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11285
12219
|
reference?: string | null | undefined;
|
|
11286
12220
|
payment_communication?: string | null | undefined;
|
|
11287
12221
|
customer_memo?: string | null | undefined;
|
|
12222
|
+
payment_term_id?: string | null | undefined;
|
|
12223
|
+
withholding_tax?: {
|
|
12224
|
+
tax_rate: number;
|
|
12225
|
+
tax_code: string;
|
|
12226
|
+
tax_amount: number;
|
|
12227
|
+
} | null | undefined;
|
|
11288
12228
|
id?: string | null | undefined;
|
|
11289
12229
|
invoice_date: string;
|
|
11290
12230
|
due_date: string;
|
|
11291
|
-
partner_id: string;
|
|
12231
|
+
partner_id: string | null;
|
|
11292
12232
|
journal_id?: string | null | undefined;
|
|
11293
12233
|
payments?: {
|
|
11294
12234
|
id: string;
|
|
@@ -11346,8 +12286,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11346
12286
|
due_dates: {
|
|
11347
12287
|
due_date: string;
|
|
11348
12288
|
payment_method?: string | null | undefined;
|
|
12289
|
+
payment_method_id?: string | null | undefined;
|
|
11349
12290
|
amount: number;
|
|
11350
12291
|
}[] | null;
|
|
12292
|
+
attachments_info?: {
|
|
12293
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12294
|
+
attachments: {
|
|
12295
|
+
filename?: string | null | undefined;
|
|
12296
|
+
url?: string | null | undefined;
|
|
12297
|
+
}[] | null;
|
|
12298
|
+
} | undefined;
|
|
12299
|
+
accounting_info?: {
|
|
12300
|
+
main_currency?: string | undefined;
|
|
12301
|
+
main_currency_total: number;
|
|
12302
|
+
account_number?: string | null | undefined;
|
|
12303
|
+
} | null | undefined;
|
|
12304
|
+
payment_method_id?: string | null | undefined;
|
|
11351
12305
|
lines: {
|
|
11352
12306
|
line_number: number | null;
|
|
11353
12307
|
unit_price: number;
|
|
@@ -11389,10 +12343,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11389
12343
|
reference?: string | null | undefined;
|
|
11390
12344
|
payment_communication?: string | null | undefined;
|
|
11391
12345
|
customer_memo?: string | null | undefined;
|
|
12346
|
+
payment_term_id?: string | null | undefined;
|
|
12347
|
+
withholding_tax?: {
|
|
12348
|
+
tax_rate: number;
|
|
12349
|
+
tax_code: string;
|
|
12350
|
+
tax_amount: number;
|
|
12351
|
+
} | null | undefined;
|
|
11392
12352
|
id?: string | null | undefined;
|
|
11393
12353
|
invoice_date: string;
|
|
11394
12354
|
due_date: string;
|
|
11395
|
-
partner_id: string;
|
|
12355
|
+
partner_id: string | null;
|
|
11396
12356
|
journal_id?: string | null | undefined;
|
|
11397
12357
|
payments?: {
|
|
11398
12358
|
id: string;
|
|
@@ -11450,8 +12410,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11450
12410
|
due_dates: {
|
|
11451
12411
|
due_date: string;
|
|
11452
12412
|
payment_method?: string | null | undefined;
|
|
12413
|
+
payment_method_id?: string | null | undefined;
|
|
11453
12414
|
amount: number;
|
|
11454
12415
|
}[] | null;
|
|
12416
|
+
attachments_info?: {
|
|
12417
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12418
|
+
attachments: {
|
|
12419
|
+
filename?: string | null | undefined;
|
|
12420
|
+
url?: string | null | undefined;
|
|
12421
|
+
}[] | null;
|
|
12422
|
+
} | undefined;
|
|
12423
|
+
accounting_info?: {
|
|
12424
|
+
main_currency?: string | undefined;
|
|
12425
|
+
main_currency_total: number;
|
|
12426
|
+
account_number?: string | null | undefined;
|
|
12427
|
+
} | null | undefined;
|
|
12428
|
+
payment_method_id?: string | null | undefined;
|
|
11455
12429
|
lines: {
|
|
11456
12430
|
line_number: number | null;
|
|
11457
12431
|
unit_price: number;
|
|
@@ -11599,7 +12573,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11599
12573
|
folder_id?: string | null | undefined;
|
|
11600
12574
|
updated_after?: string | null | undefined;
|
|
11601
12575
|
unposted_allowed: "true" | "false";
|
|
11602
|
-
journal_id
|
|
12576
|
+
journal_id?: string | null | undefined;
|
|
11603
12577
|
partner_id?: string | null | undefined;
|
|
11604
12578
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
11605
12579
|
reference?: string | null | undefined;
|
|
@@ -11613,9 +12587,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11613
12587
|
due_dates: {
|
|
11614
12588
|
due_date: string;
|
|
11615
12589
|
payment_method?: string | null | undefined;
|
|
12590
|
+
payment_method_id?: string | null | undefined;
|
|
11616
12591
|
debit: number | null;
|
|
11617
12592
|
credit: number | null;
|
|
11618
12593
|
}[] | null;
|
|
12594
|
+
attachments_info?: {
|
|
12595
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12596
|
+
attachments: {
|
|
12597
|
+
filename?: string | null | undefined;
|
|
12598
|
+
url?: string | null | undefined;
|
|
12599
|
+
}[] | null;
|
|
12600
|
+
} | undefined;
|
|
11619
12601
|
items: {
|
|
11620
12602
|
account_number: string;
|
|
11621
12603
|
partner_id?: string | null | undefined;
|
|
@@ -11638,7 +12620,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11638
12620
|
folder_id?: string | null | undefined;
|
|
11639
12621
|
updated_after?: string | null | undefined;
|
|
11640
12622
|
unposted_allowed: "true" | "false";
|
|
11641
|
-
journal_id
|
|
12623
|
+
journal_id?: string | null | undefined;
|
|
11642
12624
|
partner_id?: string | null | undefined;
|
|
11643
12625
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
11644
12626
|
reference?: string | null | undefined;
|
|
@@ -11652,9 +12634,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11652
12634
|
due_dates: {
|
|
11653
12635
|
due_date: string;
|
|
11654
12636
|
payment_method?: string | null | undefined;
|
|
12637
|
+
payment_method_id?: string | null | undefined;
|
|
11655
12638
|
debit: number | null;
|
|
11656
12639
|
credit: number | null;
|
|
11657
12640
|
}[] | null;
|
|
12641
|
+
attachments_info?: {
|
|
12642
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
12643
|
+
attachments: {
|
|
12644
|
+
filename?: string | null | undefined;
|
|
12645
|
+
url?: string | null | undefined;
|
|
12646
|
+
}[] | null;
|
|
12647
|
+
} | undefined;
|
|
11658
12648
|
items: {
|
|
11659
12649
|
account_number: string;
|
|
11660
12650
|
partner_id?: string | null | undefined;
|
|
@@ -11744,6 +12734,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11744
12734
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
11745
12735
|
id: string;
|
|
11746
12736
|
code?: string | null | undefined;
|
|
12737
|
+
active: boolean | null;
|
|
11747
12738
|
label: string;
|
|
11748
12739
|
scope: "unknown" | "nat" | "eu" | "int" | null;
|
|
11749
12740
|
rate: number;
|
|
@@ -11751,6 +12742,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11751
12742
|
deductible_account?: string | null | undefined;
|
|
11752
12743
|
payable_account?: string | null | undefined;
|
|
11753
12744
|
reversed: boolean | null;
|
|
12745
|
+
withholding_tax: boolean | null;
|
|
11754
12746
|
country?: string | null | undefined;
|
|
11755
12747
|
}[]>;
|
|
11756
12748
|
getMiscOperations(params?: {
|
|
@@ -11853,12 +12845,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11853
12845
|
getChartOfAccounts(params?: {
|
|
11854
12846
|
folder_id?: string | null | undefined;
|
|
11855
12847
|
classes?: string | null | undefined;
|
|
11856
|
-
type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
|
|
12848
|
+
type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
|
|
11857
12849
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
11858
12850
|
number: string;
|
|
11859
12851
|
name: string;
|
|
11860
12852
|
active: boolean | null;
|
|
11861
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
12853
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
12854
|
+
scheme_ids?: string[] | null | undefined;
|
|
12855
|
+
accounting_category?: string | null | undefined;
|
|
11862
12856
|
}[]>;
|
|
11863
12857
|
getBalanceOfAccounts(filter: {
|
|
11864
12858
|
accounts: string[];
|
|
@@ -11934,6 +12928,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11934
12928
|
account: string;
|
|
11935
12929
|
amount: number;
|
|
11936
12930
|
description?: string | null | undefined;
|
|
12931
|
+
automated_matching_number?: string | null | undefined;
|
|
11937
12932
|
}[];
|
|
11938
12933
|
pdf?: string | null | undefined;
|
|
11939
12934
|
}, params?: {
|
|
@@ -11952,6 +12947,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11952
12947
|
account: string;
|
|
11953
12948
|
amount: number;
|
|
11954
12949
|
description?: string | null | undefined;
|
|
12950
|
+
automated_matching_number?: string | null | undefined;
|
|
11955
12951
|
counterpart_account: string;
|
|
11956
12952
|
}[];
|
|
11957
12953
|
}>;
|
|
@@ -11979,6 +12975,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11979
12975
|
}[];
|
|
11980
12976
|
}[] | null;
|
|
11981
12977
|
tax_code?: string | null | undefined;
|
|
12978
|
+
tax_info?: {
|
|
12979
|
+
tax_code: string;
|
|
12980
|
+
tax_amount: number;
|
|
12981
|
+
vat_account?: string | null | undefined;
|
|
12982
|
+
reversed_vat_account?: string | null | undefined;
|
|
12983
|
+
description?: string | null | undefined;
|
|
12984
|
+
} | null | undefined;
|
|
11982
12985
|
account_info?: {
|
|
11983
12986
|
account_number: string;
|
|
11984
12987
|
account_name: string;
|
|
@@ -11991,6 +12994,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11991
12994
|
}, params?: {
|
|
11992
12995
|
folder_id?: string | null | undefined;
|
|
11993
12996
|
force_currency_exchange?: "true" | "false" | null | undefined;
|
|
12997
|
+
ignore_accounting_id?: boolean | undefined;
|
|
11994
12998
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
11995
12999
|
reference?: string | null | undefined;
|
|
11996
13000
|
due_date?: string | null | undefined;
|
|
@@ -12003,9 +13007,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12003
13007
|
due_dates: {
|
|
12004
13008
|
due_date: string;
|
|
12005
13009
|
payment_method?: string | null | undefined;
|
|
13010
|
+
payment_method_id?: string | null | undefined;
|
|
12006
13011
|
debit: number | null;
|
|
12007
13012
|
credit: number | null;
|
|
12008
13013
|
}[] | null;
|
|
13014
|
+
attachments_info?: {
|
|
13015
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
13016
|
+
attachments: {
|
|
13017
|
+
filename?: string | null | undefined;
|
|
13018
|
+
url?: string | null | undefined;
|
|
13019
|
+
}[] | null;
|
|
13020
|
+
} | undefined;
|
|
12009
13021
|
items: {
|
|
12010
13022
|
account_number: string;
|
|
12011
13023
|
partner_id?: string | null | undefined;
|
|
@@ -12121,14 +13133,35 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12121
13133
|
createLedgerAccount(account: {
|
|
12122
13134
|
name: string;
|
|
12123
13135
|
number: string;
|
|
12124
|
-
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
13136
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
|
|
12125
13137
|
}, params?: {
|
|
12126
13138
|
folder_id?: string | null | undefined;
|
|
12127
13139
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
12128
13140
|
number: string;
|
|
12129
13141
|
name: string;
|
|
12130
13142
|
active: boolean | null;
|
|
12131
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
13143
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
13144
|
+
scheme_ids?: string[] | null | undefined;
|
|
13145
|
+
accounting_category?: string | null | undefined;
|
|
13146
|
+
}>;
|
|
13147
|
+
getBankAccounts(params?: {
|
|
13148
|
+
folder_id?: string | null | undefined;
|
|
13149
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
13150
|
+
items: {
|
|
13151
|
+
id: string;
|
|
13152
|
+
code?: string | null | undefined;
|
|
13153
|
+
currency?: string | null | undefined;
|
|
13154
|
+
account_name?: string | null | undefined;
|
|
13155
|
+
account_number?: string | null | undefined;
|
|
13156
|
+
iban?: string | null | undefined;
|
|
13157
|
+
bank_name?: string | null | undefined;
|
|
13158
|
+
journal_id?: string | null | undefined;
|
|
13159
|
+
ledger_account?: string | null | undefined;
|
|
13160
|
+
unallocated_account?: string | null | undefined;
|
|
13161
|
+
}[];
|
|
13162
|
+
total: number;
|
|
13163
|
+
page: number;
|
|
13164
|
+
size: number;
|
|
12132
13165
|
}>;
|
|
12133
13166
|
createBankAccount(bankAccount: {
|
|
12134
13167
|
code: string;
|
|
@@ -12151,6 +13184,45 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12151
13184
|
ledger_account?: string | null | undefined;
|
|
12152
13185
|
unallocated_account?: string | null | undefined;
|
|
12153
13186
|
}>;
|
|
13187
|
+
createBankTransactions(bankStatement: {
|
|
13188
|
+
bank_statement_date: string;
|
|
13189
|
+
bank_account_id: string;
|
|
13190
|
+
external_bank_statement_id: string;
|
|
13191
|
+
opening_balance?: number | null | undefined;
|
|
13192
|
+
pdf?: string | null | undefined;
|
|
13193
|
+
items: {
|
|
13194
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
13195
|
+
account?: string | null | undefined;
|
|
13196
|
+
description?: string | null | undefined;
|
|
13197
|
+
external_transaction_id?: string | null | undefined;
|
|
13198
|
+
date: string;
|
|
13199
|
+
amount: number;
|
|
13200
|
+
fee_amount: number | null;
|
|
13201
|
+
tax_amount: number | null;
|
|
13202
|
+
currency: string;
|
|
13203
|
+
currency_exchange_rate: number | null;
|
|
13204
|
+
}[];
|
|
13205
|
+
}, params?: {
|
|
13206
|
+
folder_id?: string | null | undefined;
|
|
13207
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
13208
|
+
bank_statement_date: string;
|
|
13209
|
+
bank_account_id: string;
|
|
13210
|
+
id?: string | null | undefined;
|
|
13211
|
+
external_bank_statement_id?: string | null | undefined;
|
|
13212
|
+
items: {
|
|
13213
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
13214
|
+
account?: string | null | undefined;
|
|
13215
|
+
description?: string | null | undefined;
|
|
13216
|
+
external_transaction_id?: string | null | undefined;
|
|
13217
|
+
date: string;
|
|
13218
|
+
amount: number;
|
|
13219
|
+
fee_amount: number | null;
|
|
13220
|
+
tax_amount: number | null;
|
|
13221
|
+
currency: string;
|
|
13222
|
+
currency_exchange_rate: number | null;
|
|
13223
|
+
id?: string | null | undefined;
|
|
13224
|
+
}[];
|
|
13225
|
+
}>;
|
|
12154
13226
|
getJournalEntry(journalEntryId: string, params?: {
|
|
12155
13227
|
folder_id?: string | null | undefined;
|
|
12156
13228
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -12165,9 +13237,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12165
13237
|
due_dates: {
|
|
12166
13238
|
due_date: string;
|
|
12167
13239
|
payment_method?: string | null | undefined;
|
|
13240
|
+
payment_method_id?: string | null | undefined;
|
|
12168
13241
|
debit: number | null;
|
|
12169
13242
|
credit: number | null;
|
|
12170
13243
|
}[] | null;
|
|
13244
|
+
attachments_info?: {
|
|
13245
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
13246
|
+
attachments: {
|
|
13247
|
+
filename?: string | null | undefined;
|
|
13248
|
+
url?: string | null | undefined;
|
|
13249
|
+
}[] | null;
|
|
13250
|
+
} | undefined;
|
|
12171
13251
|
items: {
|
|
12172
13252
|
account_number: string;
|
|
12173
13253
|
partner_id?: string | null | undefined;
|
|
@@ -12202,6 +13282,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12202
13282
|
page: number;
|
|
12203
13283
|
size: number;
|
|
12204
13284
|
}>;
|
|
13285
|
+
getPaymentTerms(params?: {
|
|
13286
|
+
folder_id?: string | null | undefined;
|
|
13287
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
13288
|
+
items: {
|
|
13289
|
+
id: string;
|
|
13290
|
+
name?: string | null | undefined;
|
|
13291
|
+
}[];
|
|
13292
|
+
total: number;
|
|
13293
|
+
page: number;
|
|
13294
|
+
size: number;
|
|
13295
|
+
}>;
|
|
13296
|
+
getSchemes(params?: {
|
|
13297
|
+
folder_id?: string | null | undefined;
|
|
13298
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
13299
|
+
items: {
|
|
13300
|
+
id: string;
|
|
13301
|
+
code: string;
|
|
13302
|
+
name: string;
|
|
13303
|
+
}[];
|
|
13304
|
+
total: number;
|
|
13305
|
+
page: number;
|
|
13306
|
+
size: number;
|
|
13307
|
+
}>;
|
|
12205
13308
|
createInvoicePayment(body: {
|
|
12206
13309
|
date: string;
|
|
12207
13310
|
payment_method_id: string;
|
|
@@ -12221,6 +13324,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12221
13324
|
};
|
|
12222
13325
|
content?: undefined;
|
|
12223
13326
|
}>;
|
|
13327
|
+
exportFec(params: {
|
|
13328
|
+
folder_id?: string | null | undefined;
|
|
13329
|
+
date_from: string;
|
|
13330
|
+
date_to: string;
|
|
13331
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
13332
|
+
JournalCode: string;
|
|
13333
|
+
JournalLib: string;
|
|
13334
|
+
EcritureNum: string;
|
|
13335
|
+
EcritureDate: string;
|
|
13336
|
+
CompteNum: string;
|
|
13337
|
+
CompteLib: string;
|
|
13338
|
+
CompAuxNum: string;
|
|
13339
|
+
CompAuxLib: string;
|
|
13340
|
+
PieceRef: string;
|
|
13341
|
+
PieceDate: string;
|
|
13342
|
+
Debit: number;
|
|
13343
|
+
Credit: number;
|
|
13344
|
+
EcritureLet: string;
|
|
13345
|
+
DateLet: string | null;
|
|
13346
|
+
ValidDate: string | null;
|
|
13347
|
+
Montantdevise: number;
|
|
13348
|
+
Idevise: string;
|
|
13349
|
+
}[]>;
|
|
12224
13350
|
}>;
|
|
12225
13351
|
invoicing: import("../types/api").ApiFor<{
|
|
12226
13352
|
getInvoices(params?: {
|
|
@@ -12230,6 +13356,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12230
13356
|
updated_after?: string | null | undefined;
|
|
12231
13357
|
include_invoice_lines?: "true" | "false" | null | undefined;
|
|
12232
13358
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
13359
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
12233
13360
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
12234
13361
|
id: string;
|
|
12235
13362
|
source_ref: {
|
|
@@ -12259,6 +13386,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12259
13386
|
product_id?: string | null | undefined;
|
|
12260
13387
|
product_code?: string | null | undefined;
|
|
12261
13388
|
product_name?: string | null | undefined;
|
|
13389
|
+
analytic_distribution: {
|
|
13390
|
+
analytic_plan_code: string;
|
|
13391
|
+
analytic_accounts: {
|
|
13392
|
+
analytic_account_code: string;
|
|
13393
|
+
analytic_account_name: string;
|
|
13394
|
+
percentage: number;
|
|
13395
|
+
}[];
|
|
13396
|
+
}[] | null;
|
|
12262
13397
|
}[];
|
|
12263
13398
|
partner_id?: string | null | undefined;
|
|
12264
13399
|
invoice_number?: string | null | undefined;
|
|
@@ -12298,6 +13433,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12298
13433
|
}[]>;
|
|
12299
13434
|
getInvoiceById(invoiceId: string, params?: {
|
|
12300
13435
|
include_pdf?: "true" | "false" | null | undefined;
|
|
13436
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
12301
13437
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
12302
13438
|
id: string;
|
|
12303
13439
|
source_ref: {
|
|
@@ -12327,6 +13463,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12327
13463
|
product_id?: string | null | undefined;
|
|
12328
13464
|
product_code?: string | null | undefined;
|
|
12329
13465
|
product_name?: string | null | undefined;
|
|
13466
|
+
analytic_distribution: {
|
|
13467
|
+
analytic_plan_code: string;
|
|
13468
|
+
analytic_accounts: {
|
|
13469
|
+
analytic_account_code: string;
|
|
13470
|
+
analytic_account_name: string;
|
|
13471
|
+
percentage: number;
|
|
13472
|
+
}[];
|
|
13473
|
+
}[] | null;
|
|
12330
13474
|
}[];
|
|
12331
13475
|
partner_id?: string | null | undefined;
|
|
12332
13476
|
invoice_number?: string | null | undefined;
|
|
@@ -12448,6 +13592,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12448
13592
|
product_id?: string | null | undefined;
|
|
12449
13593
|
product_code?: string | null | undefined;
|
|
12450
13594
|
product_name?: string | null | undefined;
|
|
13595
|
+
analytic_distribution: {
|
|
13596
|
+
analytic_plan_code: string;
|
|
13597
|
+
analytic_accounts: {
|
|
13598
|
+
analytic_account_code: string;
|
|
13599
|
+
analytic_account_name: string;
|
|
13600
|
+
percentage: number;
|
|
13601
|
+
}[];
|
|
13602
|
+
}[] | null;
|
|
12451
13603
|
}[];
|
|
12452
13604
|
partner_id?: string | null | undefined;
|
|
12453
13605
|
invoice_number?: string | null | undefined;
|
|
@@ -14026,14 +15178,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14026
15178
|
reference: string;
|
|
14027
15179
|
reference_type: string;
|
|
14028
15180
|
holder_name?: string | null | undefined;
|
|
15181
|
+
active: boolean | null;
|
|
14029
15182
|
}[]>;
|
|
14030
|
-
getAccountTransactions(
|
|
15183
|
+
getAccountTransactions(params: {
|
|
14031
15184
|
date_from?: string | null | undefined;
|
|
14032
15185
|
date_to?: string | null | undefined;
|
|
15186
|
+
updated_after?: string | null | undefined;
|
|
15187
|
+
account_id: string;
|
|
14033
15188
|
date_type?: "value_date" | "execution_date" | null | undefined;
|
|
14034
|
-
}
|
|
15189
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
14035
15190
|
id: string;
|
|
14036
15191
|
amount: number;
|
|
15192
|
+
tax_amount?: number | null | undefined;
|
|
14037
15193
|
currency: string;
|
|
14038
15194
|
description?: string | null | undefined;
|
|
14039
15195
|
additional_information?: string | null | undefined;
|
|
@@ -14043,6 +15199,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14043
15199
|
creation_date: string;
|
|
14044
15200
|
value_date: string;
|
|
14045
15201
|
execution_date: string;
|
|
15202
|
+
internal_transaction: boolean | null;
|
|
15203
|
+
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;
|
|
15204
|
+
last_update_on?: string | null | undefined;
|
|
15205
|
+
status?: "completed" | "pending" | "declined" | null | undefined;
|
|
15206
|
+
attachments_info?: {
|
|
15207
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
15208
|
+
attachments: {
|
|
15209
|
+
filename?: string | null | undefined;
|
|
15210
|
+
url?: string | null | undefined;
|
|
15211
|
+
}[] | null;
|
|
15212
|
+
} | undefined;
|
|
14046
15213
|
}[]>;
|
|
14047
15214
|
getAccountCounterparts(params?: {
|
|
14048
15215
|
date_from?: string | null | undefined;
|
|
@@ -14053,6 +15220,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14053
15220
|
reference?: string | null | undefined;
|
|
14054
15221
|
details?: string | null | undefined;
|
|
14055
15222
|
}[]>;
|
|
15223
|
+
getAttachments(params: {
|
|
15224
|
+
transaction_id: string;
|
|
15225
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
15226
|
+
items: {
|
|
15227
|
+
id: string;
|
|
15228
|
+
base64_string: string;
|
|
15229
|
+
}[];
|
|
15230
|
+
total: number;
|
|
15231
|
+
page: number;
|
|
15232
|
+
size: number;
|
|
15233
|
+
}>;
|
|
14056
15234
|
}>;
|
|
14057
15235
|
getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
|
|
14058
15236
|
data: {
|
|
@@ -14092,6 +15270,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14092
15270
|
source_id?: string | null | undefined;
|
|
14093
15271
|
target_id?: string | null | undefined;
|
|
14094
15272
|
}[];
|
|
15273
|
+
hidden_source_ids: string[];
|
|
14095
15274
|
sub_mapping_name: string;
|
|
14096
15275
|
sub_mapping_description?: string | null | undefined;
|
|
14097
15276
|
}[] | null | undefined;
|
|
@@ -14255,7 +15434,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14255
15434
|
value: string;
|
|
14256
15435
|
}[] | null | undefined;
|
|
14257
15436
|
country?: string | null | undefined;
|
|
14258
|
-
|
|
15437
|
+
redirect: boolean | null;
|
|
15438
|
+
} | null | undefined) => Promise<{
|
|
14259
15439
|
url: string;
|
|
14260
15440
|
}>;
|
|
14261
15441
|
updateConnection: (connectionId: string, body?: {
|
|
@@ -14274,6 +15454,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14274
15454
|
};
|
|
14275
15455
|
content?: undefined;
|
|
14276
15456
|
}>;
|
|
15457
|
+
getTransactionByClientRequestId: (connectionId: string, params: {
|
|
15458
|
+
client_request_id: string;
|
|
15459
|
+
}) => Promise<{
|
|
15460
|
+
created_on: string;
|
|
15461
|
+
method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
|
|
15462
|
+
route: string;
|
|
15463
|
+
status_code: number;
|
|
15464
|
+
created_entity_id?: string | null | undefined;
|
|
15465
|
+
}>;
|
|
14277
15466
|
enableFlow: (syncId: string, flowId: string, body: {
|
|
14278
15467
|
integrationids: string[];
|
|
14279
15468
|
triggerid: string | null;
|
|
@@ -14879,6 +16068,30 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14879
16068
|
country?: string | null | undefined;
|
|
14880
16069
|
}[] | null | undefined;
|
|
14881
16070
|
}[]>;
|
|
16071
|
+
getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
16072
|
+
id: string;
|
|
16073
|
+
source_ref: {
|
|
16074
|
+
id?: string | null | undefined;
|
|
16075
|
+
model?: string | null | undefined;
|
|
16076
|
+
};
|
|
16077
|
+
first_name?: string | null | undefined;
|
|
16078
|
+
last_name?: string | null | undefined;
|
|
16079
|
+
company_name?: string | null | undefined;
|
|
16080
|
+
phone?: string | null | undefined;
|
|
16081
|
+
email?: string | null | undefined;
|
|
16082
|
+
account_number?: string | null | undefined;
|
|
16083
|
+
created_on?: string | null | undefined;
|
|
16084
|
+
addresses?: {
|
|
16085
|
+
address_type?: string | null | undefined;
|
|
16086
|
+
name?: string | null | undefined;
|
|
16087
|
+
street?: string | null | undefined;
|
|
16088
|
+
number?: string | null | undefined;
|
|
16089
|
+
box?: string | null | undefined;
|
|
16090
|
+
city?: string | null | undefined;
|
|
16091
|
+
postal_code?: string | null | undefined;
|
|
16092
|
+
country?: string | null | undefined;
|
|
16093
|
+
}[] | null | undefined;
|
|
16094
|
+
}>;
|
|
14882
16095
|
getInvoices(params?: {
|
|
14883
16096
|
date_from: string;
|
|
14884
16097
|
date_to: string;
|
|
@@ -14981,6 +16194,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14981
16194
|
untaxed_amount: number;
|
|
14982
16195
|
total: number;
|
|
14983
16196
|
}[]>;
|
|
16197
|
+
getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
16198
|
+
items: {
|
|
16199
|
+
id: string;
|
|
16200
|
+
source_ref: {
|
|
16201
|
+
id?: string | null | undefined;
|
|
16202
|
+
model?: string | null | undefined;
|
|
16203
|
+
};
|
|
16204
|
+
label?: string | null | undefined;
|
|
16205
|
+
rate?: number | null | undefined;
|
|
16206
|
+
}[];
|
|
16207
|
+
total: number;
|
|
16208
|
+
page: number;
|
|
16209
|
+
size: number;
|
|
16210
|
+
}>;
|
|
14984
16211
|
}>;
|
|
14985
16212
|
payment: import("../types/api").ApiFor<{
|
|
14986
16213
|
getPayments(params: {
|
|
@@ -15532,6 +16759,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15532
16759
|
reference?: string | null | undefined;
|
|
15533
16760
|
payment_communication?: string | null | undefined;
|
|
15534
16761
|
customer_memo?: string | null | undefined;
|
|
16762
|
+
payment_term_id?: string | null | undefined;
|
|
16763
|
+
withholding_tax?: {
|
|
16764
|
+
tax_rate: number;
|
|
16765
|
+
tax_code: string;
|
|
16766
|
+
tax_amount: number;
|
|
16767
|
+
} | null | undefined;
|
|
15535
16768
|
invoice_date: string;
|
|
15536
16769
|
due_date: string;
|
|
15537
16770
|
partner_id?: string | null | undefined;
|
|
@@ -15574,10 +16807,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15574
16807
|
description: string;
|
|
15575
16808
|
analytic_account?: string | null | undefined;
|
|
15576
16809
|
}[];
|
|
16810
|
+
start_date?: string | null | undefined;
|
|
16811
|
+
end_date?: string | null | undefined;
|
|
16812
|
+
payment_method_id?: string | null | undefined;
|
|
15577
16813
|
}, params?: {
|
|
15578
16814
|
folder_id?: string | null | undefined;
|
|
15579
16815
|
force_financial_period?: string | null | undefined;
|
|
15580
16816
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
16817
|
+
ignore_accounting_id?: boolean | undefined;
|
|
15581
16818
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
15582
16819
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
15583
16820
|
invoice_number?: string | null | undefined;
|
|
@@ -15588,10 +16825,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15588
16825
|
reference?: string | null | undefined;
|
|
15589
16826
|
payment_communication?: string | null | undefined;
|
|
15590
16827
|
customer_memo?: string | null | undefined;
|
|
16828
|
+
payment_term_id?: string | null | undefined;
|
|
16829
|
+
withholding_tax?: {
|
|
16830
|
+
tax_rate: number;
|
|
16831
|
+
tax_code: string;
|
|
16832
|
+
tax_amount: number;
|
|
16833
|
+
} | null | undefined;
|
|
15591
16834
|
id?: string | null | undefined;
|
|
15592
16835
|
invoice_date: string;
|
|
15593
16836
|
due_date: string;
|
|
15594
|
-
partner_id: string;
|
|
16837
|
+
partner_id: string | null;
|
|
15595
16838
|
journal_id?: string | null | undefined;
|
|
15596
16839
|
payments?: {
|
|
15597
16840
|
id: string;
|
|
@@ -15649,8 +16892,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15649
16892
|
due_dates: {
|
|
15650
16893
|
due_date: string;
|
|
15651
16894
|
payment_method?: string | null | undefined;
|
|
16895
|
+
payment_method_id?: string | null | undefined;
|
|
15652
16896
|
amount: number;
|
|
15653
16897
|
}[] | null;
|
|
16898
|
+
attachments_info?: {
|
|
16899
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
16900
|
+
attachments: {
|
|
16901
|
+
filename?: string | null | undefined;
|
|
16902
|
+
url?: string | null | undefined;
|
|
16903
|
+
}[] | null;
|
|
16904
|
+
} | undefined;
|
|
16905
|
+
accounting_info?: {
|
|
16906
|
+
main_currency?: string | undefined;
|
|
16907
|
+
main_currency_total: number;
|
|
16908
|
+
account_number?: string | null | undefined;
|
|
16909
|
+
} | null | undefined;
|
|
16910
|
+
payment_method_id?: string | null | undefined;
|
|
15654
16911
|
lines: {
|
|
15655
16912
|
line_number: number | null;
|
|
15656
16913
|
unit_price: number;
|
|
@@ -15676,6 +16933,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15676
16933
|
reference?: string | null | undefined;
|
|
15677
16934
|
payment_communication?: string | null | undefined;
|
|
15678
16935
|
customer_memo?: string | null | undefined;
|
|
16936
|
+
payment_term_id?: string | null | undefined;
|
|
16937
|
+
withholding_tax?: {
|
|
16938
|
+
tax_rate: number;
|
|
16939
|
+
tax_code: string;
|
|
16940
|
+
tax_amount: number;
|
|
16941
|
+
} | null | undefined;
|
|
15679
16942
|
invoice_date: string;
|
|
15680
16943
|
due_date: string;
|
|
15681
16944
|
partner_id?: string | null | undefined;
|
|
@@ -15724,10 +16987,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15724
16987
|
}[];
|
|
15725
16988
|
}[] | null;
|
|
15726
16989
|
}[];
|
|
16990
|
+
start_date?: string | null | undefined;
|
|
16991
|
+
end_date?: string | null | undefined;
|
|
16992
|
+
payment_method_id?: string | null | undefined;
|
|
15727
16993
|
}, params?: {
|
|
15728
16994
|
folder_id?: string | null | undefined;
|
|
15729
16995
|
force_financial_period?: string | null | undefined;
|
|
15730
16996
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
16997
|
+
ignore_accounting_id?: boolean | undefined;
|
|
15731
16998
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
15732
16999
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
15733
17000
|
invoice_number?: string | null | undefined;
|
|
@@ -15738,10 +17005,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15738
17005
|
reference?: string | null | undefined;
|
|
15739
17006
|
payment_communication?: string | null | undefined;
|
|
15740
17007
|
customer_memo?: string | null | undefined;
|
|
17008
|
+
payment_term_id?: string | null | undefined;
|
|
17009
|
+
withholding_tax?: {
|
|
17010
|
+
tax_rate: number;
|
|
17011
|
+
tax_code: string;
|
|
17012
|
+
tax_amount: number;
|
|
17013
|
+
} | null | undefined;
|
|
15741
17014
|
id?: string | null | undefined;
|
|
15742
17015
|
invoice_date: string;
|
|
15743
17016
|
due_date: string;
|
|
15744
|
-
partner_id: string;
|
|
17017
|
+
partner_id: string | null;
|
|
15745
17018
|
journal_id?: string | null | undefined;
|
|
15746
17019
|
payments?: {
|
|
15747
17020
|
id: string;
|
|
@@ -15799,8 +17072,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15799
17072
|
due_dates: {
|
|
15800
17073
|
due_date: string;
|
|
15801
17074
|
payment_method?: string | null | undefined;
|
|
17075
|
+
payment_method_id?: string | null | undefined;
|
|
15802
17076
|
amount: number;
|
|
15803
17077
|
}[] | null;
|
|
17078
|
+
attachments_info?: {
|
|
17079
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17080
|
+
attachments: {
|
|
17081
|
+
filename?: string | null | undefined;
|
|
17082
|
+
url?: string | null | undefined;
|
|
17083
|
+
}[] | null;
|
|
17084
|
+
} | undefined;
|
|
17085
|
+
accounting_info?: {
|
|
17086
|
+
main_currency?: string | undefined;
|
|
17087
|
+
main_currency_total: number;
|
|
17088
|
+
account_number?: string | null | undefined;
|
|
17089
|
+
} | null | undefined;
|
|
17090
|
+
payment_method_id?: string | null | undefined;
|
|
15804
17091
|
lines: {
|
|
15805
17092
|
line_number: number | null;
|
|
15806
17093
|
unit_price: number;
|
|
@@ -15842,10 +17129,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15842
17129
|
reference?: string | null | undefined;
|
|
15843
17130
|
payment_communication?: string | null | undefined;
|
|
15844
17131
|
customer_memo?: string | null | undefined;
|
|
17132
|
+
payment_term_id?: string | null | undefined;
|
|
17133
|
+
withholding_tax?: {
|
|
17134
|
+
tax_rate: number;
|
|
17135
|
+
tax_code: string;
|
|
17136
|
+
tax_amount: number;
|
|
17137
|
+
} | null | undefined;
|
|
15845
17138
|
id?: string | null | undefined;
|
|
15846
17139
|
invoice_date: string;
|
|
15847
17140
|
due_date: string;
|
|
15848
|
-
partner_id: string;
|
|
17141
|
+
partner_id: string | null;
|
|
15849
17142
|
journal_id?: string | null | undefined;
|
|
15850
17143
|
payments?: {
|
|
15851
17144
|
id: string;
|
|
@@ -15903,8 +17196,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15903
17196
|
due_dates: {
|
|
15904
17197
|
due_date: string;
|
|
15905
17198
|
payment_method?: string | null | undefined;
|
|
17199
|
+
payment_method_id?: string | null | undefined;
|
|
15906
17200
|
amount: number;
|
|
15907
17201
|
}[] | null;
|
|
17202
|
+
attachments_info?: {
|
|
17203
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17204
|
+
attachments: {
|
|
17205
|
+
filename?: string | null | undefined;
|
|
17206
|
+
url?: string | null | undefined;
|
|
17207
|
+
}[] | null;
|
|
17208
|
+
} | undefined;
|
|
17209
|
+
accounting_info?: {
|
|
17210
|
+
main_currency?: string | undefined;
|
|
17211
|
+
main_currency_total: number;
|
|
17212
|
+
account_number?: string | null | undefined;
|
|
17213
|
+
} | null | undefined;
|
|
17214
|
+
payment_method_id?: string | null | undefined;
|
|
15908
17215
|
lines: {
|
|
15909
17216
|
line_number: number | null;
|
|
15910
17217
|
unit_price: number;
|
|
@@ -15935,10 +17242,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15935
17242
|
reference?: string | null | undefined;
|
|
15936
17243
|
payment_communication?: string | null | undefined;
|
|
15937
17244
|
customer_memo?: string | null | undefined;
|
|
17245
|
+
payment_term_id?: string | null | undefined;
|
|
17246
|
+
withholding_tax?: {
|
|
17247
|
+
tax_rate: number;
|
|
17248
|
+
tax_code: string;
|
|
17249
|
+
tax_amount: number;
|
|
17250
|
+
} | null | undefined;
|
|
15938
17251
|
id?: string | null | undefined;
|
|
15939
17252
|
invoice_date: string;
|
|
15940
17253
|
due_date: string;
|
|
15941
|
-
partner_id: string;
|
|
17254
|
+
partner_id: string | null;
|
|
15942
17255
|
journal_id?: string | null | undefined;
|
|
15943
17256
|
payments?: {
|
|
15944
17257
|
id: string;
|
|
@@ -15996,8 +17309,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15996
17309
|
due_dates: {
|
|
15997
17310
|
due_date: string;
|
|
15998
17311
|
payment_method?: string | null | undefined;
|
|
17312
|
+
payment_method_id?: string | null | undefined;
|
|
15999
17313
|
amount: number;
|
|
16000
17314
|
}[] | null;
|
|
17315
|
+
attachments_info?: {
|
|
17316
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17317
|
+
attachments: {
|
|
17318
|
+
filename?: string | null | undefined;
|
|
17319
|
+
url?: string | null | undefined;
|
|
17320
|
+
}[] | null;
|
|
17321
|
+
} | undefined;
|
|
17322
|
+
accounting_info?: {
|
|
17323
|
+
main_currency?: string | undefined;
|
|
17324
|
+
main_currency_total: number;
|
|
17325
|
+
account_number?: string | null | undefined;
|
|
17326
|
+
} | null | undefined;
|
|
17327
|
+
payment_method_id?: string | null | undefined;
|
|
16001
17328
|
lines: {
|
|
16002
17329
|
line_number: number | null;
|
|
16003
17330
|
unit_price: number;
|
|
@@ -16028,10 +17355,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16028
17355
|
reference?: string | null | undefined;
|
|
16029
17356
|
payment_communication?: string | null | undefined;
|
|
16030
17357
|
customer_memo?: string | null | undefined;
|
|
17358
|
+
payment_term_id?: string | null | undefined;
|
|
17359
|
+
withholding_tax?: {
|
|
17360
|
+
tax_rate: number;
|
|
17361
|
+
tax_code: string;
|
|
17362
|
+
tax_amount: number;
|
|
17363
|
+
} | null | undefined;
|
|
16031
17364
|
id?: string | null | undefined;
|
|
16032
17365
|
invoice_date: string;
|
|
16033
17366
|
due_date: string;
|
|
16034
|
-
partner_id: string;
|
|
17367
|
+
partner_id: string | null;
|
|
16035
17368
|
journal_id?: string | null | undefined;
|
|
16036
17369
|
payments?: {
|
|
16037
17370
|
id: string;
|
|
@@ -16089,8 +17422,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16089
17422
|
due_dates: {
|
|
16090
17423
|
due_date: string;
|
|
16091
17424
|
payment_method?: string | null | undefined;
|
|
17425
|
+
payment_method_id?: string | null | undefined;
|
|
16092
17426
|
amount: number;
|
|
16093
17427
|
}[] | null;
|
|
17428
|
+
attachments_info?: {
|
|
17429
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17430
|
+
attachments: {
|
|
17431
|
+
filename?: string | null | undefined;
|
|
17432
|
+
url?: string | null | undefined;
|
|
17433
|
+
}[] | null;
|
|
17434
|
+
} | undefined;
|
|
17435
|
+
accounting_info?: {
|
|
17436
|
+
main_currency?: string | undefined;
|
|
17437
|
+
main_currency_total: number;
|
|
17438
|
+
account_number?: string | null | undefined;
|
|
17439
|
+
} | null | undefined;
|
|
17440
|
+
payment_method_id?: string | null | undefined;
|
|
16094
17441
|
lines: {
|
|
16095
17442
|
line_number: number | null;
|
|
16096
17443
|
unit_price: number;
|
|
@@ -16132,10 +17479,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16132
17479
|
reference?: string | null | undefined;
|
|
16133
17480
|
payment_communication?: string | null | undefined;
|
|
16134
17481
|
customer_memo?: string | null | undefined;
|
|
17482
|
+
payment_term_id?: string | null | undefined;
|
|
17483
|
+
withholding_tax?: {
|
|
17484
|
+
tax_rate: number;
|
|
17485
|
+
tax_code: string;
|
|
17486
|
+
tax_amount: number;
|
|
17487
|
+
} | null | undefined;
|
|
16135
17488
|
id?: string | null | undefined;
|
|
16136
17489
|
invoice_date: string;
|
|
16137
17490
|
due_date: string;
|
|
16138
|
-
partner_id: string;
|
|
17491
|
+
partner_id: string | null;
|
|
16139
17492
|
journal_id?: string | null | undefined;
|
|
16140
17493
|
payments?: {
|
|
16141
17494
|
id: string;
|
|
@@ -16193,8 +17546,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16193
17546
|
due_dates: {
|
|
16194
17547
|
due_date: string;
|
|
16195
17548
|
payment_method?: string | null | undefined;
|
|
17549
|
+
payment_method_id?: string | null | undefined;
|
|
16196
17550
|
amount: number;
|
|
16197
17551
|
}[] | null;
|
|
17552
|
+
attachments_info?: {
|
|
17553
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17554
|
+
attachments: {
|
|
17555
|
+
filename?: string | null | undefined;
|
|
17556
|
+
url?: string | null | undefined;
|
|
17557
|
+
}[] | null;
|
|
17558
|
+
} | undefined;
|
|
17559
|
+
accounting_info?: {
|
|
17560
|
+
main_currency?: string | undefined;
|
|
17561
|
+
main_currency_total: number;
|
|
17562
|
+
account_number?: string | null | undefined;
|
|
17563
|
+
} | null | undefined;
|
|
17564
|
+
payment_method_id?: string | null | undefined;
|
|
16198
17565
|
lines: {
|
|
16199
17566
|
line_number: number | null;
|
|
16200
17567
|
unit_price: number;
|
|
@@ -16342,7 +17709,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16342
17709
|
folder_id?: string | null | undefined;
|
|
16343
17710
|
updated_after?: string | null | undefined;
|
|
16344
17711
|
unposted_allowed: "true" | "false";
|
|
16345
|
-
journal_id
|
|
17712
|
+
journal_id?: string | null | undefined;
|
|
16346
17713
|
partner_id?: string | null | undefined;
|
|
16347
17714
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16348
17715
|
reference?: string | null | undefined;
|
|
@@ -16356,9 +17723,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16356
17723
|
due_dates: {
|
|
16357
17724
|
due_date: string;
|
|
16358
17725
|
payment_method?: string | null | undefined;
|
|
17726
|
+
payment_method_id?: string | null | undefined;
|
|
16359
17727
|
debit: number | null;
|
|
16360
17728
|
credit: number | null;
|
|
16361
17729
|
}[] | null;
|
|
17730
|
+
attachments_info?: {
|
|
17731
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17732
|
+
attachments: {
|
|
17733
|
+
filename?: string | null | undefined;
|
|
17734
|
+
url?: string | null | undefined;
|
|
17735
|
+
}[] | null;
|
|
17736
|
+
} | undefined;
|
|
16362
17737
|
items: {
|
|
16363
17738
|
account_number: string;
|
|
16364
17739
|
partner_id?: string | null | undefined;
|
|
@@ -16381,7 +17756,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16381
17756
|
folder_id?: string | null | undefined;
|
|
16382
17757
|
updated_after?: string | null | undefined;
|
|
16383
17758
|
unposted_allowed: "true" | "false";
|
|
16384
|
-
journal_id
|
|
17759
|
+
journal_id?: string | null | undefined;
|
|
16385
17760
|
partner_id?: string | null | undefined;
|
|
16386
17761
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16387
17762
|
reference?: string | null | undefined;
|
|
@@ -16395,9 +17770,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16395
17770
|
due_dates: {
|
|
16396
17771
|
due_date: string;
|
|
16397
17772
|
payment_method?: string | null | undefined;
|
|
17773
|
+
payment_method_id?: string | null | undefined;
|
|
16398
17774
|
debit: number | null;
|
|
16399
17775
|
credit: number | null;
|
|
16400
17776
|
}[] | null;
|
|
17777
|
+
attachments_info?: {
|
|
17778
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
17779
|
+
attachments: {
|
|
17780
|
+
filename?: string | null | undefined;
|
|
17781
|
+
url?: string | null | undefined;
|
|
17782
|
+
}[] | null;
|
|
17783
|
+
} | undefined;
|
|
16401
17784
|
items: {
|
|
16402
17785
|
account_number: string;
|
|
16403
17786
|
partner_id?: string | null | undefined;
|
|
@@ -16487,6 +17870,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16487
17870
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16488
17871
|
id: string;
|
|
16489
17872
|
code?: string | null | undefined;
|
|
17873
|
+
active: boolean | null;
|
|
16490
17874
|
label: string;
|
|
16491
17875
|
scope: "unknown" | "nat" | "eu" | "int" | null;
|
|
16492
17876
|
rate: number;
|
|
@@ -16494,6 +17878,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16494
17878
|
deductible_account?: string | null | undefined;
|
|
16495
17879
|
payable_account?: string | null | undefined;
|
|
16496
17880
|
reversed: boolean | null;
|
|
17881
|
+
withholding_tax: boolean | null;
|
|
16497
17882
|
country?: string | null | undefined;
|
|
16498
17883
|
}[]>;
|
|
16499
17884
|
getMiscOperations(params?: {
|
|
@@ -16596,12 +17981,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16596
17981
|
getChartOfAccounts(params?: {
|
|
16597
17982
|
folder_id?: string | null | undefined;
|
|
16598
17983
|
classes?: string | null | undefined;
|
|
16599
|
-
type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
|
|
17984
|
+
type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
|
|
16600
17985
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16601
17986
|
number: string;
|
|
16602
17987
|
name: string;
|
|
16603
17988
|
active: boolean | null;
|
|
16604
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
17989
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
17990
|
+
scheme_ids?: string[] | null | undefined;
|
|
17991
|
+
accounting_category?: string | null | undefined;
|
|
16605
17992
|
}[]>;
|
|
16606
17993
|
getBalanceOfAccounts(filter: {
|
|
16607
17994
|
accounts: string[];
|
|
@@ -16677,6 +18064,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16677
18064
|
account: string;
|
|
16678
18065
|
amount: number;
|
|
16679
18066
|
description?: string | null | undefined;
|
|
18067
|
+
automated_matching_number?: string | null | undefined;
|
|
16680
18068
|
}[];
|
|
16681
18069
|
pdf?: string | null | undefined;
|
|
16682
18070
|
}, params?: {
|
|
@@ -16695,6 +18083,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16695
18083
|
account: string;
|
|
16696
18084
|
amount: number;
|
|
16697
18085
|
description?: string | null | undefined;
|
|
18086
|
+
automated_matching_number?: string | null | undefined;
|
|
16698
18087
|
counterpart_account: string;
|
|
16699
18088
|
}[];
|
|
16700
18089
|
}>;
|
|
@@ -16722,6 +18111,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16722
18111
|
}[];
|
|
16723
18112
|
}[] | null;
|
|
16724
18113
|
tax_code?: string | null | undefined;
|
|
18114
|
+
tax_info?: {
|
|
18115
|
+
tax_code: string;
|
|
18116
|
+
tax_amount: number;
|
|
18117
|
+
vat_account?: string | null | undefined;
|
|
18118
|
+
reversed_vat_account?: string | null | undefined;
|
|
18119
|
+
description?: string | null | undefined;
|
|
18120
|
+
} | null | undefined;
|
|
16725
18121
|
account_info?: {
|
|
16726
18122
|
account_number: string;
|
|
16727
18123
|
account_name: string;
|
|
@@ -16734,6 +18130,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16734
18130
|
}, params?: {
|
|
16735
18131
|
folder_id?: string | null | undefined;
|
|
16736
18132
|
force_currency_exchange?: "true" | "false" | null | undefined;
|
|
18133
|
+
ignore_accounting_id?: boolean | undefined;
|
|
16737
18134
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
16738
18135
|
reference?: string | null | undefined;
|
|
16739
18136
|
due_date?: string | null | undefined;
|
|
@@ -16746,9 +18143,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16746
18143
|
due_dates: {
|
|
16747
18144
|
due_date: string;
|
|
16748
18145
|
payment_method?: string | null | undefined;
|
|
18146
|
+
payment_method_id?: string | null | undefined;
|
|
16749
18147
|
debit: number | null;
|
|
16750
18148
|
credit: number | null;
|
|
16751
18149
|
}[] | null;
|
|
18150
|
+
attachments_info?: {
|
|
18151
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
18152
|
+
attachments: {
|
|
18153
|
+
filename?: string | null | undefined;
|
|
18154
|
+
url?: string | null | undefined;
|
|
18155
|
+
}[] | null;
|
|
18156
|
+
} | undefined;
|
|
16752
18157
|
items: {
|
|
16753
18158
|
account_number: string;
|
|
16754
18159
|
partner_id?: string | null | undefined;
|
|
@@ -16864,14 +18269,35 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16864
18269
|
createLedgerAccount(account: {
|
|
16865
18270
|
name: string;
|
|
16866
18271
|
number: string;
|
|
16867
|
-
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
18272
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
|
|
16868
18273
|
}, params?: {
|
|
16869
18274
|
folder_id?: string | null | undefined;
|
|
16870
18275
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
16871
18276
|
number: string;
|
|
16872
18277
|
name: string;
|
|
16873
18278
|
active: boolean | null;
|
|
16874
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
18279
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
18280
|
+
scheme_ids?: string[] | null | undefined;
|
|
18281
|
+
accounting_category?: string | null | undefined;
|
|
18282
|
+
}>;
|
|
18283
|
+
getBankAccounts(params?: {
|
|
18284
|
+
folder_id?: string | null | undefined;
|
|
18285
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
18286
|
+
items: {
|
|
18287
|
+
id: string;
|
|
18288
|
+
code?: string | null | undefined;
|
|
18289
|
+
currency?: string | null | undefined;
|
|
18290
|
+
account_name?: string | null | undefined;
|
|
18291
|
+
account_number?: string | null | undefined;
|
|
18292
|
+
iban?: string | null | undefined;
|
|
18293
|
+
bank_name?: string | null | undefined;
|
|
18294
|
+
journal_id?: string | null | undefined;
|
|
18295
|
+
ledger_account?: string | null | undefined;
|
|
18296
|
+
unallocated_account?: string | null | undefined;
|
|
18297
|
+
}[];
|
|
18298
|
+
total: number;
|
|
18299
|
+
page: number;
|
|
18300
|
+
size: number;
|
|
16875
18301
|
}>;
|
|
16876
18302
|
createBankAccount(bankAccount: {
|
|
16877
18303
|
code: string;
|
|
@@ -16894,6 +18320,45 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16894
18320
|
ledger_account?: string | null | undefined;
|
|
16895
18321
|
unallocated_account?: string | null | undefined;
|
|
16896
18322
|
}>;
|
|
18323
|
+
createBankTransactions(bankStatement: {
|
|
18324
|
+
bank_statement_date: string;
|
|
18325
|
+
bank_account_id: string;
|
|
18326
|
+
external_bank_statement_id: string;
|
|
18327
|
+
opening_balance?: number | null | undefined;
|
|
18328
|
+
pdf?: string | null | undefined;
|
|
18329
|
+
items: {
|
|
18330
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
18331
|
+
account?: string | null | undefined;
|
|
18332
|
+
description?: string | null | undefined;
|
|
18333
|
+
external_transaction_id?: string | null | undefined;
|
|
18334
|
+
date: string;
|
|
18335
|
+
amount: number;
|
|
18336
|
+
fee_amount: number | null;
|
|
18337
|
+
tax_amount: number | null;
|
|
18338
|
+
currency: string;
|
|
18339
|
+
currency_exchange_rate: number | null;
|
|
18340
|
+
}[];
|
|
18341
|
+
}, params?: {
|
|
18342
|
+
folder_id?: string | null | undefined;
|
|
18343
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
18344
|
+
bank_statement_date: string;
|
|
18345
|
+
bank_account_id: string;
|
|
18346
|
+
id?: string | null | undefined;
|
|
18347
|
+
external_bank_statement_id?: string | null | undefined;
|
|
18348
|
+
items: {
|
|
18349
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
18350
|
+
account?: string | null | undefined;
|
|
18351
|
+
description?: string | null | undefined;
|
|
18352
|
+
external_transaction_id?: string | null | undefined;
|
|
18353
|
+
date: string;
|
|
18354
|
+
amount: number;
|
|
18355
|
+
fee_amount: number | null;
|
|
18356
|
+
tax_amount: number | null;
|
|
18357
|
+
currency: string;
|
|
18358
|
+
currency_exchange_rate: number | null;
|
|
18359
|
+
id?: string | null | undefined;
|
|
18360
|
+
}[];
|
|
18361
|
+
}>;
|
|
16897
18362
|
getJournalEntry(journalEntryId: string, params?: {
|
|
16898
18363
|
folder_id?: string | null | undefined;
|
|
16899
18364
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -16908,9 +18373,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16908
18373
|
due_dates: {
|
|
16909
18374
|
due_date: string;
|
|
16910
18375
|
payment_method?: string | null | undefined;
|
|
18376
|
+
payment_method_id?: string | null | undefined;
|
|
16911
18377
|
debit: number | null;
|
|
16912
18378
|
credit: number | null;
|
|
16913
18379
|
}[] | null;
|
|
18380
|
+
attachments_info?: {
|
|
18381
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
18382
|
+
attachments: {
|
|
18383
|
+
filename?: string | null | undefined;
|
|
18384
|
+
url?: string | null | undefined;
|
|
18385
|
+
}[] | null;
|
|
18386
|
+
} | undefined;
|
|
16914
18387
|
items: {
|
|
16915
18388
|
account_number: string;
|
|
16916
18389
|
partner_id?: string | null | undefined;
|
|
@@ -16939,7 +18412,30 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16939
18412
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16940
18413
|
items: {
|
|
16941
18414
|
id: string;
|
|
16942
|
-
name?: string | null | undefined;
|
|
18415
|
+
name?: string | null | undefined;
|
|
18416
|
+
}[];
|
|
18417
|
+
total: number;
|
|
18418
|
+
page: number;
|
|
18419
|
+
size: number;
|
|
18420
|
+
}>;
|
|
18421
|
+
getPaymentTerms(params?: {
|
|
18422
|
+
folder_id?: string | null | undefined;
|
|
18423
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
18424
|
+
items: {
|
|
18425
|
+
id: string;
|
|
18426
|
+
name?: string | null | undefined;
|
|
18427
|
+
}[];
|
|
18428
|
+
total: number;
|
|
18429
|
+
page: number;
|
|
18430
|
+
size: number;
|
|
18431
|
+
}>;
|
|
18432
|
+
getSchemes(params?: {
|
|
18433
|
+
folder_id?: string | null | undefined;
|
|
18434
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
18435
|
+
items: {
|
|
18436
|
+
id: string;
|
|
18437
|
+
code: string;
|
|
18438
|
+
name: string;
|
|
16943
18439
|
}[];
|
|
16944
18440
|
total: number;
|
|
16945
18441
|
page: number;
|
|
@@ -16964,6 +18460,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16964
18460
|
};
|
|
16965
18461
|
content?: undefined;
|
|
16966
18462
|
}>;
|
|
18463
|
+
exportFec(params: {
|
|
18464
|
+
folder_id?: string | null | undefined;
|
|
18465
|
+
date_from: string;
|
|
18466
|
+
date_to: string;
|
|
18467
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
18468
|
+
JournalCode: string;
|
|
18469
|
+
JournalLib: string;
|
|
18470
|
+
EcritureNum: string;
|
|
18471
|
+
EcritureDate: string;
|
|
18472
|
+
CompteNum: string;
|
|
18473
|
+
CompteLib: string;
|
|
18474
|
+
CompAuxNum: string;
|
|
18475
|
+
CompAuxLib: string;
|
|
18476
|
+
PieceRef: string;
|
|
18477
|
+
PieceDate: string;
|
|
18478
|
+
Debit: number;
|
|
18479
|
+
Credit: number;
|
|
18480
|
+
EcritureLet: string;
|
|
18481
|
+
DateLet: string | null;
|
|
18482
|
+
ValidDate: string | null;
|
|
18483
|
+
Montantdevise: number;
|
|
18484
|
+
Idevise: string;
|
|
18485
|
+
}[]>;
|
|
16967
18486
|
}>;
|
|
16968
18487
|
invoicing: import("../types/api").ApiFor<{
|
|
16969
18488
|
getInvoices(params?: {
|
|
@@ -16973,6 +18492,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16973
18492
|
updated_after?: string | null | undefined;
|
|
16974
18493
|
include_invoice_lines?: "true" | "false" | null | undefined;
|
|
16975
18494
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
18495
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
16976
18496
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16977
18497
|
id: string;
|
|
16978
18498
|
source_ref: {
|
|
@@ -17002,6 +18522,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17002
18522
|
product_id?: string | null | undefined;
|
|
17003
18523
|
product_code?: string | null | undefined;
|
|
17004
18524
|
product_name?: string | null | undefined;
|
|
18525
|
+
analytic_distribution: {
|
|
18526
|
+
analytic_plan_code: string;
|
|
18527
|
+
analytic_accounts: {
|
|
18528
|
+
analytic_account_code: string;
|
|
18529
|
+
analytic_account_name: string;
|
|
18530
|
+
percentage: number;
|
|
18531
|
+
}[];
|
|
18532
|
+
}[] | null;
|
|
17005
18533
|
}[];
|
|
17006
18534
|
partner_id?: string | null | undefined;
|
|
17007
18535
|
invoice_number?: string | null | undefined;
|
|
@@ -17041,6 +18569,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17041
18569
|
}[]>;
|
|
17042
18570
|
getInvoiceById(invoiceId: string, params?: {
|
|
17043
18571
|
include_pdf?: "true" | "false" | null | undefined;
|
|
18572
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
17044
18573
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
17045
18574
|
id: string;
|
|
17046
18575
|
source_ref: {
|
|
@@ -17070,6 +18599,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17070
18599
|
product_id?: string | null | undefined;
|
|
17071
18600
|
product_code?: string | null | undefined;
|
|
17072
18601
|
product_name?: string | null | undefined;
|
|
18602
|
+
analytic_distribution: {
|
|
18603
|
+
analytic_plan_code: string;
|
|
18604
|
+
analytic_accounts: {
|
|
18605
|
+
analytic_account_code: string;
|
|
18606
|
+
analytic_account_name: string;
|
|
18607
|
+
percentage: number;
|
|
18608
|
+
}[];
|
|
18609
|
+
}[] | null;
|
|
17073
18610
|
}[];
|
|
17074
18611
|
partner_id?: string | null | undefined;
|
|
17075
18612
|
invoice_number?: string | null | undefined;
|
|
@@ -17191,6 +18728,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17191
18728
|
product_id?: string | null | undefined;
|
|
17192
18729
|
product_code?: string | null | undefined;
|
|
17193
18730
|
product_name?: string | null | undefined;
|
|
18731
|
+
analytic_distribution: {
|
|
18732
|
+
analytic_plan_code: string;
|
|
18733
|
+
analytic_accounts: {
|
|
18734
|
+
analytic_account_code: string;
|
|
18735
|
+
analytic_account_name: string;
|
|
18736
|
+
percentage: number;
|
|
18737
|
+
}[];
|
|
18738
|
+
}[] | null;
|
|
17194
18739
|
}[];
|
|
17195
18740
|
partner_id?: string | null | undefined;
|
|
17196
18741
|
invoice_number?: string | null | undefined;
|
|
@@ -18769,14 +20314,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18769
20314
|
reference: string;
|
|
18770
20315
|
reference_type: string;
|
|
18771
20316
|
holder_name?: string | null | undefined;
|
|
20317
|
+
active: boolean | null;
|
|
18772
20318
|
}[]>;
|
|
18773
|
-
getAccountTransactions(
|
|
20319
|
+
getAccountTransactions(params: {
|
|
18774
20320
|
date_from?: string | null | undefined;
|
|
18775
20321
|
date_to?: string | null | undefined;
|
|
20322
|
+
updated_after?: string | null | undefined;
|
|
20323
|
+
account_id: string;
|
|
18776
20324
|
date_type?: "value_date" | "execution_date" | null | undefined;
|
|
18777
|
-
}
|
|
20325
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
18778
20326
|
id: string;
|
|
18779
20327
|
amount: number;
|
|
20328
|
+
tax_amount?: number | null | undefined;
|
|
18780
20329
|
currency: string;
|
|
18781
20330
|
description?: string | null | undefined;
|
|
18782
20331
|
additional_information?: string | null | undefined;
|
|
@@ -18786,6 +20335,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18786
20335
|
creation_date: string;
|
|
18787
20336
|
value_date: string;
|
|
18788
20337
|
execution_date: string;
|
|
20338
|
+
internal_transaction: boolean | null;
|
|
20339
|
+
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;
|
|
20340
|
+
last_update_on?: string | null | undefined;
|
|
20341
|
+
status?: "completed" | "pending" | "declined" | null | undefined;
|
|
20342
|
+
attachments_info?: {
|
|
20343
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
20344
|
+
attachments: {
|
|
20345
|
+
filename?: string | null | undefined;
|
|
20346
|
+
url?: string | null | undefined;
|
|
20347
|
+
}[] | null;
|
|
20348
|
+
} | undefined;
|
|
18789
20349
|
}[]>;
|
|
18790
20350
|
getAccountCounterparts(params?: {
|
|
18791
20351
|
date_from?: string | null | undefined;
|
|
@@ -18796,6 +20356,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18796
20356
|
reference?: string | null | undefined;
|
|
18797
20357
|
details?: string | null | undefined;
|
|
18798
20358
|
}[]>;
|
|
20359
|
+
getAttachments(params: {
|
|
20360
|
+
transaction_id: string;
|
|
20361
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
20362
|
+
items: {
|
|
20363
|
+
id: string;
|
|
20364
|
+
base64_string: string;
|
|
20365
|
+
}[];
|
|
20366
|
+
total: number;
|
|
20367
|
+
page: number;
|
|
20368
|
+
size: number;
|
|
20369
|
+
}>;
|
|
18799
20370
|
}>;
|
|
18800
20371
|
getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
|
|
18801
20372
|
data: {
|
|
@@ -18835,6 +20406,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18835
20406
|
source_id?: string | null | undefined;
|
|
18836
20407
|
target_id?: string | null | undefined;
|
|
18837
20408
|
}[];
|
|
20409
|
+
hidden_source_ids: string[];
|
|
18838
20410
|
sub_mapping_name: string;
|
|
18839
20411
|
sub_mapping_description?: string | null | undefined;
|
|
18840
20412
|
}[] | null | undefined;
|
|
@@ -18998,7 +20570,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18998
20570
|
value: string;
|
|
18999
20571
|
}[] | null | undefined;
|
|
19000
20572
|
country?: string | null | undefined;
|
|
19001
|
-
|
|
20573
|
+
redirect: boolean | null;
|
|
20574
|
+
} | null | undefined) => Promise<{
|
|
19002
20575
|
url: string;
|
|
19003
20576
|
}>;
|
|
19004
20577
|
updateConnection: (connectionId: string, body?: {
|
|
@@ -19017,6 +20590,15 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19017
20590
|
};
|
|
19018
20591
|
content?: undefined;
|
|
19019
20592
|
}>;
|
|
20593
|
+
getTransactionByClientRequestId: (connectionId: string, params: {
|
|
20594
|
+
client_request_id: string;
|
|
20595
|
+
}) => Promise<{
|
|
20596
|
+
created_on: string;
|
|
20597
|
+
method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
|
|
20598
|
+
route: string;
|
|
20599
|
+
status_code: number;
|
|
20600
|
+
created_entity_id?: string | null | undefined;
|
|
20601
|
+
}>;
|
|
19020
20602
|
enableFlow: (syncId: string, flowId: string, body: {
|
|
19021
20603
|
integrationids: string[];
|
|
19022
20604
|
triggerid: string | null;
|
|
@@ -19622,6 +21204,30 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19622
21204
|
country?: string | null | undefined;
|
|
19623
21205
|
}[] | null | undefined;
|
|
19624
21206
|
}[]>;
|
|
21207
|
+
getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
21208
|
+
id: string;
|
|
21209
|
+
source_ref: {
|
|
21210
|
+
id?: string | null | undefined;
|
|
21211
|
+
model?: string | null | undefined;
|
|
21212
|
+
};
|
|
21213
|
+
first_name?: string | null | undefined;
|
|
21214
|
+
last_name?: string | null | undefined;
|
|
21215
|
+
company_name?: string | null | undefined;
|
|
21216
|
+
phone?: string | null | undefined;
|
|
21217
|
+
email?: string | null | undefined;
|
|
21218
|
+
account_number?: string | null | undefined;
|
|
21219
|
+
created_on?: string | null | undefined;
|
|
21220
|
+
addresses?: {
|
|
21221
|
+
address_type?: string | null | undefined;
|
|
21222
|
+
name?: string | null | undefined;
|
|
21223
|
+
street?: string | null | undefined;
|
|
21224
|
+
number?: string | null | undefined;
|
|
21225
|
+
box?: string | null | undefined;
|
|
21226
|
+
city?: string | null | undefined;
|
|
21227
|
+
postal_code?: string | null | undefined;
|
|
21228
|
+
country?: string | null | undefined;
|
|
21229
|
+
}[] | null | undefined;
|
|
21230
|
+
}>;
|
|
19625
21231
|
getInvoices(params?: {
|
|
19626
21232
|
date_from: string;
|
|
19627
21233
|
date_to: string;
|
|
@@ -19724,6 +21330,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19724
21330
|
untaxed_amount: number;
|
|
19725
21331
|
total: number;
|
|
19726
21332
|
}[]>;
|
|
21333
|
+
getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
21334
|
+
items: {
|
|
21335
|
+
id: string;
|
|
21336
|
+
source_ref: {
|
|
21337
|
+
id?: string | null | undefined;
|
|
21338
|
+
model?: string | null | undefined;
|
|
21339
|
+
};
|
|
21340
|
+
label?: string | null | undefined;
|
|
21341
|
+
rate?: number | null | undefined;
|
|
21342
|
+
}[];
|
|
21343
|
+
total: number;
|
|
21344
|
+
page: number;
|
|
21345
|
+
size: number;
|
|
21346
|
+
}>;
|
|
19727
21347
|
}>;
|
|
19728
21348
|
payment: import("../types/api").ApiFor<{
|
|
19729
21349
|
getPayments(params: {
|
|
@@ -20275,6 +21895,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20275
21895
|
reference?: string | null | undefined;
|
|
20276
21896
|
payment_communication?: string | null | undefined;
|
|
20277
21897
|
customer_memo?: string | null | undefined;
|
|
21898
|
+
payment_term_id?: string | null | undefined;
|
|
21899
|
+
withholding_tax?: {
|
|
21900
|
+
tax_rate: number;
|
|
21901
|
+
tax_code: string;
|
|
21902
|
+
tax_amount: number;
|
|
21903
|
+
} | null | undefined;
|
|
20278
21904
|
invoice_date: string;
|
|
20279
21905
|
due_date: string;
|
|
20280
21906
|
partner_id?: string | null | undefined;
|
|
@@ -20317,10 +21943,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20317
21943
|
description: string;
|
|
20318
21944
|
analytic_account?: string | null | undefined;
|
|
20319
21945
|
}[];
|
|
21946
|
+
start_date?: string | null | undefined;
|
|
21947
|
+
end_date?: string | null | undefined;
|
|
21948
|
+
payment_method_id?: string | null | undefined;
|
|
20320
21949
|
}, params?: {
|
|
20321
21950
|
folder_id?: string | null | undefined;
|
|
20322
21951
|
force_financial_period?: string | null | undefined;
|
|
20323
21952
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
21953
|
+
ignore_accounting_id?: boolean | undefined;
|
|
20324
21954
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
20325
21955
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
20326
21956
|
invoice_number?: string | null | undefined;
|
|
@@ -20331,10 +21961,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20331
21961
|
reference?: string | null | undefined;
|
|
20332
21962
|
payment_communication?: string | null | undefined;
|
|
20333
21963
|
customer_memo?: string | null | undefined;
|
|
21964
|
+
payment_term_id?: string | null | undefined;
|
|
21965
|
+
withholding_tax?: {
|
|
21966
|
+
tax_rate: number;
|
|
21967
|
+
tax_code: string;
|
|
21968
|
+
tax_amount: number;
|
|
21969
|
+
} | null | undefined;
|
|
20334
21970
|
id?: string | null | undefined;
|
|
20335
21971
|
invoice_date: string;
|
|
20336
21972
|
due_date: string;
|
|
20337
|
-
partner_id: string;
|
|
21973
|
+
partner_id: string | null;
|
|
20338
21974
|
journal_id?: string | null | undefined;
|
|
20339
21975
|
payments?: {
|
|
20340
21976
|
id: string;
|
|
@@ -20392,8 +22028,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20392
22028
|
due_dates: {
|
|
20393
22029
|
due_date: string;
|
|
20394
22030
|
payment_method?: string | null | undefined;
|
|
22031
|
+
payment_method_id?: string | null | undefined;
|
|
20395
22032
|
amount: number;
|
|
20396
22033
|
}[] | null;
|
|
22034
|
+
attachments_info?: {
|
|
22035
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22036
|
+
attachments: {
|
|
22037
|
+
filename?: string | null | undefined;
|
|
22038
|
+
url?: string | null | undefined;
|
|
22039
|
+
}[] | null;
|
|
22040
|
+
} | undefined;
|
|
22041
|
+
accounting_info?: {
|
|
22042
|
+
main_currency?: string | undefined;
|
|
22043
|
+
main_currency_total: number;
|
|
22044
|
+
account_number?: string | null | undefined;
|
|
22045
|
+
} | null | undefined;
|
|
22046
|
+
payment_method_id?: string | null | undefined;
|
|
20397
22047
|
lines: {
|
|
20398
22048
|
line_number: number | null;
|
|
20399
22049
|
unit_price: number;
|
|
@@ -20419,6 +22069,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20419
22069
|
reference?: string | null | undefined;
|
|
20420
22070
|
payment_communication?: string | null | undefined;
|
|
20421
22071
|
customer_memo?: string | null | undefined;
|
|
22072
|
+
payment_term_id?: string | null | undefined;
|
|
22073
|
+
withholding_tax?: {
|
|
22074
|
+
tax_rate: number;
|
|
22075
|
+
tax_code: string;
|
|
22076
|
+
tax_amount: number;
|
|
22077
|
+
} | null | undefined;
|
|
20422
22078
|
invoice_date: string;
|
|
20423
22079
|
due_date: string;
|
|
20424
22080
|
partner_id?: string | null | undefined;
|
|
@@ -20467,10 +22123,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20467
22123
|
}[];
|
|
20468
22124
|
}[] | null;
|
|
20469
22125
|
}[];
|
|
22126
|
+
start_date?: string | null | undefined;
|
|
22127
|
+
end_date?: string | null | undefined;
|
|
22128
|
+
payment_method_id?: string | null | undefined;
|
|
20470
22129
|
}, params?: {
|
|
20471
22130
|
folder_id?: string | null | undefined;
|
|
20472
22131
|
force_financial_period?: string | null | undefined;
|
|
20473
22132
|
regroup_lines?: "true" | "false" | null | undefined;
|
|
22133
|
+
ignore_accounting_id?: boolean | undefined;
|
|
20474
22134
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
20475
22135
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
20476
22136
|
invoice_number?: string | null | undefined;
|
|
@@ -20481,10 +22141,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20481
22141
|
reference?: string | null | undefined;
|
|
20482
22142
|
payment_communication?: string | null | undefined;
|
|
20483
22143
|
customer_memo?: string | null | undefined;
|
|
22144
|
+
payment_term_id?: string | null | undefined;
|
|
22145
|
+
withholding_tax?: {
|
|
22146
|
+
tax_rate: number;
|
|
22147
|
+
tax_code: string;
|
|
22148
|
+
tax_amount: number;
|
|
22149
|
+
} | null | undefined;
|
|
20484
22150
|
id?: string | null | undefined;
|
|
20485
22151
|
invoice_date: string;
|
|
20486
22152
|
due_date: string;
|
|
20487
|
-
partner_id: string;
|
|
22153
|
+
partner_id: string | null;
|
|
20488
22154
|
journal_id?: string | null | undefined;
|
|
20489
22155
|
payments?: {
|
|
20490
22156
|
id: string;
|
|
@@ -20542,8 +22208,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20542
22208
|
due_dates: {
|
|
20543
22209
|
due_date: string;
|
|
20544
22210
|
payment_method?: string | null | undefined;
|
|
22211
|
+
payment_method_id?: string | null | undefined;
|
|
20545
22212
|
amount: number;
|
|
20546
22213
|
}[] | null;
|
|
22214
|
+
attachments_info?: {
|
|
22215
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22216
|
+
attachments: {
|
|
22217
|
+
filename?: string | null | undefined;
|
|
22218
|
+
url?: string | null | undefined;
|
|
22219
|
+
}[] | null;
|
|
22220
|
+
} | undefined;
|
|
22221
|
+
accounting_info?: {
|
|
22222
|
+
main_currency?: string | undefined;
|
|
22223
|
+
main_currency_total: number;
|
|
22224
|
+
account_number?: string | null | undefined;
|
|
22225
|
+
} | null | undefined;
|
|
22226
|
+
payment_method_id?: string | null | undefined;
|
|
20547
22227
|
lines: {
|
|
20548
22228
|
line_number: number | null;
|
|
20549
22229
|
unit_price: number;
|
|
@@ -20585,10 +22265,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20585
22265
|
reference?: string | null | undefined;
|
|
20586
22266
|
payment_communication?: string | null | undefined;
|
|
20587
22267
|
customer_memo?: string | null | undefined;
|
|
22268
|
+
payment_term_id?: string | null | undefined;
|
|
22269
|
+
withholding_tax?: {
|
|
22270
|
+
tax_rate: number;
|
|
22271
|
+
tax_code: string;
|
|
22272
|
+
tax_amount: number;
|
|
22273
|
+
} | null | undefined;
|
|
20588
22274
|
id?: string | null | undefined;
|
|
20589
22275
|
invoice_date: string;
|
|
20590
22276
|
due_date: string;
|
|
20591
|
-
partner_id: string;
|
|
22277
|
+
partner_id: string | null;
|
|
20592
22278
|
journal_id?: string | null | undefined;
|
|
20593
22279
|
payments?: {
|
|
20594
22280
|
id: string;
|
|
@@ -20646,8 +22332,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20646
22332
|
due_dates: {
|
|
20647
22333
|
due_date: string;
|
|
20648
22334
|
payment_method?: string | null | undefined;
|
|
22335
|
+
payment_method_id?: string | null | undefined;
|
|
20649
22336
|
amount: number;
|
|
20650
22337
|
}[] | null;
|
|
22338
|
+
attachments_info?: {
|
|
22339
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22340
|
+
attachments: {
|
|
22341
|
+
filename?: string | null | undefined;
|
|
22342
|
+
url?: string | null | undefined;
|
|
22343
|
+
}[] | null;
|
|
22344
|
+
} | undefined;
|
|
22345
|
+
accounting_info?: {
|
|
22346
|
+
main_currency?: string | undefined;
|
|
22347
|
+
main_currency_total: number;
|
|
22348
|
+
account_number?: string | null | undefined;
|
|
22349
|
+
} | null | undefined;
|
|
22350
|
+
payment_method_id?: string | null | undefined;
|
|
20651
22351
|
lines: {
|
|
20652
22352
|
line_number: number | null;
|
|
20653
22353
|
unit_price: number;
|
|
@@ -20678,10 +22378,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20678
22378
|
reference?: string | null | undefined;
|
|
20679
22379
|
payment_communication?: string | null | undefined;
|
|
20680
22380
|
customer_memo?: string | null | undefined;
|
|
22381
|
+
payment_term_id?: string | null | undefined;
|
|
22382
|
+
withholding_tax?: {
|
|
22383
|
+
tax_rate: number;
|
|
22384
|
+
tax_code: string;
|
|
22385
|
+
tax_amount: number;
|
|
22386
|
+
} | null | undefined;
|
|
20681
22387
|
id?: string | null | undefined;
|
|
20682
22388
|
invoice_date: string;
|
|
20683
22389
|
due_date: string;
|
|
20684
|
-
partner_id: string;
|
|
22390
|
+
partner_id: string | null;
|
|
20685
22391
|
journal_id?: string | null | undefined;
|
|
20686
22392
|
payments?: {
|
|
20687
22393
|
id: string;
|
|
@@ -20739,8 +22445,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20739
22445
|
due_dates: {
|
|
20740
22446
|
due_date: string;
|
|
20741
22447
|
payment_method?: string | null | undefined;
|
|
22448
|
+
payment_method_id?: string | null | undefined;
|
|
20742
22449
|
amount: number;
|
|
20743
22450
|
}[] | null;
|
|
22451
|
+
attachments_info?: {
|
|
22452
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22453
|
+
attachments: {
|
|
22454
|
+
filename?: string | null | undefined;
|
|
22455
|
+
url?: string | null | undefined;
|
|
22456
|
+
}[] | null;
|
|
22457
|
+
} | undefined;
|
|
22458
|
+
accounting_info?: {
|
|
22459
|
+
main_currency?: string | undefined;
|
|
22460
|
+
main_currency_total: number;
|
|
22461
|
+
account_number?: string | null | undefined;
|
|
22462
|
+
} | null | undefined;
|
|
22463
|
+
payment_method_id?: string | null | undefined;
|
|
20744
22464
|
lines: {
|
|
20745
22465
|
line_number: number | null;
|
|
20746
22466
|
unit_price: number;
|
|
@@ -20771,10 +22491,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20771
22491
|
reference?: string | null | undefined;
|
|
20772
22492
|
payment_communication?: string | null | undefined;
|
|
20773
22493
|
customer_memo?: string | null | undefined;
|
|
22494
|
+
payment_term_id?: string | null | undefined;
|
|
22495
|
+
withholding_tax?: {
|
|
22496
|
+
tax_rate: number;
|
|
22497
|
+
tax_code: string;
|
|
22498
|
+
tax_amount: number;
|
|
22499
|
+
} | null | undefined;
|
|
20774
22500
|
id?: string | null | undefined;
|
|
20775
22501
|
invoice_date: string;
|
|
20776
22502
|
due_date: string;
|
|
20777
|
-
partner_id: string;
|
|
22503
|
+
partner_id: string | null;
|
|
20778
22504
|
journal_id?: string | null | undefined;
|
|
20779
22505
|
payments?: {
|
|
20780
22506
|
id: string;
|
|
@@ -20832,8 +22558,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20832
22558
|
due_dates: {
|
|
20833
22559
|
due_date: string;
|
|
20834
22560
|
payment_method?: string | null | undefined;
|
|
22561
|
+
payment_method_id?: string | null | undefined;
|
|
20835
22562
|
amount: number;
|
|
20836
22563
|
}[] | null;
|
|
22564
|
+
attachments_info?: {
|
|
22565
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22566
|
+
attachments: {
|
|
22567
|
+
filename?: string | null | undefined;
|
|
22568
|
+
url?: string | null | undefined;
|
|
22569
|
+
}[] | null;
|
|
22570
|
+
} | undefined;
|
|
22571
|
+
accounting_info?: {
|
|
22572
|
+
main_currency?: string | undefined;
|
|
22573
|
+
main_currency_total: number;
|
|
22574
|
+
account_number?: string | null | undefined;
|
|
22575
|
+
} | null | undefined;
|
|
22576
|
+
payment_method_id?: string | null | undefined;
|
|
20837
22577
|
lines: {
|
|
20838
22578
|
line_number: number | null;
|
|
20839
22579
|
unit_price: number;
|
|
@@ -20875,10 +22615,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20875
22615
|
reference?: string | null | undefined;
|
|
20876
22616
|
payment_communication?: string | null | undefined;
|
|
20877
22617
|
customer_memo?: string | null | undefined;
|
|
22618
|
+
payment_term_id?: string | null | undefined;
|
|
22619
|
+
withholding_tax?: {
|
|
22620
|
+
tax_rate: number;
|
|
22621
|
+
tax_code: string;
|
|
22622
|
+
tax_amount: number;
|
|
22623
|
+
} | null | undefined;
|
|
20878
22624
|
id?: string | null | undefined;
|
|
20879
22625
|
invoice_date: string;
|
|
20880
22626
|
due_date: string;
|
|
20881
|
-
partner_id: string;
|
|
22627
|
+
partner_id: string | null;
|
|
20882
22628
|
journal_id?: string | null | undefined;
|
|
20883
22629
|
payments?: {
|
|
20884
22630
|
id: string;
|
|
@@ -20936,8 +22682,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20936
22682
|
due_dates: {
|
|
20937
22683
|
due_date: string;
|
|
20938
22684
|
payment_method?: string | null | undefined;
|
|
22685
|
+
payment_method_id?: string | null | undefined;
|
|
20939
22686
|
amount: number;
|
|
20940
22687
|
}[] | null;
|
|
22688
|
+
attachments_info?: {
|
|
22689
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22690
|
+
attachments: {
|
|
22691
|
+
filename?: string | null | undefined;
|
|
22692
|
+
url?: string | null | undefined;
|
|
22693
|
+
}[] | null;
|
|
22694
|
+
} | undefined;
|
|
22695
|
+
accounting_info?: {
|
|
22696
|
+
main_currency?: string | undefined;
|
|
22697
|
+
main_currency_total: number;
|
|
22698
|
+
account_number?: string | null | undefined;
|
|
22699
|
+
} | null | undefined;
|
|
22700
|
+
payment_method_id?: string | null | undefined;
|
|
20941
22701
|
lines: {
|
|
20942
22702
|
line_number: number | null;
|
|
20943
22703
|
unit_price: number;
|
|
@@ -21085,7 +22845,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21085
22845
|
folder_id?: string | null | undefined;
|
|
21086
22846
|
updated_after?: string | null | undefined;
|
|
21087
22847
|
unposted_allowed: "true" | "false";
|
|
21088
|
-
journal_id
|
|
22848
|
+
journal_id?: string | null | undefined;
|
|
21089
22849
|
partner_id?: string | null | undefined;
|
|
21090
22850
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21091
22851
|
reference?: string | null | undefined;
|
|
@@ -21099,9 +22859,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21099
22859
|
due_dates: {
|
|
21100
22860
|
due_date: string;
|
|
21101
22861
|
payment_method?: string | null | undefined;
|
|
22862
|
+
payment_method_id?: string | null | undefined;
|
|
21102
22863
|
debit: number | null;
|
|
21103
22864
|
credit: number | null;
|
|
21104
22865
|
}[] | null;
|
|
22866
|
+
attachments_info?: {
|
|
22867
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22868
|
+
attachments: {
|
|
22869
|
+
filename?: string | null | undefined;
|
|
22870
|
+
url?: string | null | undefined;
|
|
22871
|
+
}[] | null;
|
|
22872
|
+
} | undefined;
|
|
21105
22873
|
items: {
|
|
21106
22874
|
account_number: string;
|
|
21107
22875
|
partner_id?: string | null | undefined;
|
|
@@ -21124,7 +22892,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21124
22892
|
folder_id?: string | null | undefined;
|
|
21125
22893
|
updated_after?: string | null | undefined;
|
|
21126
22894
|
unposted_allowed: "true" | "false";
|
|
21127
|
-
journal_id
|
|
22895
|
+
journal_id?: string | null | undefined;
|
|
21128
22896
|
partner_id?: string | null | undefined;
|
|
21129
22897
|
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21130
22898
|
reference?: string | null | undefined;
|
|
@@ -21138,9 +22906,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21138
22906
|
due_dates: {
|
|
21139
22907
|
due_date: string;
|
|
21140
22908
|
payment_method?: string | null | undefined;
|
|
22909
|
+
payment_method_id?: string | null | undefined;
|
|
21141
22910
|
debit: number | null;
|
|
21142
22911
|
credit: number | null;
|
|
21143
22912
|
}[] | null;
|
|
22913
|
+
attachments_info?: {
|
|
22914
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
22915
|
+
attachments: {
|
|
22916
|
+
filename?: string | null | undefined;
|
|
22917
|
+
url?: string | null | undefined;
|
|
22918
|
+
}[] | null;
|
|
22919
|
+
} | undefined;
|
|
21144
22920
|
items: {
|
|
21145
22921
|
account_number: string;
|
|
21146
22922
|
partner_id?: string | null | undefined;
|
|
@@ -21230,6 +23006,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21230
23006
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21231
23007
|
id: string;
|
|
21232
23008
|
code?: string | null | undefined;
|
|
23009
|
+
active: boolean | null;
|
|
21233
23010
|
label: string;
|
|
21234
23011
|
scope: "unknown" | "nat" | "eu" | "int" | null;
|
|
21235
23012
|
rate: number;
|
|
@@ -21237,6 +23014,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21237
23014
|
deductible_account?: string | null | undefined;
|
|
21238
23015
|
payable_account?: string | null | undefined;
|
|
21239
23016
|
reversed: boolean | null;
|
|
23017
|
+
withholding_tax: boolean | null;
|
|
21240
23018
|
country?: string | null | undefined;
|
|
21241
23019
|
}[]>;
|
|
21242
23020
|
getMiscOperations(params?: {
|
|
@@ -21339,12 +23117,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21339
23117
|
getChartOfAccounts(params?: {
|
|
21340
23118
|
folder_id?: string | null | undefined;
|
|
21341
23119
|
classes?: string | null | undefined;
|
|
21342
|
-
type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
|
|
23120
|
+
type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
|
|
21343
23121
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21344
23122
|
number: string;
|
|
21345
23123
|
name: string;
|
|
21346
23124
|
active: boolean | null;
|
|
21347
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
23125
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
23126
|
+
scheme_ids?: string[] | null | undefined;
|
|
23127
|
+
accounting_category?: string | null | undefined;
|
|
21348
23128
|
}[]>;
|
|
21349
23129
|
getBalanceOfAccounts(filter: {
|
|
21350
23130
|
accounts: string[];
|
|
@@ -21420,6 +23200,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21420
23200
|
account: string;
|
|
21421
23201
|
amount: number;
|
|
21422
23202
|
description?: string | null | undefined;
|
|
23203
|
+
automated_matching_number?: string | null | undefined;
|
|
21423
23204
|
}[];
|
|
21424
23205
|
pdf?: string | null | undefined;
|
|
21425
23206
|
}, params?: {
|
|
@@ -21438,6 +23219,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21438
23219
|
account: string;
|
|
21439
23220
|
amount: number;
|
|
21440
23221
|
description?: string | null | undefined;
|
|
23222
|
+
automated_matching_number?: string | null | undefined;
|
|
21441
23223
|
counterpart_account: string;
|
|
21442
23224
|
}[];
|
|
21443
23225
|
}>;
|
|
@@ -21465,6 +23247,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21465
23247
|
}[];
|
|
21466
23248
|
}[] | null;
|
|
21467
23249
|
tax_code?: string | null | undefined;
|
|
23250
|
+
tax_info?: {
|
|
23251
|
+
tax_code: string;
|
|
23252
|
+
tax_amount: number;
|
|
23253
|
+
vat_account?: string | null | undefined;
|
|
23254
|
+
reversed_vat_account?: string | null | undefined;
|
|
23255
|
+
description?: string | null | undefined;
|
|
23256
|
+
} | null | undefined;
|
|
21468
23257
|
account_info?: {
|
|
21469
23258
|
account_number: string;
|
|
21470
23259
|
account_name: string;
|
|
@@ -21477,6 +23266,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21477
23266
|
}, params?: {
|
|
21478
23267
|
folder_id?: string | null | undefined;
|
|
21479
23268
|
force_currency_exchange?: "true" | "false" | null | undefined;
|
|
23269
|
+
ignore_accounting_id?: boolean | undefined;
|
|
21480
23270
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
21481
23271
|
reference?: string | null | undefined;
|
|
21482
23272
|
due_date?: string | null | undefined;
|
|
@@ -21489,9 +23279,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21489
23279
|
due_dates: {
|
|
21490
23280
|
due_date: string;
|
|
21491
23281
|
payment_method?: string | null | undefined;
|
|
23282
|
+
payment_method_id?: string | null | undefined;
|
|
21492
23283
|
debit: number | null;
|
|
21493
23284
|
credit: number | null;
|
|
21494
23285
|
}[] | null;
|
|
23286
|
+
attachments_info?: {
|
|
23287
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
23288
|
+
attachments: {
|
|
23289
|
+
filename?: string | null | undefined;
|
|
23290
|
+
url?: string | null | undefined;
|
|
23291
|
+
}[] | null;
|
|
23292
|
+
} | undefined;
|
|
21495
23293
|
items: {
|
|
21496
23294
|
account_number: string;
|
|
21497
23295
|
partner_id?: string | null | undefined;
|
|
@@ -21607,14 +23405,35 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21607
23405
|
createLedgerAccount(account: {
|
|
21608
23406
|
name: string;
|
|
21609
23407
|
number: string;
|
|
21610
|
-
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
23408
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
|
|
21611
23409
|
}, params?: {
|
|
21612
23410
|
folder_id?: string | null | undefined;
|
|
21613
23411
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
21614
23412
|
number: string;
|
|
21615
23413
|
name: string;
|
|
21616
23414
|
active: boolean | null;
|
|
21617
|
-
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
23415
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
|
|
23416
|
+
scheme_ids?: string[] | null | undefined;
|
|
23417
|
+
accounting_category?: string | null | undefined;
|
|
23418
|
+
}>;
|
|
23419
|
+
getBankAccounts(params?: {
|
|
23420
|
+
folder_id?: string | null | undefined;
|
|
23421
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
23422
|
+
items: {
|
|
23423
|
+
id: string;
|
|
23424
|
+
code?: string | null | undefined;
|
|
23425
|
+
currency?: string | null | undefined;
|
|
23426
|
+
account_name?: string | null | undefined;
|
|
23427
|
+
account_number?: string | null | undefined;
|
|
23428
|
+
iban?: string | null | undefined;
|
|
23429
|
+
bank_name?: string | null | undefined;
|
|
23430
|
+
journal_id?: string | null | undefined;
|
|
23431
|
+
ledger_account?: string | null | undefined;
|
|
23432
|
+
unallocated_account?: string | null | undefined;
|
|
23433
|
+
}[];
|
|
23434
|
+
total: number;
|
|
23435
|
+
page: number;
|
|
23436
|
+
size: number;
|
|
21618
23437
|
}>;
|
|
21619
23438
|
createBankAccount(bankAccount: {
|
|
21620
23439
|
code: string;
|
|
@@ -21637,6 +23456,45 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21637
23456
|
ledger_account?: string | null | undefined;
|
|
21638
23457
|
unallocated_account?: string | null | undefined;
|
|
21639
23458
|
}>;
|
|
23459
|
+
createBankTransactions(bankStatement: {
|
|
23460
|
+
bank_statement_date: string;
|
|
23461
|
+
bank_account_id: string;
|
|
23462
|
+
external_bank_statement_id: string;
|
|
23463
|
+
opening_balance?: number | null | undefined;
|
|
23464
|
+
pdf?: string | null | undefined;
|
|
23465
|
+
items: {
|
|
23466
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
23467
|
+
account?: string | null | undefined;
|
|
23468
|
+
description?: string | null | undefined;
|
|
23469
|
+
external_transaction_id?: string | null | undefined;
|
|
23470
|
+
date: string;
|
|
23471
|
+
amount: number;
|
|
23472
|
+
fee_amount: number | null;
|
|
23473
|
+
tax_amount: number | null;
|
|
23474
|
+
currency: string;
|
|
23475
|
+
currency_exchange_rate: number | null;
|
|
23476
|
+
}[];
|
|
23477
|
+
}, params?: {
|
|
23478
|
+
folder_id?: string | null | undefined;
|
|
23479
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
23480
|
+
bank_statement_date: string;
|
|
23481
|
+
bank_account_id: string;
|
|
23482
|
+
id?: string | null | undefined;
|
|
23483
|
+
external_bank_statement_id?: string | null | undefined;
|
|
23484
|
+
items: {
|
|
23485
|
+
account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
|
|
23486
|
+
account?: string | null | undefined;
|
|
23487
|
+
description?: string | null | undefined;
|
|
23488
|
+
external_transaction_id?: string | null | undefined;
|
|
23489
|
+
date: string;
|
|
23490
|
+
amount: number;
|
|
23491
|
+
fee_amount: number | null;
|
|
23492
|
+
tax_amount: number | null;
|
|
23493
|
+
currency: string;
|
|
23494
|
+
currency_exchange_rate: number | null;
|
|
23495
|
+
id?: string | null | undefined;
|
|
23496
|
+
}[];
|
|
23497
|
+
}>;
|
|
21640
23498
|
getJournalEntry(journalEntryId: string, params?: {
|
|
21641
23499
|
folder_id?: string | null | undefined;
|
|
21642
23500
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -21651,9 +23509,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21651
23509
|
due_dates: {
|
|
21652
23510
|
due_date: string;
|
|
21653
23511
|
payment_method?: string | null | undefined;
|
|
23512
|
+
payment_method_id?: string | null | undefined;
|
|
21654
23513
|
debit: number | null;
|
|
21655
23514
|
credit: number | null;
|
|
21656
23515
|
}[] | null;
|
|
23516
|
+
attachments_info?: {
|
|
23517
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
23518
|
+
attachments: {
|
|
23519
|
+
filename?: string | null | undefined;
|
|
23520
|
+
url?: string | null | undefined;
|
|
23521
|
+
}[] | null;
|
|
23522
|
+
} | undefined;
|
|
21657
23523
|
items: {
|
|
21658
23524
|
account_number: string;
|
|
21659
23525
|
partner_id?: string | null | undefined;
|
|
@@ -21688,6 +23554,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21688
23554
|
page: number;
|
|
21689
23555
|
size: number;
|
|
21690
23556
|
}>;
|
|
23557
|
+
getPaymentTerms(params?: {
|
|
23558
|
+
folder_id?: string | null | undefined;
|
|
23559
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
23560
|
+
items: {
|
|
23561
|
+
id: string;
|
|
23562
|
+
name?: string | null | undefined;
|
|
23563
|
+
}[];
|
|
23564
|
+
total: number;
|
|
23565
|
+
page: number;
|
|
23566
|
+
size: number;
|
|
23567
|
+
}>;
|
|
23568
|
+
getSchemes(params?: {
|
|
23569
|
+
folder_id?: string | null | undefined;
|
|
23570
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
23571
|
+
items: {
|
|
23572
|
+
id: string;
|
|
23573
|
+
code: string;
|
|
23574
|
+
name: string;
|
|
23575
|
+
}[];
|
|
23576
|
+
total: number;
|
|
23577
|
+
page: number;
|
|
23578
|
+
size: number;
|
|
23579
|
+
}>;
|
|
21691
23580
|
createInvoicePayment(body: {
|
|
21692
23581
|
date: string;
|
|
21693
23582
|
payment_method_id: string;
|
|
@@ -21707,6 +23596,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21707
23596
|
};
|
|
21708
23597
|
content?: undefined;
|
|
21709
23598
|
}>;
|
|
23599
|
+
exportFec(params: {
|
|
23600
|
+
folder_id?: string | null | undefined;
|
|
23601
|
+
date_from: string;
|
|
23602
|
+
date_to: string;
|
|
23603
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
23604
|
+
JournalCode: string;
|
|
23605
|
+
JournalLib: string;
|
|
23606
|
+
EcritureNum: string;
|
|
23607
|
+
EcritureDate: string;
|
|
23608
|
+
CompteNum: string;
|
|
23609
|
+
CompteLib: string;
|
|
23610
|
+
CompAuxNum: string;
|
|
23611
|
+
CompAuxLib: string;
|
|
23612
|
+
PieceRef: string;
|
|
23613
|
+
PieceDate: string;
|
|
23614
|
+
Debit: number;
|
|
23615
|
+
Credit: number;
|
|
23616
|
+
EcritureLet: string;
|
|
23617
|
+
DateLet: string | null;
|
|
23618
|
+
ValidDate: string | null;
|
|
23619
|
+
Montantdevise: number;
|
|
23620
|
+
Idevise: string;
|
|
23621
|
+
}[]>;
|
|
21710
23622
|
}>;
|
|
21711
23623
|
invoicing: import("../types/api").ApiFor<{
|
|
21712
23624
|
getInvoices(params?: {
|
|
@@ -21716,6 +23628,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21716
23628
|
updated_after?: string | null | undefined;
|
|
21717
23629
|
include_invoice_lines?: "true" | "false" | null | undefined;
|
|
21718
23630
|
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
23631
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
21719
23632
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21720
23633
|
id: string;
|
|
21721
23634
|
source_ref: {
|
|
@@ -21745,6 +23658,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21745
23658
|
product_id?: string | null | undefined;
|
|
21746
23659
|
product_code?: string | null | undefined;
|
|
21747
23660
|
product_name?: string | null | undefined;
|
|
23661
|
+
analytic_distribution: {
|
|
23662
|
+
analytic_plan_code: string;
|
|
23663
|
+
analytic_accounts: {
|
|
23664
|
+
analytic_account_code: string;
|
|
23665
|
+
analytic_account_name: string;
|
|
23666
|
+
percentage: number;
|
|
23667
|
+
}[];
|
|
23668
|
+
}[] | null;
|
|
21748
23669
|
}[];
|
|
21749
23670
|
partner_id?: string | null | undefined;
|
|
21750
23671
|
invoice_number?: string | null | undefined;
|
|
@@ -21784,6 +23705,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21784
23705
|
}[]>;
|
|
21785
23706
|
getInvoiceById(invoiceId: string, params?: {
|
|
21786
23707
|
include_pdf?: "true" | "false" | null | undefined;
|
|
23708
|
+
include_analytic_accounts?: "true" | "false" | null | undefined;
|
|
21787
23709
|
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21788
23710
|
id: string;
|
|
21789
23711
|
source_ref: {
|
|
@@ -21813,6 +23735,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21813
23735
|
product_id?: string | null | undefined;
|
|
21814
23736
|
product_code?: string | null | undefined;
|
|
21815
23737
|
product_name?: string | null | undefined;
|
|
23738
|
+
analytic_distribution: {
|
|
23739
|
+
analytic_plan_code: string;
|
|
23740
|
+
analytic_accounts: {
|
|
23741
|
+
analytic_account_code: string;
|
|
23742
|
+
analytic_account_name: string;
|
|
23743
|
+
percentage: number;
|
|
23744
|
+
}[];
|
|
23745
|
+
}[] | null;
|
|
21816
23746
|
}[];
|
|
21817
23747
|
partner_id?: string | null | undefined;
|
|
21818
23748
|
invoice_number?: string | null | undefined;
|
|
@@ -21934,6 +23864,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21934
23864
|
product_id?: string | null | undefined;
|
|
21935
23865
|
product_code?: string | null | undefined;
|
|
21936
23866
|
product_name?: string | null | undefined;
|
|
23867
|
+
analytic_distribution: {
|
|
23868
|
+
analytic_plan_code: string;
|
|
23869
|
+
analytic_accounts: {
|
|
23870
|
+
analytic_account_code: string;
|
|
23871
|
+
analytic_account_name: string;
|
|
23872
|
+
percentage: number;
|
|
23873
|
+
}[];
|
|
23874
|
+
}[] | null;
|
|
21937
23875
|
}[];
|
|
21938
23876
|
partner_id?: string | null | undefined;
|
|
21939
23877
|
invoice_number?: string | null | undefined;
|
|
@@ -23512,14 +25450,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
23512
25450
|
reference: string;
|
|
23513
25451
|
reference_type: string;
|
|
23514
25452
|
holder_name?: string | null | undefined;
|
|
25453
|
+
active: boolean | null;
|
|
23515
25454
|
}[]>;
|
|
23516
|
-
getAccountTransactions(
|
|
25455
|
+
getAccountTransactions(params: {
|
|
23517
25456
|
date_from?: string | null | undefined;
|
|
23518
25457
|
date_to?: string | null | undefined;
|
|
25458
|
+
updated_after?: string | null | undefined;
|
|
25459
|
+
account_id: string;
|
|
23519
25460
|
date_type?: "value_date" | "execution_date" | null | undefined;
|
|
23520
|
-
}
|
|
25461
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
23521
25462
|
id: string;
|
|
23522
25463
|
amount: number;
|
|
25464
|
+
tax_amount?: number | null | undefined;
|
|
23523
25465
|
currency: string;
|
|
23524
25466
|
description?: string | null | undefined;
|
|
23525
25467
|
additional_information?: string | null | undefined;
|
|
@@ -23529,6 +25471,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
23529
25471
|
creation_date: string;
|
|
23530
25472
|
value_date: string;
|
|
23531
25473
|
execution_date: string;
|
|
25474
|
+
internal_transaction: boolean | null;
|
|
25475
|
+
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;
|
|
25476
|
+
last_update_on?: string | null | undefined;
|
|
25477
|
+
status?: "completed" | "pending" | "declined" | null | undefined;
|
|
25478
|
+
attachments_info?: {
|
|
25479
|
+
status: "unknown" | "yes" | "yes_to_request" | "no";
|
|
25480
|
+
attachments: {
|
|
25481
|
+
filename?: string | null | undefined;
|
|
25482
|
+
url?: string | null | undefined;
|
|
25483
|
+
}[] | null;
|
|
25484
|
+
} | undefined;
|
|
23532
25485
|
}[]>;
|
|
23533
25486
|
getAccountCounterparts(params?: {
|
|
23534
25487
|
date_from?: string | null | undefined;
|
|
@@ -23539,6 +25492,17 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
23539
25492
|
reference?: string | null | undefined;
|
|
23540
25493
|
details?: string | null | undefined;
|
|
23541
25494
|
}[]>;
|
|
25495
|
+
getAttachments(params: {
|
|
25496
|
+
transaction_id: string;
|
|
25497
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
25498
|
+
items: {
|
|
25499
|
+
id: string;
|
|
25500
|
+
base64_string: string;
|
|
25501
|
+
}[];
|
|
25502
|
+
total: number;
|
|
25503
|
+
page: number;
|
|
25504
|
+
size: number;
|
|
25505
|
+
}>;
|
|
23542
25506
|
}>;
|
|
23543
25507
|
getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
|
|
23544
25508
|
data: {
|
|
@@ -23578,6 +25542,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
23578
25542
|
source_id?: string | null | undefined;
|
|
23579
25543
|
target_id?: string | null | undefined;
|
|
23580
25544
|
}[];
|
|
25545
|
+
hidden_source_ids: string[];
|
|
23581
25546
|
sub_mapping_name: string;
|
|
23582
25547
|
sub_mapping_description?: string | null | undefined;
|
|
23583
25548
|
}[] | null | undefined;
|