@chift/chift-nodejs 1.0.19 → 1.0.21

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.
@@ -93,6 +93,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
93
93
  }[];
94
94
  items: {
95
95
  id: string;
96
+ type?: "menu" | "product" | undefined;
97
+ menu_id?: string | undefined;
96
98
  quantity: number;
97
99
  unit_price: number;
98
100
  total: number;
@@ -102,6 +104,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
102
104
  discounts: {
103
105
  name?: string | undefined;
104
106
  total: number;
107
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
105
108
  }[];
106
109
  product_id?: string | undefined;
107
110
  accounting_category_id?: string | undefined;
@@ -168,6 +171,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
168
171
  }[];
169
172
  items: {
170
173
  id: string;
174
+ type?: "menu" | "product" | undefined;
175
+ menu_id?: string | undefined;
171
176
  quantity: number;
172
177
  unit_price: number;
173
178
  total: number;
@@ -177,6 +182,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
177
182
  discounts: {
178
183
  name?: string | undefined;
179
184
  total: number;
185
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
180
186
  }[];
181
187
  product_id?: string | undefined;
182
188
  accounting_category_id?: string | undefined;
@@ -340,6 +346,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
340
346
  }[];
341
347
  items: {
342
348
  id: string;
349
+ type?: "menu" | "product" | undefined;
350
+ menu_id?: string | undefined;
343
351
  quantity: number;
344
352
  unit_price: number;
345
353
  total: number;
@@ -349,6 +357,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
349
357
  discounts: {
350
358
  name?: string | undefined;
351
359
  total: number;
360
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
352
361
  }[];
353
362
  product_id?: string | undefined;
354
363
  accounting_category_id?: string | undefined;
@@ -359,7 +368,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
359
368
  } | undefined): import("../types/api").RequestData<{
360
369
  id: string;
361
370
  name: string;
362
- id_parent?: string | undefined;
363
371
  code?: string | undefined;
364
372
  ledger_account_code?: string | undefined;
365
373
  posting_account_code?: string | undefined;
@@ -420,6 +428,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
420
428
  id?: string | undefined;
421
429
  model?: string | undefined;
422
430
  };
431
+ type?: "menu" | "product" | undefined;
432
+ menu_id?: string | undefined;
423
433
  quantity: number;
424
434
  unit_price: number;
425
435
  total: number;
@@ -429,11 +439,62 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
429
439
  discounts: {
430
440
  name?: string | undefined;
431
441
  total: number;
442
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
432
443
  }[];
433
444
  product_id?: string | undefined;
434
445
  accounting_category_id?: string | undefined;
435
446
  }[];
436
447
  service_id?: string | undefined;
448
+ reservation?: {
449
+ id: string;
450
+ source_ref: {
451
+ id?: string | undefined;
452
+ model?: string | undefined;
453
+ };
454
+ start_date?: string | undefined;
455
+ end_date?: string | undefined;
456
+ creation_date?: string | undefined;
457
+ resource_id?: {
458
+ id: string;
459
+ source_ref: {
460
+ id?: string | undefined;
461
+ model?: string | undefined;
462
+ };
463
+ } | undefined;
464
+ resource_name?: string | undefined;
465
+ resource_identifier?: string | undefined;
466
+ } | undefined;
467
+ bills?: {
468
+ id: string;
469
+ source_ref: {
470
+ id?: string | undefined;
471
+ model?: string | undefined;
472
+ };
473
+ invoice_number?: string | undefined;
474
+ creation_date?: string | undefined;
475
+ closing_date?: string | undefined;
476
+ partners?: {
477
+ id: string;
478
+ source_ref: {
479
+ id?: string | undefined;
480
+ model?: string | undefined;
481
+ };
482
+ type: "owner" | "account";
483
+ address?: {
484
+ address_type?: string | undefined;
485
+ name?: string | undefined;
486
+ street?: string | undefined;
487
+ number?: string | undefined;
488
+ box?: string | undefined;
489
+ city?: string | undefined;
490
+ postal_code?: string | undefined;
491
+ country?: string | undefined;
492
+ } | undefined;
493
+ first_name?: string | undefined;
494
+ last_name?: string | undefined;
495
+ company_name?: string | undefined;
496
+ }[] | undefined;
497
+ }[] | undefined;
437
498
  }[]>;
