@chift/chift-nodejs 1.0.25 → 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;
@@ -96,7 +103,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
96
103
  }[];
97
104
  items: {
98
105
  id: string;
99
- type?: "menu" | "product" | "general_discount" | null | undefined;
106
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
100
107
  menu_id?: string | null | undefined;
101
108
  quantity: number;
102
109
  unit_price: number;
@@ -174,7 +181,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
174
181
  }[];
175
182
  items: {
176
183
  id: string;
177
- type?: "menu" | "product" | "general_discount" | null | undefined;
184
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
178
185
  menu_id?: string | null | undefined;
179
186
  quantity: number;
180
187
  unit_price: number;
@@ -301,6 +308,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
301
308
  payments: {
302
309
  payment_method_id?: string | null | undefined;
303
310
  payment_method_name?: string | null | undefined;
311
+ tip: number | null;
304
312
  total: number;
305
313
  }[] | null;
306
314
  taxes: {
@@ -361,7 +369,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
361
369
  }[];
362
370
  items: {
363
371
  id: string;
364
- type?: "menu" | "product" | "general_discount" | null | undefined;
372
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
365
373
  menu_id?: string | null | undefined;
366
374
  quantity: number;
367
375
  unit_price: number;
@@ -387,6 +395,22 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
387
395
  ledger_account_code?: string | null | undefined;
388
396
  posting_account_code?: string | null | undefined;
389
397
  }[]>;
398
+ getObjectives(params: {
399
+ page?: number | undefined;
400
+ size?: number | undefined;
401
+ date_from: string;
402
+ date_to: string;
403
+ location_id?: string | null | undefined;
404
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
405
+ items: {
406
+ total: number;
407
+ tax_amount: number;
408
+ date: string;
409
+ }[];
410
+ total: number;
411
+ page: number;
412
+ size: number;
413
+ }>;
390
414
  }>;
391
415
  pms: import("../types/api").ApiFor<{
392
416
  getLocations(rawData?: boolean | undefined): import("../types/api").RequestData<{
@@ -443,7 +467,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
443
467
  id?: string | null | undefined;
444
468
  model?: string | null | undefined;
445
469
  };
446
- type?: "menu" | "product" | "general_discount" | null | undefined;
470
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
447
471
  menu_id?: string | null | undefined;
448
472
  quantity: number;
449
473
  unit_price: number;
@@ -535,6 +559,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
535
559
  payments: {
536
560
  payment_method_id?: string | null | undefined;
537
561
  payment_method_name?: string | null | undefined;
562
+ tip: number | null;
538
563
  total: number;
539
564
  }[] | null;
540
565
  taxes: {
@@ -567,6 +592,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
567
592
  model?: string | null | undefined;
568
593
  };
569
594
  } | null | undefined;
595
+ description?: string | null | undefined;
570
596
  }[]>;
571
597
  getAccountingCategories(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
572
598
  id: string;
@@ -603,6 +629,30 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
603
629
  country?: string | null | undefined;
604
630
  }[] | null | undefined;
605
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
+ }>;
606
656
  getInvoices(params?: {
607
657
  date_from: string;
608
658
  date_to: string;
@@ -643,7 +693,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
643
693
  id?: string | null | undefined;
644
694
  model?: string | null | undefined;
645
695
  };
646
- type?: "menu" | "product" | "general_discount" | null | undefined;
696
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
647
697
  menu_id?: string | null | undefined;
648
698
  quantity: number;
649
699
  unit_price: number;
@@ -679,6 +729,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
679
729
  model?: string | null | undefined;
680
730
  };
681
731
  } | null | undefined;
732
+ description?: string | null | undefined;
682
733
  }[];
683
734
  service_id?: string | null | undefined;
684
735
  reservation?: {
@@ -704,6 +755,20 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
704
755
  untaxed_amount: number;
705
756
  total: number;
706
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
+ }>;
707
772
  }>;
708
773
  payment: import("../types/api").ApiFor<{
709
774
  getPayments(params: {
@@ -744,7 +809,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
744
809
  id?: string | null | undefined;
745
810
  model?: string | null | undefined;
746
811
  };
747
- total: number;
812
+ amount: number;
748
813
  fee: number;
749
814
  currency: string;
750
815
  exchange_rate: number;
@@ -1255,9 +1320,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1255
1320
  reference?: string | null | undefined;
1256
1321
  payment_communication?: string | null | undefined;
1257
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;
1258
1329
  invoice_date: string;
1259
1330
  due_date: string;
1260
- partner_id: string;
1331
+ partner_id?: string | null | undefined;
1261
1332
  journal_id?: string | null | undefined;
1262
1333
  status: "draft" | "posted" | null;
1263
1334
  pdf?: string | null | undefined;
@@ -1297,10 +1368,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1297
1368
  description: string;
1298
1369
  analytic_account?: string | null | undefined;
1299
1370
  }[];
1371
+ start_date?: string | null | undefined;
1372
+ end_date?: string | null | undefined;
1373
+ payment_method_id?: string | null | undefined;
1300
1374
  }, params?: {
1301
1375
  folder_id?: string | null | undefined;
1302
1376
  force_financial_period?: string | null | undefined;
1303
1377
  regroup_lines?: "true" | "false" | null | undefined;
1378
+ ignore_accounting_id?: boolean | undefined;
1304
1379
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1305
1380
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1306
1381
  invoice_number?: string | null | undefined;
@@ -1311,10 +1386,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1311
1386
  reference?: string | null | undefined;
1312
1387
  payment_communication?: string | null | undefined;
1313
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;
1314
1395
  id?: string | null | undefined;
1315
1396
  invoice_date: string;
1316
1397
  due_date: string;
1317
- partner_id: string;
1398
+ partner_id: string | null;
1318
1399
  journal_id?: string | null | undefined;
1319
1400
  payments?: {
1320
1401
  id: string;
@@ -1369,6 +1450,25 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1369
1450
  country?: string | null | undefined;
1370
1451
  }[] | null;
1371
1452
  } | null | undefined;
