@chift/chift-nodejs 1.0.26 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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']['PostConnectionItem-Input'] | 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;
@@ -73,6 +80,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
73
80
  total_refund: number | null;
74
81
  total_tip: number | null;
75
82
  delivery_fee: number | null;
83
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
76
84
  currency?: string | null | undefined;
77
85
  country?: string | null | undefined;
78
86
  loyalty?: number | null | undefined;
@@ -151,6 +159,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
151
159
  total_refund: number | null;
152
160
  total_tip: number | null;
153
161
  delivery_fee: number | null;
162
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
154
163
  currency?: string | null | undefined;
155
164
  country?: string | null | undefined;
156
165
  loyalty?: number | null | undefined;
@@ -339,6 +348,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
339
348
  total_refund: number | null;
340
349
  total_tip: number | null;
341
350
  delivery_fee: number | null;
351
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
342
352
  currency?: string | null | undefined;
343
353
  country?: string | null | undefined;
344
354
  loyalty?: number | null | undefined;
@@ -443,6 +453,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
443
453
  total_refund: number | null;
444
454
  total_tip: number | null;
445
455
  delivery_fee: number | null;
456
+ mode?: "EAT_IN" | "TAKEAWAY" | "DELIVERY" | null | undefined;
446
457
  currency?: string | null | undefined;
447
458
  country?: string | null | undefined;
448
459
  loyalty?: number | null | undefined;
@@ -622,6 +633,30 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
622
633
  country?: string | null | undefined;
623
634
  }[] | null | undefined;
624
635
  }[]>;
636
+ getCustomer(customerId: string, rawData?: boolean | undefined): import("../types/api").RequestData<{
637
+ id: string;
638
+ source_ref: {
639
+ id?: string | null | undefined;
640
+ model?: string | null | undefined;
641
+ };
642
+ first_name?: string | null | undefined;
643
+ last_name?: string | null | undefined;
644
+ company_name?: string | null | undefined;
645
+ phone?: string | null | undefined;
646
+ email?: string | null | undefined;
647
+ account_number?: string | null | undefined;
648
+ created_on?: string | null | undefined;
649
+ addresses?: {
650
+ address_type?: string | null | undefined;
651
+ name?: string | null | undefined;
652
+ street?: string | null | undefined;
653
+ number?: string | null | undefined;
654
+ box?: string | null | undefined;
655
+ city?: string | null | undefined;
656
+ postal_code?: string | null | undefined;
657
+ country?: string | null | undefined;
658
+ }[] | null | undefined;
659
+ }>;
625
660
  getInvoices(params?: {
626
661
  date_from: string;
627
662
  date_to: string;
@@ -724,6 +759,20 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
724
759
  untaxed_amount: number;
725
760
  total: number;
726
761
  }[]>;
762
+ getTaxes(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
763
+ items: {
764
+ id: string;
765
+ source_ref: {
766
+ id?: string | null | undefined;
767
+ model?: string | null | undefined;
768
+ };
769
+ label?: string | null | undefined;
770
+ rate?: number | null | undefined;
771
+ }[];
772
+ total: number;
773
+ page: number;
774
+ size: number;
775
+ }>;
727
776
  }>;