438
499
  getPaymentMethods(params?: {
439
500
  location_id?: string | undefined;
@@ -469,6 +530,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
469
530
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
470
531
  currency?: string | undefined;
471
532
  date?: string | undefined;
533
+ partner_id?: {
534
+ id: string;
535
+ source_ref: {
536
+ id?: string | undefined;
537
+ model?: string | undefined;
538
+ };
539
+ } | undefined;
472
540
  }[]>;
473
541
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
474
542
  id: string;
@@ -477,11 +545,132 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
477
545
  model?: string | undefined;
478
546
  };
479
547
  name: string;
480
- id_parent?: string | undefined;
481
548
  code?: string | undefined;
482
549
  ledger_account_code?: string | undefined;
483
550
  posting_account_code?: string | undefined;
484
551
  }[]>;
552
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
553
+ id: string;
554
+ source_ref: {
555
+ id?: string | undefined;
556
+ model?: string | undefined;
557
+ };
558
+ first_name?: string | undefined;
559
+ last_name?: string | undefined;
560
+ company_name?: string | undefined;
561
+ phone?: string | undefined;
562
+ email?: string | undefined;
563
+ account_number?: string | undefined;
564
+ created_on?: string | undefined;
565
+ addresses?: {
566
+ address_type?: string | undefined;
567
+ name?: string | undefined;
568
+ street?: string | undefined;
569
+ number?: string | undefined;
570
+ box?: string | undefined;
571
+ city?: string | undefined;
572
+ postal_code?: string | undefined;
573
+ country?: string | undefined;
574
+ }[] | undefined;
575
+ }[]>;
576
+ getInvoices(params?: {
577
+ date_from: string;
578
+ date_to: string;
579
+ location_id?: string | undefined;
580
+ } | undefined): import("../types/api").RequestData<{
581
+ id: string;
582
+ source_ref: {
583
+ id?: string | undefined;
584
+ model?: string | undefined;
585
+ };
586
+ invoice_number?: string | undefined;
587
+ creation_date?: string | undefined;
588
+ closing_date?: string | undefined;
589
+ partners?: {
590
+ id: string;
591
+ source_ref: {
592
+ id?: string | undefined;
593
+ model?: string | undefined;
594
+ };
595
+ type: "owner" | "account";
596
+ address?: {
597
+ address_type?: string | undefined;
598
+ name?: string | undefined;
599
+ street?: string | undefined;
600
+ number?: string | undefined;
601
+ box?: string | undefined;
602
+ city?: string | undefined;
603
+ postal_code?: string | undefined;
604
+ country?: string | undefined;
605
+ } | undefined;
606
+ first_name?: string | undefined;
607
+ last_name?: string | undefined;
608
+ company_name?: string | undefined;
609
+ }[] | undefined;
610
+ items: {
611
+ id: string;
612
+ source_ref: {
613
+ id?: string | undefined;
614
+ model?: string | undefined;
615
+ };
616
+ type?: "menu" | "product" | undefined;
617
+ menu_id?: string | undefined;
618
+ quantity: number;
619
+ unit_price: number;
620
+ total: number;
621
+ tax_amount: number;
622
+ tax_rate?: number | undefined;
623
+ description?: string | undefined;
624
+ discounts: {
625
+ name?: string | undefined;
626
+ total: number;
627
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
628
+ }[];
629
+ product_id?: string | undefined;
630
+ accounting_category_id?: string | undefined;
631
+ }[];
632
+ payments: {
633
+ id?: string | undefined;
634
+ source_ref: {
635
+ id?: string | undefined;
636
+ model?: string | undefined;
637
+ };
638
+ payment_method_id?: string | undefined;
639
+ payment_method_name?: string | undefined;
640
+ total: number;
641
+ tip: number;
642
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
643
+ currency?: string | undefined;
644
+ date?: string | undefined;
645
+ partner_id?: {
646
+ id: string;
647
+ source_ref: {
648
+ id?: string | undefined;
649
+ model?: string | undefined;
650
+ };
651
+ } | undefined;
652
+ }[];
653
+ service_id?: string | undefined;
654
+ reservation?: {
655
+ id: string;
656
+ source_ref: {
657
+ id?: string | undefined;
658
+ model?: string | undefined;
659
+ };
660
+ start_date?: string | undefined;
661
+ end_date?: string | undefined;
662
+ creation_date?: string | undefined;
663
+ resource_id?: {
664
+ id: string;
665
+ source_ref: {
666
+ id?: string | undefined;
667
+ model?: string | undefined;
668
+ };
669
+ } | undefined;
670
+ resource_name?: string | undefined;
671
+ resource_identifier?: string | undefined;
672
+ } | undefined;
673
+ }[]>;
485
674
  }>;
