@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.
@@ -19,7 +19,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
19
19
  status: "up" | "down";
20
20
  } | null | undefined;
21
21
  }[]>;
22
- createConnection: (body?: components['schemas']['PostConnectionItem-Input']) => Promise<{
22
+ createConnection: (body?: components['schemas']['backbone_api__app__routers__connections__PostConnectionItem'] | null) => Promise<{
23
23
  url: string;
24
24
  }>;
25
25
  updateConnection: (connectionId: string, body?: components['schemas']['PatchConnectionItem']) => Promise<{
@@ -31,6 +31,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
31
31
  };
32
32
  content?: undefined;
33
33
  }>;
34
+ getTransactionByClientRequestId: (connectionId: string, params: operations[chiftOperations['getTransactionByClientRequestId']]['parameters']['query']) => Promise<{
35
+ created_on: string;
36
+ method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
37
+ route: string;
38
+ status_code: number;
39
+ created_entity_id?: string | null | undefined;
40
+ }>;
34
41
  enableFlow: (syncId: string, flowId: string, body: components['schemas']['EnableFlowConsumer']) => Promise<SimpleResponseModel>;
35
42
  getSyncUrl: (body: components['schemas']['CreateConsumerSyncItem']) => Promise<{
36
43
  url: string;
@@ -622,6 +629,30 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
622
629
  country?: string | null | undefined;
623
630
  }[] | null | undefined;
624
631
  }[]>;
632
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
633
+ id: string;
634
+ source_ref: {
635
+ id?: string | null | undefined;
636
+ model?: string | null | undefined;
637
+ };
638
+ first_name?: string | null | undefined;
639
+ last_name?: string | null | undefined;
640
+ company_name?: string | null | undefined;
641
+ phone?: string | null | undefined;
642
+ email?: string | null | undefined;
643
+ account_number?: string | null | undefined;
644
+ created_on?: string | null | undefined;
645
+ addresses?: {
646
+ address_type?: string | null | undefined;
647
+ name?: string | null | undefined;
648
+ street?: string | null | undefined;
649
+ number?: string | null | undefined;
650
+ box?: string | null | undefined;
651
+ city?: string | null | undefined;
652
+ postal_code?: string | null | undefined;
653
+ country?: string | null | undefined;
654
+ }[] | null | undefined;
655
+ }>;
625
656
  getInvoices(params?: {
626
657
  date_from: string;
627
658
  date_to: string;
@@ -724,6 +755,20 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
724
755
  untaxed_amount: number;
725
756
  total: number;
726
757
  }[]>;
758
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
759
+ items: {
760
+ id: string;
761
+ source_ref: {
762
+ id?: string | null | undefined;
763
+ model?: string | null | undefined;
764
+ };
765
+ label?: string | null | undefined;
766
+ rate?: number | null | undefined;
767
+ }[];
768
+ total: number;
769
+ page: number;
770
+ size: number;
771
+ }>;
727
772
  }>;