728
777
  payment: import("../types/api").ApiFor<{
729
778
  getPayments(params: {
@@ -857,6 +906,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
857
906
  postal_code?: string | null | undefined;
858
907
  country?: string | null | undefined;
859
908
  }[] | null;
909
+ third_party_account?: string | null | undefined;
860
910
  }[]>;
861
911
  createClient(client: {
862
912
  external_reference?: string | null | undefined;
@@ -930,6 +980,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
930
980
  postal_code?: string | null | undefined;
931
981
  country?: string | null | undefined;
932
982
  }[] | null;
983
+ third_party_account?: string | null | undefined;
933
984
  }>;
934
985
  getClient(clientId: string, params?: {
935
986
  folder_id?: string | null | undefined;
@@ -969,6 +1020,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
969
1020
  postal_code?: string | null | undefined;
970
1021
  country?: string | null | undefined;
971
1022
  }[] | null;
1023
+ third_party_account?: string | null | undefined;
972
1024
  }>;
973
1025
  updateClient(clientId: string, client: {
974
1026
  external_reference?: string | null | undefined;
@@ -1040,6 +1092,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1040
1092
  postal_code?: string | null | undefined;
1041
1093
  country?: string | null | undefined;
1042
1094
  }[] | null;
1095
+ third_party_account?: string | null | undefined;
1043
1096
  }>;
1044
1097
  getSuppliers(params?: {
1045
1098
  search?: string | null | undefined;
@@ -1081,6 +1134,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1081
1134
  postal_code?: string | null | undefined;
1082
1135
  country?: string | null | undefined;
1083
1136
  }[] | null;
1137
+ third_party_account?: string | null | undefined;
1084
1138
  }[]>;
1085
1139
  createSupplier(supplier: {
1086
1140
  external_reference?: string | null | undefined;
@@ -1154,6 +1208,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1154
1208
  postal_code?: string | null | undefined;
1155
1209
  country?: string | null | undefined;
1156
1210
  }[] | null;
1211
+ third_party_account?: string | null | undefined;
1157
1212
  }>;
1158
1213
  getSupplier(supplierId: string, params?: {
1159
1214
  folder_id?: string | null | undefined;
@@ -1193,6 +1248,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1193
1248
  postal_code?: string | null | undefined;
1194
1249
  country?: string | null | undefined;
1195
1250
  }[] | null;
1251
+ third_party_account?: string | null | undefined;
1196
1252
  }>;
1197
1253
  updateSupplier(supplierId: string, supplier: {
1198
1254
  external_reference?: string | null | undefined;
@@ -1264,6 +1320,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1264
1320
  postal_code?: string | null | undefined;
1265
1321
  country?: string | null | undefined;
1266
1322
  }[] | null;
1323
+ third_party_account?: string | null | undefined;
1267
1324
  }>;
1268
1325
  createInvoice(invoice: {
1269
1326
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
@@ -1275,6 +1332,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1275
1332
  reference?: string | null | undefined;
1276
1333
  payment_communication?: string | null | undefined;
1277
1334
  customer_memo?: string | null | undefined;
1335
+ payment_term_id?: string | null | undefined;
1336
+ withholding_tax?: {
1337
+ tax_rate: number;
1338
+ tax_code: string;
1339
+ tax_amount: number;
1340
+ } | null | undefined;
1278
1341
  invoice_date: string;
1279
1342
  due_date: string;
1280
1343
  partner_id?: string | null | undefined;
@@ -1317,10 +1380,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1317
1380
  description: string;
1318
1381
  analytic_account?: string | null | undefined;
1319
1382
  }[];
1383
+ start_date?: string | null | undefined;
1384
+ end_date?: string | null | undefined;
1385
+ payment_method_id?: string | null | undefined;
1320
1386
  }, params?: {
1321
1387
  folder_id?: string | null | undefined;
1322
1388
  force_financial_period?: string | null | undefined;
1323
1389
  regroup_lines?: "true" | "false" | null | undefined;
1390
+ ignore_accounting_id?: boolean | undefined;
1391
+ force_currency_exchange?: boolean | null | undefined;
1324
1392
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1325
1393
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1326
1394
  invoice_number?: string | null | undefined;
@@ -1331,10 +1399,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1331
1399
  reference?: string | null | undefined;
1332
1400
  payment_communication?: string | null | undefined;
1333
1401
  customer_memo?: string | null | undefined;
1402
+ payment_term_id?: string | null | undefined;
1403
+ withholding_tax?: {
1404
+ tax_rate: number;
1405
+ tax_code: string;
1406
+ tax_amount: number;
1407
+ } | null | undefined;
1334
1408
  id?: string | null | undefined;
1335
1409
  invoice_date: string;
1336
1410
  due_date: string;
1337
- partner_id: string;
1411
+ partner_id: string | null;
1338
1412
  journal_id?: string | null | undefined;
1339
1413
  payments?: {
1340
1414
  id: string;
@@ -1388,12 +1462,27 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1388
1462
  postal_code?: string | null | undefined;
1389
1463
  country?: string | null | undefined;
1390
1464
  }[] | null;
1465
+ third_party_account?: string | null | undefined;
1391
1466
  } | null | undefined;
1392
1467
  due_dates: {
1393
1468
  due_date: string;
1394
1469
  payment_method?: string | null | undefined;
1470
+ payment_method_id?: string | null | undefined;
1395
1471
  amount: number;
1396
1472
  }[] | null;
1473
+ attachments_info?: {
1474
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1475
+ attachments: {
1476
+ filename?: string | null | undefined;
1477
+ url?: string | null | undefined;
1478
+ }[] | null;
1479
+ } | undefined;
1480
+ accounting_info?: {
1481
+ main_currency?: string | undefined;
1482
+ main_currency_total: number;
1483
+ account_number?: string | null | undefined;
1484
+ } | null | undefined;
1485
+ payment_method_id?: string | null | undefined;
1397
1486
  lines: {
1398
1487
  line_number: number | null;
1399
1488
  unit_price: number;
@@ -1419,6 +1508,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1419
1508
  reference?: string | null | undefined;
1420
1509
  payment_communication?: string | null | undefined;
1421
1510
  customer_memo?: string | null | undefined;
1511
+ payment_term_id?: string | null | undefined;
1512
+ withholding_tax?: {
1513
+ tax_rate: number;
1514
+ tax_code: string;
1515
+ tax_amount: number;
1516
+ } | null | undefined;
1422
1517
  invoice_date: string;
1423
1518
  due_date: string;
1424
1519
  partner_id?: string | null | undefined;
@@ -1467,10 +1562,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1467
1562
  }[];
1468
1563
  }[] | null;
