@chift/chift-nodejs 1.0.20 → 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.
@@ -126,6 +126,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
126
126
  discounts: {
127
127
  name?: string | undefined;
128
128
  total: number;
129
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
129
130
  }[];
130
131
  product_id?: string | undefined;
131
132
  accounting_category_id?: string | undefined;
@@ -203,6 +204,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
203
204
  discounts: {
204
205
  name?: string | undefined;
205
206
  total: number;
207
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
206
208
  }[];
207
209
  product_id?: string | undefined;
208
210
  accounting_category_id?: string | undefined;
@@ -377,6 +379,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
377
379
  discounts: {
378
380
  name?: string | undefined;
379
381
  total: number;
382
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
380
383
  }[];
381
384
  product_id?: string | undefined;
382
385
  accounting_category_id?: string | undefined;
@@ -458,11 +461,62 @@ declare const Consumers: (internalApi: InternalAPI) => {
458
461
  discounts: {
459
462
  name?: string | undefined;
460
463
  total: number;
464
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
461
465
  }[];
462
466
  product_id?: string | undefined;
463
467
  accounting_category_id?: string | undefined;
464
468
  }[];
465
469
  service_id?: string | undefined;
470
+ reservation?: {
471
+ id: string;
472
+ source_ref: {
473
+ id?: string | undefined;
474
+ model?: string | undefined;
475
+ };
476
+ start_date?: string | undefined;
477
+ end_date?: string | undefined;
478
+ creation_date?: string | undefined;
479
+ resource_id?: {
480
+ id: string;
481
+ source_ref: {
482
+ id?: string | undefined;
483
+ model?: string | undefined;
484
+ };
485
+ } | undefined;
486
+ resource_name?: string | undefined;
487
+ resource_identifier?: string | undefined;
488
+ } | undefined;
489
+ bills?: {
490
+ id: string;
491
+ source_ref: {
492
+ id?: string | undefined;
493
+ model?: string | undefined;
494
+ };
495
+ invoice_number?: string | undefined;
496
+ creation_date?: string | undefined;
497
+ closing_date?: string | undefined;
498
+ partners?: {
499
+ id: string;
500
+ source_ref: {
501
+ id?: string | undefined;
502
+ model?: string | undefined;
503
+ };
504
+ type: "owner" | "account";
505
+ address?: {
506
+ address_type?: string | undefined;
507
+ name?: string | undefined;
508
+ street?: string | undefined;
509
+ number?: string | undefined;
510
+ box?: string | undefined;
511
+ city?: string | undefined;
512
+ postal_code?: string | undefined;
513
+ country?: string | undefined;
514
+ } | undefined;
515
+ first_name?: string | undefined;
516
+ last_name?: string | undefined;
517
+ company_name?: string | undefined;
518
+ }[] | undefined;
519
+ }[] | undefined;
466
520
  }[]>;
467
521
  getPaymentMethods(params?: {
468
522
  location_id?: string | undefined;
@@ -498,6 +552,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
498
552
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
499
553
  currency?: string | undefined;
500
554
  date?: string | undefined;
555
+ partner_id?: {
556
+ id: string;
557
+ source_ref: {
558
+ id?: string | undefined;
559
+ model?: string | undefined;
560
+ };
561
+ } | undefined;
501
562
  }[]>;
502
563
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
503
564
  id: string;
@@ -510,6 +571,128 @@ declare const Consumers: (internalApi: InternalAPI) => {
510
571
  ledger_account_code?: string | undefined;
511
572
  posting_account_code?: string | undefined;
512
573
  }[]>;
574
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
575
+ id: string;
576
+ source_ref: {
577
+ id?: string | undefined;
578
+ model?: string | undefined;
579
+ };
580
+ first_name?: string | undefined;
581
+ last_name?: string | undefined;
582
+ company_name?: string | undefined;
583
+ phone?: string | undefined;
584
+ email?: string | undefined;
585
+ account_number?: string | undefined;
586
+ created_on?: string | undefined;
587
+ addresses?: {
588
+ address_type?: string | undefined;
589
+ name?: string | undefined;
590
+ street?: string | undefined;
591
+ number?: string | undefined;
592
+ box?: string | undefined;
593
+ city?: string | undefined;
594
+ postal_code?: string | undefined;
595
+ country?: string | undefined;
596
+ }[] | undefined;
597
+ }[]>;
598
+ getInvoices(params?: {
599
+ date_from: string;
600
+ date_to: string;
601
+ location_id?: string | undefined;
602
+ } | undefined): import("../types/api").RequestData<{
603
+ id: string;
604
+ source_ref: {
605
+ id?: string | undefined;
606
+ model?: string | undefined;
607
+ };
608
+ invoice_number?: string | undefined;
609
+ creation_date?: string | undefined;
610
+ closing_date?: string | undefined;
611
+ partners?: {
612
+ id: string;
613
+ source_ref: {
614
+ id?: string | undefined;
615
+ model?: string | undefined;
616
+ };
617
+ type: "owner" | "account";
618
+ address?: {
619
+ address_type?: string | undefined;
620
+ name?: string | undefined;
621
+ street?: string | undefined;
622
+ number?: string | undefined;
623
+ box?: string | undefined;
624
+ city?: string | undefined;
625
+ postal_code?: string | undefined;
626
+ country?: string | undefined;
627
+ } | undefined;
628
+ first_name?: string | undefined;
629
+ last_name?: string | undefined;
630
+ company_name?: string | undefined;
631
+ }[] | undefined;
632
+ items: {
633
+ id: string;
634
+ source_ref: {
635
+ id?: string | undefined;
636
+ model?: string | undefined;
637
+ };
638
+ type?: "menu" | "product" | undefined;
639
+ menu_id?: string | undefined;
640
+ quantity: number;
641
+ unit_price: number;
642
+ total: number;
643
+ tax_amount: number;
644
+ tax_rate?: number | undefined;
645
+ description?: string | undefined;
646
+ discounts: {
647
+ name?: string | undefined;
648
+ total: number;
649
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
650
+ }[];
651
+ product_id?: string | undefined;
652
+ accounting_category_id?: string | undefined;
653
+ }[];
654
+ payments: {
655
+ id?: string | undefined;
656
+ source_ref: {
657
+ id?: string | undefined;
658
+ model?: string | undefined;
659
+ };
660
+ payment_method_id?: string | undefined;
661
+ payment_method_name?: string | undefined;
662
+ total: number;
663
+ tip: number;
664
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
665
+ currency?: string | undefined;
666
+ date?: string | undefined;
667
+ partner_id?: {
668
+ id: string;
669
+ source_ref: {
670
+ id?: string | undefined;
671
+ model?: string | undefined;
672
+ };
673
+ } | undefined;
674
+ }[];
675
+ service_id?: string | undefined;
676
+ reservation?: {
677
+ id: string;
678
+ source_ref: {
679
+ id?: string | undefined;
680
+ model?: string | undefined;
681
+ };
682
+ start_date?: string | undefined;
683
+ end_date?: string | undefined;
684
+ creation_date?: string | undefined;
685
+ resource_id?: {
686
+ id: string;
687
+ source_ref: {
688
+ id?: string | undefined;
689
+ model?: string | undefined;
690
+ };
691
+ } | undefined;
692
+ resource_name?: string | undefined;
693
+ resource_identifier?: string | undefined;
694
+ } | undefined;
695
+ }[]>;
513
696
  }>;
514
697
  payment: import("../types/api").ApiFor<{
515
698
  getPayments(params: {
@@ -561,8 +744,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
561
744
  payment_id?: string | undefined;
562
745
  }[]>;
563
746
  getPayment(params: {
564
- payment_id: string;
565
747
  consumer_id: string;
748
+ payment_id: string;
566
749
  }): import("../types/api").RequestData<{
567
750
  id: string;
568
751
  source_ref: {
@@ -605,6 +788,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
605
788
  getClients(params?: {
606
789
  search?: string | undefined;
607
790
  folder_id?: string | undefined;
791
+ updated_after?: string | undefined;
608
792
  } | undefined): import("../types/api").RequestData<{
609
793
  external_reference?: string | undefined;
610
794
  first_name?: string | undefined;
@@ -675,8 +859,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
675
859
  }[];
676
860
  account_number?: string | undefined;
677
861
  }, params?: {
678
- force_merge?: string | undefined;
679
862
  folder_id?: string | undefined;
863
+ force_merge?: string | undefined;
680
864
  } | undefined): import("../types/api").RequestData<{
681
865
  external_reference?: string | undefined;
682
866
  first_name?: string | undefined;
@@ -824,6 +1008,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
824
1008
  getSuppliers(params?: {
825
1009
  search?: string | undefined;
826
1010
  folder_id?: string | undefined;
1011
+ updated_after?: string | undefined;
827
1012
  } | undefined): import("../types/api").RequestData<{
828
1013
  external_reference?: string | undefined;
829
1014
  first_name?: string | undefined;
@@ -894,8 +1079,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
894
1079
  }[];
895
1080
  account_number?: string | undefined;
896
1081
  }, params?: {
897
- force_merge?: string | undefined;
898
1082
  folder_id?: string | undefined;
1083
+ force_merge?: string | undefined;
899
1084
  } | undefined): import("../types/api").RequestData<{
900
1085
  external_reference?: string | undefined;
901
1086
  first_name?: string | undefined;
@@ -1089,9 +1274,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
1089
1274
  analytic_account?: string | undefined;
1090
1275
  }[];
1091
1276
  }, params?: {
1277
+ folder_id?: string | undefined;
1092
1278
  force_financial_period?: string | undefined;
1093
1279
  regroup_lines?: "true" | "false" | undefined;
1094
- folder_id?: string | undefined;
1095
1280
  } | undefined): import("../types/api").RequestData<{
1096
1281
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1097
1282
  invoice_number?: string | undefined;
@@ -1192,9 +1377,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
1192
1377
  }[];
1193
1378
  }[];
1194
1379
  }, params?: {
1380
+ folder_id?: string | undefined;
1195
1381
  force_financial_period?: string | undefined;
1196
1382
  regroup_lines?: "true" | "false" | undefined;
1197
- folder_id?: string | undefined;
1198
1383
  } | undefined): import("../types/api").RequestData<{
1199
1384
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1200
1385
  invoice_number?: string | undefined;
@@ -1253,6 +1438,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1253
1438
  journal_ids?: string | undefined;
1254
1439
  include_payments?: "true" | "false" | undefined;
1255
1440
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1441
+ updated_after?: string | undefined;
1256
1442
  } | undefined): import("../types/api").RequestData<{
1257
1443
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1258
1444
  invoice_number?: string | undefined;
@@ -1299,8 +1485,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1299
1485
  }[];
1300
1486
  }[]>;
1301
1487
  getInvoice(invoiceId: string, params?: {
1302
- include_payments?: "true" | "false" | undefined;
1303
1488
  folder_id?: string | undefined;
1489
+ include_payments?: "true" | "false" | undefined;
1304
1490
  } | undefined): import("../types/api").RequestData<{
1305
1491
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1306
1492
  invoice_number?: string | undefined;
@@ -1347,8 +1533,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1347
1533
  }[];
1348
1534
  }>;
1349
1535
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
1350
- include_payments?: "true" | "false" | undefined;
1351
1536
  folder_id?: string | undefined;
1537
+ include_payments?: "true" | "false" | undefined;
1352
1538
  } | undefined): import("../types/api").RequestData<{
1353
1539
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1354
1540
  invoice_number?: string | undefined;
@@ -1407,6 +1593,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1407
1593
  journal_ids?: string | undefined;
1408
1594
  include_payments?: "true" | "false" | undefined;
1409
1595
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1596
+ updated_after?: string | undefined;
1410
1597
  } | undefined): import("../types/api").RequestData<{
1411
1598
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1412
1599
  invoice_number?: string | undefined;
@@ -1579,9 +1766,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
1579
1766
  analytic_plan: string;
1580
1767
  }[]>;
1581
1768
  getJournalEntries(params: {
1582
- date_from: string;
1583
- date_to: string;
1769
+ date_from?: string | undefined;
1770
+ date_to?: string | undefined;
1584
1771
  folder_id?: string | undefined;
1772
+ updated_after?: string | undefined;
1585
1773
  unposted_allowed: "true" | "false";
1586
1774
  journal_id: string;
1587
1775
  partner_id?: string | undefined;
@@ -1611,9 +1799,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
1611
1799
  }[];
1612
1800
  }[]>;
1613
1801
  getJournalEntriesWithMultiplePlans(params: {
1614
- date_from: string;
1615
- date_to: string;
1802
+ date_from?: string | undefined;
1803
+ date_to?: string | undefined;
1616
1804
  folder_id?: string | undefined;
1805
+ updated_after?: string | undefined;
1617
1806
  unposted_allowed: "true" | "false";
1618
1807
  journal_id: string;
1619
1808
  partner_id?: string | undefined;
@@ -1648,9 +1837,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
1648
1837
  }[];
1649
1838
  }[]>;
1650
1839
  getPaymentsByInvoiceId(invoice_id: string, params?: {
1651
- folder_id?: string | undefined;
1652
1840
  page?: number | undefined;
1653
1841
  size?: number | undefined;
1842
+ folder_id?: string | undefined;
1654
1843
  } | undefined): import("../types/api").RequestData<{
1655
1844
  id: string;
1656
1845
  name: string;
@@ -1774,8 +1963,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1774
1963
  attachPDF(invoice_id: string, attachment: {
1775
1964
  base64_string: string;
1776
1965
  }, params?: {
1777
- overwrite_existing?: "true" | "false" | undefined;
1778
1966
  folder_id?: string | undefined;
1967
+ overwrite_existing?: "true" | "false" | undefined;
1779
1968
  } | undefined): import("../types/api").RequestData<{
1780
1969
  headers: {
1781
1970
  [name: string]: unknown;
@@ -1792,8 +1981,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1792
1981
  base64_string: string;
1793
1982
  }[]>;
1794
1983
  getChartOfAccounts(params?: {
1795
- classes?: string | undefined;
1796
1984
  folder_id?: string | undefined;
1985
+ classes?: string | undefined;
1797
1986
  } | undefined): import("../types/api").RequestData<{
1798
1987
  number: string;
1799
1988
  name: string;
@@ -1849,8 +2038,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
1849
2038
  partner_id: string;
1850
2039
  account_number: string;
1851
2040
  reference?: string | undefined;
2041
+ matching_numbers: string[];
1852
2042
  payment_communication?: string | undefined;
1853
2043
  posted: boolean;
2044
+ original_document?: {
2045
+ id?: string | undefined;
2046
+ number?: string | undefined;
2047
+ journal_id?: string | undefined;
2048
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
2049
+ date?: string | undefined;
2050
+ due_date?: string | undefined;
2051
+ reference?: string | undefined;
2052
+ } | undefined;
1854
2053
  }[]>;
1855
2054
  createFinancialEntryOld(financial_entry: {
1856
2055
  date: string;
@@ -1868,8 +2067,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1868
2067
  }[];
1869
2068
  pdf?: string | undefined;
1870
2069
  }, params?: {
1871
- financial_counterpart_account?: string | undefined;
1872
2070
  folder_id?: string | undefined;
2071
+ financial_counterpart_account?: string | undefined;
1873
2072
  } | undefined): import("../types/api").RequestData<{
1874
2073
  date: string;
1875
2074
  journal_id: string;
@@ -1902,8 +2101,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1902
2101
  }[];
1903
2102
  pdf?: string | undefined;
1904
2103
  }, params?: {
1905
- financial_counterpart_account?: string | undefined;
1906
2104
  folder_id?: string | undefined;
2105
+ financial_counterpart_account?: string | undefined;
1907
2106
  } | undefined): import("../types/api").RequestData<{
1908
2107
  date: string;
1909
2108
  journal_id: string;
@@ -2003,8 +2202,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
2003
2202
  start_date?: string | undefined;
2004
2203
  end_date?: string | undefined;
2005
2204
  }, params?: {
2006
- force_currency_exchange?: "true" | "false" | undefined;
2007
2205
  folder_id?: string | undefined;
2206
+ force_currency_exchange?: "true" | "false" | undefined;
2008
2207
  } | undefined): import("../types/api").RequestData<{
2009
2208
  reference?: string | undefined;
2010
2209
  due_date?: string | undefined;
@@ -2044,6 +2243,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
2044
2243
  matching_number: string;
2045
2244
  balance: number;
2046
2245
  }>;
2246
+ matchEntriesMultiple(body: {
2247
+ matchings: {
2248
+ entries: string[];
2249
+ partner_id: string;
2250
+ }[];
2251
+ }, params?: {
2252
+ folder_id?: string | undefined;
2253
+ } | undefined): import("../types/api").RequestData<{
2254
+ matching_number?: string | undefined;
2255
+ processed: boolean;
2256
+ error_msg?: Record<string, never> | undefined;
2257
+ }[]>;
2047
2258
  getFolders(): import("../types/api").RequestData<{
2048
2259
  id: string;
2049
2260
  name: string;
@@ -2051,14 +2262,23 @@ declare const Consumers: (internalApi: InternalAPI) => {
2051
2262
  vat?: string | undefined;
2052
2263
  company_number?: string | undefined;
2053
2264
  }[]>;
2265
+ getBookyears(params?: {
2266
+ folder_id?: string | undefined;
2267
+ } | undefined): import("../types/api").RequestData<{
2268
+ name: string;
2269
+ start: string;
2270
+ end: string;
2271
+ closed: boolean;
2272
+ }[]>;
2054
2273
  }>;