486
675
  payment: import("../types/api").ApiFor<{
487
676
  getPayments(params: {
@@ -533,8 +722,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
533
722
  payment_id?: string | undefined;
534
723
  }[]>;
535
724
  getPayment(params: {
536
- payment_id: string;
537
725
  consumer_id: string;
726
+ payment_id: string;
538
727
  }): import("../types/api").RequestData<{
539
728
  id: string;
540
729
  source_ref: {
@@ -575,7 +764,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
575
764
  active: boolean;
576
765
  }[]>;
577
766
  getClients(params?: {
767
+ search?: string | undefined;
578
768
  folder_id?: string | undefined;
769
+ updated_after?: string | undefined;
579
770
  } | undefined): import("../types/api").RequestData<{
580
771
  external_reference?: string | undefined;
581
772
  first_name?: string | undefined;
@@ -646,8 +837,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
646
837
  }[];
647
838
  account_number?: string | undefined;
648
839
  }, params?: {
649
- force_merge?: string | undefined;
650
840
  folder_id?: string | undefined;
841
+ force_merge?: string | undefined;
651
842
  } | undefined): import("../types/api").RequestData<{
652
843
  external_reference?: string | undefined;
653
844
  first_name?: string | undefined;
@@ -793,7 +984,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
793
984
  id?: string | undefined;
794
985
  }>;
795
986
  getSuppliers(params?: {
987
+ search?: string | undefined;
796
988
  folder_id?: string | undefined;
989
+ updated_after?: string | undefined;
797
990
  } | undefined): import("../types/api").RequestData<{
798
991
  external_reference?: string | undefined;
799
992
  first_name?: string | undefined;
@@ -864,8 +1057,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
864
1057
  }[];
865
1058
  account_number?: string | undefined;
866
1059
  }, params?: {
867
- force_merge?: string | undefined;
868
1060
  folder_id?: string | undefined;
1061
+ force_merge?: string | undefined;
869
1062
  } | undefined): import("../types/api").RequestData<{
870
1063
  external_reference?: string | undefined;
871
1064
  first_name?: string | undefined;
@@ -1059,9 +1252,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1059
1252
  analytic_account?: string | undefined;
1060
1253
  }[];
1061
1254
  }, params?: {
1255
+ folder_id?: string | undefined;
1062
1256
  force_financial_period?: string | undefined;
1063
1257
  regroup_lines?: "true" | "false" | undefined;
1064
- folder_id?: string | undefined;
1065
1258
  } | undefined): import("../types/api").RequestData<{
1066
1259
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1067
1260
  invoice_number?: string | undefined;
@@ -1162,9 +1355,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1162
1355
  }[];
1163
1356
  }[];
1164
1357
  }, params?: {
1358
+ folder_id?: string | undefined;
1165
1359
  force_financial_period?: string | undefined;
1166
1360
  regroup_lines?: "true" | "false" | undefined;
1167
- folder_id?: string | undefined;
1168
1361
  } | undefined): import("../types/api").RequestData<{
1169
1362
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1170
1363
  invoice_number?: string | undefined;
@@ -1223,6 +1416,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1223
1416
  journal_ids?: string | undefined;
1224
1417
  include_payments?: "true" | "false" | undefined;
1225
1418
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1419
+ updated_after?: string | undefined;
1226
1420
  } | undefined): import("../types/api").RequestData<{
1227
1421
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1228
1422
  invoice_number?: string | undefined;
@@ -1269,8 +1463,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1269
1463
  }[];
1270
1464
  }[]>;
1271
1465
  getInvoice(invoiceId: string, params?: {
1272
- include_payments?: "true" | "false" | undefined;
1273
1466
  folder_id?: string | undefined;
1467
+ include_payments?: "true" | "false" | undefined;
1274
1468
  } | undefined): import("../types/api").RequestData<{
1275
1469
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1276
1470
  invoice_number?: string | undefined;
@@ -1317,8 +1511,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1317
1511
  }[];
1318
1512
  }>;
1319
1513
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
1320
- include_payments?: "true" | "false" | undefined;
1321
1514
  folder_id?: string | undefined;
