@chift/chift-nodejs 1.0.26 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,8 @@ export declare class API {
29
29
  value: string;
30
30
  }[] | null | undefined;
31
31
  country?: string | null | undefined;
32
- } | undefined) => Promise<{
32
+ redirect: boolean | null;
33
+ } | null | undefined) => Promise<{
33
34
  url: string;
34
35
  }>;
35
36
  updateConnection: (connectionId: string, body?: {
@@ -48,6 +49,15 @@ export declare class API {
48
49
  };
49
50
  content?: undefined;
50
51
  }>;
52
+ getTransactionByClientRequestId: (connectionId: string, params: {
53
+ client_request_id: string;
54
+ }) => Promise<{
55
+ created_on: string;
56
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
57
+ route: string;
58
+ status_code: number;
59
+ created_entity_id?: string | null | undefined;
60
+ }>;
51
61
  enableFlow: (syncId: string, flowId: string, body: {
52
62
  integrationids: string[];
53
63
  triggerid: string | null;
@@ -104,6 +114,7 @@ export declare class API {
104
114
  total_refund: number | null;
105
115
  total_tip: number | null;
106
116
  delivery_fee: number | null;
117
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
107
118
  currency?: string | null | undefined;
108
119
  country?: string | null | undefined;
109
120
  loyalty?: number | null | undefined;
@@ -182,6 +193,7 @@ export declare class API {
182
193
  total_refund: number | null;
183
194
  total_tip: number | null;
184
195
  delivery_fee: number | null;
196
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
185
197
  currency?: string | null | undefined;
186
198
  country?: string | null | undefined;
187
199
  loyalty?: number | null | undefined;
@@ -370,6 +382,7 @@ export declare class API {
370
382
  total_refund: number | null;
371
383
  total_tip: number | null;
372
384
  delivery_fee: number | null;
385
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
373
386
  currency?: string | null | undefined;
374
387
  country?: string | null | undefined;
375
388
  loyalty?: number | null | undefined;
@@ -474,6 +487,7 @@ export declare class API {
474
487
  total_refund: number | null;
475
488
  total_tip: number | null;
476
489
  delivery_fee: number | null;
490
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
477
491
  currency?: string | null | undefined;
478
492
  country?: string | null | undefined;
479
493
  loyalty?: number | null | undefined;
@@ -653,6 +667,30 @@ export declare class API {
653
667
  country?: string | null | undefined;
654
668
  }[] | null | undefined;
655
669
  }[]>;
670
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
671
+ id: string;
672
+ source_ref: {
673
+ id?: string | null | undefined;
674
+ model?: string | null | undefined;
675
+ };
676
+ first_name?: string | null | undefined;
677
+ last_name?: string | null | undefined;
678
+ company_name?: string | null | undefined;
679
+ phone?: string | null | undefined;
680
+ email?: string | null | undefined;
681
+ account_number?: string | null | undefined;
682
+ created_on?: string | null | undefined;
683
+ addresses?: {
684
+ address_type?: string | null | undefined;
685
+ name?: string | null | undefined;
686
+ street?: string | null | undefined;
687
+ number?: string | null | undefined;
688
+ box?: string | null | undefined;
689
+ city?: string | null | undefined;
690
+ postal_code?: string | null | undefined;
691
+ country?: string | null | undefined;
692
+ }[] | null | undefined;
693
+ }>;
656
694
  getInvoices(params?: {
657
695
  date_from: string;
658
696
  date_to: string;
@@ -755,6 +793,20 @@ export declare class API {
755
793
  untaxed_amount: number;
756
794
  total: number;
757
795
  }[]>;
796
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
797
+ items: {
798
+ id: string;
799
+ source_ref: {
800
+ id?: string | null | undefined;
801
+ model?: string | null | undefined;
802
+ };
803
+ label?: string | null | undefined;
804
+ rate?: number | null | undefined;
805
+ }[];
806
+ total: number;
807
+ page: number;
808
+ size: number;
809
+ }>;
758
810
  }>;
759
811
  payment: import("../types/api").ApiFor<{
760
812
  getPayments(params: {
@@ -888,6 +940,7 @@ export declare class API {
888
940
  postal_code?: string | null | undefined;
889
941
  country?: string | null | undefined;
890
942
  }[] | null;
943
+ third_party_account?: string | null | undefined;
891
944
  }[]>;
892
945
  createClient(client: {
893
946
  external_reference?: string | null | undefined;
@@ -961,6 +1014,7 @@ export declare class API {
961
1014
  postal_code?: string | null | undefined;
962
1015
  country?: string | null | undefined;
963
1016
  }[] | null;
1017
+ third_party_account?: string | null | undefined;
964
1018
  }>;
965
1019
  getClient(clientId: string, params?: {
966
1020
  folder_id?: string | null | undefined;
@@ -1000,6 +1054,7 @@ export declare class API {
1000
1054
  postal_code?: string | null | undefined;
1001
1055
  country?: string | null | undefined;
1002
1056
  }[] | null;
1057
+ third_party_account?: string | null | undefined;
1003
1058
  }>;
1004
1059
  updateClient(clientId: string, client: {
1005
1060
  external_reference?: string | null | undefined;
@@ -1071,6 +1126,7 @@ export declare class API {
1071
1126
  postal_code?: string | null | undefined;
1072
1127
  country?: string | null | undefined;
1073
1128
  }[] | null;
1129
+ third_party_account?: string | null | undefined;
1074
1130
  }>;
1075
1131
  getSuppliers(params?: {
1076
1132
  search?: string | null | undefined;
@@ -1112,6 +1168,7 @@ export declare class API {
1112
1168
  postal_code?: string | null | undefined;
1113
1169
  country?: string | null | undefined;
1114
1170
  }[] | null;
1171
+ third_party_account?: string | null | undefined;
1115
1172
  }[]>;
1116
1173
  createSupplier(supplier: {
1117
1174
  external_reference?: string | null | undefined;
@@ -1185,6 +1242,7 @@ export declare class API {
1185
1242
  postal_code?: string | null | undefined;
1186
1243
  country?: string | null | undefined;
1187
1244
  }[] | null;
1245
+ third_party_account?: string | null | undefined;
1188
1246
  }>;
1189
1247
  getSupplier(supplierId: string, params?: {
1190
1248
  folder_id?: string | null | undefined;
@@ -1224,6 +1282,7 @@ export declare class API {
1224
1282
  postal_code?: string | null | undefined;
1225
1283
  country?: string | null | undefined;
1226
1284
  }[] | null;
1285
+ third_party_account?: string | null | undefined;
1227
1286
  }>;
1228
1287
  updateSupplier(supplierId: string, supplier: {
1229
1288
  external_reference?: string | null | undefined;
@@ -1295,6 +1354,7 @@ export declare class API {
1295
1354
  postal_code?: string | null | undefined;
1296
1355
  country?: string | null | undefined;
1297
1356
  }[] | null;
1357
+ third_party_account?: string | null | undefined;
1298
1358
  }>;
1299
1359
  createInvoice(invoice: {
1300
1360
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
@@ -1306,6 +1366,12 @@ export declare class API {
1306
1366
  reference?: string | null | undefined;
1307
1367
  payment_communication?: string | null | undefined;
1308
1368
  customer_memo?: string | null | undefined;
1369
+ payment_term_id?: string | null | undefined;
1370
+ withholding_tax?: {
1371
+ tax_rate: number;
1372
+ tax_code: string;
1373
+ tax_amount: number;
1374
+ } | null | undefined;
1309
1375
  invoice_date: string;
1310
1376
  due_date: string;
1311
1377
  partner_id?: string | null | undefined;
@@ -1348,10 +1414,15 @@ export declare class API {
1348
1414
  description: string;
1349
1415
  analytic_account?: string | null | undefined;
1350
1416
  }[];
1417
+ start_date?: string | null | undefined;
1418
+ end_date?: string | null | undefined;
1419
+ payment_method_id?: string | null | undefined;
1351
1420
  }, params?: {
1352
1421
  folder_id?: string | null | undefined;
1353
1422
  force_financial_period?: string | null | undefined;
1354
1423
  regroup_lines?: "true" | "false" | null | undefined;
1424
+ ignore_accounting_id?: boolean | undefined;
1425
+ force_currency_exchange?: boolean | null | undefined;
1355
1426
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1356
1427
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1357
1428
  invoice_number?: string | null | undefined;
@@ -1362,10 +1433,16 @@ export declare class API {
1362
1433
  reference?: string | null | undefined;
1363
1434
  payment_communication?: string | null | undefined;
1364
1435
  customer_memo?: string | null | undefined;
1436
+ payment_term_id?: string | null | undefined;
1437
+ withholding_tax?: {
1438
+ tax_rate: number;
1439
+ tax_code: string;
1440
+ tax_amount: number;
1441
+ } | null | undefined;
1365
1442
  id?: string | null | undefined;
1366
1443
  invoice_date: string;
1367
1444
  due_date: string;
1368
- partner_id: string;
1445
+ partner_id: string | null;
1369
1446
  journal_id?: string | null | undefined;
1370
1447
  payments?: {
1371
1448
  id: string;
@@ -1419,12 +1496,27 @@ export declare class API {
1419
1496
  postal_code?: string | null | undefined;
1420
1497
  country?: string | null | undefined;
1421
1498
  }[] | null;
1499
+ third_party_account?: string | null | undefined;
1422
1500
  } | null | undefined;
1423
1501
  due_dates: {
1424
1502
  due_date: string;
1425
1503
  payment_method?: string | null | undefined;
1504
+ payment_method_id?: string | null | undefined;
1426
1505
  amount: number;
1427
1506
  }[] | null;
1507
+ attachments_info?: {
1508
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1509
+ attachments: {
1510
+ filename?: string | null | undefined;
1511
+ url?: string | null | undefined;
1512
+ }[] | null;
1513
+ } | undefined;
1514
+ accounting_info?: {
1515
+ main_currency?: string | undefined;
1516
+ main_currency_total: number;
1517
+ account_number?: string | null | undefined;
1518
+ } | null | undefined;
1519
+ payment_method_id?: string | null | undefined;
1428
1520
  lines: {
1429
1521
  line_number: number | null;
1430
1522
  unit_price: number;
@@ -1450,6 +1542,12 @@ export declare class API {
1450
1542
  reference?: string | null | undefined;
1451
1543
  payment_communication?: string | null | undefined;
1452
1544
  customer_memo?: string | null | undefined;
1545
+ payment_term_id?: string | null | undefined;
1546
+ withholding_tax?: {
1547
+ tax_rate: number;
1548
+ tax_code: string;
1549
+ tax_amount: number;
1550
+ } | null | undefined;
1453
1551
  invoice_date: string;
1454
1552
  due_date: string;
1455
1553
  partner_id?: string | null | undefined;
@@ -1498,10 +1596,15 @@ export declare class API {
1498
1596
  }[];
1499
1597
  }[] | null;
1500
1598
  }[];
1599
+ start_date?: string | null | undefined;
1600
+ end_date?: string | null | undefined;
1601
+ payment_method_id?: string | null | undefined;
1501
1602
  }, params?: {
1502
1603
  folder_id?: string | null | undefined;
1503
1604
  force_financial_period?: string | null | undefined;
1504
1605
  regroup_lines?: "true" | "false" | null | undefined;
1606
+ ignore_accounting_id?: boolean | undefined;
1607
+ force_currency_exchange?: boolean | null | undefined;
1505
1608
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1506
1609
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1507
1610
  invoice_number?: string | null | undefined;
@@ -1512,10 +1615,16 @@ export declare class API {
1512
1615
  reference?: string | null | undefined;
1513
1616
  payment_communication?: string | null | undefined;
1514
1617
  customer_memo?: string | null | undefined;
1618
+ payment_term_id?: string | null | undefined;
1619
+ withholding_tax?: {
1620
+ tax_rate: number;
1621
+ tax_code: string;
1622
+ tax_amount: number;
1623
+ } | null | undefined;
1515
1624
  id?: string | null | undefined;
1516
1625
  invoice_date: string;
1517
1626
  due_date: string;
1518
- partner_id: string;
1627
+ partner_id: string | null;
1519
1628
  journal_id?: string | null | undefined;
1520
1629
  payments?: {
1521
1630
  id: string;
@@ -1569,12 +1678,27 @@ export declare class API {
1569
1678
  postal_code?: string | null | undefined;
1570
1679
  country?: string | null | undefined;
1571
1680
  }[] | null;
1681
+ third_party_account?: string | null | undefined;
1572
1682
  } | null | undefined;
1573
1683
  due_dates: {
1574
1684
  due_date: string;
1575
1685
  payment_method?: string | null | undefined;
1686
+ payment_method_id?: string | null | undefined;
1576
1687
  amount: number;
1577
1688
  }[] | null;
1689
+ attachments_info?: {
1690
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1691
+ attachments: {
1692
+ filename?: string | null | undefined;
1693
+ url?: string | null | undefined;
1694
+ }[] | null;
1695
+ } | undefined;
1696
+ accounting_info?: {
1697
+ main_currency?: string | undefined;
1698
+ main_currency_total: number;
1699
+ account_number?: string | null | undefined;
1700
+ } | null | undefined;
1701
+ payment_method_id?: string | null | undefined;
1578
1702
  lines: {
1579
1703
  line_number: number | null;
1580
1704
  unit_price: number;
@@ -1616,10 +1740,16 @@ export declare class API {
1616
1740
  reference?: string | null | undefined;
1617
1741
  payment_communication?: string | null | undefined;
1618
1742
  customer_memo?: string | null | undefined;
1743
+ payment_term_id?: string | null | undefined;
1744
+ withholding_tax?: {
1745
+ tax_rate: number;
1746
+ tax_code: string;
1747
+ tax_amount: number;
1748
+ } | null | undefined;
1619
1749
  id?: string | null | undefined;
1620
1750
  invoice_date: string;
1621
1751
  due_date: string;
1622
- partner_id: string;
1752
+ partner_id: string | null;
1623
1753
  journal_id?: string | null | undefined;
1624
1754
  payments?: {
1625
1755
  id: string;
@@ -1673,12 +1803,27 @@ export declare class API {
1673
1803
  postal_code?: string | null | undefined;
1674
1804
  country?: string | null | undefined;
1675
1805
  }[] | null;
1806
+ third_party_account?: string | null | undefined;
1676
1807
  } | null | undefined;
1677
1808
  due_dates: {
1678
1809
  due_date: string;
1679
1810
  payment_method?: string | null | undefined;
1811
+ payment_method_id?: string | null | undefined;
1680
1812
  amount: number;
1681
1813
  }[] | null;
1814
+ attachments_info?: {
1815
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1816
+ attachments: {
1817
+ filename?: string | null | undefined;
1818
+ url?: string | null | undefined;
1819
+ }[] | null;
1820
+ } | undefined;
1821
+ accounting_info?: {
1822
+ main_currency?: string | undefined;
1823
+ main_currency_total: number;
1824
+ account_number?: string | null | undefined;
1825
+ } | null | undefined;
1826
+ payment_method_id?: string | null | undefined;
1682
1827
  lines: {
1683
1828
  line_number: number | null;
1684
1829
  unit_price: number;
@@ -1709,10 +1854,16 @@ export declare class API {
1709
1854
  reference?: string | null | undefined;
1710
1855
  payment_communication?: string | null | undefined;
1711
1856
  customer_memo?: string | null | undefined;
1857
+ payment_term_id?: string | null | undefined;
1858
+ withholding_tax?: {
1859
+ tax_rate: number;
1860
+ tax_code: string;
1861
+ tax_amount: number;
1862
+ } | null | undefined;
1712
1863
  id?: string | null | undefined;
1713
1864
  invoice_date: string;
1714
1865
  due_date: string;
1715
- partner_id: string;
1866
+ partner_id: string | null;
1716
1867
  journal_id?: string | null | undefined;
1717
1868
  payments?: {
1718
1869
  id: string;
@@ -1766,12 +1917,27 @@ export declare class API {
1766
1917
  postal_code?: string | null | undefined;
1767
1918
  country?: string | null | undefined;
1768
1919
  }[] | null;
1920
+ third_party_account?: string | null | undefined;
1769
1921
  } | null | undefined;
1770
1922
  due_dates: {
1771
1923
  due_date: string;
1772
1924
  payment_method?: string | null | undefined;
1925
+ payment_method_id?: string | null | undefined;
1773
1926
  amount: number;
1774
1927
  }[] | null;
1928
+ attachments_info?: {
1929
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1930
+ attachments: {
1931
+ filename?: string | null | undefined;
1932
+ url?: string | null | undefined;
1933
+ }[] | null;
1934
+ } | undefined;
1935
+ accounting_info?: {
1936
+ main_currency?: string | undefined;
1937
+ main_currency_total: number;
1938
+ account_number?: string | null | undefined;
1939
+ } | null | undefined;
1940
+ payment_method_id?: string | null | undefined;
1775
1941
  lines: {
1776
1942
  line_number: number | null;
1777
1943
  unit_price: number;
@@ -1802,10 +1968,16 @@ export declare class API {
1802
1968
  reference?: string | null | undefined;
1803
1969
  payment_communication?: string | null | undefined;
1804
1970
  customer_memo?: string | null | undefined;
1971
+ payment_term_id?: string | null | undefined;
1972
+ withholding_tax?: {
1973
+ tax_rate: number;
1974
+ tax_code: string;
1975
+ tax_amount: number;
1976
+ } | null | undefined;
1805
1977
  id?: string | null | undefined;
1806
1978
  invoice_date: string;
1807
1979
  due_date: string;
1808
- partner_id: string;
1980
+ partner_id: string | null;
1809
1981
  journal_id?: string | null | undefined;
1810
1982
  payments?: {
1811
1983
  id: string;
@@ -1859,12 +2031,27 @@ export declare class API {
1859
2031
  postal_code?: string | null | undefined;
1860
2032
  country?: string | null | undefined;
1861
2033
  }[] | null;
2034
+ third_party_account?: string | null | undefined;
1862
2035
  } | null | undefined;
1863
2036
  due_dates: {
1864
2037
  due_date: string;
1865
2038
  payment_method?: string | null | undefined;
2039
+ payment_method_id?: string | null | undefined;
1866
2040
  amount: number;
1867
2041
  }[] | null;
2042
+ attachments_info?: {
2043
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2044
+ attachments: {
2045
+ filename?: string | null | undefined;
2046
+ url?: string | null | undefined;
2047
+ }[] | null;
2048
+ } | undefined;
2049
+ accounting_info?: {
2050
+ main_currency?: string | undefined;
2051
+ main_currency_total: number;
2052
+ account_number?: string | null | undefined;
2053
+ } | null | undefined;
2054
+ payment_method_id?: string | null | undefined;
1868
2055
  lines: {
1869
2056
  line_number: number | null;
1870
2057
  unit_price: number;
@@ -1906,10 +2093,16 @@ export declare class API {
1906
2093
  reference?: string | null | undefined;
1907
2094
  payment_communication?: string | null | undefined;
1908
2095
  customer_memo?: string | null | undefined;
2096
+ payment_term_id?: string | null | undefined;
2097
+ withholding_tax?: {
2098
+ tax_rate: number;
2099
+ tax_code: string;
2100
+ tax_amount: number;
2101
+ } | null | undefined;
1909
2102
  id?: string | null | undefined;
1910
2103
  invoice_date: string;
1911
2104
  due_date: string;
1912
- partner_id: string;
2105
+ partner_id: string | null;
1913
2106
  journal_id?: string | null | undefined;
1914
2107
  payments?: {
1915
2108
  id: string;
@@ -1963,12 +2156,27 @@ export declare class API {
1963
2156
  postal_code?: string | null | undefined;
1964
2157
  country?: string | null | undefined;
1965
2158
  }[] | null;
2159
+ third_party_account?: string | null | undefined;
1966
2160
  } | null | undefined;
1967
2161
  due_dates: {
1968
2162
  due_date: string;
1969
2163
  payment_method?: string | null | undefined;
2164
+ payment_method_id?: string | null | undefined;
1970
2165
  amount: number;
1971
2166
  }[] | null;
2167
+ attachments_info?: {
2168
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2169
+ attachments: {
2170
+ filename?: string | null | undefined;
2171
+ url?: string | null | undefined;
2172
+ }[] | null;
2173
+ } | undefined;
2174
+ accounting_info?: {
2175
+ main_currency?: string | undefined;
2176
+ main_currency_total: number;
2177
+ account_number?: string | null | undefined;
2178
+ } | null | undefined;
2179
+ payment_method_id?: string | null | undefined;
1972
2180
  lines: {
1973
2181
  line_number: number | null;
1974
2182
  unit_price: number;
@@ -2116,7 +2324,7 @@ export declare class API {
2116
2324
  folder_id?: string | null | undefined;
2117
2325
  updated_after?: string | null | undefined;
2118
2326
  unposted_allowed: "true" | "false";
2119
- journal_id: string;
2327
+ journal_id?: string | null | undefined;
2120
2328
  partner_id?: string | null | undefined;
2121
2329
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2122
2330
  reference?: string | null | undefined;
@@ -2130,9 +2338,17 @@ export declare class API {
2130
2338
  due_dates: {
2131
2339
  due_date: string;
2132
2340
  payment_method?: string | null | undefined;
2341
+ payment_method_id?: string | null | undefined;
2133
2342
  debit: number | null;
2134
2343
  credit: number | null;
2135
2344
  }[] | null;
2345
+ attachments_info?: {
2346
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2347
+ attachments: {
2348
+ filename?: string | null | undefined;
2349
+ url?: string | null | undefined;
2350
+ }[] | null;
2351
+ } | undefined;
2136
2352
  items: {
2137
2353
  account_number: string;
2138
2354
  partner_id?: string | null | undefined;
@@ -2155,7 +2371,7 @@ export declare class API {
2155
2371
  folder_id?: string | null | undefined;
2156
2372
  updated_after?: string | null | undefined;
2157
2373
  unposted_allowed: "true" | "false";
2158
- journal_id: string;
2374
+ journal_id?: string | null | undefined;
2159
2375
  partner_id?: string | null | undefined;
2160
2376
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2161
2377
  reference?: string | null | undefined;
@@ -2169,9 +2385,17 @@ export declare class API {
2169
2385
  due_dates: {
2170
2386
  due_date: string;
2171
2387
  payment_method?: string | null | undefined;
2388
+ payment_method_id?: string | null | undefined;
2172
2389
  debit: number | null;
2173
2390
  credit: number | null;
2174
2391
  }[] | null;
2392
+ attachments_info?: {
2393
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2394
+ attachments: {
2395
+ filename?: string | null | undefined;
2396
+ url?: string | null | undefined;
2397
+ }[] | null;
2398
+ } | undefined;
2175
2399
  items: {
2176
2400
  account_number: string;
2177
2401
  partner_id?: string | null | undefined;
@@ -2261,6 +2485,7 @@ export declare class API {
2261
2485
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2262
2486
  id: string;
2263
2487
  code?: string | null | undefined;
2488
+ active: boolean | null;
2264
2489
  label: string;
2265
2490
  scope: "unknown" | "nat" | "eu" | "int" | null;
2266
2491
  rate: number;
@@ -2268,6 +2493,7 @@ export declare class API {
2268
2493
  deductible_account?: string | null | undefined;
2269
2494
  payable_account?: string | null | undefined;
2270
2495
  reversed: boolean | null;
2496
+ withholding_tax: boolean | null;
2271
2497
  country?: string | null | undefined;
2272
2498
  }[]>;
2273
2499
  getMiscOperations(params?: {
@@ -2370,12 +2596,14 @@ export declare class API {
2370
2596
  getChartOfAccounts(params?: {
2371
2597
  folder_id?: string | null | undefined;
2372
2598
  classes?: string | null | undefined;
2373
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
2599
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
2374
2600
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2375
2601
  number: string;
2376
2602
  name: string;
2377
2603
  active: boolean | null;
2378
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
2604
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
2605
+ scheme_ids?: string[] | null | undefined;
2606
+ accounting_category?: string | null | undefined;
2379
2607
  }[]>;
2380
2608
  getBalanceOfAccounts(filter: {
2381
2609
  accounts: string[];
@@ -2451,11 +2679,13 @@ export declare class API {
2451
2679
  account: string;
2452
2680
  amount: number;
2453
2681
  description?: string | null | undefined;
2682
+ automated_matching_number?: string | null | undefined;
2454
2683
  }[];
2455
2684
  pdf?: string | null | undefined;
2456
2685
  }, params?: {
2457
2686
  folder_id?: string | null | undefined;
2458
2687
  financial_counterpart_account?: string | null | undefined;
2688
+ force_currency_exchange?: boolean | null | undefined;
2459
2689
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2460
2690
  date: string;
2461
2691
  journal_id: string;
@@ -2469,6 +2699,7 @@ export declare class API {
2469
2699
  account: string;
2470
2700
  amount: number;
2471
2701
  description?: string | null | undefined;
2702
+ automated_matching_number?: string | null | undefined;
2472
2703
  counterpart_account: string;
2473
2704
  }[];
2474
2705
  }>;
@@ -2496,6 +2727,13 @@ export declare class API {
2496
2727
  }[];
2497
2728
  }[] | null;
2498
2729
  tax_code?: string | null | undefined;
2730
+ tax_info?: {
2731
+ tax_code: string;
2732
+ tax_amount: number;
2733
+ vat_account?: string | null | undefined;
2734
+ reversed_vat_account?: string | null | undefined;
2735
+ description?: string | null | undefined;
2736
+ } | null | undefined;
2499
2737
  account_info?: {
2500
2738
  account_number: string;
2501
2739
  account_name: string;
@@ -2508,6 +2746,7 @@ export declare class API {
2508
2746
  }, params?: {
2509
2747
  folder_id?: string | null | undefined;
2510
2748
  force_currency_exchange?: "true" | "false" | null | undefined;
2749
+ ignore_accounting_id?: boolean | undefined;
2511
2750
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2512
2751
  reference?: string | null | undefined;
2513
2752
  due_date?: string | null | undefined;
@@ -2520,9 +2759,17 @@ export declare class API {
2520
2759
  due_dates: {
2521
2760
  due_date: string;
2522
2761
  payment_method?: string | null | undefined;
2762
+ payment_method_id?: string | null | undefined;
2523
2763
  debit: number | null;
2524
2764
  credit: number | null;
2525
2765
  }[] | null;
2766
+ attachments_info?: {
2767
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2768
+ attachments: {
2769
+ filename?: string | null | undefined;
2770
+ url?: string | null | undefined;
2771
+ }[] | null;
2772
+ } | undefined;
2526
2773
  items: {
2527
2774
  account_number: string;
2528
2775
  partner_id?: string | null | undefined;
@@ -2638,14 +2885,35 @@ export declare class API {
2638
2885
  createLedgerAccount(account: {
2639
2886
  name: string;
2640
2887
  number: string;
2641
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
2888
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
2642
2889
  }, params?: {
2643
2890
  folder_id?: string | null | undefined;
2644
2891
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2645
2892
  number: string;
2646
2893
  name: string;
2647
2894
  active: boolean | null;
2648
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
2895
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
2896
+ scheme_ids?: string[] | null | undefined;
2897
+ accounting_category?: string | null | undefined;
2898
+ }>;
2899
+ getBankAccounts(params?: {
2900
+ folder_id?: string | null | undefined;
2901
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2902
+ items: {
2903
+ id: string;
2904
+ code?: string | null | undefined;
2905
+ currency?: string | null | undefined;
2906
+ account_name?: string | null | undefined;
2907
+ account_number?: string | null | undefined;
2908
+ iban?: string | null | undefined;
2909
+ bank_name?: string | null | undefined;
2910
+ journal_id?: string | null | undefined;
2911
+ ledger_account?: string | null | undefined;
2912
+ unallocated_account?: string | null | undefined;
2913
+ }[];
2914
+ total: number;
2915
+ page: number;
2916
+ size: number;
2649
2917
  }>;
2650
2918
  createBankAccount(bankAccount: {
2651
2919
  code: string;
@@ -2668,6 +2936,45 @@ export declare class API {
2668
2936
  ledger_account?: string | null | undefined;
2669
2937
  unallocated_account?: string | null | undefined;
2670
2938
  }>;
2939
+ createBankTransactions(bankStatement: {
2940
+ bank_statement_date: string;
2941
+ bank_account_id: string;
2942
+ external_bank_statement_id: string;
2943
+ opening_balance?: number | null | undefined;
2944
+ pdf?: string | null | undefined;
2945
+ items: {
2946
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
2947
+ account?: string | null | undefined;
2948
+ description?: string | null | undefined;
2949
+ external_transaction_id?: string | null | undefined;
2950
+ date: string;
2951
+ amount: number;
2952
+ fee_amount: number | null;
2953
+ tax_amount: number | null;
2954
+ currency: string;
2955
+ currency_exchange_rate: number | null;
2956
+ }[];
2957
+ }, params?: {
2958
+ folder_id?: string | null | undefined;
2959
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2960
+ bank_statement_date: string;
2961
+ bank_account_id: string;
2962
+ id?: string | null | undefined;
2963
+ external_bank_statement_id?: string | null | undefined;
2964
+ items: {
2965
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
2966
+ account?: string | null | undefined;
2967
+ description?: string | null | undefined;
2968
+ external_transaction_id?: string | null | undefined;
2969
+ date: string;
2970
+ amount: number;
2971
+ fee_amount: number | null;
2972
+ tax_amount: number | null;
2973
+ currency: string;
2974
+ currency_exchange_rate: number | null;
2975
+ id?: string | null | undefined;
2976
+ }[];
2977
+ }>;
2671
2978
  getJournalEntry(journalEntryId: string, params?: {
2672
2979
  folder_id?: string | null | undefined;
2673
2980
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -2682,9 +2989,17 @@ export declare class API {
2682
2989
  due_dates: {
2683
2990
  due_date: string;
2684
2991
  payment_method?: string | null | undefined;
2992
+ payment_method_id?: string | null | undefined;
2685
2993
  debit: number | null;
2686
2994
  credit: number | null;
2687
2995
  }[] | null;
2996
+ attachments_info?: {
2997
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2998
+ attachments: {
2999
+ filename?: string | null | undefined;
3000
+ url?: string | null | undefined;
3001
+ }[] | null;
3002
+ } | undefined;
2688
3003
  items: {
2689
3004
  account_number: string;
2690
3005
  partner_id?: string | null | undefined;
@@ -2719,6 +3034,29 @@ export declare class API {
2719
3034
  page: number;
2720
3035
  size: number;
2721
3036
  }>;
3037
+ getPaymentTerms(params?: {
3038
+ folder_id?: string | null | undefined;
3039
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3040
+ items: {
3041
+ id: string;
3042
+ name?: string | null | undefined;
3043
+ }[];
3044
+ total: number;
3045
+ page: number;
3046
+ size: number;
3047
+ }>;
3048
+ getSchemes(params?: {
3049
+ folder_id?: string | null | undefined;
3050
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3051
+ items: {
3052
+ id: string;
3053
+ code: string;
3054
+ name: string;
3055
+ }[];
3056
+ total: number;
3057
+ page: number;
3058
+ size: number;
3059
+ }>;
2722
3060
  createInvoicePayment(body: {
2723
3061
  date: string;
2724
3062
  payment_method_id: string;
@@ -2738,6 +3076,29 @@ export declare class API {
2738
3076
  };
2739
3077
  content?: undefined;
2740
3078
  }>;
3079
+ exportFec(params: {
3080
+ folder_id?: string | null | undefined;
3081
+ date_from: string;
3082
+ date_to: string;
3083
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3084
+ JournalCode: string;
3085
+ JournalLib: string;
3086
+ EcritureNum: string;
3087
+ EcritureDate: string;
3088
+ CompteNum: string;
3089
+ CompteLib: string;
3090
+ CompAuxNum: string;
3091
+ CompAuxLib: string;
3092
+ PieceRef: string;
3093
+ PieceDate: string;
3094
+ Debit: number;
3095
+ Credit: number;
3096
+ EcritureLet: string;
3097
+ DateLet: string | null;
3098
+ ValidDate: string | null;
3099
+ Montantdevise: number;
3100
+ Idevise: string;
3101
+ }[]>;
2741
3102
  }>;
2742
3103
  invoicing: import("../types/api").ApiFor<{
2743
3104
  getInvoices(params?: {
@@ -2747,6 +3108,7 @@ export declare class API {
2747
3108
  updated_after?: string | null | undefined;
2748
3109
  include_invoice_lines?: "true" | "false" | null | undefined;
2749
3110
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
3111
+ include_analytic_accounts?: "true" | "false" | null | undefined;
2750
3112
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2751
3113
  id: string;
2752
3114
  source_ref: {
@@ -2776,6 +3138,14 @@ export declare class API {
2776
3138
  product_id?: string | null | undefined;
2777
3139
  product_code?: string | null | undefined;
2778
3140
  product_name?: string | null | undefined;
3141
+ analytic_distribution: {
3142
+ analytic_plan_code: string;
3143
+ analytic_accounts: {
3144
+ analytic_account_code: string;
3145
+ analytic_account_name: string;
3146
+ percentage: number;
3147
+ }[];
3148
+ }[] | null;
2779
3149
  }[];
2780
3150
  partner_id?: string | null | undefined;
2781
3151
  invoice_number?: string | null | undefined;
@@ -2815,6 +3185,7 @@ export declare class API {
2815
3185
  }[]>;
2816
3186
  getInvoiceById(invoiceId: string, params?: {
2817
3187
  include_pdf?: "true" | "false" | null | undefined;
3188
+ include_analytic_accounts?: "true" | "false" | null | undefined;
2818
3189
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2819
3190
  id: string;
2820
3191
  source_ref: {
@@ -2844,6 +3215,14 @@ export declare class API {
2844
3215
  product_id?: string | null | undefined;
2845
3216
  product_code?: string | null | undefined;
2846
3217
  product_name?: string | null | undefined;
3218
+ analytic_distribution: {
3219
+ analytic_plan_code: string;
3220
+ analytic_accounts: {
3221
+ analytic_account_code: string;
3222
+ analytic_account_name: string;
3223
+ percentage: number;
3224
+ }[];
3225
+ }[] | null;
2847
3226
  }[];
2848
3227
  partner_id?: string | null | undefined;
2849
3228
  invoice_number?: string | null | undefined;
@@ -2965,6 +3344,14 @@ export declare class API {
2965
3344
  product_id?: string | null | undefined;
2966
3345
  product_code?: string | null | undefined;
2967
3346
  product_name?: string | null | undefined;
3347
+ analytic_distribution: {
3348
+ analytic_plan_code: string;
3349
+ analytic_accounts: {
3350
+ analytic_account_code: string;
3351
+ analytic_account_name: string;
3352
+ percentage: number;
3353
+ }[];
3354
+ }[] | null;
2968
3355
  }[];
2969
3356
  partner_id?: string | null | undefined;
2970
3357
  invoice_number?: string | null | undefined;
@@ -4543,14 +4930,18 @@ export declare class API {
4543
4930
  reference: string;
4544
4931
  reference_type: string;
4545
4932
  holder_name?: string | null | undefined;
4933
+ active: boolean | null;
4546
4934
  }[]>;
4547
- getAccountTransactions(accountId: string, params?: {
4935
+ getAccountTransactions(params: {
4548
4936
  date_from?: string | null | undefined;
4549
4937
  date_to?: string | null | undefined;
4938
+ updated_after?: string | null | undefined;
4939
+ account_id: string;
4550
4940
  date_type?: "value_date" | "execution_date" | null | undefined;
4551
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4941
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4552
4942
  id: string;
4553
4943
  amount: number;
4944
+ tax_amount?: number | null | undefined;
4554
4945
  currency: string;
4555
4946
  description?: string | null | undefined;
4556
4947
  additional_information?: string | null | undefined;
@@ -4560,6 +4951,17 @@ export declare class API {
4560
4951
  creation_date: string;
4561
4952
  value_date: string;
4562
4953
  execution_date: string;
4954
+ internal_transaction: boolean | null;
4955
+ 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;
4956
+ last_update_on?: string | null | undefined;
4957
+ status?: "completed" | "pending" | "declined" | null | undefined;
4958
+ attachments_info?: {
4959
+ status: "unknown" | "yes" | "yes_to_request" | "no";
4960
+ attachments: {
4961
+ filename?: string | null | undefined;
4962
+ url?: string | null | undefined;
4963
+ }[] | null;
4964
+ } | undefined;
4563
4965
  }[]>;
4564
4966
  getAccountCounterparts(params?: {
4565
4967
  date_from?: string | null | undefined;
@@ -4570,6 +4972,17 @@ export declare class API {
4570
4972
  reference?: string | null | undefined;
4571
4973
  details?: string | null | undefined;
4572
4974
  }[]>;
4975
+ getAttachments(params: {
4976
+ transaction_id: string;
4977
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4978
+ items: {
4979
+ id: string;
4980
+ base64_string: string;
4981
+ }[];
4982
+ total: number;
4983
+ page: number;
4984
+ size: number;
4985
+ }>;
4573
4986
  }>;
4574
4987
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
4575
4988
  data: {
@@ -4609,6 +5022,7 @@ export declare class API {
4609
5022
  source_id?: string | null | undefined;
4610
5023
  target_id?: string | null | undefined;
4611
5024
  }[];
5025
+ hidden_source_ids: string[];
4612
5026
  sub_mapping_name: string;
4613
5027
  sub_mapping_description?: string | null | undefined;
4614
5028
  }[] | null | undefined;
@@ -4777,7 +5191,8 @@ export declare class API {
4777
5191
  value: string;
4778
5192
  }[] | null | undefined;
4779
5193
  country?: string | null | undefined;
4780
- } | undefined) => Promise<{
5194
+ redirect: boolean | null;
5195
+ } | null | undefined) => Promise<{
4781
5196
  url: string;
4782
5197
  }>;
4783
5198
  updateConnection: (connectionId: string, body?: {
@@ -4796,6 +5211,15 @@ export declare class API {
4796
5211
  };
4797
5212
  content?: undefined;
4798
5213
  }>;
5214
+ getTransactionByClientRequestId: (connectionId: string, params: {
5215
+ client_request_id: string;
5216
+ }) => Promise<{
5217
+ created_on: string;
5218
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
5219
+ route: string;
5220
+ status_code: number;
5221
+ created_entity_id?: string | null | undefined;
5222
+ }>;
4799
5223
  enableFlow: (syncId: string, flowId: string, body: {
4800
5224
  integrationids: string[];
4801
5225
  triggerid: string | null;
@@ -4852,6 +5276,7 @@ export declare class API {
4852
5276
  total_refund: number | null;
4853
5277
  total_tip: number | null;
4854
5278
  delivery_fee: number | null;
5279
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
4855
5280
  currency?: string | null | undefined;
4856
5281
  country?: string | null | undefined;
4857
5282
  loyalty?: number | null | undefined;
@@ -4930,6 +5355,7 @@ export declare class API {
4930
5355
  total_refund: number | null;
4931
5356
  total_tip: number | null;
4932
5357
  delivery_fee: number | null;
5358
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
4933
5359
  currency?: string | null | undefined;
4934
5360
  country?: string | null | undefined;
4935
5361
  loyalty?: number | null | undefined;
@@ -5118,6 +5544,7 @@ export declare class API {
5118
5544
  total_refund: number | null;
5119
5545
  total_tip: number | null;
5120
5546
  delivery_fee: number | null;
5547
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
5121
5548
  currency?: string | null | undefined;
5122
5549
  country?: string | null | undefined;
5123
5550
  loyalty?: number | null | undefined;
@@ -5222,6 +5649,7 @@ export declare class API {
5222
5649
  total_refund: number | null;
5223
5650
  total_tip: number | null;
5224
5651
  delivery_fee: number | null;
5652
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
5225
5653
  currency?: string | null | undefined;
5226
5654
  country?: string | null | undefined;
5227
5655
  loyalty?: number | null | undefined;
@@ -5401,6 +5829,30 @@ export declare class API {
5401
5829
  country?: string | null | undefined;
5402
5830
  }[] | null | undefined;
5403
5831
  }[]>;
5832
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
5833
+ id: string;
5834
+ source_ref: {
5835
+ id?: string | null | undefined;
5836
+ model?: string | null | undefined;
5837
+ };
5838
+ first_name?: string | null | undefined;
5839
+ last_name?: string | null | undefined;
5840
+ company_name?: string | null | undefined;
5841
+ phone?: string | null | undefined;
5842
+ email?: string | null | undefined;
5843
+ account_number?: string | null | undefined;
5844
+ created_on?: string | null | undefined;
5845
+ addresses?: {
5846
+ address_type?: string | null | undefined;
5847
+ name?: string | null | undefined;
5848
+ street?: string | null | undefined;
5849
+ number?: string | null | undefined;
5850
+ box?: string | null | undefined;
5851
+ city?: string | null | undefined;
5852
+ postal_code?: string | null | undefined;
5853
+ country?: string | null | undefined;
5854
+ }[] | null | undefined;
5855
+ }>;
5404
5856
  getInvoices(params?: {
5405
5857
  date_from: string;
5406
5858
  date_to: string;
@@ -5503,14 +5955,28 @@ export declare class API {
5503
5955
  untaxed_amount: number;
5504
5956
  total: number;
5505
5957
  }[]>;
5506
- }>;
5507
- payment: import("../types/api").ApiFor<{
5508
- getPayments(params: {
5509
- date_from?: string | null | undefined;
5510
- date_to?: string | null | undefined;
5511
- }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
5512
- id: string;
5513
- source_ref: {
5958
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
5959
+ items: {
5960
+ id: string;
5961
+ source_ref: {
5962
+ id?: string | null | undefined;
5963
+ model?: string | null | undefined;
5964
+ };
5965
+ label?: string | null | undefined;
5966
+ rate?: number | null | undefined;
5967
+ }[];
5968
+ total: number;
5969
+ page: number;
5970
+ size: number;
5971
+ }>;
5972
+ }>;
5973
+ payment: import("../types/api").ApiFor<{
5974
+ getPayments(params: {
5975
+ date_from?: string | null | undefined;
5976
+ date_to?: string | null | undefined;
5977
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
5978
+ id: string;
5979
+ source_ref: {
5514
5980
  id?: string | null | undefined;
5515
5981
  model?: string | null | undefined;
5516
5982
  };
@@ -5636,6 +6102,7 @@ export declare class API {
5636
6102
  postal_code?: string | null | undefined;
5637
6103
  country?: string | null | undefined;
5638
6104
  }[] | null;
6105
+ third_party_account?: string | null | undefined;
5639
6106
  }[]>;
5640
6107
  createClient(client: {
5641
6108
  external_reference?: string | null | undefined;
@@ -5709,6 +6176,7 @@ export declare class API {
5709
6176
  postal_code?: string | null | undefined;
5710
6177
  country?: string | null | undefined;
5711
6178
  }[] | null;
6179
+ third_party_account?: string | null | undefined;
5712
6180
  }>;
5713
6181
  getClient(clientId: string, params?: {
5714
6182
  folder_id?: string | null | undefined;
@@ -5748,6 +6216,7 @@ export declare class API {
5748
6216
  postal_code?: string | null | undefined;
5749
6217
  country?: string | null | undefined;
5750
6218
  }[] | null;
6219
+ third_party_account?: string | null | undefined;
5751
6220
  }>;
5752
6221
  updateClient(clientId: string, client: {
5753
6222
  external_reference?: string | null | undefined;
@@ -5819,6 +6288,7 @@ export declare class API {
5819
6288
  postal_code?: string | null | undefined;
5820
6289
  country?: string | null | undefined;
5821
6290
  }[] | null;
6291
+ third_party_account?: string | null | undefined;
5822
6292
  }>;
5823
6293
  getSuppliers(params?: {
5824
6294
  search?: string | null | undefined;
@@ -5860,6 +6330,7 @@ export declare class API {
5860
6330
  postal_code?: string | null | undefined;
5861
6331
  country?: string | null | undefined;
5862
6332
  }[] | null;
6333
+ third_party_account?: string | null | undefined;
5863
6334
  }[]>;
5864
6335
  createSupplier(supplier: {
5865
6336
  external_reference?: string | null | undefined;
@@ -5933,6 +6404,7 @@ export declare class API {
5933
6404
  postal_code?: string | null | undefined;
5934
6405
  country?: string | null | undefined;
5935
6406
  }[] | null;
6407
+ third_party_account?: string | null | undefined;
5936
6408
  }>;
5937
6409
  getSupplier(supplierId: string, params?: {
5938
6410
  folder_id?: string | null | undefined;
@@ -5972,6 +6444,7 @@ export declare class API {
5972
6444
  postal_code?: string | null | undefined;
5973
6445
  country?: string | null | undefined;
5974
6446
  }[] | null;
6447
+ third_party_account?: string | null | undefined;
5975
6448
  }>;
5976
6449
  updateSupplier(supplierId: string, supplier: {
5977
6450
  external_reference?: string | null | undefined;
@@ -6043,6 +6516,7 @@ export declare class API {
6043
6516
  postal_code?: string | null | undefined;
6044
6517
  country?: string | null | undefined;
6045
6518
  }[] | null;
6519
+ third_party_account?: string | null | undefined;
6046
6520
  }>;
6047
6521
  createInvoice(invoice: {
6048
6522
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
@@ -6054,6 +6528,12 @@ export declare class API {
6054
6528
  reference?: string | null | undefined;
6055
6529
  payment_communication?: string | null | undefined;
6056
6530
  customer_memo?: string | null | undefined;
6531
+ payment_term_id?: string | null | undefined;
6532
+ withholding_tax?: {
6533
+ tax_rate: number;
6534
+ tax_code: string;
6535
+ tax_amount: number;
6536
+ } | null | undefined;
6057
6537
  invoice_date: string;
6058
6538
  due_date: string;
6059
6539
  partner_id?: string | null | undefined;
@@ -6096,10 +6576,15 @@ export declare class API {
6096
6576
  description: string;
6097
6577
  analytic_account?: string | null | undefined;
6098
6578
  }[];
6579
+ start_date?: string | null | undefined;
6580
+ end_date?: string | null | undefined;
6581
+ payment_method_id?: string | null | undefined;
6099
6582
  }, params?: {
6100
6583
  folder_id?: string | null | undefined;
6101
6584
  force_financial_period?: string | null | undefined;
6102
6585
  regroup_lines?: "true" | "false" | null | undefined;
6586
+ ignore_accounting_id?: boolean | undefined;
6587
+ force_currency_exchange?: boolean | null | undefined;
6103
6588
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
6104
6589
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6105
6590
  invoice_number?: string | null | undefined;
@@ -6110,10 +6595,16 @@ export declare class API {
6110
6595
  reference?: string | null | undefined;
6111
6596
  payment_communication?: string | null | undefined;
6112
6597
  customer_memo?: string | null | undefined;
6598
+ payment_term_id?: string | null | undefined;
6599
+ withholding_tax?: {
6600
+ tax_rate: number;
6601
+ tax_code: string;
6602
+ tax_amount: number;
6603
+ } | null | undefined;
6113
6604
  id?: string | null | undefined;
6114
6605
  invoice_date: string;
6115
6606
  due_date: string;
6116
- partner_id: string;
6607
+ partner_id: string | null;
6117
6608
  journal_id?: string | null | undefined;
6118
6609
  payments?: {
6119
6610
  id: string;
@@ -6167,12 +6658,27 @@ export declare class API {
6167
6658
  postal_code?: string | null | undefined;
6168
6659
  country?: string | null | undefined;
6169
6660
  }[] | null;
6661
+ third_party_account?: string | null | undefined;
6170
6662
  } | null | undefined;
6171
6663
  due_dates: {
6172
6664
  due_date: string;
6173
6665
  payment_method?: string | null | undefined;
6666
+ payment_method_id?: string | null | undefined;
6174
6667
  amount: number;
6175
6668
  }[] | null;
6669
+ attachments_info?: {
6670
+ status: "unknown" | "yes" | "yes_to_request" | "no";
6671
+ attachments: {
6672
+ filename?: string | null | undefined;
6673
+ url?: string | null | undefined;
6674
+ }[] | null;
6675
+ } | undefined;
6676
+ accounting_info?: {
6677
+ main_currency?: string | undefined;
6678
+ main_currency_total: number;
6679
+ account_number?: string | null | undefined;
6680
+ } | null | undefined;
6681
+ payment_method_id?: string | null | undefined;
6176
6682
  lines: {
6177
6683
  line_number: number | null;
6178
6684
  unit_price: number;
@@ -6198,6 +6704,12 @@ export declare class API {
6198
6704
  reference?: string | null | undefined;
6199
6705
  payment_communication?: string | null | undefined;
6200
6706
  customer_memo?: string | null | undefined;
6707
+ payment_term_id?: string | null | undefined;
6708
+ withholding_tax?: {
6709
+ tax_rate: number;
6710
+ tax_code: string;
6711
+ tax_amount: number;
6712
+ } | null | undefined;
6201
6713
  invoice_date: string;
6202
6714
  due_date: string;
6203
6715
  partner_id?: string | null | undefined;
@@ -6246,10 +6758,15 @@ export declare class API {
6246
6758
  }[];
6247
6759
  }[] | null;
6248
6760
  }[];
6761
+ start_date?: string | null | undefined;
6762
+ end_date?: string | null | undefined;
6763
+ payment_method_id?: string | null | undefined;
6249
6764
  }, params?: {
6250
6765
  folder_id?: string | null | undefined;
6251
6766
  force_financial_period?: string | null | undefined;
6252
6767
  regroup_lines?: "true" | "false" | null | undefined;
6768
+ ignore_accounting_id?: boolean | undefined;
6769
+ force_currency_exchange?: boolean | null | undefined;
6253
6770
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
6254
6771
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6255
6772
  invoice_number?: string | null | undefined;
@@ -6260,10 +6777,16 @@ export declare class API {
6260
6777
  reference?: string | null | undefined;
6261
6778
  payment_communication?: string | null | undefined;
6262
6779
  customer_memo?: string | null | undefined;
6780
+ payment_term_id?: string | null | undefined;
6781
+ withholding_tax?: {
6782
+ tax_rate: number;
6783
+ tax_code: string;
6784
+ tax_amount: number;
6785
+ } | null | undefined;
6263
6786
  id?: string | null | undefined;
6264
6787
  invoice_date: string;
6265
6788
  due_date: string;
6266
- partner_id: string;
6789
+ partner_id: string | null;
6267
6790
  journal_id?: string | null | undefined;
6268
6791
  payments?: {
6269
6792
  id: string;
@@ -6317,12 +6840,27 @@ export declare class API {
6317
6840
  postal_code?: string | null | undefined;
6318
6841
  country?: string | null | undefined;
6319
6842
  }[] | null;
6843
+ third_party_account?: string | null | undefined;
6320
6844
  } | null | undefined;
6321
6845
  due_dates: {
6322
6846
  due_date: string;
6323
6847
  payment_method?: string | null | undefined;
6848
+ payment_method_id?: string | null | undefined;
6324
6849
  amount: number;
6325
6850
  }[] | null;
6851
+ attachments_info?: {
6852
+ status: "unknown" | "yes" | "yes_to_request" | "no";
6853
+ attachments: {
6854
+ filename?: string | null | undefined;
6855
+ url?: string | null | undefined;
6856
+ }[] | null;
6857
+ } | undefined;
6858
+ accounting_info?: {
6859
+ main_currency?: string | undefined;
6860
+ main_currency_total: number;
6861
+ account_number?: string | null | undefined;
6862
+ } | null | undefined;
6863
+ payment_method_id?: string | null | undefined;
6326
6864
  lines: {
6327
6865
  line_number: number | null;
6328
6866
  unit_price: number;
@@ -6364,10 +6902,16 @@ export declare class API {
6364
6902
  reference?: string | null | undefined;
6365
6903
  payment_communication?: string | null | undefined;
6366
6904
  customer_memo?: string | null | undefined;
6905
+ payment_term_id?: string | null | undefined;
6906
+ withholding_tax?: {
6907
+ tax_rate: number;
6908
+ tax_code: string;
6909
+ tax_amount: number;
6910
+ } | null | undefined;
6367
6911
  id?: string | null | undefined;
6368
6912
  invoice_date: string;
6369
6913
  due_date: string;
6370
- partner_id: string;
6914
+ partner_id: string | null;
6371
6915
  journal_id?: string | null | undefined;
6372
6916
  payments?: {
6373
6917
  id: string;
@@ -6421,12 +6965,27 @@ export declare class API {
6421
6965
  postal_code?: string | null | undefined;
6422
6966
  country?: string | null | undefined;
6423
6967
  }[] | null;
6968
+ third_party_account?: string | null | undefined;
6424
6969
  } | null | undefined;
6425
6970
  due_dates: {
6426
6971
  due_date: string;
6427
6972
  payment_method?: string | null | undefined;
6973
+ payment_method_id?: string | null | undefined;
6428
6974
  amount: number;
6429
6975
  }[] | null;
6976
+ attachments_info?: {
6977
+ status: "unknown" | "yes" | "yes_to_request" | "no";
6978
+ attachments: {
6979
+ filename?: string | null | undefined;
6980
+ url?: string | null | undefined;
6981
+ }[] | null;
6982
+ } | undefined;
6983
+ accounting_info?: {
6984
+ main_currency?: string | undefined;
6985
+ main_currency_total: number;
6986
+ account_number?: string | null | undefined;
6987
+ } | null | undefined;
6988
+ payment_method_id?: string | null | undefined;
6430
6989
  lines: {
6431
6990
  line_number: number | null;
6432
6991
  unit_price: number;
@@ -6457,10 +7016,16 @@ export declare class API {
6457
7016
  reference?: string | null | undefined;
6458
7017
  payment_communication?: string | null | undefined;
6459
7018
  customer_memo?: string | null | undefined;
7019
+ payment_term_id?: string | null | undefined;
7020
+ withholding_tax?: {
7021
+ tax_rate: number;
7022
+ tax_code: string;
7023
+ tax_amount: number;
7024
+ } | null | undefined;
6460
7025
  id?: string | null | undefined;
6461
7026
  invoice_date: string;
6462
7027
  due_date: string;
6463
- partner_id: string;
7028
+ partner_id: string | null;
6464
7029
  journal_id?: string | null | undefined;
6465
7030
  payments?: {
6466
7031
  id: string;
@@ -6514,12 +7079,27 @@ export declare class API {
6514
7079
  postal_code?: string | null | undefined;
6515
7080
  country?: string | null | undefined;
6516
7081
  }[] | null;
7082
+ third_party_account?: string | null | undefined;
6517
7083
  } | null | undefined;
6518
7084
  due_dates: {
6519
7085
  due_date: string;
6520
7086
  payment_method?: string | null | undefined;
7087
+ payment_method_id?: string | null | undefined;
6521
7088
  amount: number;
6522
7089
  }[] | null;
7090
+ attachments_info?: {
7091
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7092
+ attachments: {
7093
+ filename?: string | null | undefined;
7094
+ url?: string | null | undefined;
7095
+ }[] | null;
7096
+ } | undefined;
7097
+ accounting_info?: {
7098
+ main_currency?: string | undefined;
7099
+ main_currency_total: number;
7100
+ account_number?: string | null | undefined;
7101
+ } | null | undefined;
7102
+ payment_method_id?: string | null | undefined;
6523
7103
  lines: {
6524
7104
  line_number: number | null;
6525
7105
  unit_price: number;
@@ -6550,10 +7130,16 @@ export declare class API {
6550
7130
  reference?: string | null | undefined;
6551
7131
  payment_communication?: string | null | undefined;
6552
7132
  customer_memo?: string | null | undefined;
7133
+ payment_term_id?: string | null | undefined;
7134
+ withholding_tax?: {
7135
+ tax_rate: number;
7136
+ tax_code: string;
7137
+ tax_amount: number;
7138
+ } | null | undefined;
6553
7139
  id?: string | null | undefined;
6554
7140
  invoice_date: string;
6555
7141
  due_date: string;
6556
- partner_id: string;
7142
+ partner_id: string | null;
6557
7143
  journal_id?: string | null | undefined;
6558
7144
  payments?: {
6559
7145
  id: string;
@@ -6607,12 +7193,27 @@ export declare class API {
6607
7193
  postal_code?: string | null | undefined;
6608
7194
  country?: string | null | undefined;
6609
7195
  }[] | null;
7196
+ third_party_account?: string | null | undefined;
6610
7197
  } | null | undefined;
6611
7198
  due_dates: {
6612
7199
  due_date: string;
6613
7200
  payment_method?: string | null | undefined;
7201
+ payment_method_id?: string | null | undefined;
6614
7202
  amount: number;
6615
7203
  }[] | null;
7204
+ attachments_info?: {
7205
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7206
+ attachments: {
7207
+ filename?: string | null | undefined;
7208
+ url?: string | null | undefined;
7209
+ }[] | null;
7210
+ } | undefined;
7211
+ accounting_info?: {
7212
+ main_currency?: string | undefined;
7213
+ main_currency_total: number;
7214
+ account_number?: string | null | undefined;
7215
+ } | null | undefined;
7216
+ payment_method_id?: string | null | undefined;
6616
7217
  lines: {
6617
7218
  line_number: number | null;
6618
7219
  unit_price: number;
@@ -6654,10 +7255,16 @@ export declare class API {
6654
7255
  reference?: string | null | undefined;
6655
7256
  payment_communication?: string | null | undefined;
6656
7257
  customer_memo?: string | null | undefined;
7258
+ payment_term_id?: string | null | undefined;
7259
+ withholding_tax?: {
7260
+ tax_rate: number;
7261
+ tax_code: string;
7262
+ tax_amount: number;
7263
+ } | null | undefined;
6657
7264
  id?: string | null | undefined;
6658
7265
  invoice_date: string;
6659
7266
  due_date: string;
6660
- partner_id: string;
7267
+ partner_id: string | null;
6661
7268
  journal_id?: string | null | undefined;
6662
7269
  payments?: {
6663
7270
  id: string;
@@ -6711,12 +7318,27 @@ export declare class API {
6711
7318
  postal_code?: string | null | undefined;
6712
7319
  country?: string | null | undefined;
6713
7320
  }[] | null;
7321
+ third_party_account?: string | null | undefined;
6714
7322
  } | null | undefined;
6715
7323
  due_dates: {
6716
7324
  due_date: string;
6717
7325
  payment_method?: string | null | undefined;
7326
+ payment_method_id?: string | null | undefined;
6718
7327
  amount: number;
6719
7328
  }[] | null;
7329
+ attachments_info?: {
7330
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7331
+ attachments: {
7332
+ filename?: string | null | undefined;
7333
+ url?: string | null | undefined;
7334
+ }[] | null;
7335
+ } | undefined;
7336
+ accounting_info?: {
7337
+ main_currency?: string | undefined;
7338
+ main_currency_total: number;
7339
+ account_number?: string | null | undefined;
7340
+ } | null | undefined;
7341
+ payment_method_id?: string | null | undefined;
6720
7342
  lines: {
6721
7343
  line_number: number | null;
6722
7344
  unit_price: number;
@@ -6864,7 +7486,7 @@ export declare class API {
6864
7486
  folder_id?: string | null | undefined;
6865
7487
  updated_after?: string | null | undefined;
6866
7488
  unposted_allowed: "true" | "false";
6867
- journal_id: string;
7489
+ journal_id?: string | null | undefined;
6868
7490
  partner_id?: string | null | undefined;
6869
7491
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
6870
7492
  reference?: string | null | undefined;
@@ -6878,9 +7500,17 @@ export declare class API {
6878
7500
  due_dates: {
6879
7501
  due_date: string;
6880
7502
  payment_method?: string | null | undefined;
7503
+ payment_method_id?: string | null | undefined;
6881
7504
  debit: number | null;
6882
7505
  credit: number | null;
6883
7506
  }[] | null;
7507
+ attachments_info?: {
7508
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7509
+ attachments: {
7510
+ filename?: string | null | undefined;
7511
+ url?: string | null | undefined;
7512
+ }[] | null;
7513
+ } | undefined;
6884
7514
  items: {
6885
7515
  account_number: string;
6886
7516
  partner_id?: string | null | undefined;
@@ -6903,7 +7533,7 @@ export declare class API {
6903
7533
  folder_id?: string | null | undefined;
6904
7534
  updated_after?: string | null | undefined;
6905
7535
  unposted_allowed: "true" | "false";
6906
- journal_id: string;
7536
+ journal_id?: string | null | undefined;
6907
7537
  partner_id?: string | null | undefined;
6908
7538
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
6909
7539
  reference?: string | null | undefined;
@@ -6917,9 +7547,17 @@ export declare class API {
6917
7547
  due_dates: {
6918
7548
  due_date: string;
6919
7549
  payment_method?: string | null | undefined;
7550
+ payment_method_id?: string | null | undefined;
6920
7551
  debit: number | null;
6921
7552
  credit: number | null;
6922
7553
  }[] | null;
7554
+ attachments_info?: {
7555
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7556
+ attachments: {
7557
+ filename?: string | null | undefined;
7558
+ url?: string | null | undefined;
7559
+ }[] | null;
7560
+ } | undefined;
6923
7561
  items: {
6924
7562
  account_number: string;
6925
7563
  partner_id?: string | null | undefined;
@@ -7009,6 +7647,7 @@ export declare class API {
7009
7647
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7010
7648
  id: string;
7011
7649
  code?: string | null | undefined;
7650
+ active: boolean | null;
7012
7651
  label: string;
7013
7652
  scope: "unknown" | "nat" | "eu" | "int" | null;
7014
7653
  rate: number;
@@ -7016,6 +7655,7 @@ export declare class API {
7016
7655
  deductible_account?: string | null | undefined;
7017
7656
  payable_account?: string | null | undefined;
7018
7657
  reversed: boolean | null;
7658
+ withholding_tax: boolean | null;
7019
7659
  country?: string | null | undefined;
7020
7660
  }[]>;
7021
7661
  getMiscOperations(params?: {
@@ -7118,12 +7758,14 @@ export declare class API {
7118
7758
  getChartOfAccounts(params?: {
7119
7759
  folder_id?: string | null | undefined;
7120
7760
  classes?: string | null | undefined;
7121
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
7761
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
7122
7762
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7123
7763
  number: string;
7124
7764
  name: string;
7125
7765
  active: boolean | null;
7126
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
7766
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
7767
+ scheme_ids?: string[] | null | undefined;
7768
+ accounting_category?: string | null | undefined;
7127
7769
  }[]>;
7128
7770
  getBalanceOfAccounts(filter: {
7129
7771
  accounts: string[];
@@ -7199,11 +7841,13 @@ export declare class API {
7199
7841
  account: string;
7200
7842
  amount: number;
7201
7843
  description?: string | null | undefined;
7844
+ automated_matching_number?: string | null | undefined;
7202
7845
  }[];
7203
7846
  pdf?: string | null | undefined;
7204
7847
  }, params?: {
7205
7848
  folder_id?: string | null | undefined;
7206
7849
  financial_counterpart_account?: string | null | undefined;
7850
+ force_currency_exchange?: boolean | null | undefined;
7207
7851
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
7208
7852
  date: string;
7209
7853
  journal_id: string;
@@ -7217,6 +7861,7 @@ export declare class API {
7217
7861
  account: string;
7218
7862
  amount: number;
7219
7863
  description?: string | null | undefined;
7864
+ automated_matching_number?: string | null | undefined;
7220
7865
  counterpart_account: string;
7221
7866
  }[];
7222
7867
  }>;
@@ -7244,6 +7889,13 @@ export declare class API {
7244
7889
  }[];
7245
7890
  }[] | null;
7246
7891
  tax_code?: string | null | undefined;
7892
+ tax_info?: {
7893
+ tax_code: string;
7894
+ tax_amount: number;
7895
+ vat_account?: string | null | undefined;
7896
+ reversed_vat_account?: string | null | undefined;
7897
+ description?: string | null | undefined;
7898
+ } | null | undefined;
7247
7899
  account_info?: {
7248
7900
  account_number: string;
7249
7901
  account_name: string;
@@ -7256,6 +7908,7 @@ export declare class API {
7256
7908
  }, params?: {
7257
7909
  folder_id?: string | null | undefined;
7258
7910
  force_currency_exchange?: "true" | "false" | null | undefined;
7911
+ ignore_accounting_id?: boolean | undefined;
7259
7912
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
7260
7913
  reference?: string | null | undefined;
7261
7914
  due_date?: string | null | undefined;
@@ -7268,9 +7921,17 @@ export declare class API {
7268
7921
  due_dates: {
7269
7922
  due_date: string;
7270
7923
  payment_method?: string | null | undefined;
7924
+ payment_method_id?: string | null | undefined;
7271
7925
  debit: number | null;
7272
7926
  credit: number | null;
7273
7927
  }[] | null;
7928
+ attachments_info?: {
7929
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7930
+ attachments: {
7931
+ filename?: string | null | undefined;
7932
+ url?: string | null | undefined;
7933
+ }[] | null;
7934
+ } | undefined;
7274
7935
  items: {
7275
7936
  account_number: string;
7276
7937
  partner_id?: string | null | undefined;
@@ -7386,14 +8047,35 @@ export declare class API {
7386
8047
  createLedgerAccount(account: {
7387
8048
  name: string;
7388
8049
  number: string;
7389
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
8050
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
7390
8051
  }, params?: {
7391
8052
  folder_id?: string | null | undefined;
7392
8053
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
7393
8054
  number: string;
7394
8055
  name: string;
7395
8056
  active: boolean | null;
7396
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
8057
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
8058
+ scheme_ids?: string[] | null | undefined;
8059
+ accounting_category?: string | null | undefined;
8060
+ }>;
8061
+ getBankAccounts(params?: {
8062
+ folder_id?: string | null | undefined;
8063
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8064
+ items: {
8065
+ id: string;
8066
+ code?: string | null | undefined;
8067
+ currency?: string | null | undefined;
8068
+ account_name?: string | null | undefined;
8069
+ account_number?: string | null | undefined;
8070
+ iban?: string | null | undefined;
8071
+ bank_name?: string | null | undefined;
8072
+ journal_id?: string | null | undefined;
8073
+ ledger_account?: string | null | undefined;
8074
+ unallocated_account?: string | null | undefined;
8075
+ }[];
8076
+ total: number;
8077
+ page: number;
8078
+ size: number;
7397
8079
  }>;
7398
8080
  createBankAccount(bankAccount: {
7399
8081
  code: string;
@@ -7416,6 +8098,45 @@ export declare class API {
7416
8098
  ledger_account?: string | null | undefined;
7417
8099
  unallocated_account?: string | null | undefined;
7418
8100
  }>;
8101
+ createBankTransactions(bankStatement: {
8102
+ bank_statement_date: string;
8103
+ bank_account_id: string;
8104
+ external_bank_statement_id: string;
8105
+ opening_balance?: number | null | undefined;
8106
+ pdf?: string | null | undefined;
8107
+ items: {
8108
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
8109
+ account?: string | null | undefined;
8110
+ description?: string | null | undefined;
8111
+ external_transaction_id?: string | null | undefined;
8112
+ date: string;
8113
+ amount: number;
8114
+ fee_amount: number | null;
8115
+ tax_amount: number | null;
8116
+ currency: string;
8117
+ currency_exchange_rate: number | null;
8118
+ }[];
8119
+ }, params?: {
8120
+ folder_id?: string | null | undefined;
8121
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
8122
+ bank_statement_date: string;
8123
+ bank_account_id: string;
8124
+ id?: string | null | undefined;
8125
+ external_bank_statement_id?: string | null | undefined;
8126
+ items: {
8127
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
8128
+ account?: string | null | undefined;
8129
+ description?: string | null | undefined;
8130
+ external_transaction_id?: string | null | undefined;
8131
+ date: string;
8132
+ amount: number;
8133
+ fee_amount: number | null;
8134
+ tax_amount: number | null;
8135
+ currency: string;
8136
+ currency_exchange_rate: number | null;
8137
+ id?: string | null | undefined;
8138
+ }[];
8139
+ }>;
7419
8140
  getJournalEntry(journalEntryId: string, params?: {
7420
8141
  folder_id?: string | null | undefined;
7421
8142
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -7430,9 +8151,17 @@ export declare class API {
7430
8151
  due_dates: {
7431
8152
  due_date: string;
7432
8153
  payment_method?: string | null | undefined;
8154
+ payment_method_id?: string | null | undefined;
7433
8155
  debit: number | null;
7434
8156
  credit: number | null;
7435
8157
  }[] | null;
8158
+ attachments_info?: {
8159
+ status: "unknown" | "yes" | "yes_to_request" | "no";
8160
+ attachments: {
8161
+ filename?: string | null | undefined;
8162
+ url?: string | null | undefined;
8163
+ }[] | null;
8164
+ } | undefined;
7436
8165
  items: {
7437
8166
  account_number: string;
7438
8167
  partner_id?: string | null | undefined;
@@ -7467,6 +8196,29 @@ export declare class API {
7467
8196
  page: number;
7468
8197
  size: number;
7469
8198
  }>;
8199
+ getPaymentTerms(params?: {
8200
+ folder_id?: string | null | undefined;
8201
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8202
+ items: {
8203
+ id: string;
8204
+ name?: string | null | undefined;
8205
+ }[];
8206
+ total: number;
8207
+ page: number;
8208
+ size: number;
8209
+ }>;
8210
+ getSchemes(params?: {
8211
+ folder_id?: string | null | undefined;
8212
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8213
+ items: {
8214
+ id: string;
8215
+ code: string;
8216
+ name: string;
8217
+ }[];
8218
+ total: number;
8219
+ page: number;
8220
+ size: number;
8221
+ }>;
7470
8222
  createInvoicePayment(body: {
7471
8223
  date: string;
7472
8224
  payment_method_id: string;
@@ -7486,6 +8238,29 @@ export declare class API {
7486
8238
  };
7487
8239
  content?: undefined;
7488
8240
  }>;
8241
+ exportFec(params: {
8242
+ folder_id?: string | null | undefined;
8243
+ date_from: string;
8244
+ date_to: string;
8245
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8246
+ JournalCode: string;
8247
+ JournalLib: string;
8248
+ EcritureNum: string;
8249
+ EcritureDate: string;
8250
+ CompteNum: string;
8251
+ CompteLib: string;
8252
+ CompAuxNum: string;
8253
+ CompAuxLib: string;
8254
+ PieceRef: string;
8255
+ PieceDate: string;
8256
+ Debit: number;
8257
+ Credit: number;
8258
+ EcritureLet: string;
8259
+ DateLet: string | null;
8260
+ ValidDate: string | null;
8261
+ Montantdevise: number;
8262
+ Idevise: string;
8263
+ }[]>;
7489
8264
  }>;
7490
8265
  invoicing: import("../types/api").ApiFor<{
7491
8266
  getInvoices(params?: {
@@ -7495,6 +8270,7 @@ export declare class API {
7495
8270
  updated_after?: string | null | undefined;
7496
8271
  include_invoice_lines?: "true" | "false" | null | undefined;
7497
8272
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
8273
+ include_analytic_accounts?: "true" | "false" | null | undefined;
7498
8274
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7499
8275
  id: string;
7500
8276
  source_ref: {
@@ -7524,6 +8300,14 @@ export declare class API {
7524
8300
  product_id?: string | null | undefined;
7525
8301
  product_code?: string | null | undefined;
7526
8302
  product_name?: string | null | undefined;
8303
+ analytic_distribution: {
8304
+ analytic_plan_code: string;
8305
+ analytic_accounts: {
8306
+ analytic_account_code: string;
8307
+ analytic_account_name: string;
8308
+ percentage: number;
8309
+ }[];
8310
+ }[] | null;
7527
8311
  }[];
7528
8312
  partner_id?: string | null | undefined;
7529
8313
  invoice_number?: string | null | undefined;
@@ -7563,6 +8347,7 @@ export declare class API {
7563
8347
  }[]>;
7564
8348
  getInvoiceById(invoiceId: string, params?: {
7565
8349
  include_pdf?: "true" | "false" | null | undefined;
8350
+ include_analytic_accounts?: "true" | "false" | null | undefined;
7566
8351
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7567
8352
  id: string;
7568
8353
  source_ref: {
@@ -7592,6 +8377,14 @@ export declare class API {
7592
8377
  product_id?: string | null | undefined;
7593
8378
  product_code?: string | null | undefined;
7594
8379
  product_name?: string | null | undefined;
8380
+ analytic_distribution: {
8381
+ analytic_plan_code: string;
8382
+ analytic_accounts: {
8383
+ analytic_account_code: string;
8384
+ analytic_account_name: string;
8385
+ percentage: number;
8386
+ }[];
8387
+ }[] | null;
7595
8388
  }[];
7596
8389
  partner_id?: string | null | undefined;
7597
8390
  invoice_number?: string | null | undefined;
@@ -7713,6 +8506,14 @@ export declare class API {
7713
8506
  product_id?: string | null | undefined;
7714
8507
  product_code?: string | null | undefined;
7715
8508
  product_name?: string | null | undefined;
8509
+ analytic_distribution: {
8510
+ analytic_plan_code: string;
8511
+ analytic_accounts: {
8512
+ analytic_account_code: string;
8513
+ analytic_account_name: string;
8514
+ percentage: number;
8515
+ }[];
8516
+ }[] | null;
7716
8517
  }[];
7717
8518
  partner_id?: string | null | undefined;
7718
8519
  invoice_number?: string | null | undefined;
@@ -9291,14 +10092,18 @@ export declare class API {
9291
10092
  reference: string;
9292
10093
  reference_type: string;
9293
10094
  holder_name?: string | null | undefined;
10095
+ active: boolean | null;
9294
10096
  }[]>;
9295
- getAccountTransactions(accountId: string, params?: {
10097
+ getAccountTransactions(params: {
9296
10098
  date_from?: string | null | undefined;
9297
10099
  date_to?: string | null | undefined;
10100
+ updated_after?: string | null | undefined;
10101
+ account_id: string;
9298
10102
  date_type?: "value_date" | "execution_date" | null | undefined;
9299
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
10103
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
9300
10104
  id: string;
9301
10105
  amount: number;
10106
+ tax_amount?: number | null | undefined;
9302
10107
  currency: string;
9303
10108
  description?: string | null | undefined;
9304
10109
  additional_information?: string | null | undefined;
@@ -9308,6 +10113,17 @@ export declare class API {
9308
10113
  creation_date: string;
9309
10114
  value_date: string;
9310
10115
  execution_date: string;
10116
+ internal_transaction: boolean | null;
10117
+ 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;
10118
+ last_update_on?: string | null | undefined;
10119
+ status?: "completed" | "pending" | "declined" | null | undefined;
10120
+ attachments_info?: {
10121
+ status: "unknown" | "yes" | "yes_to_request" | "no";
10122
+ attachments: {
10123
+ filename?: string | null | undefined;
10124
+ url?: string | null | undefined;
10125
+ }[] | null;
10126
+ } | undefined;
9311
10127
  }[]>;
9312
10128
  getAccountCounterparts(params?: {
9313
10129
  date_from?: string | null | undefined;
@@ -9318,6 +10134,17 @@ export declare class API {
9318
10134
  reference?: string | null | undefined;
9319
10135
  details?: string | null | undefined;
9320
10136
  }[]>;
10137
+ getAttachments(params: {
10138
+ transaction_id: string;
10139
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
10140
+ items: {
10141
+ id: string;
10142
+ base64_string: string;
10143
+ }[];
10144
+ total: number;
10145
+ page: number;
10146
+ size: number;
10147
+ }>;
9321
10148
  }>;
9322
10149
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
9323
10150
  data: {
@@ -9357,6 +10184,7 @@ export declare class API {
9357
10184
  source_id?: string | null | undefined;
9358
10185
  target_id?: string | null | undefined;
9359
10186
  }[];
10187
+ hidden_source_ids: string[];
9360
10188
  sub_mapping_name: string;
9361
10189
  sub_mapping_description?: string | null | undefined;
9362
10190
  }[] | null | undefined;
@@ -9520,7 +10348,8 @@ export declare class API {
9520
10348
  value: string;
9521
10349
  }[] | null | undefined;
9522
10350
  country?: string | null | undefined;
9523
- } | undefined) => Promise<{
10351
+ redirect: boolean | null;
10352
+ } | null | undefined) => Promise<{
9524
10353
  url: string;
9525
10354
  }>;
9526
10355
  updateConnection: (connectionId: string, body?: {
@@ -9539,6 +10368,15 @@ export declare class API {
9539
10368
  };
9540
10369
  content?: undefined;
9541
10370
  }>;
10371
+ getTransactionByClientRequestId: (connectionId: string, params: {
10372
+ client_request_id: string;
10373
+ }) => Promise<{
10374
+ created_on: string;
10375
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
10376
+ route: string;
10377
+ status_code: number;
10378
+ created_entity_id?: string | null | undefined;
10379
+ }>;
9542
10380
  enableFlow: (syncId: string, flowId: string, body: {
9543
10381
  integrationids: string[];
9544
10382
  triggerid: string | null;
@@ -9595,6 +10433,7 @@ export declare class API {
9595
10433
  total_refund: number | null;
9596
10434
  total_tip: number | null;
9597
10435
  delivery_fee: number | null;
10436
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
9598
10437
  currency?: string | null | undefined;
9599
10438
  country?: string | null | undefined;
9600
10439
  loyalty?: number | null | undefined;
@@ -9673,6 +10512,7 @@ export declare class API {
9673
10512
  total_refund: number | null;
9674
10513
  total_tip: number | null;
9675
10514
  delivery_fee: number | null;
10515
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
9676
10516
  currency?: string | null | undefined;
9677
10517
  country?: string | null | undefined;
9678
10518
  loyalty?: number | null | undefined;
@@ -9861,6 +10701,7 @@ export declare class API {
9861
10701
  total_refund: number | null;
9862
10702
  total_tip: number | null;
9863
10703
  delivery_fee: number | null;
10704
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
9864
10705
  currency?: string | null | undefined;
9865
10706
  country?: string | null | undefined;
9866
10707
  loyalty?: number | null | undefined;
@@ -9965,6 +10806,7 @@ export declare class API {
9965
10806
  total_refund: number | null;
9966
10807
  total_tip: number | null;
9967
10808
  delivery_fee: number | null;
10809
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
9968
10810
  currency?: string | null | undefined;
9969
10811
  country?: string | null | undefined;
9970
10812
  loyalty?: number | null | undefined;
@@ -10144,6 +10986,30 @@ export declare class API {
10144
10986
  country?: string | null | undefined;
10145
10987
  }[] | null | undefined;
10146
10988
  }[]>;
10989
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
10990
+ id: string;
10991
+ source_ref: {
10992
+ id?: string | null | undefined;
10993
+ model?: string | null | undefined;
10994
+ };
10995
+ first_name?: string | null | undefined;
10996
+ last_name?: string | null | undefined;
10997
+ company_name?: string | null | undefined;
10998
+ phone?: string | null | undefined;
10999
+ email?: string | null | undefined;
11000
+ account_number?: string | null | undefined;
11001
+ created_on?: string | null | undefined;
11002
+ addresses?: {
11003
+ address_type?: string | null | undefined;
11004
+ name?: string | null | undefined;
11005
+ street?: string | null | undefined;
11006
+ number?: string | null | undefined;
11007
+ box?: string | null | undefined;
11008
+ city?: string | null | undefined;
11009
+ postal_code?: string | null | undefined;
11010
+ country?: string | null | undefined;
11011
+ }[] | null | undefined;
11012
+ }>;
10147
11013
  getInvoices(params?: {
10148
11014
  date_from: string;
10149
11015
  date_to: string;
@@ -10246,6 +11112,20 @@ export declare class API {
10246
11112
  untaxed_amount: number;
10247
11113
  total: number;
10248
11114
  }[]>;
11115
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
11116
+ items: {
11117
+ id: string;
11118
+ source_ref: {
11119
+ id?: string | null | undefined;
11120
+ model?: string | null | undefined;
11121
+ };
11122
+ label?: string | null | undefined;
11123
+ rate?: number | null | undefined;
11124
+ }[];
11125
+ total: number;
11126
+ page: number;
11127
+ size: number;
11128
+ }>;
10249
11129
  }>;
10250
11130
  payment: import("../types/api").ApiFor<{
10251
11131
  getPayments(params: {
@@ -10379,6 +11259,7 @@ export declare class API {
10379
11259
  postal_code?: string | null | undefined;
10380
11260
  country?: string | null | undefined;
10381
11261
  }[] | null;
11262
+ third_party_account?: string | null | undefined;
10382
11263
  }[]>;
10383
11264
  createClient(client: {
10384
11265
  external_reference?: string | null | undefined;
@@ -10452,6 +11333,7 @@ export declare class API {
10452
11333
  postal_code?: string | null | undefined;
10453
11334
  country?: string | null | undefined;
10454
11335
  }[] | null;
11336
+ third_party_account?: string | null | undefined;
10455
11337
  }>;
10456
11338
  getClient(clientId: string, params?: {
10457
11339
  folder_id?: string | null | undefined;
@@ -10491,6 +11373,7 @@ export declare class API {
10491
11373
  postal_code?: string | null | undefined;
10492
11374
  country?: string | null | undefined;
10493
11375
  }[] | null;
11376
+ third_party_account?: string | null | undefined;
10494
11377
  }>;
10495
11378
  updateClient(clientId: string, client: {
10496
11379
  external_reference?: string | null | undefined;
@@ -10562,6 +11445,7 @@ export declare class API {
10562
11445
  postal_code?: string | null | undefined;
10563
11446
  country?: string | null | undefined;
10564
11447
  }[] | null;
11448
+ third_party_account?: string | null | undefined;
10565
11449
  }>;
10566
11450
  getSuppliers(params?: {
10567
11451
  search?: string | null | undefined;
@@ -10603,6 +11487,7 @@ export declare class API {
10603
11487
  postal_code?: string | null | undefined;
10604
11488
  country?: string | null | undefined;
10605
11489
  }[] | null;
11490
+ third_party_account?: string | null | undefined;
10606
11491
  }[]>;
10607
11492
  createSupplier(supplier: {
10608
11493
  external_reference?: string | null | undefined;
@@ -10676,6 +11561,7 @@ export declare class API {
10676
11561
  postal_code?: string | null | undefined;
10677
11562
  country?: string | null | undefined;
10678
11563
  }[] | null;
11564
+ third_party_account?: string | null | undefined;
10679
11565
  }>;
10680
11566
  getSupplier(supplierId: string, params?: {
10681
11567
  folder_id?: string | null | undefined;
@@ -10715,6 +11601,7 @@ export declare class API {
10715
11601
  postal_code?: string | null | undefined;
10716
11602
  country?: string | null | undefined;
10717
11603
  }[] | null;
11604
+ third_party_account?: string | null | undefined;
10718
11605
  }>;
10719
11606
  updateSupplier(supplierId: string, supplier: {
10720
11607
  external_reference?: string | null | undefined;
@@ -10786,6 +11673,7 @@ export declare class API {
10786
11673
  postal_code?: string | null | undefined;
10787
11674
  country?: string | null | undefined;
10788
11675
  }[] | null;
11676
+ third_party_account?: string | null | undefined;
10789
11677
  }>;
10790
11678
  createInvoice(invoice: {
10791
11679
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
@@ -10797,6 +11685,12 @@ export declare class API {
10797
11685
  reference?: string | null | undefined;
10798
11686
  payment_communication?: string | null | undefined;
10799
11687
  customer_memo?: string | null | undefined;
11688
+ payment_term_id?: string | null | undefined;
11689
+ withholding_tax?: {
11690
+ tax_rate: number;
11691
+ tax_code: string;
11692
+ tax_amount: number;
11693
+ } | null | undefined;
10800
11694
  invoice_date: string;
10801
11695
  due_date: string;
10802
11696
  partner_id?: string | null | undefined;
@@ -10839,10 +11733,15 @@ export declare class API {
10839
11733
  description: string;
10840
11734
  analytic_account?: string | null | undefined;
10841
11735
  }[];
11736
+ start_date?: string | null | undefined;
11737
+ end_date?: string | null | undefined;
11738
+ payment_method_id?: string | null | undefined;
10842
11739
  }, params?: {
10843
11740
  folder_id?: string | null | undefined;
10844
11741
  force_financial_period?: string | null | undefined;
10845
11742
  regroup_lines?: "true" | "false" | null | undefined;
11743
+ ignore_accounting_id?: boolean | undefined;
11744
+ force_currency_exchange?: boolean | null | undefined;
10846
11745
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
10847
11746
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10848
11747
  invoice_number?: string | null | undefined;
@@ -10853,10 +11752,16 @@ export declare class API {
10853
11752
  reference?: string | null | undefined;
10854
11753
  payment_communication?: string | null | undefined;
10855
11754
  customer_memo?: string | null | undefined;
11755
+ payment_term_id?: string | null | undefined;
11756
+ withholding_tax?: {
11757
+ tax_rate: number;
11758
+ tax_code: string;
11759
+ tax_amount: number;
11760
+ } | null | undefined;
10856
11761
  id?: string | null | undefined;
10857
11762
  invoice_date: string;
10858
11763
  due_date: string;
10859
- partner_id: string;
11764
+ partner_id: string | null;
10860
11765
  journal_id?: string | null | undefined;
10861
11766
  payments?: {
10862
11767
  id: string;
@@ -10910,12 +11815,27 @@ export declare class API {
10910
11815
  postal_code?: string | null | undefined;
10911
11816
  country?: string | null | undefined;
10912
11817
  }[] | null;
11818
+ third_party_account?: string | null | undefined;
10913
11819
  } | null | undefined;
10914
11820
  due_dates: {
10915
11821
  due_date: string;
10916
11822
  payment_method?: string | null | undefined;
11823
+ payment_method_id?: string | null | undefined;
10917
11824
  amount: number;
10918
11825
  }[] | null;
11826
+ attachments_info?: {
11827
+ status: "unknown" | "yes" | "yes_to_request" | "no";
11828
+ attachments: {
11829
+ filename?: string | null | undefined;
11830
+ url?: string | null | undefined;
11831
+ }[] | null;
11832
+ } | undefined;
11833
+ accounting_info?: {
11834
+ main_currency?: string | undefined;
11835
+ main_currency_total: number;
11836
+ account_number?: string | null | undefined;
11837
+ } | null | undefined;
11838
+ payment_method_id?: string | null | undefined;
10919
11839
  lines: {
10920
11840
  line_number: number | null;
10921
11841
  unit_price: number;
@@ -10941,6 +11861,12 @@ export declare class API {
10941
11861
  reference?: string | null | undefined;
10942
11862
  payment_communication?: string | null | undefined;
10943
11863
  customer_memo?: string | null | undefined;
11864
+ payment_term_id?: string | null | undefined;
11865
+ withholding_tax?: {
11866
+ tax_rate: number;
11867
+ tax_code: string;
11868
+ tax_amount: number;
11869
+ } | null | undefined;
10944
11870
  invoice_date: string;
10945
11871
  due_date: string;
10946
11872
  partner_id?: string | null | undefined;
@@ -10989,10 +11915,15 @@ export declare class API {
10989
11915
  }[];
10990
11916
  }[] | null;
10991
11917
  }[];
11918
+ start_date?: string | null | undefined;
11919
+ end_date?: string | null | undefined;
11920
+ payment_method_id?: string | null | undefined;
10992
11921
  }, params?: {
10993
11922
  folder_id?: string | null | undefined;
10994
11923
  force_financial_period?: string | null | undefined;
10995
11924
  regroup_lines?: "true" | "false" | null | undefined;
11925
+ ignore_accounting_id?: boolean | undefined;
11926
+ force_currency_exchange?: boolean | null | undefined;
10996
11927
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
10997
11928
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10998
11929
  invoice_number?: string | null | undefined;
@@ -11003,10 +11934,16 @@ export declare class API {
11003
11934
  reference?: string | null | undefined;
11004
11935
  payment_communication?: string | null | undefined;
11005
11936
  customer_memo?: string | null | undefined;
11937
+ payment_term_id?: string | null | undefined;
11938
+ withholding_tax?: {
11939
+ tax_rate: number;
11940
+ tax_code: string;
11941
+ tax_amount: number;
11942
+ } | null | undefined;
11006
11943
  id?: string | null | undefined;
11007
11944
  invoice_date: string;
11008
11945
  due_date: string;
11009
- partner_id: string;
11946
+ partner_id: string | null;
11010
11947
  journal_id?: string | null | undefined;
11011
11948
  payments?: {
11012
11949
  id: string;
@@ -11060,12 +11997,27 @@ export declare class API {
11060
11997
  postal_code?: string | null | undefined;
11061
11998
  country?: string | null | undefined;
11062
11999
  }[] | null;
12000
+ third_party_account?: string | null | undefined;
11063
12001
  } | null | undefined;
11064
12002
  due_dates: {
11065
12003
  due_date: string;
11066
12004
  payment_method?: string | null | undefined;
12005
+ payment_method_id?: string | null | undefined;
11067
12006
  amount: number;
11068
12007
  }[] | null;
12008
+ attachments_info?: {
12009
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12010
+ attachments: {
12011
+ filename?: string | null | undefined;
12012
+ url?: string | null | undefined;
12013
+ }[] | null;
12014
+ } | undefined;
12015
+ accounting_info?: {
12016
+ main_currency?: string | undefined;
12017
+ main_currency_total: number;
12018
+ account_number?: string | null | undefined;
12019
+ } | null | undefined;
12020
+ payment_method_id?: string | null | undefined;
11069
12021
  lines: {
11070
12022
  line_number: number | null;
11071
12023
  unit_price: number;
@@ -11107,10 +12059,16 @@ export declare class API {
11107
12059
  reference?: string | null | undefined;
11108
12060
  payment_communication?: string | null | undefined;
11109
12061
  customer_memo?: string | null | undefined;
12062
+ payment_term_id?: string | null | undefined;
12063
+ withholding_tax?: {
12064
+ tax_rate: number;
12065
+ tax_code: string;
12066
+ tax_amount: number;
12067
+ } | null | undefined;
11110
12068
  id?: string | null | undefined;
11111
12069
  invoice_date: string;
11112
12070
  due_date: string;
11113
- partner_id: string;
12071
+ partner_id: string | null;
11114
12072
  journal_id?: string | null | undefined;
11115
12073
  payments?: {
11116
12074
  id: string;
@@ -11164,12 +12122,27 @@ export declare class API {
11164
12122
  postal_code?: string | null | undefined;
11165
12123
  country?: string | null | undefined;
11166
12124
  }[] | null;
12125
+ third_party_account?: string | null | undefined;
11167
12126
  } | null | undefined;
11168
12127
  due_dates: {
11169
12128
  due_date: string;
11170
12129
  payment_method?: string | null | undefined;
12130
+ payment_method_id?: string | null | undefined;
11171
12131
  amount: number;
11172
12132
  }[] | null;
12133
+ attachments_info?: {
12134
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12135
+ attachments: {
12136
+ filename?: string | null | undefined;
12137
+ url?: string | null | undefined;
12138
+ }[] | null;
12139
+ } | undefined;
12140
+ accounting_info?: {
12141
+ main_currency?: string | undefined;
12142
+ main_currency_total: number;
12143
+ account_number?: string | null | undefined;
12144
+ } | null | undefined;
12145
+ payment_method_id?: string | null | undefined;
11173
12146
  lines: {
11174
12147
  line_number: number | null;
11175
12148
  unit_price: number;
@@ -11200,10 +12173,16 @@ export declare class API {
11200
12173
  reference?: string | null | undefined;
11201
12174
  payment_communication?: string | null | undefined;
11202
12175
  customer_memo?: string | null | undefined;
12176
+ payment_term_id?: string | null | undefined;
12177
+ withholding_tax?: {
12178
+ tax_rate: number;
12179
+ tax_code: string;
12180
+ tax_amount: number;
12181
+ } | null | undefined;
11203
12182
  id?: string | null | undefined;
11204
12183
  invoice_date: string;
11205
12184
  due_date: string;
11206
- partner_id: string;
12185
+ partner_id: string | null;
11207
12186
  journal_id?: string | null | undefined;
11208
12187
  payments?: {
11209
12188
  id: string;
@@ -11257,12 +12236,27 @@ export declare class API {
11257
12236
  postal_code?: string | null | undefined;
11258
12237
  country?: string | null | undefined;
11259
12238
  }[] | null;
12239
+ third_party_account?: string | null | undefined;
11260
12240
  } | null | undefined;
11261
12241
  due_dates: {
11262
12242
  due_date: string;
11263
12243
  payment_method?: string | null | undefined;
12244
+ payment_method_id?: string | null | undefined;
11264
12245
  amount: number;
11265
12246
  }[] | null;
12247
+ attachments_info?: {
12248
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12249
+ attachments: {
12250
+ filename?: string | null | undefined;
12251
+ url?: string | null | undefined;
12252
+ }[] | null;
12253
+ } | undefined;
12254
+ accounting_info?: {
12255
+ main_currency?: string | undefined;
12256
+ main_currency_total: number;
12257
+ account_number?: string | null | undefined;
12258
+ } | null | undefined;
12259
+ payment_method_id?: string | null | undefined;
11266
12260
  lines: {
11267
12261
  line_number: number | null;
11268
12262
  unit_price: number;
@@ -11293,10 +12287,16 @@ export declare class API {
11293
12287
  reference?: string | null | undefined;
11294
12288
  payment_communication?: string | null | undefined;
11295
12289
  customer_memo?: string | null | undefined;
12290
+ payment_term_id?: string | null | undefined;
12291
+ withholding_tax?: {
12292
+ tax_rate: number;
12293
+ tax_code: string;
12294
+ tax_amount: number;
12295
+ } | null | undefined;
11296
12296
  id?: string | null | undefined;
11297
12297
  invoice_date: string;
11298
12298
  due_date: string;
11299
- partner_id: string;
12299
+ partner_id: string | null;
11300
12300
  journal_id?: string | null | undefined;
11301
12301
  payments?: {
11302
12302
  id: string;
@@ -11350,12 +12350,27 @@ export declare class API {
11350
12350
  postal_code?: string | null | undefined;
11351
12351
  country?: string | null | undefined;
11352
12352
  }[] | null;
12353
+ third_party_account?: string | null | undefined;
11353
12354
  } | null | undefined;
11354
12355
  due_dates: {
11355
12356
  due_date: string;
11356
12357
  payment_method?: string | null | undefined;
12358
+ payment_method_id?: string | null | undefined;
11357
12359
  amount: number;
11358
12360
  }[] | null;
12361
+ attachments_info?: {
12362
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12363
+ attachments: {
12364
+ filename?: string | null | undefined;
12365
+ url?: string | null | undefined;
12366
+ }[] | null;
12367
+ } | undefined;
12368
+ accounting_info?: {
12369
+ main_currency?: string | undefined;
12370
+ main_currency_total: number;
12371
+ account_number?: string | null | undefined;
12372
+ } | null | undefined;
12373
+ payment_method_id?: string | null | undefined;
11359
12374
  lines: {
11360
12375
  line_number: number | null;
11361
12376
  unit_price: number;
@@ -11397,10 +12412,16 @@ export declare class API {
11397
12412
  reference?: string | null | undefined;
11398
12413
  payment_communication?: string | null | undefined;
11399
12414
  customer_memo?: string | null | undefined;
12415
+ payment_term_id?: string | null | undefined;
12416
+ withholding_tax?: {
12417
+ tax_rate: number;
12418
+ tax_code: string;
12419
+ tax_amount: number;
12420
+ } | null | undefined;
11400
12421
  id?: string | null | undefined;
11401
12422
  invoice_date: string;
11402
12423
  due_date: string;
11403
- partner_id: string;
12424
+ partner_id: string | null;
11404
12425
  journal_id?: string | null | undefined;
11405
12426
  payments?: {
11406
12427
  id: string;
@@ -11454,12 +12475,27 @@ export declare class API {
11454
12475
  postal_code?: string | null | undefined;
11455
12476
  country?: string | null | undefined;
11456
12477
  }[] | null;
12478
+ third_party_account?: string | null | undefined;
11457
12479
  } | null | undefined;
11458
12480
  due_dates: {
11459
12481
  due_date: string;
11460
12482
  payment_method?: string | null | undefined;
12483
+ payment_method_id?: string | null | undefined;
11461
12484
  amount: number;
11462
12485
  }[] | null;
12486
+ attachments_info?: {
12487
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12488
+ attachments: {
12489
+ filename?: string | null | undefined;
12490
+ url?: string | null | undefined;
12491
+ }[] | null;
12492
+ } | undefined;
12493
+ accounting_info?: {
12494
+ main_currency?: string | undefined;
12495
+ main_currency_total: number;
12496
+ account_number?: string | null | undefined;
12497
+ } | null | undefined;
12498
+ payment_method_id?: string | null | undefined;
11463
12499
  lines: {
11464
12500
  line_number: number | null;
11465
12501
  unit_price: number;
@@ -11607,7 +12643,7 @@ export declare class API {
11607
12643
  folder_id?: string | null | undefined;
11608
12644
  updated_after?: string | null | undefined;
11609
12645
  unposted_allowed: "true" | "false";
11610
- journal_id: string;
12646
+ journal_id?: string | null | undefined;
11611
12647
  partner_id?: string | null | undefined;
11612
12648
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11613
12649
  reference?: string | null | undefined;
@@ -11621,9 +12657,17 @@ export declare class API {
11621
12657
  due_dates: {
11622
12658
  due_date: string;
11623
12659
  payment_method?: string | null | undefined;
12660
+ payment_method_id?: string | null | undefined;
11624
12661
  debit: number | null;
11625
12662
  credit: number | null;
11626
12663
  }[] | null;
12664
+ attachments_info?: {
12665
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12666
+ attachments: {
12667
+ filename?: string | null | undefined;
12668
+ url?: string | null | undefined;
12669
+ }[] | null;
12670
+ } | undefined;
11627
12671
  items: {
11628
12672
  account_number: string;
11629
12673
  partner_id?: string | null | undefined;
@@ -11646,7 +12690,7 @@ export declare class API {
11646
12690
  folder_id?: string | null | undefined;
11647
12691
  updated_after?: string | null | undefined;
11648
12692
  unposted_allowed: "true" | "false";
11649
- journal_id: string;
12693
+ journal_id?: string | null | undefined;
11650
12694
  partner_id?: string | null | undefined;
11651
12695
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11652
12696
  reference?: string | null | undefined;
@@ -11660,9 +12704,17 @@ export declare class API {
11660
12704
  due_dates: {
11661
12705
  due_date: string;
11662
12706
  payment_method?: string | null | undefined;
12707
+ payment_method_id?: string | null | undefined;
11663
12708
  debit: number | null;
11664
12709
  credit: number | null;
11665
12710
  }[] | null;
12711
+ attachments_info?: {
12712
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12713
+ attachments: {
12714
+ filename?: string | null | undefined;
12715
+ url?: string | null | undefined;
12716
+ }[] | null;
12717
+ } | undefined;
11666
12718
  items: {
11667
12719
  account_number: string;
11668
12720
  partner_id?: string | null | undefined;
@@ -11752,6 +12804,7 @@ export declare class API {
11752
12804
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11753
12805
  id: string;
11754
12806
  code?: string | null | undefined;
12807
+ active: boolean | null;
11755
12808
  label: string;
11756
12809
  scope: "unknown" | "nat" | "eu" | "int" | null;
11757
12810
  rate: number;
@@ -11759,6 +12812,7 @@ export declare class API {
11759
12812
  deductible_account?: string | null | undefined;
11760
12813
  payable_account?: string | null | undefined;
11761
12814
  reversed: boolean | null;
12815
+ withholding_tax: boolean | null;
11762
12816
  country?: string | null | undefined;
11763
12817
  }[]>;
11764
12818
  getMiscOperations(params?: {
@@ -11861,12 +12915,14 @@ export declare class API {
11861
12915
  getChartOfAccounts(params?: {
11862
12916
  folder_id?: string | null | undefined;
11863
12917
  classes?: string | null | undefined;
11864
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
12918
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
11865
12919
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11866
12920
  number: string;
11867
12921
  name: string;
11868
12922
  active: boolean | null;
11869
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
12923
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
12924
+ scheme_ids?: string[] | null | undefined;
12925
+ accounting_category?: string | null | undefined;
11870
12926
  }[]>;
11871
12927
  getBalanceOfAccounts(filter: {
11872
12928
  accounts: string[];
@@ -11942,11 +12998,13 @@ export declare class API {
11942
12998
  account: string;
11943
12999
  amount: number;
11944
13000
  description?: string | null | undefined;
13001
+ automated_matching_number?: string | null | undefined;
11945
13002
  }[];
11946
13003
  pdf?: string | null | undefined;
11947
13004
  }, params?: {
11948
13005
  folder_id?: string | null | undefined;
11949
13006
  financial_counterpart_account?: string | null | undefined;
13007
+ force_currency_exchange?: boolean | null | undefined;
11950
13008
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
11951
13009
  date: string;
11952
13010
  journal_id: string;
@@ -11960,6 +13018,7 @@ export declare class API {
11960
13018
  account: string;
11961
13019
  amount: number;
11962
13020
  description?: string | null | undefined;
13021
+ automated_matching_number?: string | null | undefined;
11963
13022
  counterpart_account: string;
11964
13023
  }[];
11965
13024
  }>;
@@ -11987,6 +13046,13 @@ export declare class API {
11987
13046
  }[];
11988
13047
  }[] | null;
11989
13048
  tax_code?: string | null | undefined;
13049
+ tax_info?: {
13050
+ tax_code: string;
13051
+ tax_amount: number;
13052
+ vat_account?: string | null | undefined;
13053
+ reversed_vat_account?: string | null | undefined;
13054
+ description?: string | null | undefined;
13055
+ } | null | undefined;
11990
13056
  account_info?: {
11991
13057
  account_number: string;
11992
13058
  account_name: string;
@@ -11999,6 +13065,7 @@ export declare class API {
11999
13065
  }, params?: {
12000
13066
  folder_id?: string | null | undefined;
12001
13067
  force_currency_exchange?: "true" | "false" | null | undefined;
13068
+ ignore_accounting_id?: boolean | undefined;
12002
13069
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
12003
13070
  reference?: string | null | undefined;
12004
13071
  due_date?: string | null | undefined;
@@ -12011,9 +13078,17 @@ export declare class API {
12011
13078
  due_dates: {
12012
13079
  due_date: string;
12013
13080
  payment_method?: string | null | undefined;
13081
+ payment_method_id?: string | null | undefined;
12014
13082
  debit: number | null;
12015
13083
  credit: number | null;
12016
13084
  }[] | null;
13085
+ attachments_info?: {
13086
+ status: "unknown" | "yes" | "yes_to_request" | "no";
13087
+ attachments: {
13088
+ filename?: string | null | undefined;
13089
+ url?: string | null | undefined;
13090
+ }[] | null;
13091
+ } | undefined;
12017
13092
  items: {
12018
13093
  account_number: string;
12019
13094
  partner_id?: string | null | undefined;
@@ -12129,14 +13204,35 @@ export declare class API {
12129
13204
  createLedgerAccount(account: {
12130
13205
  name: string;
12131
13206
  number: string;
12132
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
13207
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
12133
13208
  }, params?: {
12134
13209
  folder_id?: string | null | undefined;
12135
13210
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
12136
13211
  number: string;
12137
13212
  name: string;
12138
13213
  active: boolean | null;
12139
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
13214
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
13215
+ scheme_ids?: string[] | null | undefined;
13216
+ accounting_category?: string | null | undefined;
13217
+ }>;
13218
+ getBankAccounts(params?: {
13219
+ folder_id?: string | null | undefined;
13220
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
13221
+ items: {
13222
+ id: string;
13223
+ code?: string | null | undefined;
13224
+ currency?: string | null | undefined;
13225
+ account_name?: string | null | undefined;
13226
+ account_number?: string | null | undefined;
13227
+ iban?: string | null | undefined;
13228
+ bank_name?: string | null | undefined;
13229
+ journal_id?: string | null | undefined;
13230
+ ledger_account?: string | null | undefined;
13231
+ unallocated_account?: string | null | undefined;
13232
+ }[];
13233
+ total: number;
13234
+ page: number;
13235
+ size: number;
12140
13236
  }>;
12141
13237
  createBankAccount(bankAccount: {
12142
13238
  code: string;
@@ -12159,6 +13255,45 @@ export declare class API {
12159
13255
  ledger_account?: string | null | undefined;
12160
13256
  unallocated_account?: string | null | undefined;
12161
13257
  }>;
13258
+ createBankTransactions(bankStatement: {
13259
+ bank_statement_date: string;
13260
+ bank_account_id: string;
13261
+ external_bank_statement_id: string;
13262
+ opening_balance?: number | null | undefined;
13263
+ pdf?: string | null | undefined;
13264
+ items: {
13265
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
13266
+ account?: string | null | undefined;
13267
+ description?: string | null | undefined;
13268
+ external_transaction_id?: string | null | undefined;
13269
+ date: string;
13270
+ amount: number;
13271
+ fee_amount: number | null;
13272
+ tax_amount: number | null;
13273
+ currency: string;
13274
+ currency_exchange_rate: number | null;
13275
+ }[];
13276
+ }, params?: {
13277
+ folder_id?: string | null | undefined;
13278
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
13279
+ bank_statement_date: string;
13280
+ bank_account_id: string;
13281
+ id?: string | null | undefined;
13282
+ external_bank_statement_id?: string | null | undefined;
13283
+ items: {
13284
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
13285
+ account?: string | null | undefined;
13286
+ description?: string | null | undefined;
13287
+ external_transaction_id?: string | null | undefined;
13288
+ date: string;
13289
+ amount: number;
13290
+ fee_amount: number | null;
13291
+ tax_amount: number | null;
13292
+ currency: string;
13293
+ currency_exchange_rate: number | null;
13294
+ id?: string | null | undefined;
13295
+ }[];
13296
+ }>;
12162
13297
  getJournalEntry(journalEntryId: string, params?: {
12163
13298
  folder_id?: string | null | undefined;
12164
13299
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -12173,9 +13308,17 @@ export declare class API {
12173
13308
  due_dates: {
12174
13309
  due_date: string;
12175
13310
  payment_method?: string | null | undefined;
13311
+ payment_method_id?: string | null | undefined;
12176
13312
  debit: number | null;
12177
13313
  credit: number | null;
12178
13314
  }[] | null;
13315
+ attachments_info?: {
13316
+ status: "unknown" | "yes" | "yes_to_request" | "no";
13317
+ attachments: {
13318
+ filename?: string | null | undefined;
13319
+ url?: string | null | undefined;
13320
+ }[] | null;
13321
+ } | undefined;
12179
13322
  items: {
12180
13323
  account_number: string;
12181
13324
  partner_id?: string | null | undefined;
@@ -12210,6 +13353,29 @@ export declare class API {
12210
13353
  page: number;
12211
13354
  size: number;
12212
13355
  }>;
13356
+ getPaymentTerms(params?: {
13357
+ folder_id?: string | null | undefined;
13358
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
13359
+ items: {
13360
+ id: string;
13361
+ name?: string | null | undefined;
13362
+ }[];
13363
+ total: number;
13364
+ page: number;
13365
+ size: number;
13366
+ }>;
13367
+ getSchemes(params?: {
13368
+ folder_id?: string | null | undefined;
13369
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
13370
+ items: {
13371
+ id: string;
13372
+ code: string;
13373
+ name: string;
13374
+ }[];
13375
+ total: number;
13376
+ page: number;
13377
+ size: number;
13378
+ }>;
12213
13379
  createInvoicePayment(body: {
12214
13380
  date: string;
12215
13381
  payment_method_id: string;
@@ -12229,6 +13395,29 @@ export declare class API {
12229
13395
  };
12230
13396
  content?: undefined;
12231
13397
  }>;
13398
+ exportFec(params: {
13399
+ folder_id?: string | null | undefined;
13400
+ date_from: string;
13401
+ date_to: string;
13402
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
13403
+ JournalCode: string;
13404
+ JournalLib: string;
13405
+ EcritureNum: string;
13406
+ EcritureDate: string;
13407
+ CompteNum: string;
13408
+ CompteLib: string;
13409
+ CompAuxNum: string;
13410
+ CompAuxLib: string;
13411
+ PieceRef: string;
13412
+ PieceDate: string;
13413
+ Debit: number;
13414
+ Credit: number;
13415
+ EcritureLet: string;
13416
+ DateLet: string | null;
13417
+ ValidDate: string | null;
13418
+ Montantdevise: number;
13419
+ Idevise: string;
13420
+ }[]>;
12232
13421
  }>;
12233
13422
  invoicing: import("../types/api").ApiFor<{
12234
13423
  getInvoices(params?: {
@@ -12238,6 +13427,7 @@ export declare class API {
12238
13427
  updated_after?: string | null | undefined;
12239
13428
  include_invoice_lines?: "true" | "false" | null | undefined;
12240
13429
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
13430
+ include_analytic_accounts?: "true" | "false" | null | undefined;
12241
13431
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
12242
13432
  id: string;
12243
13433
  source_ref: {
@@ -12267,6 +13457,14 @@ export declare class API {
12267
13457
  product_id?: string | null | undefined;
12268
13458
  product_code?: string | null | undefined;
12269
13459
  product_name?: string | null | undefined;
13460
+ analytic_distribution: {
13461
+ analytic_plan_code: string;
13462
+ analytic_accounts: {
13463
+ analytic_account_code: string;
13464
+ analytic_account_name: string;
13465
+ percentage: number;
13466
+ }[];
13467
+ }[] | null;
12270
13468
  }[];
12271
13469
  partner_id?: string | null | undefined;
12272
13470
  invoice_number?: string | null | undefined;
@@ -12306,6 +13504,7 @@ export declare class API {
12306
13504
  }[]>;
12307
13505
  getInvoiceById(invoiceId: string, params?: {
12308
13506
  include_pdf?: "true" | "false" | null | undefined;
13507
+ include_analytic_accounts?: "true" | "false" | null | undefined;
12309
13508
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
12310
13509
  id: string;
12311
13510
  source_ref: {
@@ -12335,6 +13534,14 @@ export declare class API {
12335
13534
  product_id?: string | null | undefined;
12336
13535
  product_code?: string | null | undefined;
12337
13536
  product_name?: string | null | undefined;
13537
+ analytic_distribution: {
13538
+ analytic_plan_code: string;
13539
+ analytic_accounts: {
13540
+ analytic_account_code: string;
13541
+ analytic_account_name: string;
13542
+ percentage: number;
13543
+ }[];
13544
+ }[] | null;
12338
13545
  }[];
12339
13546
  partner_id?: string | null | undefined;
12340
13547
  invoice_number?: string | null | undefined;
@@ -12456,6 +13663,14 @@ export declare class API {
12456
13663
  product_id?: string | null | undefined;
12457
13664
  product_code?: string | null | undefined;
12458
13665
  product_name?: string | null | undefined;
13666
+ analytic_distribution: {
13667
+ analytic_plan_code: string;
13668
+ analytic_accounts: {
13669
+ analytic_account_code: string;
13670
+ analytic_account_name: string;
13671
+ percentage: number;
13672
+ }[];
13673
+ }[] | null;
12459
13674
  }[];
12460
13675
  partner_id?: string | null | undefined;
12461
13676
  invoice_number?: string | null | undefined;
@@ -14034,14 +15249,18 @@ export declare class API {
14034
15249
  reference: string;
14035
15250
  reference_type: string;
14036
15251
  holder_name?: string | null | undefined;
15252
+ active: boolean | null;
14037
15253
  }[]>;
14038
- getAccountTransactions(accountId: string, params?: {
15254
+ getAccountTransactions(params: {
14039
15255
  date_from?: string | null | undefined;
14040
15256
  date_to?: string | null | undefined;
15257
+ updated_after?: string | null | undefined;
15258
+ account_id: string;
14041
15259
  date_type?: "value_date" | "execution_date" | null | undefined;
14042
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
15260
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
14043
15261
  id: string;
14044
15262
  amount: number;
15263
+ tax_amount?: number | null | undefined;
14045
15264
  currency: string;
14046
15265
  description?: string | null | undefined;
14047
15266
  additional_information?: string | null | undefined;
@@ -14051,6 +15270,17 @@ export declare class API {
14051
15270
  creation_date: string;
14052
15271
  value_date: string;
14053
15272
  execution_date: string;
15273
+ internal_transaction: boolean | null;
15274
+ 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;
15275
+ last_update_on?: string | null | undefined;
15276
+ status?: "completed" | "pending" | "declined" | null | undefined;
15277
+ attachments_info?: {
15278
+ status: "unknown" | "yes" | "yes_to_request" | "no";
15279
+ attachments: {
15280
+ filename?: string | null | undefined;
15281
+ url?: string | null | undefined;
15282
+ }[] | null;
15283
+ } | undefined;
14054
15284
  }[]>;
14055
15285
  getAccountCounterparts(params?: {
14056
15286
  date_from?: string | null | undefined;
@@ -14061,6 +15291,17 @@ export declare class API {
14061
15291
  reference?: string | null | undefined;
14062
15292
  details?: string | null | undefined;
14063
15293
  }[]>;
15294
+ getAttachments(params: {
15295
+ transaction_id: string;
15296
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
15297
+ items: {
15298
+ id: string;
15299
+ base64_string: string;
15300
+ }[];
15301
+ total: number;
15302
+ page: number;
15303
+ size: number;
15304
+ }>;
14064
15305
  }>;
14065
15306
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
14066
15307
  data: {
@@ -14100,6 +15341,7 @@ export declare class API {
14100
15341
  source_id?: string | null | undefined;
14101
15342
  target_id?: string | null | undefined;
14102
15343
  }[];
15344
+ hidden_source_ids: string[];
14103
15345
  sub_mapping_name: string;
14104
15346
  sub_mapping_description?: string | null | undefined;
14105
15347
  }[] | null | undefined;
@@ -14263,7 +15505,8 @@ export declare class API {
14263
15505
  value: string;
14264
15506
  }[] | null | undefined;
14265
15507
  country?: string | null | undefined;
14266
- } | undefined) => Promise<{
15508
+ redirect: boolean | null;
15509
+ } | null | undefined) => Promise<{
14267
15510
  url: string;
14268
15511
  }>;
14269
15512
  updateConnection: (connectionId: string, body?: {
@@ -14282,6 +15525,15 @@ export declare class API {
14282
15525
  };
14283
15526
  content?: undefined;
14284
15527
  }>;
15528
+ getTransactionByClientRequestId: (connectionId: string, params: {
15529
+ client_request_id: string;
15530
+ }) => Promise<{
15531
+ created_on: string;
15532
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
15533
+ route: string;
15534
+ status_code: number;
15535
+ created_entity_id?: string | null | undefined;
15536
+ }>;
14285
15537
  enableFlow: (syncId: string, flowId: string, body: {
14286
15538
  integrationids: string[];
14287
15539
  triggerid: string | null;
@@ -14338,6 +15590,7 @@ export declare class API {
14338
15590
  total_refund: number | null;
14339
15591
  total_tip: number | null;
14340
15592
  delivery_fee: number | null;
15593
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
14341
15594
  currency?: string | null | undefined;
14342
15595
  country?: string | null | undefined;
14343
15596
  loyalty?: number | null | undefined;
@@ -14416,6 +15669,7 @@ export declare class API {
14416
15669
  total_refund: number | null;
14417
15670
  total_tip: number | null;
14418
15671
  delivery_fee: number | null;
15672
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
14419
15673
  currency?: string | null | undefined;
14420
15674
  country?: string | null | undefined;
14421
15675
  loyalty?: number | null | undefined;
@@ -14604,6 +15858,7 @@ export declare class API {
14604
15858
  total_refund: number | null;
14605
15859
  total_tip: number | null;
14606
15860
  delivery_fee: number | null;
15861
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
14607
15862
  currency?: string | null | undefined;
14608
15863
  country?: string | null | undefined;
14609
15864
  loyalty?: number | null | undefined;
@@ -14708,6 +15963,7 @@ export declare class API {
14708
15963
  total_refund: number | null;
14709
15964
  total_tip: number | null;
14710
15965
  delivery_fee: number | null;
15966
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
14711
15967
  currency?: string | null | undefined;
14712
15968
  country?: string | null | undefined;
14713
15969
  loyalty?: number | null | undefined;
@@ -14887,6 +16143,30 @@ export declare class API {
14887
16143
  country?: string | null | undefined;
14888
16144
  }[] | null | undefined;
14889
16145
  }[]>;
16146
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
16147
+ id: string;
16148
+ source_ref: {
16149
+ id?: string | null | undefined;
16150
+ model?: string | null | undefined;
16151
+ };
16152
+ first_name?: string | null | undefined;
16153
+ last_name?: string | null | undefined;
16154
+ company_name?: string | null | undefined;
16155
+ phone?: string | null | undefined;
16156
+ email?: string | null | undefined;
16157
+ account_number?: string | null | undefined;
16158
+ created_on?: string | null | undefined;
16159
+ addresses?: {
16160
+ address_type?: string | null | undefined;
16161
+ name?: string | null | undefined;
16162
+ street?: string | null | undefined;
16163
+ number?: string | null | undefined;
16164
+ box?: string | null | undefined;
16165
+ city?: string | null | undefined;
16166
+ postal_code?: string | null | undefined;
16167
+ country?: string | null | undefined;
16168
+ }[] | null | undefined;
16169
+ }>;
14890
16170
  getInvoices(params?: {
14891
16171
  date_from: string;
14892
16172
  date_to: string;
@@ -14989,6 +16269,20 @@ export declare class API {
14989
16269
  untaxed_amount: number;
14990
16270
  total: number;
14991
16271
  }[]>;
16272
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
16273
+ items: {
16274
+ id: string;
16275
+ source_ref: {
16276
+ id?: string | null | undefined;
16277
+ model?: string | null | undefined;
16278
+ };
16279
+ label?: string | null | undefined;
16280
+ rate?: number | null | undefined;
16281
+ }[];
16282
+ total: number;
16283
+ page: number;
16284
+ size: number;
16285
+ }>;
14992
16286
  }>;
14993
16287
  payment: import("../types/api").ApiFor<{
14994
16288
  getPayments(params: {
@@ -15122,6 +16416,7 @@ export declare class API {
15122
16416
  postal_code?: string | null | undefined;
15123
16417
  country?: string | null | undefined;
15124
16418
  }[] | null;
16419
+ third_party_account?: string | null | undefined;
15125
16420
  }[]>;
15126
16421
  createClient(client: {
15127
16422
  external_reference?: string | null | undefined;
@@ -15195,6 +16490,7 @@ export declare class API {
15195
16490
  postal_code?: string | null | undefined;
15196
16491
  country?: string | null | undefined;
15197
16492
  }[] | null;
16493
+ third_party_account?: string | null | undefined;
15198
16494
  }>;
15199
16495
  getClient(clientId: string, params?: {
15200
16496
  folder_id?: string | null | undefined;
@@ -15234,6 +16530,7 @@ export declare class API {
15234
16530
  postal_code?: string | null | undefined;
15235
16531
  country?: string | null | undefined;
15236
16532
  }[] | null;
16533
+ third_party_account?: string | null | undefined;
15237
16534
  }>;
15238
16535
  updateClient(clientId: string, client: {
15239
16536
  external_reference?: string | null | undefined;
@@ -15305,6 +16602,7 @@ export declare class API {
15305
16602
  postal_code?: string | null | undefined;
15306
16603
  country?: string | null | undefined;
15307
16604
  }[] | null;
16605
+ third_party_account?: string | null | undefined;
15308
16606
  }>;
15309
16607
  getSuppliers(params?: {
15310
16608
  search?: string | null | undefined;
@@ -15346,6 +16644,7 @@ export declare class API {
15346
16644
  postal_code?: string | null | undefined;
15347
16645
  country?: string | null | undefined;
15348
16646
  }[] | null;
16647
+ third_party_account?: string | null | undefined;
15349
16648
  }[]>;
15350
16649
  createSupplier(supplier: {
15351
16650
  external_reference?: string | null | undefined;
@@ -15419,6 +16718,7 @@ export declare class API {
15419
16718
  postal_code?: string | null | undefined;
15420
16719
  country?: string | null | undefined;
15421
16720
  }[] | null;
16721
+ third_party_account?: string | null | undefined;
15422
16722
  }>;
15423
16723
  getSupplier(supplierId: string, params?: {
15424
16724
  folder_id?: string | null | undefined;
@@ -15458,6 +16758,7 @@ export declare class API {
15458
16758
  postal_code?: string | null | undefined;
15459
16759
  country?: string | null | undefined;
15460
16760
  }[] | null;
16761
+ third_party_account?: string | null | undefined;
15461
16762
  }>;
15462
16763
  updateSupplier(supplierId: string, supplier: {
15463
16764
  external_reference?: string | null | undefined;
@@ -15529,6 +16830,7 @@ export declare class API {
15529
16830
  postal_code?: string | null | undefined;
15530
16831
  country?: string | null | undefined;
15531
16832
  }[] | null;
16833
+ third_party_account?: string | null | undefined;
15532
16834
  }>;
15533
16835
  createInvoice(invoice: {
15534
16836
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
@@ -15540,6 +16842,12 @@ export declare class API {
15540
16842
  reference?: string | null | undefined;
15541
16843
  payment_communication?: string | null | undefined;
15542
16844
  customer_memo?: string | null | undefined;
16845
+ payment_term_id?: string | null | undefined;
16846
+ withholding_tax?: {
16847
+ tax_rate: number;
16848
+ tax_code: string;
16849
+ tax_amount: number;
16850
+ } | null | undefined;
15543
16851
  invoice_date: string;
15544
16852
  due_date: string;
15545
16853
  partner_id?: string | null | undefined;
@@ -15582,10 +16890,15 @@ export declare class API {
15582
16890
  description: string;
15583
16891
  analytic_account?: string | null | undefined;
15584
16892
  }[];
16893
+ start_date?: string | null | undefined;
16894
+ end_date?: string | null | undefined;
16895
+ payment_method_id?: string | null | undefined;
15585
16896
  }, params?: {
15586
16897
  folder_id?: string | null | undefined;
15587
16898
  force_financial_period?: string | null | undefined;
15588
16899
  regroup_lines?: "true" | "false" | null | undefined;
16900
+ ignore_accounting_id?: boolean | undefined;
16901
+ force_currency_exchange?: boolean | null | undefined;
15589
16902
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
15590
16903
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15591
16904
  invoice_number?: string | null | undefined;
@@ -15596,10 +16909,16 @@ export declare class API {
15596
16909
  reference?: string | null | undefined;
15597
16910
  payment_communication?: string | null | undefined;
15598
16911
  customer_memo?: string | null | undefined;
16912
+ payment_term_id?: string | null | undefined;
16913
+ withholding_tax?: {
16914
+ tax_rate: number;
16915
+ tax_code: string;
16916
+ tax_amount: number;
16917
+ } | null | undefined;
15599
16918
  id?: string | null | undefined;
15600
16919
  invoice_date: string;
15601
16920
  due_date: string;
15602
- partner_id: string;
16921
+ partner_id: string | null;
15603
16922
  journal_id?: string | null | undefined;
15604
16923
  payments?: {
15605
16924
  id: string;
@@ -15653,12 +16972,27 @@ export declare class API {
15653
16972
  postal_code?: string | null | undefined;
15654
16973
  country?: string | null | undefined;
15655
16974
  }[] | null;
16975
+ third_party_account?: string | null | undefined;
15656
16976
  } | null | undefined;
15657
16977
  due_dates: {
15658
16978
  due_date: string;
15659
16979
  payment_method?: string | null | undefined;
16980
+ payment_method_id?: string | null | undefined;
15660
16981
  amount: number;
15661
16982
  }[] | null;
16983
+ attachments_info?: {
16984
+ status: "unknown" | "yes" | "yes_to_request" | "no";
16985
+ attachments: {
16986
+ filename?: string | null | undefined;
16987
+ url?: string | null | undefined;
16988
+ }[] | null;
16989
+ } | undefined;
16990
+ accounting_info?: {
16991
+ main_currency?: string | undefined;
16992
+ main_currency_total: number;
16993
+ account_number?: string | null | undefined;
16994
+ } | null | undefined;
16995
+ payment_method_id?: string | null | undefined;
15662
16996
  lines: {
15663
16997
  line_number: number | null;
15664
16998
  unit_price: number;
@@ -15684,6 +17018,12 @@ export declare class API {
15684
17018
  reference?: string | null | undefined;
15685
17019
  payment_communication?: string | null | undefined;
15686
17020
  customer_memo?: string | null | undefined;
17021
+ payment_term_id?: string | null | undefined;
17022
+ withholding_tax?: {
17023
+ tax_rate: number;
17024
+ tax_code: string;
17025
+ tax_amount: number;
17026
+ } | null | undefined;
15687
17027
  invoice_date: string;
15688
17028
  due_date: string;
15689
17029
  partner_id?: string | null | undefined;
@@ -15732,10 +17072,15 @@ export declare class API {
15732
17072
  }[];
15733
17073
  }[] | null;
15734
17074
  }[];
17075
+ start_date?: string | null | undefined;
17076
+ end_date?: string | null | undefined;
17077
+ payment_method_id?: string | null | undefined;
15735
17078
  }, params?: {
15736
17079
  folder_id?: string | null | undefined;
15737
17080
  force_financial_period?: string | null | undefined;
15738
17081
  regroup_lines?: "true" | "false" | null | undefined;
17082
+ ignore_accounting_id?: boolean | undefined;
17083
+ force_currency_exchange?: boolean | null | undefined;
15739
17084
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
15740
17085
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15741
17086
  invoice_number?: string | null | undefined;
@@ -15746,10 +17091,16 @@ export declare class API {
15746
17091
  reference?: string | null | undefined;
15747
17092
  payment_communication?: string | null | undefined;
15748
17093
  customer_memo?: string | null | undefined;
17094
+ payment_term_id?: string | null | undefined;
17095
+ withholding_tax?: {
17096
+ tax_rate: number;
17097
+ tax_code: string;
17098
+ tax_amount: number;
17099
+ } | null | undefined;
15749
17100
  id?: string | null | undefined;
15750
17101
  invoice_date: string;
15751
17102
  due_date: string;
15752
- partner_id: string;
17103
+ partner_id: string | null;
15753
17104
  journal_id?: string | null | undefined;
15754
17105
  payments?: {
15755
17106
  id: string;
@@ -15803,12 +17154,27 @@ export declare class API {
15803
17154
  postal_code?: string | null | undefined;
15804
17155
  country?: string | null | undefined;
15805
17156
  }[] | null;
17157
+ third_party_account?: string | null | undefined;
15806
17158
  } | null | undefined;
15807
17159
  due_dates: {
15808
17160
  due_date: string;
15809
17161
  payment_method?: string | null | undefined;
17162
+ payment_method_id?: string | null | undefined;
15810
17163
  amount: number;
15811
17164
  }[] | null;
17165
+ attachments_info?: {
17166
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17167
+ attachments: {
17168
+ filename?: string | null | undefined;
17169
+ url?: string | null | undefined;
17170
+ }[] | null;
17171
+ } | undefined;
17172
+ accounting_info?: {
17173
+ main_currency?: string | undefined;
17174
+ main_currency_total: number;
17175
+ account_number?: string | null | undefined;
17176
+ } | null | undefined;
17177
+ payment_method_id?: string | null | undefined;
15812
17178
  lines: {
15813
17179
  line_number: number | null;
15814
17180
  unit_price: number;
@@ -15850,10 +17216,16 @@ export declare class API {
15850
17216
  reference?: string | null | undefined;
15851
17217
  payment_communication?: string | null | undefined;
15852
17218
  customer_memo?: string | null | undefined;
17219
+ payment_term_id?: string | null | undefined;
17220
+ withholding_tax?: {
17221
+ tax_rate: number;
17222
+ tax_code: string;
17223
+ tax_amount: number;
17224
+ } | null | undefined;
15853
17225
  id?: string | null | undefined;
15854
17226
  invoice_date: string;
15855
17227
  due_date: string;
15856
- partner_id: string;
17228
+ partner_id: string | null;
15857
17229
  journal_id?: string | null | undefined;
15858
17230
  payments?: {
15859
17231
  id: string;
@@ -15907,12 +17279,27 @@ export declare class API {
15907
17279
  postal_code?: string | null | undefined;
15908
17280
  country?: string | null | undefined;
15909
17281
  }[] | null;
17282
+ third_party_account?: string | null | undefined;
15910
17283
  } | null | undefined;
15911
17284
  due_dates: {
15912
17285
  due_date: string;
15913
17286
  payment_method?: string | null | undefined;
17287
+ payment_method_id?: string | null | undefined;
15914
17288
  amount: number;
15915
17289
  }[] | null;
17290
+ attachments_info?: {
17291
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17292
+ attachments: {
17293
+ filename?: string | null | undefined;
17294
+ url?: string | null | undefined;
17295
+ }[] | null;
17296
+ } | undefined;
17297
+ accounting_info?: {
17298
+ main_currency?: string | undefined;
17299
+ main_currency_total: number;
17300
+ account_number?: string | null | undefined;
17301
+ } | null | undefined;
17302
+ payment_method_id?: string | null | undefined;
15916
17303
  lines: {
15917
17304
  line_number: number | null;
15918
17305
  unit_price: number;
@@ -15943,10 +17330,16 @@ export declare class API {
15943
17330
  reference?: string | null | undefined;
15944
17331
  payment_communication?: string | null | undefined;
15945
17332
  customer_memo?: string | null | undefined;
17333
+ payment_term_id?: string | null | undefined;
17334
+ withholding_tax?: {
17335
+ tax_rate: number;
17336
+ tax_code: string;
17337
+ tax_amount: number;
17338
+ } | null | undefined;
15946
17339
  id?: string | null | undefined;
15947
17340
  invoice_date: string;
15948
17341
  due_date: string;
15949
- partner_id: string;
17342
+ partner_id: string | null;
15950
17343
  journal_id?: string | null | undefined;
15951
17344
  payments?: {
15952
17345
  id: string;
@@ -16000,12 +17393,27 @@ export declare class API {
16000
17393
  postal_code?: string | null | undefined;
16001
17394
  country?: string | null | undefined;
16002
17395
  }[] | null;
17396
+ third_party_account?: string | null | undefined;
16003
17397
  } | null | undefined;
16004
17398
  due_dates: {
16005
17399
  due_date: string;
16006
17400
  payment_method?: string | null | undefined;
17401
+ payment_method_id?: string | null | undefined;
16007
17402
  amount: number;
16008
17403
  }[] | null;
17404
+ attachments_info?: {
17405
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17406
+ attachments: {
17407
+ filename?: string | null | undefined;
17408
+ url?: string | null | undefined;
17409
+ }[] | null;
17410
+ } | undefined;
17411
+ accounting_info?: {
17412
+ main_currency?: string | undefined;
17413
+ main_currency_total: number;
17414
+ account_number?: string | null | undefined;
17415
+ } | null | undefined;
17416
+ payment_method_id?: string | null | undefined;
16009
17417
  lines: {
16010
17418
  line_number: number | null;
16011
17419
  unit_price: number;
@@ -16036,10 +17444,16 @@ export declare class API {
16036
17444
  reference?: string | null | undefined;
16037
17445
  payment_communication?: string | null | undefined;
16038
17446
  customer_memo?: string | null | undefined;
17447
+ payment_term_id?: string | null | undefined;
17448
+ withholding_tax?: {
17449
+ tax_rate: number;
17450
+ tax_code: string;
17451
+ tax_amount: number;
17452
+ } | null | undefined;
16039
17453
  id?: string | null | undefined;
16040
17454
  invoice_date: string;
16041
17455
  due_date: string;
16042
- partner_id: string;
17456
+ partner_id: string | null;
16043
17457
  journal_id?: string | null | undefined;
16044
17458
  payments?: {
16045
17459
  id: string;
@@ -16093,12 +17507,27 @@ export declare class API {
16093
17507
  postal_code?: string | null | undefined;
16094
17508
  country?: string | null | undefined;
16095
17509
  }[] | null;
17510
+ third_party_account?: string | null | undefined;
16096
17511
  } | null | undefined;
16097
17512
  due_dates: {
16098
17513
  due_date: string;
16099
17514
  payment_method?: string | null | undefined;
17515
+ payment_method_id?: string | null | undefined;
16100
17516
  amount: number;
16101
17517
  }[] | null;
17518
+ attachments_info?: {
17519
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17520
+ attachments: {
17521
+ filename?: string | null | undefined;
17522
+ url?: string | null | undefined;
17523
+ }[] | null;
17524
+ } | undefined;
17525
+ accounting_info?: {
17526
+ main_currency?: string | undefined;
17527
+ main_currency_total: number;
17528
+ account_number?: string | null | undefined;
17529
+ } | null | undefined;
17530
+ payment_method_id?: string | null | undefined;
16102
17531
  lines: {
16103
17532
  line_number: number | null;
16104
17533
  unit_price: number;
@@ -16140,10 +17569,16 @@ export declare class API {
16140
17569
  reference?: string | null | undefined;
16141
17570
  payment_communication?: string | null | undefined;
16142
17571
  customer_memo?: string | null | undefined;
17572
+ payment_term_id?: string | null | undefined;
17573
+ withholding_tax?: {
17574
+ tax_rate: number;
17575
+ tax_code: string;
17576
+ tax_amount: number;
17577
+ } | null | undefined;
16143
17578
  id?: string | null | undefined;
16144
17579
  invoice_date: string;
16145
17580
  due_date: string;
16146
- partner_id: string;
17581
+ partner_id: string | null;
16147
17582
  journal_id?: string | null | undefined;
16148
17583
  payments?: {
16149
17584
  id: string;
@@ -16197,12 +17632,27 @@ export declare class API {
16197
17632
  postal_code?: string | null | undefined;
16198
17633
  country?: string | null | undefined;
16199
17634
  }[] | null;
17635
+ third_party_account?: string | null | undefined;
16200
17636
  } | null | undefined;
16201
17637
  due_dates: {
16202
17638
  due_date: string;
16203
17639
  payment_method?: string | null | undefined;
17640
+ payment_method_id?: string | null | undefined;
16204
17641
  amount: number;
16205
17642
  }[] | null;
17643
+ attachments_info?: {
17644
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17645
+ attachments: {
17646
+ filename?: string | null | undefined;
17647
+ url?: string | null | undefined;
17648
+ }[] | null;
17649
+ } | undefined;
17650
+ accounting_info?: {
17651
+ main_currency?: string | undefined;
17652
+ main_currency_total: number;
17653
+ account_number?: string | null | undefined;
17654
+ } | null | undefined;
17655
+ payment_method_id?: string | null | undefined;
16206
17656
  lines: {
16207
17657
  line_number: number | null;
16208
17658
  unit_price: number;
@@ -16350,7 +17800,7 @@ export declare class API {
16350
17800
  folder_id?: string | null | undefined;
16351
17801
  updated_after?: string | null | undefined;
16352
17802
  unposted_allowed: "true" | "false";
16353
- journal_id: string;
17803
+ journal_id?: string | null | undefined;
16354
17804
  partner_id?: string | null | undefined;
16355
17805
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16356
17806
  reference?: string | null | undefined;
@@ -16364,9 +17814,17 @@ export declare class API {
16364
17814
  due_dates: {
16365
17815
  due_date: string;
16366
17816
  payment_method?: string | null | undefined;
17817
+ payment_method_id?: string | null | undefined;
16367
17818
  debit: number | null;
16368
17819
  credit: number | null;
16369
17820
  }[] | null;
17821
+ attachments_info?: {
17822
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17823
+ attachments: {
17824
+ filename?: string | null | undefined;
17825
+ url?: string | null | undefined;
17826
+ }[] | null;
17827
+ } | undefined;
16370
17828
  items: {
16371
17829
  account_number: string;
16372
17830
  partner_id?: string | null | undefined;
@@ -16389,7 +17847,7 @@ export declare class API {
16389
17847
  folder_id?: string | null | undefined;
16390
17848
  updated_after?: string | null | undefined;
16391
17849
  unposted_allowed: "true" | "false";
16392
- journal_id: string;
17850
+ journal_id?: string | null | undefined;
16393
17851
  partner_id?: string | null | undefined;
16394
17852
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16395
17853
  reference?: string | null | undefined;
@@ -16403,9 +17861,17 @@ export declare class API {
16403
17861
  due_dates: {
16404
17862
  due_date: string;
16405
17863
  payment_method?: string | null | undefined;
17864
+ payment_method_id?: string | null | undefined;
16406
17865
  debit: number | null;
16407
17866
  credit: number | null;
16408
17867
  }[] | null;
17868
+ attachments_info?: {
17869
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17870
+ attachments: {
17871
+ filename?: string | null | undefined;
17872
+ url?: string | null | undefined;
17873
+ }[] | null;
17874
+ } | undefined;
16409
17875
  items: {
16410
17876
  account_number: string;
16411
17877
  partner_id?: string | null | undefined;
@@ -16495,6 +17961,7 @@ export declare class API {
16495
17961
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16496
17962
  id: string;
16497
17963
  code?: string | null | undefined;
17964
+ active: boolean | null;
16498
17965
  label: string;
16499
17966
  scope: "unknown" | "nat" | "eu" | "int" | null;
16500
17967
  rate: number;
@@ -16502,6 +17969,7 @@ export declare class API {
16502
17969
  deductible_account?: string | null | undefined;
16503
17970
  payable_account?: string | null | undefined;
16504
17971
  reversed: boolean | null;
17972
+ withholding_tax: boolean | null;
16505
17973
  country?: string | null | undefined;
16506
17974
  }[]>;
16507
17975
  getMiscOperations(params?: {
@@ -16604,12 +18072,14 @@ export declare class API {
16604
18072
  getChartOfAccounts(params?: {
16605
18073
  folder_id?: string | null | undefined;
16606
18074
  classes?: string | null | undefined;
16607
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
18075
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
16608
18076
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16609
18077
  number: string;
16610
18078
  name: string;
16611
18079
  active: boolean | null;
16612
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
18080
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
18081
+ scheme_ids?: string[] | null | undefined;
18082
+ accounting_category?: string | null | undefined;
16613
18083
  }[]>;
16614
18084
  getBalanceOfAccounts(filter: {
16615
18085
  accounts: string[];
@@ -16685,11 +18155,13 @@ export declare class API {
16685
18155
  account: string;
16686
18156
  amount: number;
16687
18157
  description?: string | null | undefined;
18158
+ automated_matching_number?: string | null | undefined;
16688
18159
  }[];
16689
18160
  pdf?: string | null | undefined;
16690
18161
  }, params?: {
16691
18162
  folder_id?: string | null | undefined;
16692
18163
  financial_counterpart_account?: string | null | undefined;
18164
+ force_currency_exchange?: boolean | null | undefined;
16693
18165
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
16694
18166
  date: string;
16695
18167
  journal_id: string;
@@ -16703,6 +18175,7 @@ export declare class API {
16703
18175
  account: string;
16704
18176
  amount: number;
16705
18177
  description?: string | null | undefined;
18178
+ automated_matching_number?: string | null | undefined;
16706
18179
  counterpart_account: string;
16707
18180
  }[];
16708
18181
  }>;
@@ -16730,6 +18203,13 @@ export declare class API {
16730
18203
  }[];
16731
18204
  }[] | null;
16732
18205
  tax_code?: string | null | undefined;
18206
+ tax_info?: {
18207
+ tax_code: string;
18208
+ tax_amount: number;
18209
+ vat_account?: string | null | undefined;
18210
+ reversed_vat_account?: string | null | undefined;
18211
+ description?: string | null | undefined;
18212
+ } | null | undefined;
16733
18213
  account_info?: {
16734
18214
  account_number: string;
16735
18215
  account_name: string;
@@ -16742,6 +18222,7 @@ export declare class API {
16742
18222
  }, params?: {
16743
18223
  folder_id?: string | null | undefined;
16744
18224
  force_currency_exchange?: "true" | "false" | null | undefined;
18225
+ ignore_accounting_id?: boolean | undefined;
16745
18226
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
16746
18227
  reference?: string | null | undefined;
16747
18228
  due_date?: string | null | undefined;
@@ -16754,9 +18235,17 @@ export declare class API {
16754
18235
  due_dates: {
16755
18236
  due_date: string;
16756
18237
  payment_method?: string | null | undefined;
18238
+ payment_method_id?: string | null | undefined;
16757
18239
  debit: number | null;
16758
18240
  credit: number | null;
16759
18241
  }[] | null;
18242
+ attachments_info?: {
18243
+ status: "unknown" | "yes" | "yes_to_request" | "no";
18244
+ attachments: {
18245
+ filename?: string | null | undefined;
18246
+ url?: string | null | undefined;
18247
+ }[] | null;
18248
+ } | undefined;
16760
18249
  items: {
16761
18250
  account_number: string;
16762
18251
  partner_id?: string | null | undefined;
@@ -16872,14 +18361,35 @@ export declare class API {
16872
18361
  createLedgerAccount(account: {
16873
18362
  name: string;
16874
18363
  number: string;
16875
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
18364
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
16876
18365
  }, params?: {
16877
18366
  folder_id?: string | null | undefined;
16878
18367
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
16879
18368
  number: string;
16880
18369
  name: string;
16881
18370
  active: boolean | null;
16882
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
18371
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
18372
+ scheme_ids?: string[] | null | undefined;
18373
+ accounting_category?: string | null | undefined;
18374
+ }>;
18375
+ getBankAccounts(params?: {
18376
+ folder_id?: string | null | undefined;
18377
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18378
+ items: {
18379
+ id: string;
18380
+ code?: string | null | undefined;
18381
+ currency?: string | null | undefined;
18382
+ account_name?: string | null | undefined;
18383
+ account_number?: string | null | undefined;
18384
+ iban?: string | null | undefined;
18385
+ bank_name?: string | null | undefined;
18386
+ journal_id?: string | null | undefined;
18387
+ ledger_account?: string | null | undefined;
18388
+ unallocated_account?: string | null | undefined;
18389
+ }[];
18390
+ total: number;
18391
+ page: number;
18392
+ size: number;
16883
18393
  }>;
16884
18394
  createBankAccount(bankAccount: {
16885
18395
  code: string;
@@ -16902,6 +18412,45 @@ export declare class API {
16902
18412
  ledger_account?: string | null | undefined;
16903
18413
  unallocated_account?: string | null | undefined;
16904
18414
  }>;
18415
+ createBankTransactions(bankStatement: {
18416
+ bank_statement_date: string;
18417
+ bank_account_id: string;
18418
+ external_bank_statement_id: string;
18419
+ opening_balance?: number | null | undefined;
18420
+ pdf?: string | null | undefined;
18421
+ items: {
18422
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
18423
+ account?: string | null | undefined;
18424
+ description?: string | null | undefined;
18425
+ external_transaction_id?: string | null | undefined;
18426
+ date: string;
18427
+ amount: number;
18428
+ fee_amount: number | null;
18429
+ tax_amount: number | null;
18430
+ currency: string;
18431
+ currency_exchange_rate: number | null;
18432
+ }[];
18433
+ }, params?: {
18434
+ folder_id?: string | null | undefined;
18435
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
18436
+ bank_statement_date: string;
18437
+ bank_account_id: string;
18438
+ id?: string | null | undefined;
18439
+ external_bank_statement_id?: string | null | undefined;
18440
+ items: {
18441
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
18442
+ account?: string | null | undefined;
18443
+ description?: string | null | undefined;
18444
+ external_transaction_id?: string | null | undefined;
18445
+ date: string;
18446
+ amount: number;
18447
+ fee_amount: number | null;
18448
+ tax_amount: number | null;
18449
+ currency: string;
18450
+ currency_exchange_rate: number | null;
18451
+ id?: string | null | undefined;
18452
+ }[];
18453
+ }>;
16905
18454
  getJournalEntry(journalEntryId: string, params?: {
16906
18455
  folder_id?: string | null | undefined;
16907
18456
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -16916,9 +18465,17 @@ export declare class API {
16916
18465
  due_dates: {
16917
18466
  due_date: string;
16918
18467
  payment_method?: string | null | undefined;
18468
+ payment_method_id?: string | null | undefined;
16919
18469
  debit: number | null;
16920
18470
  credit: number | null;
16921
18471
  }[] | null;
18472
+ attachments_info?: {
18473
+ status: "unknown" | "yes" | "yes_to_request" | "no";
18474
+ attachments: {
18475
+ filename?: string | null | undefined;
18476
+ url?: string | null | undefined;
18477
+ }[] | null;
18478
+ } | undefined;
16922
18479
  items: {
16923
18480
  account_number: string;
16924
18481
  partner_id?: string | null | undefined;
@@ -16953,6 +18510,29 @@ export declare class API {
16953
18510
  page: number;
16954
18511
  size: number;
16955
18512
  }>;
18513
+ getPaymentTerms(params?: {
18514
+ folder_id?: string | null | undefined;
18515
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18516
+ items: {
18517
+ id: string;
18518
+ name?: string | null | undefined;
18519
+ }[];
18520
+ total: number;
18521
+ page: number;
18522
+ size: number;
18523
+ }>;
18524
+ getSchemes(params?: {
18525
+ folder_id?: string | null | undefined;
18526
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18527
+ items: {
18528
+ id: string;
18529
+ code: string;
18530
+ name: string;
18531
+ }[];
18532
+ total: number;
18533
+ page: number;
18534
+ size: number;
18535
+ }>;
16956
18536
  createInvoicePayment(body: {
16957
18537
  date: string;
16958
18538
  payment_method_id: string;
@@ -16972,6 +18552,29 @@ export declare class API {
16972
18552
  };
16973
18553
  content?: undefined;
16974
18554
  }>;
18555
+ exportFec(params: {
18556
+ folder_id?: string | null | undefined;
18557
+ date_from: string;
18558
+ date_to: string;
18559
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18560
+ JournalCode: string;
18561
+ JournalLib: string;
18562
+ EcritureNum: string;
18563
+ EcritureDate: string;
18564
+ CompteNum: string;
18565
+ CompteLib: string;
18566
+ CompAuxNum: string;
18567
+ CompAuxLib: string;
18568
+ PieceRef: string;
18569
+ PieceDate: string;
18570
+ Debit: number;
18571
+ Credit: number;
18572
+ EcritureLet: string;
18573
+ DateLet: string | null;
18574
+ ValidDate: string | null;
18575
+ Montantdevise: number;
18576
+ Idevise: string;
18577
+ }[]>;
16975
18578
  }>;
16976
18579
  invoicing: import("../types/api").ApiFor<{
16977
18580
  getInvoices(params?: {
@@ -16981,6 +18584,7 @@ export declare class API {
16981
18584
  updated_after?: string | null | undefined;
16982
18585
  include_invoice_lines?: "true" | "false" | null | undefined;
16983
18586
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
18587
+ include_analytic_accounts?: "true" | "false" | null | undefined;
16984
18588
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16985
18589
  id: string;
16986
18590
  source_ref: {
@@ -17010,6 +18614,14 @@ export declare class API {
17010
18614
  product_id?: string | null | undefined;
17011
18615
  product_code?: string | null | undefined;
17012
18616
  product_name?: string | null | undefined;
18617
+ analytic_distribution: {
18618
+ analytic_plan_code: string;
18619
+ analytic_accounts: {
18620
+ analytic_account_code: string;
18621
+ analytic_account_name: string;
18622
+ percentage: number;
18623
+ }[];
18624
+ }[] | null;
17013
18625
  }[];
17014
18626
  partner_id?: string | null | undefined;
17015
18627
  invoice_number?: string | null | undefined;
@@ -17049,6 +18661,7 @@ export declare class API {
17049
18661
  }[]>;
17050
18662
  getInvoiceById(invoiceId: string, params?: {
17051
18663
  include_pdf?: "true" | "false" | null | undefined;
18664
+ include_analytic_accounts?: "true" | "false" | null | undefined;
17052
18665
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
17053
18666
  id: string;
17054
18667
  source_ref: {
@@ -17078,6 +18691,14 @@ export declare class API {
17078
18691
  product_id?: string | null | undefined;
17079
18692
  product_code?: string | null | undefined;
17080
18693
  product_name?: string | null | undefined;
18694
+ analytic_distribution: {
18695
+ analytic_plan_code: string;
18696
+ analytic_accounts: {
18697
+ analytic_account_code: string;
18698
+ analytic_account_name: string;
18699
+ percentage: number;
18700
+ }[];
18701
+ }[] | null;
17081
18702
  }[];
17082
18703
  partner_id?: string | null | undefined;
17083
18704
  invoice_number?: string | null | undefined;
@@ -17199,6 +18820,14 @@ export declare class API {
17199
18820
  product_id?: string | null | undefined;
17200
18821
  product_code?: string | null | undefined;
17201
18822
  product_name?: string | null | undefined;
18823
+ analytic_distribution: {
18824
+ analytic_plan_code: string;
18825
+ analytic_accounts: {
18826
+ analytic_account_code: string;
18827
+ analytic_account_name: string;
18828
+ percentage: number;
18829
+ }[];
18830
+ }[] | null;
17202
18831
  }[];
17203
18832
  partner_id?: string | null | undefined;
17204
18833
  invoice_number?: string | null | undefined;
@@ -18777,14 +20406,18 @@ export declare class API {
18777
20406
  reference: string;
18778
20407
  reference_type: string;
18779
20408
  holder_name?: string | null | undefined;
20409
+ active: boolean | null;
18780
20410
  }[]>;
18781
- getAccountTransactions(accountId: string, params?: {
20411
+ getAccountTransactions(params: {
18782
20412
  date_from?: string | null | undefined;
18783
20413
  date_to?: string | null | undefined;
20414
+ updated_after?: string | null | undefined;
20415
+ account_id: string;
18784
20416
  date_type?: "value_date" | "execution_date" | null | undefined;
18785
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
20417
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18786
20418
  id: string;
18787
20419
  amount: number;
20420
+ tax_amount?: number | null | undefined;
18788
20421
  currency: string;
18789
20422
  description?: string | null | undefined;
18790
20423
  additional_information?: string | null | undefined;
@@ -18794,6 +20427,17 @@ export declare class API {
18794
20427
  creation_date: string;
18795
20428
  value_date: string;
18796
20429
  execution_date: string;
20430
+ internal_transaction: boolean | null;
20431
+ 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;
20432
+ last_update_on?: string | null | undefined;
20433
+ status?: "completed" | "pending" | "declined" | null | undefined;
20434
+ attachments_info?: {
20435
+ status: "unknown" | "yes" | "yes_to_request" | "no";
20436
+ attachments: {
20437
+ filename?: string | null | undefined;
20438
+ url?: string | null | undefined;
20439
+ }[] | null;
20440
+ } | undefined;
18797
20441
  }[]>;
18798
20442
  getAccountCounterparts(params?: {
18799
20443
  date_from?: string | null | undefined;
@@ -18804,6 +20448,17 @@ export declare class API {
18804
20448
  reference?: string | null | undefined;
18805
20449
  details?: string | null | undefined;
18806
20450
  }[]>;
20451
+ getAttachments(params: {
20452
+ transaction_id: string;
20453
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
20454
+ items: {
20455
+ id: string;
20456
+ base64_string: string;
20457
+ }[];
20458
+ total: number;
20459
+ page: number;
20460
+ size: number;
20461
+ }>;
18807
20462
  }>;
18808
20463
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
18809
20464
  data: {
@@ -18843,6 +20498,7 @@ export declare class API {
18843
20498
  source_id?: string | null | undefined;
18844
20499
  target_id?: string | null | undefined;
18845
20500
  }[];
20501
+ hidden_source_ids: string[];
18846
20502
  sub_mapping_name: string;
18847
20503
  sub_mapping_description?: string | null | undefined;
18848
20504
  }[] | null | undefined;
@@ -19011,7 +20667,8 @@ export declare class API {
19011
20667
  value: string;
19012
20668
  }[] | null | undefined;
19013
20669
  country?: string | null | undefined;
19014
- } | undefined) => Promise<{
20670
+ redirect: boolean | null;
20671
+ } | null | undefined) => Promise<{
19015
20672
  url: string;
19016
20673
  }>;
19017
20674
  updateConnection: (connectionId: string, body?: {
@@ -19030,6 +20687,15 @@ export declare class API {
19030
20687
  };
19031
20688
  content?: undefined;
19032
20689
  }>;
20690
+ getTransactionByClientRequestId: (connectionId: string, params: {
20691
+ client_request_id: string;
20692
+ }) => Promise<{
20693
+ created_on: string;
20694
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
20695
+ route: string;
20696
+ status_code: number;
20697
+ created_entity_id?: string | null | undefined;
20698
+ }>;
19033
20699
  enableFlow: (syncId: string, flowId: string, body: {
19034
20700
  integrationids: string[];
19035
20701
  triggerid: string | null;
@@ -19086,6 +20752,7 @@ export declare class API {
19086
20752
  total_refund: number | null;
19087
20753
  total_tip: number | null;
19088
20754
  delivery_fee: number | null;
20755
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
19089
20756
  currency?: string | null | undefined;
19090
20757
  country?: string | null | undefined;
19091
20758
  loyalty?: number | null | undefined;
@@ -19164,6 +20831,7 @@ export declare class API {
19164
20831
  total_refund: number | null;
19165
20832
  total_tip: number | null;
19166
20833
  delivery_fee: number | null;
20834
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
19167
20835
  currency?: string | null | undefined;
19168
20836
  country?: string | null | undefined;
19169
20837
  loyalty?: number | null | undefined;
@@ -19352,6 +21020,7 @@ export declare class API {
19352
21020
  total_refund: number | null;
19353
21021
  total_tip: number | null;
19354
21022
  delivery_fee: number | null;
21023
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
19355
21024
  currency?: string | null | undefined;
19356
21025
  country?: string | null | undefined;
19357
21026
  loyalty?: number | null | undefined;
@@ -19456,6 +21125,7 @@ export declare class API {
19456
21125
  total_refund: number | null;
19457
21126
  total_tip: number | null;
19458
21127
  delivery_fee: number | null;
21128
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
19459
21129
  currency?: string | null | undefined;
19460
21130
  country?: string | null | undefined;
19461
21131
  loyalty?: number | null | undefined;
@@ -19635,6 +21305,30 @@ export declare class API {
19635
21305
  country?: string | null | undefined;
19636
21306
  }[] | null | undefined;
19637
21307
  }[]>;
21308
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
21309
+ id: string;
21310
+ source_ref: {
21311
+ id?: string | null | undefined;
21312
+ model?: string | null | undefined;
21313
+ };
21314
+ first_name?: string | null | undefined;
21315
+ last_name?: string | null | undefined;
21316
+ company_name?: string | null | undefined;
21317
+ phone?: string | null | undefined;
21318
+ email?: string | null | undefined;
21319
+ account_number?: string | null | undefined;
21320
+ created_on?: string | null | undefined;
21321
+ addresses?: {
21322
+ address_type?: string | null | undefined;
21323
+ name?: string | null | undefined;
21324
+ street?: string | null | undefined;
21325
+ number?: string | null | undefined;
21326
+ box?: string | null | undefined;
21327
+ city?: string | null | undefined;
21328
+ postal_code?: string | null | undefined;
21329
+ country?: string | null | undefined;
21330
+ }[] | null | undefined;
21331
+ }>;
19638
21332
  getInvoices(params?: {
19639
21333
  date_from: string;
19640
21334
  date_to: string;
@@ -19737,6 +21431,20 @@ export declare class API {
19737
21431
  untaxed_amount: number;
19738
21432
  total: number;
19739
21433
  }[]>;
21434
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
21435
+ items: {
21436
+ id: string;
21437
+ source_ref: {
21438
+ id?: string | null | undefined;
21439
+ model?: string | null | undefined;
21440
+ };
21441
+ label?: string | null | undefined;
21442
+ rate?: number | null | undefined;
21443
+ }[];
21444
+ total: number;
21445
+ page: number;
21446
+ size: number;
21447
+ }>;
19740
21448
  }>;
19741
21449
  payment: import("../types/api").ApiFor<{
19742
21450
  getPayments(params: {
@@ -19870,6 +21578,7 @@ export declare class API {
19870
21578
  postal_code?: string | null | undefined;
19871
21579
  country?: string | null | undefined;
19872
21580
  }[] | null;
21581
+ third_party_account?: string | null | undefined;
19873
21582
  }[]>;
19874
21583
  createClient(client: {
19875
21584
  external_reference?: string | null | undefined;
@@ -19943,6 +21652,7 @@ export declare class API {
19943
21652
  postal_code?: string | null | undefined;
19944
21653
  country?: string | null | undefined;
19945
21654
  }[] | null;
21655
+ third_party_account?: string | null | undefined;
19946
21656
  }>;
19947
21657
  getClient(clientId: string, params?: {
19948
21658
  folder_id?: string | null | undefined;
@@ -19982,6 +21692,7 @@ export declare class API {
19982
21692
  postal_code?: string | null | undefined;
19983
21693
  country?: string | null | undefined;
19984
21694
  }[] | null;
21695
+ third_party_account?: string | null | undefined;
19985
21696
  }>;
19986
21697
  updateClient(clientId: string, client: {
19987
21698
  external_reference?: string | null | undefined;
@@ -20053,6 +21764,7 @@ export declare class API {
20053
21764
  postal_code?: string | null | undefined;
20054
21765
  country?: string | null | undefined;
20055
21766
  }[] | null;
21767
+ third_party_account?: string | null | undefined;
20056
21768
  }>;
20057
21769
  getSuppliers(params?: {
20058
21770
  search?: string | null | undefined;
@@ -20094,6 +21806,7 @@ export declare class API {
20094
21806
  postal_code?: string | null | undefined;
20095
21807
  country?: string | null | undefined;
20096
21808
  }[] | null;
21809
+ third_party_account?: string | null | undefined;
20097
21810
  }[]>;
20098
21811
  createSupplier(supplier: {
20099
21812
  external_reference?: string | null | undefined;
@@ -20167,6 +21880,7 @@ export declare class API {
20167
21880
  postal_code?: string | null | undefined;
20168
21881
  country?: string | null | undefined;
20169
21882
  }[] | null;
21883
+ third_party_account?: string | null | undefined;
20170
21884
  }>;
20171
21885
  getSupplier(supplierId: string, params?: {
20172
21886
  folder_id?: string | null | undefined;
@@ -20206,6 +21920,7 @@ export declare class API {
20206
21920
  postal_code?: string | null | undefined;
20207
21921
  country?: string | null | undefined;
20208
21922
  }[] | null;
21923
+ third_party_account?: string | null | undefined;
20209
21924
  }>;
20210
21925
  updateSupplier(supplierId: string, supplier: {
20211
21926
  external_reference?: string | null | undefined;
@@ -20277,6 +21992,7 @@ export declare class API {
20277
21992
  postal_code?: string | null | undefined;
20278
21993
  country?: string | null | undefined;
20279
21994
  }[] | null;
21995
+ third_party_account?: string | null | undefined;
20280
21996
  }>;
20281
21997
  createInvoice(invoice: {
20282
21998
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
@@ -20288,6 +22004,12 @@ export declare class API {
20288
22004
  reference?: string | null | undefined;
20289
22005
  payment_communication?: string | null | undefined;
20290
22006
  customer_memo?: string | null | undefined;
22007
+ payment_term_id?: string | null | undefined;
22008
+ withholding_tax?: {
22009
+ tax_rate: number;
22010
+ tax_code: string;
22011
+ tax_amount: number;
22012
+ } | null | undefined;
20291
22013
  invoice_date: string;
20292
22014
  due_date: string;
20293
22015
  partner_id?: string | null | undefined;
@@ -20330,10 +22052,15 @@ export declare class API {
20330
22052
  description: string;
20331
22053
  analytic_account?: string | null | undefined;
20332
22054
  }[];
22055
+ start_date?: string | null | undefined;
22056
+ end_date?: string | null | undefined;
22057
+ payment_method_id?: string | null | undefined;
20333
22058
  }, params?: {
20334
22059
  folder_id?: string | null | undefined;
20335
22060
  force_financial_period?: string | null | undefined;
20336
22061
  regroup_lines?: "true" | "false" | null | undefined;
22062
+ ignore_accounting_id?: boolean | undefined;
22063
+ force_currency_exchange?: boolean | null | undefined;
20337
22064
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
20338
22065
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
20339
22066
  invoice_number?: string | null | undefined;
@@ -20344,10 +22071,16 @@ export declare class API {
20344
22071
  reference?: string | null | undefined;
20345
22072
  payment_communication?: string | null | undefined;
20346
22073
  customer_memo?: string | null | undefined;
22074
+ payment_term_id?: string | null | undefined;
22075
+ withholding_tax?: {
22076
+ tax_rate: number;
22077
+ tax_code: string;
22078
+ tax_amount: number;
22079
+ } | null | undefined;
20347
22080
  id?: string | null | undefined;
20348
22081
  invoice_date: string;
20349
22082
  due_date: string;
20350
- partner_id: string;
22083
+ partner_id: string | null;
20351
22084
  journal_id?: string | null | undefined;
20352
22085
  payments?: {
20353
22086
  id: string;
@@ -20401,12 +22134,27 @@ export declare class API {
20401
22134
  postal_code?: string | null | undefined;
20402
22135
  country?: string | null | undefined;
20403
22136
  }[] | null;
22137
+ third_party_account?: string | null | undefined;
20404
22138
  } | null | undefined;
20405
22139
  due_dates: {
20406
22140
  due_date: string;
20407
22141
  payment_method?: string | null | undefined;
22142
+ payment_method_id?: string | null | undefined;
20408
22143
  amount: number;
20409
22144
  }[] | null;
22145
+ attachments_info?: {
22146
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22147
+ attachments: {
22148
+ filename?: string | null | undefined;
22149
+ url?: string | null | undefined;
22150
+ }[] | null;
22151
+ } | undefined;
22152
+ accounting_info?: {
22153
+ main_currency?: string | undefined;
22154
+ main_currency_total: number;
22155
+ account_number?: string | null | undefined;
22156
+ } | null | undefined;
22157
+ payment_method_id?: string | null | undefined;
20410
22158
  lines: {
20411
22159
  line_number: number | null;
20412
22160
  unit_price: number;
@@ -20432,6 +22180,12 @@ export declare class API {
20432
22180
  reference?: string | null | undefined;
20433
22181
  payment_communication?: string | null | undefined;
20434
22182
  customer_memo?: string | null | undefined;
22183
+ payment_term_id?: string | null | undefined;
22184
+ withholding_tax?: {
22185
+ tax_rate: number;
22186
+ tax_code: string;
22187
+ tax_amount: number;
22188
+ } | null | undefined;
20435
22189
  invoice_date: string;
20436
22190
  due_date: string;
20437
22191
  partner_id?: string | null | undefined;
@@ -20480,10 +22234,15 @@ export declare class API {
20480
22234
  }[];
20481
22235
  }[] | null;
20482
22236
  }[];
22237
+ start_date?: string | null | undefined;
22238
+ end_date?: string | null | undefined;
22239
+ payment_method_id?: string | null | undefined;
20483
22240
  }, params?: {
20484
22241
  folder_id?: string | null | undefined;
20485
22242
  force_financial_period?: string | null | undefined;
20486
22243
  regroup_lines?: "true" | "false" | null | undefined;
22244
+ ignore_accounting_id?: boolean | undefined;
22245
+ force_currency_exchange?: boolean | null | undefined;
20487
22246
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
20488
22247
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
20489
22248
  invoice_number?: string | null | undefined;
@@ -20494,10 +22253,16 @@ export declare class API {
20494
22253
  reference?: string | null | undefined;
20495
22254
  payment_communication?: string | null | undefined;
20496
22255
  customer_memo?: string | null | undefined;
22256
+ payment_term_id?: string | null | undefined;
22257
+ withholding_tax?: {
22258
+ tax_rate: number;
22259
+ tax_code: string;
22260
+ tax_amount: number;
22261
+ } | null | undefined;
20497
22262
  id?: string | null | undefined;
20498
22263
  invoice_date: string;
20499
22264
  due_date: string;
20500
- partner_id: string;
22265
+ partner_id: string | null;
20501
22266
  journal_id?: string | null | undefined;
20502
22267
  payments?: {
20503
22268
  id: string;
@@ -20551,12 +22316,27 @@ export declare class API {
20551
22316
  postal_code?: string | null | undefined;
20552
22317
  country?: string | null | undefined;
20553
22318
  }[] | null;
22319
+ third_party_account?: string | null | undefined;
20554
22320
  } | null | undefined;
20555
22321
  due_dates: {
20556
22322
  due_date: string;
20557
22323
  payment_method?: string | null | undefined;
22324
+ payment_method_id?: string | null | undefined;
20558
22325
  amount: number;
20559
22326
  }[] | null;
22327
+ attachments_info?: {
22328
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22329
+ attachments: {
22330
+ filename?: string | null | undefined;
22331
+ url?: string | null | undefined;
22332
+ }[] | null;
22333
+ } | undefined;
22334
+ accounting_info?: {
22335
+ main_currency?: string | undefined;
22336
+ main_currency_total: number;
22337
+ account_number?: string | null | undefined;
22338
+ } | null | undefined;
22339
+ payment_method_id?: string | null | undefined;
20560
22340
  lines: {
20561
22341
  line_number: number | null;
20562
22342
  unit_price: number;
@@ -20598,10 +22378,16 @@ export declare class API {
20598
22378
  reference?: string | null | undefined;
20599
22379
  payment_communication?: string | null | undefined;
20600
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;
20601
22387
  id?: string | null | undefined;
20602
22388
  invoice_date: string;
20603
22389
  due_date: string;
20604
- partner_id: string;
22390
+ partner_id: string | null;
20605
22391
  journal_id?: string | null | undefined;
20606
22392
  payments?: {
20607
22393
  id: string;
@@ -20655,12 +22441,27 @@ export declare class API {
20655
22441
  postal_code?: string | null | undefined;
20656
22442
  country?: string | null | undefined;
20657
22443
  }[] | null;
22444
+ third_party_account?: string | null | undefined;
20658
22445
  } | null | undefined;
20659
22446
  due_dates: {
20660
22447
  due_date: string;
20661
22448
  payment_method?: string | null | undefined;
22449
+ payment_method_id?: string | null | undefined;
20662
22450
  amount: number;
20663
22451
  }[] | null;
22452
+ attachments_info?: {
22453
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22454
+ attachments: {
22455
+ filename?: string | null | undefined;
22456
+ url?: string | null | undefined;
22457
+ }[] | null;
22458
+ } | undefined;
22459
+ accounting_info?: {
22460
+ main_currency?: string | undefined;
22461
+ main_currency_total: number;
22462
+ account_number?: string | null | undefined;
22463
+ } | null | undefined;
22464
+ payment_method_id?: string | null | undefined;
20664
22465
  lines: {
20665
22466
  line_number: number | null;
20666
22467
  unit_price: number;
@@ -20691,10 +22492,16 @@ export declare class API {
20691
22492
  reference?: string | null | undefined;
20692
22493
  payment_communication?: string | null | undefined;
20693
22494
  customer_memo?: string | null | undefined;
22495
+ payment_term_id?: string | null | undefined;
22496
+ withholding_tax?: {
22497
+ tax_rate: number;
22498
+ tax_code: string;
22499
+ tax_amount: number;
22500
+ } | null | undefined;
20694
22501
  id?: string | null | undefined;
20695
22502
  invoice_date: string;
20696
22503
  due_date: string;
20697
- partner_id: string;
22504
+ partner_id: string | null;
20698
22505
  journal_id?: string | null | undefined;
20699
22506
  payments?: {
20700
22507
  id: string;
@@ -20748,12 +22555,27 @@ export declare class API {
20748
22555
  postal_code?: string | null | undefined;
20749
22556
  country?: string | null | undefined;
20750
22557
  }[] | null;
22558
+ third_party_account?: string | null | undefined;
20751
22559
  } | null | undefined;
20752
22560
  due_dates: {
20753
22561
  due_date: string;
20754
22562
  payment_method?: string | null | undefined;
22563
+ payment_method_id?: string | null | undefined;
20755
22564
  amount: number;
20756
22565
  }[] | null;
22566
+ attachments_info?: {
22567
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22568
+ attachments: {
22569
+ filename?: string | null | undefined;
22570
+ url?: string | null | undefined;
22571
+ }[] | null;
22572
+ } | undefined;
22573
+ accounting_info?: {
22574
+ main_currency?: string | undefined;
22575
+ main_currency_total: number;
22576
+ account_number?: string | null | undefined;
22577
+ } | null | undefined;
22578
+ payment_method_id?: string | null | undefined;
20757
22579
  lines: {
20758
22580
  line_number: number | null;
20759
22581
  unit_price: number;
@@ -20784,10 +22606,16 @@ export declare class API {
20784
22606
  reference?: string | null | undefined;
20785
22607
  payment_communication?: string | null | undefined;
20786
22608
  customer_memo?: string | null | undefined;
22609
+ payment_term_id?: string | null | undefined;
22610
+ withholding_tax?: {
22611
+ tax_rate: number;
22612
+ tax_code: string;
22613
+ tax_amount: number;
22614
+ } | null | undefined;
20787
22615
  id?: string | null | undefined;
20788
22616
  invoice_date: string;
20789
22617
  due_date: string;
20790
- partner_id: string;
22618
+ partner_id: string | null;
20791
22619
  journal_id?: string | null | undefined;
20792
22620
  payments?: {
20793
22621
  id: string;
@@ -20841,12 +22669,27 @@ export declare class API {
20841
22669
  postal_code?: string | null | undefined;
20842
22670
  country?: string | null | undefined;
20843
22671
  }[] | null;
22672
+ third_party_account?: string | null | undefined;
20844
22673
  } | null | undefined;
20845
22674
  due_dates: {
20846
22675
  due_date: string;
20847
22676
  payment_method?: string | null | undefined;
22677
+ payment_method_id?: string | null | undefined;
20848
22678
  amount: number;
20849
22679
  }[] | null;
22680
+ attachments_info?: {
22681
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22682
+ attachments: {
22683
+ filename?: string | null | undefined;
22684
+ url?: string | null | undefined;
22685
+ }[] | null;
22686
+ } | undefined;
22687
+ accounting_info?: {
22688
+ main_currency?: string | undefined;
22689
+ main_currency_total: number;
22690
+ account_number?: string | null | undefined;
22691
+ } | null | undefined;
22692
+ payment_method_id?: string | null | undefined;
20850
22693
  lines: {
20851
22694
  line_number: number | null;
20852
22695
  unit_price: number;
@@ -20888,10 +22731,16 @@ export declare class API {
20888
22731
  reference?: string | null | undefined;
20889
22732
  payment_communication?: string | null | undefined;
20890
22733
  customer_memo?: string | null | undefined;
22734
+ payment_term_id?: string | null | undefined;
22735
+ withholding_tax?: {
22736
+ tax_rate: number;
22737
+ tax_code: string;
22738
+ tax_amount: number;
22739
+ } | null | undefined;
20891
22740
  id?: string | null | undefined;
20892
22741
  invoice_date: string;
20893
22742
  due_date: string;
20894
- partner_id: string;
22743
+ partner_id: string | null;
20895
22744
  journal_id?: string | null | undefined;
20896
22745
  payments?: {
20897
22746
  id: string;
@@ -20945,12 +22794,27 @@ export declare class API {
20945
22794
  postal_code?: string | null | undefined;
20946
22795
  country?: string | null | undefined;
20947
22796
  }[] | null;
22797
+ third_party_account?: string | null | undefined;
20948
22798
  } | null | undefined;
20949
22799
  due_dates: {
20950
22800
  due_date: string;
20951
22801
  payment_method?: string | null | undefined;
22802
+ payment_method_id?: string | null | undefined;
20952
22803
  amount: number;
20953
22804
  }[] | null;
22805
+ attachments_info?: {
22806
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22807
+ attachments: {
22808
+ filename?: string | null | undefined;
22809
+ url?: string | null | undefined;
22810
+ }[] | null;
22811
+ } | undefined;
22812
+ accounting_info?: {
22813
+ main_currency?: string | undefined;
22814
+ main_currency_total: number;
22815
+ account_number?: string | null | undefined;
22816
+ } | null | undefined;
22817
+ payment_method_id?: string | null | undefined;
20954
22818
  lines: {
20955
22819
  line_number: number | null;
20956
22820
  unit_price: number;
@@ -21098,7 +22962,7 @@ export declare class API {
21098
22962
  folder_id?: string | null | undefined;
21099
22963
  updated_after?: string | null | undefined;
21100
22964
  unposted_allowed: "true" | "false";
21101
- journal_id: string;
22965
+ journal_id?: string | null | undefined;
21102
22966
  partner_id?: string | null | undefined;
21103
22967
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21104
22968
  reference?: string | null | undefined;
@@ -21112,9 +22976,17 @@ export declare class API {
21112
22976
  due_dates: {
21113
22977
  due_date: string;
21114
22978
  payment_method?: string | null | undefined;
22979
+ payment_method_id?: string | null | undefined;
21115
22980
  debit: number | null;
21116
22981
  credit: number | null;
21117
22982
  }[] | null;
22983
+ attachments_info?: {
22984
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22985
+ attachments: {
22986
+ filename?: string | null | undefined;
22987
+ url?: string | null | undefined;
22988
+ }[] | null;
22989
+ } | undefined;
21118
22990
  items: {
21119
22991
  account_number: string;
21120
22992
  partner_id?: string | null | undefined;
@@ -21137,7 +23009,7 @@ export declare class API {
21137
23009
  folder_id?: string | null | undefined;
21138
23010
  updated_after?: string | null | undefined;
21139
23011
  unposted_allowed: "true" | "false";
21140
- journal_id: string;
23012
+ journal_id?: string | null | undefined;
21141
23013
  partner_id?: string | null | undefined;
21142
23014
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21143
23015
  reference?: string | null | undefined;
@@ -21151,9 +23023,17 @@ export declare class API {
21151
23023
  due_dates: {
21152
23024
  due_date: string;
21153
23025
  payment_method?: string | null | undefined;
23026
+ payment_method_id?: string | null | undefined;
21154
23027
  debit: number | null;
21155
23028
  credit: number | null;
21156
23029
  }[] | null;
23030
+ attachments_info?: {
23031
+ status: "unknown" | "yes" | "yes_to_request" | "no";
23032
+ attachments: {
23033
+ filename?: string | null | undefined;
23034
+ url?: string | null | undefined;
23035
+ }[] | null;
23036
+ } | undefined;
21157
23037
  items: {
21158
23038
  account_number: string;
21159
23039
  partner_id?: string | null | undefined;
@@ -21243,6 +23123,7 @@ export declare class API {
21243
23123
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21244
23124
  id: string;
21245
23125
  code?: string | null | undefined;
23126
+ active: boolean | null;
21246
23127
  label: string;
21247
23128
  scope: "unknown" | "nat" | "eu" | "int" | null;
21248
23129
  rate: number;
@@ -21250,6 +23131,7 @@ export declare class API {
21250
23131
  deductible_account?: string | null | undefined;
21251
23132
  payable_account?: string | null | undefined;
21252
23133
  reversed: boolean | null;
23134
+ withholding_tax: boolean | null;
21253
23135
  country?: string | null | undefined;
21254
23136
  }[]>;
21255
23137
  getMiscOperations(params?: {
@@ -21352,12 +23234,14 @@ export declare class API {
21352
23234
  getChartOfAccounts(params?: {
21353
23235
  folder_id?: string | null | undefined;
21354
23236
  classes?: string | null | undefined;
21355
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
23237
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
21356
23238
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21357
23239
  number: string;
21358
23240
  name: string;
21359
23241
  active: boolean | null;
21360
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
23242
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
23243
+ scheme_ids?: string[] | null | undefined;
23244
+ accounting_category?: string | null | undefined;
21361
23245
  }[]>;
21362
23246
  getBalanceOfAccounts(filter: {
21363
23247
  accounts: string[];
@@ -21433,11 +23317,13 @@ export declare class API {
21433
23317
  account: string;
21434
23318
  amount: number;
21435
23319
  description?: string | null | undefined;
23320
+ automated_matching_number?: string | null | undefined;
21436
23321
  }[];
21437
23322
  pdf?: string | null | undefined;
21438
23323
  }, params?: {
21439
23324
  folder_id?: string | null | undefined;
21440
23325
  financial_counterpart_account?: string | null | undefined;
23326
+ force_currency_exchange?: boolean | null | undefined;
21441
23327
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
21442
23328
  date: string;
21443
23329
  journal_id: string;
@@ -21451,6 +23337,7 @@ export declare class API {
21451
23337
  account: string;
21452
23338
  amount: number;
21453
23339
  description?: string | null | undefined;
23340
+ automated_matching_number?: string | null | undefined;
21454
23341
  counterpart_account: string;
21455
23342
  }[];
21456
23343
  }>;
@@ -21478,6 +23365,13 @@ export declare class API {
21478
23365
  }[];
21479
23366
  }[] | null;
21480
23367
  tax_code?: string | null | undefined;
23368
+ tax_info?: {
23369
+ tax_code: string;
23370
+ tax_amount: number;
23371
+ vat_account?: string | null | undefined;
23372
+ reversed_vat_account?: string | null | undefined;
23373
+ description?: string | null | undefined;
23374
+ } | null | undefined;
21481
23375
  account_info?: {
21482
23376
  account_number: string;
21483
23377
  account_name: string;
@@ -21490,6 +23384,7 @@ export declare class API {
21490
23384
  }, params?: {
21491
23385
  folder_id?: string | null | undefined;
21492
23386
  force_currency_exchange?: "true" | "false" | null | undefined;
23387
+ ignore_accounting_id?: boolean | undefined;
21493
23388
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
21494
23389
  reference?: string | null | undefined;
21495
23390
  due_date?: string | null | undefined;
@@ -21502,9 +23397,17 @@ export declare class API {
21502
23397
  due_dates: {
21503
23398
  due_date: string;
21504
23399
  payment_method?: string | null | undefined;
23400
+ payment_method_id?: string | null | undefined;
21505
23401
  debit: number | null;
21506
23402
  credit: number | null;
21507
23403
  }[] | null;
23404
+ attachments_info?: {
23405
+ status: "unknown" | "yes" | "yes_to_request" | "no";
23406
+ attachments: {
23407
+ filename?: string | null | undefined;
23408
+ url?: string | null | undefined;
23409
+ }[] | null;
23410
+ } | undefined;
21508
23411
  items: {
21509
23412
  account_number: string;
21510
23413
  partner_id?: string | null | undefined;
@@ -21620,14 +23523,35 @@ export declare class API {
21620
23523
  createLedgerAccount(account: {
21621
23524
  name: string;
21622
23525
  number: string;
21623
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
23526
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
21624
23527
  }, params?: {
21625
23528
  folder_id?: string | null | undefined;
21626
23529
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
21627
23530
  number: string;
21628
23531
  name: string;
21629
23532
  active: boolean | null;
21630
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
23533
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
23534
+ scheme_ids?: string[] | null | undefined;
23535
+ accounting_category?: string | null | undefined;
23536
+ }>;
23537
+ getBankAccounts(params?: {
23538
+ folder_id?: string | null | undefined;
23539
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
23540
+ items: {
23541
+ id: string;
23542
+ code?: string | null | undefined;
23543
+ currency?: string | null | undefined;
23544
+ account_name?: string | null | undefined;
23545
+ account_number?: string | null | undefined;
23546
+ iban?: string | null | undefined;
23547
+ bank_name?: string | null | undefined;
23548
+ journal_id?: string | null | undefined;
23549
+ ledger_account?: string | null | undefined;
23550
+ unallocated_account?: string | null | undefined;
23551
+ }[];
23552
+ total: number;
23553
+ page: number;
23554
+ size: number;
21631
23555
  }>;
21632
23556
  createBankAccount(bankAccount: {
21633
23557
  code: string;
@@ -21650,6 +23574,45 @@ export declare class API {
21650
23574
  ledger_account?: string | null | undefined;
21651
23575
  unallocated_account?: string | null | undefined;
21652
23576
  }>;
23577
+ createBankTransactions(bankStatement: {
23578
+ bank_statement_date: string;
23579
+ bank_account_id: string;
23580
+ external_bank_statement_id: string;
23581
+ opening_balance?: number | null | undefined;
23582
+ pdf?: string | null | undefined;
23583
+ items: {
23584
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
23585
+ account?: string | null | undefined;
23586
+ description?: string | null | undefined;
23587
+ external_transaction_id?: string | null | undefined;
23588
+ date: string;
23589
+ amount: number;
23590
+ fee_amount: number | null;
23591
+ tax_amount: number | null;
23592
+ currency: string;
23593
+ currency_exchange_rate: number | null;
23594
+ }[];
23595
+ }, params?: {
23596
+ folder_id?: string | null | undefined;
23597
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
23598
+ bank_statement_date: string;
23599
+ bank_account_id: string;
23600
+ id?: string | null | undefined;
23601
+ external_bank_statement_id?: string | null | undefined;
23602
+ items: {
23603
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
23604
+ account?: string | null | undefined;
23605
+ description?: string | null | undefined;
23606
+ external_transaction_id?: string | null | undefined;
23607
+ date: string;
23608
+ amount: number;
23609
+ fee_amount: number | null;
23610
+ tax_amount: number | null;
23611
+ currency: string;
23612
+ currency_exchange_rate: number | null;
23613
+ id?: string | null | undefined;
23614
+ }[];
23615
+ }>;
21653
23616
  getJournalEntry(journalEntryId: string, params?: {
21654
23617
  folder_id?: string | null | undefined;
21655
23618
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -21664,9 +23627,17 @@ export declare class API {
21664
23627
  due_dates: {
21665
23628
  due_date: string;
21666
23629
  payment_method?: string | null | undefined;
23630
+ payment_method_id?: string | null | undefined;
21667
23631
  debit: number | null;
21668
23632
  credit: number | null;
21669
23633
  }[] | null;
23634
+ attachments_info?: {
23635
+ status: "unknown" | "yes" | "yes_to_request" | "no";
23636
+ attachments: {
23637
+ filename?: string | null | undefined;
23638
+ url?: string | null | undefined;
23639
+ }[] | null;
23640
+ } | undefined;
21670
23641
  items: {
21671
23642
  account_number: string;
21672
23643
  partner_id?: string | null | undefined;
@@ -21701,6 +23672,29 @@ export declare class API {
21701
23672
  page: number;
21702
23673
  size: number;
21703
23674
  }>;
23675
+ getPaymentTerms(params?: {
23676
+ folder_id?: string | null | undefined;
23677
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
23678
+ items: {
23679
+ id: string;
23680
+ name?: string | null | undefined;
23681
+ }[];
23682
+ total: number;
23683
+ page: number;
23684
+ size: number;
23685
+ }>;
23686
+ getSchemes(params?: {
23687
+ folder_id?: string | null | undefined;
23688
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
23689
+ items: {
23690
+ id: string;
23691
+ code: string;
23692
+ name: string;
23693
+ }[];
23694
+ total: number;
23695
+ page: number;
23696
+ size: number;
23697
+ }>;
21704
23698
  createInvoicePayment(body: {
21705
23699
  date: string;
21706
23700
  payment_method_id: string;
@@ -21720,6 +23714,29 @@ export declare class API {
21720
23714
  };
21721
23715
  content?: undefined;
21722
23716
  }>;
23717
+ exportFec(params: {
23718
+ folder_id?: string | null | undefined;
23719
+ date_from: string;
23720
+ date_to: string;
23721
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
23722
+ JournalCode: string;
23723
+ JournalLib: string;
23724
+ EcritureNum: string;
23725
+ EcritureDate: string;
23726
+ CompteNum: string;
23727
+ CompteLib: string;
23728
+ CompAuxNum: string;
23729
+ CompAuxLib: string;
23730
+ PieceRef: string;
23731
+ PieceDate: string;
23732
+ Debit: number;
23733
+ Credit: number;
23734
+ EcritureLet: string;
23735
+ DateLet: string | null;
23736
+ ValidDate: string | null;
23737
+ Montantdevise: number;
23738
+ Idevise: string;
23739
+ }[]>;
21723
23740
  }>;
21724
23741
  invoicing: import("../types/api").ApiFor<{
21725
23742
  getInvoices(params?: {
@@ -21729,6 +23746,7 @@ export declare class API {
21729
23746
  updated_after?: string | null | undefined;
21730
23747
  include_invoice_lines?: "true" | "false" | null | undefined;
21731
23748
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
23749
+ include_analytic_accounts?: "true" | "false" | null | undefined;
21732
23750
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21733
23751
  id: string;
21734
23752
  source_ref: {
@@ -21758,6 +23776,14 @@ export declare class API {
21758
23776
  product_id?: string | null | undefined;
21759
23777
  product_code?: string | null | undefined;
21760
23778
  product_name?: string | null | undefined;
23779
+ analytic_distribution: {
23780
+ analytic_plan_code: string;
23781
+ analytic_accounts: {
23782
+ analytic_account_code: string;
23783
+ analytic_account_name: string;
23784
+ percentage: number;
23785
+ }[];
23786
+ }[] | null;
21761
23787
  }[];
21762
23788
  partner_id?: string | null | undefined;
21763
23789
  invoice_number?: string | null | undefined;
@@ -21797,6 +23823,7 @@ export declare class API {
21797
23823
  }[]>;
21798
23824
  getInvoiceById(invoiceId: string, params?: {
21799
23825
  include_pdf?: "true" | "false" | null | undefined;
23826
+ include_analytic_accounts?: "true" | "false" | null | undefined;
21800
23827
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21801
23828
  id: string;
21802
23829
  source_ref: {
@@ -21826,6 +23853,14 @@ export declare class API {
21826
23853
  product_id?: string | null | undefined;
21827
23854
  product_code?: string | null | undefined;
21828
23855
  product_name?: string | null | undefined;
23856
+ analytic_distribution: {
23857
+ analytic_plan_code: string;
23858
+ analytic_accounts: {
23859
+ analytic_account_code: string;
23860
+ analytic_account_name: string;
23861
+ percentage: number;
23862
+ }[];
23863
+ }[] | null;
21829
23864
  }[];
21830
23865
  partner_id?: string | null | undefined;
21831
23866
  invoice_number?: string | null | undefined;
@@ -21947,6 +23982,14 @@ export declare class API {
21947
23982
  product_id?: string | null | undefined;
21948
23983
  product_code?: string | null | undefined;
21949
23984
  product_name?: string | null | undefined;
23985
+ analytic_distribution: {
23986
+ analytic_plan_code: string;
23987
+ analytic_accounts: {
23988
+ analytic_account_code: string;
23989
+ analytic_account_name: string;
23990
+ percentage: number;
23991
+ }[];
23992
+ }[] | null;
21950
23993
  }[];
21951
23994
  partner_id?: string | null | undefined;
21952
23995
  invoice_number?: string | null | undefined;
@@ -23525,14 +25568,18 @@ export declare class API {
23525
25568
  reference: string;
23526
25569
  reference_type: string;
23527
25570
  holder_name?: string | null | undefined;
25571
+ active: boolean | null;
23528
25572
  }[]>;
23529
- getAccountTransactions(accountId: string, params?: {
25573
+ getAccountTransactions(params: {
23530
25574
  date_from?: string | null | undefined;
23531
25575
  date_to?: string | null | undefined;
25576
+ updated_after?: string | null | undefined;
25577
+ account_id: string;
23532
25578
  date_type?: "value_date" | "execution_date" | null | undefined;
23533
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
25579
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
23534
25580
  id: string;
23535
25581
  amount: number;
25582
+ tax_amount?: number | null | undefined;
23536
25583
  currency: string;
23537
25584
  description?: string | null | undefined;
23538
25585
  additional_information?: string | null | undefined;
@@ -23542,6 +25589,17 @@ export declare class API {
23542
25589
  creation_date: string;
23543
25590
  value_date: string;
23544
25591
  execution_date: string;
25592
+ internal_transaction: boolean | null;
25593
+ 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;
25594
+ last_update_on?: string | null | undefined;
25595
+ status?: "completed" | "pending" | "declined" | null | undefined;
25596
+ attachments_info?: {
25597
+ status: "unknown" | "yes" | "yes_to_request" | "no";
25598
+ attachments: {
25599
+ filename?: string | null | undefined;
25600
+ url?: string | null | undefined;
25601
+ }[] | null;
25602
+ } | undefined;
23545
25603
  }[]>;
23546
25604
  getAccountCounterparts(params?: {
23547
25605
  date_from?: string | null | undefined;
@@ -23552,6 +25610,17 @@ export declare class API {
23552
25610
  reference?: string | null | undefined;
23553
25611
  details?: string | null | undefined;
23554
25612
  }[]>;
25613
+ getAttachments(params: {
25614
+ transaction_id: string;
25615
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
25616
+ items: {
25617
+ id: string;
25618
+ base64_string: string;
25619
+ }[];
25620
+ total: number;
25621
+ page: number;
25622
+ size: number;
25623
+ }>;
23555
25624
  }>;
23556
25625
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
23557
25626
  data: {
@@ -23591,6 +25660,7 @@ export declare class API {
23591
25660
  source_id?: string | null | undefined;
23592
25661
  target_id?: string | null | undefined;
23593
25662
  }[];
25663
+ hidden_source_ids: string[];
23594
25664
  sub_mapping_name: string;
23595
25665
  sub_mapping_description?: string | null | undefined;
23596
25666
  }[] | null | undefined;
@@ -23741,9 +25811,11 @@ export declare class API {
23741
25811
  Integrations: {
23742
25812
  getIntegrations: (params?: {
23743
25813
  status?: "active" | "inactive" | null | undefined;
25814
+ include_coverage?: "true" | "false" | null | undefined;
23744
25815
  } | undefined) => Promise<{
23745
25816
  integrationid: number;
23746
25817
  name: string;
25818
+ description?: string | null | undefined;
23747
25819
  status: "active" | "inactive";
23748
25820
  api: "Payment" | "Point of Sale" | "eCommerce" | "Accounting" | "Invoicing" | "Communication" | "Banking" | "Custom" | "Property Management System";
23749
25821
  logo_url: string;
@@ -23754,6 +25826,10 @@ export declare class API {
23754
25826
  optional: boolean;
23755
25827
  resource: string;
23756
25828
  }[] | null;
25829
+ operations_coverage: {
25830
+ operation: string;
25831
+ status: "SUPPORTED" | "NOT_IMPLEMENTED" | "NOT_SUPPORTED" | "UNDER_ANALYSIS";
25832
+ }[] | null;
23757
25833
  credentials: {
23758
25834
  name: string;
23759
25835
  optional: boolean;
@@ -23874,6 +25950,85 @@ export declare class API {
23874
25950
  }>;
23875
25951
  deleteConsumerDataStoreData: (consumerId: string, datastoreId: string, datastoreDataId: string) => Promise<void>;
23876
25952
  };
25953
+ Issues: {
25954
+ getIssues: (params?: {
25955
+ created_on?: string | undefined;
25956
+ last_seen_on?: string | undefined;
25957
+ error_code?: string | undefined;
25958
+ status?: "all" | "open" | "closed" | undefined;
25959
+ level?: "error" | "warning" | null | undefined;
25960
+ } | undefined) => Promise<{
25961
+ id: string;
25962
+ consumer_id: string;
25963
+ connection_id: string;
25964
+ integration_id: number;
25965
+ integration_name: string;
25966
+ created_on: string;
25967
+ updated_on: string;
25968
+ last_seen: string;
25969
+ error: {
25970
+ error_code: string;
25971
+ status: string;
25972
+ title: string;
25973
+ description?: string | undefined;
25974
+ };
25975
+ occurrences: number;
25976
+ level: "error" | "warning";
25977
+ }[]>;
25978
+ getIssuesByConsumerId: (consumerId: string, params?: {
25979
+ created_on?: string | undefined;
25980
+ last_seen_on?: string | undefined;
25981
+ error_code?: string | undefined;
25982
+ status?: "all" | "open" | "closed" | undefined;
25983
+ level?: "error" | "warning" | null | undefined;
25984
+ } | undefined) => Promise<{
25985
+ id: string;
25986
+ consumer_id: string;
25987
+ connection_id: string;
25988
+ integration_id: number;
25989
+ integration_name: string;
25990
+ created_on: string;
25991
+ updated_on: string;
25992
+ last_seen: string;
25993
+ error: {
25994
+ error_code: string;
25995
+ status: string;
25996
+ title: string;
25997
+ description?: string | undefined;
25998
+ };
25999
+ occurrences: number;
26000
+ level: "error" | "warning";
26001
+ }[]>;
26002
+ getIssue: (issueId: string, params?: {
26003
+ last_execution_only?: boolean | undefined;
26004
+ } | undefined) => Promise<{
26005
+ id: string;
26006
+ consumer_id: string;
26007
+ connection_id: string;
26008
+ integration_id: number;
26009
+ integration_name: string;
26010
+ created_on: string;
26011
+ updated_on: string;
26012
+ last_seen: string;
26013
+ error: {
26014
+ error_code: string;
26015
+ status: string;
26016
+ title: string;
26017
+ description?: string | undefined;
26018
+ };
26019
+ occurrences: number;
26020
+ level: "error" | "warning";
26021
+ events: {
26022
+ id: string;
26023
+ execution_id: string;
26024
+ created_on: string;
26025
+ context?: {
26026
+ [key: string]: unknown;
26027
+ } | null | undefined;
26028
+ message?: string | null | undefined;
26029
+ }[];
26030
+ }>;
26031
+ };
23877
26032
  constructor(auth: AuthType);
23878
26033
  private _setup;
23879
26034
  }