2055
2274
  invoicing: import("../types/api").ApiFor<{
2056
2275
  getInvoices(params?: {
2057
2276
  date_from?: string | undefined;
2058
2277
  date_to?: string | undefined;
2059
2278
  payment_status?: "all" | "paid" | "unpaid" | undefined;
2060
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
2061
2279
  updated_after?: string | undefined;
2280
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
2281
+ include_invoice_lines?: "true" | "false" | undefined;
2062
2282
  } | undefined): import("../types/api").RequestData<{
2063
2283
  id: string;
2064
2284
  source_ref: {
@@ -2066,7 +2286,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2066
2286
  model?: string | undefined;
2067
2287
  };
2068
2288
  currency: string;
2069
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2289
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2070
2290
  status: "draft" | "posted" | "cancelled" | "paid";
2071
2291
  invoice_date: string;
2072
2292
  tax_amount: number;
@@ -2083,6 +2303,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2083
2303
  tax_rate?: number | undefined;
2084
2304
  account_number?: string | undefined;
2085
2305
  tax_id?: string | undefined;
2306
+ tax_exemption_reason?: string | undefined;
2086
2307
  unit_of_measure?: string | undefined;
2087
2308
  product_id?: string | undefined;
2088
2309
  product_code?: string | undefined;
@@ -2099,9 +2320,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
2099
2320
  model?: string | undefined;
2100
2321
  name?: string | undefined;
2101
2322
  } | undefined;
2323
+ italian_specificities?: {
2324
+ stamp_duty_amount?: number | undefined;
2325
+ withholding_tax?: {
2326
+ rate: number;
2327
+ amount: number;
2328
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2329
+ 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;
2330
+ } | undefined;
2331
+ welfare_fund?: {
2332
+ rate: number;
2333
+ amount: number;
2334
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2335
+ } | undefined;
2336
+ payment_reporting?: {
2337
+ 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;
2338
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2339
+ } | undefined;
2340
+ } | undefined;
2102
2341
  last_updated_on?: string | undefined;
2103
2342
  outstanding_amount?: number | undefined;
2104
2343
  accounting_date?: string | undefined;
2344
+ payment_method_id?: string | undefined;
2345
+ currency_exchange_rate: number;
2105
2346
  }[]>;
2106
2347
  getInvoiceById(invoiceId: string, params?: {
2107
2348
  include_pdf?: "true" | "false" | undefined;
@@ -2112,7 +2353,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2112
2353
  model?: string | undefined;
2113
2354
  };
2114
2355
  currency: string;
2115
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2356
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2116
2357
  status: "draft" | "posted" | "cancelled" | "paid";
2117
2358
  invoice_date: string;
2118
2359
  tax_amount: number;
@@ -2129,6 +2370,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2129
2370
  tax_rate?: number | undefined;
2130
2371
  account_number?: string | undefined;
2131
2372
  tax_id?: string | undefined;
2373
+ tax_exemption_reason?: string | undefined;
2132
2374
  unit_of_measure?: string | undefined;
2133
2375
  product_id?: string | undefined;
2134
2376
  product_code?: string | undefined;
@@ -2145,13 +2387,33 @@ declare const Consumers: (internalApi: InternalAPI) => {
2145
2387
  model?: string | undefined;
2146
2388
  name?: string | undefined;
2147
2389
  } | undefined;
2390
+ italian_specificities?: {
2391
+ stamp_duty_amount?: number | undefined;
2392
+ withholding_tax?: {
2393
+ rate: number;
2394
+ amount: number;
2395
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2396
+ 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;
2397
+ } | undefined;
2398
+ welfare_fund?: {
2399
+ rate: number;
2400
+ amount: number;
2401
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2402
+ } | undefined;
2403
+ payment_reporting?: {
2404
+ 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;
2405
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2406
+ } | undefined;
2407
+ } | undefined;
2148
2408
  last_updated_on?: string | undefined;
2149
2409
  outstanding_amount?: number | undefined;
2150
2410
  accounting_date?: string | undefined;
2411
+ payment_method_id?: string | undefined;
2412
+ currency_exchange_rate: number;
2151
2413
  }>;
2152
2414
  createInvoice(invoice: {
2153
2415
  currency: string;
2154
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2416
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2155
2417
  status: "draft" | "posted" | "cancelled" | "paid";
2156
2418
  invoice_date: string;
2157
2419
  tax_amount: number;
@@ -2168,6 +2430,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2168
2430
  tax_rate?: number | undefined;
2169
2431
  account_number?: string | undefined;
2170
2432
  tax_id?: string | undefined;
2433
+ tax_exemption_reason?: string | undefined;
2171
2434
  unit_of_measure?: string | undefined;
2172
2435
  product_id?: string | undefined;
2173
2436
  product_code?: string | undefined;
@@ -2184,6 +2447,24 @@ declare const Consumers: (internalApi: InternalAPI) => {
2184
2447
  model?: string | undefined;
2185
2448
  name?: string | undefined;
2186
2449
  } | undefined;
2450
+ italian_specificities?: {
2451
+ stamp_duty_amount?: number | undefined;
2452
+ withholding_tax?: {
2453
+ rate: number;
2454
+ amount: number;
2455
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2456
+ 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;
2457
+ } | undefined;
2458
+ welfare_fund?: {
2459
+ rate: number;
2460
+ amount: number;
2461
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2462
+ } | undefined;
2463
+ payment_reporting?: {
2464
+ 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;
2465
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2466
+ } | undefined;
2467
+ } | undefined;
2187
2468
  }): import("../types/api").RequestData<{
2188
2469
  id: string;
2189
2470
  source_ref: {
@@ -2191,7 +2472,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2191
2472
  model?: string | undefined;
2192
2473
  };
2193
2474
  currency: string;
2194
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2475
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2195
2476
  status: "draft" | "posted" | "cancelled" | "paid";
2196
2477
  invoice_date: string;
2197
2478
  tax_amount: number;
@@ -2208,6 +2489,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2208
2489
  tax_rate?: number | undefined;
2209
2490
  account_number?: string | undefined;
2210
2491
  tax_id?: string | undefined;
2492
+ tax_exemption_reason?: string | undefined;
2211
2493
  unit_of_measure?: string | undefined;
2212
2494
  product_id?: string | undefined;
2213
2495
  product_code?: string | undefined;
@@ -2224,9 +2506,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
2224
2506
  model?: string | undefined;
2225
2507
  name?: string | undefined;
2226
2508
  } | undefined;
2509
+ italian_specificities?: {
2510
+ stamp_duty_amount?: number | undefined;
2511
+ withholding_tax?: {
2512
+ rate: number;
2513
+ amount: number;
2514
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2515
+ 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;
2516
+ } | undefined;
2517
+ welfare_fund?: {
2518
+ rate: number;
2519
+ amount: number;
2520
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2521
+ } | undefined;
2522
+ payment_reporting?: {
2523
+ 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;
2524
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2525
+ } | undefined;
2526
+ } | undefined;
2227
2527
  last_updated_on?: string | undefined;
2228
2528
  outstanding_amount?: number | undefined;
2229
2529
  accounting_date?: string | undefined;
2530
+ payment_method_id?: string | undefined;
2531
+ currency_exchange_rate: number;
2230
2532
  }>;
2231
2533
  getProducts(): import("../types/api").RequestData<{
2232
2534
  id: string;
@@ -2523,6 +2825,31 @@ declare const Consumers: (internalApi: InternalAPI) => {
2523
2825
  }[];
2524
2826
  external_reference?: string | undefined;
2525
2827
  }>;
2828
+ getPayments(): import("../types/api").RequestData<{
2829
+ id: string;
2830
+ source_ref: {
2831
+ id?: string | undefined;
2832
+ model?: string | undefined;
2833
+ };
2834
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
2835
+ description: string;
2836
+ amount: number;
2837
+ currency: string;
2838
+ payment_date: string;
2839
+ partner_id: string;
2840
+ payment_method_id?: string | undefined;
2841
+ payment_method_name?: string | undefined;
2842
+ invoice_id?: string | undefined;
2843
+ invoice_number?: string | undefined;
2844
+ }[]>;
2845
+ getPaymentMethods(): import("../types/api").RequestData<{
2846
+ id: string;
2847
+ source_ref: {
2848
+ id?: string | undefined;
2849
+ model?: string | undefined;
2850
+ };
2851
+ name: string;
2852
+ }[]>;
2526
2853
  }>;
2527
2854
  ecommerce: import("../types/api").ApiFor<{
2528
2855
  getCustomers(): import("../types/api").RequestData<{
@@ -3662,13 +3989,59 @@ declare const Consumers: (internalApi: InternalAPI) => {
3662
3989
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
3663
3990
  setConnectionId: (connectionId: string) => Promise<void>;
3664
3991
  setIntegrationId: (integrationId: string) => Promise<void>;
3665
- }[]>;
3666
- createConsumer: (body: operations[chiftOperations['createConsumer']]['requestBody']['content']['application/json']) => Promise<{
3667
- consumerId: string;
3668
- getConnections: () => Promise<{
3669
- connectionid: string;
3992
+ updateConsumer: (body: {
3993
+ name?: string | undefined;
3994
+ email?: string | undefined;
3995
+ internal_reference?: string | undefined;
3996
+ redirect_url?: string | undefined;
3997
+ }) => Promise<{
3998
+ consumerid: string;
3670
3999
  name: string;
3671
- integration: string;
4000
+ email?: string | undefined;
4001
+ internal_reference?: string | undefined;
4002
+ redirect_url?: string | undefined;
4003
+ }>;
4004
+ updateFlowConfig: (syncId: string, flowId: string, body: {
4005
+ triggerid: string;
4006
+ data: Record<string, never>;
4007
+ }) => Promise<{
4008
+ name: string;
4009
+ description?: string | undefined;
4010
+ id: string;
4011
+ config?: {
4012
+ definitionFields?: Record<string, never>[] | undefined;
4013
+ doorkeyFields?: Record<string, never>[] | undefined;
4014
+ customFields?: Record<string, never>[] | undefined;
4015
+ datastores: {
4016
+ id?: string | undefined;
4017
+ name: string;
4018
+ status: "active" | "inactive";
4019
+ definition: {
4020
+ columns: {
4021
+ name: string;
4022
+ title: string;
4023
+ type: string;
4024
+ optional: boolean;
4025
+ }[];
4026
+ search_column?: string | undefined;
4027
+ };
4028
+ }[];
4029
+ } | undefined;
4030
+ values: Record<string, never>;
4031
+ enabled_on?: string | undefined;
4032
+ trigger: {
4033
+ id: string;
4034
+ type: "event" | "timer";
4035
+ cronschedule?: string | undefined;
4036
+ };
4037
+ }>;
4038
+ }[]>;
4039
+ createConsumer: (body: operations[chiftOperations['createConsumer']]['requestBody']['content']['application/json']) => Promise<{
4040
+ consumerId: string;
4041
+ getConnections: () => Promise<{
4042
+ connectionid: string;
4043
+ name: string;
4044
+ integration: string;
3672
4045
  integrationid: number;
3673
4046
  api: string;
3674
4047
  data?: Record<string, never> | undefined;
@@ -3787,6 +4160,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3787
4160
  discounts: {
3788
4161
  name?: string | undefined;
3789
4162
  total: number;
4163
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
3790
4164
  }[];
3791
4165
  product_id?: string | undefined;
3792
4166
  accounting_category_id?: string | undefined;
@@ -3864,6 +4238,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3864
4238
  discounts: {
3865
4239
  name?: string | undefined;
3866
4240
  total: number;
4241
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
3867
4242
  }[];
3868
4243
  product_id?: string | undefined;
3869
4244
  accounting_category_id?: string | undefined;
@@ -4038,6 +4413,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4038
4413
  discounts: {
4039
4414
  name?: string | undefined;
4040
4415
  total: number;
4416
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
4041
4417
  }[];
4042
4418
  product_id?: string | undefined;
4043
4419
  accounting_category_id?: string | undefined;
@@ -4119,11 +4495,62 @@ declare const Consumers: (internalApi: InternalAPI) => {
4119
4495
  discounts: {
4120
4496
  name?: string | undefined;
4121
4497
  total: number;
4498
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
4122
4499
  }[];
4123
4500
  product_id?: string | undefined;
4124
4501
  accounting_category_id?: string | undefined;
4125
4502
  }[];
4126
4503
  service_id?: string | undefined;
4504
+ reservation?: {
4505
+ id: string;
4506
+ source_ref: {
4507
+ id?: string | undefined;
4508
+ model?: string | undefined;
4509
+ };
4510
+ start_date?: string | undefined;
4511
+ end_date?: string | undefined;
4512
+ creation_date?: string | undefined;
4513
+ resource_id?: {
4514
+ id: string;
4515
+ source_ref: {
4516
+ id?: string | undefined;
4517
+ model?: string | undefined;
4518
+ };
4519
+ } | undefined;
4520
+ resource_name?: string | undefined;
4521
+ resource_identifier?: string | undefined;
4522
+ } | undefined;
4523
+ bills?: {
4524
+ id: string;
4525
+ source_ref: {
4526
+ id?: string | undefined;
4527
+ model?: string | undefined;
4528
+ };
4529
+ invoice_number?: string | undefined;
4530
+ creation_date?: string | undefined;
4531
+ closing_date?: string | undefined;
4532
+ partners?: {
4533
+ id: string;
4534
+ source_ref: {
4535
+ id?: string | undefined;
4536
+ model?: string | undefined;
4537
+ };
4538
+ type: "owner" | "account";
4539
+ address?: {
4540
+ address_type?: string | undefined;
4541
+ name?: string | undefined;
4542
+ street?: string | undefined;
4543
+ number?: string | undefined;
4544
+ box?: string | undefined;
4545
+ city?: string | undefined;
4546
+ postal_code?: string | undefined;
4547
+ country?: string | undefined;
4548
+ } | undefined;
4549
+ first_name?: string | undefined;
4550
+ last_name?: string | undefined;
4551
+ company_name?: string | undefined;
4552
+ }[] | undefined;
4553
+ }[] | undefined;
4127
4554
  }[]>;
4128
4555
  getPaymentMethods(params?: {
4129
4556
  location_id?: string | undefined;
@@ -4159,6 +4586,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
4159
4586
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
4160
4587
  currency?: string | undefined;
4161
4588
  date?: string | undefined;
4589
+ partner_id?: {
4590
+ id: string;
4591
+ source_ref: {
4592
+ id?: string | undefined;
4593
+ model?: string | undefined;
4594
+ };
4595
+ } | undefined;
4162
4596
  }[]>;
4163
4597
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
4164
4598
  id: string;
@@ -4171,6 +4605,128 @@ declare const Consumers: (internalApi: InternalAPI) => {
4171
4605
  ledger_account_code?: string | undefined;
4172
4606
  posting_account_code?: string | undefined;
4173
4607
  }[]>;
4608
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
4609
+ id: string;
4610
+ source_ref: {
4611
+ id?: string | undefined;
4612
+ model?: string | undefined;
4613
+ };
4614
+ first_name?: string | undefined;
4615
+ last_name?: string | undefined;
4616
+ company_name?: string | undefined;
4617
+ phone?: string | undefined;
4618
+ email?: string | undefined;
4619
+ account_number?: string | undefined;
4620
+ created_on?: string | undefined;
4621
+ addresses?: {
4622
+ address_type?: string | undefined;
4623
+ name?: string | undefined;
4624
+ street?: string | undefined;
4625
+ number?: string | undefined;
4626
+ box?: string | undefined;
4627
+ city?: string | undefined;
4628
+ postal_code?: string | undefined;
4629
+ country?: string | undefined;
4630
+ }[] | undefined;
4631
+ }[]>;
4632
+ getInvoices(params?: {
4633
+ date_from: string;
4634
+ date_to: string;
4635
+ location_id?: string | undefined;
4636
+ } | undefined): import("../types/api").RequestData<{
4637
+ id: string;
4638
+ source_ref: {
4639
+ id?: string | undefined;
4640
+ model?: string | undefined;
4641
+ };
4642
+ invoice_number?: string | undefined;
4643
+ creation_date?: string | undefined;
4644
+ closing_date?: string | undefined;
4645
+ partners?: {
4646
+ id: string;
4647
+ source_ref: {
4648
+ id?: string | undefined;
4649
+ model?: string | undefined;
4650
+ };
4651
+ type: "owner" | "account";
4652
+ address?: {
4653
+ address_type?: string | undefined;
4654
+ name?: string | undefined;
4655
+ street?: string | undefined;
4656
+ number?: string | undefined;
4657
+ box?: string | undefined;
4658
+ city?: string | undefined;
4659
+ postal_code?: string | undefined;
4660
+ country?: string | undefined;
4661
+ } | undefined;
4662
+ first_name?: string | undefined;
4663
+ last_name?: string | undefined;
4664
+ company_name?: string | undefined;
4665
+ }[] | undefined;
4666
+ items: {
4667
+ id: string;
4668
+ source_ref: {
4669
+ id?: string | undefined;
4670
+ model?: string | undefined;
4671
+ };
4672
+ type?: "menu" | "product" | undefined;
4673
+ menu_id?: string | undefined;
4674
+ quantity: number;
4675
+ unit_price: number;
4676
+ total: number;
4677
+ tax_amount: number;
4678
+ tax_rate?: number | undefined;
4679
+ description?: string | undefined;
4680
+ discounts: {
4681
+ name?: string | undefined;
4682
+ total: number;
4683
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
4684
+ }[];
4685
+ product_id?: string | undefined;
4686
+ accounting_category_id?: string | undefined;
4687
+ }[];
4688
+ payments: {
4689
+ id?: string | undefined;
4690
+ source_ref: {
4691
+ id?: string | undefined;
4692
+ model?: string | undefined;
4693
+ };
4694
+ payment_method_id?: string | undefined;
4695
+ payment_method_name?: string | undefined;
4696
+ total: number;
4697
+ tip: number;
4698
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
4699
+ currency?: string | undefined;
4700
+ date?: string | undefined;
4701
+ partner_id?: {
4702
+ id: string;
4703
+ source_ref: {
4704
+ id?: string | undefined;
4705
+ model?: string | undefined;
4706
+ };
4707
+ } | undefined;
4708
+ }[];
4709
+ service_id?: string | undefined;
4710
+ reservation?: {
4711
+ id: string;
4712
+ source_ref: {
4713
+ id?: string | undefined;
4714
+ model?: string | undefined;
4715
+ };
4716
+ start_date?: string | undefined;
4717
+ end_date?: string | undefined;
4718
+ creation_date?: string | undefined;
4719
+ resource_id?: {
4720
+ id: string;
4721
+ source_ref: {
4722
+ id?: string | undefined;
4723
+ model?: string | undefined;
4724
+ };
4725
+ } | undefined;
4726
+ resource_name?: string | undefined;
4727
+ resource_identifier?: string | undefined;
4728
+ } | undefined;
4729
+ }[]>;
4174
4730
  }>;
4175
4731
  payment: import("../types/api").ApiFor<{
4176
4732
  getPayments(params: {
@@ -4222,8 +4778,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4222
4778
  payment_id?: string | undefined;
4223
4779
  }[]>;
4224
4780
  getPayment(params: {
4225
- payment_id: string;
4226
4781
  consumer_id: string;
4782
+ payment_id: string;
4227
4783
  }): import("../types/api").RequestData<{
4228
4784
  id: string;
4229
4785
  source_ref: {
@@ -4266,6 +4822,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4266
4822
  getClients(params?: {
4267
4823
  search?: string | undefined;
4268
4824
  folder_id?: string | undefined;
4825
+ updated_after?: string | undefined;
4269
4826
  } | undefined): import("../types/api").RequestData<{
4270
4827
  external_reference?: string | undefined;
4271
4828
  first_name?: string | undefined;
@@ -4336,8 +4893,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4336
4893
  }[];
4337
4894
  account_number?: string | undefined;
4338
4895
  }, params?: {
4339
- force_merge?: string | undefined;
4340
4896
  folder_id?: string | undefined;
4897
+ force_merge?: string | undefined;
4341
4898
  } | undefined): import("../types/api").RequestData<{
4342
4899
  external_reference?: string | undefined;
4343
4900
  first_name?: string | undefined;
@@ -4485,6 +5042,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4485
5042
  getSuppliers(params?: {
4486
5043
  search?: string | undefined;
4487
5044
  folder_id?: string | undefined;
5045
+ updated_after?: string | undefined;
4488
5046
  } | undefined): import("../types/api").RequestData<{
4489
5047
  external_reference?: string | undefined;
4490
5048
  first_name?: string | undefined;
@@ -4555,8 +5113,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4555
5113
  }[];
4556
5114
  account_number?: string | undefined;
4557
5115
  }, params?: {
4558
- force_merge?: string | undefined;
4559
5116
  folder_id?: string | undefined;
5117
+ force_merge?: string | undefined;
4560
5118
  } | undefined): import("../types/api").RequestData<{
4561
5119
  external_reference?: string | undefined;
4562
5120
  first_name?: string | undefined;
@@ -4750,9 +5308,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
4750
5308
  analytic_account?: string | undefined;
4751
5309
  }[];
4752
5310
  }, params?: {
5311
+ folder_id?: string | undefined;
4753
5312
  force_financial_period?: string | undefined;
4754
5313
  regroup_lines?: "true" | "false" | undefined;
4755
- folder_id?: string | undefined;
4756
5314
  } | undefined): import("../types/api").RequestData<{
4757
5315
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4758
5316
  invoice_number?: string | undefined;
@@ -4853,9 +5411,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
4853
5411
  }[];
4854
5412
  }[];
4855
5413
  }, params?: {
5414
+ folder_id?: string | undefined;
4856
5415
  force_financial_period?: string | undefined;
4857
5416
  regroup_lines?: "true" | "false" | undefined;
4858
- folder_id?: string | undefined;
4859
5417
  } | undefined): import("../types/api").RequestData<{
4860
5418
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4861
5419
  invoice_number?: string | undefined;
@@ -4914,6 +5472,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4914
5472
  journal_ids?: string | undefined;
4915
5473
  include_payments?: "true" | "false" | undefined;
4916
5474
  payment_status?: "all" | "paid" | "unpaid" | undefined;
5475
+ updated_after?: string | undefined;
4917
5476
  } | undefined): import("../types/api").RequestData<{
4918
5477
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4919
5478
  invoice_number?: string | undefined;
@@ -4960,8 +5519,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4960
5519
  }[];