1515
+ include_payments?: "true" | "false" | undefined;
1322
1516
  } | undefined): import("../types/api").RequestData<{
1323
1517
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1324
1518
  invoice_number?: string | undefined;
@@ -1377,6 +1571,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1377
1571
  journal_ids?: string | undefined;
1378
1572
  include_payments?: "true" | "false" | undefined;
1379
1573
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1574
+ updated_after?: string | undefined;
1380
1575
  } | undefined): import("../types/api").RequestData<{
1381
1576
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1382
1577
  invoice_number?: string | undefined;
@@ -1549,9 +1744,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1549
1744
  analytic_plan: string;
1550
1745
  }[]>;
1551
1746
  getJournalEntries(params: {
1552
- date_from: string;
1553
- date_to: string;
1747
+ date_from?: string | undefined;
1748
+ date_to?: string | undefined;
1554
1749
  folder_id?: string | undefined;
1750
+ updated_after?: string | undefined;
1555
1751
  unposted_allowed: "true" | "false";
1556
1752
  journal_id: string;
1557
1753
  partner_id?: string | undefined;
@@ -1581,9 +1777,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1581
1777
  }[];
1582
1778
  }[]>;
1583
1779
  getJournalEntriesWithMultiplePlans(params: {
1584
- date_from: string;
1585
- date_to: string;
1780
+ date_from?: string | undefined;
1781
+ date_to?: string | undefined;
1586
1782
  folder_id?: string | undefined;
1783
+ updated_after?: string | undefined;
1587
1784
  unposted_allowed: "true" | "false";
1588
1785
  journal_id: string;
1589
1786
  partner_id?: string | undefined;
@@ -1618,9 +1815,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1618
1815
  }[];
1619
1816
  }[]>;
1620
1817
  getPaymentsByInvoiceId(invoice_id: string, params?: {
1621
- folder_id?: string | undefined;
1622
1818
  page?: number | undefined;
1623
1819
  size?: number | undefined;
1820
+ folder_id?: string | undefined;
1624
1821
  } | undefined): import("../types/api").RequestData<{
1625
1822
  id: string;
1626
1823
  name: string;
@@ -1744,8 +1941,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1744
1941
  attachPDF(invoice_id: string, attachment: {
1745
1942
  base64_string: string;
1746
1943
  }, params?: {
1747
- overwrite_existing?: "true" | "false" | undefined;
1748
1944
  folder_id?: string | undefined;
1945
+ overwrite_existing?: "true" | "false" | undefined;
1749
1946
  } | undefined): import("../types/api").RequestData<{
1750
1947
  headers: {
1751
1948
  [name: string]: unknown;
@@ -1762,8 +1959,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1762
1959
  base64_string: string;
1763
1960
  }[]>;
1764
1961
  getChartOfAccounts(params?: {
1765
- classes?: string | undefined;
1766
1962
  folder_id?: string | undefined;
1963
+ classes?: string | undefined;
1767
1964
  } | undefined): import("../types/api").RequestData<{
1768
1965
  number: string;
1769
1966
  name: string;
@@ -1819,8 +2016,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1819
2016
  partner_id: string;
1820
2017
  account_number: string;
1821
2018
  reference?: string | undefined;
2019
+ matching_numbers: string[];
1822
2020
  payment_communication?: string | undefined;
1823
2021
  posted: boolean;
2022
+ original_document?: {
2023
+ id?: string | undefined;
2024
+ number?: string | undefined;
2025
+ journal_id?: string | undefined;
2026
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
2027
+ date?: string | undefined;
2028
+ due_date?: string | undefined;
2029
+ reference?: string | undefined;
2030
+ } | undefined;
1824
2031
  }[]>;
1825
2032
  createFinancialEntryOld(financial_entry: {
1826
2033
  date: string;
@@ -1838,8 +2045,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1838
2045
  }[];
1839
2046
  pdf?: string | undefined;
1840
2047
  }, params?: {
1841
- financial_counterpart_account?: string | undefined;
1842
2048
  folder_id?: string | undefined;
2049
+ financial_counterpart_account?: string | undefined;
1843
2050
  } | undefined): import("../types/api").RequestData<{
1844
2051
  date: string;
1845
2052
  journal_id: string;
@@ -1872,8 +2079,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1872
2079
  }[];
1873
2080
  pdf?: string | undefined;
1874
2081
  }, params?: {
1875
- financial_counterpart_account?: string | undefined;
1876
2082
  folder_id?: string | undefined;
2083
+ financial_counterpart_account?: string | undefined;
1877
2084
  } | undefined): import("../types/api").RequestData<{
1878
2085
  date: string;
1879
2086
  journal_id: string;
@@ -1970,9 +2177,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1970
2177
  }[];