1469
1564
  }[];
1565
+ start_date?: string | null | undefined;
1566
+ end_date?: string | null | undefined;
1567
+ payment_method_id?: string | null | undefined;
1470
1568
  }, params?: {
1471
1569
  folder_id?: string | null | undefined;
1472
1570
  force_financial_period?: string | null | undefined;
1473
1571
  regroup_lines?: "true" | "false" | null | undefined;
1572
+ ignore_accounting_id?: boolean | undefined;
1573
+ force_currency_exchange?: boolean | null | undefined;
1474
1574
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1475
1575
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1476
1576
  invoice_number?: string | null | undefined;
@@ -1481,10 +1581,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1481
1581
  reference?: string | null | undefined;
1482
1582
  payment_communication?: string | null | undefined;
1483
1583
  customer_memo?: string | null | undefined;
1584
+ payment_term_id?: string | null | undefined;
1585
+ withholding_tax?: {
1586
+ tax_rate: number;
1587
+ tax_code: string;
1588
+ tax_amount: number;
1589
+ } | null | undefined;
1484
1590
  id?: string | null | undefined;
1485
1591
  invoice_date: string;
1486
1592
  due_date: string;
1487
- partner_id: string;
1593
+ partner_id: string | null;
1488
1594
  journal_id?: string | null | undefined;
1489
1595
  payments?: {
1490
1596
  id: string;
@@ -1538,12 +1644,27 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1538
1644
  postal_code?: string | null | undefined;
1539
1645
  country?: string | null | undefined;
1540
1646
  }[] | null;
1647
+ third_party_account?: string | null | undefined;
1541
1648
  } | null | undefined;
1542
1649
  due_dates: {
1543
1650
  due_date: string;
1544
1651
  payment_method?: string | null | undefined;
1652
+ payment_method_id?: string | null | undefined;
1545
1653
  amount: number;
1546
1654
  }[] | null;
1655
+ attachments_info?: {
1656
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1657
+ attachments: {
1658
+ filename?: string | null | undefined;
1659
+ url?: string | null | undefined;
1660
+ }[] | null;
1661
+ } | undefined;
1662
+ accounting_info?: {
1663
+ main_currency?: string | undefined;
1664
+ main_currency_total: number;
1665
+ account_number?: string | null | undefined;
1666
+ } | null | undefined;
1667
+ payment_method_id?: string | null | undefined;
1547
1668
  lines: {
1548
1669
  line_number: number | null;
1549
1670
  unit_price: number;
@@ -1585,10 +1706,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1585
1706
  reference?: string | null | undefined;
1586
1707
  payment_communication?: string | null | undefined;
1587
1708
  customer_memo?: string | null | undefined;
1709
+ payment_term_id?: string | null | undefined;
1710
+ withholding_tax?: {
1711
+ tax_rate: number;
1712
+ tax_code: string;
1713
+ tax_amount: number;
1714
+ } | null | undefined;
1588
1715
  id?: string | null | undefined;
1589
1716
  invoice_date: string;
1590
1717
  due_date: string;
1591
- partner_id: string;
1718
+ partner_id: string | null;
1592
1719
  journal_id?: string | null | undefined;
1593
1720
  payments?: {
1594
1721
  id: string;
@@ -1642,12 +1769,27 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1642
1769
  postal_code?: string | null | undefined;
1643
1770
  country?: string | null | undefined;
1644
1771
  }[] | null;
1772
+ third_party_account?: string | null | undefined;
1645
1773
  } | null | undefined;
1646
1774
  due_dates: {
1647
1775
  due_date: string;
1648
1776
  payment_method?: string | null | undefined;
1777
+ payment_method_id?: string | null | undefined;
1649
1778
  amount: number;
1650
1779
  }[] | null;