4961
5520
  }[]>;
4962
5521
  getInvoice(invoiceId: string, params?: {
4963
- include_payments?: "true" | "false" | undefined;
4964
5522
  folder_id?: string | undefined;
5523
+ include_payments?: "true" | "false" | undefined;
4965
5524
  } | undefined): import("../types/api").RequestData<{
4966
5525
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4967
5526
  invoice_number?: string | undefined;
@@ -5008,8 +5567,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
5008
5567
  }[];
5009
5568
  }>;
5010
5569
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
5011
- include_payments?: "true" | "false" | undefined;
5012
5570
  folder_id?: string | undefined;
5571
+ include_payments?: "true" | "false" | undefined;
5013
5572
  } | undefined): import("../types/api").RequestData<{
5014
5573
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5015
5574
  invoice_number?: string | undefined;
@@ -5068,6 +5627,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5068
5627
  journal_ids?: string | undefined;
5069
5628
  include_payments?: "true" | "false" | undefined;
5070
5629
  payment_status?: "all" | "paid" | "unpaid" | undefined;
5630
+ updated_after?: string | undefined;
5071
5631
  } | undefined): import("../types/api").RequestData<{
5072
5632
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5073
5633
  invoice_number?: string | undefined;
@@ -5240,9 +5800,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
5240
5800
  analytic_plan: string;
5241
5801
  }[]>;
5242
5802
  getJournalEntries(params: {
5243
- date_from: string;
5244
- date_to: string;
5803
+ date_from?: string | undefined;
5804
+ date_to?: string | undefined;
5245
5805
  folder_id?: string | undefined;
5806
+ updated_after?: string | undefined;
5246
5807
  unposted_allowed: "true" | "false";
5247
5808
  journal_id: string;
5248
5809
  partner_id?: string | undefined;
@@ -5272,9 +5833,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
5272
5833
  }[];
5273
5834
  }[]>;
5274
5835
  getJournalEntriesWithMultiplePlans(params: {
5275
- date_from: string;
5276
- date_to: string;
5836
+ date_from?: string | undefined;
5837
+ date_to?: string | undefined;
5277
5838
  folder_id?: string | undefined;
5839
+ updated_after?: string | undefined;
5278
5840
  unposted_allowed: "true" | "false";
5279
5841
  journal_id: string;
5280
5842
  partner_id?: string | undefined;
@@ -5309,9 +5871,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
5309
5871
  }[];
5310
5872
  }[]>;
5311
5873
  getPaymentsByInvoiceId(invoice_id: string, params?: {
5312
- folder_id?: string | undefined;
5313
5874
  page?: number | undefined;
5314
5875
  size?: number | undefined;
5876
+ folder_id?: string | undefined;
5315
5877
  } | undefined): import("../types/api").RequestData<{
5316
5878
  id: string;
5317
5879
  name: string;
@@ -5435,8 +5997,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
5435
5997
  attachPDF(invoice_id: string, attachment: {
5436
5998
  base64_string: string;
5437
5999
  }, params?: {
5438
- overwrite_existing?: "true" | "false" | undefined;
5439
6000
  folder_id?: string | undefined;
6001
+ overwrite_existing?: "true" | "false" | undefined;
5440
6002
  } | undefined): import("../types/api").RequestData<{
5441
6003
  headers: {
5442
6004
  [name: string]: unknown;
@@ -5453,8 +6015,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
5453
6015
  base64_string: string;
5454
6016
  }[]>;
5455
6017
  getChartOfAccounts(params?: {
5456
- classes?: string | undefined;
5457
6018
  folder_id?: string | undefined;
6019
+ classes?: string | undefined;
5458
6020
  } | undefined): import("../types/api").RequestData<{
5459
6021
  number: string;
5460
6022
  name: string;
@@ -5510,8 +6072,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
5510
6072
  partner_id: string;
5511
6073
  account_number: string;
5512
6074
  reference?: string | undefined;
6075
+ matching_numbers: string[];
5513
6076
  payment_communication?: string | undefined;
5514
6077
  posted: boolean;
6078
+ original_document?: {
6079
+ id?: string | undefined;
6080
+ number?: string | undefined;
6081
+ journal_id?: string | undefined;
6082
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
6083
+ date?: string | undefined;
6084
+ due_date?: string | undefined;
6085
+ reference?: string | undefined;
6086
+ } | undefined;
5515
6087
  }[]>;
5516
6088
  createFinancialEntryOld(financial_entry: {
5517
6089
  date: string;
@@ -5529,8 +6101,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
5529
6101
  }[];
5530
6102
  pdf?: string | undefined;
5531
6103
  }, params?: {
5532
- financial_counterpart_account?: string | undefined;
5533
6104
  folder_id?: string | undefined;
6105
+ financial_counterpart_account?: string | undefined;
5534
6106
  } | undefined): import("../types/api").RequestData<{
5535
6107
  date: string;
5536
6108
  journal_id: string;
@@ -5563,8 +6135,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
5563
6135
  }[];
5564
6136
  pdf?: string | undefined;
5565
6137
  }, params?: {
5566
- financial_counterpart_account?: string | undefined;
5567
6138
  folder_id?: string | undefined;
6139
+ financial_counterpart_account?: string | undefined;
5568
6140
  } | undefined): import("../types/api").RequestData<{
5569
6141
  date: string;
5570
6142
  journal_id: string;
@@ -5664,8 +6236,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
5664
6236
  start_date?: string | undefined;
5665
6237
  end_date?: string | undefined;
5666
6238
  }, params?: {
5667
- force_currency_exchange?: "true" | "false" | undefined;
5668
6239
  folder_id?: string | undefined;
6240
+ force_currency_exchange?: "true" | "false" | undefined;
5669
6241
  } | undefined): import("../types/api").RequestData<{
5670
6242
  reference?: string | undefined;
5671
6243
  due_date?: string | undefined;
@@ -5705,6 +6277,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
5705
6277
  matching_number: string;
5706
6278
  balance: number;
5707
6279
  }>;
6280
+ matchEntriesMultiple(body: {
6281
+ matchings: {
6282
+ entries: string[];
6283
+ partner_id: string;
6284
+ }[];
6285
+ }, params?: {
6286
+ folder_id?: string | undefined;
6287
+ } | undefined): import("../types/api").RequestData<{
6288
+ matching_number?: string | undefined;
6289
+ processed: boolean;
6290
+ error_msg?: Record<string, never> | undefined;
6291
+ }[]>;
5708
6292
  getFolders(): import("../types/api").RequestData<{
5709
6293
  id: string;
5710
6294
  name: string;
@@ -5712,14 +6296,23 @@ declare const Consumers: (internalApi: InternalAPI) => {
5712
6296
  vat?: string | undefined;
5713
6297
  company_number?: string | undefined;
5714
6298
  }[]>;
6299
+ getBookyears(params?: {
6300
+ folder_id?: string | undefined;
6301
+ } | undefined): import("../types/api").RequestData<{
6302
+ name: string;
6303
+ start: string;
6304
+ end: string;
6305
+ closed: boolean;
6306
+ }[]>;
5715
6307
  }>;
5716
6308
  invoicing: import("../types/api").ApiFor<{
5717
6309
  getInvoices(params?: {
5718
6310
  date_from?: string | undefined;
5719
6311
  date_to?: string | undefined;
5720
6312
  payment_status?: "all" | "paid" | "unpaid" | undefined;
5721
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
5722
6313
  updated_after?: string | undefined;
6314
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
6315
+ include_invoice_lines?: "true" | "false" | undefined;
5723
6316
  } | undefined): import("../types/api").RequestData<{
5724
6317
  id: string;
5725
6318
  source_ref: {
@@ -5727,7 +6320,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5727
6320
  model?: string | undefined;
5728
6321
  };
5729
6322
  currency: string;
5730
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6323
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5731
6324
  status: "draft" | "posted" | "cancelled" | "paid";
5732
6325
  invoice_date: string;
5733
6326
  tax_amount: number;
@@ -5744,6 +6337,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5744
6337
  tax_rate?: number | undefined;
5745
6338
  account_number?: string | undefined;
5746
6339
  tax_id?: string | undefined;
6340
+ tax_exemption_reason?: string | undefined;
5747
6341
  unit_of_measure?: string | undefined;
5748
6342
  product_id?: string | undefined;
5749
6343
  product_code?: string | undefined;
@@ -5760,9 +6354,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
5760
6354
  model?: string | undefined;
5761
6355
  name?: string | undefined;
5762
6356
  } | undefined;
6357
+ italian_specificities?: {
6358
+ stamp_duty_amount?: number | undefined;
6359
+ withholding_tax?: {
6360
+ rate: number;
6361
+ amount: number;
6362
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
6363
+ 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;
6364
+ } | undefined;
6365
+ welfare_fund?: {
6366
+ rate: number;
6367
+ amount: number;
6368
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
6369
+ } | undefined;
6370
+ payment_reporting?: {
6371
+ 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;
6372
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
6373
+ } | undefined;
6374
+ } | undefined;
5763
6375
  last_updated_on?: string | undefined;
5764
6376
  outstanding_amount?: number | undefined;
5765
6377
  accounting_date?: string | undefined;
6378
+ payment_method_id?: string | undefined;
6379
+ currency_exchange_rate: number;
5766
6380
  }[]>;
5767
6381
  getInvoiceById(invoiceId: string, params?: {
5768
6382
  include_pdf?: "true" | "false" | undefined;
@@ -5773,7 +6387,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5773
6387
  model?: string | undefined;
5774
6388
  };
5775
6389
  currency: string;
5776
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6390
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5777
6391
  status: "draft" | "posted" | "cancelled" | "paid";
5778
6392
  invoice_date: string;
5779
6393
  tax_amount: number;
@@ -5790,6 +6404,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5790
6404
  tax_rate?: number | undefined;
5791
6405
  account_number?: string | undefined;
5792
6406
  tax_id?: string | undefined;
6407
+ tax_exemption_reason?: string | undefined;
5793
6408
  unit_of_measure?: string | undefined;
5794
6409
  product_id?: string | undefined;
5795
6410
  product_code?: string | undefined;
@@ -5806,13 +6421,33 @@ declare const Consumers: (internalApi: InternalAPI) => {
5806
6421
  model?: string | undefined;
5807
6422
  name?: string | undefined;
5808
6423
  } | undefined;
6424
+ italian_specificities?: {
6425
+ stamp_duty_amount?: number | undefined;
6426
+ withholding_tax?: {
6427
+ rate: number;
6428
+ amount: number;
6429
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
6430
+ 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;
6431
+ } | undefined;
6432
+ welfare_fund?: {
6433
+ rate: number;
6434
+ amount: number;
6435
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
6436
+ } | undefined;
6437
+ payment_reporting?: {
6438
+ 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;
6439
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
6440
+ } | undefined;
6441
+ } | undefined;
5809
6442
  last_updated_on?: string | undefined;
5810
6443
  outstanding_amount?: number | undefined;
5811
6444
  accounting_date?: string | undefined;
6445
+ payment_method_id?: string | undefined;
6446
+ currency_exchange_rate: number;
5812
6447
  }>;
5813
6448
  createInvoice(invoice: {
5814
6449
  currency: string;
5815
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6450
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5816
6451
  status: "draft" | "posted" | "cancelled" | "paid";
5817
6452
  invoice_date: string;
5818
6453
  tax_amount: number;
@@ -5829,6 +6464,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5829
6464
  tax_rate?: number | undefined;
5830
6465
  account_number?: string | undefined;
5831
6466
  tax_id?: string | undefined;
6467
+ tax_exemption_reason?: string | undefined;
5832
6468
  unit_of_measure?: string | undefined;
5833
6469
  product_id?: string | undefined;
5834
6470
  product_code?: string | undefined;
@@ -5845,6 +6481,24 @@ declare const Consumers: (internalApi: InternalAPI) => {
5845
6481
  model?: string | undefined;
5846
6482
  name?: string | undefined;
5847
6483
  } | undefined;
6484
+ italian_specificities?: {
6485
+ stamp_duty_amount?: number | undefined;
6486
+ withholding_tax?: {
6487
+ rate: number;
6488
+ amount: number;
6489
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
6490
+ 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;
6491
+ } | undefined;
6492
+ welfare_fund?: {
6493
+ rate: number;
6494
+ amount: number;
6495
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
6496
+ } | undefined;
6497
+ payment_reporting?: {
6498
+ 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;
6499
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
6500
+ } | undefined;
6501
+ } | undefined;
5848
6502
  }): import("../types/api").RequestData<{
5849
6503
  id: string;
5850
6504
  source_ref: {
@@ -5852,7 +6506,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5852
6506
  model?: string | undefined;
5853
6507
  };
5854
6508
  currency: string;
5855
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6509
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5856
6510
  status: "draft" | "posted" | "cancelled" | "paid";
5857
6511
  invoice_date: string;
5858
6512
  tax_amount: number;
@@ -5869,6 +6523,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5869
6523
  tax_rate?: number | undefined;
5870
6524
  account_number?: string | undefined;
5871
6525
  tax_id?: string | undefined;
6526
+ tax_exemption_reason?: string | undefined;
5872
6527
  unit_of_measure?: string | undefined;
5873
6528
  product_id?: string | undefined;
5874
6529
  product_code?: string | undefined;
@@ -5885,9 +6540,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
5885
6540
  model?: string | undefined;
5886
6541
  name?: string | undefined;
5887
6542
  } | undefined;
6543
+ italian_specificities?: {
6544
+ stamp_duty_amount?: number | undefined;
6545
+ withholding_tax?: {
6546
+ rate: number;
6547
+ amount: number;
6548
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
6549
+ 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;
6550
+ } | undefined;
6551
+ welfare_fund?: {
6552
+ rate: number;
6553
+ amount: number;
6554
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
6555
+ } | undefined;
6556
+ payment_reporting?: {
6557
+ 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;
6558
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
6559
+ } | undefined;
6560
+ } | undefined;
5888
6561
  last_updated_on?: string | undefined;
5889
6562
  outstanding_amount?: number | undefined;
5890
6563
  accounting_date?: string | undefined;
6564
+ payment_method_id?: string | undefined;
6565
+ currency_exchange_rate: number;
5891
6566
  }>;
5892
6567
  getProducts(): import("../types/api").RequestData<{
5893
6568
  id: string;
@@ -6184,6 +6859,31 @@ declare const Consumers: (internalApi: InternalAPI) => {
6184
6859
  }[];
6185
6860
  external_reference?: string | undefined;
6186
6861
  }>;
6862
+ getPayments(): import("../types/api").RequestData<{
6863
+ id: string;
6864
+ source_ref: {
6865
+ id?: string | undefined;
6866
+ model?: string | undefined;
6867
+ };
6868
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
6869
+ description: string;
6870
+ amount: number;
6871
+ currency: string;
6872
+ payment_date: string;
6873
+ partner_id: string;
6874
+ payment_method_id?: string | undefined;
6875
+ payment_method_name?: string | undefined;
6876
+ invoice_id?: string | undefined;
6877
+ invoice_number?: string | undefined;
6878
+ }[]>;
6879
+ getPaymentMethods(): import("../types/api").RequestData<{
6880
+ id: string;
6881
+ source_ref: {
6882
+ id?: string | undefined;
6883
+ model?: string | undefined;
6884
+ };
6885
+ name: string;
6886
+ }[]>;
6187
6887
  }>;