1971
2178
  pdf?: string | undefined;
1972
2179
  posted: boolean;
2180
+ start_date?: string | undefined;
2181
+ end_date?: string | undefined;
1973
2182
  }, params?: {
1974
- force_currency_exchange?: "true" | "false" | undefined;
1975
2183
  folder_id?: string | undefined;
2184
+ force_currency_exchange?: "true" | "false" | undefined;
1976
2185
  } | undefined): import("../types/api").RequestData<{
1977
2186
  reference?: string | undefined;
1978
2187
  due_date?: string | undefined;
@@ -2012,6 +2221,18 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2012
2221
  matching_number: string;
2013
2222
  balance: number;
2014
2223
  }>;
2224
+ matchEntriesMultiple(body: {
2225
+ matchings: {
2226
+ entries: string[];
2227
+ partner_id: string;
2228
+ }[];
2229
+ }, params?: {
2230
+ folder_id?: string | undefined;
2231
+ } | undefined): import("../types/api").RequestData<{
2232
+ matching_number?: string | undefined;
2233
+ processed: boolean;
2234
+ error_msg?: Record<string, never> | undefined;
2235
+ }[]>;
2015
2236
  getFolders(): import("../types/api").RequestData<{
2016
2237
  id: string;
2017
2238
  name: string;
@@ -2019,14 +2240,23 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2019
2240
  vat?: string | undefined;
2020
2241
  company_number?: string | undefined;
2021
2242
  }[]>;
2243
+ getBookyears(params?: {
2244
+ folder_id?: string | undefined;
2245
+ } | undefined): import("../types/api").RequestData<{
2246
+ name: string;
2247
+ start: string;
2248
+ end: string;
2249
+ closed: boolean;
2250
+ }[]>;
2022
2251
  }>;
2023
2252
  invoicing: import("../types/api").ApiFor<{
2024
2253
  getInvoices(params?: {
2025
2254
  date_from?: string | undefined;
2026
2255
  date_to?: string | undefined;
2027
2256
  payment_status?: "all" | "paid" | "unpaid" | undefined;
2028
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
2029
2257
  updated_after?: string | undefined;
2258
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
2259
+ include_invoice_lines?: "true" | "false" | undefined;
2030
2260
  } | undefined): import("../types/api").RequestData<{
2031
2261
  id: string;
2032
2262
  source_ref: {
@@ -2034,7 +2264,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2034
2264
  model?: string | undefined;
2035
2265
  };
2036
2266
  currency: string;
2037
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2267
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2038
2268
  status: "draft" | "posted" | "cancelled" | "paid";
2039
2269
  invoice_date: string;
2040
2270
  tax_amount: number;
@@ -2051,6 +2281,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2051
2281
  tax_rate?: number | undefined;
2052
2282
  account_number?: string | undefined;
2053
2283
  tax_id?: string | undefined;
2284
+ tax_exemption_reason?: string | undefined;
2054
2285
  unit_of_measure?: string | undefined;
2055
2286
  product_id?: string | undefined;
2056
2287
  product_code?: string | undefined;
@@ -2067,8 +2298,29 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2067
2298
  model?: string | undefined;
2068
2299
  name?: string | undefined;
2069
2300
  } | undefined;
2301
+ italian_specificities?: {
2302
+ stamp_duty_amount?: number | undefined;
2303
+ withholding_tax?: {
2304
+ rate: number;
2305
+ amount: number;
2306
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2307
+ 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" | undefined;
2308
+ } | undefined;
2309
+ welfare_fund?: {
2310
+ rate: number;
2311
+ amount: number;
2312
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2313
+ } | undefined;
2314
+ payment_reporting?: {
2315
+ method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
2316
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2317
+ } | undefined;
2318
+ } | undefined;
2070
2319
  last_updated_on?: string | undefined;
2071
2320
  outstanding_amount?: number | undefined;
2321
+ accounting_date?: string | undefined;
2322
+ payment_method_id?: string | undefined;
2323
+ currency_exchange_rate: number;
2072
2324
  }[]>;