728
773
  payment: import("../types/api").ApiFor<{
729
774
  getPayments(params: {
@@ -1275,6 +1320,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1275
1320
  reference?: string | null | undefined;
1276
1321
  payment_communication?: string | null | undefined;
1277
1322
  customer_memo?: string | null | undefined;
1323
+ payment_term_id?: string | null | undefined;
1324
+ withholding_tax?: {
1325
+ tax_rate: number;
1326
+ tax_code: string;
1327
+ tax_amount: number;
1328
+ } | null | undefined;
1278
1329
  invoice_date: string;
1279
1330
  due_date: string;
1280
1331
  partner_id?: string | null | undefined;
@@ -1317,10 +1368,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1317
1368
  description: string;
1318
1369
  analytic_account?: string | null | undefined;
1319
1370
  }[];
1371
+ start_date?: string | null | undefined;
1372
+ end_date?: string | null | undefined;
1373
+ payment_method_id?: string | null | undefined;
1320
1374
  }, params?: {
1321
1375
  folder_id?: string | null | undefined;
1322
1376
  force_financial_period?: string | null | undefined;
1323
1377
  regroup_lines?: "true" | "false" | null | undefined;
1378
+ ignore_accounting_id?: boolean | undefined;
1324
1379
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1325
1380
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1326
1381
  invoice_number?: string | null | undefined;
@@ -1331,10 +1386,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1331
1386
  reference?: string | null | undefined;
1332
1387
  payment_communication?: string | null | undefined;
1333
1388
  customer_memo?: string | null | undefined;
1389
+ payment_term_id?: string | null | undefined;
1390
+ withholding_tax?: {
1391
+ tax_rate: number;
1392
+ tax_code: string;
1393
+ tax_amount: number;
1394
+ } | null | undefined;
1334
1395
  id?: string | null | undefined;
1335
1396
  invoice_date: string;
1336
1397
  due_date: string;
1337
- partner_id: string;
1398
+ partner_id: string | null;
1338
1399
  journal_id?: string | null | undefined;
1339
1400
  payments?: {
1340
1401
  id: string;
@@ -1392,8 +1453,22 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1392
1453
  due_dates: {
1393
1454
  due_date: string;
1394
1455
  payment_method?: string | null | undefined;
1456
+ payment_method_id?: string | null | undefined;
1395
1457
  amount: number;
1396
1458
  }[] | null;
1459
+ attachments_info?: {
1460
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1461
+ attachments: {
1462
+ filename?: string | null | undefined;
1463
+ url?: string | null | undefined;
1464
+ }[] | null;
1465
+ } | undefined;
1466
+ accounting_info?: {
1467
+ main_currency?: string | undefined;
1468
+ main_currency_total: number;
1469
+ account_number?: string | null | undefined;
1470
+ } | null | undefined;
1471
+ payment_method_id?: string | null | undefined;
1397
1472
  lines: {
1398
1473
  line_number: number | null;
1399
1474
  unit_price: number;
@@ -1419,6 +1494,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1419
1494
  reference?: string | null | undefined;
1420
1495
  payment_communication?: string | null | undefined;
1421
1496
  customer_memo?: string | null | undefined;
1497
+ payment_term_id?: string | null | undefined;
1498
+ withholding_tax?: {
1499
+ tax_rate: number;
1500
+ tax_code: string;
1501
+ tax_amount: number;
1502
+ } | null | undefined;
1422
1503
  invoice_date: string;
1423
1504
  due_date: string;
1424
1505
  partner_id?: string | null | undefined;
@@ -1467,10 +1548,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1467
1548
  }[];
1468
1549
  }[] | null;
1469
1550
  }[];
1551
+ start_date?: string | null | undefined;
1552
+ end_date?: string | null | undefined;
1553
+ payment_method_id?: string | null | undefined;
1470
1554
  }, params?: {
1471
1555
  folder_id?: string | null | undefined;
1472
1556
  force_financial_period?: string | null | undefined;
1473
1557
  regroup_lines?: "true" | "false" | null | undefined;
1558
+ ignore_accounting_id?: boolean | undefined;
1474
1559
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1475
1560
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1476
1561
  invoice_number?: string | null | undefined;
@@ -1481,10 +1566,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1481
1566
  reference?: string | null | undefined;
1482
1567
  payment_communication?: string | null | undefined;
1483
1568
  customer_memo?: string | null | undefined;
1569
+ payment_term_id?: string | null | undefined;
1570
+ withholding_tax?: {
1571
+ tax_rate: number;
1572
+ tax_code: string;
1573
+ tax_amount: number;
1574
+ } | null | undefined;
1484
1575
  id?: string | null | undefined;
1485
1576
  invoice_date: string;
1486
1577
  due_date: string;
1487
- partner_id: string;
1578
+ partner_id: string | null;
1488
1579
  journal_id?: string | null | undefined;
1489
1580
  payments?: {
1490
1581
  id: string;
@@ -1542,8 +1633,22 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1542
1633
  due_dates: {
1543
1634
  due_date: string;
1544
1635
  payment_method?: string | null | undefined;
1636
+ payment_method_id?: string | null | undefined;
1545
1637
  amount: number;
1546
1638
  }[] | null;
1639
+ attachments_info?: {
1640
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1641
+ attachments: {
1642
+ filename?: string | null | undefined;
1643
+ url?: string | null | undefined;
1644
+ }[] | null;
1645
+ } | undefined;
1646
+ accounting_info?: {
1647
+ main_currency?: string | undefined;
1648
+ main_currency_total: number;
1649
+ account_number?: string | null | undefined;
1650
+ } | null | undefined;
1651
+ payment_method_id?: string | null | undefined;
1547
1652
  lines: {
1548
1653
  line_number: number | null;
1549
1654
  unit_price: number;
@@ -1585,10 +1690,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1585
1690
  reference?: string | null | undefined;
1586
1691
  payment_communication?: string | null | undefined;
1587
1692
  customer_memo?: string | null | undefined;
1693
+ payment_term_id?: string | null | undefined;
1694
+ withholding_tax?: {
1695
+ tax_rate: number;
1696
+ tax_code: string;
1697
+ tax_amount: number;
1698
+ } | null | undefined;
1588
1699
  id?: string | null | undefined;
1589
1700
  invoice_date: string;
1590
1701
  due_date: string;
1591
- partner_id: string;
1702
+ partner_id: string | null;
1592
1703
  journal_id?: string | null | undefined;
1593
1704
  payments?: {
1594
1705
  id: string;
@@ -1646,8 +1757,22 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1646
1757
  due_dates: {
1647
1758
  due_date: string;
1648
1759
  payment_method?: string | null | undefined;
1760
+ payment_method_id?: string | null | undefined;
1649
1761
  amount: number;
1650
1762
  }[] | null;
1763
+ attachments_info?: {
1764
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1765
+ attachments: {
1766
+ filename?: string | null | undefined;
1767
+ url?: string | null | undefined;
1768
+ }[] | null;
1769
+ } | undefined;
1770
+ accounting_info?: {
1771
+ main_currency?: string | undefined;
1772
+ main_currency_total: number;
1773
+ account_number?: string | null | undefined;
1774
+ } | null | undefined;
1775
+ payment_method_id?: string | null | undefined;
1651
1776
  lines: {
1652
1777
  line_number: number | null;
1653
1778
  unit_price: number;
@@ -1678,10 +1803,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1678
1803
  reference?: string | null | undefined;
1679
1804
  payment_communication?: string | null | undefined;
1680
1805
  customer_memo?: string | null | undefined;
1806
+ payment_term_id?: string | null | undefined;
1807
+ withholding_tax?: {
1808
+ tax_rate: number;
1809
+ tax_code: string;
1810
+ tax_amount: number;
1811
+ } | null | undefined;
1681
1812
  id?: string | null | undefined;
1682
1813
  invoice_date: string;
1683
1814
  due_date: string;
1684
- partner_id: string;
1815
+ partner_id: string | null;
1685
1816
  journal_id?: string | null | undefined;
1686
1817
  payments?: {
1687
1818
  id: string;
@@ -1739,8 +1870,22 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1739
1870
  due_dates: {
1740
1871
  due_date: string;
1741
1872
  payment_method?: string | null | undefined;
1873
+ payment_method_id?: string | null | undefined;
1742
1874
  amount: number;
1743
1875
  }[] | null;
1876
+ attachments_info?: {
1877
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1878
+ attachments: {
1879
+ filename?: string | null | undefined;
1880
+ url?: string | null | undefined;
1881
+ }[] | null;
1882
+ } | undefined;
1883
+ accounting_info?: {
1884
+ main_currency?: string | undefined;
1885
+ main_currency_total: number;
1886
+ account_number?: string | null | undefined;
1887
+ } | null | undefined;
1888
+ payment_method_id?: string | null | undefined;
1744
1889
  lines: {
1745
1890
  line_number: number | null;
1746
1891
  unit_price: number;
@@ -1771,10 +1916,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1771
1916
  reference?: string | null | undefined;
1772
1917
  payment_communication?: string | null | undefined;
1773
1918
  customer_memo?: string | null | undefined;
1919
+ payment_term_id?: string | null | undefined;
1920
+ withholding_tax?: {
1921
+ tax_rate: number;
1922
+ tax_code: string;
1923
+ tax_amount: number;
1924
+ } | null | undefined;
1774
1925
  id?: string | null | undefined;
1775
1926
  invoice_date: string;
1776
1927
  due_date: string;
1777
- partner_id: string;
1928
+ partner_id: string | null;
1778
1929
  journal_id?: string | null | undefined;
1779
1930
  payments?: {
1780
1931
  id: string;
@@ -1832,8 +1983,22 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1832
1983
  due_dates: {
1833
1984
  due_date: string;
1834
1985
  payment_method?: string | null | undefined;
1986
+ payment_method_id?: string | null | undefined;
1835
1987
  amount: number;
1836
1988
  }[] | null;
1989
+ attachments_info?: {
1990
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1991
+ attachments: {
1992
+ filename?: string | null | undefined;
1993
+ url?: string | null | undefined;
1994
+ }[] | null;
1995
+ } | undefined;
1996
+ accounting_info?: {
1997
+ main_currency?: string | undefined;
1998
+ main_currency_total: number;
1999
+ account_number?: string | null | undefined;
2000
+ } | null | undefined;
2001
+ payment_method_id?: string | null | undefined;
1837
2002
  lines: {
1838
2003
  line_number: number | null;
1839
2004
  unit_price: number;
@@ -1875,10 +2040,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1875
2040
  reference?: string | null | undefined;
1876
2041
  payment_communication?: string | null | undefined;
1877
2042
  customer_memo?: string | null | undefined;
2043
+ payment_term_id?: string | null | undefined;
2044
+ withholding_tax?: {
2045
+ tax_rate: number;
2046
+ tax_code: string;
2047
+ tax_amount: number;
2048
+ } | null | undefined;
1878
2049
  id?: string | null | undefined;
1879
2050
  invoice_date: string;
1880
2051
  due_date: string;
1881
- partner_id: string;
2052
+ partner_id: string | null;
1882
2053
  journal_id?: string | null | undefined;
1883
2054
  payments?: {
1884
2055
  id: string;
@@ -1936,8 +2107,22 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1936
2107
  due_dates: {
1937
2108
  due_date: string;
1938
2109
  payment_method?: string | null | undefined;
2110
+ payment_method_id?: string | null | undefined;
1939
2111
  amount: number;
1940
2112
  }[] | null;
2113
+ attachments_info?: {
2114
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2115
+ attachments: {
2116
+ filename?: string | null | undefined;
2117
+ url?: string | null | undefined;
2118
+ }[] | null;
2119
+ } | undefined;
2120
+ accounting_info?: {
2121
+ main_currency?: string | undefined;
2122
+ main_currency_total: number;
2123
+ account_number?: string | null | undefined;
2124
+ } | null | undefined;
2125
+ payment_method_id?: string | null | undefined;
1941
2126
  lines: {
1942
2127
  line_number: number | null;
1943
2128
  unit_price: number;
@@ -2085,7 +2270,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2085
2270
  folder_id?: string | null | undefined;
2086
2271
  updated_after?: string | null | undefined;
2087
2272
  unposted_allowed: "true" | "false";
2088
- journal_id: string;
2273
+ journal_id?: string | null | undefined;
2089
2274
  partner_id?: string | null | undefined;
2090
2275
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2091
2276
  reference?: string | null | undefined;
@@ -2099,9 +2284,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2099
2284
  due_dates: {
2100
2285
  due_date: string;
2101
2286
  payment_method?: string | null | undefined;
2287
+ payment_method_id?: string | null | undefined;
2102
2288
  debit: number | null;
2103
2289
  credit: number | null;
2104
2290
  }[] | null;
2291
+ attachments_info?: {
2292
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2293
+ attachments: {
2294
+ filename?: string | null | undefined;
2295
+ url?: string | null | undefined;
2296
+ }[] | null;
2297
+ } | undefined;
2105
2298
  items: {
2106
2299
  account_number: string;
2107
2300
  partner_id?: string | null | undefined;
@@ -2124,7 +2317,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2124
2317
  folder_id?: string | null | undefined;
2125
2318
  updated_after?: string | null | undefined;
2126
2319
  unposted_allowed: "true" | "false";
2127
- journal_id: string;
2320
+ journal_id?: string | null | undefined;
2128
2321
  partner_id?: string | null | undefined;
2129
2322
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2130
2323
  reference?: string | null | undefined;
@@ -2138,9 +2331,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2138
2331
  due_dates: {
2139
2332
  due_date: string;
2140
2333
  payment_method?: string | null | undefined;
2334
+ payment_method_id?: string | null | undefined;
2141
2335
  debit: number | null;
2142
2336
  credit: number | null;
2143
2337
  }[] | null;
2338
+ attachments_info?: {
2339
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2340
+ attachments: {
2341
+ filename?: string | null | undefined;
2342
+ url?: string | null | undefined;
2343
+ }[] | null;
2344
+ } | undefined;
2144
2345
  items: {
2145
2346
  account_number: string;
2146
2347
  partner_id?: string | null | undefined;
@@ -2230,6 +2431,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2230
2431
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2231
2432
  id: string;
2232
2433
  code?: string | null | undefined;
2434
+ active: boolean | null;
2233
2435
  label: string;
2234
2436
  scope: "unknown" | "nat" | "eu" | "int" | null;
2235
2437
  rate: number;
@@ -2237,6 +2439,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2237
2439
  deductible_account?: string | null | undefined;
2238
2440
  payable_account?: string | null | undefined;
2239
2441
  reversed: boolean | null;
2442
+ withholding_tax: boolean | null;
2240
2443
  country?: string | null | undefined;
2241
2444
  }[]>;
2242
2445
  getMiscOperations(params?: {
@@ -2339,12 +2542,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2339
2542
  getChartOfAccounts(params?: {
2340
2543
  folder_id?: string | null | undefined;
2341
2544
  classes?: string | null | undefined;
2342
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
2545
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
2343
2546
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2344
2547
  number: string;
2345
2548
  name: string;
2346
2549
  active: boolean | null;
2347
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
2550
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
2551
+ scheme_ids?: string[] | null | undefined;
2552
+ accounting_category?: string | null | undefined;
2348
2553
  }[]>;
2349
2554
  getBalanceOfAccounts(filter: {
2350
2555
  accounts: string[];
@@ -2420,6 +2625,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2420
2625
  account: string;
2421
2626
  amount: number;
2422
2627
  description?: string | null | undefined;
2628
+ automated_matching_number?: string | null | undefined;
2423
2629
  }[];
2424
2630
  pdf?: string | null | undefined;
2425
2631
  }, params?: {
@@ -2438,6 +2644,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2438
2644
  account: string;
2439
2645
  amount: number;
2440
2646
  description?: string | null | undefined;
2647
+ automated_matching_number?: string | null | undefined;
2441
2648
  counterpart_account: string;
2442
2649
  }[];
2443
2650
  }>;
@@ -2465,6 +2672,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2465
2672
  }[];
2466
2673
  }[] | null;
2467
2674
  tax_code?: string | null | undefined;
2675
+ tax_info?: {
2676
+ tax_code: string;
2677
+ tax_amount: number;
2678
+ vat_account?: string | null | undefined;
2679
+ reversed_vat_account?: string | null | undefined;
2680
+ description?: string | null | undefined;
2681
+ } | null | undefined;
2468
2682
  account_info?: {
2469
2683
  account_number: string;
2470
2684
  account_name: string;
@@ -2477,6 +2691,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2477
2691
  }, params?: {
2478
2692
  folder_id?: string | null | undefined;
2479
2693
  force_currency_exchange?: "true" | "false" | null | undefined;
2694
+ ignore_accounting_id?: boolean | undefined;
2480
2695
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2481
2696
  reference?: string | null | undefined;
2482
2697
  due_date?: string | null | undefined;
@@ -2489,9 +2704,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2489
2704
  due_dates: {
2490
2705
  due_date: string;
2491
2706
  payment_method?: string | null | undefined;
2707
+ payment_method_id?: string | null | undefined;
2492
2708
  debit: number | null;
2493
2709
  credit: number | null;
2494
2710
  }[] | null;
2711
+ attachments_info?: {
2712
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2713
+ attachments: {
2714
+ filename?: string | null | undefined;
2715
+ url?: string | null | undefined;
2716
+ }[] | null;
2717
+ } | undefined;
2495
2718
  items: {
2496
2719
  account_number: string;
2497
2720
  partner_id?: string | null | undefined;
@@ -2607,14 +2830,35 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2607
2830
  createLedgerAccount(account: {
2608
2831
  name: string;
2609
2832
  number: string;
2610
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
2833
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
2611
2834
  }, params?: {
2612
2835
  folder_id?: string | null | undefined;
2613
2836
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2614
2837
  number: string;
2615
2838
  name: string;
2616
2839
  active: boolean | null;
2617
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
2840
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
2841
+ scheme_ids?: string[] | null | undefined;
2842
+ accounting_category?: string | null | undefined;
2843
+ }>;
2844
+ getBankAccounts(params?: {
2845
+ folder_id?: string | null | undefined;
2846
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2847
+ items: {
2848
+ id: string;
2849
+ code?: string | null | undefined;
2850
+ currency?: string | null | undefined;
2851
+ account_name?: string | null | undefined;
2852
+ account_number?: string | null | undefined;
2853
+ iban?: string | null | undefined;
2854
+ bank_name?: string | null | undefined;
2855
+ journal_id?: string | null | undefined;
2856
+ ledger_account?: string | null | undefined;
2857
+ unallocated_account?: string | null | undefined;
2858
+ }[];
2859
+ total: number;
2860
+ page: number;
2861
+ size: number;
2618
2862
  }>;
2619
2863
  createBankAccount(bankAccount: {
2620
2864
  code: string;
@@ -2637,6 +2881,45 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2637
2881
  ledger_account?: string | null | undefined;
2638
2882
  unallocated_account?: string | null | undefined;
2639
2883
  }>;
2884
+ createBankTransactions(bankStatement: {
2885
+ bank_statement_date: string;
2886
+ bank_account_id: string;
2887
+ external_bank_statement_id: string;
2888
+ opening_balance?: number | null | undefined;
2889
+ pdf?: string | null | undefined;
2890
+ items: {
2891
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
2892
+ account?: string | null | undefined;
2893
+ description?: string | null | undefined;
2894
+ external_transaction_id?: string | null | undefined;
2895
+ date: string;
2896
+ amount: number;
2897
+ fee_amount: number | null;
2898
+ tax_amount: number | null;
2899
+ currency: string;
2900
+ currency_exchange_rate: number | null;
2901
+ }[];
2902
+ }, params?: {
2903
+ folder_id?: string | null | undefined;
2904
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2905
+ bank_statement_date: string;
2906
+ bank_account_id: string;
2907
+ id?: string | null | undefined;
2908
+ external_bank_statement_id?: string | null | undefined;
2909
+ items: {
2910
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
2911
+ account?: string | null | undefined;
2912
+ description?: string | null | undefined;
2913
+ external_transaction_id?: string | null | undefined;
2914
+ date: string;
2915
+ amount: number;
2916
+ fee_amount: number | null;
2917
+ tax_amount: number | null;
2918
+ currency: string;
2919
+ currency_exchange_rate: number | null;
2920
+ id?: string | null | undefined;
2921
+ }[];
2922
+ }>;
2640
2923
  getJournalEntry(journalEntryId: string, params?: {
2641
2924
  folder_id?: string | null | undefined;
2642
2925
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -2651,9 +2934,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2651
2934
  due_dates: {
2652
2935
  due_date: string;
2653
2936
  payment_method?: string | null | undefined;
2937
+ payment_method_id?: string | null | undefined;
2654
2938
  debit: number | null;
2655
2939
  credit: number | null;
2656
2940
  }[] | null;
2941
+ attachments_info?: {
2942
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2943
+ attachments: {
2944
+ filename?: string | null | undefined;
2945
+ url?: string | null | undefined;
2946
+ }[] | null;
2947
+ } | undefined;
2657
2948
  items: {
2658
2949
  account_number: string;
2659
2950
  partner_id?: string | null | undefined;
@@ -2688,6 +2979,29 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2688
2979
  page: number;
2689
2980
  size: number;
2690
2981
  }>;
2982
+ getPaymentTerms(params?: {
2983
+ folder_id?: string | null | undefined;
2984
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2985
+ items: {
2986
+ id: string;
2987
+ name?: string | null | undefined;
2988
+ }[];
2989
+ total: number;
2990
+ page: number;
2991
+ size: number;
2992
+ }>;
2993
+ getSchemes(params?: {
2994
+ folder_id?: string | null | undefined;
2995
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2996
+ items: {
2997
+ id: string;
2998
+ code: string;
2999
+ name: string;
3000
+ }[];
3001
+ total: number;
3002
+ page: number;
3003
+ size: number;
3004
+ }>;
2691
3005
  createInvoicePayment(body: {
2692
3006
  date: string;
2693
3007
  payment_method_id: string;
@@ -2707,6 +3021,29 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2707
3021
  };
2708
3022
  content?: undefined;
2709
3023
  }>;
3024
+ exportFec(params: {
3025
+ folder_id?: string | null | undefined;
3026
+ date_from: string;
3027
+ date_to: string;
3028
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3029
+ JournalCode: string;
3030
+ JournalLib: string;
3031
+ EcritureNum: string;
3032
+ EcritureDate: string;
3033
+ CompteNum: string;
3034
+ CompteLib: string;
3035
+ CompAuxNum: string;
3036
+ CompAuxLib: string;
3037
+ PieceRef: string;
3038
+ PieceDate: string;
3039
+ Debit: number;
3040
+ Credit: number;
3041
+ EcritureLet: string;
3042
+ DateLet: string | null;
3043
+ ValidDate: string | null;
3044
+ Montantdevise: number;
3045
+ Idevise: string;
3046
+ }[]>;
2710
3047
  }>;
2711
3048
  invoicing: import("../types/api").ApiFor<{
2712
3049
  getInvoices(params?: {
@@ -2716,6 +3053,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2716
3053
  updated_after?: string | null | undefined;
2717
3054
  include_invoice_lines?: "true" | "false" | null | undefined;
2718
3055
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
3056
+ include_analytic_accounts?: "true" | "false" | null | undefined;
2719
3057
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2720
3058
  id: string;
2721
3059
  source_ref: {
@@ -2745,6 +3083,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2745
3083
  product_id?: string | null | undefined;
2746
3084
  product_code?: string | null | undefined;
2747
3085
  product_name?: string | null | undefined;
3086
+ analytic_distribution: {
3087
+ analytic_plan_code: string;
3088
+ analytic_accounts: {
3089
+ analytic_account_code: string;
3090
+ analytic_account_name: string;
3091
+ percentage: number;
3092
+ }[];
3093
+ }[] | null;
2748
3094
  }[];
2749
3095
  partner_id?: string | null | undefined;
2750
3096
  invoice_number?: string | null | undefined;
@@ -2784,6 +3130,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2784
3130
  }[]>;
2785
3131
  getInvoiceById(invoiceId: string, params?: {
2786
3132
  include_pdf?: "true" | "false" | null | undefined;
3133
+ include_analytic_accounts?: "true" | "false" | null | undefined;
2787
3134
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2788
3135
  id: string;
2789
3136
  source_ref: {
@@ -2813,6 +3160,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2813
3160
  product_id?: string | null | undefined;
2814
3161
  product_code?: string | null | undefined;
2815
3162
  product_name?: string | null | undefined;
3163
+ analytic_distribution: {
3164
+ analytic_plan_code: string;
3165
+ analytic_accounts: {
3166
+ analytic_account_code: string;
3167
+ analytic_account_name: string;
3168
+ percentage: number;
3169
+ }[];
3170
+ }[] | null;
2816
3171
  }[];
2817
3172
  partner_id?: string | null | undefined;
2818
3173
  invoice_number?: string | null | undefined;
@@ -2934,6 +3289,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2934
3289
  product_id?: string | null | undefined;
2935
3290
  product_code?: string | null | undefined;
2936
3291
  product_name?: string | null | undefined;
3292
+ analytic_distribution: {
3293
+ analytic_plan_code: string;
3294
+ analytic_accounts: {
3295
+ analytic_account_code: string;
3296
+ analytic_account_name: string;
3297
+ percentage: number;
3298
+ }[];
3299
+ }[] | null;
2937
3300
  }[];
2938
3301
  partner_id?: string | null | undefined;
2939
3302
  invoice_number?: string | null | undefined;
@@ -4512,14 +4875,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4512
4875
  reference: string;
4513
4876
  reference_type: string;
4514
4877
  holder_name?: string | null | undefined;
4878
+ active: boolean | null;
4515
4879
  }[]>;
4516
- getAccountTransactions(accountId: string, params?: {
4880
+ getAccountTransactions(params: {
4517
4881
  date_from?: string | null | undefined;
4518
4882
  date_to?: string | null | undefined;
4883
+ updated_after?: string | null | undefined;
4884
+ account_id: string;
4519
4885
  date_type?: "value_date" | "execution_date" | null | undefined;
4520
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4886
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4521
4887
  id: string;
4522
4888
  amount: number;
4889
+ tax_amount?: number | null | undefined;
4523
4890
  currency: string;
4524
4891
  description?: string | null | undefined;
4525
4892
  additional_information?: string | null | undefined;
@@ -4529,6 +4896,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4529
4896
  creation_date: string;
4530
4897
  value_date: string;
4531
4898
  execution_date: string;
4899
+ internal_transaction: boolean | null;
4900
+ 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;
4901
+ last_update_on?: string | null | undefined;
4902
+ status?: "completed" | "pending" | "declined" | null | undefined;
4903
+ attachments_info?: {
4904
+ status: "unknown" | "yes" | "yes_to_request" | "no";
4905
+ attachments: {
4906
+ filename?: string | null | undefined;
4907
+ url?: string | null | undefined;
4908
+ }[] | null;
4909
+ } | undefined;
4532
4910
  }[]>;
4533
4911
  getAccountCounterparts(params?: {
4534
4912
  date_from?: string | null | undefined;
@@ -4539,6 +4917,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4539
4917
  reference?: string | null | undefined;
4540
4918
  details?: string | null | undefined;
4541
4919
  }[]>;
4920
+ getAttachments(params: {
4921
+ transaction_id: string;
4922
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4923
+ items: {
4924
+ id: string;
4925
+ base64_string: string;
4926
+ }[];
4927
+ total: number;
4928
+ page: number;
4929
+ size: number;
4930
+ }>;
4542
4931
  }>;
4543
4932
  getDataByDataStoreId: (dataStoreId: string, params?: object) => Promise<{
4544
4933
  data: {
@@ -4574,6 +4963,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4574
4963
  source_id?: string | null | undefined;
4575
4964
  target_id?: string | null | undefined;
4576
4965
  }[];
4966
+ hidden_source_ids: string[];
4577
4967
  sub_mapping_name: string;
4578
4968
  sub_mapping_description?: string | null | undefined;
4579
4969
  }[] | null | undefined;