6188
6888
  ecommerce: import("../types/api").ApiFor<{
6189
6889
  getCustomers(): import("../types/api").RequestData<{
@@ -7323,6 +8023,52 @@ declare const Consumers: (internalApi: InternalAPI) => {
7323
8023
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
7324
8024
  setConnectionId: (connectionId: string) => Promise<void>;
7325
8025
  setIntegrationId: (integrationId: string) => Promise<void>;
8026
+ updateConsumer: (body: {
8027
+ name?: string | undefined;
8028
+ email?: string | undefined;
8029
+ internal_reference?: string | undefined;
8030
+ redirect_url?: string | undefined;
8031
+ }) => Promise<{
8032
+ consumerid: string;
8033
+ name: string;
8034
+ email?: string | undefined;
8035
+ internal_reference?: string | undefined;
8036
+ redirect_url?: string | undefined;
8037
+ }>;
8038
+ updateFlowConfig: (syncId: string, flowId: string, body: {
8039
+ triggerid: string;
8040
+ data: Record<string, never>;
8041
+ }) => Promise<{
8042
+ name: string;
8043
+ description?: string | undefined;
8044
+ id: string;
8045
+ config?: {
8046
+ definitionFields?: Record<string, never>[] | undefined;
8047
+ doorkeyFields?: Record<string, never>[] | undefined;
8048
+ customFields?: Record<string, never>[] | undefined;
8049
+ datastores: {
8050
+ id?: string | undefined;
8051
+ name: string;
8052
+ status: "active" | "inactive";
8053
+ definition: {
8054
+ columns: {
8055
+ name: string;
8056
+ title: string;
8057
+ type: string;
8058
+ optional: boolean;
8059
+ }[];
8060
+ search_column?: string | undefined;
8061
+ };
8062
+ }[];
8063
+ } | undefined;
8064
+ values: Record<string, never>;
8065
+ enabled_on?: string | undefined;
8066
+ trigger: {
8067
+ id: string;
8068
+ type: "event" | "timer";
8069
+ cronschedule?: string | undefined;
8070
+ };
8071
+ }>;
7326
8072
  }>;
7327
8073
  getConsumerById: (consumerId: string) => Promise<{
7328
8074
  consumerId: string;
@@ -7448,6 +8194,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7448
8194
  discounts: {
7449
8195
  name?: string | undefined;
7450
8196
  total: number;
8197
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7451
8198
  }[];
7452
8199
  product_id?: string | undefined;
7453
8200
  accounting_category_id?: string | undefined;
@@ -7525,6 +8272,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7525
8272
  discounts: {
7526
8273
  name?: string | undefined;
7527
8274
  total: number;
8275
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7528
8276
  }[];
7529
8277
  product_id?: string | undefined;
7530
8278
  accounting_category_id?: string | undefined;
@@ -7699,6 +8447,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7699
8447
  discounts: {
7700
8448
  name?: string | undefined;
7701
8449
  total: number;
8450
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7702
8451
  }[];
7703
8452
  product_id?: string | undefined;
7704
8453
  accounting_category_id?: string | undefined;
@@ -7762,7 +8511,192 @@ declare const Consumers: (internalApi: InternalAPI) => {
7762
8511
  tax_amount: number;
7763
8512
  total: number;
7764
8513
  }[] | undefined;
7765
- guests?: number | undefined;
8514
+ guests?: number | undefined;
8515
+ items: {
8516
+ id: string;
8517
+ source_ref: {
8518
+ id?: string | undefined;
8519
+ model?: string | undefined;
8520
+ };
8521
+ type?: "menu" | "product" | undefined;
8522
+ menu_id?: string | undefined;
8523
+ quantity: number;
8524
+ unit_price: number;
8525
+ total: number;
8526
+ tax_amount: number;
8527
+ tax_rate?: number | undefined;
8528
+ description?: string | undefined;
8529
+ discounts: {
8530
+ name?: string | undefined;
8531
+ total: number;
8532
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
8533
+ }[];
8534
+ product_id?: string | undefined;
8535
+ accounting_category_id?: string | undefined;
8536
+ }[];
8537
+ service_id?: string | undefined;
8538
+ reservation?: {
8539
+ id: string;
8540
+ source_ref: {
8541
+ id?: string | undefined;
8542
+ model?: string | undefined;
8543
+ };
8544
+ start_date?: string | undefined;
8545
+ end_date?: string | undefined;
8546
+ creation_date?: string | undefined;
8547
+ resource_id?: {
8548
+ id: string;
8549
+ source_ref: {
8550
+ id?: string | undefined;
8551
+ model?: string | undefined;
8552
+ };
8553
+ } | undefined;
8554
+ resource_name?: string | undefined;
8555
+ resource_identifier?: string | undefined;
8556
+ } | undefined;
8557
+ bills?: {
8558
+ id: string;
8559
+ source_ref: {
8560
+ id?: string | undefined;
8561
+ model?: string | undefined;
8562
+ };
8563
+ invoice_number?: string | undefined;
8564
+ creation_date?: string | undefined;
8565
+ closing_date?: string | undefined;
8566
+ partners?: {
8567
+ id: string;
8568
+ source_ref: {
8569
+ id?: string | undefined;
8570
+ model?: string | undefined;
8571
+ };
8572
+ type: "owner" | "account";
8573
+ address?: {
8574
+ address_type?: string | undefined;
8575
+ name?: string | undefined;
8576
+ street?: string | undefined;
8577
+ number?: string | undefined;
8578
+ box?: string | undefined;
8579
+ city?: string | undefined;
8580
+ postal_code?: string | undefined;
8581
+ country?: string | undefined;
8582
+ } | undefined;
8583
+ first_name?: string | undefined;
8584
+ last_name?: string | undefined;
8585
+ company_name?: string | undefined;
8586
+ }[] | undefined;
8587
+ }[] | undefined;
8588
+ }[]>;
8589
+ getPaymentMethods(params?: {
8590
+ location_id?: string | undefined;
8591
+ } | undefined): import("../types/api").RequestData<{
8592
+ id: string;
8593
+ source_ref: {
8594
+ id?: string | undefined;
8595
+ model?: string | undefined;
8596
+ };
8597
+ name: string;
8598
+ extra?: string | undefined;
8599
+ ledger_account_code?: string | undefined;
8600
+ }[]>;
8601
+ getClosure(date: string, params?: {
8602
+ location_id?: string | undefined;
8603
+ } | undefined): import("../types/api").RequestData<{
8604
+ date: string;
8605
+ status: "open" | "closed";
8606
+ }>;
8607
+ getPayments(params: {
8608
+ date_from: string;
8609
+ date_to: string;
8610
+ }): import("../types/api").RequestData<{
8611
+ id?: string | undefined;
8612
+ source_ref: {
8613
+ id?: string | undefined;
8614
+ model?: string | undefined;
8615
+ };
8616
+ payment_method_id?: string | undefined;
8617
+ payment_method_name?: string | undefined;
8618
+ total: number;
8619
+ tip: number;
8620
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
8621
+ currency?: string | undefined;
8622
+ date?: string | undefined;
8623
+ partner_id?: {
8624
+ id: string;
8625
+ source_ref: {
8626
+ id?: string | undefined;
8627
+ model?: string | undefined;
8628
+ };
8629
+ } | undefined;
8630
+ }[]>;
8631
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
8632
+ id: string;
8633
+ source_ref: {
8634
+ id?: string | undefined;
8635
+ model?: string | undefined;
8636
+ };
8637
+ name: string;
8638
+ code?: string | undefined;
8639
+ ledger_account_code?: string | undefined;
8640
+ posting_account_code?: string | undefined;
8641
+ }[]>;
8642
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
8643
+ id: string;
8644
+ source_ref: {
8645
+ id?: string | undefined;
8646
+ model?: string | undefined;
8647
+ };
8648
+ first_name?: string | undefined;
8649
+ last_name?: string | undefined;
8650
+ company_name?: string | undefined;
8651
+ phone?: string | undefined;
8652
+ email?: string | undefined;
8653
+ account_number?: string | undefined;
8654
+ created_on?: string | undefined;
8655
+ addresses?: {
8656
+ address_type?: string | undefined;
8657
+ name?: string | undefined;
8658
+ street?: string | undefined;
8659
+ number?: string | undefined;
8660
+ box?: string | undefined;
8661
+ city?: string | undefined;
8662
+ postal_code?: string | undefined;
8663
+ country?: string | undefined;
8664
+ }[] | undefined;
8665
+ }[]>;
8666
+ getInvoices(params?: {
8667
+ date_from: string;
8668
+ date_to: string;
8669
+ location_id?: string | undefined;
8670
+ } | undefined): import("../types/api").RequestData<{
8671
+ id: string;
8672
+ source_ref: {
8673
+ id?: string | undefined;
8674
+ model?: string | undefined;
8675
+ };
8676
+ invoice_number?: string | undefined;
8677
+ creation_date?: string | undefined;
8678
+ closing_date?: string | undefined;
8679
+ partners?: {
8680
+ id: string;
8681
+ source_ref: {
8682
+ id?: string | undefined;
8683
+ model?: string | undefined;
8684
+ };
8685
+ type: "owner" | "account";
8686
+ address?: {
8687
+ address_type?: string | undefined;
8688
+ name?: string | undefined;
8689
+ street?: string | undefined;
8690
+ number?: string | undefined;
8691
+ box?: string | undefined;
8692
+ city?: string | undefined;
8693
+ postal_code?: string | undefined;
8694
+ country?: string | undefined;
8695
+ } | undefined;
8696
+ first_name?: string | undefined;
8697
+ last_name?: string | undefined;
8698
+ company_name?: string | undefined;
8699
+ }[] | undefined;
7766
8700
  items: {
7767
8701
  id: string;
7768
8702
  source_ref: {
@@ -7780,57 +8714,52 @@ declare const Consumers: (internalApi: InternalAPI) => {
7780
8714
  discounts: {
7781
8715
  name?: string | undefined;
7782
8716
  total: number;
8717
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7783
8718
  }[];
7784
8719
  product_id?: string | undefined;
7785
8720
  accounting_category_id?: string | undefined;
7786
8721
  }[];
7787
- service_id?: string | undefined;
7788
- }[]>;
7789
- getPaymentMethods(params?: {
7790
- location_id?: string | undefined;
7791
- } | undefined): import("../types/api").RequestData<{
7792
- id: string;
7793
- source_ref: {
7794
- id?: string | undefined;
7795
- model?: string | undefined;
7796
- };
7797
- name: string;
7798
- extra?: string | undefined;
7799
- ledger_account_code?: string | undefined;
7800
- }[]>;
7801
- getClosure(date: string, params?: {
7802
- location_id?: string | undefined;
7803
- } | undefined): import("../types/api").RequestData<{
7804
- date: string;
7805
- status: "open" | "closed";
7806
- }>;
7807
- getPayments(params: {
7808
- date_from: string;
7809
- date_to: string;
7810
- }): import("../types/api").RequestData<{
7811
- id?: string | undefined;
7812
- source_ref: {
7813
- id?: string | undefined;
7814
- model?: string | undefined;
7815
- };
7816
- payment_method_id?: string | undefined;
7817
- payment_method_name?: string | undefined;
7818
- total: number;
7819
- tip: number;
7820
- status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
7821
- currency?: string | undefined;
7822
- date?: string | undefined;
7823
- }[]>;
7824
- getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
7825
- id: string;
7826
- source_ref: {
8722
+ payments: {
7827
8723
  id?: string | undefined;
7828
- model?: string | undefined;
7829
- };
7830
- name: string;
7831
- code?: string | undefined;
7832
- ledger_account_code?: string | undefined;
7833
- posting_account_code?: string | undefined;
8724
+ source_ref: {
8725
+ id?: string | undefined;
8726
+ model?: string | undefined;
8727
+ };
8728
+ payment_method_id?: string | undefined;
8729
+ payment_method_name?: string | undefined;
8730
+ total: number;
8731
+ tip: number;
8732
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
8733
+ currency?: string | undefined;
8734
+ date?: string | undefined;
8735
+ partner_id?: {
8736
+ id: string;
8737
+ source_ref: {
8738
+ id?: string | undefined;
8739
+ model?: string | undefined;
8740
+ };
8741
+ } | undefined;
8742
+ }[];
8743
+ service_id?: string | undefined;
8744
+ reservation?: {
8745
+ id: string;
8746
+ source_ref: {
8747
+ id?: string | undefined;
8748
+ model?: string | undefined;
8749
+ };
8750
+ start_date?: string | undefined;
8751
+ end_date?: string | undefined;
8752
+ creation_date?: string | undefined;
8753
+ resource_id?: {
8754
+ id: string;
8755
+ source_ref: {
8756
+ id?: string | undefined;
8757
+ model?: string | undefined;
8758
+ };
8759
+ } | undefined;
8760
+ resource_name?: string | undefined;
8761
+ resource_identifier?: string | undefined;
8762
+ } | undefined;
7834
8763
  }[]>;
7835
8764
  }>;
7836
8765
  payment: import("../types/api").ApiFor<{
@@ -7883,8 +8812,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
7883
8812
  payment_id?: string | undefined;
7884
8813
  }[]>;
7885
8814
  getPayment(params: {
7886
- payment_id: string;
7887
8815
  consumer_id: string;
8816
+ payment_id: string;
7888
8817
  }): import("../types/api").RequestData<{
7889
8818
  id: string;
7890
8819
  source_ref: {
@@ -7927,6 +8856,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7927
8856
  getClients(params?: {
7928
8857
  search?: string | undefined;
7929
8858
  folder_id?: string | undefined;
8859
+ updated_after?: string | undefined;
7930
8860
  } | undefined): import("../types/api").RequestData<{
7931
8861
  external_reference?: string | undefined;
7932
8862
  first_name?: string | undefined;
@@ -7997,8 +8927,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
7997
8927
  }[];
7998
8928
  account_number?: string | undefined;
7999
8929
  }, params?: {
8000
- force_merge?: string | undefined;
8001
8930
  folder_id?: string | undefined;
8931
+ force_merge?: string | undefined;
8002
8932
  } | undefined): import("../types/api").RequestData<{
8003
8933
  external_reference?: string | undefined;
8004
8934
  first_name?: string | undefined;
@@ -8146,6 +9076,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8146
9076
  getSuppliers(params?: {
8147
9077
  search?: string | undefined;
8148
9078
  folder_id?: string | undefined;
9079
+ updated_after?: string | undefined;
8149
9080
  } | undefined): import("../types/api").RequestData<{
8150
9081
  external_reference?: string | undefined;
8151
9082
  first_name?: string | undefined;
@@ -8216,8 +9147,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
8216
9147
  }[];
8217
9148
  account_number?: string | undefined;
8218
9149
  }, params?: {
8219
- force_merge?: string | undefined;
8220
9150
  folder_id?: string | undefined;
9151
+ force_merge?: string | undefined;
8221
9152
  } | undefined): import("../types/api").RequestData<{
8222
9153
  external_reference?: string | undefined;
8223
9154
  first_name?: string | undefined;
@@ -8411,9 +9342,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
8411
9342
  analytic_account?: string | undefined;
8412
9343
  }[];
8413
9344
  }, params?: {
9345
+ folder_id?: string | undefined;
8414
9346
  force_financial_period?: string | undefined;
8415
9347
  regroup_lines?: "true" | "false" | undefined;
8416
- folder_id?: string | undefined;
8417
9348
  } | undefined): import("../types/api").RequestData<{
8418
9349
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8419
9350
  invoice_number?: string | undefined;
@@ -8514,9 +9445,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
8514
9445
  }[];
8515
9446
  }[];
8516
9447
  }, params?: {
9448
+ folder_id?: string | undefined;
8517
9449
  force_financial_period?: string | undefined;
8518
9450
  regroup_lines?: "true" | "false" | undefined;
8519
- folder_id?: string | undefined;
8520
9451
  } | undefined): import("../types/api").RequestData<{
8521
9452
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8522
9453
  invoice_number?: string | undefined;
@@ -8575,6 +9506,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8575
9506
  journal_ids?: string | undefined;
8576
9507
  include_payments?: "true" | "false" | undefined;
8577
9508
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9509
+ updated_after?: string | undefined;
8578
9510
  } | undefined): import("../types/api").RequestData<{
8579
9511
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8580
9512
  invoice_number?: string | undefined;
@@ -8621,8 +9553,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
8621
9553
  }[];
8622
9554
  }[]>;
8623
9555
  getInvoice(invoiceId: string, params?: {
8624
- include_payments?: "true" | "false" | undefined;
8625
9556
  folder_id?: string | undefined;
9557
+ include_payments?: "true" | "false" | undefined;
8626
9558
  } | undefined): import("../types/api").RequestData<{
8627
9559
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8628
9560
  invoice_number?: string | undefined;
@@ -8669,8 +9601,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
8669
9601
  }[];
8670
9602
  }>;
8671
9603
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
8672
- include_payments?: "true" | "false" | undefined;
8673
9604
  folder_id?: string | undefined;
9605
+ include_payments?: "true" | "false" | undefined;
8674
9606
  } | undefined): import("../types/api").RequestData<{
8675
9607
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8676
9608
  invoice_number?: string | undefined;
@@ -8729,6 +9661,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8729
9661
  journal_ids?: string | undefined;
8730
9662
  include_payments?: "true" | "false" | undefined;
8731
9663
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9664
+ updated_after?: string | undefined;
8732
9665
  } | undefined): import("../types/api").RequestData<{
8733
9666
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8734
9667
  invoice_number?: string | undefined;
@@ -8901,9 +9834,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
8901
9834
  analytic_plan: string;
8902
9835
  }[]>;
8903
9836
  getJournalEntries(params: {
8904
- date_from: string;
8905
- date_to: string;
9837
+ date_from?: string | undefined;
9838
+ date_to?: string | undefined;
8906
9839
  folder_id?: string | undefined;
9840
+ updated_after?: string | undefined;
8907
9841
  unposted_allowed: "true" | "false";
8908
9842
  journal_id: string;
8909
9843
  partner_id?: string | undefined;
@@ -8933,9 +9867,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
8933
9867
  }[];
8934
9868
  }[]>;