2073
2325
  getInvoiceById(invoiceId: string, params?: {
2074
2326
  include_pdf?: "true" | "false" | undefined;
@@ -2079,7 +2331,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2079
2331
  model?: string | undefined;
2080
2332
  };
2081
2333
  currency: string;
2082
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2334
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2083
2335
  status: "draft" | "posted" | "cancelled" | "paid";
2084
2336
  invoice_date: string;
2085
2337
  tax_amount: number;
@@ -2096,6 +2348,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2096
2348
  tax_rate?: number | undefined;
2097
2349
  account_number?: string | undefined;
2098
2350
  tax_id?: string | undefined;
2351
+ tax_exemption_reason?: string | undefined;
2099
2352
  unit_of_measure?: string | undefined;
2100
2353
  product_id?: string | undefined;
2101
2354
  product_code?: string | undefined;
@@ -2112,12 +2365,33 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2112
2365
  model?: string | undefined;
2113
2366
  name?: string | undefined;
2114
2367
  } | undefined;
2368
+ italian_specificities?: {
2369
+ stamp_duty_amount?: number | undefined;
2370
+ withholding_tax?: {
2371
+ rate: number;
2372
+ amount: number;
2373
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2374
+ 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" | undefined;
2375
+ } | undefined;
2376
+ welfare_fund?: {
2377
+ rate: number;
2378
+ amount: number;
2379
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2380
+ } | undefined;
2381
+ payment_reporting?: {
2382
+ method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
2383
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2384
+ } | undefined;
2385
+ } | undefined;
2115
2386
  last_updated_on?: string | undefined;
2116
2387
  outstanding_amount?: number | undefined;
2388
+ accounting_date?: string | undefined;
2389
+ payment_method_id?: string | undefined;
2390
+ currency_exchange_rate: number;
2117
2391
  }>;
2118
2392
  createInvoice(invoice: {
2119
2393
  currency: string;
2120
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2394
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2121
2395
  status: "draft" | "posted" | "cancelled" | "paid";
2122
2396
  invoice_date: string;
2123
2397
  tax_amount: number;
@@ -2134,6 +2408,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2134
2408
  tax_rate?: number | undefined;
2135
2409
  account_number?: string | undefined;
2136
2410
  tax_id?: string | undefined;
2411
+ tax_exemption_reason?: string | undefined;
2137
2412
  unit_of_measure?: string | undefined;
2138
2413
  product_id?: string | undefined;
2139
2414
  product_code?: string | undefined;
@@ -2150,6 +2425,24 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2150
2425
  model?: string | undefined;
2151
2426
  name?: string | undefined;
2152
2427
  } | undefined;
2428
+ italian_specificities?: {
2429
+ stamp_duty_amount?: number | undefined;
2430
+ withholding_tax?: {
2431
+ rate: number;
2432
+ amount: number;
2433
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2434
+ 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" | undefined;
2435
+ } | undefined;
2436
+ welfare_fund?: {
2437
+ rate: number;
2438
+ amount: number;
2439
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2440
+ } | undefined;
2441
+ payment_reporting?: {
2442
+ method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
2443
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2444
+ } | undefined;
2445
+ } | undefined;
2153
2446
  }): import("../types/api").RequestData<{
2154
2447
  id: string;
2155
2448
  source_ref: {
@@ -2157,7 +2450,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2157
2450
  model?: string | undefined;
2158
2451
  };
2159
2452
  currency: string;
2160
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2453
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2161
2454
  status: "draft" | "posted" | "cancelled" | "paid";
2162
2455
  invoice_date: string;
2163
2456
  tax_amount: number;
@@ -2174,6 +2467,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2174
2467
  tax_rate?: number | undefined;
2175
2468
  account_number?: string | undefined;
2176
2469
  tax_id?: string | undefined;
2470
+ tax_exemption_reason?: string | undefined;
2177
2471
  unit_of_measure?: string | undefined;
2178
2472
  product_id?: string | undefined;
2179
2473
  product_code?: string | undefined;
@@ -2190,8 +2484,29 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2190
2484
  model?: string | undefined;
2191
2485
  name?: string | undefined;
2192
2486
  } | undefined;
2487
+ italian_specificities?: {
2488
+ stamp_duty_amount?: number | undefined;
2489
+ withholding_tax?: {
2490
+ rate: number;
2491
+ amount: number;
2492
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2493
+ 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" | undefined;
2494
+ } | undefined;
2495
+ welfare_fund?: {
2496
+ rate: number;
2497
+ amount: number;
2498
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2499
+ } | undefined;
2500
+ payment_reporting?: {
2501
+ method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
2502
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2503
+ } | undefined;
2504
+ } | undefined;
2193
2505
  last_updated_on?: string | undefined;