1780
+ attachments_info?: {
1781
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1782
+ attachments: {
1783
+ filename?: string | null | undefined;
1784
+ url?: string | null | undefined;
1785
+ }[] | null;
1786
+ } | undefined;
1787
+ accounting_info?: {
1788
+ main_currency?: string | undefined;
1789
+ main_currency_total: number;
1790
+ account_number?: string | null | undefined;
1791
+ } | null | undefined;
1792
+ payment_method_id?: string | null | undefined;
1651
1793
  lines: {
1652
1794
  line_number: number | null;
1653
1795
  unit_price: number;
@@ -1678,10 +1820,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1678
1820
  reference?: string | null | undefined;
1679
1821
  payment_communication?: string | null | undefined;
1680
1822
  customer_memo?: string | null | undefined;
1823
+ payment_term_id?: string | null | undefined;
1824
+ withholding_tax?: {
1825
+ tax_rate: number;
1826
+ tax_code: string;
1827
+ tax_amount: number;
1828
+ } | null | undefined;
1681
1829
  id?: string | null | undefined;
1682
1830
  invoice_date: string;
1683
1831
  due_date: string;
1684
- partner_id: string;
1832
+ partner_id: string | null;
1685
1833
  journal_id?: string | null | undefined;
1686
1834
  payments?: {
1687
1835
  id: string;
@@ -1735,12 +1883,27 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1735
1883
  postal_code?: string | null | undefined;
1736
1884
  country?: string | null | undefined;
1737
1885
  }[] | null;
1886
+ third_party_account?: string | null | undefined;
1738
1887
  } | null | undefined;
1739
1888
  due_dates: {
1740
1889
  due_date: string;
1741
1890
  payment_method?: string | null | undefined;
1891
+ payment_method_id?: string | null | undefined;
1742
1892
  amount: number;
1743
1893
  }[] | null;
1894
+ attachments_info?: {
1895
+ status: "unknown" | "yes" | "yes_to_request" | "no";
1896
+ attachments: {
1897
+ filename?: string | null | undefined;
1898
+ url?: string | null | undefined;
1899
+ }[] | null;
1900
+ } | undefined;
1901
+ accounting_info?: {
1902
+ main_currency?: string | undefined;
1903
+ main_currency_total: number;
1904
+ account_number?: string | null | undefined;
1905
+ } | null | undefined;
1906
+ payment_method_id?: string | null | undefined;
1744
1907
  lines: {
1745
1908
  line_number: number | null;
1746
1909
  unit_price: number;
@@ -1771,10 +1934,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1771
1934
  reference?: string | null | undefined;
1772
1935
  payment_communication?: string | null | undefined;
1773
1936
  customer_memo?: string | null | undefined;
1937
+ payment_term_id?: string | null | undefined;
1938
+ withholding_tax?: {
1939
+ tax_rate: number;
1940
+ tax_code: string;
1941
+ tax_amount: number;
1942
+ } | null | undefined;
1774
1943
  id?: string | null | undefined;
1775
1944
  invoice_date: string;
1776
1945
  due_date: string;
1777
- partner_id: string;
1946
+ partner_id: string | null;
1778
1947
  journal_id?: string | null | undefined;
1779
1948
  payments?: {
1780
1949
  id: string;
@@ -1828,12 +1997,27 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1828
1997
  postal_code?: string | null | undefined;
1829
1998
  country?: string | null | undefined;
1830
1999
  }[] | null;
2000
+ third_party_account?: string | null | undefined;
1831
2001
  } | null | undefined;
1832
2002
  due_dates: {
1833
2003
  due_date: string;
1834
2004
  payment_method?: string | null | undefined;
2005
+ payment_method_id?: string | null | undefined;
1835
2006
  amount: number;
1836
2007
  }[] | null;
2008
+ attachments_info?: {
2009
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2010
+ attachments: {
2011
+ filename?: string | null | undefined;
2012
+ url?: string | null | undefined;
2013
+ }[] | null;
2014
+ } | undefined;
2015
+ accounting_info?: {
2016
+ main_currency?: string | undefined;
2017
+ main_currency_total: number;
2018
+ account_number?: string | null | undefined;
2019
+ } | null | undefined;
2020
+ payment_method_id?: string | null | undefined;
1837
2021
  lines: {
1838
2022
  line_number: number | null;
1839
2023
  unit_price: number;
@@ -1875,10 +2059,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1875
2059
  reference?: string | null | undefined;
1876
2060
  payment_communication?: string | null | undefined;
1877
2061
  customer_memo?: string | null | undefined;
2062
+ payment_term_id?: string | null | undefined;
2063
+ withholding_tax?: {
2064
+ tax_rate: number;
2065
+ tax_code: string;
2066
+ tax_amount: number;
2067
+ } | null | undefined;
1878
2068
  id?: string | null | undefined;
1879
2069
  invoice_date: string;
1880
2070
  due_date: string;
1881
- partner_id: string;
2071
+ partner_id: string | null;
1882
2072
  journal_id?: string | null | undefined;
1883
2073
  payments?: {
1884
2074
  id: string;
@@ -1932,12 +2122,27 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1932
2122
  postal_code?: string | null | undefined;
1933
2123
  country?: string | null | undefined;
1934
2124
  }[] | null;
2125
+ third_party_account?: string | null | undefined;
1935
2126
  } | null | undefined;