8935
9869
  getJournalEntriesWithMultiplePlans(params: {
8936
- date_from: string;
8937
- date_to: string;
9870
+ date_from?: string | undefined;
9871
+ date_to?: string | undefined;
8938
9872
  folder_id?: string | undefined;
9873
+ updated_after?: string | undefined;
8939
9874
  unposted_allowed: "true" | "false";
8940
9875
  journal_id: string;
8941
9876
  partner_id?: string | undefined;
@@ -8970,9 +9905,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
8970
9905
  }[];
8971
9906
  }[]>;
8972
9907
  getPaymentsByInvoiceId(invoice_id: string, params?: {
8973
- folder_id?: string | undefined;
8974
9908
  page?: number | undefined;
8975
9909
  size?: number | undefined;
9910
+ folder_id?: string | undefined;
8976
9911
  } | undefined): import("../types/api").RequestData<{
8977
9912
  id: string;
8978
9913
  name: string;
@@ -9096,8 +10031,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
9096
10031
  attachPDF(invoice_id: string, attachment: {
9097
10032
  base64_string: string;
9098
10033
  }, params?: {
9099
- overwrite_existing?: "true" | "false" | undefined;
9100
10034
  folder_id?: string | undefined;
10035
+ overwrite_existing?: "true" | "false" | undefined;
9101
10036
  } | undefined): import("../types/api").RequestData<{
9102
10037
  headers: {
9103
10038
  [name: string]: unknown;
@@ -9114,8 +10049,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
9114
10049
  base64_string: string;
9115
10050
  }[]>;
9116
10051
  getChartOfAccounts(params?: {
9117
- classes?: string | undefined;
9118
10052
  folder_id?: string | undefined;
10053
+ classes?: string | undefined;
9119
10054
  } | undefined): import("../types/api").RequestData<{
9120
10055
  number: string;
9121
10056
  name: string;
@@ -9171,8 +10106,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
9171
10106
  partner_id: string;
9172
10107
  account_number: string;
9173
10108
  reference?: string | undefined;
10109
+ matching_numbers: string[];
9174
10110
  payment_communication?: string | undefined;
9175
10111
  posted: boolean;
10112
+ original_document?: {
10113
+ id?: string | undefined;
10114
+ number?: string | undefined;
10115
+ journal_id?: string | undefined;
10116
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
10117
+ date?: string | undefined;
10118
+ due_date?: string | undefined;
10119
+ reference?: string | undefined;
10120
+ } | undefined;
9176
10121
  }[]>;
9177
10122
  createFinancialEntryOld(financial_entry: {
9178
10123
  date: string;
@@ -9190,8 +10135,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
9190
10135
  }[];
9191
10136
  pdf?: string | undefined;
9192
10137
  }, params?: {
9193
- financial_counterpart_account?: string | undefined;
9194
10138
  folder_id?: string | undefined;
10139
+ financial_counterpart_account?: string | undefined;
9195
10140
  } | undefined): import("../types/api").RequestData<{
9196
10141
  date: string;
9197
10142
  journal_id: string;
@@ -9224,8 +10169,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
9224
10169
  }[];
9225
10170
  pdf?: string | undefined;
9226
10171
  }, params?: {
9227
- financial_counterpart_account?: string | undefined;
9228
10172
  folder_id?: string | undefined;
10173
+ financial_counterpart_account?: string | undefined;
9229
10174
  } | undefined): import("../types/api").RequestData<{
9230
10175
  date: string;
9231
10176
  journal_id: string;
@@ -9325,8 +10270,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
9325
10270
  start_date?: string | undefined;
9326
10271
  end_date?: string | undefined;
9327
10272
  }, params?: {
9328
- force_currency_exchange?: "true" | "false" | undefined;
9329
10273
  folder_id?: string | undefined;
10274
+ force_currency_exchange?: "true" | "false" | undefined;
9330
10275
  } | undefined): import("../types/api").RequestData<{
9331
10276
  reference?: string | undefined;
9332
10277
  due_date?: string | undefined;
@@ -9366,6 +10311,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
9366
10311
  matching_number: string;
9367
10312
  balance: number;
9368
10313
  }>;
10314
+ matchEntriesMultiple(body: {
10315
+ matchings: {
10316
+ entries: string[];
10317
+ partner_id: string;
10318
+ }[];
10319
+ }, params?: {
10320
+ folder_id?: string | undefined;
10321
+ } | undefined): import("../types/api").RequestData<{
10322
+ matching_number?: string | undefined;
10323
+ processed: boolean;
10324
+ error_msg?: Record<string, never> | undefined;
10325
+ }[]>;
9369
10326
  getFolders(): import("../types/api").RequestData<{
9370
10327
  id: string;
9371
10328
  name: string;
@@ -9373,14 +10330,23 @@ declare const Consumers: (internalApi: InternalAPI) => {
9373
10330
  vat?: string | undefined;
9374
10331
  company_number?: string | undefined;
9375
10332
  }[]>;
10333
+ getBookyears(params?: {
10334
+ folder_id?: string | undefined;
10335
+ } | undefined): import("../types/api").RequestData<{
10336
+ name: string;
10337
+ start: string;
10338
+ end: string;
10339
+ closed: boolean;
10340
+ }[]>;
9376
10341
  }>;
9377
10342
  invoicing: import("../types/api").ApiFor<{
9378
10343
  getInvoices(params?: {
9379
10344
  date_from?: string | undefined;
9380
10345
  date_to?: string | undefined;
9381
10346
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9382
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
9383
10347
  updated_after?: string | undefined;
10348
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
10349
+ include_invoice_lines?: "true" | "false" | undefined;
9384
10350
  } | undefined): import("../types/api").RequestData<{
9385
10351
  id: string;
9386
10352
  source_ref: {
@@ -9388,7 +10354,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9388
10354
  model?: string | undefined;
9389
10355
  };
9390
10356
  currency: string;
9391
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10357
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9392
10358
  status: "draft" | "posted" | "cancelled" | "paid";
9393
10359
  invoice_date: string;
9394
10360
  tax_amount: number;
@@ -9405,6 +10371,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9405
10371
  tax_rate?: number | undefined;
9406
10372
  account_number?: string | undefined;
9407
10373
  tax_id?: string | undefined;
10374
+ tax_exemption_reason?: string | undefined;
9408
10375
  unit_of_measure?: string | undefined;
9409
10376
  product_id?: string | undefined;
9410
10377
  product_code?: string | undefined;
@@ -9421,9 +10388,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
9421
10388
  model?: string | undefined;
9422
10389
  name?: string | undefined;
9423
10390
  } | undefined;
10391
+ italian_specificities?: {
10392
+ stamp_duty_amount?: number | undefined;
10393
+ withholding_tax?: {
10394
+ rate: number;
10395
+ amount: number;
10396
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
10397
+ 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;
10398
+ } | undefined;
10399
+ welfare_fund?: {
10400
+ rate: number;
10401
+ amount: number;
10402
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
10403
+ } | undefined;
10404
+ payment_reporting?: {
10405
+ 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;
10406
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
10407
+ } | undefined;
10408
+ } | undefined;
9424
10409
  last_updated_on?: string | undefined;
9425
10410
  outstanding_amount?: number | undefined;
9426
10411
  accounting_date?: string | undefined;
10412
+ payment_method_id?: string | undefined;
10413
+ currency_exchange_rate: number;
9427
10414
  }[]>;
9428
10415
  getInvoiceById(invoiceId: string, params?: {
9429
10416
  include_pdf?: "true" | "false" | undefined;
@@ -9434,7 +10421,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9434
10421
  model?: string | undefined;
9435
10422
  };
9436
10423
  currency: string;
9437
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10424
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9438
10425
  status: "draft" | "posted" | "cancelled" | "paid";
9439
10426
  invoice_date: string;
9440
10427
  tax_amount: number;
@@ -9451,6 +10438,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9451
10438
  tax_rate?: number | undefined;
9452
10439
  account_number?: string | undefined;
9453
10440
  tax_id?: string | undefined;
10441
+ tax_exemption_reason?: string | undefined;
9454
10442
  unit_of_measure?: string | undefined;
9455
10443
  product_id?: string | undefined;
9456
10444
  product_code?: string | undefined;
@@ -9467,13 +10455,33 @@ declare const Consumers: (internalApi: InternalAPI) => {
9467
10455
  model?: string | undefined;
9468
10456
  name?: string | undefined;
9469
10457
  } | undefined;
10458
+ italian_specificities?: {
10459
+ stamp_duty_amount?: number | undefined;
10460
+ withholding_tax?: {
10461
+ rate: number;
10462
+ amount: number;
10463
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
10464
+ 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;
10465
+ } | undefined;
10466
+ welfare_fund?: {
10467
+ rate: number;
10468
+ amount: number;
10469
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
10470
+ } | undefined;
10471
+ payment_reporting?: {
10472
+ 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;
10473
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
10474
+ } | undefined;
10475
+ } | undefined;
9470
10476
  last_updated_on?: string | undefined;
9471
10477
  outstanding_amount?: number | undefined;
9472
10478
  accounting_date?: string | undefined;
10479
+ payment_method_id?: string | undefined;
10480
+ currency_exchange_rate: number;
9473
10481
  }>;
9474
10482
  createInvoice(invoice: {
9475
10483
  currency: string;
9476
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10484
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9477
10485
  status: "draft" | "posted" | "cancelled" | "paid";
9478
10486
  invoice_date: string;
9479
10487
  tax_amount: number;
@@ -9490,6 +10498,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9490
10498
  tax_rate?: number | undefined;
9491
10499
  account_number?: string | undefined;
9492
10500
  tax_id?: string | undefined;
10501
+ tax_exemption_reason?: string | undefined;
9493
10502
  unit_of_measure?: string | undefined;
9494
10503
  product_id?: string | undefined;
9495
10504
  product_code?: string | undefined;
@@ -9506,6 +10515,24 @@ declare const Consumers: (internalApi: InternalAPI) => {
9506
10515
  model?: string | undefined;
9507
10516
  name?: string | undefined;
9508
10517
  } | undefined;
10518
+ italian_specificities?: {
10519
+ stamp_duty_amount?: number | undefined;
10520
+ withholding_tax?: {
10521
+ rate: number;
10522
+ amount: number;
10523
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
10524
+ 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;
10525
+ } | undefined;
10526
+ welfare_fund?: {
10527
+ rate: number;
10528
+ amount: number;
10529
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
10530
+ } | undefined;
10531
+ payment_reporting?: {
10532
+ 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;
10533
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
10534
+ } | undefined;
10535
+ } | undefined;
9509
10536
  }): import("../types/api").RequestData<{
9510
10537
  id: string;
9511
10538
  source_ref: {
@@ -9513,7 +10540,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9513
10540
  model?: string | undefined;
9514
10541
  };
9515
10542
  currency: string;
9516
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10543
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9517
10544
  status: "draft" | "posted" | "cancelled" | "paid";
9518
10545
  invoice_date: string;
9519
10546
  tax_amount: number;
@@ -9530,6 +10557,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9530
10557
  tax_rate?: number | undefined;
9531
10558
  account_number?: string | undefined;
9532
10559
  tax_id?: string | undefined;
10560
+ tax_exemption_reason?: string | undefined;
9533
10561
  unit_of_measure?: string | undefined;
9534
10562
  product_id?: string | undefined;
9535
10563
  product_code?: string | undefined;
@@ -9546,9 +10574,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
9546
10574
  model?: string | undefined;
9547
10575
  name?: string | undefined;
9548
10576
  } | undefined;
10577
+ italian_specificities?: {
10578
+ stamp_duty_amount?: number | undefined;
10579
+ withholding_tax?: {
10580
+ rate: number;
10581
+ amount: number;
10582
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
10583
+ 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;
10584
+ } | undefined;
10585
+ welfare_fund?: {
10586
+ rate: number;
10587
+ amount: number;
10588
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
10589
+ } | undefined;
10590
+ payment_reporting?: {
10591
+ 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;
10592
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
10593
+ } | undefined;
10594
+ } | undefined;
9549
10595
  last_updated_on?: string | undefined;
9550
10596
  outstanding_amount?: number | undefined;
9551
10597
  accounting_date?: string | undefined;
10598
+ payment_method_id?: string | undefined;
10599
+ currency_exchange_rate: number;
9552
10600
  }>;
9553
10601
  getProducts(): import("../types/api").RequestData<{
9554
10602
  id: string;
@@ -9845,6 +10893,31 @@ declare const Consumers: (internalApi: InternalAPI) => {
9845
10893
  }[];
9846
10894
  external_reference?: string | undefined;
9847
10895
  }>;
10896
+ getPayments(): import("../types/api").RequestData<{
10897
+ id: string;
10898
+ source_ref: {
10899
+ id?: string | undefined;
10900
+ model?: string | undefined;
10901
+ };
10902
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
10903
+ description: string;
10904
+ amount: number;
10905
+ currency: string;
10906
+ payment_date: string;
10907
+ partner_id: string;
10908
+ payment_method_id?: string | undefined;
10909
+ payment_method_name?: string | undefined;
10910
+ invoice_id?: string | undefined;
10911
+ invoice_number?: string | undefined;
10912
+ }[]>;
10913
+ getPaymentMethods(): import("../types/api").RequestData<{
10914
+ id: string;
10915
+ source_ref: {
10916
+ id?: string | undefined;
10917
+ model?: string | undefined;
10918
+ };
10919
+ name: string;
10920
+ }[]>;
9848
10921
  }>;