1453
+ due_dates: {
1454
+ due_date: string;
1455
+ payment_method?: string | null | undefined;
1456
+ payment_method_id?: string | null | undefined;
1457
+ amount: number;
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;
1372
1472
  lines: {
1373
1473
  line_number: number | null;
1374
1474
  unit_price: number;
@@ -1394,9 +1494,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1394
1494
  reference?: string | null | undefined;
1395
1495
  payment_communication?: string | null | undefined;
1396
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;
1397
1503
  invoice_date: string;
1398
1504
  due_date: string;
1399
- partner_id: string;
1505
+ partner_id?: string | null | undefined;
1400
1506
  journal_id?: string | null | undefined;
1401
1507
  status: "draft" | "posted" | null;
1402
1508
  pdf?: string | null | undefined;
@@ -1442,10 +1548,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1442
1548
  }[];
1443
1549
  }[] | null;
1444
1550
  }[];
1551
+ start_date?: string | null | undefined;
1552
+ end_date?: string | null | undefined;
1553
+ payment_method_id?: string | null | undefined;
1445
1554
  }, params?: {
1446
1555
  folder_id?: string | null | undefined;
1447
1556
  force_financial_period?: string | null | undefined;
1448
1557
  regroup_lines?: "true" | "false" | null | undefined;
1558
+ ignore_accounting_id?: boolean | undefined;
1449
1559
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
1450
1560
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1451
1561
  invoice_number?: string | null | undefined;
@@ -1456,10 +1566,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1456
1566
  reference?: string | null | undefined;
1457
1567
  payment_communication?: string | null | undefined;
1458
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;
1459
1575
  id?: string | null | undefined;
1460
1576
  invoice_date: string;
1461
1577
  due_date: string;
1462
- partner_id: string;
1578
+ partner_id: string | null;
1463
1579
  journal_id?: string | null | undefined;
1464
1580
  payments?: {
1465
1581
  id: string;
@@ -1514,6 +1630,25 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1514
1630
  country?: string | null | undefined;
1515
1631
  }[] | null;
1516
1632
  } | null | undefined;