1936
2127
  due_dates: {
1937
2128
  due_date: string;
1938
2129
  payment_method?: string | null | undefined;
2130
+ payment_method_id?: string | null | undefined;
1939
2131
  amount: number;
1940
2132
  }[] | null;
2133
+ attachments_info?: {
2134
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2135
+ attachments: {
2136
+ filename?: string | null | undefined;
2137
+ url?: string | null | undefined;
2138
+ }[] | null;
2139
+ } | undefined;
2140
+ accounting_info?: {
2141
+ main_currency?: string | undefined;
2142
+ main_currency_total: number;
2143
+ account_number?: string | null | undefined;
2144
+ } | null | undefined;
2145
+ payment_method_id?: string | null | undefined;
1941
2146
  lines: {
1942
2147
  line_number: number | null;
1943
2148
  unit_price: number;
@@ -2085,7 +2290,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2085
2290
  folder_id?: string | null | undefined;
2086
2291
  updated_after?: string | null | undefined;
2087
2292
  unposted_allowed: "true" | "false";
2088
- journal_id: string;
2293
+ journal_id?: string | null | undefined;
2089
2294
  partner_id?: string | null | undefined;
2090
2295
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2091
2296
  reference?: string | null | undefined;
@@ -2099,9 +2304,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2099
2304
  due_dates: {
2100
2305
  due_date: string;
2101
2306
  payment_method?: string | null | undefined;
2307
+ payment_method_id?: string | null | undefined;
2102
2308
  debit: number | null;
2103
2309
  credit: number | null;
2104
2310
  }[] | null;
2311
+ attachments_info?: {
2312
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2313
+ attachments: {
2314
+ filename?: string | null | undefined;
2315
+ url?: string | null | undefined;
2316
+ }[] | null;
2317
+ } | undefined;
2105
2318
  items: {
2106
2319
  account_number: string;
2107
2320
  partner_id?: string | null | undefined;
@@ -2124,7 +2337,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2124
2337
  folder_id?: string | null | undefined;
2125
2338
  updated_after?: string | null | undefined;
2126
2339
  unposted_allowed: "true" | "false";
2127
- journal_id: string;
2340
+ journal_id?: string | null | undefined;
2128
2341
  partner_id?: string | null | undefined;
2129
2342
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2130
2343
  reference?: string | null | undefined;
@@ -2138,9 +2351,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2138
2351
  due_dates: {
2139
2352
  due_date: string;
2140
2353
  payment_method?: string | null | undefined;
2354
+ payment_method_id?: string | null | undefined;
2141
2355
  debit: number | null;
2142
2356
  credit: number | null;
2143
2357
  }[] | null;
2358
+ attachments_info?: {
2359
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2360
+ attachments: {
2361
+ filename?: string | null | undefined;
2362
+ url?: string | null | undefined;
2363
+ }[] | null;
2364
+ } | undefined;
2144
2365
  items: {
2145
2366
  account_number: string;
2146
2367
  partner_id?: string | null | undefined;
@@ -2230,6 +2451,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2230
2451
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2231
2452
  id: string;
2232
2453
  code?: string | null | undefined;
2454
+ active: boolean | null;
2233
2455
  label: string;
2234
2456
  scope: "unknown" | "nat" | "eu" | "int" | null;
2235
2457
  rate: number;
@@ -2237,6 +2459,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2237
2459
  deductible_account?: string | null | undefined;
2238
2460
  payable_account?: string | null | undefined;
2239
2461
  reversed: boolean | null;
2462
+ withholding_tax: boolean | null;
2240
2463
  country?: string | null | undefined;
2241
2464
  }[]>;
2242
2465
  getMiscOperations(params?: {
@@ -2339,12 +2562,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2339
2562
  getChartOfAccounts(params?: {
2340
2563
  folder_id?: string | null | undefined;
2341
2564
  classes?: string | null | undefined;
2342
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
2565
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
2343
2566
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2344
2567
  number: string;
2345
2568
  name: string;
2346
2569
  active: boolean | null;
2347
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
2570
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
2571
+ scheme_ids?: string[] | null | undefined;
2572
+ accounting_category?: string | null | undefined;
2348
2573
  }[]>;
2349
2574
  getBalanceOfAccounts(filter: {
2350
2575
  accounts: string[];
@@ -2420,11 +2645,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2420
2645
  account: string;
2421
2646
  amount: number;
2422
2647
  description?: string | null | undefined;
2648
+ automated_matching_number?: string | null | undefined;
2423
2649
  }[];
2424
2650
  pdf?: string | null | undefined;
2425
2651
  }, params?: {
2426
2652
  folder_id?: string | null | undefined;
2427
2653
  financial_counterpart_account?: string | null | undefined;
2654
+ force_currency_exchange?: boolean | null | undefined;
2428
2655
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2429
2656
  date: string;
2430
2657
  journal_id: string;
@@ -2438,6 +2665,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2438
2665
  account: string;
2439
2666
  amount: number;
2440
2667
  description?: string | null | undefined;
2668
+ automated_matching_number?: string | null | undefined;
2441
2669
  counterpart_account: string;
2442
2670
  }[];
2443
2671
  }>;
@@ -2465,6 +2693,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2465
2693
  }[];
2466
2694
  }[] | null;
2467
2695
  tax_code?: string | null | undefined;
2696
+ tax_info?: {
2697
+ tax_code: string;
2698
+ tax_amount: number;
2699
+ vat_account?: string | null | undefined;
2700
+ reversed_vat_account?: string | null | undefined;
2701
+ description?: string | null | undefined;
2702
+ } | null | undefined;
2468
2703
  account_info?: {
2469
2704
  account_number: string;
2470
2705
  account_name: string;
@@ -2477,6 +2712,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2477
2712
  }, params?: {
2478
2713
  folder_id?: string | null | undefined;
2479
2714
  force_currency_exchange?: "true" | "false" | null | undefined;
2715
+ ignore_accounting_id?: boolean | undefined;
2480
2716
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2481
2717
  reference?: string | null | undefined;
2482
2718
  due_date?: string | null | undefined;
@@ -2489,9 +2725,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2489
2725
  due_dates: {
2490
2726
  due_date: string;
2491
2727
  payment_method?: string | null | undefined;
2728
+ payment_method_id?: string | null | undefined;
2492
2729
  debit: number | null;
2493
2730
  credit: number | null;
2494
2731
  }[] | null;
2732
+ attachments_info?: {
2733
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2734
+ attachments: {
2735
+ filename?: string | null | undefined;
2736
+ url?: string | null | undefined;
2737
+ }[] | null;
2738
+ } | undefined;
2495
2739
  items: {
2496
2740
  account_number: string;
2497
2741
  partner_id?: string | null | undefined;
@@ -2607,14 +2851,35 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2607
2851
  createLedgerAccount(account: {
2608
2852
  name: string;
2609
2853
  number: string;
2610
- type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
2854
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
2611
2855
  }, params?: {
2612
2856
  folder_id?: string | null | undefined;
2613
2857
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2614
2858
  number: string;
2615
2859
  name: string;
2616
2860
  active: boolean | null;
2617
- type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
2861
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null | undefined;
2862
+ scheme_ids?: string[] | null | undefined;
2863
+ accounting_category?: string | null | undefined;
2864
+ }>;
2865
+ getBankAccounts(params?: {
2866
+ folder_id?: string | null | undefined;
2867
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2868
+ items: {
2869
+ id: string;
2870
+ code?: string | null | undefined;
2871
+ currency?: string | null | undefined;
2872
+ account_name?: string | null | undefined;
2873
+ account_number?: string | null | undefined;
2874
+ iban?: string | null | undefined;
2875
+ bank_name?: string | null | undefined;
2876
+ journal_id?: string | null | undefined;
2877
+ ledger_account?: string | null | undefined;
2878
+ unallocated_account?: string | null | undefined;
2879
+ }[];
2880
+ total: number;
2881
+ page: number;
2882
+ size: number;
2618
2883
  }>;
2619
2884
  createBankAccount(bankAccount: {
2620
2885
  code: string;
@@ -2637,6 +2902,45 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2637
2902
  ledger_account?: string | null | undefined;
2638
2903
  unallocated_account?: string | null | undefined;
2639
2904
  }>;
2905
+ createBankTransactions(bankStatement: {
2906
+ bank_statement_date: string;
2907
+ bank_account_id: string;
2908
+ external_bank_statement_id: string;
2909
+ opening_balance?: number | null | undefined;
2910
+ pdf?: string | null | undefined;
2911
+ items: {
2912
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
2913
+ account?: string | null | undefined;
2914
+ description?: string | null | undefined;
2915
+ external_transaction_id?: string | null | undefined;
2916
+ date: string;
2917
+ amount: number;
2918
+ fee_amount: number | null;
2919
+ tax_amount: number | null;
2920
+ currency: string;
2921
+ currency_exchange_rate: number | null;
2922
+ }[];
2923
+ }, params?: {
2924
+ folder_id?: string | null | undefined;
2925
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2926
+ bank_statement_date: string;
2927
+ bank_account_id: string;
2928
+ id?: string | null | undefined;
2929
+ external_bank_statement_id?: string | null | undefined;
2930
+ items: {
2931
+ account_type?: "customer_account" | "supplier_account" | "employee_account" | "general_account" | null | undefined;
2932
+ account?: string | null | undefined;
2933
+ description?: string | null | undefined;
2934
+ external_transaction_id?: string | null | undefined;
2935
+ date: string;
2936
+ amount: number;
2937
+ fee_amount: number | null;
2938
+ tax_amount: number | null;
2939
+ currency: string;
2940
+ currency_exchange_rate: number | null;
2941
+ id?: string | null | undefined;
2942
+ }[];
2943
+ }>;
2640
2944
  getJournalEntry(journalEntryId: string, params?: {
2641
2945
  folder_id?: string | null | undefined;
2642
2946
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -2651,9 +2955,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2651
2955
  due_dates: {
2652
2956
  due_date: string;
2653
2957
  payment_method?: string | null | undefined;
2958
+ payment_method_id?: string | null | undefined;
2654
2959
  debit: number | null;
2655
2960
  credit: number | null;
2656
2961
  }[] | null;
2962
+ attachments_info?: {
2963
+ status: "unknown" | "yes" | "yes_to_request" | "no";
2964
+ attachments: {
2965
+ filename?: string | null | undefined;
2966
+ url?: string | null | undefined;
2967
+ }[] | null;
2968
+ } | undefined;
2657
2969
  items: {
2658
2970
  account_number: string;
2659
2971
  partner_id?: string | null | undefined;
@@ -2688,6 +3000,29 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2688
3000
  page: number;
2689
3001
  size: number;
2690
3002
  }>;
3003
+ getPaymentTerms(params?: {
3004
+ folder_id?: string | null | undefined;
3005
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3006
+ items: {
3007
+ id: string;
3008
+ name?: string | null | undefined;
3009
+ }[];
3010
+ total: number;
3011
+ page: number;
3012
+ size: number;
3013
+ }>;
3014
+ getSchemes(params?: {
3015
+ folder_id?: string | null | undefined;
3016
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3017
+ items: {
3018
+ id: string;
3019
+ code: string;
3020
+ name: string;
3021
+ }[];
3022
+ total: number;
3023
+ page: number;
3024
+ size: number;
3025
+ }>;
2691
3026
  createInvoicePayment(body: {
2692
3027
  date: string;
2693
3028
  payment_method_id: string;
@@ -2707,6 +3042,29 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2707
3042
  };
2708
3043
  content?: undefined;
2709
3044
  }>;
3045
+ exportFec(params: {
3046
+ folder_id?: string | null | undefined;
3047
+ date_from: string;
3048
+ date_to: string;
3049
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3050
+ JournalCode: string;
3051
+ JournalLib: string;
3052
+ EcritureNum: string;
3053
+ EcritureDate: string;
3054
+ CompteNum: string;
3055
+ CompteLib: string;
3056
+ CompAuxNum: string;
3057
+ CompAuxLib: string;
3058
+ PieceRef: string;
3059
+ PieceDate: string;
3060
+ Debit: number;
3061
+ Credit: number;
3062
+ EcritureLet: string;
3063
+ DateLet: string | null;
3064
+ ValidDate: string | null;
3065
+ Montantdevise: number;
3066
+ Idevise: string;
3067
+ }[]>;
2710
3068
  }>;
2711
3069
  invoicing: import("../types/api").ApiFor<{
2712
3070
  getInvoices(params?: {
@@ -2716,6 +3074,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2716
3074
  updated_after?: string | null | undefined;
2717
3075
  include_invoice_lines?: "true" | "false" | null | undefined;
2718
3076
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
3077
+ include_analytic_accounts?: "true" | "false" | null | undefined;
2719
3078
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2720
3079
  id: string;
2721
3080
  source_ref: {
@@ -2745,6 +3104,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2745
3104
  product_id?: string | null | undefined;
2746
3105
  product_code?: string | null | undefined;
2747
3106
  product_name?: string | null | undefined;
3107
+ analytic_distribution: {
3108
+ analytic_plan_code: string;
3109
+ analytic_accounts: {
3110
+ analytic_account_code: string;
3111
+ analytic_account_name: string;
3112
+ percentage: number;
3113
+ }[];
3114
+ }[] | null;
2748
3115
  }[];
2749
3116
  partner_id?: string | null | undefined;
2750
3117
  invoice_number?: string | null | undefined;
@@ -2784,6 +3151,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2784
3151
  }[]>;
2785
3152
  getInvoiceById(invoiceId: string, params?: {
2786
3153
  include_pdf?: "true" | "false" | null | undefined;
3154
+ include_analytic_accounts?: "true" | "false" | null | undefined;
2787
3155
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2788
3156
  id: string;
2789
3157
  source_ref: {
@@ -2813,6 +3181,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2813
3181
  product_id?: string | null | undefined;
2814
3182
  product_code?: string | null | undefined;
2815
3183
  product_name?: string | null | undefined;
3184
+ analytic_distribution: {
3185
+ analytic_plan_code: string;
3186
+ analytic_accounts: {
3187
+ analytic_account_code: string;
3188
+ analytic_account_name: string;
3189
+ percentage: number;
3190
+ }[];
3191
+ }[] | null;
2816
3192
  }[];
2817
3193
  partner_id?: string | null | undefined;
2818
3194
  invoice_number?: string | null | undefined;
@@ -2934,6 +3310,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2934
3310
  product_id?: string | null | undefined;
2935
3311
  product_code?: string | null | undefined;
2936
3312
  product_name?: string | null | undefined;
3313
+ analytic_distribution: {
3314
+ analytic_plan_code: string;
3315
+ analytic_accounts: {
3316
+ analytic_account_code: string;
3317
+ analytic_account_name: string;
3318
+ percentage: number;
3319
+ }[];
3320
+ }[] | null;
2937
3321
  }[];
2938
3322
  partner_id?: string | null | undefined;
2939
3323
  invoice_number?: string | null | undefined;
@@ -4512,14 +4896,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4512
4896
  reference: string;
4513
4897
  reference_type: string;
4514
4898
  holder_name?: string | null | undefined;
4899
+ active: boolean | null;
4515
4900
  }[]>;
4516
- getAccountTransactions(accountId: string, params?: {
4901
+ getAccountTransactions(params: {
4517
4902
  date_from?: string | null | undefined;
4518
4903
  date_to?: string | null | undefined;
4904
+ updated_after?: string | null | undefined;
4905
+ account_id: string;
4519
4906
  date_type?: "value_date" | "execution_date" | null | undefined;
4520
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4907
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4521
4908
  id: string;
4522
4909
  amount: number;
4910
+ tax_amount?: number | null | undefined;
4523
4911
  currency: string;
4524
4912
  description?: string | null | undefined;
4525
4913
  additional_information?: string | null | undefined;
@@ -4529,6 +4917,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4529
4917
  creation_date: string;
4530
4918
  value_date: string;
4531
4919
  execution_date: string;
4920
+ internal_transaction: boolean | null;
4921
+ 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;
4922
+ last_update_on?: string | null | undefined;
4923
+ status?: "completed" | "pending" | "declined" | null | undefined;
4924
+ attachments_info?: {
4925
+ status: "unknown" | "yes" | "yes_to_request" | "no";
4926
+ attachments: {
4927
+ filename?: string | null | undefined;
4928
+ url?: string | null | undefined;
4929
+ }[] | null;
4930
+ } | undefined;
4532
4931
  }[]>;
4533
4932
  getAccountCounterparts(params?: {
4534
4933
  date_from?: string | null | undefined;
@@ -4539,6 +4938,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4539
4938
  reference?: string | null | undefined;
4540
4939
  details?: string | null | undefined;
4541
4940
  }[]>;
4941
+ getAttachments(params: {
4942
+ transaction_id: string;
4943
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4944
+ items: {
4945
+ id: string;
4946
+ base64_string: string;
4947
+ }[];
4948
+ total: number;
4949
+ page: number;
4950
+ size: number;
4951
+ }>;
4542
4952
  }>;
4543
4953
  getDataByDataStoreId: (dataStoreId: string, params?: object) => Promise<{
4544
4954
  data: {
@@ -4574,6 +4984,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4574
4984
  source_id?: string | null | undefined;
4575
4985
  target_id?: string | null | undefined;
4576
4986
  }[];
4987
+ hidden_source_ids: string[];
4577
4988
  sub_mapping_name: string;
4578
4989
  sub_mapping_description?: string | null | undefined;
4579
4990
  }[] | null | undefined;