9849
10922
  ecommerce: import("../types/api").ApiFor<{
9850
10923
  getCustomers(): import("../types/api").RequestData<{
@@ -10984,6 +12057,52 @@ declare const Consumers: (internalApi: InternalAPI) => {
10984
12057
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
10985
12058
  setConnectionId: (connectionId: string) => Promise<void>;
10986
12059
  setIntegrationId: (integrationId: string) => Promise<void>;
12060
+ updateConsumer: (body: {
12061
+ name?: string | undefined;
12062
+ email?: string | undefined;
12063
+ internal_reference?: string | undefined;
12064
+ redirect_url?: string | undefined;
12065
+ }) => Promise<{
12066
+ consumerid: string;
12067
+ name: string;
12068
+ email?: string | undefined;
12069
+ internal_reference?: string | undefined;
12070
+ redirect_url?: string | undefined;
12071
+ }>;
12072
+ updateFlowConfig: (syncId: string, flowId: string, body: {
12073
+ triggerid: string;
12074
+ data: Record<string, never>;
12075
+ }) => Promise<{
12076
+ name: string;
12077
+ description?: string | undefined;
12078
+ id: string;
12079
+ config?: {
12080
+ definitionFields?: Record<string, never>[] | undefined;
12081
+ doorkeyFields?: Record<string, never>[] | undefined;
12082
+ customFields?: Record<string, never>[] | undefined;
12083
+ datastores: {
12084
+ id?: string | undefined;
12085
+ name: string;
12086
+ status: "active" | "inactive";
12087
+ definition: {
12088
+ columns: {
12089
+ name: string;
12090
+ title: string;
12091
+ type: string;
12092
+ optional: boolean;
12093
+ }[];
12094
+ search_column?: string | undefined;
12095
+ };
12096
+ }[];
12097
+ } | undefined;
12098
+ values: Record<string, never>;
12099
+ enabled_on?: string | undefined;
12100
+ trigger: {
12101
+ id: string;
12102
+ type: "event" | "timer";
12103
+ cronschedule?: string | undefined;
12104
+ };
12105
+ }>;
10987
12106
  }>;
10988
12107
  getConsumersByName: (consumerName: string) => Promise<{
10989
12108
  consumerId: string;
@@ -11109,6 +12228,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11109
12228
  discounts: {
11110
12229
  name?: string | undefined;
11111
12230
  total: number;
12231
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11112
12232
  }[];
11113
12233
  product_id?: string | undefined;
11114
12234
  accounting_category_id?: string | undefined;
@@ -11186,6 +12306,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11186
12306
  discounts: {
11187
12307
  name?: string | undefined;
11188
12308
  total: number;
12309
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11189
12310
  }[];
11190
12311
  product_id?: string | undefined;
11191
12312
  accounting_category_id?: string | undefined;
@@ -11360,6 +12481,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11360
12481
  discounts: {
11361
12482
  name?: string | undefined;
11362
12483
  total: number;
12484
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11363
12485
  }[];
11364
12486
  product_id?: string | undefined;
11365
12487
  accounting_category_id?: string | undefined;
@@ -11441,11 +12563,62 @@ declare const Consumers: (internalApi: InternalAPI) => {
11441
12563
  discounts: {
11442
12564
  name?: string | undefined;
11443
12565
  total: number;
12566
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11444
12567
  }[];
11445
12568
  product_id?: string | undefined;
11446
12569
  accounting_category_id?: string | undefined;
11447
12570
  }[];
11448
12571
  service_id?: string | undefined;
12572
+ reservation?: {
12573
+ id: string;
12574
+ source_ref: {
12575
+ id?: string | undefined;
12576
+ model?: string | undefined;
12577
+ };
12578
+ start_date?: string | undefined;
12579
+ end_date?: string | undefined;
12580
+ creation_date?: string | undefined;
12581
+ resource_id?: {
12582
+ id: string;
12583
+ source_ref: {
12584
+ id?: string | undefined;
12585
+ model?: string | undefined;
12586
+ };
12587
+ } | undefined;
12588
+ resource_name?: string | undefined;
12589
+ resource_identifier?: string | undefined;
12590
+ } | undefined;
12591
+ bills?: {
12592
+ id: string;
12593
+ source_ref: {
12594
+ id?: string | undefined;
12595
+ model?: string | undefined;
12596
+ };
12597
+ invoice_number?: string | undefined;
12598
+ creation_date?: string | undefined;
12599
+ closing_date?: string | undefined;
12600
+ partners?: {
12601
+ id: string;
12602
+ source_ref: {
12603
+ id?: string | undefined;
12604
+ model?: string | undefined;
12605
+ };
12606
+ type: "owner" | "account";
12607
+ address?: {
12608
+ address_type?: string | undefined;
12609
+ name?: string | undefined;
12610
+ street?: string | undefined;
12611
+ number?: string | undefined;
12612
+ box?: string | undefined;
12613
+ city?: string | undefined;
12614
+ postal_code?: string | undefined;
12615
+ country?: string | undefined;
12616
+ } | undefined;
12617
+ first_name?: string | undefined;
12618
+ last_name?: string | undefined;
12619
+ company_name?: string | undefined;
12620
+ }[] | undefined;
12621
+ }[] | undefined;
11449
12622
  }[]>;
11450
12623
  getPaymentMethods(params?: {
11451
12624
  location_id?: string | undefined;
@@ -11481,6 +12654,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
11481
12654
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
11482
12655
  currency?: string | undefined;
11483
12656
  date?: string | undefined;
12657
+ partner_id?: {
12658
+ id: string;
12659
+ source_ref: {
12660
+ id?: string | undefined;
12661
+ model?: string | undefined;
12662
+ };
12663
+ } | undefined;
11484
12664
  }[]>;
11485
12665
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
11486
12666
  id: string;
@@ -11493,6 +12673,128 @@ declare const Consumers: (internalApi: InternalAPI) => {
11493
12673
  ledger_account_code?: string | undefined;
11494
12674
  posting_account_code?: string | undefined;
11495
12675
  }[]>;
12676
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
12677
+ id: string;
12678
+ source_ref: {
12679
+ id?: string | undefined;
12680
+ model?: string | undefined;
12681
+ };
12682
+ first_name?: string | undefined;
12683
+ last_name?: string | undefined;
12684
+ company_name?: string | undefined;
12685
+ phone?: string | undefined;
12686
+ email?: string | undefined;
12687
+ account_number?: string | undefined;
12688
+ created_on?: string | undefined;
12689
+ addresses?: {
12690
+ address_type?: string | undefined;
12691
+ name?: string | undefined;
12692
+ street?: string | undefined;
12693
+ number?: string | undefined;
12694
+ box?: string | undefined;
12695
+ city?: string | undefined;
12696
+ postal_code?: string | undefined;
12697
+ country?: string | undefined;
12698
+ }[] | undefined;
12699
+ }[]>;
12700
+ getInvoices(params?: {
12701
+ date_from: string;
12702
+ date_to: string;
12703
+ location_id?: string | undefined;
12704
+ } | undefined): import("../types/api").RequestData<{
12705
+ id: string;
12706
+ source_ref: {
12707
+ id?: string | undefined;
12708
+ model?: string | undefined;
12709
+ };
12710
+ invoice_number?: string | undefined;
12711
+ creation_date?: string | undefined;
12712
+ closing_date?: string | undefined;
12713
+ partners?: {
12714
+ id: string;
12715
+ source_ref: {
12716
+ id?: string | undefined;
12717
+ model?: string | undefined;
12718
+ };
12719
+ type: "owner" | "account";
12720
+ address?: {
12721
+ address_type?: string | undefined;
12722
+ name?: string | undefined;
12723
+ street?: string | undefined;
12724
+ number?: string | undefined;
12725
+ box?: string | undefined;
12726
+ city?: string | undefined;
12727
+ postal_code?: string | undefined;
12728
+ country?: string | undefined;
12729
+ } | undefined;
12730
+ first_name?: string | undefined;
12731
+ last_name?: string | undefined;
12732
+ company_name?: string | undefined;
12733
+ }[] | undefined;
12734
+ items: {
12735
+ id: string;
12736
+ source_ref: {
12737
+ id?: string | undefined;
12738
+ model?: string | undefined;
12739
+ };
12740
+ type?: "menu" | "product" | undefined;
12741
+ menu_id?: string | undefined;
12742
+ quantity: number;
12743
+ unit_price: number;
12744
+ total: number;
12745
+ tax_amount: number;
12746
+ tax_rate?: number | undefined;
12747
+ description?: string | undefined;
12748
+ discounts: {
12749
+ name?: string | undefined;
12750
+ total: number;
12751
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
12752
+ }[];
12753
+ product_id?: string | undefined;
12754
+ accounting_category_id?: string | undefined;
12755
+ }[];
12756
+ payments: {
12757
+ id?: string | undefined;
12758
+ source_ref: {
12759
+ id?: string | undefined;
12760
+ model?: string | undefined;
12761
+ };
12762
+ payment_method_id?: string | undefined;
12763
+ payment_method_name?: string | undefined;
12764
+ total: number;
12765
+ tip: number;
12766
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
12767
+ currency?: string | undefined;
12768
+ date?: string | undefined;
12769
+ partner_id?: {
12770
+ id: string;
12771
+ source_ref: {
12772
+ id?: string | undefined;
12773
+ model?: string | undefined;
12774
+ };
12775
+ } | undefined;
12776
+ }[];
12777
+ service_id?: string | undefined;
12778
+ reservation?: {
12779
+ id: string;
12780
+ source_ref: {
12781
+ id?: string | undefined;
12782
+ model?: string | undefined;
12783
+ };
12784
+ start_date?: string | undefined;
12785
+ end_date?: string | undefined;
12786
+ creation_date?: string | undefined;
12787
+ resource_id?: {
12788
+ id: string;
12789
+ source_ref: {
12790
+ id?: string | undefined;
12791
+ model?: string | undefined;
12792
+ };
12793
+ } | undefined;
12794
+ resource_name?: string | undefined;
12795
+ resource_identifier?: string | undefined;
12796
+ } | undefined;
12797
+ }[]>;
11496
12798
  }>;
11497
12799
  payment: import("../types/api").ApiFor<{
11498
12800
  getPayments(params: {
@@ -11544,8 +12846,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
11544
12846
  payment_id?: string | undefined;
11545
12847
  }[]>;
11546
12848
  getPayment(params: {
11547
- payment_id: string;
11548
12849
  consumer_id: string;
12850
+ payment_id: string;
11549
12851
  }): import("../types/api").RequestData<{
11550
12852
  id: string;
11551
12853
  source_ref: {
@@ -11588,6 +12890,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11588
12890
  getClients(params?: {
11589
12891
  search?: string | undefined;
11590
12892
  folder_id?: string | undefined;
12893
+ updated_after?: string | undefined;
11591
12894
  } | undefined): import("../types/api").RequestData<{
11592
12895
  external_reference?: string | undefined;
11593
12896
  first_name?: string | undefined;
@@ -11658,8 +12961,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
11658
12961
  }[];
11659
12962
  account_number?: string | undefined;
11660
12963
  }, params?: {
11661
- force_merge?: string | undefined;
11662
12964
  folder_id?: string | undefined;
12965
+ force_merge?: string | undefined;
11663
12966
  } | undefined): import("../types/api").RequestData<{
11664
12967
  external_reference?: string | undefined;
11665
12968
  first_name?: string | undefined;
@@ -11807,6 +13110,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11807
13110
  getSuppliers(params?: {
11808
13111
  search?: string | undefined;
11809
13112
  folder_id?: string | undefined;
13113
+ updated_after?: string | undefined;
11810
13114
  } | undefined): import("../types/api").RequestData<{
11811
13115
  external_reference?: string | undefined;
11812
13116
  first_name?: string | undefined;
@@ -11877,8 +13181,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
11877
13181
  }[];
11878
13182
  account_number?: string | undefined;
11879
13183
  }, params?: {
11880
- force_merge?: string | undefined;
11881
13184
  folder_id?: string | undefined;
13185
+ force_merge?: string | undefined;
11882
13186
  } | undefined): import("../types/api").RequestData<{
11883
13187
  external_reference?: string | undefined;
11884
13188
  first_name?: string | undefined;
@@ -12072,9 +13376,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
12072
13376
  analytic_account?: string | undefined;
12073
13377
  }[];
12074
13378
  }, params?: {
13379
+ folder_id?: string | undefined;
12075
13380
  force_financial_period?: string | undefined;
12076
13381
  regroup_lines?: "true" | "false" | undefined;
12077
- folder_id?: string | undefined;
12078
13382
  } | undefined): import("../types/api").RequestData<{
12079
13383
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12080
13384
  invoice_number?: string | undefined;
@@ -12175,9 +13479,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
12175
13479
  }[];
12176
13480
  }[];
12177
13481
  }, params?: {
13482
+ folder_id?: string | undefined;
12178
13483
  force_financial_period?: string | undefined;
12179
13484
  regroup_lines?: "true" | "false" | undefined;
12180
- folder_id?: string | undefined;
12181
13485
  } | undefined): import("../types/api").RequestData<{
12182
13486
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12183
13487
  invoice_number?: string | undefined;
@@ -12236,6 +13540,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12236
13540
  journal_ids?: string | undefined;
12237
13541
  include_payments?: "true" | "false" | undefined;
12238
13542
  payment_status?: "all" | "paid" | "unpaid" | undefined;
13543
+ updated_after?: string | undefined;
12239
13544
  } | undefined): import("../types/api").RequestData<{
12240
13545
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12241
13546
  invoice_number?: string | undefined;
@@ -12282,8 +13587,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12282
13587
  }[];
12283
13588
  }[]>;
12284
13589
  getInvoice(invoiceId: string, params?: {
12285
- include_payments?: "true" | "false" | undefined;
12286
13590
  folder_id?: string | undefined;
13591
+ include_payments?: "true" | "false" | undefined;
12287
13592
  } | undefined): import("../types/api").RequestData<{
12288
13593
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12289
13594
  invoice_number?: string | undefined;
@@ -12330,8 +13635,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12330
13635
  }[];
12331
13636
  }>;
12332
13637
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
12333
- include_payments?: "true" | "false" | undefined;
12334
13638
  folder_id?: string | undefined;
13639
+ include_payments?: "true" | "false" | undefined;
12335
13640
  } | undefined): import("../types/api").RequestData<{
12336
13641
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12337
13642
  invoice_number?: string | undefined;
@@ -12390,6 +13695,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12390
13695
  journal_ids?: string | undefined;
12391
13696
  include_payments?: "true" | "false" | undefined;
12392
13697
  payment_status?: "all" | "paid" | "unpaid" | undefined;
13698
+ updated_after?: string | undefined;
12393
13699
  } | undefined): import("../types/api").RequestData<{
12394
13700
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12395
13701
  invoice_number?: string | undefined;
@@ -12562,9 +13868,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
12562
13868
  analytic_plan: string;
12563
13869
  }[]>;
12564
13870
  getJournalEntries(params: {
12565
- date_from: string;
12566
- date_to: string;
13871
+ date_from?: string | undefined;
13872
+ date_to?: string | undefined;
12567
13873
  folder_id?: string | undefined;
13874
+ updated_after?: string | undefined;
12568
13875
  unposted_allowed: "true" | "false";
12569
13876
  journal_id: string;
12570
13877
  partner_id?: string | undefined;
@@ -12594,9 +13901,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
12594
13901
  }[];
12595
13902
  }[]>;
12596
13903
  getJournalEntriesWithMultiplePlans(params: {
12597
- date_from: string;
12598
- date_to: string;
13904
+ date_from?: string | undefined;
13905
+ date_to?: string | undefined;
12599
13906
  folder_id?: string | undefined;
13907
+ updated_after?: string | undefined;
12600
13908
  unposted_allowed: "true" | "false";
12601
13909
  journal_id: string;
12602
13910
  partner_id?: string | undefined;
@@ -12631,9 +13939,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
12631
13939
  }[];
12632
13940
  }[]>;
12633
13941
  getPaymentsByInvoiceId(invoice_id: string, params?: {
12634
- folder_id?: string | undefined;
12635
13942
  page?: number | undefined;
12636
13943
  size?: number | undefined;
13944
+ folder_id?: string | undefined;
12637
13945
  } | undefined): import("../types/api").RequestData<{
12638
13946
  id: string;
12639
13947
  name: string;
@@ -12757,8 +14065,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12757
14065
  attachPDF(invoice_id: string, attachment: {
12758
14066
  base64_string: string;
12759
14067
  }, params?: {
12760
- overwrite_existing?: "true" | "false" | undefined;
12761
14068
  folder_id?: string | undefined;
14069
+ overwrite_existing?: "true" | "false" | undefined;
12762
14070
  } | undefined): import("../types/api").RequestData<{
12763
14071
  headers: {
12764
14072
  [name: string]: unknown;
@@ -12775,8 +14083,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12775
14083
  base64_string: string;
12776
14084
  }[]>;
12777
14085
  getChartOfAccounts(params?: {
12778
- classes?: string | undefined;
12779
14086
  folder_id?: string | undefined;
14087
+ classes?: string | undefined;
12780
14088
  } | undefined): import("../types/api").RequestData<{
12781
14089
  number: string;
12782
14090
  name: string;
@@ -12832,8 +14140,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
12832
14140
  partner_id: string;
12833
14141
  account_number: string;
12834
14142
  reference?: string | undefined;
14143
+ matching_numbers: string[];
12835
14144
  payment_communication?: string | undefined;
12836
14145
  posted: boolean;
14146
+ original_document?: {
14147
+ id?: string | undefined;
14148
+ number?: string | undefined;
14149
+ journal_id?: string | undefined;
14150
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
14151
+ date?: string | undefined;
14152
+ due_date?: string | undefined;
14153
+ reference?: string | undefined;
14154
+ } | undefined;
12837
14155
  }[]>;
12838
14156
  createFinancialEntryOld(financial_entry: {
12839
14157
  date: string;
@@ -12851,8 +14169,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12851
14169
  }[];
12852
14170
  pdf?: string | undefined;
12853
14171
  }, params?: {
12854
- financial_counterpart_account?: string | undefined;
12855
14172
  folder_id?: string | undefined;
14173
+ financial_counterpart_account?: string | undefined;
12856
14174
  } | undefined): import("../types/api").RequestData<{
12857
14175
  date: string;
12858
14176
  journal_id: string;
@@ -12885,8 +14203,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12885
14203
  }[];
12886
14204
  pdf?: string | undefined;
12887
14205
  }, params?: {
12888
- financial_counterpart_account?: string | undefined;
12889
14206
  folder_id?: string | undefined;
14207
+ financial_counterpart_account?: string | undefined;
12890
14208
  } | undefined): import("../types/api").RequestData<{
12891
14209
  date: string;
12892
14210
  journal_id: string;
@@ -12986,8 +14304,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12986
14304
  start_date?: string | undefined;
12987
14305
  end_date?: string | undefined;
12988
14306
  }, params?: {
12989
- force_currency_exchange?: "true" | "false" | undefined;
12990
14307
  folder_id?: string | undefined;
14308
+ force_currency_exchange?: "true" | "false" | undefined;
12991
14309
  } | undefined): import("../types/api").RequestData<{
12992
14310
  reference?: string | undefined;
12993
14311
  due_date?: string | undefined;
@@ -13027,6 +14345,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
13027
14345
  matching_number: string;
13028
14346
  balance: number;
13029
14347
  }>;
14348
+ matchEntriesMultiple(body: {
14349
+ matchings: {
14350
+ entries: string[];
14351
+ partner_id: string;
14352
+ }[];
14353
+ }, params?: {
14354
+ folder_id?: string | undefined;
14355
+ } | undefined): import("../types/api").RequestData<{
14356
+ matching_number?: string | undefined;
14357
+ processed: boolean;
14358
+ error_msg?: Record<string, never> | undefined;
14359
+ }[]>;
13030
14360
  getFolders(): import("../types/api").RequestData<{
13031
14361
  id: string;
13032
14362
  name: string;
@@ -13034,14 +14364,23 @@ declare const Consumers: (internalApi: InternalAPI) => {
13034
14364
  vat?: string | undefined;
13035
14365
  company_number?: string | undefined;
13036
14366
  }[]>;
14367
+ getBookyears(params?: {
14368
+ folder_id?: string | undefined;
14369
+ } | undefined): import("../types/api").RequestData<{
14370
+ name: string;
14371
+ start: string;
14372
+ end: string;
14373
+ closed: boolean;
14374
+ }[]>;
13037
14375
  }>;
13038
14376
  invoicing: import("../types/api").ApiFor<{
13039
14377
  getInvoices(params?: {
13040
14378
  date_from?: string | undefined;
13041
14379
  date_to?: string | undefined;
13042
14380
  payment_status?: "all" | "paid" | "unpaid" | undefined;
13043
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
13044
14381
  updated_after?: string | undefined;
14382
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
14383
+ include_invoice_lines?: "true" | "false" | undefined;
13045
14384
  } | undefined): import("../types/api").RequestData<{
13046
14385
  id: string;
13047
14386
  source_ref: {
@@ -13049,7 +14388,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13049
14388
  model?: string | undefined;
13050
14389
  };
13051
14390
  currency: string;
13052
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14391
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13053
14392
  status: "draft" | "posted" | "cancelled" | "paid";
13054
14393
  invoice_date: string;
13055
14394
  tax_amount: number;
@@ -13066,6 +14405,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13066
14405
  tax_rate?: number | undefined;
13067
14406
  account_number?: string | undefined;
13068
14407
  tax_id?: string | undefined;
14408
+ tax_exemption_reason?: string | undefined;
13069
14409
  unit_of_measure?: string | undefined;
13070
14410
  product_id?: string | undefined;
13071
14411
  product_code?: string | undefined;
@@ -13082,9 +14422,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
13082
14422
  model?: string | undefined;
13083
14423
  name?: string | undefined;
13084
14424
  } | undefined;
14425
+ italian_specificities?: {
14426
+ stamp_duty_amount?: number | undefined;
14427
+ withholding_tax?: {
14428
+ rate: number;
14429
+ amount: number;
14430
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
14431
+ 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;
14432
+ } | undefined;
14433
+ welfare_fund?: {
14434
+ rate: number;
14435
+ amount: number;
14436
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
14437
+ } | undefined;
14438
+ payment_reporting?: {
14439
+ 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;
14440
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
14441
+ } | undefined;
14442
+ } | undefined;
13085
14443
  last_updated_on?: string | undefined;
13086
14444
  outstanding_amount?: number | undefined;
13087
14445
  accounting_date?: string | undefined;
14446
+ payment_method_id?: string | undefined;
14447
+ currency_exchange_rate: number;
13088
14448
  }[]>;
