@chift/chift-nodejs 1.0.26 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
@@ -653,6 +663,30 @@ export declare class API {
653
663
  country?: string | null | undefined;
654
664
  }[] | null | undefined;
655
665
  }[]>;
666
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
667
+ id: string;
668
+ source_ref: {
669
+ id?: string | null | undefined;
670
+ model?: string | null | undefined;
671
+ };
672
+ first_name?: string | null | undefined;
673
+ last_name?: string | null | undefined;
674
+ company_name?: string | null | undefined;
675
+ phone?: string | null | undefined;
676
+ email?: string | null | undefined;
677
+ account_number?: string | null | undefined;
678
+ created_on?: string | null | undefined;
679
+ addresses?: {
680
+ address_type?: string | null | undefined;
681
+ name?: string | null | undefined;
682
+ street?: string | null | undefined;
683
+ number?: string | null | undefined;
684
+ box?: string | null | undefined;
685
+ city?: string | null | undefined;
686
+ postal_code?: string | null | undefined;
687
+ country?: string | null | undefined;
688
+ }[] | null | undefined;
689
+ }>;
656
690
  getInvoices(params?: {
657
691
  date_from: string;
658
692
  date_to: string;
@@ -755,6 +789,20 @@ export declare class API {
755
789
  untaxed_amount: number;
756
790
  total: number;
757
791
  }[]>;
792
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
793
+ items: {
794
+ id: string;
795
+ source_ref: {
796
+ id?: string | null | undefined;
797
+ model?: string | null | undefined;
798
+ };
799
+ label?: string | null | undefined;
800
+ rate?: number | null | undefined;
801
+ }[];
802
+ total: number;
803
+ page: number;
804
+ size: number;
805
+ }>;
758
806
  }>;