1633
+ due_dates: {
1634
+ due_date: string;
1635
+ payment_method?: string | null | undefined;
1636
+ payment_method_id?: string | null | undefined;
1637
+ amount: number;
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;
1517
1652
  lines: {
1518
1653
  line_number: number | null;
1519
1654
  unit_price: number;
@@ -1555,10 +1690,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1555
1690
  reference?: string | null | undefined;
1556
1691
  payment_communication?: string | null | undefined;
1557
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;
1558
1699
  id?: string | null | undefined;
1559
1700
  invoice_date: string;
1560
1701
  due_date: string;
1561
- partner_id: string;
1702
+ partner_id: string | null;
1562
1703
  journal_id?: string | null | undefined;
1563
1704
  payments?: {
1564
1705
  id: string;
@@ -1613,6 +1754,25 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1613
1754
  country?: string | null | undefined;
1614
1755
  }[] | null;
1615
1756
  } | null | undefined;
1757
+ due_dates: {
1758
+ due_date: string;
1759
+ payment_method?: string | null | undefined;
1760
+ payment_method_id?: string | null | undefined;
1761
+ amount: number;
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;
1616
1776
  lines: {
1617
1777
  line_number: number | null;
1618
1778
  unit_price: number;
@@ -1643,10 +1803,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1643
1803
  reference?: string | null | undefined;
1644
1804
  payment_communication?: string | null | undefined;
1645
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;
1646
1812
  id?: string | null | undefined;
1647
1813
  invoice_date: string;
1648
1814
  due_date: string;
1649
- partner_id: string;
1815
+ partner_id: string | null;
1650
1816
  journal_id?: string | null | undefined;
1651
1817
  payments?: {
1652
1818
  id: string;
@@ -1701,6 +1867,25 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1701
1867
  country?: string | null | undefined;
1702
1868
  }[] | null;
1703
1869
  } | null | undefined;
1870
+ due_dates: {
1871
+ due_date: string;
1872
+ payment_method?: string | null | undefined;
1873
+ payment_method_id?: string | null | undefined;
1874
+ amount: number;
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;
1704
1889
  lines: {
1705
1890
  line_number: number | null;
1706
1891
  unit_price: number;
@@ -1731,10 +1916,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1731
1916
  reference?: string | null | undefined;
1732
1917
  payment_communication?: string | null | undefined;
1733
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;
1734
1925
  id?: string | null | undefined;
1735
1926
  invoice_date: string;
1736
1927
  due_date: string;
1737
- partner_id: string;
1928
+ partner_id: string | null;
1738
1929
  journal_id?: string | null | undefined;
1739
1930
  payments?: {
1740
1931
  id: string;
@@ -1789,6 +1980,25 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1789
1980
  country?: string | null | undefined;
1790
1981
  }[] | null;
1791
1982
  } | null | undefined;
1983
+ due_dates: {
1984
+ due_date: string;
1985
+ payment_method?: string | null | undefined;
1986
+ payment_method_id?: string | null | undefined;
1987
+ amount: number;
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;
1792
2002
  lines: {
1793
2003
  line_number: number | null;
1794
2004
  unit_price: number;
@@ -1830,10 +2040,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1830
2040
  reference?: string | null | undefined;
1831
2041
  payment_communication?: string | null | undefined;
1832
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;
1833
2049
  id?: string | null | undefined;
1834
2050
  invoice_date: string;
1835
2051
  due_date: string;
1836
- partner_id: string;
2052
+ partner_id: string | null;
1837
2053
  journal_id?: string | null | undefined;
1838
2054
  payments?: {
1839
2055
  id: string;
@@ -1888,6 +2104,25 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1888
2104
  country?: string | null | undefined;
1889
2105
  }[] | null;
1890
2106
  } | null | undefined;
2107
+ due_dates: {
2108
+ due_date: string;
2109
+ payment_method?: string | null | undefined;
2110
+ payment_method_id?: string | null | undefined;
2111
+ amount: number;
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;
1891
2126
  lines: {
1892
2127
  line_number: number | null;
1893
2128
  unit_price: number;
@@ -2035,7 +2270,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2035
2270
  folder_id?: string | null | undefined;
2036
2271
  updated_after?: string | null | undefined;
2037
2272
  unposted_allowed: "true" | "false";
2038
- journal_id: string;
2273
+ journal_id?: string | null | undefined;
2039
2274
  partner_id?: string | null | undefined;
2040
2275
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2041
2276
  reference?: string | null | undefined;
@@ -2046,6 +2281,20 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2046
2281
  date: string | null;
2047
2282
  posted: boolean | null;
2048
2283
  id: string;
2284
+ due_dates: {
2285
+ due_date: string;
2286
+ payment_method?: string | null | undefined;
2287
+ payment_method_id?: string | null | undefined;
2288
+ debit: number | null;
2289
+ credit: number | null;
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;
2049
2298
  items: {
2050
2299
  account_number: string;
2051
2300
  partner_id?: string | null | undefined;
@@ -2068,7 +2317,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2068
2317
  folder_id?: string | null | undefined;
2069
2318
  updated_after?: string | null | undefined;
2070
2319
  unposted_allowed: "true" | "false";
2071
- journal_id: string;
2320
+ journal_id?: string | null | undefined;
2072
2321
  partner_id?: string | null | undefined;
2073
2322
  }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2074
2323
  reference?: string | null | undefined;
@@ -2079,6 +2328,20 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2079
2328
  date: string | null;
2080
2329
  posted: boolean | null;
2081
2330
  id: string;
2331
+ due_dates: {
2332
+ due_date: string;
2333
+ payment_method?: string | null | undefined;
2334
+ payment_method_id?: string | null | undefined;
2335
+ debit: number | null;
2336
+ credit: number | null;
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;
2082
2345
  items: {
2083
2346
  account_number: string;
2084
2347
  partner_id?: string | null | undefined;
@@ -2126,6 +2389,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2126
2389
  name: string;
2127
2390
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
2128
2391
  counterpart_account?: string | null | undefined;
2392
+ unallocated_account?: string | null | undefined;
2129
2393
  next_document_numbers: {
2130
2394
  bookyear_name?: string | null | undefined;
2131
2395
  next_document_number?: string | null | undefined;
@@ -2134,6 +2398,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2134
2398
  }[] | null;
2135
2399
  iban?: string | null | undefined;
2136
2400
  currency?: string | null | undefined;
2401
+ other_currencies_allowed: boolean | null;
2402
+ blocked: boolean | null;
2137
2403
  }[]>;
2138
2404
  createJournal(journal: {
2139
2405
  code: string;
@@ -2148,6 +2414,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2148
2414
  name: string;
2149
2415
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
2150
2416
  counterpart_account?: string | null | undefined;
2417
+ unallocated_account?: string | null | undefined;
2151
2418
  next_document_numbers: {
2152
2419
  bookyear_name?: string | null | undefined;
2153
2420
  next_document_number?: string | null | undefined;
@@ -2156,12 +2423,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2156
2423
  }[] | null;
2157
2424
  iban?: string | null | undefined;
2158
2425
  currency?: string | null | undefined;
2426
+ other_currencies_allowed: boolean | null;
2427
+ blocked: boolean | null;
2159
2428
  }>;
2160
2429
  getVatCodes(params?: {
2161
2430
  folder_id?: string | null | undefined;
2162
2431
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2163
2432
  id: string;
2164
2433
  code?: string | null | undefined;
2434
+ active: boolean | null;
2165
2435
  label: string;
2166
2436
  scope: "unknown" | "nat" | "eu" | "int" | null;
2167
2437
  rate: number;
@@ -2169,6 +2439,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2169
2439
  deductible_account?: string | null | undefined;
2170
2440
  payable_account?: string | null | undefined;
2171
2441
  reversed: boolean | null;
2442
+ withholding_tax: boolean | null;
2443
+ country?: string | null | undefined;
2172
2444
  }[]>;
2173
2445
  getMiscOperations(params?: {
2174
2446
  date_from?: string | null | undefined;
@@ -2270,12 +2542,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2270
2542
  getChartOfAccounts(params?: {
2271
2543
  folder_id?: string | null | undefined;
2272
2544
  classes?: string | null | undefined;
2273
- type?: "vat" | "bank" | "cash" | "income" | "expense" | null | undefined;
2545
+ type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_expense" | null | undefined;
2274
2546
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2275
2547
  number: string;
2276
2548
  name: string;
2277
2549
  active: boolean | null;
2278
- type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_financial" | "receivable" | "payable" | "other" | 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;
2279
2553
  }[]>;
2280
2554
  getBalanceOfAccounts(filter: {
2281
2555
  accounts: string[];
@@ -2339,41 +2613,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2339
2613
  reference?: string | null | undefined;
2340
2614
  } | null | undefined;
2341
2615
  }[]>;
2342
- createFinancialEntryOld(financial_entry: {
2343
- date: string;
2344
- journal_id: string;
2345
- currency: string;
2346
- currency_exchange_rate: number | null;
2347
- reference?: string | null | undefined;
2348
- number?: string | null | undefined;
2349
- items: {
2350
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
2351
- account_number: string;
2352
- partner_id?: string | null | undefined;
2353
- amount: number;
2354
- description?: string | null | undefined;
2355
- }[];
2356
- pdf?: string | null | undefined;
2357
- }, params?: {
2358
- folder_id?: string | null | undefined;
2359
- financial_counterpart_account?: string | null | undefined;
2360
- } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2361
- date: string;
2362
- journal_id: string;
2363
- currency: string;
2364
- currency_exchange_rate: number | null;
2365
- reference?: string | null | undefined;
2366
- id: string;
2367
- number: string;
2368
- items: {
2369
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
2370
- account_number: string;
2371
- partner_id?: string | null | undefined;
2372
- amount: number;
2373
- description?: string | null | undefined;
2374
- counterpart_account: string;
2375
- }[];
2376
- }>;
2377
2616
  createFinancialEntry(financial_entry: {
2378
2617
  date: string;
2379
2618
  journal_id: string;
@@ -2386,6 +2625,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2386
2625
  account: string;
2387
2626
  amount: number;
2388
2627
  description?: string | null | undefined;
2628
+ automated_matching_number?: string | null | undefined;
2389
2629
  }[];
2390
2630
  pdf?: string | null | undefined;
2391
2631
  }, params?: {
@@ -2404,62 +2644,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2404
2644
  account: string;
2405
2645
  amount: number;
2406
2646
  description?: string | null | undefined;
2647
+ automated_matching_number?: string | null | undefined;
2407
2648
  counterpart_account: string;
2408
2649
  }[];
2409
2650
  }>;
2410
- createJournalEntryOld(journal_entry: {
2411
- reference?: string | null | undefined;
2412
- due_date?: string | null | undefined;
2413
- journal_id: string;
2414
- name: string;
2415
- date: string;
2416
- items: {
2417
- account_number: string;
2418
- partner_id?: string | null | undefined;
2419
- description?: string | null | undefined;
2420
- debit: number;
2421
- credit: number;
2422
- currency: string;
2423
- currency_exchange_rate: number | null;
2424
- analytic_distribution: {
2425
- analytic_plan: string;
2426
- analytic_accounts: {
2427
- analytic_account: string;
2428
- percentage: number;
2429
- }[];
2430
- }[] | null;
2431
- }[];
2432
- pdf?: string | null | undefined;
2433
- }, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2434
- reference?: string | null | undefined;
2435
- due_date?: string | null | undefined;
2436
- journal_id: string;
2437
- name?: string | null | undefined;
2438
- journal_name?: string | null | undefined;
2439
- date: string | null;
2440
- posted: boolean | null;
2441
- id: string;
2442
- items: {
2443
- account_number: string;
2444
- partner_id?: string | null | undefined;
2445
- description?: string | null | undefined;
2446
- debit: number;
2447
- credit: number;
2448
- currency: string;
2449
- currency_exchange_rate: number | null;
2450
- id: string;
2451
- partner_name?: string | null | undefined;
2452
- account_name: string;
2453
- matching_numbers: string[] | null;
2454
- analytic_distribution: {
2455
- analytic_plan: string;
2456
- analytic_accounts: {
2457
- analytic_account: string;
2458
- percentage: number;
2459
- }[];
2460
- }[] | null;
2461
- }[] | null;
2462
- }>;
2463
2651
  createJournalEntry(journal_entry: {
2464
2652
  reference?: string | null | undefined;
2465
2653
  due_date?: string | null | undefined;
@@ -2470,7 +2658,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2470
2658
  date: string;
2471
2659
  items: {
2472
2660
  account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
2473
- account: string;
2661
+ account?: string | null | undefined;
2474
2662
  force_general_account?: string | null | undefined;
2475
2663
  prioritise_thirdparty_account: boolean | null;
2476
2664
  description?: string | null | undefined;
@@ -2484,7 +2672,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2484
2672
  }[];
2485
2673
  }[] | null;
2486
2674
  tax_code?: string | null | undefined;
2487
- country?: 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;
2488
2682
  account_info?: {
2489
2683
  account_number: string;
2490
2684
  account_name: string;
@@ -2497,6 +2691,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2497
2691
  }, params?: {
2498
2692
  folder_id?: string | null | undefined;
2499
2693
  force_currency_exchange?: "true" | "false" | null | undefined;
2694
+ ignore_accounting_id?: boolean | undefined;
2500
2695
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2501
2696
  reference?: string | null | undefined;
2502
2697
  due_date?: string | null | undefined;
@@ -2506,6 +2701,20 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2506
2701
  date: string | null;
2507
2702
  posted: boolean | null;
2508
2703
  id: string;
2704
+ due_dates: {
2705
+ due_date: string;
2706
+ payment_method?: string | null | undefined;
2707
+ payment_method_id?: string | null | undefined;
2708
+ debit: number | null;
2709
+ credit: number | null;
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;
2509
2718
  items: {
2510
2719
  account_number: string;
2511
2720
  partner_id?: string | null | undefined;
@@ -2550,12 +2759,65 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2550
2759
  [key: string]: unknown;
2551
2760
  } | null | undefined;
2552
2761
  }[]>;
2762
+ createExpense(expense: {
2763
+ employee_id: string;
2764
+ total: number;
2765
+ untaxed_amount: number;
2766
+ tax_amount: number;
2767
+ reference?: string | null | undefined;
2768
+ number?: string | null | undefined;
2769
+ currency: string;
2770
+ currency_exchange_rate: number | null;
2771
+ date: string;
2772
+ pdf?: string | null | undefined;
2773
+ lines: {
2774
+ total: number;
2775
+ untaxed_amount: number;
2776
+ tax_amount: number;
2777
+ description?: string | null | undefined;
2778
+ account_number: string;
2779
+ tax_rate: number;
2780
+ tax_id: string;
2781
+ }[];
2782
+ }, params?: {
2783
+ folder_id?: string | null | undefined;
2784
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2785
+ employee_id: string;
2786
+ total: number;
2787
+ untaxed_amount: number;
2788
+ tax_amount: number;
2789
+ reference?: string | null | undefined;
2790
+ number?: string | null | undefined;
2791
+ currency: string;
2792
+ currency_exchange_rate: number | null;
2793
+ date: string;
2794
+ pdf?: string | null | undefined;
2795
+ lines: {
2796
+ total: number;
2797
+ untaxed_amount: number;
2798
+ tax_amount: number;
2799
+ description?: string | null | undefined;
2800
+ account_number: string;
2801
+ tax_rate: number;
2802
+ tax_id: string;
2803
+ }[];
2804
+ id: string;
2805
+ }>;
2553
2806
  getFolders(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2554
2807
  id: string;
2555
2808
  name: string;
2556
2809
  selected: boolean | null;
2557
2810
  vat?: string | null | undefined;
2558
2811
  company_number?: string | null | undefined;
2812
+ main_currency?: string | null | undefined;
2813
+ addresses?: {
2814
+ street?: string | null | undefined;
2815
+ number?: string | null | undefined;
2816
+ box?: string | null | undefined;
2817
+ postal_code?: string | null | undefined;
2818
+ city?: string | null | undefined;
2819
+ country?: string | null | undefined;
2820
+ }[] | null | undefined;
2559
2821
  }[]>;
2560
2822
  getBookyears(params?: {
2561
2823
  folder_id?: string | null | undefined;
@@ -2568,13 +2830,35 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2568
2830
  createLedgerAccount(account: {
2569
2831
  name: string;
2570
2832
  number: string;
2833
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | "other_expense" | null;
2571
2834
  }, params?: {
2572
2835
  folder_id?: string | null | undefined;
2573
2836
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2574
2837
  number: string;
2575
2838
  name: string;
2576
2839
  active: boolean | null;
2577
- type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_financial" | "receivable" | "payable" | "other" | 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;
2578
2862
  }>;
2579
2863
  createBankAccount(bankAccount: {
2580
2864
  code: string;
@@ -2595,6 +2879,46 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2595
2879
  bank_name?: string | null | undefined;
2596
2880
  journal_id?: string | null | undefined;
2597
2881
  ledger_account?: string | null | undefined;
2882
+ unallocated_account?: string | null | undefined;
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
+ }[];
2598
2922
  }>;
2599
2923
  getJournalEntry(journalEntryId: string, params?: {
2600
2924
  folder_id?: string | null | undefined;
@@ -2607,6 +2931,20 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2607
2931
  date: string | null;
2608
2932
  posted: boolean | null;
2609
2933
  id: string;
2934
+ due_dates: {
2935
+ due_date: string;
2936
+ payment_method?: string | null | undefined;
2937
+ payment_method_id?: string | null | undefined;
2938
+ debit: number | null;
2939
+ credit: number | null;
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;
2610
2948
  items: {
2611
2949
  account_number: string;
2612
2950
  partner_id?: string | null | undefined;
@@ -2628,6 +2966,84 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2628
2966
  }[] | null;
2629
2967
  }[] | null;
2630
2968
  }>;
2969
+ getPaymentMethods(params?: {
2970
+ page?: number | undefined;
2971
+ size?: number | undefined;
2972
+ folder_id?: string | null | undefined;
2973
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2974
+ items: {
2975
+ id: string;
2976
+ name?: string | null | undefined;
2977
+ }[];
2978
+ total: number;
2979
+ page: number;
2980
+ size: number;
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
+ }>;
3005
+ createInvoicePayment(body: {
3006
+ date: string;
3007
+ payment_method_id: string;
3008
+ currency: string;
3009
+ currency_exchange_rate: number | null;
3010
+ reference?: string | null | undefined;
3011
+ number?: string | null | undefined;
3012
+ items: {
3013
+ invoice_id: string;
3014
+ amount: number;
3015
+ }[];
3016
+ }, params?: {
3017
+ folder_id?: string | null | undefined;
3018
+ } | undefined): import("../types/api").RequestData<{
3019
+ headers: {
3020
+ [name: string]: unknown;
3021
+ };
3022
+ content?: undefined;
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
+ }[]>;
2631
3047
  }>;
2632
3048
  invoicing: import("../types/api").ApiFor<{
2633
3049
  getInvoices(params?: {
@@ -2637,6 +3053,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2637
3053
  updated_after?: string | null | undefined;
2638
3054
  include_invoice_lines?: "true" | "false" | null | undefined;
2639
3055
  invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
3056
+ include_analytic_accounts?: "true" | "false" | null | undefined;
2640
3057
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2641
3058
  id: string;
2642
3059
  source_ref: {
@@ -2666,6 +3083,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2666
3083
  product_id?: string | null | undefined;
2667
3084
  product_code?: string | null | undefined;
2668
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;
2669
3094
  }[];
2670
3095
  partner_id?: string | null | undefined;
2671
3096
  invoice_number?: string | null | undefined;
@@ -2698,12 +3123,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2698
3123
  } | null | undefined;
2699
3124
  last_updated_on?: string | null | undefined;
2700
3125
  outstanding_amount?: number | null | undefined;
3126
+ last_payment_date?: string | null | undefined;
2701
3127
  accounting_date?: string | null | undefined;
2702
3128
  payment_method_id?: string | null | undefined;
2703
3129
  currency_exchange_rate: number | null;
2704
3130
  }[]>;
2705
3131
  getInvoiceById(invoiceId: string, params?: {
2706
3132
  include_pdf?: "true" | "false" | null | undefined;
3133
+ include_analytic_accounts?: "true" | "false" | null | undefined;
2707
3134
  } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2708
3135
  id: string;
2709
3136
  source_ref: {
@@ -2733,6 +3160,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2733
3160
  product_id?: string | null | undefined;
2734
3161
  product_code?: string | null | undefined;
2735
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;
2736
3171
  }[];
2737
3172
  partner_id?: string | null | undefined;
2738
3173
  invoice_number?: string | null | undefined;
@@ -2765,6 +3200,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2765
3200
  } | null | undefined;
2766
3201
  last_updated_on?: string | null | undefined;
2767
3202
  outstanding_amount?: number | null | undefined;
3203
+ last_payment_date?: string | null | undefined;
2768
3204
  accounting_date?: string | null | undefined;
2769
3205
  payment_method_id?: string | null | undefined;
2770
3206
  currency_exchange_rate: number | null;
@@ -2853,6 +3289,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2853
3289
  product_id?: string | null | undefined;
2854
3290
  product_code?: string | null | undefined;
2855
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;
2856
3300
  }[];
2857
3301
  partner_id?: string | null | undefined;
2858
3302
  invoice_number?: string | null | undefined;
@@ -2885,6 +3329,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2885
3329
  } | null | undefined;
2886
3330
  last_updated_on?: string | null | undefined;
2887
3331
  outstanding_amount?: number | null | undefined;
3332
+ last_payment_date?: string | null | undefined;
2888
3333
  accounting_date?: string | null | undefined;
2889
3334
  payment_method_id?: string | null | undefined;
2890
3335
  currency_exchange_rate: number | null;
@@ -3212,6 +3657,125 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3212
3657
  };
3213
3658
  name: string;
3214
3659
  }[]>;
3660
+ getBankAccounts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3661
+ items: {
3662
+ id: string;
3663
+ source_ref: {
3664
+ id?: string | null | undefined;
3665
+ model?: string | null | undefined;
3666
+ };
3667
+ name: string;
3668
+ iban?: string | null | undefined;
3669
+ currency?: string | null | undefined;
3670
+ balance?: number | null | undefined;
3671
+ }[];
3672
+ total: number;
3673
+ page: number;
3674
+ size: number;
3675
+ }>;
3676
+ getBankTransactions(params: {
3677
+ date_from?: string | null | undefined;
3678
+ date_to?: string | null | undefined;
3679
+ bank_account_id: string;
3680
+ status?: "draft" | "done" | null | undefined;
3681
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3682
+ items: {
3683
+ id: string;
3684
+ source_ref: {
3685
+ id?: string | null | undefined;
3686
+ model?: string | null | undefined;
3687
+ };
3688
+ status: "draft" | "done";
3689
+ bank_account_id: string;
3690
+ amount: number;
3691
+ date: string;
3692
+ description?: string | null | undefined;
3693
+ currency: string;
3694
+ currency_exchange_rate: number | null;
3695
+ accounting_code?: string | null | undefined;
3696
+ linked_documents: {
3697
+ id: string;
3698
+ source_ref: {
3699
+ id?: string | null | undefined;
3700
+ model?: string | null | undefined;
3701
+ };
3702
+ amount: number;
3703
+ type: "invoice" | "other";
3704
+ }[] | null;
3705
+ }[];
3706
+ total: number;
3707
+ page: number;
3708
+ size: number;
3709
+ }>;
3710
+ uploadDocument(document: {
3711
+ base64_string: string;
3712
+ document_type: "customer_document" | "supplier_document" | "employee_expense";
3713
+ }, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
3714
+ id: string;
3715
+ source_ref: {
3716
+ id?: string | null | undefined;
3717
+ model?: string | null | undefined;
3718
+ };
3719
+ currency?: string | null | undefined;
3720
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
3721
+ status?: "draft" | "posted" | "cancelled" | "paid" | null | undefined;
3722
+ invoice_date?: string | null | undefined;
3723
+ tax_amount?: number | null | undefined;
3724
+ untaxed_amount?: number | null | undefined;
3725
+ total?: number | null | undefined;
3726
+ lines: {
3727
+ description?: string | null | undefined;
3728
+ unit_price: number;
3729
+ quantity: number;
3730
+ discount_amount: number;
3731
+ tax_amount: number;
3732
+ untaxed_amount: number;
3733
+ total: number;
3734
+ tax_rate?: number | null | undefined;
3735
+ account_number?: string | null | undefined;
3736
+ tax_id?: string | null | undefined;
3737
+ tax_exemption_reason?: string | null | undefined;
3738
+ unit_of_measure?: string | null | undefined;
3739
+ product_id?: string | null | undefined;
3740
+ product_code?: string | null | undefined;
3741
+ product_name?: string | null | undefined;
3742
+ }[] | null;
3743
+ partner_id?: string | null | undefined;
3744
+ invoice_number?: string | null | undefined;
3745
+ due_date?: string | null | undefined;
3746
+ reference?: string | null | undefined;
3747
+ payment_communication?: string | null | undefined;
3748
+ customer_memo?: string | null | undefined;
3749
+ journal_ref?: {
3750
+ id?: string | null | undefined;
3751
+ model?: string | null | undefined;
3752
+ name?: string | null | undefined;
3753
+ } | null | undefined;
3754
+ italian_specificities?: {
3755
+ stamp_duty_amount?: number | null | undefined;
3756
+ withholding_tax?: {
3757
+ rate: number;
3758
+ amount: number;
3759
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | null | undefined;
3760
+ payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | null | undefined;
3761
+ } | null | undefined;
3762
+ welfare_fund?: {
3763
+ rate: number;
3764
+ amount: number;
3765
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | null | undefined;
3766
+ } | null | undefined;
3767
+ payment_reporting?: {
3768
+ method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | null | undefined;
3769
+ conditions?: "TP01" | "TP02" | "TP03" | null | undefined;
3770
+ } | null | undefined;
3771
+ } | null | undefined;
3772
+ last_updated_on?: string | null | undefined;
3773
+ outstanding_amount?: number | null | undefined;
3774
+ last_payment_date?: string | null | undefined;
3775
+ accounting_date?: string | null | undefined;
3776
+ payment_method_id?: string | null | undefined;
3777
+ currency_exchange_rate: number | null;
3778
+ }>;
3215
3779
  }>;
3216
3780
  ecommerce: import("../types/api").ApiFor<{
3217
3781
  getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -3243,7 +3807,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3243
3807
  }[] | null;
3244
3808
  created_on?: string | null | undefined;
3245
3809
  }[]>;
3246
- getProducts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3810
+ getProducts(params?: {
3811
+ updated_after?: string | null | undefined;
3812
+ sku?: string | null | undefined;
3813
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3247
3814
  id: string;
3248
3815
  source_ref: {
3249
3816
  id?: string | null | undefined;
@@ -3257,6 +3824,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3257
3824
  name: string;
3258
3825
  }[] | null;
3259
3826
  created_on?: string | null | undefined;
3827
+ last_updated_on?: string | null | undefined;
3260
3828
  variants: {
3261
3829
  id: string;
3262
3830
  source_ref: {
@@ -3298,6 +3866,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3298
3866
  }[] | null;
3299
3867
  }[] | null;
3300
3868
  status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
3869
+ sku?: string | null | undefined;
3301
3870
  common_attributes: {
3302
3871
  name: string;
3303
3872
  values: string[];
@@ -3355,6 +3924,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3355
3924
  name: string;
3356
3925
  }[] | null;
3357
3926
  created_on?: string | null | undefined;
3927
+ last_updated_on?: string | null | undefined;
3358
3928
  variants: {
3359
3929
  id: string;
3360
3930
  source_ref: {
@@ -3396,6 +3966,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3396
3966
  }[] | null;
3397
3967
  }[] | null;
3398
3968
  status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
3969
+ sku?: string | null | undefined;
3399
3970
  common_attributes: {
3400
3971
  name: string;
3401
3972
  values: string[];
@@ -3585,6 +4156,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3585
4156
  amount: number;
3586
4157
  }[] | null;
3587
4158
  gift_card: boolean | null;
4159
+ is_gift: boolean | null;
3588
4160
  }[];
3589
4161
  other_fees: {
3590
4162
  id: string;
@@ -3862,6 +4434,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3862
4434
  amount: number;
3863
4435
  }[] | null;
3864
4436
  gift_card: boolean | null;
4437
+ is_gift: boolean | null;
3865
4438
  }[];
3866
4439
  other_fees: {
3867
4440
  id: string;
@@ -4100,6 +4673,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4100
4673
  amount: number;
4101
4674
  }[] | null;
4102
4675
  gift_card: boolean | null;
4676
+ is_gift: boolean | null;
4103
4677
  }[];
4104
4678
  other_fees: {
4105
4679
  id: string;
@@ -4301,14 +4875,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4301
4875
  reference: string;
4302
4876
  reference_type: string;
4303
4877
  holder_name?: string | null | undefined;
4878
+ active: boolean | null;
4304
4879
  }[]>;
4305
- getAccountTransactions(accountId: string, params?: {
4880
+ getAccountTransactions(params: {
4306
4881
  date_from?: string | null | undefined;
4307
4882
  date_to?: string | null | undefined;
4883
+ updated_after?: string | null | undefined;
4884
+ account_id: string;
4308
4885
  date_type?: "value_date" | "execution_date" | null | undefined;
4309
- } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4886
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
4310
4887
  id: string;
4311
4888
  amount: number;
4889
+ tax_amount?: number | null | undefined;
4312
4890
  currency: string;
4313
4891
  description?: string | null | undefined;
4314
4892
  additional_information?: string | null | undefined;
@@ -4318,6 +4896,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4318
4896
  creation_date: string;
4319
4897
  value_date: string;
4320
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;
4321
4910
  }[]>;
4322
4911
  getAccountCounterparts(params?: {
4323
4912
  date_from?: string | null | undefined;
@@ -4328,6 +4917,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4328
4917
  reference?: string | null | undefined;
4329
4918
  details?: string | null | undefined;
4330
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
+ }>;
4331
4931
  }>;
4332
4932
  getDataByDataStoreId: (dataStoreId: string, params?: object) => Promise<{
4333
4933
  data: {
@@ -4354,16 +4954,25 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
4354
4954
  description?: string | null | undefined;
4355
4955
  display_order: number;
4356
4956
  challenge_question?: string | null | undefined;
4957
+ conditions?: {
4958
+ [key: string]: {
4959
+ [key: string]: unknown;
4960
+ };
4961
+ } | null | undefined;
4357
4962
  values: {
4358
4963
  source_id?: string | null | undefined;
4359
4964
  target_id?: string | null | undefined;
4360
4965
  }[];
4966
+ hidden_source_ids: string[];
4361
4967
  sub_mapping_name: string;
4362
4968
  sub_mapping_description?: string | null | undefined;
4363
4969
  }[] | null | undefined;
4364
4970
  link_metadata?: {
4365
4971
  [key: string]: unknown;
4366
4972
  } | null | undefined;
4973
+ link_presync?: {
4974
+ [key: string]: unknown;
4975
+ } | null | undefined;
4367
4976
  enabled_flows?: {
4368
4977
  name: string;
4369
4978
  description?: string | null | undefined;