13089
14449
  getInvoiceById(invoiceId: string, params?: {
13090
14450
  include_pdf?: "true" | "false" | undefined;
@@ -13095,7 +14455,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13095
14455
  model?: string | undefined;
13096
14456
  };
13097
14457
  currency: string;
13098
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14458
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13099
14459
  status: "draft" | "posted" | "cancelled" | "paid";
13100
14460
  invoice_date: string;
13101
14461
  tax_amount: number;
@@ -13112,6 +14472,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13112
14472
  tax_rate?: number | undefined;
13113
14473
  account_number?: string | undefined;
13114
14474
  tax_id?: string | undefined;
14475
+ tax_exemption_reason?: string | undefined;
13115
14476
  unit_of_measure?: string | undefined;
13116
14477
  product_id?: string | undefined;
13117
14478
  product_code?: string | undefined;
@@ -13128,13 +14489,33 @@ declare const Consumers: (internalApi: InternalAPI) => {
13128
14489
  model?: string | undefined;
13129
14490
  name?: string | undefined;
13130
14491
  } | undefined;
14492
+ italian_specificities?: {
14493
+ stamp_duty_amount?: number | undefined;
14494
+ withholding_tax?: {
14495
+ rate: number;
14496
+ amount: number;
14497
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
14498
+ 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;
14499
+ } | undefined;
14500
+ welfare_fund?: {
14501
+ rate: number;
14502
+ amount: number;
14503
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
14504
+ } | undefined;
14505
+ payment_reporting?: {
14506
+ 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;
14507
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
14508
+ } | undefined;
14509
+ } | undefined;
13131
14510
  last_updated_on?: string | undefined;
13132
14511
  outstanding_amount?: number | undefined;
13133
14512
  accounting_date?: string | undefined;
14513
+ payment_method_id?: string | undefined;
14514
+ currency_exchange_rate: number;
13134
14515
  }>;
13135
14516
  createInvoice(invoice: {
13136
14517
  currency: string;
13137
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14518
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13138
14519
  status: "draft" | "posted" | "cancelled" | "paid";
13139
14520
  invoice_date: string;
13140
14521
  tax_amount: number;
@@ -13151,6 +14532,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13151
14532
  tax_rate?: number | undefined;
13152
14533
  account_number?: string | undefined;
13153
14534
  tax_id?: string | undefined;
14535
+ tax_exemption_reason?: string | undefined;
13154
14536
  unit_of_measure?: string | undefined;
13155
14537
  product_id?: string | undefined;
13156
14538
  product_code?: string | undefined;
@@ -13167,6 +14549,24 @@ declare const Consumers: (internalApi: InternalAPI) => {
13167
14549
  model?: string | undefined;
13168
14550
  name?: string | undefined;
13169
14551
  } | undefined;
14552
+ italian_specificities?: {
14553
+ stamp_duty_amount?: number | undefined;
14554
+ withholding_tax?: {
14555
+ rate: number;
14556
+ amount: number;
14557
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
14558
+ 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;
14559
+ } | undefined;
14560
+ welfare_fund?: {
14561
+ rate: number;
14562
+ amount: number;
14563
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
14564
+ } | undefined;
14565
+ payment_reporting?: {
14566
+ 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;
14567
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
14568
+ } | undefined;
14569
+ } | undefined;
13170
14570
  }): import("../types/api").RequestData<{
13171
14571
  id: string;
13172
14572
  source_ref: {
@@ -13174,7 +14574,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13174
14574
  model?: string | undefined;
13175
14575
  };
13176
14576
  currency: string;
13177
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14577
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13178
14578
  status: "draft" | "posted" | "cancelled" | "paid";
13179
14579
  invoice_date: string;
13180
14580
  tax_amount: number;
@@ -13191,6 +14591,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13191
14591
  tax_rate?: number | undefined;
13192
14592
  account_number?: string | undefined;
13193
14593
  tax_id?: string | undefined;
14594
+ tax_exemption_reason?: string | undefined;
13194
14595
  unit_of_measure?: string | undefined;
13195
14596
  product_id?: string | undefined;
13196
14597
  product_code?: string | undefined;
@@ -13207,9 +14608,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
13207
14608
  model?: string | undefined;
13208
14609
  name?: string | undefined;
13209
14610
  } | undefined;
14611
+ italian_specificities?: {
14612
+ stamp_duty_amount?: number | undefined;
14613
+ withholding_tax?: {
14614
+ rate: number;
14615
+ amount: number;
14616
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
14617
+ 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;
14618
+ } | undefined;
14619
+ welfare_fund?: {
14620
+ rate: number;
14621
+ amount: number;
14622
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
14623
+ } | undefined;
14624
+ payment_reporting?: {
14625
+ 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;
14626
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
14627
+ } | undefined;
14628
+ } | undefined;
13210
14629
  last_updated_on?: string | undefined;
13211
14630
  outstanding_amount?: number | undefined;
13212
14631
  accounting_date?: string | undefined;
14632
+ payment_method_id?: string | undefined;
14633
+ currency_exchange_rate: number;
13213
14634
  }>;
13214
14635
  getProducts(): import("../types/api").RequestData<{
13215
14636
  id: string;
@@ -13506,6 +14927,31 @@ declare const Consumers: (internalApi: InternalAPI) => {
13506
14927
  }[];
13507
14928
  external_reference?: string | undefined;
13508
14929
  }>;
14930
+ getPayments(): import("../types/api").RequestData<{
14931
+ id: string;
14932
+ source_ref: {
14933
+ id?: string | undefined;
14934
+ model?: string | undefined;
14935
+ };
14936
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
14937
+ description: string;
14938
+ amount: number;
14939
+ currency: string;
14940
+ payment_date: string;
14941
+ partner_id: string;
14942
+ payment_method_id?: string | undefined;
14943
+ payment_method_name?: string | undefined;
14944
+ invoice_id?: string | undefined;
14945
+ invoice_number?: string | undefined;
14946
+ }[]>;
14947
+ getPaymentMethods(): import("../types/api").RequestData<{
14948
+ id: string;
14949
+ source_ref: {
14950
+ id?: string | undefined;
14951
+ model?: string | undefined;
14952
+ };
14953
+ name: string;
14954
+ }[]>;
13509
14955
  }>;
13510
14956
  ecommerce: import("../types/api").ApiFor<{
13511
14957
  getCustomers(): import("../types/api").RequestData<{
@@ -14645,6 +16091,52 @@ declare const Consumers: (internalApi: InternalAPI) => {
14645
16091
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
14646
16092
  setConnectionId: (connectionId: string) => Promise<void>;
14647
16093
  setIntegrationId: (integrationId: string) => Promise<void>;
16094
+ updateConsumer: (body: {
16095
+ name?: string | undefined;
16096
+ email?: string | undefined;
16097
+ internal_reference?: string | undefined;
16098
+ redirect_url?: string | undefined;
16099
+ }) => Promise<{
16100
+ consumerid: string;
16101
+ name: string;
16102
+ email?: string | undefined;
16103
+ internal_reference?: string | undefined;
16104
+ redirect_url?: string | undefined;
16105
+ }>;
16106
+ updateFlowConfig: (syncId: string, flowId: string, body: {
16107
+ triggerid: string;
16108
+ data: Record<string, never>;
16109
+ }) => Promise<{
16110
+ name: string;
16111
+ description?: string | undefined;
16112
+ id: string;
16113
+ config?: {
16114
+ definitionFields?: Record<string, never>[] | undefined;
16115
+ doorkeyFields?: Record<string, never>[] | undefined;
16116
+ customFields?: Record<string, never>[] | undefined;
16117
+ datastores: {
16118
+ id?: string | undefined;
16119
+ name: string;
16120
+ status: "active" | "inactive";
16121
+ definition: {
16122
+ columns: {
16123
+ name: string;
16124
+ title: string;
16125
+ type: string;
16126
+ optional: boolean;
16127
+ }[];
16128
+ search_column?: string | undefined;
16129
+ };
16130
+ }[];
16131
+ } | undefined;
16132
+ values: Record<string, never>;
16133
+ enabled_on?: string | undefined;
16134
+ trigger: {
16135
+ id: string;
16136
+ type: "event" | "timer";
16137
+ cronschedule?: string | undefined;
16138
+ };
16139
+ }>;
14648
16140
  }[]>;
14649
16141
  updateConsumerById: (consumerId: string, body: operations[chiftOperations['updateConsumer']]['requestBody']['content']['application/json']) => Promise<{
14650
16142
  consumerId: string;
@@ -14770,6 +16262,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14770
16262
  discounts: {
14771
16263
  name?: string | undefined;
14772
16264
  total: number;
16265
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
14773
16266
  }[];
14774
16267
  product_id?: string | undefined;
14775
16268
  accounting_category_id?: string | undefined;
@@ -14847,6 +16340,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14847
16340
  discounts: {
14848
16341
  name?: string | undefined;
14849
16342
  total: number;
16343
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
14850
16344
  }[];
14851
16345
  product_id?: string | undefined;
14852
16346
  accounting_category_id?: string | undefined;
@@ -15021,6 +16515,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
15021
16515
  discounts: {
15022
16516
  name?: string | undefined;
15023
16517
  total: number;
16518
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
15024
16519
  }[];
15025
16520
  product_id?: string | undefined;
15026
16521
  accounting_category_id?: string | undefined;
@@ -15102,11 +16597,62 @@ declare const Consumers: (internalApi: InternalAPI) => {
15102
16597
  discounts: {
15103
16598
  name?: string | undefined;
15104
16599
  total: number;
16600
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
15105
16601
  }[];
15106
16602
  product_id?: string | undefined;
15107
16603
  accounting_category_id?: string | undefined;
15108
16604
  }[];
15109
16605
  service_id?: string | undefined;
16606
+ reservation?: {
16607
+ id: string;
16608
+ source_ref: {
16609
+ id?: string | undefined;
16610
+ model?: string | undefined;
16611
+ };
16612
+ start_date?: string | undefined;
16613
+ end_date?: string | undefined;
16614
+ creation_date?: string | undefined;
16615
+ resource_id?: {
16616
+ id: string;
16617
+ source_ref: {
16618
+ id?: string | undefined;
16619
+ model?: string | undefined;
16620
+ };
16621
+ } | undefined;
16622
+ resource_name?: string | undefined;
16623
+ resource_identifier?: string | undefined;
16624
+ } | undefined;
16625
+ bills?: {
16626
+ id: string;
16627
+ source_ref: {
16628
+ id?: string | undefined;
16629
+ model?: string | undefined;
16630
+ };
16631
+ invoice_number?: string | undefined;
16632
+ creation_date?: string | undefined;
16633
+ closing_date?: string | undefined;
16634
+ partners?: {
16635
+ id: string;
16636
+ source_ref: {
16637
+ id?: string | undefined;
16638
+ model?: string | undefined;
16639
+ };
16640
+ type: "owner" | "account";
16641
+ address?: {
16642
+ address_type?: string | undefined;
16643
+ name?: string | undefined;
16644
+ street?: string | undefined;
16645
+ number?: string | undefined;
16646
+ box?: string | undefined;
16647
+ city?: string | undefined;
16648
+ postal_code?: string | undefined;
16649
+ country?: string | undefined;
16650
+ } | undefined;
16651
+ first_name?: string | undefined;
16652
+ last_name?: string | undefined;
16653
+ company_name?: string | undefined;
16654
+ }[] | undefined;
16655
+ }[] | undefined;
15110
16656
  }[]>;
15111
16657
  getPaymentMethods(params?: {
15112
16658
  location_id?: string | undefined;
@@ -15142,6 +16688,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
15142
16688
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
15143
16689
  currency?: string | undefined;
15144
16690
  date?: string | undefined;
16691
+ partner_id?: {
16692
+ id: string;
16693
+ source_ref: {
16694
+ id?: string | undefined;
16695
+ model?: string | undefined;
16696
+ };
16697
+ } | undefined;
15145
16698
  }[]>;
15146
16699
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
15147
16700
  id: string;
@@ -15154,6 +16707,128 @@ declare const Consumers: (internalApi: InternalAPI) => {
15154
16707
  ledger_account_code?: string | undefined;
15155
16708
  posting_account_code?: string | undefined;
15156
16709
  }[]>;
16710
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
16711
+ id: string;
16712
+ source_ref: {
16713
+ id?: string | undefined;
16714
+ model?: string | undefined;
16715
+ };
16716
+ first_name?: string | undefined;
16717
+ last_name?: string | undefined;
16718
+ company_name?: string | undefined;
16719
+ phone?: string | undefined;
16720
+ email?: string | undefined;
16721
+ account_number?: string | undefined;
16722
+ created_on?: string | undefined;
16723
+ addresses?: {
16724
+ address_type?: string | undefined;
16725
+ name?: string | undefined;
16726
+ street?: string | undefined;
16727
+ number?: string | undefined;
16728
+ box?: string | undefined;
16729
+ city?: string | undefined;
16730
+ postal_code?: string | undefined;
16731
+ country?: string | undefined;
16732
+ }[] | undefined;
16733
+ }[]>;
16734
+ getInvoices(params?: {
16735
+ date_from: string;
16736
+ date_to: string;
16737
+ location_id?: string | undefined;
16738
+ } | undefined): import("../types/api").RequestData<{
16739
+ id: string;
16740
+ source_ref: {
16741
+ id?: string | undefined;
16742
+ model?: string | undefined;
16743
+ };
16744
+ invoice_number?: string | undefined;
16745
+ creation_date?: string | undefined;
16746
+ closing_date?: string | undefined;
16747
+ partners?: {
16748
+ id: string;
16749
+ source_ref: {
16750
+ id?: string | undefined;
16751
+ model?: string | undefined;
16752
+ };
16753
+ type: "owner" | "account";
16754
+ address?: {
16755
+ address_type?: string | undefined;
16756
+ name?: string | undefined;
16757
+ street?: string | undefined;
16758
+ number?: string | undefined;
16759
+ box?: string | undefined;
16760
+ city?: string | undefined;
16761
+ postal_code?: string | undefined;
16762
+ country?: string | undefined;
16763
+ } | undefined;
16764
+ first_name?: string | undefined;
16765
+ last_name?: string | undefined;
16766
+ company_name?: string | undefined;
16767
+ }[] | undefined;
16768
+ items: {
16769
+ id: string;
16770
+ source_ref: {
16771
+ id?: string | undefined;
16772
+ model?: string | undefined;
16773
+ };
16774
+ type?: "menu" | "product" | undefined;
16775
+ menu_id?: string | undefined;
16776
+ quantity: number;
16777
+ unit_price: number;
16778
+ total: number;
16779
+ tax_amount: number;
16780
+ tax_rate?: number | undefined;
16781
+ description?: string | undefined;
16782
+ discounts: {
16783
+ name?: string | undefined;
16784
+ total: number;
16785
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
16786
+ }[];
16787
+ product_id?: string | undefined;
16788
+ accounting_category_id?: string | undefined;
16789
+ }[];
16790
+ payments: {
16791
+ id?: string | undefined;
16792
+ source_ref: {
16793
+ id?: string | undefined;
16794
+ model?: string | undefined;
16795
+ };
16796
+ payment_method_id?: string | undefined;
16797
+ payment_method_name?: string | undefined;
16798
+ total: number;
16799
+ tip: number;
16800
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
16801
+ currency?: string | undefined;
16802
+ date?: string | undefined;
16803
+ partner_id?: {
16804
+ id: string;
16805
+ source_ref: {
16806
+ id?: string | undefined;
16807
+ model?: string | undefined;
16808
+ };
16809
+ } | undefined;
16810
+ }[];
16811
+ service_id?: string | undefined;
16812
+ reservation?: {
16813
+ id: string;
16814
+ source_ref: {
16815
+ id?: string | undefined;
16816
+ model?: string | undefined;
16817
+ };
16818
+ start_date?: string | undefined;
16819
+ end_date?: string | undefined;
16820
+ creation_date?: string | undefined;
16821
+ resource_id?: {
16822
+ id: string;
16823
+ source_ref: {
16824
+ id?: string | undefined;
16825
+ model?: string | undefined;
16826
+ };
16827
+ } | undefined;
16828
+ resource_name?: string | undefined;
16829
+ resource_identifier?: string | undefined;
16830
+ } | undefined;
16831
+ }[]>;
15157
16832
  }>;
15158
16833
  payment: import("../types/api").ApiFor<{
15159
16834
  getPayments(params: {
@@ -15205,8 +16880,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
15205
16880
  payment_id?: string | undefined;
15206
16881
  }[]>;
15207
16882
  getPayment(params: {
15208
- payment_id: string;
15209
16883
  consumer_id: string;
16884
+ payment_id: string;
15210
16885
  }): import("../types/api").RequestData<{
15211
16886
  id: string;
15212
16887
  source_ref: {
@@ -15249,6 +16924,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
15249
16924
  getClients(params?: {
15250
16925
  search?: string | undefined;
15251
16926
  folder_id?: string | undefined;
16927
+ updated_after?: string | undefined;
15252
16928
  } | undefined): import("../types/api").RequestData<{
15253
16929
  external_reference?: string | undefined;
15254
16930
  first_name?: string | undefined;
@@ -15319,8 +16995,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
15319
16995
  }[];
15320
16996
  account_number?: string | undefined;
15321
16997
  }, params?: {
15322
- force_merge?: string | undefined;
15323
16998
  folder_id?: string | undefined;
16999
+ force_merge?: string | undefined;
15324
17000
  } | undefined): import("../types/api").RequestData<{
15325
17001
  external_reference?: string | undefined;
15326
17002
  first_name?: string | undefined;
@@ -15468,6 +17144,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
15468
17144
  getSuppliers(params?: {
15469
17145
  search?: string | undefined;
15470
17146
  folder_id?: string | undefined;
17147
+ updated_after?: string | undefined;
15471
17148
  } | undefined): import("../types/api").RequestData<{
15472
17149
  external_reference?: string | undefined;
15473
17150
  first_name?: string | undefined;
@@ -15538,8 +17215,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
15538
17215
  }[];
15539
17216
  account_number?: string | undefined;
15540
17217
  }, params?: {
15541
- force_merge?: string | undefined;
15542
17218
  folder_id?: string | undefined;
17219
+ force_merge?: string | undefined;
15543
17220
  } | undefined): import("../types/api").RequestData<{
15544
17221
  external_reference?: string | undefined;
15545
17222
  first_name?: string | undefined;
@@ -15733,9 +17410,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
15733
17410
  analytic_account?: string | undefined;
15734
17411
  }[];
15735
17412
  }, params?: {
17413
+ folder_id?: string | undefined;
15736
17414
  force_financial_period?: string | undefined;
15737
17415
  regroup_lines?: "true" | "false" | undefined;
15738
- folder_id?: string | undefined;
15739
17416
  } | undefined): import("../types/api").RequestData<{
15740
17417
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15741
17418
  invoice_number?: string | undefined;
@@ -15836,9 +17513,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
15836
17513
  }[];
15837
17514
  }[];