759
807
  payment: import("../types/api").ApiFor<{
760
808
  getPayments(params: {
@@ -1306,6 +1354,12 @@ export declare class API {
1306
1354
  reference?: string | null | undefined;
1307
1355
  payment_communication?: string | null | undefined;
1308
1356
  customer_memo?: string | null | undefined;
1357
+ payment_term_id?: string | null | undefined;
1358
+ withholding_tax?: {
1359
+ tax_rate: number;
1360
+ tax_code: string;
1361
+ tax_amount: number;
1362
+ } | null | undefined;
1309
1363
  invoice_date: string;
1310
1364
  due_date: string;
1311
1365
  partner_id?: string | null | undefined;
@@ -1348,10 +1402,14 @@ export declare class API {
1348
1402
  description: string;
1349
1403
  analytic_account?: string | null | undefined;
1350
1404
  }[];
1405
+ start_date?: string | null | undefined;
1406
+ end_date?: string | null | undefined;
1407
+ payment_method_id?: string | null | undefined;
1351
1408
  }, params?: {
1352
1409
  folder_id?: string | null | undefined;
1353
1410
  force_financial_period?: string | null | undefined;
1354
1411
  regroup_lines?: "true" | "false" | null | undefined;
1412
+ ignore_accounting_id?: boolean | undefined;
1355
1413
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1356
1414
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1357
1415
  invoice_number?: string | null | undefined;
@@ -1362,10 +1420,16 @@ export declare class API {
1362
1420
  reference?: string | null | undefined;
1363
1421
  payment_communication?: string | null | undefined;
1364
1422
  customer_memo?: string | null | undefined;
1423
+ payment_term_id?: string | null | undefined;
1424
+ withholding_tax?: {
1425
+ tax_rate: number;
1426
+ tax_code: string;
1427
+ tax_amount: number;
1428
+ } | null | undefined;
1365
1429
  id?: string | null | undefined;
1366
1430
  invoice_date: string;
1367
1431
  due_date: string;
1368
- partner_id: string;
1432
+ partner_id: string | null;
1369
1433
  journal_id?: string | null | undefined;
1370
1434
  payments?: {
1371
1435
  id: string;
@@ -1423,8 +1487,22 @@ export declare class API {
1423
1487
  due_dates: {
1424
1488
  due_date: string;
1425
1489
  payment_method?: string | null | undefined;
1490
+ payment_method_id?: string | null | undefined;
1426
1491
  amount: number;
1427
1492
  }[] | null;
1493
+ attachments_info?: {
1494
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1495
+ attachments: {
1496
+ filename?: string | null | undefined;
1497
+ url?: string | null | undefined;
1498
+ }[] | null;
1499
+ } | undefined;
1500
+ accounting_info?: {
1501
+ main_currency?: string | undefined;
1502
+ main_currency_total: number;
1503
+ account_number?: string | null | undefined;
1504
+ } | null | undefined;
1505
+ payment_method_id?: string | null | undefined;
1428
1506
  lines: {
1429
1507
  line_number: number | null;
1430
1508
  unit_price: number;
@@ -1450,6 +1528,12 @@ export declare class API {
1450
1528
  reference?: string | null | undefined;
1451
1529
  payment_communication?: string | null | undefined;
1452
1530
  customer_memo?: string | null | undefined;
1531
+ payment_term_id?: string | null | undefined;
1532
+ withholding_tax?: {
1533
+ tax_rate: number;
1534
+ tax_code: string;
1535
+ tax_amount: number;
1536
+ } | null | undefined;
1453
1537
  invoice_date: string;
1454
1538
  due_date: string;
1455
1539
  partner_id?: string | null | undefined;
@@ -1498,10 +1582,14 @@ export declare class API {
1498
1582
  }[];
1499
1583
  }[] | null;
1500
1584
  }[];
1585
+ start_date?: string | null | undefined;
1586
+ end_date?: string | null | undefined;
1587
+ payment_method_id?: string | null | undefined;
1501
1588
  }, params?: {
1502
1589
  folder_id?: string | null | undefined;
1503
1590
  force_financial_period?: string | null | undefined;
1504
1591
  regroup_lines?: "true" | "false" | null | undefined;
1592
+ ignore_accounting_id?: boolean | undefined;
1505
1593
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1506
1594
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1507
1595
  invoice_number?: string | null | undefined;
@@ -1512,10 +1600,16 @@ export declare class API {
1512
1600
  reference?: string | null | undefined;
1513
1601
  payment_communication?: string | null | undefined;
1514
1602
  customer_memo?: string | null | undefined;
1603
+ payment_term_id?: string | null | undefined;
1604
+ withholding_tax?: {
1605
+ tax_rate: number;
1606
+ tax_code: string;
1607
+ tax_amount: number;
1608
+ } | null | undefined;
1515
1609
  id?: string | null | undefined;
1516
1610
  invoice_date: string;
1517
1611
  due_date: string;
1518
- partner_id: string;
1612
+ partner_id: string | null;
1519
1613
  journal_id?: string | null | undefined;
1520
1614
  payments?: {
1521
1615
  id: string;
@@ -1573,8 +1667,22 @@ export declare class API {
1573
1667
  due_dates: {
1574
1668
  due_date: string;
1575
1669
  payment_method?: string | null | undefined;
1670
+ payment_method_id?: string | null | undefined;
1576
1671
  amount: number;
1577
1672
  }[] | null;
1673
+ attachments_info?: {
1674
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1675
+ attachments: {
1676
+ filename?: string | null | undefined;
1677
+ url?: string | null | undefined;
1678
+ }[] | null;
1679
+ } | undefined;
1680
+ accounting_info?: {
1681
+ main_currency?: string | undefined;
1682
+ main_currency_total: number;
1683
+ account_number?: string | null | undefined;
1684
+ } | null | undefined;
1685
+ payment_method_id?: string | null | undefined;
1578
1686
  lines: {
1579
1687
  line_number: number | null;
1580
1688
  unit_price: number;
@@ -1616,10 +1724,16 @@ export declare class API {
1616
1724
  reference?: string | null | undefined;
1617
1725
  payment_communication?: string | null | undefined;
1618
1726
  customer_memo?: string | null | undefined;
1727
+ payment_term_id?: string | null | undefined;
1728
+ withholding_tax?: {
1729
+ tax_rate: number;
1730
+ tax_code: string;
1731
+ tax_amount: number;
1732
+ } | null | undefined;
1619
1733
  id?: string | null | undefined;
1620
1734
  invoice_date: string;
1621
1735
  due_date: string;
1622
- partner_id: string;
1736
+ partner_id: string | null;
1623
1737
  journal_id?: string | null | undefined;
1624
1738
  payments?: {
1625
1739
  id: string;
@@ -1677,8 +1791,22 @@ export declare class API {
1677
1791
  due_dates: {
1678
1792
  due_date: string;
1679
1793
  payment_method?: string | null | undefined;
1794
+ payment_method_id?: string | null | undefined;
1680
1795
  amount: number;
1681
1796
  }[] | null;
1797
+ attachments_info?: {
1798
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1799
+ attachments: {
1800
+ filename?: string | null | undefined;
1801
+ url?: string | null | undefined;
1802
+ }[] | null;
1803
+ } | undefined;
1804
+ accounting_info?: {
1805
+ main_currency?: string | undefined;
1806
+ main_currency_total: number;
1807
+ account_number?: string | null | undefined;
1808
+ } | null | undefined;
1809
+ payment_method_id?: string | null | undefined;
1682
1810
  lines: {
1683
1811
  line_number: number | null;
1684
1812
  unit_price: number;
@@ -1709,10 +1837,16 @@ export declare class API {
1709
1837
  reference?: string | null | undefined;
1710
1838
  payment_communication?: string | null | undefined;
1711
1839
  customer_memo?: string | null | undefined;
1840
+ payment_term_id?: string | null | undefined;
1841
+ withholding_tax?: {
1842
+ tax_rate: number;
1843
+ tax_code: string;
1844
+ tax_amount: number;
1845
+ } | null | undefined;
1712
1846
  id?: string | null | undefined;
1713
1847
  invoice_date: string;
1714
1848
  due_date: string;
1715
- partner_id: string;
1849
+ partner_id: string | null;
1716
1850
  journal_id?: string | null | undefined;
1717
1851
  payments?: {
1718
1852
  id: string;
@@ -1770,8 +1904,22 @@ export declare class API {
1770
1904
  due_dates: {
1771
1905
  due_date: string;
1772
1906
  payment_method?: string | null | undefined;
1907
+ payment_method_id?: string | null | undefined;
1773
1908
  amount: number;
1774
1909
  }[] | null;
1910
+ attachments_info?: {
1911
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1912
+ attachments: {
1913
+ filename?: string | null | undefined;
1914
+ url?: string | null | undefined;
1915
+ }[] | null;
1916
+ } | undefined;
1917
+ accounting_info?: {
1918
+ main_currency?: string | undefined;
1919
+ main_currency_total: number;
1920
+ account_number?: string | null | undefined;
1921
+ } | null | undefined;
1922
+ payment_method_id?: string | null | undefined;
1775
1923
  lines: {
1776
1924
  line_number: number | null;
1777
1925
  unit_price: number;
@@ -1802,10 +1950,16 @@ export declare class API {
1802
1950
  reference?: string | null | undefined;
1803
1951
  payment_communication?: string | null | undefined;
1804
1952
  customer_memo?: string | null | undefined;
1953
+ payment_term_id?: string | null | undefined;
1954
+ withholding_tax?: {
1955
+ tax_rate: number;
1956
+ tax_code: string;
1957
+ tax_amount: number;
1958
+ } | null | undefined;
1805
1959
  id?: string | null | undefined;
1806
1960
  invoice_date: string;
1807
1961
  due_date: string;
1808
- partner_id: string;
1962
+ partner_id: string | null;
1809
1963
  journal_id?: string | null | undefined;
1810
1964
  payments?: {
1811
1965
  id: string;
@@ -1863,8 +2017,22 @@ export declare class API {
1863
2017
  due_dates: {
1864
2018
  due_date: string;
1865
2019
  payment_method?: string | null | undefined;
2020
+ payment_method_id?: string | null | undefined;
1866
2021
  amount: number;
1867
2022
  }[] | null;
2023
+ attachments_info?: {
2024
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2025
+ attachments: {
2026
+ filename?: string | null | undefined;
2027
+ url?: string | null | undefined;
2028
+ }[] | null;
2029
+ } | undefined;
2030
+ accounting_info?: {
2031
+ main_currency?: string | undefined;
2032
+ main_currency_total: number;
2033
+ account_number?: string | null | undefined;
2034
+ } | null | undefined;
2035
+ payment_method_id?: string | null | undefined;
1868
2036
  lines: {
1869
2037
  line_number: number | null;
1870
2038
  unit_price: number;
@@ -1906,10 +2074,16 @@ export declare class API {
1906
2074
  reference?: string | null | undefined;
1907
2075
  payment_communication?: string | null | undefined;
1908
2076
  customer_memo?: string | null | undefined;
2077
+ payment_term_id?: string | null | undefined;
2078
+ withholding_tax?: {
2079
+ tax_rate: number;
2080
+ tax_code: string;
2081
+ tax_amount: number;
2082
+ } | null | undefined;
1909
2083
  id?: string | null | undefined;
1910
2084
  invoice_date: string;
1911
2085
  due_date: string;
1912
- partner_id: string;
2086
+ partner_id: string | null;
1913
2087
  journal_id?: string | null | undefined;
1914
2088
  payments?: {
1915
2089
  id: string;
@@ -1967,8 +2141,22 @@ export declare class API {
1967
2141
  due_dates: {
1968
2142
  due_date: string;
1969
2143
  payment_method?: string | null | undefined;
2144
+ payment_method_id?: string | null | undefined;
1970
2145
  amount: number;
1971
2146
  }[] | null;
2147
+ attachments_info?: {
2148
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2149
+ attachments: {
2150
+ filename?: string | null | undefined;
2151
+ url?: string | null | undefined;
2152
+ }[] | null;
2153
+ } | undefined;
2154
+ accounting_info?: {
2155
+ main_currency?: string | undefined;
2156
+ main_currency_total: number;
2157
+ account_number?: string | null | undefined;
2158
+ } | null | undefined;
2159
+ payment_method_id?: string | null | undefined;
1972
2160
  lines: {
1973
2161
  line_number: number | null;
1974
2162
  unit_price: number;
@@ -2116,7 +2304,7 @@ export declare class API {
2116
2304
  folder_id?: string | null | undefined;
2117
2305
  updated_after?: string | null | undefined;
2118
2306
  unposted_allowed: "true" | "false";
2119
- journal_id: string;
2307
+ journal_id?: string | null | undefined;
2120
2308
  partner_id?: string | null | undefined;
2121
2309
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2122
2310
  reference?: string | null | undefined;
@@ -2130,9 +2318,17 @@ export declare class API {
2130
2318
  due_dates: {
2131
2319
  due_date: string;
2132
2320
  payment_method?: string | null | undefined;
2321
+ payment_method_id?: string | null | undefined;
2133
2322
  debit: number | null;
2134
2323
  credit: number | null;
2135
2324
  }[] | null;
2325
+ attachments_info?: {
2326
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2327
+ attachments: {
2328
+ filename?: string | null | undefined;
2329
+ url?: string | null | undefined;
2330
+ }[] | null;
2331
+ } | undefined;
2136
2332
  items: {
2137
2333
  account_number: string;
2138
2334
  partner_id?: string | null | undefined;
@@ -2155,7 +2351,7 @@ export declare class API {
2155
2351
  folder_id?: string | null | undefined;
2156
2352
  updated_after?: string | null | undefined;
2157
2353
  unposted_allowed: "true" | "false";
2158
- journal_id: string;
2354
+ journal_id?: string | null | undefined;
2159
2355
  partner_id?: string | null | undefined;
2160
2356
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2161
2357
  reference?: string | null | undefined;
@@ -2169,9 +2365,17 @@ export declare class API {
2169
2365
  due_dates: {
2170
2366
  due_date: string;
2171
2367
  payment_method?: string | null | undefined;
2368
+ payment_method_id?: string | null | undefined;
2172
2369
  debit: number | null;
2173
2370
  credit: number | null;
2174
2371
  }[] | null;
2372
+ attachments_info?: {
2373
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2374
+ attachments: {
2375
+ filename?: string | null | undefined;
2376
+ url?: string | null | undefined;
2377
+ }[] | null;
2378
+ } | undefined;
2175
2379
  items: {
2176
2380
  account_number: string;
2177
2381
  partner_id?: string | null | undefined;
@@ -2261,6 +2465,7 @@ export declare class API {
2261
2465
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2262
2466
  id: string;
2263
2467
  code?: string | null | undefined;
2468
+ active: boolean | null;
2264
2469
  label: string;
2265
2470
  scope: "unknown" | "nat" | "eu" | "int" | null;
2266
2471
  rate: number;
@@ -2268,6 +2473,7 @@ export declare class API {
2268
2473
  deductible_account?: string | null | undefined;
2269
2474
  payable_account?: string | null | undefined;
2270
2475
  reversed: boolean | null;
2476
+ withholding_tax: boolean | null;
2271
2477
  country?: string | null | undefined;
2272
2478
  }[]>;
2273
2479
  getMiscOperations(params?: {
@@ -2370,12 +2576,14 @@ export declare class API {
2370
2576
  getChartOfAccounts(params?: {
2371
2577
  folder_id?: string | null | undefined;
2372
2578
  classes?: string | null | undefined;
2373
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
2579
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
2374
2580
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2375
2581
  number: string;
2376
2582
  name: string;
2377
2583
  active: boolean | null;
2378
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
2584
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
2585
+ scheme_ids?: string[] | null | undefined;
2586
+ accounting_category?: string | null | undefined;
2379
2587
  }[]>;
2380
2588
  getBalanceOfAccounts(filter: {
2381
2589
  accounts: string[];
@@ -2451,6 +2659,7 @@ export declare class API {
2451
2659
  account: string;
2452
2660
  amount: number;
2453
2661
  description?: string | null | undefined;
2662
+ automated_matching_number?: string | null | undefined;
2454
2663
  }[];
2455
2664
  pdf?: string | null | undefined;
2456
2665
  }, params?: {
@@ -2469,6 +2678,7 @@ export declare class API {
2469
2678
  account: string;
2470
2679
  amount: number;
2471
2680
  description?: string | null | undefined;
2681
+ automated_matching_number?: string | null | undefined;
2472
2682
  counterpart_account: string;
2473
2683
  }[];
2474
2684
  }>;
@@ -2496,6 +2706,13 @@ export declare class API {
2496
2706
  }[];
2497
2707
  }[] | null;
2498
2708
  tax_code?: string | null | undefined;
2709
+ tax_info?: {
2710
+ tax_code: string;
2711
+ tax_amount: number;
2712
+ vat_account?: string | null | undefined;
2713
+ reversed_vat_account?: string | null | undefined;
2714
+ description?: string | null | undefined;
2715
+ } | null | undefined;
2499
2716
  account_info?: {
2500
2717
  account_number: string;
2501
2718
  account_name: string;
@@ -2508,6 +2725,7 @@ export declare class API {
2508
2725
  }, params?: {
2509
2726
  folder_id?: string | null | undefined;
2510
2727
  force_currency_exchange?: "true" | "false" | null | undefined;
2728
+ ignore_accounting_id?: boolean | undefined;
2511
2729
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2512
2730
  reference?: string | null | undefined;
2513
2731
  due_date?: string | null | undefined;
@@ -2520,9 +2738,17 @@ export declare class API {
2520
2738
  due_dates: {
2521
2739
  due_date: string;
2522
2740
  payment_method?: string | null | undefined;
2741
+ payment_method_id?: string | null | undefined;
2523
2742
  debit: number | null;
2524
2743
  credit: number | null;
2525
2744
  }[] | null;
2745
+ attachments_info?: {
2746
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2747
+ attachments: {
2748
+ filename?: string | null | undefined;
2749
+ url?: string | null | undefined;
2750
+ }[] | null;
2751
+ } | undefined;
2526
2752
  items: {
2527
2753
  account_number: string;
2528
2754
  partner_id?: string | null | undefined;
@@ -2638,14 +2864,35 @@ export declare class API {
2638
2864
  createLedgerAccount(account: {
2639
2865
  name: string;
2640
2866
  number: string;
2641
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
2867
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
2642
2868
  }, params?: {
2643
2869
  folder_id?: string | null | undefined;
2644
2870
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2645
2871
  number: string;
2646
2872
  name: string;
2647
2873
  active: boolean | null;
2648
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
2874
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
2875
+ scheme_ids?: string[] | null | undefined;
2876
+ accounting_category?: string | null | undefined;
2877
+ }>;
2878
+ getBankAccounts(params?: {
2879
+ folder_id?: string | null | undefined;
2880
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2881
+ items: {
2882
+ id: string;
2883
+ code?: string | null | undefined;
2884
+ currency?: string | null | undefined;
2885
+ account_name?: string | null | undefined;
2886
+ account_number?: string | null | undefined;
2887
+ iban?: string | null | undefined;
2888
+ bank_name?: string | null | undefined;
2889
+ journal_id?: string | null | undefined;
2890
+ ledger_account?: string | null | undefined;
2891
+ unallocated_account?: string | null | undefined;
2892
+ }[];
2893
+ total: number;
2894
+ page: number;
2895
+ size: number;
2649
2896
  }>;
2650
2897
  createBankAccount(bankAccount: {
2651
2898
  code: string;
@@ -2668,6 +2915,45 @@ export declare class API {
2668
2915
  ledger_account?: string | null | undefined;
2669
2916
  unallocated_account?: string | null | undefined;
2670
2917
  }>;
2918
+ createBankTransactions(bankStatement: {
2919
+ bank_statement_date: string;
2920
+ bank_account_id: string;
2921
+ external_bank_statement_id: string;
2922
+ opening_balance?: number | null | undefined;
2923
+ pdf?: string | null | undefined;
2924
+ items: {
2925
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
2926
+ account?: string | null | undefined;
2927
+ description?: string | null | undefined;
2928
+ external_transaction_id?: string | null | undefined;
2929
+ date: string;
2930
+ amount: number;
2931
+ fee_amount: number | null;
2932
+ tax_amount: number | null;
2933
+ currency: string;
2934
+ currency_exchange_rate: number | null;
2935
+ }[];
2936
+ }, params?: {
2937
+ folder_id?: string | null | undefined;
2938
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2939
+ bank_statement_date: string;
2940
+ bank_account_id: string;
2941
+ id?: string | null | undefined;
2942
+ external_bank_statement_id?: string | null | undefined;
2943
+ items: {
2944
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
2945
+ account?: string | null | undefined;
2946
+ description?: string | null | undefined;
2947
+ external_transaction_id?: string | null | undefined;
2948
+ date: string;
2949
+ amount: number;
2950
+ fee_amount: number | null;
2951
+ tax_amount: number | null;
2952
+ currency: string;
2953
+ currency_exchange_rate: number | null;
2954
+ id?: string | null | undefined;
2955
+ }[];
2956
+ }>;
2671
2957
  getJournalEntry(journalEntryId: string, params?: {
2672
2958
  folder_id?: string | null | undefined;
2673
2959
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -2682,9 +2968,17 @@ export declare class API {
2682
2968
  due_dates: {
2683
2969
  due_date: string;
2684
2970
  payment_method?: string | null | undefined;
2971
+ payment_method_id?: string | null | undefined;
2685
2972
  debit: number | null;
2686
2973
  credit: number | null;
2687
2974
  }[] | null;
2975
+ attachments_info?: {
2976
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2977
+ attachments: {
2978
+ filename?: string | null | undefined;
2979
+ url?: string | null | undefined;
2980
+ }[] | null;
2981
+ } | undefined;
2688
2982
  items: {
2689
2983
  account_number: string;
2690
2984
  partner_id?: string | null | undefined;
@@ -2719,6 +3013,29 @@ export declare class API {
2719
3013
  page: number;
2720
3014
  size: number;
2721
3015
  }>;
3016
+ getPaymentTerms(params?: {
3017
+ folder_id?: string | null | undefined;
3018
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3019
+ items: {
3020
+ id: string;
3021
+ name?: string | null | undefined;
3022
+ }[];
3023
+ total: number;
3024
+ page: number;
3025
+ size: number;
3026
+ }>;
3027
+ getSchemes(params?: {
3028
+ folder_id?: string | null | undefined;
3029
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3030
+ items: {
3031
+ id: string;
3032
+ code: string;
3033
+ name: string;
3034
+ }[];
3035
+ total: number;
3036
+ page: number;
3037
+ size: number;
3038
+ }>;
2722
3039
  createInvoicePayment(body: {
2723
3040
  date: string;
2724
3041
  payment_method_id: string;
@@ -2738,6 +3055,29 @@ export declare class API {
2738
3055
  };
2739
3056
  content?: undefined;
2740
3057
  }>;
3058
+ exportFec(params: {
3059
+ folder_id?: string | null | undefined;
3060
+ date_from: string;
3061
+ date_to: string;
3062
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3063
+ JournalCode: string;
3064
+ JournalLib: string;
3065
+ EcritureNum: string;
3066
+ EcritureDate: string;
3067
+ CompteNum: string;
3068
+ CompteLib: string;
3069
+ CompAuxNum: string;
3070
+ CompAuxLib: string;
3071
+ PieceRef: string;
3072
+ PieceDate: string;
3073
+ Debit: number;
3074
+ Credit: number;
3075
+ EcritureLet: string;
3076
+ DateLet: string | null;
3077
+ ValidDate: string | null;
3078
+ Montantdevise: number;
3079
+ Idevise: string;
3080
+ }[]>;
2741
3081
  }>;
2742
3082
  invoicing: import("../types/api").ApiFor<{
2743
3083
  getInvoices(params?: {
@@ -2747,6 +3087,7 @@ export declare class API {
2747
3087
  updated_after?: string | null | undefined;
2748
3088
  include_invoice_lines?: "true" | "false" | null | undefined;
2749
3089
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
3090
+ include_analytic_accounts?: "true" | "false" | null | undefined;
2750
3091
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2751
3092
  id: string;
2752
3093
  source_ref: {
@@ -2776,6 +3117,14 @@ export declare class API {
2776
3117
  product_id?: string | null | undefined;
2777
3118
  product_code?: string | null | undefined;
2778
3119
  product_name?: string | null | undefined;
3120
+ analytic_distribution: {
3121
+ analytic_plan_code: string;
3122
+ analytic_accounts: {
3123
+ analytic_account_code: string;
3124
+ analytic_account_name: string;
3125
+ percentage: number;
3126
+ }[];
3127
+ }[] | null;
2779
3128
  }[];
2780
3129
  partner_id?: string | null | undefined;
2781
3130
  invoice_number?: string | null | undefined;
@@ -2815,6 +3164,7 @@ export declare class API {
2815
3164
  }[]>;
2816
3165
  getInvoiceById(invoiceId: string, params?: {
2817
3166
  include_pdf?: "true" | "false" | null | undefined;
3167
+ include_analytic_accounts?: "true" | "false" | null | undefined;
2818
3168
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2819
3169
  id: string;
2820
3170
  source_ref: {
@@ -2844,6 +3194,14 @@ export declare class API {
2844
3194
  product_id?: string | null | undefined;
2845
3195
  product_code?: string | null | undefined;
2846
3196
  product_name?: string | null | undefined;
3197
+ analytic_distribution: {
3198
+ analytic_plan_code: string;
3199
+ analytic_accounts: {
3200
+ analytic_account_code: string;
3201
+ analytic_account_name: string;
3202
+ percentage: number;
3203
+ }[];
3204
+ }[] | null;
2847
3205
  }[];
2848
3206
  partner_id?: string | null | undefined;
2849
3207
  invoice_number?: string | null | undefined;
@@ -2965,6 +3323,14 @@ export declare class API {
2965
3323
  product_id?: string | null | undefined;
2966
3324
  product_code?: string | null | undefined;
2967
3325
  product_name?: string | null | undefined;
3326
+ analytic_distribution: {
3327
+ analytic_plan_code: string;
3328
+ analytic_accounts: {
3329
+ analytic_account_code: string;
3330
+ analytic_account_name: string;
3331
+ percentage: number;
3332
+ }[];
3333
+ }[] | null;
2968
3334
  }[];
2969
3335
  partner_id?: string | null | undefined;
2970
3336
  invoice_number?: string | null | undefined;
@@ -4543,14 +4909,18 @@ export declare class API {
4543
4909
  reference: string;
4544
4910
  reference_type: string;
4545
4911
  holder_name?: string | null | undefined;
4912
+ active: boolean | null;
4546
4913
  }[]>;
4547
- getAccountTransactions(accountId: string, params?: {
4914
+ getAccountTransactions(params: {
4548
4915
  date_from?: string | null | undefined;
4549
4916
  date_to?: string | null | undefined;
4917
+ updated_after?: string | null | undefined;
4918
+ account_id: string;
4550
4919
  date_type?: "value_date" | "execution_date" | null | undefined;
4551
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4920
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4552
4921
  id: string;
4553
4922
  amount: number;
4923
+ tax_amount?: number | null | undefined;
4554
4924
  currency: string;
4555
4925
  description?: string | null | undefined;
4556
4926
  additional_information?: string | null | undefined;
@@ -4560,6 +4930,17 @@ export declare class API {
4560
4930
  creation_date: string;
4561
4931
  value_date: string;
4562
4932
  execution_date: string;
4933
+ internal_transaction: boolean | null;
4934
+ 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;
4935
+ last_update_on?: string | null | undefined;
4936
+ status?: "completed" | "pending" | "declined" | null | undefined;
4937
+ attachments_info?: {
4938
+ status: "unknown" | "yes" | "yes_to_request" | "no";
4939
+ attachments: {
4940
+ filename?: string | null | undefined;
4941
+ url?: string | null | undefined;
4942
+ }[] | null;
4943
+ } | undefined;
4563
4944
  }[]>;
4564
4945
  getAccountCounterparts(params?: {
4565
4946
  date_from?: string | null | undefined;
@@ -4570,6 +4951,17 @@ export declare class API {
4570
4951
  reference?: string | null | undefined;
4571
4952
  details?: string | null | undefined;
4572
4953
  }[]>;
4954
+ getAttachments(params: {
4955
+ transaction_id: string;
4956
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4957
+ items: {
4958
+ id: string;
4959
+ base64_string: string;
4960
+ }[];
4961
+ total: number;
4962
+ page: number;
4963
+ size: number;
4964
+ }>;
4573
4965
  }>;
4574
4966
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
4575
4967
  data: {
@@ -4609,6 +5001,7 @@ export declare class API {
4609
5001
  source_id?: string | null | undefined;
4610
5002
  target_id?: string | null | undefined;
4611
5003
  }[];
5004
+ hidden_source_ids: string[];
4612
5005
  sub_mapping_name: string;
4613
5006
  sub_mapping_description?: string | null | undefined;
4614
5007
  }[] | null | undefined;
@@ -4777,7 +5170,8 @@ export declare class API {
4777
5170
  value: string;
4778
5171
  }[] | null | undefined;
4779
5172
  country?: string | null | undefined;
4780
- } | undefined) => Promise<{
5173
+ redirect: boolean | null;
5174
+ } | null | undefined) => Promise<{
4781
5175
  url: string;
4782
5176
  }>;
4783
5177
  updateConnection: (connectionId: string, body?: {
@@ -4796,6 +5190,15 @@ export declare class API {
4796
5190
  };
4797
5191
  content?: undefined;
4798
5192
  }>;
5193
+ getTransactionByClientRequestId: (connectionId: string, params: {
5194
+ client_request_id: string;
5195
+ }) => Promise<{
5196
+ created_on: string;
5197
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
5198
+ route: string;
5199
+ status_code: number;
5200
+ created_entity_id?: string | null | undefined;
5201
+ }>;
4799
5202
  enableFlow: (syncId: string, flowId: string, body: {
4800
5203
  integrationids: string[];
4801
5204
  triggerid: string | null;
@@ -5401,6 +5804,30 @@ export declare class API {
5401
5804
  country?: string | null | undefined;
5402
5805
  }[] | null | undefined;
5403
5806
  }[]>;
5807
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
5808
+ id: string;
5809
+ source_ref: {
5810
+ id?: string | null | undefined;
5811
+ model?: string | null | undefined;
5812
+ };
5813
+ first_name?: string | null | undefined;
5814
+ last_name?: string | null | undefined;
5815
+ company_name?: string | null | undefined;
5816
+ phone?: string | null | undefined;
5817
+ email?: string | null | undefined;
5818
+ account_number?: string | null | undefined;
5819
+ created_on?: string | null | undefined;
5820
+ addresses?: {
5821
+ address_type?: string | null | undefined;
5822
+ name?: string | null | undefined;
5823
+ street?: string | null | undefined;
5824
+ number?: string | null | undefined;
5825
+ box?: string | null | undefined;
5826
+ city?: string | null | undefined;
5827
+ postal_code?: string | null | undefined;
5828
+ country?: string | null | undefined;
5829
+ }[] | null | undefined;
5830
+ }>;
5404
5831
  getInvoices(params?: {
5405
5832
  date_from: string;
5406
5833
  date_to: string;
@@ -5503,14 +5930,28 @@ export declare class API {
5503
5930
  untaxed_amount: number;
5504
5931
  total: number;
5505
5932
  }[]>;
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: {
5933
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
5934
+ items: {
5935
+ id: string;
5936
+ source_ref: {
5937
+ id?: string | null | undefined;
5938
+ model?: string | null | undefined;
5939
+ };
5940
+ label?: string | null | undefined;
5941
+ rate?: number | null | undefined;
5942
+ }[];
5943
+ total: number;
5944
+ page: number;
5945
+ size: number;
5946
+ }>;
5947
+ }>;
5948
+ payment: import("../types/api").ApiFor<{
5949
+ getPayments(params: {
5950
+ date_from?: string | null | undefined;
5951
+ date_to?: string | null | undefined;
5952
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
5953
+ id: string;
5954
+ source_ref: {
5514
5955
  id?: string | null | undefined;
5515
5956
  model?: string | null | undefined;
5516
5957
  };
@@ -6054,6 +6495,12 @@ export declare class API {
6054
6495
  reference?: string | null | undefined;
6055
6496
  payment_communication?: string | null | undefined;
6056
6497
  customer_memo?: string | null | undefined;
6498
+ payment_term_id?: string | null | undefined;
6499
+ withholding_tax?: {
6500
+ tax_rate: number;
6501
+ tax_code: string;
6502
+ tax_amount: number;
6503
+ } | null | undefined;
6057
6504
  invoice_date: string;
6058
6505
  due_date: string;
6059
6506
  partner_id?: string | null | undefined;
@@ -6096,10 +6543,14 @@ export declare class API {
6096
6543
  description: string;
6097
6544
  analytic_account?: string | null | undefined;
6098
6545
  }[];
6546
+ start_date?: string | null | undefined;
6547
+ end_date?: string | null | undefined;
6548
+ payment_method_id?: string | null | undefined;
6099
6549
  }, params?: {
6100
6550
  folder_id?: string | null | undefined;
6101
6551
  force_financial_period?: string | null | undefined;
6102
6552
  regroup_lines?: "true" | "false" | null | undefined;
6553
+ ignore_accounting_id?: boolean | undefined;
6103
6554
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
6104
6555
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6105
6556
  invoice_number?: string | null | undefined;
@@ -6110,10 +6561,16 @@ export declare class API {
6110
6561
  reference?: string | null | undefined;
6111
6562
  payment_communication?: string | null | undefined;
6112
6563
  customer_memo?: string | null | undefined;
6564
+ payment_term_id?: string | null | undefined;
6565
+ withholding_tax?: {
6566
+ tax_rate: number;
6567
+ tax_code: string;
6568
+ tax_amount: number;
6569
+ } | null | undefined;
6113
6570
  id?: string | null | undefined;
6114
6571
  invoice_date: string;
6115
6572
  due_date: string;
6116
- partner_id: string;
6573
+ partner_id: string | null;
6117
6574
  journal_id?: string | null | undefined;
6118
6575
  payments?: {
6119
6576
  id: string;
@@ -6171,8 +6628,22 @@ export declare class API {
6171
6628
  due_dates: {
6172
6629
  due_date: string;
6173
6630
  payment_method?: string | null | undefined;
6631
+ payment_method_id?: string | null | undefined;
6174
6632
  amount: number;
6175
6633
  }[] | null;
6634
+ attachments_info?: {
6635
+ status: "unknown" | "yes" | "yes_to_request" | "no";
6636
+ attachments: {
6637
+ filename?: string | null | undefined;
6638
+ url?: string | null | undefined;
6639
+ }[] | null;
6640
+ } | undefined;
6641
+ accounting_info?: {
6642
+ main_currency?: string | undefined;
6643
+ main_currency_total: number;
6644
+ account_number?: string | null | undefined;
6645
+ } | null | undefined;
6646
+ payment_method_id?: string | null | undefined;
6176
6647
  lines: {
6177
6648
  line_number: number | null;
6178
6649
  unit_price: number;
@@ -6198,6 +6669,12 @@ export declare class API {
6198
6669
  reference?: string | null | undefined;
6199
6670
  payment_communication?: string | null | undefined;
6200
6671
  customer_memo?: string | null | undefined;
6672
+ payment_term_id?: string | null | undefined;
6673
+ withholding_tax?: {
6674
+ tax_rate: number;
6675
+ tax_code: string;
6676
+ tax_amount: number;
6677
+ } | null | undefined;
6201
6678
  invoice_date: string;
6202
6679
  due_date: string;
6203
6680
  partner_id?: string | null | undefined;
@@ -6246,10 +6723,14 @@ export declare class API {
6246
6723
  }[];
6247
6724
  }[] | null;
6248
6725
  }[];
6726
+ start_date?: string | null | undefined;
6727
+ end_date?: string | null | undefined;
6728
+ payment_method_id?: string | null | undefined;
6249
6729
  }, params?: {
6250
6730
  folder_id?: string | null | undefined;
6251
6731
  force_financial_period?: string | null | undefined;
6252
6732
  regroup_lines?: "true" | "false" | null | undefined;
6733
+ ignore_accounting_id?: boolean | undefined;
6253
6734
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
6254
6735
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6255
6736
  invoice_number?: string | null | undefined;
@@ -6260,10 +6741,16 @@ export declare class API {
6260
6741
  reference?: string | null | undefined;
6261
6742
  payment_communication?: string | null | undefined;
6262
6743
  customer_memo?: string | null | undefined;
6744
+ payment_term_id?: string | null | undefined;
6745
+ withholding_tax?: {
6746
+ tax_rate: number;
6747
+ tax_code: string;
6748
+ tax_amount: number;
6749
+ } | null | undefined;
6263
6750
  id?: string | null | undefined;
6264
6751
  invoice_date: string;
6265
6752
  due_date: string;
6266
- partner_id: string;
6753
+ partner_id: string | null;
6267
6754
  journal_id?: string | null | undefined;
6268
6755
  payments?: {
6269
6756
  id: string;
@@ -6321,8 +6808,22 @@ export declare class API {
6321
6808
  due_dates: {
6322
6809
  due_date: string;
6323
6810
  payment_method?: string | null | undefined;
6811
+ payment_method_id?: string | null | undefined;
6324
6812
  amount: number;
6325
6813
  }[] | null;
6814
+ attachments_info?: {
6815
+ status: "unknown" | "yes" | "yes_to_request" | "no";
6816
+ attachments: {
6817
+ filename?: string | null | undefined;
6818
+ url?: string | null | undefined;
6819
+ }[] | null;
6820
+ } | undefined;
6821
+ accounting_info?: {
6822
+ main_currency?: string | undefined;
6823
+ main_currency_total: number;
6824
+ account_number?: string | null | undefined;
6825
+ } | null | undefined;
6826
+ payment_method_id?: string | null | undefined;
6326
6827
  lines: {
6327
6828
  line_number: number | null;
6328
6829
  unit_price: number;
@@ -6364,10 +6865,16 @@ export declare class API {
6364
6865
  reference?: string | null | undefined;
6365
6866
  payment_communication?: string | null | undefined;
6366
6867
  customer_memo?: string | null | undefined;
6868
+ payment_term_id?: string | null | undefined;
6869
+ withholding_tax?: {
6870
+ tax_rate: number;
6871
+ tax_code: string;
6872
+ tax_amount: number;
6873
+ } | null | undefined;
6367
6874
  id?: string | null | undefined;
6368
6875
  invoice_date: string;
6369
6876
  due_date: string;
6370
- partner_id: string;
6877
+ partner_id: string | null;
6371
6878
  journal_id?: string | null | undefined;
6372
6879
  payments?: {
6373
6880
  id: string;
@@ -6425,8 +6932,22 @@ export declare class API {
6425
6932
  due_dates: {
6426
6933
  due_date: string;
6427
6934
  payment_method?: string | null | undefined;
6935
+ payment_method_id?: string | null | undefined;
6428
6936
  amount: number;
6429
6937
  }[] | null;
6938
+ attachments_info?: {
6939
+ status: "unknown" | "yes" | "yes_to_request" | "no";
6940
+ attachments: {
6941
+ filename?: string | null | undefined;
6942
+ url?: string | null | undefined;
6943
+ }[] | null;
6944
+ } | undefined;
6945
+ accounting_info?: {
6946
+ main_currency?: string | undefined;
6947
+ main_currency_total: number;
6948
+ account_number?: string | null | undefined;
6949
+ } | null | undefined;
6950
+ payment_method_id?: string | null | undefined;
6430
6951
  lines: {
6431
6952
  line_number: number | null;
6432
6953
  unit_price: number;
@@ -6457,10 +6978,16 @@ export declare class API {
6457
6978
  reference?: string | null | undefined;
6458
6979
  payment_communication?: string | null | undefined;
6459
6980
  customer_memo?: string | null | undefined;
6981
+ payment_term_id?: string | null | undefined;
6982
+ withholding_tax?: {
6983
+ tax_rate: number;
6984
+ tax_code: string;
6985
+ tax_amount: number;
6986
+ } | null | undefined;
6460
6987
  id?: string | null | undefined;
6461
6988
  invoice_date: string;
6462
6989
  due_date: string;
6463
- partner_id: string;
6990
+ partner_id: string | null;
6464
6991
  journal_id?: string | null | undefined;
6465
6992
  payments?: {
6466
6993
  id: string;
@@ -6518,8 +7045,22 @@ export declare class API {
6518
7045
  due_dates: {
6519
7046
  due_date: string;
6520
7047
  payment_method?: string | null | undefined;
7048
+ payment_method_id?: string | null | undefined;
6521
7049
  amount: number;
6522
7050
  }[] | null;
7051
+ attachments_info?: {
7052
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7053
+ attachments: {
7054
+ filename?: string | null | undefined;
7055
+ url?: string | null | undefined;
7056
+ }[] | null;
7057
+ } | undefined;
7058
+ accounting_info?: {
7059
+ main_currency?: string | undefined;
7060
+ main_currency_total: number;
7061
+ account_number?: string | null | undefined;
7062
+ } | null | undefined;
7063
+ payment_method_id?: string | null | undefined;
6523
7064
  lines: {
6524
7065
  line_number: number | null;
6525
7066
  unit_price: number;
@@ -6550,10 +7091,16 @@ export declare class API {
6550
7091
  reference?: string | null | undefined;
6551
7092
  payment_communication?: string | null | undefined;
6552
7093
  customer_memo?: string | null | undefined;
7094
+ payment_term_id?: string | null | undefined;
7095
+ withholding_tax?: {
7096
+ tax_rate: number;
7097
+ tax_code: string;
7098
+ tax_amount: number;
7099
+ } | null | undefined;
6553
7100
  id?: string | null | undefined;
6554
7101
  invoice_date: string;
6555
7102
  due_date: string;
6556
- partner_id: string;
7103
+ partner_id: string | null;
6557
7104
  journal_id?: string | null | undefined;
6558
7105
  payments?: {
6559
7106
  id: string;
@@ -6611,8 +7158,22 @@ export declare class API {
6611
7158
  due_dates: {
6612
7159
  due_date: string;
6613
7160
  payment_method?: string | null | undefined;
7161
+ payment_method_id?: string | null | undefined;
6614
7162
  amount: number;
6615
7163
  }[] | null;
7164
+ attachments_info?: {
7165
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7166
+ attachments: {
7167
+ filename?: string | null | undefined;
7168
+ url?: string | null | undefined;
7169
+ }[] | null;
7170
+ } | undefined;
7171
+ accounting_info?: {
7172
+ main_currency?: string | undefined;
7173
+ main_currency_total: number;
7174
+ account_number?: string | null | undefined;
7175
+ } | null | undefined;
7176
+ payment_method_id?: string | null | undefined;
6616
7177
  lines: {
6617
7178
  line_number: number | null;
6618
7179
  unit_price: number;
@@ -6654,10 +7215,16 @@ export declare class API {
6654
7215
  reference?: string | null | undefined;
6655
7216
  payment_communication?: string | null | undefined;
6656
7217
  customer_memo?: string | null | undefined;
7218
+ payment_term_id?: string | null | undefined;
7219
+ withholding_tax?: {
7220
+ tax_rate: number;
7221
+ tax_code: string;
7222
+ tax_amount: number;
7223
+ } | null | undefined;
6657
7224
  id?: string | null | undefined;
6658
7225
  invoice_date: string;
6659
7226
  due_date: string;
6660
- partner_id: string;
7227
+ partner_id: string | null;
6661
7228
  journal_id?: string | null | undefined;
6662
7229
  payments?: {
6663
7230
  id: string;
@@ -6715,8 +7282,22 @@ export declare class API {
6715
7282
  due_dates: {
6716
7283
  due_date: string;
6717
7284
  payment_method?: string | null | undefined;
7285
+ payment_method_id?: string | null | undefined;
6718
7286
  amount: number;
6719
7287
  }[] | null;
7288
+ attachments_info?: {
7289
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7290
+ attachments: {
7291
+ filename?: string | null | undefined;
7292
+ url?: string | null | undefined;
7293
+ }[] | null;
7294
+ } | undefined;
7295
+ accounting_info?: {
7296
+ main_currency?: string | undefined;
7297
+ main_currency_total: number;
7298
+ account_number?: string | null | undefined;
7299
+ } | null | undefined;
7300
+ payment_method_id?: string | null | undefined;
6720
7301
  lines: {
6721
7302
  line_number: number | null;
6722
7303
  unit_price: number;
@@ -6864,7 +7445,7 @@ export declare class API {
6864
7445
  folder_id?: string | null | undefined;
6865
7446
  updated_after?: string | null | undefined;
6866
7447
  unposted_allowed: "true" | "false";
6867
- journal_id: string;
7448
+ journal_id?: string | null | undefined;
6868
7449
  partner_id?: string | null | undefined;
6869
7450
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
6870
7451
  reference?: string | null | undefined;
@@ -6878,9 +7459,17 @@ export declare class API {
6878
7459
  due_dates: {
6879
7460
  due_date: string;
6880
7461
  payment_method?: string | null | undefined;
7462
+ payment_method_id?: string | null | undefined;
6881
7463
  debit: number | null;
6882
7464
  credit: number | null;
6883
7465
  }[] | null;
7466
+ attachments_info?: {
7467
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7468
+ attachments: {
7469
+ filename?: string | null | undefined;
7470
+ url?: string | null | undefined;
7471
+ }[] | null;
7472
+ } | undefined;
6884
7473
  items: {
6885
7474
  account_number: string;
6886
7475
  partner_id?: string | null | undefined;
@@ -6903,7 +7492,7 @@ export declare class API {
6903
7492
  folder_id?: string | null | undefined;
6904
7493
  updated_after?: string | null | undefined;
6905
7494
  unposted_allowed: "true" | "false";
6906
- journal_id: string;
7495
+ journal_id?: string | null | undefined;
6907
7496
  partner_id?: string | null | undefined;
6908
7497
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
6909
7498
  reference?: string | null | undefined;
@@ -6917,9 +7506,17 @@ export declare class API {
6917
7506
  due_dates: {
6918
7507
  due_date: string;
6919
7508
  payment_method?: string | null | undefined;
7509
+ payment_method_id?: string | null | undefined;
6920
7510
  debit: number | null;
6921
7511
  credit: number | null;
6922
7512
  }[] | null;
7513
+ attachments_info?: {
7514
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7515
+ attachments: {
7516
+ filename?: string | null | undefined;
7517
+ url?: string | null | undefined;
7518
+ }[] | null;
7519
+ } | undefined;
6923
7520
  items: {
6924
7521
  account_number: string;
6925
7522
  partner_id?: string | null | undefined;
@@ -7009,6 +7606,7 @@ export declare class API {
7009
7606
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7010
7607
  id: string;
7011
7608
  code?: string | null | undefined;
7609
+ active: boolean | null;
7012
7610
  label: string;
7013
7611
  scope: "unknown" | "nat" | "eu" | "int" | null;
7014
7612
  rate: number;
@@ -7016,6 +7614,7 @@ export declare class API {
7016
7614
  deductible_account?: string | null | undefined;
7017
7615
  payable_account?: string | null | undefined;
7018
7616
  reversed: boolean | null;
7617
+ withholding_tax: boolean | null;
7019
7618
  country?: string | null | undefined;
7020
7619
  }[]>;
7021
7620
  getMiscOperations(params?: {
@@ -7118,12 +7717,14 @@ export declare class API {
7118
7717
  getChartOfAccounts(params?: {
7119
7718
  folder_id?: string | null | undefined;
7120
7719
  classes?: string | null | undefined;
7121
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
7720
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
7122
7721
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7123
7722
  number: string;
7124
7723
  name: string;
7125
7724
  active: boolean | null;
7126
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
7725
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
7726
+ scheme_ids?: string[] | null | undefined;
7727
+ accounting_category?: string | null | undefined;
7127
7728
  }[]>;
7128
7729
  getBalanceOfAccounts(filter: {
7129
7730
  accounts: string[];
@@ -7199,6 +7800,7 @@ export declare class API {
7199
7800
  account: string;
7200
7801
  amount: number;
7201
7802
  description?: string | null | undefined;
7803
+ automated_matching_number?: string | null | undefined;
7202
7804
  }[];
7203
7805
  pdf?: string | null | undefined;
7204
7806
  }, params?: {
@@ -7217,6 +7819,7 @@ export declare class API {
7217
7819
  account: string;
7218
7820
  amount: number;
7219
7821
  description?: string | null | undefined;
7822
+ automated_matching_number?: string | null | undefined;
7220
7823
  counterpart_account: string;
7221
7824
  }[];
7222
7825
  }>;
@@ -7244,6 +7847,13 @@ export declare class API {
7244
7847
  }[];
7245
7848
  }[] | null;
7246
7849
  tax_code?: string | null | undefined;
7850
+ tax_info?: {
7851
+ tax_code: string;
7852
+ tax_amount: number;
7853
+ vat_account?: string | null | undefined;
7854
+ reversed_vat_account?: string | null | undefined;
7855
+ description?: string | null | undefined;
7856
+ } | null | undefined;
7247
7857
  account_info?: {
7248
7858
  account_number: string;
7249
7859
  account_name: string;
@@ -7256,6 +7866,7 @@ export declare class API {
7256
7866
  }, params?: {
7257
7867
  folder_id?: string | null | undefined;
7258
7868
  force_currency_exchange?: "true" | "false" | null | undefined;
7869
+ ignore_accounting_id?: boolean | undefined;
7259
7870
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
7260
7871
  reference?: string | null | undefined;
7261
7872
  due_date?: string | null | undefined;
@@ -7268,9 +7879,17 @@ export declare class API {
7268
7879
  due_dates: {
7269
7880
  due_date: string;
7270
7881
  payment_method?: string | null | undefined;
7882
+ payment_method_id?: string | null | undefined;
7271
7883
  debit: number | null;
7272
7884
  credit: number | null;
7273
7885
  }[] | null;
7886
+ attachments_info?: {
7887
+ status: "unknown" | "yes" | "yes_to_request" | "no";
7888
+ attachments: {
7889
+ filename?: string | null | undefined;
7890
+ url?: string | null | undefined;
7891
+ }[] | null;
7892
+ } | undefined;
7274
7893
  items: {
7275
7894
  account_number: string;
7276
7895
  partner_id?: string | null | undefined;
@@ -7386,14 +8005,35 @@ export declare class API {
7386
8005
  createLedgerAccount(account: {
7387
8006
  name: string;
7388
8007
  number: string;
7389
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
8008
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
7390
8009
  }, params?: {
7391
8010
  folder_id?: string | null | undefined;
7392
8011
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
7393
8012
  number: string;
7394
8013
  name: string;
7395
8014
  active: boolean | null;
7396
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
8015
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
8016
+ scheme_ids?: string[] | null | undefined;
8017
+ accounting_category?: string | null | undefined;
8018
+ }>;
8019
+ getBankAccounts(params?: {
8020
+ folder_id?: string | null | undefined;
8021
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8022
+ items: {
8023
+ id: string;
8024
+ code?: string | null | undefined;
8025
+ currency?: string | null | undefined;
8026
+ account_name?: string | null | undefined;
8027
+ account_number?: string | null | undefined;
8028
+ iban?: string | null | undefined;
8029
+ bank_name?: string | null | undefined;
8030
+ journal_id?: string | null | undefined;
8031
+ ledger_account?: string | null | undefined;
8032
+ unallocated_account?: string | null | undefined;
8033
+ }[];
8034
+ total: number;
8035
+ page: number;
8036
+ size: number;
7397
8037
  }>;
7398
8038
  createBankAccount(bankAccount: {
7399
8039
  code: string;
@@ -7416,6 +8056,45 @@ export declare class API {
7416
8056
  ledger_account?: string | null | undefined;
7417
8057
  unallocated_account?: string | null | undefined;
7418
8058
  }>;
8059
+ createBankTransactions(bankStatement: {
8060
+ bank_statement_date: string;
8061
+ bank_account_id: string;
8062
+ external_bank_statement_id: string;
8063
+ opening_balance?: number | null | undefined;
8064
+ pdf?: string | null | undefined;
8065
+ items: {
8066
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
8067
+ account?: string | null | undefined;
8068
+ description?: string | null | undefined;
8069
+ external_transaction_id?: string | null | undefined;
8070
+ date: string;
8071
+ amount: number;
8072
+ fee_amount: number | null;
8073
+ tax_amount: number | null;
8074
+ currency: string;
8075
+ currency_exchange_rate: number | null;
8076
+ }[];
8077
+ }, params?: {
8078
+ folder_id?: string | null | undefined;
8079
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
8080
+ bank_statement_date: string;
8081
+ bank_account_id: string;
8082
+ id?: string | null | undefined;
8083
+ external_bank_statement_id?: string | null | undefined;
8084
+ items: {
8085
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
8086
+ account?: string | null | undefined;
8087
+ description?: string | null | undefined;
8088
+ external_transaction_id?: string | null | undefined;
8089
+ date: string;
8090
+ amount: number;
8091
+ fee_amount: number | null;
8092
+ tax_amount: number | null;
8093
+ currency: string;
8094
+ currency_exchange_rate: number | null;
8095
+ id?: string | null | undefined;
8096
+ }[];
8097
+ }>;
7419
8098
  getJournalEntry(journalEntryId: string, params?: {
7420
8099
  folder_id?: string | null | undefined;
7421
8100
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -7430,9 +8109,17 @@ export declare class API {
7430
8109
  due_dates: {
7431
8110
  due_date: string;
7432
8111
  payment_method?: string | null | undefined;
8112
+ payment_method_id?: string | null | undefined;
7433
8113
  debit: number | null;
7434
8114
  credit: number | null;
7435
8115
  }[] | null;
8116
+ attachments_info?: {
8117
+ status: "unknown" | "yes" | "yes_to_request" | "no";
8118
+ attachments: {
8119
+ filename?: string | null | undefined;
8120
+ url?: string | null | undefined;
8121
+ }[] | null;
8122
+ } | undefined;
7436
8123
  items: {
7437
8124
  account_number: string;
7438
8125
  partner_id?: string | null | undefined;
@@ -7467,6 +8154,29 @@ export declare class API {
7467
8154
  page: number;
7468
8155
  size: number;
7469
8156
  }>;
8157
+ getPaymentTerms(params?: {
8158
+ folder_id?: string | null | undefined;
8159
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8160
+ items: {
8161
+ id: string;
8162
+ name?: string | null | undefined;
8163
+ }[];
8164
+ total: number;
8165
+ page: number;
8166
+ size: number;
8167
+ }>;
8168
+ getSchemes(params?: {
8169
+ folder_id?: string | null | undefined;
8170
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8171
+ items: {
8172
+ id: string;
8173
+ code: string;
8174
+ name: string;
8175
+ }[];
8176
+ total: number;
8177
+ page: number;
8178
+ size: number;
8179
+ }>;
7470
8180
  createInvoicePayment(body: {
7471
8181
  date: string;
7472
8182
  payment_method_id: string;
@@ -7486,6 +8196,29 @@ export declare class API {
7486
8196
  };
7487
8197
  content?: undefined;
7488
8198
  }>;
8199
+ exportFec(params: {
8200
+ folder_id?: string | null | undefined;
8201
+ date_from: string;
8202
+ date_to: string;
8203
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8204
+ JournalCode: string;
8205
+ JournalLib: string;
8206
+ EcritureNum: string;
8207
+ EcritureDate: string;
8208
+ CompteNum: string;
8209
+ CompteLib: string;
8210
+ CompAuxNum: string;
8211
+ CompAuxLib: string;
8212
+ PieceRef: string;
8213
+ PieceDate: string;
8214
+ Debit: number;
8215
+ Credit: number;
8216
+ EcritureLet: string;
8217
+ DateLet: string | null;
8218
+ ValidDate: string | null;
8219
+ Montantdevise: number;
8220
+ Idevise: string;
8221
+ }[]>;
7489
8222
  }>;
7490
8223
  invoicing: import("../types/api").ApiFor<{
7491
8224
  getInvoices(params?: {
@@ -7495,6 +8228,7 @@ export declare class API {
7495
8228
  updated_after?: string | null | undefined;
7496
8229
  include_invoice_lines?: "true" | "false" | null | undefined;
7497
8230
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
8231
+ include_analytic_accounts?: "true" | "false" | null | undefined;
7498
8232
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7499
8233
  id: string;
7500
8234
  source_ref: {
@@ -7524,6 +8258,14 @@ export declare class API {
7524
8258
  product_id?: string | null | undefined;
7525
8259
  product_code?: string | null | undefined;
7526
8260
  product_name?: string | null | undefined;
8261
+ analytic_distribution: {
8262
+ analytic_plan_code: string;
8263
+ analytic_accounts: {
8264
+ analytic_account_code: string;
8265
+ analytic_account_name: string;
8266
+ percentage: number;
8267
+ }[];
8268
+ }[] | null;
7527
8269
  }[];
7528
8270
  partner_id?: string | null | undefined;
7529
8271
  invoice_number?: string | null | undefined;
@@ -7563,6 +8305,7 @@ export declare class API {
7563
8305
  }[]>;
7564
8306
  getInvoiceById(invoiceId: string, params?: {
7565
8307
  include_pdf?: "true" | "false" | null | undefined;
8308
+ include_analytic_accounts?: "true" | "false" | null | undefined;
7566
8309
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7567
8310
  id: string;
7568
8311
  source_ref: {
@@ -7592,6 +8335,14 @@ export declare class API {
7592
8335
  product_id?: string | null | undefined;
7593
8336
  product_code?: string | null | undefined;
7594
8337
  product_name?: string | null | undefined;
8338
+ analytic_distribution: {
8339
+ analytic_plan_code: string;
8340
+ analytic_accounts: {
8341
+ analytic_account_code: string;
8342
+ analytic_account_name: string;
8343
+ percentage: number;
8344
+ }[];
8345
+ }[] | null;
7595
8346
  }[];
7596
8347
  partner_id?: string | null | undefined;
7597
8348
  invoice_number?: string | null | undefined;
@@ -7713,6 +8464,14 @@ export declare class API {
7713
8464
  product_id?: string | null | undefined;
7714
8465
  product_code?: string | null | undefined;
7715
8466
  product_name?: string | null | undefined;
8467
+ analytic_distribution: {
8468
+ analytic_plan_code: string;
8469
+ analytic_accounts: {
8470
+ analytic_account_code: string;
8471
+ analytic_account_name: string;
8472
+ percentage: number;
8473
+ }[];
8474
+ }[] | null;
7716
8475
  }[];
7717
8476
  partner_id?: string | null | undefined;
7718
8477
  invoice_number?: string | null | undefined;
@@ -9291,14 +10050,18 @@ export declare class API {
9291
10050
  reference: string;
9292
10051
  reference_type: string;
9293
10052
  holder_name?: string | null | undefined;
10053
+ active: boolean | null;
9294
10054
  }[]>;
9295
- getAccountTransactions(accountId: string, params?: {
10055
+ getAccountTransactions(params: {
9296
10056
  date_from?: string | null | undefined;
9297
10057
  date_to?: string | null | undefined;
10058
+ updated_after?: string | null | undefined;
10059
+ account_id: string;
9298
10060
  date_type?: "value_date" | "execution_date" | null | undefined;
9299
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
10061
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
9300
10062
  id: string;
9301
10063
  amount: number;
10064
+ tax_amount?: number | null | undefined;
9302
10065
  currency: string;
9303
10066
  description?: string | null | undefined;
9304
10067
  additional_information?: string | null | undefined;
@@ -9308,6 +10071,17 @@ export declare class API {
9308
10071
  creation_date: string;
9309
10072
  value_date: string;
9310
10073
  execution_date: string;
10074
+ internal_transaction: boolean | null;
10075
+ 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;
10076
+ last_update_on?: string | null | undefined;
10077
+ status?: "completed" | "pending" | "declined" | null | undefined;
10078
+ attachments_info?: {
10079
+ status: "unknown" | "yes" | "yes_to_request" | "no";
10080
+ attachments: {
10081
+ filename?: string | null | undefined;
10082
+ url?: string | null | undefined;
10083
+ }[] | null;
10084
+ } | undefined;
9311
10085
  }[]>;
9312
10086
  getAccountCounterparts(params?: {
9313
10087
  date_from?: string | null | undefined;
@@ -9318,6 +10092,17 @@ export declare class API {
9318
10092
  reference?: string | null | undefined;
9319
10093
  details?: string | null | undefined;
9320
10094
  }[]>;
10095
+ getAttachments(params: {
10096
+ transaction_id: string;
10097
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
10098
+ items: {
10099
+ id: string;
10100
+ base64_string: string;
10101
+ }[];
10102
+ total: number;
10103
+ page: number;
10104
+ size: number;
10105
+ }>;
9321
10106
  }>;
9322
10107
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
9323
10108
  data: {
@@ -9357,6 +10142,7 @@ export declare class API {
9357
10142
  source_id?: string | null | undefined;
9358
10143
  target_id?: string | null | undefined;
9359
10144
  }[];
10145
+ hidden_source_ids: string[];
9360
10146
  sub_mapping_name: string;
9361
10147
  sub_mapping_description?: string | null | undefined;
9362
10148
  }[] | null | undefined;
@@ -9520,7 +10306,8 @@ export declare class API {
9520
10306
  value: string;
9521
10307
  }[] | null | undefined;
9522
10308
  country?: string | null | undefined;
9523
- } | undefined) => Promise<{
10309
+ redirect: boolean | null;
10310
+ } | null | undefined) => Promise<{
9524
10311
  url: string;
9525
10312
  }>;
9526
10313
  updateConnection: (connectionId: string, body?: {
@@ -9539,6 +10326,15 @@ export declare class API {
9539
10326
  };
9540
10327
  content?: undefined;
9541
10328
  }>;
10329
+ getTransactionByClientRequestId: (connectionId: string, params: {
10330
+ client_request_id: string;
10331
+ }) => Promise<{
10332
+ created_on: string;
10333
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
10334
+ route: string;
10335
+ status_code: number;
10336
+ created_entity_id?: string | null | undefined;
10337
+ }>;
9542
10338
  enableFlow: (syncId: string, flowId: string, body: {
9543
10339
  integrationids: string[];
9544
10340
  triggerid: string | null;
@@ -10144,6 +10940,30 @@ export declare class API {
10144
10940
  country?: string | null | undefined;
10145
10941
  }[] | null | undefined;
10146
10942
  }[]>;
10943
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
10944
+ id: string;
10945
+ source_ref: {
10946
+ id?: string | null | undefined;
10947
+ model?: string | null | undefined;
10948
+ };
10949
+ first_name?: string | null | undefined;
10950
+ last_name?: string | null | undefined;
10951
+ company_name?: string | null | undefined;
10952
+ phone?: string | null | undefined;
10953
+ email?: string | null | undefined;
10954
+ account_number?: string | null | undefined;
10955
+ created_on?: string | null | undefined;
10956
+ addresses?: {
10957
+ address_type?: string | null | undefined;
10958
+ name?: string | null | undefined;
10959
+ street?: string | null | undefined;
10960
+ number?: string | null | undefined;
10961
+ box?: string | null | undefined;
10962
+ city?: string | null | undefined;
10963
+ postal_code?: string | null | undefined;
10964
+ country?: string | null | undefined;
10965
+ }[] | null | undefined;
10966
+ }>;
10147
10967
  getInvoices(params?: {
10148
10968
  date_from: string;
10149
10969
  date_to: string;
@@ -10246,6 +11066,20 @@ export declare class API {
10246
11066
  untaxed_amount: number;
10247
11067
  total: number;
10248
11068
  }[]>;
11069
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
11070
+ items: {
11071
+ id: string;
11072
+ source_ref: {
11073
+ id?: string | null | undefined;
11074
+ model?: string | null | undefined;
11075
+ };
11076
+ label?: string | null | undefined;
11077
+ rate?: number | null | undefined;
11078
+ }[];
11079
+ total: number;
11080
+ page: number;
11081
+ size: number;
11082
+ }>;
10249
11083
  }>;
10250
11084
  payment: import("../types/api").ApiFor<{
10251
11085
  getPayments(params: {
@@ -10797,6 +11631,12 @@ export declare class API {
10797
11631
  reference?: string | null | undefined;
10798
11632
  payment_communication?: string | null | undefined;
10799
11633
  customer_memo?: string | null | undefined;
11634
+ payment_term_id?: string | null | undefined;
11635
+ withholding_tax?: {
11636
+ tax_rate: number;
11637
+ tax_code: string;
11638
+ tax_amount: number;
11639
+ } | null | undefined;
10800
11640
  invoice_date: string;
10801
11641
  due_date: string;
10802
11642
  partner_id?: string | null | undefined;
@@ -10839,10 +11679,14 @@ export declare class API {
10839
11679
  description: string;
10840
11680
  analytic_account?: string | null | undefined;
10841
11681
  }[];
11682
+ start_date?: string | null | undefined;
11683
+ end_date?: string | null | undefined;
11684
+ payment_method_id?: string | null | undefined;
10842
11685
  }, params?: {
10843
11686
  folder_id?: string | null | undefined;
10844
11687
  force_financial_period?: string | null | undefined;
10845
11688
  regroup_lines?: "true" | "false" | null | undefined;
11689
+ ignore_accounting_id?: boolean | undefined;
10846
11690
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
10847
11691
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10848
11692
  invoice_number?: string | null | undefined;
@@ -10853,10 +11697,16 @@ export declare class API {
10853
11697
  reference?: string | null | undefined;
10854
11698
  payment_communication?: string | null | undefined;
10855
11699
  customer_memo?: string | null | undefined;
11700
+ payment_term_id?: string | null | undefined;
11701
+ withholding_tax?: {
11702
+ tax_rate: number;
11703
+ tax_code: string;
11704
+ tax_amount: number;
11705
+ } | null | undefined;
10856
11706
  id?: string | null | undefined;
10857
11707
  invoice_date: string;
10858
11708
  due_date: string;
10859
- partner_id: string;
11709
+ partner_id: string | null;
10860
11710
  journal_id?: string | null | undefined;
10861
11711
  payments?: {
10862
11712
  id: string;
@@ -10914,8 +11764,22 @@ export declare class API {
10914
11764
  due_dates: {
10915
11765
  due_date: string;
10916
11766
  payment_method?: string | null | undefined;
11767
+ payment_method_id?: string | null | undefined;
10917
11768
  amount: number;
10918
11769
  }[] | null;
11770
+ attachments_info?: {
11771
+ status: "unknown" | "yes" | "yes_to_request" | "no";
11772
+ attachments: {
11773
+ filename?: string | null | undefined;
11774
+ url?: string | null | undefined;
11775
+ }[] | null;
11776
+ } | undefined;
11777
+ accounting_info?: {
11778
+ main_currency?: string | undefined;
11779
+ main_currency_total: number;
11780
+ account_number?: string | null | undefined;
11781
+ } | null | undefined;
11782
+ payment_method_id?: string | null | undefined;
10919
11783
  lines: {
10920
11784
  line_number: number | null;
10921
11785
  unit_price: number;
@@ -10941,6 +11805,12 @@ export declare class API {
10941
11805
  reference?: string | null | undefined;
10942
11806
  payment_communication?: string | null | undefined;
10943
11807
  customer_memo?: string | null | undefined;
11808
+ payment_term_id?: string | null | undefined;
11809
+ withholding_tax?: {
11810
+ tax_rate: number;
11811
+ tax_code: string;
11812
+ tax_amount: number;
11813
+ } | null | undefined;
10944
11814
  invoice_date: string;
10945
11815
  due_date: string;
10946
11816
  partner_id?: string | null | undefined;
@@ -10989,10 +11859,14 @@ export declare class API {
10989
11859
  }[];
10990
11860
  }[] | null;
10991
11861
  }[];
11862
+ start_date?: string | null | undefined;
11863
+ end_date?: string | null | undefined;
11864
+ payment_method_id?: string | null | undefined;
10992
11865
  }, params?: {
10993
11866
  folder_id?: string | null | undefined;
10994
11867
  force_financial_period?: string | null | undefined;
10995
11868
  regroup_lines?: "true" | "false" | null | undefined;
11869
+ ignore_accounting_id?: boolean | undefined;
10996
11870
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
10997
11871
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10998
11872
  invoice_number?: string | null | undefined;
@@ -11003,10 +11877,16 @@ export declare class API {
11003
11877
  reference?: string | null | undefined;
11004
11878
  payment_communication?: string | null | undefined;
11005
11879
  customer_memo?: string | null | undefined;
11880
+ payment_term_id?: string | null | undefined;
11881
+ withholding_tax?: {
11882
+ tax_rate: number;
11883
+ tax_code: string;
11884
+ tax_amount: number;
11885
+ } | null | undefined;
11006
11886
  id?: string | null | undefined;
11007
11887
  invoice_date: string;
11008
11888
  due_date: string;
11009
- partner_id: string;
11889
+ partner_id: string | null;
11010
11890
  journal_id?: string | null | undefined;
11011
11891
  payments?: {
11012
11892
  id: string;
@@ -11064,8 +11944,22 @@ export declare class API {
11064
11944
  due_dates: {
11065
11945
  due_date: string;
11066
11946
  payment_method?: string | null | undefined;
11947
+ payment_method_id?: string | null | undefined;
11067
11948
  amount: number;
11068
11949
  }[] | null;
11950
+ attachments_info?: {
11951
+ status: "unknown" | "yes" | "yes_to_request" | "no";
11952
+ attachments: {
11953
+ filename?: string | null | undefined;
11954
+ url?: string | null | undefined;
11955
+ }[] | null;
11956
+ } | undefined;
11957
+ accounting_info?: {
11958
+ main_currency?: string | undefined;
11959
+ main_currency_total: number;
11960
+ account_number?: string | null | undefined;
11961
+ } | null | undefined;
11962
+ payment_method_id?: string | null | undefined;
11069
11963
  lines: {
11070
11964
  line_number: number | null;
11071
11965
  unit_price: number;
@@ -11107,10 +12001,16 @@ export declare class API {
11107
12001
  reference?: string | null | undefined;
11108
12002
  payment_communication?: string | null | undefined;
11109
12003
  customer_memo?: string | null | undefined;
12004
+ payment_term_id?: string | null | undefined;
12005
+ withholding_tax?: {
12006
+ tax_rate: number;
12007
+ tax_code: string;
12008
+ tax_amount: number;
12009
+ } | null | undefined;
11110
12010
  id?: string | null | undefined;
11111
12011
  invoice_date: string;
11112
12012
  due_date: string;
11113
- partner_id: string;
12013
+ partner_id: string | null;
11114
12014
  journal_id?: string | null | undefined;
11115
12015
  payments?: {
11116
12016
  id: string;
@@ -11168,8 +12068,22 @@ export declare class API {
11168
12068
  due_dates: {
11169
12069
  due_date: string;
11170
12070
  payment_method?: string | null | undefined;
12071
+ payment_method_id?: string | null | undefined;
11171
12072
  amount: number;
11172
12073
  }[] | null;
12074
+ attachments_info?: {
12075
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12076
+ attachments: {
12077
+ filename?: string | null | undefined;
12078
+ url?: string | null | undefined;
12079
+ }[] | null;
12080
+ } | undefined;
12081
+ accounting_info?: {
12082
+ main_currency?: string | undefined;
12083
+ main_currency_total: number;
12084
+ account_number?: string | null | undefined;
12085
+ } | null | undefined;
12086
+ payment_method_id?: string | null | undefined;
11173
12087
  lines: {
11174
12088
  line_number: number | null;
11175
12089
  unit_price: number;
@@ -11200,10 +12114,16 @@ export declare class API {
11200
12114
  reference?: string | null | undefined;
11201
12115
  payment_communication?: string | null | undefined;
11202
12116
  customer_memo?: string | null | undefined;
12117
+ payment_term_id?: string | null | undefined;
12118
+ withholding_tax?: {
12119
+ tax_rate: number;
12120
+ tax_code: string;
12121
+ tax_amount: number;
12122
+ } | null | undefined;
11203
12123
  id?: string | null | undefined;
11204
12124
  invoice_date: string;
11205
12125
  due_date: string;
11206
- partner_id: string;
12126
+ partner_id: string | null;
11207
12127
  journal_id?: string | null | undefined;
11208
12128
  payments?: {
11209
12129
  id: string;
@@ -11261,8 +12181,22 @@ export declare class API {
11261
12181
  due_dates: {
11262
12182
  due_date: string;
11263
12183
  payment_method?: string | null | undefined;
12184
+ payment_method_id?: string | null | undefined;
11264
12185
  amount: number;
11265
12186
  }[] | null;
12187
+ attachments_info?: {
12188
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12189
+ attachments: {
12190
+ filename?: string | null | undefined;
12191
+ url?: string | null | undefined;
12192
+ }[] | null;
12193
+ } | undefined;
12194
+ accounting_info?: {
12195
+ main_currency?: string | undefined;
12196
+ main_currency_total: number;
12197
+ account_number?: string | null | undefined;
12198
+ } | null | undefined;
12199
+ payment_method_id?: string | null | undefined;
11266
12200
  lines: {
11267
12201
  line_number: number | null;
11268
12202
  unit_price: number;
@@ -11293,10 +12227,16 @@ export declare class API {
11293
12227
  reference?: string | null | undefined;
11294
12228
  payment_communication?: string | null | undefined;
11295
12229
  customer_memo?: string | null | undefined;
12230
+ payment_term_id?: string | null | undefined;
12231
+ withholding_tax?: {
12232
+ tax_rate: number;
12233
+ tax_code: string;
12234
+ tax_amount: number;
12235
+ } | null | undefined;
11296
12236
  id?: string | null | undefined;
11297
12237
  invoice_date: string;
11298
12238
  due_date: string;
11299
- partner_id: string;
12239
+ partner_id: string | null;
11300
12240
  journal_id?: string | null | undefined;
11301
12241
  payments?: {
11302
12242
  id: string;
@@ -11354,8 +12294,22 @@ export declare class API {
11354
12294
  due_dates: {
11355
12295
  due_date: string;
11356
12296
  payment_method?: string | null | undefined;
12297
+ payment_method_id?: string | null | undefined;
11357
12298
  amount: number;
11358
12299
  }[] | null;
12300
+ attachments_info?: {
12301
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12302
+ attachments: {
12303
+ filename?: string | null | undefined;
12304
+ url?: string | null | undefined;
12305
+ }[] | null;
12306
+ } | undefined;
12307
+ accounting_info?: {
12308
+ main_currency?: string | undefined;
12309
+ main_currency_total: number;
12310
+ account_number?: string | null | undefined;
12311
+ } | null | undefined;
12312
+ payment_method_id?: string | null | undefined;
11359
12313
  lines: {
11360
12314
  line_number: number | null;
11361
12315
  unit_price: number;
@@ -11397,10 +12351,16 @@ export declare class API {
11397
12351
  reference?: string | null | undefined;
11398
12352
  payment_communication?: string | null | undefined;
11399
12353
  customer_memo?: string | null | undefined;
12354
+ payment_term_id?: string | null | undefined;
12355
+ withholding_tax?: {
12356
+ tax_rate: number;
12357
+ tax_code: string;
12358
+ tax_amount: number;
12359
+ } | null | undefined;
11400
12360
  id?: string | null | undefined;
11401
12361
  invoice_date: string;
11402
12362
  due_date: string;
11403
- partner_id: string;
12363
+ partner_id: string | null;
11404
12364
  journal_id?: string | null | undefined;
11405
12365
  payments?: {
11406
12366
  id: string;
@@ -11458,8 +12418,22 @@ export declare class API {
11458
12418
  due_dates: {
11459
12419
  due_date: string;
11460
12420
  payment_method?: string | null | undefined;
12421
+ payment_method_id?: string | null | undefined;
11461
12422
  amount: number;
11462
12423
  }[] | null;
12424
+ attachments_info?: {
12425
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12426
+ attachments: {
12427
+ filename?: string | null | undefined;
12428
+ url?: string | null | undefined;
12429
+ }[] | null;
12430
+ } | undefined;
12431
+ accounting_info?: {
12432
+ main_currency?: string | undefined;
12433
+ main_currency_total: number;
12434
+ account_number?: string | null | undefined;
12435
+ } | null | undefined;
12436
+ payment_method_id?: string | null | undefined;
11463
12437
  lines: {
11464
12438
  line_number: number | null;
11465
12439
  unit_price: number;
@@ -11607,7 +12581,7 @@ export declare class API {
11607
12581
  folder_id?: string | null | undefined;
11608
12582
  updated_after?: string | null | undefined;
11609
12583
  unposted_allowed: "true" | "false";
11610
- journal_id: string;
12584
+ journal_id?: string | null | undefined;
11611
12585
  partner_id?: string | null | undefined;
11612
12586
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11613
12587
  reference?: string | null | undefined;
@@ -11621,9 +12595,17 @@ export declare class API {
11621
12595
  due_dates: {
11622
12596
  due_date: string;
11623
12597
  payment_method?: string | null | undefined;
12598
+ payment_method_id?: string | null | undefined;
11624
12599
  debit: number | null;
11625
12600
  credit: number | null;
11626
12601
  }[] | null;
12602
+ attachments_info?: {
12603
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12604
+ attachments: {
12605
+ filename?: string | null | undefined;
12606
+ url?: string | null | undefined;
12607
+ }[] | null;
12608
+ } | undefined;
11627
12609
  items: {
11628
12610
  account_number: string;
11629
12611
  partner_id?: string | null | undefined;
@@ -11646,7 +12628,7 @@ export declare class API {
11646
12628
  folder_id?: string | null | undefined;
11647
12629
  updated_after?: string | null | undefined;
11648
12630
  unposted_allowed: "true" | "false";
11649
- journal_id: string;
12631
+ journal_id?: string | null | undefined;
11650
12632
  partner_id?: string | null | undefined;
11651
12633
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11652
12634
  reference?: string | null | undefined;
@@ -11660,9 +12642,17 @@ export declare class API {
11660
12642
  due_dates: {
11661
12643
  due_date: string;
11662
12644
  payment_method?: string | null | undefined;
12645
+ payment_method_id?: string | null | undefined;
11663
12646
  debit: number | null;
11664
12647
  credit: number | null;
11665
12648
  }[] | null;
12649
+ attachments_info?: {
12650
+ status: "unknown" | "yes" | "yes_to_request" | "no";
12651
+ attachments: {
12652
+ filename?: string | null | undefined;
12653
+ url?: string | null | undefined;
12654
+ }[] | null;
12655
+ } | undefined;
11666
12656
  items: {
11667
12657
  account_number: string;
11668
12658
  partner_id?: string | null | undefined;
@@ -11752,6 +12742,7 @@ export declare class API {
11752
12742
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11753
12743
  id: string;
11754
12744
  code?: string | null | undefined;
12745
+ active: boolean | null;
11755
12746
  label: string;
11756
12747
  scope: "unknown" | "nat" | "eu" | "int" | null;
11757
12748
  rate: number;
@@ -11759,6 +12750,7 @@ export declare class API {
11759
12750
  deductible_account?: string | null | undefined;
11760
12751
  payable_account?: string | null | undefined;
11761
12752
  reversed: boolean | null;
12753
+ withholding_tax: boolean | null;
11762
12754
  country?: string | null | undefined;
11763
12755
  }[]>;
11764
12756
  getMiscOperations(params?: {
@@ -11861,12 +12853,14 @@ export declare class API {
11861
12853
  getChartOfAccounts(params?: {
11862
12854
  folder_id?: string | null | undefined;
11863
12855
  classes?: string | null | undefined;
11864
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
12856
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
11865
12857
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11866
12858
  number: string;
11867
12859
  name: string;
11868
12860
  active: boolean | null;
11869
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
12861
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
12862
+ scheme_ids?: string[] | null | undefined;
12863
+ accounting_category?: string | null | undefined;
11870
12864
  }[]>;
11871
12865
  getBalanceOfAccounts(filter: {
11872
12866
  accounts: string[];
@@ -11942,6 +12936,7 @@ export declare class API {
11942
12936
  account: string;
11943
12937
  amount: number;
11944
12938
  description?: string | null | undefined;
12939
+ automated_matching_number?: string | null | undefined;
11945
12940
  }[];
11946
12941
  pdf?: string | null | undefined;
11947
12942
  }, params?: {
@@ -11960,6 +12955,7 @@ export declare class API {
11960
12955
  account: string;
11961
12956
  amount: number;
11962
12957
  description?: string | null | undefined;
12958
+ automated_matching_number?: string | null | undefined;
11963
12959
  counterpart_account: string;
11964
12960
  }[];
11965
12961
  }>;
@@ -11987,6 +12983,13 @@ export declare class API {
11987
12983
  }[];
11988
12984
  }[] | null;
11989
12985
  tax_code?: string | null | undefined;
12986
+ tax_info?: {
12987
+ tax_code: string;
12988
+ tax_amount: number;
12989
+ vat_account?: string | null | undefined;
12990
+ reversed_vat_account?: string | null | undefined;
12991
+ description?: string | null | undefined;
12992
+ } | null | undefined;
11990
12993
  account_info?: {
11991
12994
  account_number: string;
11992
12995
  account_name: string;
@@ -11999,6 +13002,7 @@ export declare class API {
11999
13002
  }, params?: {
12000
13003
  folder_id?: string | null | undefined;
12001
13004
  force_currency_exchange?: "true" | "false" | null | undefined;
13005
+ ignore_accounting_id?: boolean | undefined;
12002
13006
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
12003
13007
  reference?: string | null | undefined;
12004
13008
  due_date?: string | null | undefined;
@@ -12011,9 +13015,17 @@ export declare class API {
12011
13015
  due_dates: {
12012
13016
  due_date: string;
12013
13017
  payment_method?: string | null | undefined;
13018
+ payment_method_id?: string | null | undefined;
12014
13019
  debit: number | null;
12015
13020
  credit: number | null;
12016
13021
  }[] | null;
13022
+ attachments_info?: {
13023
+ status: "unknown" | "yes" | "yes_to_request" | "no";
13024
+ attachments: {
13025
+ filename?: string | null | undefined;
13026
+ url?: string | null | undefined;
13027
+ }[] | null;
13028
+ } | undefined;
12017
13029
  items: {
12018
13030
  account_number: string;
12019
13031
  partner_id?: string | null | undefined;
@@ -12129,14 +13141,35 @@ export declare class API {
12129
13141
  createLedgerAccount(account: {
12130
13142
  name: string;
12131
13143
  number: string;
12132
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
13144
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
12133
13145
  }, params?: {
12134
13146
  folder_id?: string | null | undefined;
12135
13147
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
12136
13148
  number: string;
12137
13149
  name: string;
12138
13150
  active: boolean | null;
12139
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
13151
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
13152
+ scheme_ids?: string[] | null | undefined;
13153
+ accounting_category?: string | null | undefined;
13154
+ }>;
13155
+ getBankAccounts(params?: {
13156
+ folder_id?: string | null | undefined;
13157
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
13158
+ items: {
13159
+ id: string;
13160
+ code?: string | null | undefined;
13161
+ currency?: string | null | undefined;
13162
+ account_name?: string | null | undefined;
13163
+ account_number?: string | null | undefined;
13164
+ iban?: string | null | undefined;
13165
+ bank_name?: string | null | undefined;
13166
+ journal_id?: string | null | undefined;
13167
+ ledger_account?: string | null | undefined;
13168
+ unallocated_account?: string | null | undefined;
13169
+ }[];
13170
+ total: number;
13171
+ page: number;
13172
+ size: number;
12140
13173
  }>;
12141
13174
  createBankAccount(bankAccount: {
12142
13175
  code: string;
@@ -12159,6 +13192,45 @@ export declare class API {
12159
13192
  ledger_account?: string | null | undefined;
12160
13193
  unallocated_account?: string | null | undefined;
12161
13194
  }>;
13195
+ createBankTransactions(bankStatement: {
13196
+ bank_statement_date: string;
13197
+ bank_account_id: string;
13198
+ external_bank_statement_id: string;
13199
+ opening_balance?: number | null | undefined;
13200
+ pdf?: string | null | undefined;
13201
+ items: {
13202
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
13203
+ account?: string | null | undefined;
13204
+ description?: string | null | undefined;
13205
+ external_transaction_id?: string | null | undefined;
13206
+ date: string;
13207
+ amount: number;
13208
+ fee_amount: number | null;
13209
+ tax_amount: number | null;
13210
+ currency: string;
13211
+ currency_exchange_rate: number | null;
13212
+ }[];
13213
+ }, params?: {
13214
+ folder_id?: string | null | undefined;
13215
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
13216
+ bank_statement_date: string;
13217
+ bank_account_id: string;
13218
+ id?: string | null | undefined;
13219
+ external_bank_statement_id?: string | null | undefined;
13220
+ items: {
13221
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
13222
+ account?: string | null | undefined;
13223
+ description?: string | null | undefined;
13224
+ external_transaction_id?: string | null | undefined;
13225
+ date: string;
13226
+ amount: number;
13227
+ fee_amount: number | null;
13228
+ tax_amount: number | null;
13229
+ currency: string;
13230
+ currency_exchange_rate: number | null;
13231
+ id?: string | null | undefined;
13232
+ }[];
13233
+ }>;
12162
13234
  getJournalEntry(journalEntryId: string, params?: {
12163
13235
  folder_id?: string | null | undefined;
12164
13236
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -12173,9 +13245,17 @@ export declare class API {
12173
13245
  due_dates: {
12174
13246
  due_date: string;
12175
13247
  payment_method?: string | null | undefined;
13248
+ payment_method_id?: string | null | undefined;
12176
13249
  debit: number | null;
12177
13250
  credit: number | null;
12178
13251
  }[] | null;
13252
+ attachments_info?: {
13253
+ status: "unknown" | "yes" | "yes_to_request" | "no";
13254
+ attachments: {
13255
+ filename?: string | null | undefined;
13256
+ url?: string | null | undefined;
13257
+ }[] | null;
13258
+ } | undefined;
12179
13259
  items: {
12180
13260
  account_number: string;
12181
13261
  partner_id?: string | null | undefined;
@@ -12210,6 +13290,29 @@ export declare class API {
12210
13290
  page: number;
12211
13291
  size: number;
12212
13292
  }>;
13293
+ getPaymentTerms(params?: {
13294
+ folder_id?: string | null | undefined;
13295
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
13296
+ items: {
13297
+ id: string;
13298
+ name?: string | null | undefined;
13299
+ }[];
13300
+ total: number;
13301
+ page: number;
13302
+ size: number;
13303
+ }>;
13304
+ getSchemes(params?: {
13305
+ folder_id?: string | null | undefined;
13306
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
13307
+ items: {
13308
+ id: string;
13309
+ code: string;
13310
+ name: string;
13311
+ }[];
13312
+ total: number;
13313
+ page: number;
13314
+ size: number;
13315
+ }>;
12213
13316
  createInvoicePayment(body: {
12214
13317
  date: string;
12215
13318
  payment_method_id: string;
@@ -12229,6 +13332,29 @@ export declare class API {
12229
13332
  };
12230
13333
  content?: undefined;
12231
13334
  }>;
13335
+ exportFec(params: {
13336
+ folder_id?: string | null | undefined;
13337
+ date_from: string;
13338
+ date_to: string;
13339
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
13340
+ JournalCode: string;
13341
+ JournalLib: string;
13342
+ EcritureNum: string;
13343
+ EcritureDate: string;
13344
+ CompteNum: string;
13345
+ CompteLib: string;
13346
+ CompAuxNum: string;
13347
+ CompAuxLib: string;
13348
+ PieceRef: string;
13349
+ PieceDate: string;
13350
+ Debit: number;
13351
+ Credit: number;
13352
+ EcritureLet: string;
13353
+ DateLet: string | null;
13354
+ ValidDate: string | null;
13355
+ Montantdevise: number;
13356
+ Idevise: string;
13357
+ }[]>;
12232
13358
  }>;
12233
13359
  invoicing: import("../types/api").ApiFor<{
12234
13360
  getInvoices(params?: {
@@ -12238,6 +13364,7 @@ export declare class API {
12238
13364
  updated_after?: string | null | undefined;
12239
13365
  include_invoice_lines?: "true" | "false" | null | undefined;
12240
13366
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
13367
+ include_analytic_accounts?: "true" | "false" | null | undefined;
12241
13368
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
12242
13369
  id: string;
12243
13370
  source_ref: {
@@ -12267,6 +13394,14 @@ export declare class API {
12267
13394
  product_id?: string | null | undefined;
12268
13395
  product_code?: string | null | undefined;
12269
13396
  product_name?: string | null | undefined;
13397
+ analytic_distribution: {
13398
+ analytic_plan_code: string;
13399
+ analytic_accounts: {
13400
+ analytic_account_code: string;
13401
+ analytic_account_name: string;
13402
+ percentage: number;
13403
+ }[];
13404
+ }[] | null;
12270
13405
  }[];
12271
13406
  partner_id?: string | null | undefined;
12272
13407
  invoice_number?: string | null | undefined;
@@ -12306,6 +13441,7 @@ export declare class API {
12306
13441
  }[]>;
12307
13442
  getInvoiceById(invoiceId: string, params?: {
12308
13443
  include_pdf?: "true" | "false" | null | undefined;
13444
+ include_analytic_accounts?: "true" | "false" | null | undefined;
12309
13445
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
12310
13446
  id: string;
12311
13447
  source_ref: {
@@ -12335,6 +13471,14 @@ export declare class API {
12335
13471
  product_id?: string | null | undefined;
12336
13472
  product_code?: string | null | undefined;
12337
13473
  product_name?: string | null | undefined;
13474
+ analytic_distribution: {
13475
+ analytic_plan_code: string;
13476
+ analytic_accounts: {
13477
+ analytic_account_code: string;
13478
+ analytic_account_name: string;
13479
+ percentage: number;
13480
+ }[];
13481
+ }[] | null;
12338
13482
  }[];
12339
13483
  partner_id?: string | null | undefined;
12340
13484
  invoice_number?: string | null | undefined;
@@ -12456,6 +13600,14 @@ export declare class API {
12456
13600
  product_id?: string | null | undefined;
12457
13601
  product_code?: string | null | undefined;
12458
13602
  product_name?: string | null | undefined;
13603
+ analytic_distribution: {
13604
+ analytic_plan_code: string;
13605
+ analytic_accounts: {
13606
+ analytic_account_code: string;
13607
+ analytic_account_name: string;
13608
+ percentage: number;
13609
+ }[];
13610
+ }[] | null;
12459
13611
  }[];
12460
13612
  partner_id?: string | null | undefined;
12461
13613
  invoice_number?: string | null | undefined;
@@ -14034,14 +15186,18 @@ export declare class API {
14034
15186
  reference: string;
14035
15187
  reference_type: string;
14036
15188
  holder_name?: string | null | undefined;
15189
+ active: boolean | null;
14037
15190
  }[]>;
14038
- getAccountTransactions(accountId: string, params?: {
15191
+ getAccountTransactions(params: {
14039
15192
  date_from?: string | null | undefined;
14040
15193
  date_to?: string | null | undefined;
15194
+ updated_after?: string | null | undefined;
15195
+ account_id: string;
14041
15196
  date_type?: "value_date" | "execution_date" | null | undefined;
14042
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
15197
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
14043
15198
  id: string;
14044
15199
  amount: number;
15200
+ tax_amount?: number | null | undefined;
14045
15201
  currency: string;
14046
15202
  description?: string | null | undefined;
14047
15203
  additional_information?: string | null | undefined;
@@ -14051,6 +15207,17 @@ export declare class API {
14051
15207
  creation_date: string;
14052
15208
  value_date: string;
14053
15209
  execution_date: string;
15210
+ internal_transaction: boolean | null;
15211
+ 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;
15212
+ last_update_on?: string | null | undefined;
15213
+ status?: "completed" | "pending" | "declined" | null | undefined;
15214
+ attachments_info?: {
15215
+ status: "unknown" | "yes" | "yes_to_request" | "no";
15216
+ attachments: {
15217
+ filename?: string | null | undefined;
15218
+ url?: string | null | undefined;
15219
+ }[] | null;
15220
+ } | undefined;
14054
15221
  }[]>;
14055
15222
  getAccountCounterparts(params?: {
14056
15223
  date_from?: string | null | undefined;
@@ -14061,6 +15228,17 @@ export declare class API {
14061
15228
  reference?: string | null | undefined;
14062
15229
  details?: string | null | undefined;
14063
15230
  }[]>;
15231
+ getAttachments(params: {
15232
+ transaction_id: string;
15233
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
15234
+ items: {
15235
+ id: string;
15236
+ base64_string: string;
15237
+ }[];
15238
+ total: number;
15239
+ page: number;
15240
+ size: number;
15241
+ }>;
14064
15242
  }>;
14065
15243
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
14066
15244
  data: {
@@ -14100,6 +15278,7 @@ export declare class API {
14100
15278
  source_id?: string | null | undefined;
14101
15279
  target_id?: string | null | undefined;
14102
15280
  }[];
15281
+ hidden_source_ids: string[];
14103
15282
  sub_mapping_name: string;
14104
15283
  sub_mapping_description?: string | null | undefined;
14105
15284
  }[] | null | undefined;
@@ -14263,7 +15442,8 @@ export declare class API {
14263
15442
  value: string;
14264
15443
  }[] | null | undefined;
14265
15444
  country?: string | null | undefined;
14266
- } | undefined) => Promise<{
15445
+ redirect: boolean | null;
15446
+ } | null | undefined) => Promise<{
14267
15447
  url: string;
14268
15448
  }>;
14269
15449
  updateConnection: (connectionId: string, body?: {
@@ -14282,6 +15462,15 @@ export declare class API {
14282
15462
  };
14283
15463
  content?: undefined;
14284
15464
  }>;
15465
+ getTransactionByClientRequestId: (connectionId: string, params: {
15466
+ client_request_id: string;
15467
+ }) => Promise<{
15468
+ created_on: string;
15469
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
15470
+ route: string;
15471
+ status_code: number;
15472
+ created_entity_id?: string | null | undefined;
15473
+ }>;
14285
15474
  enableFlow: (syncId: string, flowId: string, body: {
14286
15475
  integrationids: string[];
14287
15476
  triggerid: string | null;
@@ -14887,6 +16076,30 @@ export declare class API {
14887
16076
  country?: string | null | undefined;
14888
16077
  }[] | null | undefined;
14889
16078
  }[]>;
16079
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
16080
+ id: string;
16081
+ source_ref: {
16082
+ id?: string | null | undefined;
16083
+ model?: string | null | undefined;
16084
+ };
16085
+ first_name?: string | null | undefined;
16086
+ last_name?: string | null | undefined;
16087
+ company_name?: string | null | undefined;
16088
+ phone?: string | null | undefined;
16089
+ email?: string | null | undefined;
16090
+ account_number?: string | null | undefined;
16091
+ created_on?: string | null | undefined;
16092
+ addresses?: {
16093
+ address_type?: string | null | undefined;
16094
+ name?: string | null | undefined;
16095
+ street?: string | null | undefined;
16096
+ number?: string | null | undefined;
16097
+ box?: string | null | undefined;
16098
+ city?: string | null | undefined;
16099
+ postal_code?: string | null | undefined;
16100
+ country?: string | null | undefined;
16101
+ }[] | null | undefined;
16102
+ }>;
14890
16103
  getInvoices(params?: {
14891
16104
  date_from: string;
14892
16105
  date_to: string;
@@ -14989,6 +16202,20 @@ export declare class API {
14989
16202
  untaxed_amount: number;
14990
16203
  total: number;
14991
16204
  }[]>;
16205
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
16206
+ items: {
16207
+ id: string;
16208
+ source_ref: {
16209
+ id?: string | null | undefined;
16210
+ model?: string | null | undefined;
16211
+ };
16212
+ label?: string | null | undefined;
16213
+ rate?: number | null | undefined;
16214
+ }[];
16215
+ total: number;
16216
+ page: number;
16217
+ size: number;
16218
+ }>;
14992
16219
  }>;
14993
16220
  payment: import("../types/api").ApiFor<{
14994
16221
  getPayments(params: {
@@ -15540,6 +16767,12 @@ export declare class API {
15540
16767
  reference?: string | null | undefined;
15541
16768
  payment_communication?: string | null | undefined;
15542
16769
  customer_memo?: string | null | undefined;
16770
+ payment_term_id?: string | null | undefined;
16771
+ withholding_tax?: {
16772
+ tax_rate: number;
16773
+ tax_code: string;
16774
+ tax_amount: number;
16775
+ } | null | undefined;
15543
16776
  invoice_date: string;
15544
16777
  due_date: string;
15545
16778
  partner_id?: string | null | undefined;
@@ -15582,10 +16815,14 @@ export declare class API {
15582
16815
  description: string;
15583
16816
  analytic_account?: string | null | undefined;
15584
16817
  }[];
16818
+ start_date?: string | null | undefined;
16819
+ end_date?: string | null | undefined;
16820
+ payment_method_id?: string | null | undefined;
15585
16821
  }, params?: {
15586
16822
  folder_id?: string | null | undefined;
15587
16823
  force_financial_period?: string | null | undefined;
15588
16824
  regroup_lines?: "true" | "false" | null | undefined;
16825
+ ignore_accounting_id?: boolean | undefined;
15589
16826
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
15590
16827
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15591
16828
  invoice_number?: string | null | undefined;
@@ -15596,10 +16833,16 @@ export declare class API {
15596
16833
  reference?: string | null | undefined;
15597
16834
  payment_communication?: string | null | undefined;
15598
16835
  customer_memo?: string | null | undefined;
16836
+ payment_term_id?: string | null | undefined;
16837
+ withholding_tax?: {
16838
+ tax_rate: number;
16839
+ tax_code: string;
16840
+ tax_amount: number;
16841
+ } | null | undefined;
15599
16842
  id?: string | null | undefined;
15600
16843
  invoice_date: string;
15601
16844
  due_date: string;
15602
- partner_id: string;
16845
+ partner_id: string | null;
15603
16846
  journal_id?: string | null | undefined;
15604
16847
  payments?: {
15605
16848
  id: string;
@@ -15657,8 +16900,22 @@ export declare class API {
15657
16900
  due_dates: {
15658
16901
  due_date: string;
15659
16902
  payment_method?: string | null | undefined;
16903
+ payment_method_id?: string | null | undefined;
15660
16904
  amount: number;
15661
16905
  }[] | null;
16906
+ attachments_info?: {
16907
+ status: "unknown" | "yes" | "yes_to_request" | "no";
16908
+ attachments: {
16909
+ filename?: string | null | undefined;
16910
+ url?: string | null | undefined;
16911
+ }[] | null;
16912
+ } | undefined;
16913
+ accounting_info?: {
16914
+ main_currency?: string | undefined;
16915
+ main_currency_total: number;
16916
+ account_number?: string | null | undefined;
16917
+ } | null | undefined;
16918
+ payment_method_id?: string | null | undefined;
15662
16919
  lines: {
15663
16920
  line_number: number | null;
15664
16921
  unit_price: number;
@@ -15684,6 +16941,12 @@ export declare class API {
15684
16941
  reference?: string | null | undefined;
15685
16942
  payment_communication?: string | null | undefined;
15686
16943
  customer_memo?: string | null | undefined;
16944
+ payment_term_id?: string | null | undefined;
16945
+ withholding_tax?: {
16946
+ tax_rate: number;
16947
+ tax_code: string;
16948
+ tax_amount: number;
16949
+ } | null | undefined;
15687
16950
  invoice_date: string;
15688
16951
  due_date: string;
15689
16952
  partner_id?: string | null | undefined;
@@ -15732,10 +16995,14 @@ export declare class API {
15732
16995
  }[];
15733
16996
  }[] | null;
15734
16997
  }[];
16998
+ start_date?: string | null | undefined;
16999
+ end_date?: string | null | undefined;
17000
+ payment_method_id?: string | null | undefined;
15735
17001
  }, params?: {
15736
17002
  folder_id?: string | null | undefined;
15737
17003
  force_financial_period?: string | null | undefined;
15738
17004
  regroup_lines?: "true" | "false" | null | undefined;
17005
+ ignore_accounting_id?: boolean | undefined;
15739
17006
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
15740
17007
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15741
17008
  invoice_number?: string | null | undefined;
@@ -15746,10 +17013,16 @@ export declare class API {
15746
17013
  reference?: string | null | undefined;
15747
17014
  payment_communication?: string | null | undefined;
15748
17015
  customer_memo?: string | null | undefined;
17016
+ payment_term_id?: string | null | undefined;
17017
+ withholding_tax?: {
17018
+ tax_rate: number;
17019
+ tax_code: string;
17020
+ tax_amount: number;
17021
+ } | null | undefined;
15749
17022
  id?: string | null | undefined;
15750
17023
  invoice_date: string;
15751
17024
  due_date: string;
15752
- partner_id: string;
17025
+ partner_id: string | null;
15753
17026
  journal_id?: string | null | undefined;
15754
17027
  payments?: {
15755
17028
  id: string;
@@ -15807,8 +17080,22 @@ export declare class API {
15807
17080
  due_dates: {
15808
17081
  due_date: string;
15809
17082
  payment_method?: string | null | undefined;
17083
+ payment_method_id?: string | null | undefined;
15810
17084
  amount: number;
15811
17085
  }[] | null;
17086
+ attachments_info?: {
17087
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17088
+ attachments: {
17089
+ filename?: string | null | undefined;
17090
+ url?: string | null | undefined;
17091
+ }[] | null;
17092
+ } | undefined;
17093
+ accounting_info?: {
17094
+ main_currency?: string | undefined;
17095
+ main_currency_total: number;
17096
+ account_number?: string | null | undefined;
17097
+ } | null | undefined;
17098
+ payment_method_id?: string | null | undefined;
15812
17099
  lines: {
15813
17100
  line_number: number | null;
15814
17101
  unit_price: number;
@@ -15850,10 +17137,16 @@ export declare class API {
15850
17137
  reference?: string | null | undefined;
15851
17138
  payment_communication?: string | null | undefined;
15852
17139
  customer_memo?: string | null | undefined;
17140
+ payment_term_id?: string | null | undefined;
17141
+ withholding_tax?: {
17142
+ tax_rate: number;
17143
+ tax_code: string;
17144
+ tax_amount: number;
17145
+ } | null | undefined;
15853
17146
  id?: string | null | undefined;
15854
17147
  invoice_date: string;
15855
17148
  due_date: string;
15856
- partner_id: string;
17149
+ partner_id: string | null;
15857
17150
  journal_id?: string | null | undefined;
15858
17151
  payments?: {
15859
17152
  id: string;
@@ -15911,8 +17204,22 @@ export declare class API {
15911
17204
  due_dates: {
15912
17205
  due_date: string;
15913
17206
  payment_method?: string | null | undefined;
17207
+ payment_method_id?: string | null | undefined;
15914
17208
  amount: number;
15915
17209
  }[] | null;
17210
+ attachments_info?: {
17211
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17212
+ attachments: {
17213
+ filename?: string | null | undefined;
17214
+ url?: string | null | undefined;
17215
+ }[] | null;
17216
+ } | undefined;
17217
+ accounting_info?: {
17218
+ main_currency?: string | undefined;
17219
+ main_currency_total: number;
17220
+ account_number?: string | null | undefined;
17221
+ } | null | undefined;
17222
+ payment_method_id?: string | null | undefined;
15916
17223
  lines: {
15917
17224
  line_number: number | null;
15918
17225
  unit_price: number;
@@ -15943,10 +17250,16 @@ export declare class API {
15943
17250
  reference?: string | null | undefined;
15944
17251
  payment_communication?: string | null | undefined;
15945
17252
  customer_memo?: string | null | undefined;
17253
+ payment_term_id?: string | null | undefined;
17254
+ withholding_tax?: {
17255
+ tax_rate: number;
17256
+ tax_code: string;
17257
+ tax_amount: number;
17258
+ } | null | undefined;
15946
17259
  id?: string | null | undefined;
15947
17260
  invoice_date: string;
15948
17261
  due_date: string;
15949
- partner_id: string;
17262
+ partner_id: string | null;
15950
17263
  journal_id?: string | null | undefined;
15951
17264
  payments?: {
15952
17265
  id: string;
@@ -16004,8 +17317,22 @@ export declare class API {
16004
17317
  due_dates: {
16005
17318
  due_date: string;
16006
17319
  payment_method?: string | null | undefined;
17320
+ payment_method_id?: string | null | undefined;
16007
17321
  amount: number;
16008
17322
  }[] | null;
17323
+ attachments_info?: {
17324
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17325
+ attachments: {
17326
+ filename?: string | null | undefined;
17327
+ url?: string | null | undefined;
17328
+ }[] | null;
17329
+ } | undefined;
17330
+ accounting_info?: {
17331
+ main_currency?: string | undefined;
17332
+ main_currency_total: number;
17333
+ account_number?: string | null | undefined;
17334
+ } | null | undefined;
17335
+ payment_method_id?: string | null | undefined;
16009
17336
  lines: {
16010
17337
  line_number: number | null;
16011
17338
  unit_price: number;
@@ -16036,10 +17363,16 @@ export declare class API {
16036
17363
  reference?: string | null | undefined;
16037
17364
  payment_communication?: string | null | undefined;
16038
17365
  customer_memo?: string | null | undefined;
17366
+ payment_term_id?: string | null | undefined;
17367
+ withholding_tax?: {
17368
+ tax_rate: number;
17369
+ tax_code: string;
17370
+ tax_amount: number;
17371
+ } | null | undefined;
16039
17372
  id?: string | null | undefined;
16040
17373
  invoice_date: string;
16041
17374
  due_date: string;
16042
- partner_id: string;
17375
+ partner_id: string | null;
16043
17376
  journal_id?: string | null | undefined;
16044
17377
  payments?: {
16045
17378
  id: string;
@@ -16097,8 +17430,22 @@ export declare class API {
16097
17430
  due_dates: {
16098
17431
  due_date: string;
16099
17432
  payment_method?: string | null | undefined;
17433
+ payment_method_id?: string | null | undefined;
16100
17434
  amount: number;
16101
17435
  }[] | null;
17436
+ attachments_info?: {
17437
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17438
+ attachments: {
17439
+ filename?: string | null | undefined;
17440
+ url?: string | null | undefined;
17441
+ }[] | null;
17442
+ } | undefined;
17443
+ accounting_info?: {
17444
+ main_currency?: string | undefined;
17445
+ main_currency_total: number;
17446
+ account_number?: string | null | undefined;
17447
+ } | null | undefined;
17448
+ payment_method_id?: string | null | undefined;
16102
17449
  lines: {
16103
17450
  line_number: number | null;
16104
17451
  unit_price: number;
@@ -16140,10 +17487,16 @@ export declare class API {
16140
17487
  reference?: string | null | undefined;
16141
17488
  payment_communication?: string | null | undefined;
16142
17489
  customer_memo?: string | null | undefined;
17490
+ payment_term_id?: string | null | undefined;
17491
+ withholding_tax?: {
17492
+ tax_rate: number;
17493
+ tax_code: string;
17494
+ tax_amount: number;
17495
+ } | null | undefined;
16143
17496
  id?: string | null | undefined;
16144
17497
  invoice_date: string;
16145
17498
  due_date: string;
16146
- partner_id: string;
17499
+ partner_id: string | null;
16147
17500
  journal_id?: string | null | undefined;
16148
17501
  payments?: {
16149
17502
  id: string;
@@ -16201,8 +17554,22 @@ export declare class API {
16201
17554
  due_dates: {
16202
17555
  due_date: string;
16203
17556
  payment_method?: string | null | undefined;
17557
+ payment_method_id?: string | null | undefined;
16204
17558
  amount: number;
16205
17559
  }[] | null;
17560
+ attachments_info?: {
17561
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17562
+ attachments: {
17563
+ filename?: string | null | undefined;
17564
+ url?: string | null | undefined;
17565
+ }[] | null;
17566
+ } | undefined;
17567
+ accounting_info?: {
17568
+ main_currency?: string | undefined;
17569
+ main_currency_total: number;
17570
+ account_number?: string | null | undefined;
17571
+ } | null | undefined;
17572
+ payment_method_id?: string | null | undefined;
16206
17573
  lines: {
16207
17574
  line_number: number | null;
16208
17575
  unit_price: number;
@@ -16350,7 +17717,7 @@ export declare class API {
16350
17717
  folder_id?: string | null | undefined;
16351
17718
  updated_after?: string | null | undefined;
16352
17719
  unposted_allowed: "true" | "false";
16353
- journal_id: string;
17720
+ journal_id?: string | null | undefined;
16354
17721
  partner_id?: string | null | undefined;
16355
17722
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16356
17723
  reference?: string | null | undefined;
@@ -16364,9 +17731,17 @@ export declare class API {
16364
17731
  due_dates: {
16365
17732
  due_date: string;
16366
17733
  payment_method?: string | null | undefined;
17734
+ payment_method_id?: string | null | undefined;
16367
17735
  debit: number | null;
16368
17736
  credit: number | null;
16369
17737
  }[] | null;
17738
+ attachments_info?: {
17739
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17740
+ attachments: {
17741
+ filename?: string | null | undefined;
17742
+ url?: string | null | undefined;
17743
+ }[] | null;
17744
+ } | undefined;
16370
17745
  items: {
16371
17746
  account_number: string;
16372
17747
  partner_id?: string | null | undefined;
@@ -16389,7 +17764,7 @@ export declare class API {
16389
17764
  folder_id?: string | null | undefined;
16390
17765
  updated_after?: string | null | undefined;
16391
17766
  unposted_allowed: "true" | "false";
16392
- journal_id: string;
17767
+ journal_id?: string | null | undefined;
16393
17768
  partner_id?: string | null | undefined;
16394
17769
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16395
17770
  reference?: string | null | undefined;
@@ -16403,9 +17778,17 @@ export declare class API {
16403
17778
  due_dates: {
16404
17779
  due_date: string;
16405
17780
  payment_method?: string | null | undefined;
17781
+ payment_method_id?: string | null | undefined;
16406
17782
  debit: number | null;
16407
17783
  credit: number | null;
16408
17784
  }[] | null;
17785
+ attachments_info?: {
17786
+ status: "unknown" | "yes" | "yes_to_request" | "no";
17787
+ attachments: {
17788
+ filename?: string | null | undefined;
17789
+ url?: string | null | undefined;
17790
+ }[] | null;
17791
+ } | undefined;
16409
17792
  items: {
16410
17793
  account_number: string;
16411
17794
  partner_id?: string | null | undefined;
@@ -16495,6 +17878,7 @@ export declare class API {
16495
17878
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16496
17879
  id: string;
16497
17880
  code?: string | null | undefined;
17881
+ active: boolean | null;
16498
17882
  label: string;
16499
17883
  scope: "unknown" | "nat" | "eu" | "int" | null;
16500
17884
  rate: number;
@@ -16502,6 +17886,7 @@ export declare class API {
16502
17886
  deductible_account?: string | null | undefined;
16503
17887
  payable_account?: string | null | undefined;
16504
17888
  reversed: boolean | null;
17889
+ withholding_tax: boolean | null;
16505
17890
  country?: string | null | undefined;
16506
17891
  }[]>;
16507
17892
  getMiscOperations(params?: {
@@ -16604,12 +17989,14 @@ export declare class API {
16604
17989
  getChartOfAccounts(params?: {
16605
17990
  folder_id?: string | null | undefined;
16606
17991
  classes?: string | null | undefined;
16607
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
17992
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
16608
17993
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16609
17994
  number: string;
16610
17995
  name: string;
16611
17996
  active: boolean | null;
16612
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
17997
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
17998
+ scheme_ids?: string[] | null | undefined;
17999
+ accounting_category?: string | null | undefined;
16613
18000
  }[]>;
16614
18001
  getBalanceOfAccounts(filter: {
16615
18002
  accounts: string[];
@@ -16685,6 +18072,7 @@ export declare class API {
16685
18072
  account: string;
16686
18073
  amount: number;
16687
18074
  description?: string | null | undefined;
18075
+ automated_matching_number?: string | null | undefined;
16688
18076
  }[];
16689
18077
  pdf?: string | null | undefined;
16690
18078
  }, params?: {
@@ -16703,6 +18091,7 @@ export declare class API {
16703
18091
  account: string;
16704
18092
  amount: number;
16705
18093
  description?: string | null | undefined;
18094
+ automated_matching_number?: string | null | undefined;
16706
18095
  counterpart_account: string;
16707
18096
  }[];
16708
18097
  }>;
@@ -16730,6 +18119,13 @@ export declare class API {
16730
18119
  }[];
16731
18120
  }[] | null;
16732
18121
  tax_code?: string | null | undefined;
18122
+ tax_info?: {
18123
+ tax_code: string;
18124
+ tax_amount: number;
18125
+ vat_account?: string | null | undefined;
18126
+ reversed_vat_account?: string | null | undefined;
18127
+ description?: string | null | undefined;
18128
+ } | null | undefined;
16733
18129
  account_info?: {
16734
18130
  account_number: string;
16735
18131
  account_name: string;
@@ -16742,6 +18138,7 @@ export declare class API {
16742
18138
  }, params?: {
16743
18139
  folder_id?: string | null | undefined;
16744
18140
  force_currency_exchange?: "true" | "false" | null | undefined;
18141
+ ignore_accounting_id?: boolean | undefined;
16745
18142
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
16746
18143
  reference?: string | null | undefined;
16747
18144
  due_date?: string | null | undefined;
@@ -16754,9 +18151,17 @@ export declare class API {
16754
18151
  due_dates: {
16755
18152
  due_date: string;
16756
18153
  payment_method?: string | null | undefined;
18154
+ payment_method_id?: string | null | undefined;
16757
18155
  debit: number | null;
16758
18156
  credit: number | null;
16759
18157
  }[] | null;
18158
+ attachments_info?: {
18159
+ status: "unknown" | "yes" | "yes_to_request" | "no";
18160
+ attachments: {
18161
+ filename?: string | null | undefined;
18162
+ url?: string | null | undefined;
18163
+ }[] | null;
18164
+ } | undefined;
16760
18165
  items: {
16761
18166
  account_number: string;
16762
18167
  partner_id?: string | null | undefined;
@@ -16872,14 +18277,35 @@ export declare class API {
16872
18277
  createLedgerAccount(account: {
16873
18278
  name: string;
16874
18279
  number: string;
16875
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
18280
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
16876
18281
  }, params?: {
16877
18282
  folder_id?: string | null | undefined;
16878
18283
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
16879
18284
  number: string;
16880
18285
  name: string;
16881
18286
  active: boolean | null;
16882
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
18287
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
18288
+ scheme_ids?: string[] | null | undefined;
18289
+ accounting_category?: string | null | undefined;
18290
+ }>;
18291
+ getBankAccounts(params?: {
18292
+ folder_id?: string | null | undefined;
18293
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18294
+ items: {
18295
+ id: string;
18296
+ code?: string | null | undefined;
18297
+ currency?: string | null | undefined;
18298
+ account_name?: string | null | undefined;
18299
+ account_number?: string | null | undefined;
18300
+ iban?: string | null | undefined;
18301
+ bank_name?: string | null | undefined;
18302
+ journal_id?: string | null | undefined;
18303
+ ledger_account?: string | null | undefined;
18304
+ unallocated_account?: string | null | undefined;
18305
+ }[];
18306
+ total: number;
18307
+ page: number;
18308
+ size: number;
16883
18309
  }>;
16884
18310
  createBankAccount(bankAccount: {
16885
18311
  code: string;
@@ -16902,6 +18328,45 @@ export declare class API {
16902
18328
  ledger_account?: string | null | undefined;
16903
18329
  unallocated_account?: string | null | undefined;
16904
18330
  }>;
18331
+ createBankTransactions(bankStatement: {
18332
+ bank_statement_date: string;
18333
+ bank_account_id: string;
18334
+ external_bank_statement_id: string;
18335
+ opening_balance?: number | null | undefined;
18336
+ pdf?: string | null | undefined;
18337
+ items: {
18338
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
18339
+ account?: string | null | undefined;
18340
+ description?: string | null | undefined;
18341
+ external_transaction_id?: string | null | undefined;
18342
+ date: string;
18343
+ amount: number;
18344
+ fee_amount: number | null;
18345
+ tax_amount: number | null;
18346
+ currency: string;
18347
+ currency_exchange_rate: number | null;
18348
+ }[];
18349
+ }, params?: {
18350
+ folder_id?: string | null | undefined;
18351
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
18352
+ bank_statement_date: string;
18353
+ bank_account_id: string;
18354
+ id?: string | null | undefined;
18355
+ external_bank_statement_id?: string | null | undefined;
18356
+ items: {
18357
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
18358
+ account?: string | null | undefined;
18359
+ description?: string | null | undefined;
18360
+ external_transaction_id?: string | null | undefined;
18361
+ date: string;
18362
+ amount: number;
18363
+ fee_amount: number | null;
18364
+ tax_amount: number | null;
18365
+ currency: string;
18366
+ currency_exchange_rate: number | null;
18367
+ id?: string | null | undefined;
18368
+ }[];
18369
+ }>;
16905
18370
  getJournalEntry(journalEntryId: string, params?: {
16906
18371
  folder_id?: string | null | undefined;
16907
18372
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -16916,9 +18381,17 @@ export declare class API {
16916
18381
  due_dates: {
16917
18382
  due_date: string;
16918
18383
  payment_method?: string | null | undefined;
18384
+ payment_method_id?: string | null | undefined;
16919
18385
  debit: number | null;
16920
18386
  credit: number | null;
16921
18387
  }[] | null;
18388
+ attachments_info?: {
18389
+ status: "unknown" | "yes" | "yes_to_request" | "no";
18390
+ attachments: {
18391
+ filename?: string | null | undefined;
18392
+ url?: string | null | undefined;
18393
+ }[] | null;
18394
+ } | undefined;
16922
18395
  items: {
16923
18396
  account_number: string;
16924
18397
  partner_id?: string | null | undefined;
@@ -16953,6 +18426,29 @@ export declare class API {
16953
18426
  page: number;
16954
18427
  size: number;
16955
18428
  }>;
18429
+ getPaymentTerms(params?: {
18430
+ folder_id?: string | null | undefined;
18431
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18432
+ items: {
18433
+ id: string;
18434
+ name?: string | null | undefined;
18435
+ }[];
18436
+ total: number;
18437
+ page: number;
18438
+ size: number;
18439
+ }>;
18440
+ getSchemes(params?: {
18441
+ folder_id?: string | null | undefined;
18442
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18443
+ items: {
18444
+ id: string;
18445
+ code: string;
18446
+ name: string;
18447
+ }[];
18448
+ total: number;
18449
+ page: number;
18450
+ size: number;
18451
+ }>;
16956
18452
  createInvoicePayment(body: {
16957
18453
  date: string;
16958
18454
  payment_method_id: string;
@@ -16972,6 +18468,29 @@ export declare class API {
16972
18468
  };
16973
18469
  content?: undefined;
16974
18470
  }>;
18471
+ exportFec(params: {
18472
+ folder_id?: string | null | undefined;
18473
+ date_from: string;
18474
+ date_to: string;
18475
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18476
+ JournalCode: string;
18477
+ JournalLib: string;
18478
+ EcritureNum: string;
18479
+ EcritureDate: string;
18480
+ CompteNum: string;
18481
+ CompteLib: string;
18482
+ CompAuxNum: string;
18483
+ CompAuxLib: string;
18484
+ PieceRef: string;
18485
+ PieceDate: string;
18486
+ Debit: number;
18487
+ Credit: number;
18488
+ EcritureLet: string;
18489
+ DateLet: string | null;
18490
+ ValidDate: string | null;
18491
+ Montantdevise: number;
18492
+ Idevise: string;
18493
+ }[]>;
16975
18494
  }>;
16976
18495
  invoicing: import("../types/api").ApiFor<{
16977
18496
  getInvoices(params?: {
@@ -16981,6 +18500,7 @@ export declare class API {
16981
18500
  updated_after?: string | null | undefined;
16982
18501
  include_invoice_lines?: "true" | "false" | null | undefined;
16983
18502
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
18503
+ include_analytic_accounts?: "true" | "false" | null | undefined;
16984
18504
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16985
18505
  id: string;
16986
18506
  source_ref: {
@@ -17010,6 +18530,14 @@ export declare class API {
17010
18530
  product_id?: string | null | undefined;
17011
18531
  product_code?: string | null | undefined;
17012
18532
  product_name?: string | null | undefined;
18533
+ analytic_distribution: {
18534
+ analytic_plan_code: string;
18535
+ analytic_accounts: {
18536
+ analytic_account_code: string;
18537
+ analytic_account_name: string;
18538
+ percentage: number;
18539
+ }[];
18540
+ }[] | null;
17013
18541
  }[];
17014
18542
  partner_id?: string | null | undefined;
17015
18543
  invoice_number?: string | null | undefined;
@@ -17049,6 +18577,7 @@ export declare class API {
17049
18577
  }[]>;
17050
18578
  getInvoiceById(invoiceId: string, params?: {
17051
18579
  include_pdf?: "true" | "false" | null | undefined;
18580
+ include_analytic_accounts?: "true" | "false" | null | undefined;
17052
18581
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
17053
18582
  id: string;
17054
18583
  source_ref: {
@@ -17078,6 +18607,14 @@ export declare class API {
17078
18607
  product_id?: string | null | undefined;
17079
18608
  product_code?: string | null | undefined;
17080
18609
  product_name?: string | null | undefined;
18610
+ analytic_distribution: {
18611
+ analytic_plan_code: string;
18612
+ analytic_accounts: {
18613
+ analytic_account_code: string;
18614
+ analytic_account_name: string;
18615
+ percentage: number;
18616
+ }[];
18617
+ }[] | null;
17081
18618
  }[];
17082
18619
  partner_id?: string | null | undefined;
17083
18620
  invoice_number?: string | null | undefined;
@@ -17199,6 +18736,14 @@ export declare class API {
17199
18736
  product_id?: string | null | undefined;
17200
18737
  product_code?: string | null | undefined;
17201
18738
  product_name?: string | null | undefined;
18739
+ analytic_distribution: {
18740
+ analytic_plan_code: string;
18741
+ analytic_accounts: {
18742
+ analytic_account_code: string;
18743
+ analytic_account_name: string;
18744
+ percentage: number;
18745
+ }[];
18746
+ }[] | null;
17202
18747
  }[];
17203
18748
  partner_id?: string | null | undefined;
17204
18749
  invoice_number?: string | null | undefined;
@@ -18777,14 +20322,18 @@ export declare class API {
18777
20322
  reference: string;
18778
20323
  reference_type: string;
18779
20324
  holder_name?: string | null | undefined;
20325
+ active: boolean | null;
18780
20326
  }[]>;
18781
- getAccountTransactions(accountId: string, params?: {
20327
+ getAccountTransactions(params: {
18782
20328
  date_from?: string | null | undefined;
18783
20329
  date_to?: string | null | undefined;
20330
+ updated_after?: string | null | undefined;
20331
+ account_id: string;
18784
20332
  date_type?: "value_date" | "execution_date" | null | undefined;
18785
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
20333
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
18786
20334
  id: string;
18787
20335
  amount: number;
20336
+ tax_amount?: number | null | undefined;
18788
20337
  currency: string;
18789
20338
  description?: string | null | undefined;
18790
20339
  additional_information?: string | null | undefined;
@@ -18794,6 +20343,17 @@ export declare class API {
18794
20343
  creation_date: string;
18795
20344
  value_date: string;
18796
20345
  execution_date: string;
20346
+ internal_transaction: boolean | null;
20347
+ 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;
20348
+ last_update_on?: string | null | undefined;
20349
+ status?: "completed" | "pending" | "declined" | null | undefined;
20350
+ attachments_info?: {
20351
+ status: "unknown" | "yes" | "yes_to_request" | "no";
20352
+ attachments: {
20353
+ filename?: string | null | undefined;
20354
+ url?: string | null | undefined;
20355
+ }[] | null;
20356
+ } | undefined;
18797
20357
  }[]>;
18798
20358
  getAccountCounterparts(params?: {
18799
20359
  date_from?: string | null | undefined;
@@ -18804,6 +20364,17 @@ export declare class API {
18804
20364
  reference?: string | null | undefined;
18805
20365
  details?: string | null | undefined;
18806
20366
  }[]>;
20367
+ getAttachments(params: {
20368
+ transaction_id: string;
20369
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
20370
+ items: {
20371
+ id: string;
20372
+ base64_string: string;
20373
+ }[];
20374
+ total: number;
20375
+ page: number;
20376
+ size: number;
20377
+ }>;
18807
20378
  }>;
18808
20379
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
18809
20380
  data: {
@@ -18843,6 +20414,7 @@ export declare class API {
18843
20414
  source_id?: string | null | undefined;
18844
20415
  target_id?: string | null | undefined;
18845
20416
  }[];
20417
+ hidden_source_ids: string[];
18846
20418
  sub_mapping_name: string;
18847
20419
  sub_mapping_description?: string | null | undefined;
18848
20420
  }[] | null | undefined;
@@ -19011,7 +20583,8 @@ export declare class API {
19011
20583
  value: string;
19012
20584
  }[] | null | undefined;
19013
20585
  country?: string | null | undefined;
19014
- } | undefined) => Promise<{
20586
+ redirect: boolean | null;
20587
+ } | null | undefined) => Promise<{
19015
20588
  url: string;
19016
20589
  }>;
19017
20590
  updateConnection: (connectionId: string, body?: {
@@ -19030,6 +20603,15 @@ export declare class API {
19030
20603
  };
19031
20604
  content?: undefined;
19032
20605
  }>;
20606
+ getTransactionByClientRequestId: (connectionId: string, params: {
20607
+ client_request_id: string;
20608
+ }) => Promise<{
20609
+ created_on: string;
20610
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
20611
+ route: string;
20612
+ status_code: number;
20613
+ created_entity_id?: string | null | undefined;
20614
+ }>;
19033
20615
  enableFlow: (syncId: string, flowId: string, body: {
19034
20616
  integrationids: string[];
19035
20617
  triggerid: string | null;
@@ -19635,6 +21217,30 @@ export declare class API {
19635
21217
  country?: string | null | undefined;
19636
21218
  }[] | null | undefined;
19637
21219
  }[]>;
21220
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
21221
+ id: string;
21222
+ source_ref: {
21223
+ id?: string | null | undefined;
21224
+ model?: string | null | undefined;
21225
+ };
21226
+ first_name?: string | null | undefined;
21227
+ last_name?: string | null | undefined;
21228
+ company_name?: string | null | undefined;
21229
+ phone?: string | null | undefined;
21230
+ email?: string | null | undefined;
21231
+ account_number?: string | null | undefined;
21232
+ created_on?: string | null | undefined;
21233
+ addresses?: {
21234
+ address_type?: string | null | undefined;
21235
+ name?: string | null | undefined;
21236
+ street?: string | null | undefined;
21237
+ number?: string | null | undefined;
21238
+ box?: string | null | undefined;
21239
+ city?: string | null | undefined;
21240
+ postal_code?: string | null | undefined;
21241
+ country?: string | null | undefined;
21242
+ }[] | null | undefined;
21243
+ }>;
19638
21244
  getInvoices(params?: {
19639
21245
  date_from: string;
19640
21246
  date_to: string;
@@ -19737,6 +21343,20 @@ export declare class API {
19737
21343
  untaxed_amount: number;
19738
21344
  total: number;
19739
21345
  }[]>;
21346
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
21347
+ items: {
21348
+ id: string;
21349
+ source_ref: {
21350
+ id?: string | null | undefined;
21351
+ model?: string | null | undefined;
21352
+ };
21353
+ label?: string | null | undefined;
21354
+ rate?: number | null | undefined;
21355
+ }[];
21356
+ total: number;
21357
+ page: number;
21358
+ size: number;
21359
+ }>;
19740
21360
  }>;
19741
21361
  payment: import("../types/api").ApiFor<{
19742
21362
  getPayments(params: {
@@ -20288,6 +21908,12 @@ export declare class API {
20288
21908
  reference?: string | null | undefined;
20289
21909
  payment_communication?: string | null | undefined;
20290
21910
  customer_memo?: string | null | undefined;
21911
+ payment_term_id?: string | null | undefined;
21912
+ withholding_tax?: {
21913
+ tax_rate: number;
21914
+ tax_code: string;
21915
+ tax_amount: number;
21916
+ } | null | undefined;
20291
21917
  invoice_date: string;
20292
21918
  due_date: string;
20293
21919
  partner_id?: string | null | undefined;
@@ -20330,10 +21956,14 @@ export declare class API {
20330
21956
  description: string;
20331
21957
  analytic_account?: string | null | undefined;
20332
21958
  }[];
21959
+ start_date?: string | null | undefined;
21960
+ end_date?: string | null | undefined;
21961
+ payment_method_id?: string | null | undefined;
20333
21962
  }, params?: {
20334
21963
  folder_id?: string | null | undefined;
20335
21964
  force_financial_period?: string | null | undefined;
20336
21965
  regroup_lines?: "true" | "false" | null | undefined;
21966
+ ignore_accounting_id?: boolean | undefined;
20337
21967
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
20338
21968
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
20339
21969
  invoice_number?: string | null | undefined;
@@ -20344,10 +21974,16 @@ export declare class API {
20344
21974
  reference?: string | null | undefined;
20345
21975
  payment_communication?: string | null | undefined;
20346
21976
  customer_memo?: string | null | undefined;
21977
+ payment_term_id?: string | null | undefined;
21978
+ withholding_tax?: {
21979
+ tax_rate: number;
21980
+ tax_code: string;
21981
+ tax_amount: number;
21982
+ } | null | undefined;
20347
21983
  id?: string | null | undefined;
20348
21984
  invoice_date: string;
20349
21985
  due_date: string;
20350
- partner_id: string;
21986
+ partner_id: string | null;
20351
21987
  journal_id?: string | null | undefined;
20352
21988
  payments?: {
20353
21989
  id: string;
@@ -20405,8 +22041,22 @@ export declare class API {
20405
22041
  due_dates: {
20406
22042
  due_date: string;
20407
22043
  payment_method?: string | null | undefined;
22044
+ payment_method_id?: string | null | undefined;
20408
22045
  amount: number;
20409
22046
  }[] | null;
22047
+ attachments_info?: {
22048
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22049
+ attachments: {
22050
+ filename?: string | null | undefined;
22051
+ url?: string | null | undefined;
22052
+ }[] | null;
22053
+ } | undefined;
22054
+ accounting_info?: {
22055
+ main_currency?: string | undefined;
22056
+ main_currency_total: number;
22057
+ account_number?: string | null | undefined;
22058
+ } | null | undefined;
22059
+ payment_method_id?: string | null | undefined;
20410
22060
  lines: {
20411
22061
  line_number: number | null;
20412
22062
  unit_price: number;
@@ -20432,6 +22082,12 @@ export declare class API {
20432
22082
  reference?: string | null | undefined;
20433
22083
  payment_communication?: string | null | undefined;
20434
22084
  customer_memo?: string | null | undefined;
22085
+ payment_term_id?: string | null | undefined;
22086
+ withholding_tax?: {
22087
+ tax_rate: number;
22088
+ tax_code: string;
22089
+ tax_amount: number;
22090
+ } | null | undefined;
20435
22091
  invoice_date: string;
20436
22092
  due_date: string;
20437
22093
  partner_id?: string | null | undefined;
@@ -20480,10 +22136,14 @@ export declare class API {
20480
22136
  }[];
20481
22137
  }[] | null;
20482
22138
  }[];
22139
+ start_date?: string | null | undefined;
22140
+ end_date?: string | null | undefined;
22141
+ payment_method_id?: string | null | undefined;
20483
22142
  }, params?: {
20484
22143
  folder_id?: string | null | undefined;
20485
22144
  force_financial_period?: string | null | undefined;
20486
22145
  regroup_lines?: "true" | "false" | null | undefined;
22146
+ ignore_accounting_id?: boolean | undefined;
20487
22147
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
20488
22148
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
20489
22149
  invoice_number?: string | null | undefined;
@@ -20494,10 +22154,16 @@ export declare class API {
20494
22154
  reference?: string | null | undefined;
20495
22155
  payment_communication?: string | null | undefined;
20496
22156
  customer_memo?: string | null | undefined;
22157
+ payment_term_id?: string | null | undefined;
22158
+ withholding_tax?: {
22159
+ tax_rate: number;
22160
+ tax_code: string;
22161
+ tax_amount: number;
22162
+ } | null | undefined;
20497
22163
  id?: string | null | undefined;
20498
22164
  invoice_date: string;
20499
22165
  due_date: string;
20500
- partner_id: string;
22166
+ partner_id: string | null;
20501
22167
  journal_id?: string | null | undefined;
20502
22168
  payments?: {
20503
22169
  id: string;
@@ -20555,8 +22221,22 @@ export declare class API {
20555
22221
  due_dates: {
20556
22222
  due_date: string;
20557
22223
  payment_method?: string | null | undefined;
22224
+ payment_method_id?: string | null | undefined;
20558
22225
  amount: number;
20559
22226
  }[] | null;
22227
+ attachments_info?: {
22228
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22229
+ attachments: {
22230
+ filename?: string | null | undefined;
22231
+ url?: string | null | undefined;
22232
+ }[] | null;
22233
+ } | undefined;
22234
+ accounting_info?: {
22235
+ main_currency?: string | undefined;
22236
+ main_currency_total: number;
22237
+ account_number?: string | null | undefined;
22238
+ } | null | undefined;
22239
+ payment_method_id?: string | null | undefined;
20560
22240
  lines: {
20561
22241
  line_number: number | null;
20562
22242
  unit_price: number;
@@ -20598,10 +22278,16 @@ export declare class API {
20598
22278
  reference?: string | null | undefined;
20599
22279
  payment_communication?: string | null | undefined;
20600
22280
  customer_memo?: string | null | undefined;
22281
+ payment_term_id?: string | null | undefined;
22282
+ withholding_tax?: {
22283
+ tax_rate: number;
22284
+ tax_code: string;
22285
+ tax_amount: number;
22286
+ } | null | undefined;
20601
22287
  id?: string | null | undefined;
20602
22288
  invoice_date: string;
20603
22289
  due_date: string;
20604
- partner_id: string;
22290
+ partner_id: string | null;
20605
22291
  journal_id?: string | null | undefined;
20606
22292
  payments?: {
20607
22293
  id: string;
@@ -20659,8 +22345,22 @@ export declare class API {
20659
22345
  due_dates: {
20660
22346
  due_date: string;
20661
22347
  payment_method?: string | null | undefined;
22348
+ payment_method_id?: string | null | undefined;
20662
22349
  amount: number;
20663
22350
  }[] | null;
22351
+ attachments_info?: {
22352
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22353
+ attachments: {
22354
+ filename?: string | null | undefined;
22355
+ url?: string | null | undefined;
22356
+ }[] | null;
22357
+ } | undefined;
22358
+ accounting_info?: {
22359
+ main_currency?: string | undefined;
22360
+ main_currency_total: number;
22361
+ account_number?: string | null | undefined;
22362
+ } | null | undefined;
22363
+ payment_method_id?: string | null | undefined;
20664
22364
  lines: {
20665
22365
  line_number: number | null;
20666
22366
  unit_price: number;
@@ -20691,10 +22391,16 @@ export declare class API {
20691
22391
  reference?: string | null | undefined;
20692
22392
  payment_communication?: string | null | undefined;
20693
22393
  customer_memo?: string | null | undefined;
22394
+ payment_term_id?: string | null | undefined;
22395
+ withholding_tax?: {
22396
+ tax_rate: number;
22397
+ tax_code: string;
22398
+ tax_amount: number;
22399
+ } | null | undefined;
20694
22400
  id?: string | null | undefined;
20695
22401
  invoice_date: string;
20696
22402
  due_date: string;
20697
- partner_id: string;
22403
+ partner_id: string | null;
20698
22404
  journal_id?: string | null | undefined;
20699
22405
  payments?: {
20700
22406
  id: string;
@@ -20752,8 +22458,22 @@ export declare class API {
20752
22458
  due_dates: {
20753
22459
  due_date: string;
20754
22460
  payment_method?: string | null | undefined;
22461
+ payment_method_id?: string | null | undefined;
20755
22462
  amount: number;
20756
22463
  }[] | null;
22464
+ attachments_info?: {
22465
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22466
+ attachments: {
22467
+ filename?: string | null | undefined;
22468
+ url?: string | null | undefined;
22469
+ }[] | null;
22470
+ } | undefined;
22471
+ accounting_info?: {
22472
+ main_currency?: string | undefined;
22473
+ main_currency_total: number;
22474
+ account_number?: string | null | undefined;
22475
+ } | null | undefined;
22476
+ payment_method_id?: string | null | undefined;
20757
22477
  lines: {
20758
22478
  line_number: number | null;
20759
22479
  unit_price: number;
@@ -20784,10 +22504,16 @@ export declare class API {
20784
22504
  reference?: string | null | undefined;
20785
22505
  payment_communication?: string | null | undefined;
20786
22506
  customer_memo?: string | null | undefined;
22507
+ payment_term_id?: string | null | undefined;
22508
+ withholding_tax?: {
22509
+ tax_rate: number;
22510
+ tax_code: string;
22511
+ tax_amount: number;
22512
+ } | null | undefined;
20787
22513
  id?: string | null | undefined;
20788
22514
  invoice_date: string;
20789
22515
  due_date: string;
20790
- partner_id: string;
22516
+ partner_id: string | null;
20791
22517
  journal_id?: string | null | undefined;
20792
22518
  payments?: {
20793
22519
  id: string;
@@ -20845,8 +22571,22 @@ export declare class API {
20845
22571
  due_dates: {
20846
22572
  due_date: string;
20847
22573
  payment_method?: string | null | undefined;
22574
+ payment_method_id?: string | null | undefined;
20848
22575
  amount: number;
20849
22576
  }[] | null;
22577
+ attachments_info?: {
22578
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22579
+ attachments: {
22580
+ filename?: string | null | undefined;
22581
+ url?: string | null | undefined;
22582
+ }[] | null;
22583
+ } | undefined;
22584
+ accounting_info?: {
22585
+ main_currency?: string | undefined;
22586
+ main_currency_total: number;
22587
+ account_number?: string | null | undefined;
22588
+ } | null | undefined;
22589
+ payment_method_id?: string | null | undefined;
20850
22590
  lines: {
20851
22591
  line_number: number | null;
20852
22592
  unit_price: number;
@@ -20888,10 +22628,16 @@ export declare class API {
20888
22628
  reference?: string | null | undefined;
20889
22629
  payment_communication?: string | null | undefined;
20890
22630
  customer_memo?: string | null | undefined;
22631
+ payment_term_id?: string | null | undefined;
22632
+ withholding_tax?: {
22633
+ tax_rate: number;
22634
+ tax_code: string;
22635
+ tax_amount: number;
22636
+ } | null | undefined;
20891
22637
  id?: string | null | undefined;
20892
22638
  invoice_date: string;
20893
22639
  due_date: string;
20894
- partner_id: string;
22640
+ partner_id: string | null;
20895
22641
  journal_id?: string | null | undefined;
20896
22642
  payments?: {
20897
22643
  id: string;
@@ -20949,8 +22695,22 @@ export declare class API {
20949
22695
  due_dates: {
20950
22696
  due_date: string;
20951
22697
  payment_method?: string | null | undefined;
22698
+ payment_method_id?: string | null | undefined;
20952
22699
  amount: number;
20953
22700
  }[] | null;
22701
+ attachments_info?: {
22702
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22703
+ attachments: {
22704
+ filename?: string | null | undefined;
22705
+ url?: string | null | undefined;
22706
+ }[] | null;
22707
+ } | undefined;
22708
+ accounting_info?: {
22709
+ main_currency?: string | undefined;
22710
+ main_currency_total: number;
22711
+ account_number?: string | null | undefined;
22712
+ } | null | undefined;
22713
+ payment_method_id?: string | null | undefined;
20954
22714
  lines: {
20955
22715
  line_number: number | null;
20956
22716
  unit_price: number;
@@ -21098,7 +22858,7 @@ export declare class API {
21098
22858
  folder_id?: string | null | undefined;
21099
22859
  updated_after?: string | null | undefined;
21100
22860
  unposted_allowed: "true" | "false";
21101
- journal_id: string;
22861
+ journal_id?: string | null | undefined;
21102
22862
  partner_id?: string | null | undefined;
21103
22863
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21104
22864
  reference?: string | null | undefined;
@@ -21112,9 +22872,17 @@ export declare class API {
21112
22872
  due_dates: {
21113
22873
  due_date: string;
21114
22874
  payment_method?: string | null | undefined;
22875
+ payment_method_id?: string | null | undefined;
21115
22876
  debit: number | null;
21116
22877
  credit: number | null;
21117
22878
  }[] | null;
22879
+ attachments_info?: {
22880
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22881
+ attachments: {
22882
+ filename?: string | null | undefined;
22883
+ url?: string | null | undefined;
22884
+ }[] | null;
22885
+ } | undefined;
21118
22886
  items: {
21119
22887
  account_number: string;
21120
22888
  partner_id?: string | null | undefined;
@@ -21137,7 +22905,7 @@ export declare class API {
21137
22905
  folder_id?: string | null | undefined;
21138
22906
  updated_after?: string | null | undefined;
21139
22907
  unposted_allowed: "true" | "false";
21140
- journal_id: string;
22908
+ journal_id?: string | null | undefined;
21141
22909
  partner_id?: string | null | undefined;
21142
22910
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21143
22911
  reference?: string | null | undefined;
@@ -21151,9 +22919,17 @@ export declare class API {
21151
22919
  due_dates: {
21152
22920
  due_date: string;
21153
22921
  payment_method?: string | null | undefined;
22922
+ payment_method_id?: string | null | undefined;
21154
22923
  debit: number | null;
21155
22924
  credit: number | null;
21156
22925
  }[] | null;
22926
+ attachments_info?: {
22927
+ status: "unknown" | "yes" | "yes_to_request" | "no";
22928
+ attachments: {
22929
+ filename?: string | null | undefined;
22930
+ url?: string | null | undefined;
22931
+ }[] | null;
22932
+ } | undefined;
21157
22933
  items: {
21158
22934
  account_number: string;
21159
22935
  partner_id?: string | null | undefined;
@@ -21243,6 +23019,7 @@ export declare class API {
21243
23019
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21244
23020
  id: string;
21245
23021
  code?: string | null | undefined;
23022
+ active: boolean | null;
21246
23023
  label: string;
21247
23024
  scope: "unknown" | "nat" | "eu" | "int" | null;
21248
23025
  rate: number;
@@ -21250,6 +23027,7 @@ export declare class API {
21250
23027
  deductible_account?: string | null | undefined;
21251
23028
  payable_account?: string | null | undefined;
21252
23029
  reversed: boolean | null;
23030
+ withholding_tax: boolean | null;
21253
23031
  country?: string | null | undefined;
21254
23032
  }[]>;
21255
23033
  getMiscOperations(params?: {
@@ -21352,12 +23130,14 @@ export declare class API {
21352
23130
  getChartOfAccounts(params?: {
21353
23131
  folder_id?: string | null | undefined;
21354
23132
  classes?: string | null | undefined;
21355
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
23133
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
21356
23134
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21357
23135
  number: string;
21358
23136
  name: string;
21359
23137
  active: boolean | null;
21360
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
23138
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
23139
+ scheme_ids?: string[] | null | undefined;
23140
+ accounting_category?: string | null | undefined;
21361
23141
  }[]>;
21362
23142
  getBalanceOfAccounts(filter: {
21363
23143
  accounts: string[];
@@ -21433,6 +23213,7 @@ export declare class API {
21433
23213
  account: string;
21434
23214
  amount: number;
21435
23215
  description?: string | null | undefined;
23216
+ automated_matching_number?: string | null | undefined;
21436
23217
  }[];
21437
23218
  pdf?: string | null | undefined;
21438
23219
  }, params?: {
@@ -21451,6 +23232,7 @@ export declare class API {
21451
23232
  account: string;
21452
23233
  amount: number;
21453
23234
  description?: string | null | undefined;
23235
+ automated_matching_number?: string | null | undefined;
21454
23236
  counterpart_account: string;
21455
23237
  }[];
21456
23238
  }>;
@@ -21478,6 +23260,13 @@ export declare class API {
21478
23260
  }[];
21479
23261
  }[] | null;
21480
23262
  tax_code?: string | null | undefined;
23263
+ tax_info?: {
23264
+ tax_code: string;
23265
+ tax_amount: number;
23266
+ vat_account?: string | null | undefined;
23267
+ reversed_vat_account?: string | null | undefined;
23268
+ description?: string | null | undefined;
23269
+ } | null | undefined;
21481
23270
  account_info?: {
21482
23271
  account_number: string;
21483
23272
  account_name: string;
@@ -21490,6 +23279,7 @@ export declare class API {
21490
23279
  }, params?: {
21491
23280
  folder_id?: string | null | undefined;
21492
23281
  force_currency_exchange?: "true" | "false" | null | undefined;
23282
+ ignore_accounting_id?: boolean | undefined;
21493
23283
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
21494
23284
  reference?: string | null | undefined;
21495
23285
  due_date?: string | null | undefined;
@@ -21502,9 +23292,17 @@ export declare class API {
21502
23292
  due_dates: {
21503
23293
  due_date: string;
21504
23294
  payment_method?: string | null | undefined;
23295
+ payment_method_id?: string | null | undefined;
21505
23296
  debit: number | null;
21506
23297
  credit: number | null;
21507
23298
  }[] | null;
23299
+ attachments_info?: {
23300
+ status: "unknown" | "yes" | "yes_to_request" | "no";
23301
+ attachments: {
23302
+ filename?: string | null | undefined;
23303
+ url?: string | null | undefined;
23304
+ }[] | null;
23305
+ } | undefined;
21508
23306
  items: {
21509
23307
  account_number: string;
21510
23308
  partner_id?: string | null | undefined;
@@ -21620,14 +23418,35 @@ export declare class API {
21620
23418
  createLedgerAccount(account: {
21621
23419
  name: string;
21622
23420
  number: string;
21623
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
23421
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
21624
23422
  }, params?: {
21625
23423
  folder_id?: string | null | undefined;
21626
23424
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
21627
23425
  number: string;
21628
23426
  name: string;
21629
23427
  active: boolean | null;
21630
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
23428
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
23429
+ scheme_ids?: string[] | null | undefined;
23430
+ accounting_category?: string | null | undefined;
23431
+ }>;
23432
+ getBankAccounts(params?: {
23433
+ folder_id?: string | null | undefined;
23434
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
23435
+ items: {
23436
+ id: string;
23437
+ code?: string | null | undefined;
23438
+ currency?: string | null | undefined;
23439
+ account_name?: string | null | undefined;
23440
+ account_number?: string | null | undefined;
23441
+ iban?: string | null | undefined;
23442
+ bank_name?: string | null | undefined;
23443
+ journal_id?: string | null | undefined;
23444
+ ledger_account?: string | null | undefined;
23445
+ unallocated_account?: string | null | undefined;
23446
+ }[];
23447
+ total: number;
23448
+ page: number;
23449
+ size: number;
21631
23450
  }>;
21632
23451
  createBankAccount(bankAccount: {
21633
23452
  code: string;
@@ -21650,6 +23469,45 @@ export declare class API {
21650
23469
  ledger_account?: string | null | undefined;
21651
23470
  unallocated_account?: string | null | undefined;
21652
23471
  }>;
23472
+ createBankTransactions(bankStatement: {
23473
+ bank_statement_date: string;
23474
+ bank_account_id: string;
23475
+ external_bank_statement_id: string;
23476
+ opening_balance?: number | null | undefined;
23477
+ pdf?: string | null | undefined;
23478
+ items: {
23479
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
23480
+ account?: string | null | undefined;
23481
+ description?: string | null | undefined;
23482
+ external_transaction_id?: string | null | undefined;
23483
+ date: string;
23484
+ amount: number;
23485
+ fee_amount: number | null;
23486
+ tax_amount: number | null;
23487
+ currency: string;
23488
+ currency_exchange_rate: number | null;
23489
+ }[];
23490
+ }, params?: {
23491
+ folder_id?: string | null | undefined;
23492
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
23493
+ bank_statement_date: string;
23494
+ bank_account_id: string;
23495
+ id?: string | null | undefined;
23496
+ external_bank_statement_id?: string | null | undefined;
23497
+ items: {
23498
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
23499
+ account?: string | null | undefined;
23500
+ description?: string | null | undefined;
23501
+ external_transaction_id?: string | null | undefined;
23502
+ date: string;
23503
+ amount: number;
23504
+ fee_amount: number | null;
23505
+ tax_amount: number | null;
23506
+ currency: string;
23507
+ currency_exchange_rate: number | null;
23508
+ id?: string | null | undefined;
23509
+ }[];
23510
+ }>;
21653
23511
  getJournalEntry(journalEntryId: string, params?: {
21654
23512
  folder_id?: string | null | undefined;
21655
23513
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -21664,9 +23522,17 @@ export declare class API {
21664
23522
  due_dates: {
21665
23523
  due_date: string;
21666
23524
  payment_method?: string | null | undefined;
23525
+ payment_method_id?: string | null | undefined;
21667
23526
  debit: number | null;
21668
23527
  credit: number | null;
21669
23528
  }[] | null;
23529
+ attachments_info?: {
23530
+ status: "unknown" | "yes" | "yes_to_request" | "no";
23531
+ attachments: {
23532
+ filename?: string | null | undefined;
23533
+ url?: string | null | undefined;
23534
+ }[] | null;
23535
+ } | undefined;
21670
23536
  items: {
21671
23537
  account_number: string;
21672
23538
  partner_id?: string | null | undefined;
@@ -21701,6 +23567,29 @@ export declare class API {
21701
23567
  page: number;
21702
23568
  size: number;
21703
23569
  }>;
23570
+ getPaymentTerms(params?: {
23571
+ folder_id?: string | null | undefined;
23572
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
23573
+ items: {
23574
+ id: string;
23575
+ name?: string | null | undefined;
23576
+ }[];
23577
+ total: number;
23578
+ page: number;
23579
+ size: number;
23580
+ }>;
23581
+ getSchemes(params?: {
23582
+ folder_id?: string | null | undefined;
23583
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
23584
+ items: {
23585
+ id: string;
23586
+ code: string;
23587
+ name: string;
23588
+ }[];
23589
+ total: number;
23590
+ page: number;
23591
+ size: number;
23592
+ }>;
21704
23593
  createInvoicePayment(body: {
21705
23594
  date: string;
21706
23595
  payment_method_id: string;
@@ -21720,6 +23609,29 @@ export declare class API {
21720
23609
  };
21721
23610
  content?: undefined;
21722
23611
  }>;
23612
+ exportFec(params: {
23613
+ folder_id?: string | null | undefined;
23614
+ date_from: string;
23615
+ date_to: string;
23616
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
23617
+ JournalCode: string;
23618
+ JournalLib: string;
23619
+ EcritureNum: string;
23620
+ EcritureDate: string;
23621
+ CompteNum: string;
23622
+ CompteLib: string;
23623
+ CompAuxNum: string;
23624
+ CompAuxLib: string;
23625
+ PieceRef: string;
23626
+ PieceDate: string;
23627
+ Debit: number;
23628
+ Credit: number;
23629
+ EcritureLet: string;
23630
+ DateLet: string | null;
23631
+ ValidDate: string | null;
23632
+ Montantdevise: number;
23633
+ Idevise: string;
23634
+ }[]>;
21723
23635
  }>;
21724
23636
  invoicing: import("../types/api").ApiFor<{
21725
23637
  getInvoices(params?: {
@@ -21729,6 +23641,7 @@ export declare class API {
21729
23641
  updated_after?: string | null | undefined;
21730
23642
  include_invoice_lines?: "true" | "false" | null | undefined;
21731
23643
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
23644
+ include_analytic_accounts?: "true" | "false" | null | undefined;
21732
23645
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21733
23646
  id: string;
21734
23647
  source_ref: {
@@ -21758,6 +23671,14 @@ export declare class API {
21758
23671
  product_id?: string | null | undefined;
21759
23672
  product_code?: string | null | undefined;
21760
23673
  product_name?: string | null | undefined;
23674
+ analytic_distribution: {
23675
+ analytic_plan_code: string;
23676
+ analytic_accounts: {
23677
+ analytic_account_code: string;
23678
+ analytic_account_name: string;
23679
+ percentage: number;
23680
+ }[];
23681
+ }[] | null;
21761
23682
  }[];
21762
23683
  partner_id?: string | null | undefined;
21763
23684
  invoice_number?: string | null | undefined;
@@ -21797,6 +23718,7 @@ export declare class API {
21797
23718
  }[]>;
21798
23719
  getInvoiceById(invoiceId: string, params?: {
21799
23720
  include_pdf?: "true" | "false" | null | undefined;
23721
+ include_analytic_accounts?: "true" | "false" | null | undefined;
21800
23722
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21801
23723
  id: string;
21802
23724
  source_ref: {
@@ -21826,6 +23748,14 @@ export declare class API {
21826
23748
  product_id?: string | null | undefined;
21827
23749
  product_code?: string | null | undefined;
21828
23750
  product_name?: string | null | undefined;
23751
+ analytic_distribution: {
23752
+ analytic_plan_code: string;
23753
+ analytic_accounts: {
23754
+ analytic_account_code: string;
23755
+ analytic_account_name: string;
23756
+ percentage: number;
23757
+ }[];
23758
+ }[] | null;
21829
23759
  }[];
21830
23760
  partner_id?: string | null | undefined;
21831
23761
  invoice_number?: string | null | undefined;
@@ -21947,6 +23877,14 @@ export declare class API {
21947
23877
  product_id?: string | null | undefined;
21948
23878
  product_code?: string | null | undefined;
21949
23879
  product_name?: string | null | undefined;
23880
+ analytic_distribution: {
23881
+ analytic_plan_code: string;
23882
+ analytic_accounts: {
23883
+ analytic_account_code: string;
23884
+ analytic_account_name: string;
23885
+ percentage: number;
23886
+ }[];
23887
+ }[] | null;
21950
23888
  }[];
21951
23889
  partner_id?: string | null | undefined;
21952
23890
  invoice_number?: string | null | undefined;
@@ -23525,14 +25463,18 @@ export declare class API {
23525
25463
  reference: string;
23526
25464
  reference_type: string;
23527
25465
  holder_name?: string | null | undefined;
25466
+ active: boolean | null;
23528
25467
  }[]>;
23529
- getAccountTransactions(accountId: string, params?: {
25468
+ getAccountTransactions(params: {
23530
25469
  date_from?: string | null | undefined;
23531
25470
  date_to?: string | null | undefined;
25471
+ updated_after?: string | null | undefined;
25472
+ account_id: string;
23532
25473
  date_type?: "value_date" | "execution_date" | null | undefined;
23533
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
25474
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
23534
25475
  id: string;
23535
25476
  amount: number;
25477
+ tax_amount?: number | null | undefined;
23536
25478
  currency: string;
23537
25479
  description?: string | null | undefined;
23538
25480
  additional_information?: string | null | undefined;
@@ -23542,6 +25484,17 @@ export declare class API {
23542
25484
  creation_date: string;
23543
25485
  value_date: string;
23544
25486
  execution_date: string;
25487
+ internal_transaction: boolean | null;
25488
+ 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;
25489
+ last_update_on?: string | null | undefined;
25490
+ status?: "completed" | "pending" | "declined" | null | undefined;
25491
+ attachments_info?: {
25492
+ status: "unknown" | "yes" | "yes_to_request" | "no";
25493
+ attachments: {
25494
+ filename?: string | null | undefined;
25495
+ url?: string | null | undefined;
25496
+ }[] | null;
25497
+ } | undefined;
23545
25498
  }[]>;
23546
25499
  getAccountCounterparts(params?: {
23547
25500
  date_from?: string | null | undefined;
@@ -23552,6 +25505,17 @@ export declare class API {
23552
25505
  reference?: string | null | undefined;
23553
25506
  details?: string | null | undefined;
23554
25507
  }[]>;
25508
+ getAttachments(params: {
25509
+ transaction_id: string;
25510
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
25511
+ items: {
25512
+ id: string;
25513
+ base64_string: string;
25514
+ }[];
25515
+ total: number;
25516
+ page: number;
25517
+ size: number;
25518
+ }>;
23555
25519
  }>;
23556
25520
  getDataByDataStoreId: (dataStoreId: string, params?: object | undefined) => Promise<{
23557
25521
  data: {
@@ -23591,6 +25555,7 @@ export declare class API {
23591
25555
  source_id?: string | null | undefined;
23592
25556
  target_id?: string | null | undefined;
23593
25557
  }[];
25558
+ hidden_source_ids: string[];
23594
25559
  sub_mapping_name: string;
23595
25560
  sub_mapping_description?: string | null | undefined;
23596
25561
  }[] | null | undefined;
@@ -23741,9 +25706,11 @@ export declare class API {
23741
25706
  Integrations: {
23742
25707
  getIntegrations: (params?: {
23743
25708
  status?: "active" | "inactive" | null | undefined;
25709
+ include_coverage?: "true" | "false" | null | undefined;
23744
25710
  } | undefined) => Promise<{
23745
25711
  integrationid: number;
23746
25712
  name: string;
25713
+ description?: string | null | undefined;
23747
25714
  status: "active" | "inactive";
23748
25715
  api: "Payment" | "Point of Sale" | "eCommerce" | "Accounting" | "Invoicing" | "Communication" | "Banking" | "Custom" | "Property Management System";
23749
25716
  logo_url: string;
@@ -23754,6 +25721,10 @@ export declare class API {
23754
25721
  optional: boolean;
23755
25722
  resource: string;
23756
25723
  }[] | null;
25724
+ operations_coverage: {
25725
+ operation: string;
25726
+ status: "SUPPORTED" | "NOT_IMPLEMENTED" | "NOT_SUPPORTED" | "UNDER_ANALYSIS";
25727
+ }[] | null;
23757
25728
  credentials: {
23758
25729
  name: string;
23759
25730
  optional: boolean;
@@ -23874,6 +25845,85 @@ export declare class API {
23874
25845
  }>;
23875
25846
  deleteConsumerDataStoreData: (consumerId: string, datastoreId: string, datastoreDataId: string) => Promise<void>;
23876
25847
  };
25848
+ Issues: {
25849
+ getIssues: (params?: {
25850
+ created_on?: string | undefined;
25851
+ last_seen_on?: string | undefined;
25852
+ error_code?: string | undefined;
25853
+ status?: "all" | "open" | "closed" | undefined;
25854
+ level?: "error" | "warning" | null | undefined;
25855
+ } | undefined) => Promise<{
25856
+ id: string;
25857
+ consumer_id: string;
25858
+ connection_id: string;
25859
+ integration_id: number;
25860
+ integration_name: string;
25861
+ created_on: string;
25862
+ updated_on: string;
25863
+ last_seen: string;
25864
+ error: {
25865
+ error_code: string;
25866
+ status: string;
25867
+ title: string;
25868
+ description?: string | undefined;
25869
+ };
25870
+ occurrences: number;
25871
+ level: "error" | "warning";
25872
+ }[]>;
25873
+ getIssuesByConsumerId: (consumerId: string, params?: {
25874
+ created_on?: string | undefined;
25875
+ last_seen_on?: string | undefined;
25876
+ error_code?: string | undefined;
25877
+ status?: "all" | "open" | "closed" | undefined;
25878
+ level?: "error" | "warning" | null | undefined;
25879
+ } | undefined) => Promise<{
25880
+ id: string;
25881
+ consumer_id: string;
25882
+ connection_id: string;
25883
+ integration_id: number;
25884
+ integration_name: string;
25885
+ created_on: string;
25886
+ updated_on: string;
25887
+ last_seen: string;
25888
+ error: {
25889
+ error_code: string;
25890
+ status: string;
25891
+ title: string;
25892
+ description?: string | undefined;
25893
+ };
25894
+ occurrences: number;
25895
+ level: "error" | "warning";
25896
+ }[]>;
25897
+ getIssue: (issueId: string, params?: {
25898
+ last_execution_only?: boolean | undefined;
25899
+ } | undefined) => Promise<{
25900
+ id: string;
25901
+ consumer_id: string;
25902
+ connection_id: string;
25903
+ integration_id: number;
25904
+ integration_name: string;
25905
+ created_on: string;
25906
+ updated_on: string;
25907
+ last_seen: string;
25908
+ error: {
25909
+ error_code: string;
25910
+ status: string;
25911
+ title: string;
25912
+ description?: string | undefined;
25913
+ };
25914
+ occurrences: number;
25915
+ level: "error" | "warning";
25916
+ events: {
25917
+ id: string;
25918
+ execution_id: string;
25919
+ created_on: string;
25920
+ context?: {
25921
+ [key: string]: unknown;
25922
+ } | null | undefined;
25923
+ message?: string | null | undefined;
25924
+ }[];
25925
+ }>;
25926
+ };
23877
25927
  constructor(auth: AuthType);
23878
25928
  private _setup;
23879
25929
  }