2194
2506
  outstanding_amount?: number | undefined;
2507
+ accounting_date?: string | undefined;
2508
+ payment_method_id?: string | undefined;
2509
+ currency_exchange_rate: number;
2195
2510
  }>;
2196
2511
  getProducts(): import("../types/api").RequestData<{
2197
2512
  id: string;
@@ -2488,6 +2803,31 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2488
2803
  }[];
2489
2804
  external_reference?: string | undefined;
2490
2805
  }>;
2806
+ getPayments(): import("../types/api").RequestData<{
2807
+ id: string;
2808
+ source_ref: {
2809
+ id?: string | undefined;
2810
+ model?: string | undefined;
2811
+ };
2812
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
2813
+ description: string;
2814
+ amount: number;
2815
+ currency: string;
2816
+ payment_date: string;
2817
+ partner_id: string;
2818
+ payment_method_id?: string | undefined;
2819
+ payment_method_name?: string | undefined;
2820
+ invoice_id?: string | undefined;
2821
+ invoice_number?: string | undefined;
2822
+ }[]>;
2823
+ getPaymentMethods(): import("../types/api").RequestData<{
2824
+ id: string;
2825
+ source_ref: {
2826
+ id?: string | undefined;
2827
+ model?: string | undefined;
2828
+ };
2829
+ name: string;
2830
+ }[]>;
2491
2831
  }>;
2492
2832
  ecommerce: import("../types/api").ApiFor<{
2493
2833
  getCustomers(): import("../types/api").RequestData<{
@@ -2813,6 +3153,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2813
3153
  refunded_amount: number;
2814
3154
  currency: string;
2815
3155
  note?: string | undefined;
3156
+ tags: string[];
2816
3157
  lines: {
2817
3158
  id: string;
2818
3159
  source_ref: {
@@ -3089,6 +3430,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3089
3430
  refunded_amount: number;
3090
3431
  currency: string;
3091
3432
  note?: string | undefined;
3433
+ tags: string[];
3092
3434
  lines: {
3093
3435
  id: string;
3094
3436
  source_ref: {
@@ -3324,6 +3666,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3324
3666
  refunded_amount: number;
3325
3667
  currency: string;
3326
3668
  note?: string | undefined;
3669
+ tags: string[];
3327
3670
  lines: {
3328
3671
  id: string;
3329
3672
  source_ref: {
@@ -3618,5 +3961,43 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
3618
3961
  logData: (logs: ConsumerLog[]) => Promise<SimpleResponseModel>;
3619
3962
  setConnectionId: (connectionId: string) => Promise<void>;
3620
3963
  setIntegrationId: (integrationId: string) => Promise<void>;
3964
+ updateConsumer: (body: components['schemas']['UpdateConsumerItem']) => Promise<{
3965
+ consumerid: string;
3966
+ name: string;
3967
+ email?: string | undefined;
3968
+ internal_reference?: string | undefined;
3969
+ redirect_url?: string | undefined;
3970
+ }>;
3971
+ updateFlowConfig: (syncId: string, flowId: string, body: components['schemas']['UpdateFlowConsumer']) => Promise<{
3972
+ name: string;
3973
+ description?: string | undefined;
3974
+ id: string;
3975
+ config?: {
3976
+ definitionFields?: Record<string, never>[] | undefined;
3977
+ doorkeyFields?: Record<string, never>[] | undefined;
3978
+ customFields?: Record<string, never>[] | undefined;
3979
+ datastores: {
3980
+ id?: string | undefined;
3981
+ name: string;
3982
+ status: "active" | "inactive";
3983
+ definition: {
3984
+ columns: {
3985
+ name: string;
3986
+ title: string;
3987
+ type: string;
3988
+ optional: boolean;
3989
+ }[];
3990
+ search_column?: string | undefined;
3991
+ };
3992
+ }[];
3993
+ } | undefined;
3994
+ values: Record<string, never>;
3995
+ enabled_on?: string | undefined;
3996
+ trigger: {
3997
+ id: string;
3998
+ type: "event" | "timer";
3999
+ cronschedule?: string | undefined;
4000
+ };
4001
+ }>;
3621
4002
  };
3622
4003
  export { Consumer };