15838
17515
  }, params?: {
17516
+ folder_id?: string | undefined;
15839
17517
  force_financial_period?: string | undefined;
15840
17518
  regroup_lines?: "true" | "false" | undefined;
15841
- folder_id?: string | undefined;
15842
17519
  } | undefined): import("../types/api").RequestData<{
15843
17520
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15844
17521
  invoice_number?: string | undefined;
@@ -15897,6 +17574,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
15897
17574
  journal_ids?: string | undefined;
15898
17575
  include_payments?: "true" | "false" | undefined;
15899
17576
  payment_status?: "all" | "paid" | "unpaid" | undefined;
17577
+ updated_after?: string | undefined;
15900
17578
  } | undefined): import("../types/api").RequestData<{
15901
17579
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15902
17580
  invoice_number?: string | undefined;
@@ -15943,8 +17621,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
15943
17621
  }[];
15944
17622
  }[]>;
15945
17623
  getInvoice(invoiceId: string, params?: {
15946
- include_payments?: "true" | "false" | undefined;
15947
17624
  folder_id?: string | undefined;
17625
+ include_payments?: "true" | "false" | undefined;
15948
17626
  } | undefined): import("../types/api").RequestData<{
15949
17627
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15950
17628
  invoice_number?: string | undefined;
@@ -15991,8 +17669,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
15991
17669
  }[];
15992
17670
  }>;
15993
17671
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
15994
- include_payments?: "true" | "false" | undefined;
15995
17672
  folder_id?: string | undefined;
17673
+ include_payments?: "true" | "false" | undefined;
15996
17674
  } | undefined): import("../types/api").RequestData<{
15997
17675
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15998
17676
  invoice_number?: string | undefined;
@@ -16051,6 +17729,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16051
17729
  journal_ids?: string | undefined;
16052
17730
  include_payments?: "true" | "false" | undefined;
16053
17731
  payment_status?: "all" | "paid" | "unpaid" | undefined;
17732
+ updated_after?: string | undefined;
16054
17733
  } | undefined): import("../types/api").RequestData<{
16055
17734
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
16056
17735
  invoice_number?: string | undefined;
@@ -16223,9 +17902,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
16223
17902
  analytic_plan: string;
16224
17903
  }[]>;
16225
17904
  getJournalEntries(params: {
16226
- date_from: string;
16227
- date_to: string;
17905
+ date_from?: string | undefined;
17906
+ date_to?: string | undefined;
16228
17907
  folder_id?: string | undefined;
17908
+ updated_after?: string | undefined;
16229
17909
  unposted_allowed: "true" | "false";
16230
17910
  journal_id: string;
16231
17911
  partner_id?: string | undefined;
@@ -16255,9 +17935,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
16255
17935
  }[];
16256
17936
  }[]>;
16257
17937
  getJournalEntriesWithMultiplePlans(params: {
16258
- date_from: string;
16259
- date_to: string;
17938
+ date_from?: string | undefined;
17939
+ date_to?: string | undefined;
16260
17940
  folder_id?: string | undefined;
17941
+ updated_after?: string | undefined;
16261
17942
  unposted_allowed: "true" | "false";
16262
17943
  journal_id: string;
16263
17944
  partner_id?: string | undefined;
@@ -16292,9 +17973,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
16292
17973
  }[];
16293
17974
  }[]>;
16294
17975
  getPaymentsByInvoiceId(invoice_id: string, params?: {
16295
- folder_id?: string | undefined;
16296
17976
  page?: number | undefined;
16297
17977
  size?: number | undefined;
17978
+ folder_id?: string | undefined;
16298
17979
  } | undefined): import("../types/api").RequestData<{
16299
17980
  id: string;
16300
17981
  name: string;
@@ -16418,8 +18099,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
16418
18099
  attachPDF(invoice_id: string, attachment: {
16419
18100
  base64_string: string;
16420
18101
  }, params?: {
16421
- overwrite_existing?: "true" | "false" | undefined;
16422
18102
  folder_id?: string | undefined;
18103
+ overwrite_existing?: "true" | "false" | undefined;
16423
18104
  } | undefined): import("../types/api").RequestData<{
16424
18105
  headers: {
16425
18106
  [name: string]: unknown;
@@ -16436,8 +18117,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
16436
18117
  base64_string: string;
16437
18118
  }[]>;
16438
18119
  getChartOfAccounts(params?: {
16439
- classes?: string | undefined;
16440
18120
  folder_id?: string | undefined;
18121
+ classes?: string | undefined;
16441
18122
  } | undefined): import("../types/api").RequestData<{
16442
18123
  number: string;
16443
18124
  name: string;
@@ -16493,8 +18174,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
16493
18174
  partner_id: string;
16494
18175
  account_number: string;
16495
18176
  reference?: string | undefined;
18177
+ matching_numbers: string[];
16496
18178
  payment_communication?: string | undefined;
16497
18179
  posted: boolean;
18180
+ original_document?: {
18181
+ id?: string | undefined;
18182
+ number?: string | undefined;
18183
+ journal_id?: string | undefined;
18184
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
18185
+ date?: string | undefined;
18186
+ due_date?: string | undefined;
18187
+ reference?: string | undefined;
18188
+ } | undefined;
16498
18189
  }[]>;
16499
18190
  createFinancialEntryOld(financial_entry: {
16500
18191
  date: string;
@@ -16512,8 +18203,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
16512
18203
  }[];
16513
18204
  pdf?: string | undefined;
16514
18205
  }, params?: {
16515
- financial_counterpart_account?: string | undefined;
16516
18206
  folder_id?: string | undefined;
18207
+ financial_counterpart_account?: string | undefined;
16517
18208
  } | undefined): import("../types/api").RequestData<{
16518
18209
  date: string;
16519
18210
  journal_id: string;
@@ -16546,8 +18237,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
16546
18237
  }[];
16547
18238
  pdf?: string | undefined;
16548
18239
  }, params?: {
16549
- financial_counterpart_account?: string | undefined;
16550
18240
  folder_id?: string | undefined;
18241
+ financial_counterpart_account?: string | undefined;
16551
18242
  } | undefined): import("../types/api").RequestData<{
16552
18243
  date: string;
16553
18244
  journal_id: string;
@@ -16647,8 +18338,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
16647
18338
  start_date?: string | undefined;
16648
18339
  end_date?: string | undefined;
16649
18340
  }, params?: {
16650
- force_currency_exchange?: "true" | "false" | undefined;
16651
18341
  folder_id?: string | undefined;
18342
+ force_currency_exchange?: "true" | "false" | undefined;
16652
18343
  } | undefined): import("../types/api").RequestData<{
16653
18344
  reference?: string | undefined;
16654
18345
  due_date?: string | undefined;
@@ -16688,6 +18379,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
16688
18379
  matching_number: string;
16689
18380
  balance: number;
16690
18381
  }>;
18382
+ matchEntriesMultiple(body: {
18383
+ matchings: {
18384
+ entries: string[];
18385
+ partner_id: string;
18386
+ }[];
18387
+ }, params?: {
18388
+ folder_id?: string | undefined;
18389
+ } | undefined): import("../types/api").RequestData<{
18390
+ matching_number?: string | undefined;
18391
+ processed: boolean;
18392
+ error_msg?: Record<string, never> | undefined;
18393
+ }[]>;
16691
18394
  getFolders(): import("../types/api").RequestData<{
16692
18395
  id: string;
16693
18396
  name: string;
@@ -16695,14 +18398,23 @@ declare const Consumers: (internalApi: InternalAPI) => {
16695
18398
  vat?: string | undefined;
16696
18399
  company_number?: string | undefined;
16697
18400
  }[]>;
18401
+ getBookyears(params?: {
18402
+ folder_id?: string | undefined;
18403
+ } | undefined): import("../types/api").RequestData<{
18404
+ name: string;
18405
+ start: string;
18406
+ end: string;
18407
+ closed: boolean;
18408
+ }[]>;
16698
18409
  }>;
16699
18410
  invoicing: import("../types/api").ApiFor<{
16700
18411
  getInvoices(params?: {
16701
18412
  date_from?: string | undefined;
16702
18413
  date_to?: string | undefined;
16703
18414
  payment_status?: "all" | "paid" | "unpaid" | undefined;
16704
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
16705
18415
  updated_after?: string | undefined;
18416
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
18417
+ include_invoice_lines?: "true" | "false" | undefined;
16706
18418
  } | undefined): import("../types/api").RequestData<{
16707
18419
  id: string;
16708
18420
  source_ref: {
@@ -16710,7 +18422,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16710
18422
  model?: string | undefined;
16711
18423
  };
16712
18424
  currency: string;
16713
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
18425
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
16714
18426
  status: "draft" | "posted" | "cancelled" | "paid";
16715
18427
  invoice_date: string;
16716
18428
  tax_amount: number;
@@ -16727,6 +18439,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16727
18439
  tax_rate?: number | undefined;
16728
18440
  account_number?: string | undefined;
16729
18441
  tax_id?: string | undefined;
18442
+ tax_exemption_reason?: string | undefined;
16730
18443
  unit_of_measure?: string | undefined;
16731
18444
  product_id?: string | undefined;
16732
18445
  product_code?: string | undefined;
@@ -16743,9 +18456,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
16743
18456
  model?: string | undefined;
16744
18457
  name?: string | undefined;
16745
18458
  } | undefined;
18459
+ italian_specificities?: {
18460
+ stamp_duty_amount?: number | undefined;
18461
+ withholding_tax?: {
18462
+ rate: number;
18463
+ amount: number;
18464
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
18465
+ 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;
18466
+ } | undefined;
18467
+ welfare_fund?: {
18468
+ rate: number;
18469
+ amount: number;
18470
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
18471
+ } | undefined;
18472
+ payment_reporting?: {
18473
+ 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;
18474
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
18475
+ } | undefined;
18476
+ } | undefined;
16746
18477
  last_updated_on?: string | undefined;
16747
18478
  outstanding_amount?: number | undefined;
16748
18479
  accounting_date?: string | undefined;
18480
+ payment_method_id?: string | undefined;
18481
+ currency_exchange_rate: number;
16749
18482
  }[]>;
16750
18483
  getInvoiceById(invoiceId: string, params?: {
16751
18484
  include_pdf?: "true" | "false" | undefined;
@@ -16756,7 +18489,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16756
18489
  model?: string | undefined;
16757
18490
  };
16758
18491
  currency: string;
16759
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
18492
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
16760
18493
  status: "draft" | "posted" | "cancelled" | "paid";
16761
18494
  invoice_date: string;
16762
18495
  tax_amount: number;
@@ -16773,6 +18506,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16773
18506
  tax_rate?: number | undefined;
16774
18507
  account_number?: string | undefined;
16775
18508
  tax_id?: string | undefined;
18509
+ tax_exemption_reason?: string | undefined;
16776
18510
  unit_of_measure?: string | undefined;
16777
18511
  product_id?: string | undefined;
16778
18512
  product_code?: string | undefined;
@@ -16789,13 +18523,33 @@ declare const Consumers: (internalApi: InternalAPI) => {
16789
18523
  model?: string | undefined;
16790
18524
  name?: string | undefined;
16791
18525
  } | undefined;
18526
+ italian_specificities?: {
18527
+ stamp_duty_amount?: number | undefined;
18528
+ withholding_tax?: {
18529
+ rate: number;
18530
+ amount: number;
18531
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
18532
+ 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;
18533
+ } | undefined;
18534
+ welfare_fund?: {
18535
+ rate: number;
18536
+ amount: number;
18537
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
18538
+ } | undefined;
18539
+ payment_reporting?: {
18540
+ 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;
18541
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
18542
+ } | undefined;
18543
+ } | undefined;
16792
18544
  last_updated_on?: string | undefined;
16793
18545
  outstanding_amount?: number | undefined;
16794
18546
  accounting_date?: string | undefined;
18547
+ payment_method_id?: string | undefined;
18548
+ currency_exchange_rate: number;
16795
18549
  }>;
16796
18550
  createInvoice(invoice: {
16797
18551
  currency: string;
16798
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
18552
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
16799
18553
  status: "draft" | "posted" | "cancelled" | "paid";
16800
18554
  invoice_date: string;
16801
18555
  tax_amount: number;
@@ -16812,6 +18566,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16812
18566
  tax_rate?: number | undefined;
16813
18567
  account_number?: string | undefined;
16814
18568
  tax_id?: string | undefined;
18569
+ tax_exemption_reason?: string | undefined;
16815
18570
  unit_of_measure?: string | undefined;
16816
18571
  product_id?: string | undefined;
16817
18572
  product_code?: string | undefined;
@@ -16828,6 +18583,24 @@ declare const Consumers: (internalApi: InternalAPI) => {
16828
18583
  model?: string | undefined;
16829
18584
  name?: string | undefined;
16830
18585
  } | undefined;
18586
+ italian_specificities?: {
18587
+ stamp_duty_amount?: number | undefined;
18588
+ withholding_tax?: {
18589
+ rate: number;
18590
+ amount: number;
18591
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
18592
+ 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;
18593
+ } | undefined;
18594
+ welfare_fund?: {
18595
+ rate: number;
18596
+ amount: number;
18597
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
18598
+ } | undefined;
18599
+ payment_reporting?: {
18600
+ 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;
18601
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
18602
+ } | undefined;
18603
+ } | undefined;
16831
18604
  }): import("../types/api").RequestData<{
16832
18605
  id: string;
16833
18606
  source_ref: {
@@ -16835,7 +18608,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16835
18608
  model?: string | undefined;
16836
18609
  };
16837
18610
  currency: string;
16838
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
18611
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
16839
18612
  status: "draft" | "posted" | "cancelled" | "paid";
16840
18613
  invoice_date: string;
16841
18614
  tax_amount: number;
@@ -16852,6 +18625,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16852
18625
  tax_rate?: number | undefined;
16853
18626
  account_number?: string | undefined;
16854
18627
  tax_id?: string | undefined;
18628
+ tax_exemption_reason?: string | undefined;
16855
18629
  unit_of_measure?: string | undefined;
16856
18630
  product_id?: string | undefined;
16857
18631
  product_code?: string | undefined;
@@ -16868,9 +18642,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
16868
18642
  model?: string | undefined;
16869
18643
  name?: string | undefined;
16870
18644
  } | undefined;
18645
+ italian_specificities?: {
18646
+ stamp_duty_amount?: number | undefined;
18647
+ withholding_tax?: {
18648
+ rate: number;
18649
+ amount: number;
18650
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
18651
+ 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;
18652
+ } | undefined;
18653
+ welfare_fund?: {
18654
+ rate: number;
18655
+ amount: number;
18656
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
18657
+ } | undefined;
18658
+ payment_reporting?: {
18659
+ 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;
18660
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
18661
+ } | undefined;
18662
+ } | undefined;
16871
18663
  last_updated_on?: string | undefined;
16872
18664
  outstanding_amount?: number | undefined;
16873
18665
  accounting_date?: string | undefined;
18666
+ payment_method_id?: string | undefined;
18667
+ currency_exchange_rate: number;
16874
18668
  }>;
16875
18669
  getProducts(): import("../types/api").RequestData<{
16876
18670
  id: string;
@@ -17167,6 +18961,31 @@ declare const Consumers: (internalApi: InternalAPI) => {
17167
18961
  }[];
17168
18962
  external_reference?: string | undefined;
17169
18963
  }>;
18964
+ getPayments(): import("../types/api").RequestData<{
18965
+ id: string;
18966
+ source_ref: {
18967
+ id?: string | undefined;
18968
+ model?: string | undefined;
18969
+ };
18970
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
18971
+ description: string;
18972
+ amount: number;
18973
+ currency: string;
18974
+ payment_date: string;
18975
+ partner_id: string;
18976
+ payment_method_id?: string | undefined;
18977
+ payment_method_name?: string | undefined;
18978
+ invoice_id?: string | undefined;
18979
+ invoice_number?: string | undefined;
18980
+ }[]>;
18981
+ getPaymentMethods(): import("../types/api").RequestData<{
18982
+ id: string;
18983
+ source_ref: {
18984
+ id?: string | undefined;
18985
+ model?: string | undefined;
18986
+ };
18987
+ name: string;
18988
+ }[]>;
17170
18989
  }>;
17171
18990
  ecommerce: import("../types/api").ApiFor<{
17172
18991
  getCustomers(): import("../types/api").RequestData<{
@@ -18306,6 +20125,52 @@ declare const Consumers: (internalApi: InternalAPI) => {
18306
20125
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
18307
20126
  setConnectionId: (connectionId: string) => Promise<void>;
18308
20127
  setIntegrationId: (integrationId: string) => Promise<void>;
20128
+ updateConsumer: (body: {
20129
+ name?: string | undefined;
20130
+ email?: string | undefined;
20131
+ internal_reference?: string | undefined;
20132
+ redirect_url?: string | undefined;
20133
+ }) => Promise<{
20134
+ consumerid: string;
20135
+ name: string;
20136
+ email?: string | undefined;
20137
+ internal_reference?: string | undefined;
20138
+ redirect_url?: string | undefined;
20139
+ }>;
20140
+ updateFlowConfig: (syncId: string, flowId: string, body: {
20141
+ triggerid: string;
20142
+ data: Record<string, never>;
20143
+ }) => Promise<{
20144
+ name: string;
20145
+ description?: string | undefined;
20146
+ id: string;
20147
+ config?: {
20148
+ definitionFields?: Record<string, never>[] | undefined;
20149
+ doorkeyFields?: Record<string, never>[] | undefined;
20150
+ customFields?: Record<string, never>[] | undefined;
20151
+ datastores: {
20152
+ id?: string | undefined;
20153
+ name: string;
20154
+ status: "active" | "inactive";
20155
+ definition: {
20156
+ columns: {
20157
+ name: string;
20158
+ title: string;
20159
+ type: string;
20160
+ optional: boolean;
20161
+ }[];
20162
+ search_column?: string | undefined;
20163
+ };
20164
+ }[];
20165
+ } | undefined;
20166
+ values: Record<string, never>;
20167
+ enabled_on?: string | undefined;
20168
+ trigger: {
20169
+ id: string;
20170
+ type: "event" | "timer";
20171
+ cronschedule?: string | undefined;
20172
+ };
20173
+ }>;
18309
20174
  }>;
18310
20175
  deleteConsumerById: (consumerId: string) => Promise<{
18311
20176
  headers: {