@chift/chift-nodejs 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,6 +115,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
115
115
  }[];
116
116
  items: {
117
117
  id: string;
118
+ type?: "menu" | "product" | undefined;
119
+ menu_id?: string | undefined;
118
120
  quantity: number;
119
121
  unit_price: number;
120
122
  total: number;
@@ -124,6 +126,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
124
126
  discounts: {
125
127
  name?: string | undefined;
126
128
  total: number;
129
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
127
130
  }[];
128
131
  product_id?: string | undefined;
129
132
  accounting_category_id?: string | undefined;
@@ -190,6 +193,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
190
193
  }[];
191
194
  items: {
192
195
  id: string;
196
+ type?: "menu" | "product" | undefined;
197
+ menu_id?: string | undefined;
193
198
  quantity: number;
194
199
  unit_price: number;
195
200
  total: number;
@@ -199,6 +204,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
199
204
  discounts: {
200
205
  name?: string | undefined;
201
206
  total: number;
207
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
202
208
  }[];
203
209
  product_id?: string | undefined;
204
210
  accounting_category_id?: string | undefined;
@@ -362,6 +368,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
362
368
  }[];
363
369
  items: {
364
370
  id: string;
371
+ type?: "menu" | "product" | undefined;
372
+ menu_id?: string | undefined;
365
373
  quantity: number;
366
374
  unit_price: number;
367
375
  total: number;
@@ -371,6 +379,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
371
379
  discounts: {
372
380
  name?: string | undefined;
373
381
  total: number;
382
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
374
383
  }[];
375
384
  product_id?: string | undefined;
376
385
  accounting_category_id?: string | undefined;
@@ -381,7 +390,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
381
390
  } | undefined): import("../types/api").RequestData<{
382
391
  id: string;
383
392
  name: string;
384
- id_parent?: string | undefined;
385
393
  code?: string | undefined;
386
394
  ledger_account_code?: string | undefined;
387
395
  posting_account_code?: string | undefined;
@@ -442,6 +450,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
442
450
  id?: string | undefined;
443
451
  model?: string | undefined;
444
452
  };
453
+ type?: "menu" | "product" | undefined;
454
+ menu_id?: string | undefined;
445
455
  quantity: number;
446
456
  unit_price: number;
447
457
  total: number;
@@ -451,11 +461,62 @@ declare const Consumers: (internalApi: InternalAPI) => {
451
461
  discounts: {
452
462
  name?: string | undefined;
453
463
  total: number;
464
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
454
465
  }[];
455
466
  product_id?: string | undefined;
456
467
  accounting_category_id?: string | undefined;
457
468
  }[];
458
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;
459
520
  }[]>;
460
521
  getPaymentMethods(params?: {
461
522
  location_id?: string | undefined;
@@ -491,6 +552,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
491
552
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
492
553
  currency?: string | undefined;
493
554
  date?: string | undefined;
555
+ partner_id?: {
556
+ id: string;
557
+ source_ref: {
558
+ id?: string | undefined;
559
+ model?: string | undefined;
560
+ };
561
+ } | undefined;
494
562
  }[]>;
495
563
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
496
564
  id: string;
@@ -499,11 +567,132 @@ declare const Consumers: (internalApi: InternalAPI) => {
499
567
  model?: string | undefined;
500
568
  };
501
569
  name: string;
502
- id_parent?: string | undefined;
503
570
  code?: string | undefined;
504
571
  ledger_account_code?: string | undefined;
505
572
  posting_account_code?: string | undefined;
506
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
+ }[]>;
507
696
  }>;
508
697
  payment: import("../types/api").ApiFor<{
509
698
  getPayments(params: {
@@ -555,8 +744,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
555
744
  payment_id?: string | undefined;
556
745
  }[]>;
557
746
  getPayment(params: {
558
- payment_id: string;
559
747
  consumer_id: string;
748
+ payment_id: string;
560
749
  }): import("../types/api").RequestData<{
561
750
  id: string;
562
751
  source_ref: {
@@ -597,7 +786,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
597
786
  active: boolean;
598
787
  }[]>;
599
788
  getClients(params?: {
789
+ search?: string | undefined;
600
790
  folder_id?: string | undefined;
791
+ updated_after?: string | undefined;
601
792
  } | undefined): import("../types/api").RequestData<{
602
793
  external_reference?: string | undefined;
603
794
  first_name?: string | undefined;
@@ -668,8 +859,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
668
859
  }[];
669
860
  account_number?: string | undefined;
670
861
  }, params?: {
671
- force_merge?: string | undefined;
672
862
  folder_id?: string | undefined;
863
+ force_merge?: string | undefined;
673
864
  } | undefined): import("../types/api").RequestData<{
674
865
  external_reference?: string | undefined;
675
866
  first_name?: string | undefined;
@@ -815,7 +1006,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
815
1006
  id?: string | undefined;
816
1007
  }>;
817
1008
  getSuppliers(params?: {
1009
+ search?: string | undefined;
818
1010
  folder_id?: string | undefined;
1011
+ updated_after?: string | undefined;
819
1012
  } | undefined): import("../types/api").RequestData<{
820
1013
  external_reference?: string | undefined;
821
1014
  first_name?: string | undefined;
@@ -886,8 +1079,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
886
1079
  }[];
887
1080
  account_number?: string | undefined;
888
1081
  }, params?: {
889
- force_merge?: string | undefined;
890
1082
  folder_id?: string | undefined;
1083
+ force_merge?: string | undefined;
891
1084
  } | undefined): import("../types/api").RequestData<{
892
1085
  external_reference?: string | undefined;
893
1086
  first_name?: string | undefined;
@@ -1081,9 +1274,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
1081
1274
  analytic_account?: string | undefined;
1082
1275
  }[];
1083
1276
  }, params?: {
1277
+ folder_id?: string | undefined;
1084
1278
  force_financial_period?: string | undefined;
1085
1279
  regroup_lines?: "true" | "false" | undefined;
1086
- folder_id?: string | undefined;
1087
1280
  } | undefined): import("../types/api").RequestData<{
1088
1281
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1089
1282
  invoice_number?: string | undefined;
@@ -1184,9 +1377,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
1184
1377
  }[];
1185
1378
  }[];
1186
1379
  }, params?: {
1380
+ folder_id?: string | undefined;
1187
1381
  force_financial_period?: string | undefined;
1188
1382
  regroup_lines?: "true" | "false" | undefined;
1189
- folder_id?: string | undefined;
1190
1383
  } | undefined): import("../types/api").RequestData<{
1191
1384
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1192
1385
  invoice_number?: string | undefined;
@@ -1245,6 +1438,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1245
1438
  journal_ids?: string | undefined;
1246
1439
  include_payments?: "true" | "false" | undefined;
1247
1440
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1441
+ updated_after?: string | undefined;
1248
1442
  } | undefined): import("../types/api").RequestData<{
1249
1443
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1250
1444
  invoice_number?: string | undefined;
@@ -1291,8 +1485,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1291
1485
  }[];
1292
1486
  }[]>;
1293
1487
  getInvoice(invoiceId: string, params?: {
1294
- include_payments?: "true" | "false" | undefined;
1295
1488
  folder_id?: string | undefined;
1489
+ include_payments?: "true" | "false" | undefined;
1296
1490
  } | undefined): import("../types/api").RequestData<{
1297
1491
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1298
1492
  invoice_number?: string | undefined;
@@ -1339,8 +1533,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1339
1533
  }[];
1340
1534
  }>;
1341
1535
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
1342
- include_payments?: "true" | "false" | undefined;
1343
1536
  folder_id?: string | undefined;
1537
+ include_payments?: "true" | "false" | undefined;
1344
1538
  } | undefined): import("../types/api").RequestData<{
1345
1539
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1346
1540
  invoice_number?: string | undefined;
@@ -1399,6 +1593,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
1399
1593
  journal_ids?: string | undefined;
1400
1594
  include_payments?: "true" | "false" | undefined;
1401
1595
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1596
+ updated_after?: string | undefined;
1402
1597
  } | undefined): import("../types/api").RequestData<{
1403
1598
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1404
1599
  invoice_number?: string | undefined;
@@ -1571,9 +1766,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
1571
1766
  analytic_plan: string;
1572
1767
  }[]>;
1573
1768
  getJournalEntries(params: {
1574
- date_from: string;
1575
- date_to: string;
1769
+ date_from?: string | undefined;
1770
+ date_to?: string | undefined;
1576
1771
  folder_id?: string | undefined;
1772
+ updated_after?: string | undefined;
1577
1773
  unposted_allowed: "true" | "false";
1578
1774
  journal_id: string;
1579
1775
  partner_id?: string | undefined;
@@ -1603,9 +1799,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
1603
1799
  }[];
1604
1800
  }[]>;
1605
1801
  getJournalEntriesWithMultiplePlans(params: {
1606
- date_from: string;
1607
- date_to: string;
1802
+ date_from?: string | undefined;
1803
+ date_to?: string | undefined;
1608
1804
  folder_id?: string | undefined;
1805
+ updated_after?: string | undefined;
1609
1806
  unposted_allowed: "true" | "false";
1610
1807
  journal_id: string;
1611
1808
  partner_id?: string | undefined;
@@ -1640,9 +1837,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
1640
1837
  }[];
1641
1838
  }[]>;
1642
1839
  getPaymentsByInvoiceId(invoice_id: string, params?: {
1643
- folder_id?: string | undefined;
1644
1840
  page?: number | undefined;
1645
1841
  size?: number | undefined;
1842
+ folder_id?: string | undefined;
1646
1843
  } | undefined): import("../types/api").RequestData<{
1647
1844
  id: string;
1648
1845
  name: string;
@@ -1766,8 +1963,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1766
1963
  attachPDF(invoice_id: string, attachment: {
1767
1964
  base64_string: string;
1768
1965
  }, params?: {
1769
- overwrite_existing?: "true" | "false" | undefined;
1770
1966
  folder_id?: string | undefined;
1967
+ overwrite_existing?: "true" | "false" | undefined;
1771
1968
  } | undefined): import("../types/api").RequestData<{
1772
1969
  headers: {
1773
1970
  [name: string]: unknown;
@@ -1784,8 +1981,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1784
1981
  base64_string: string;
1785
1982
  }[]>;
1786
1983
  getChartOfAccounts(params?: {
1787
- classes?: string | undefined;
1788
1984
  folder_id?: string | undefined;
1985
+ classes?: string | undefined;
1789
1986
  } | undefined): import("../types/api").RequestData<{
1790
1987
  number: string;
1791
1988
  name: string;
@@ -1841,8 +2038,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
1841
2038
  partner_id: string;
1842
2039
  account_number: string;
1843
2040
  reference?: string | undefined;
2041
+ matching_numbers: string[];
1844
2042
  payment_communication?: string | undefined;
1845
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;
1846
2053
  }[]>;
1847
2054
  createFinancialEntryOld(financial_entry: {
1848
2055
  date: string;
@@ -1860,8 +2067,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1860
2067
  }[];
1861
2068
  pdf?: string | undefined;
1862
2069
  }, params?: {
1863
- financial_counterpart_account?: string | undefined;
1864
2070
  folder_id?: string | undefined;
2071
+ financial_counterpart_account?: string | undefined;
1865
2072
  } | undefined): import("../types/api").RequestData<{
1866
2073
  date: string;
1867
2074
  journal_id: string;
@@ -1894,8 +2101,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
1894
2101
  }[];
1895
2102
  pdf?: string | undefined;
1896
2103
  }, params?: {
1897
- financial_counterpart_account?: string | undefined;
1898
2104
  folder_id?: string | undefined;
2105
+ financial_counterpart_account?: string | undefined;
1899
2106
  } | undefined): import("../types/api").RequestData<{
1900
2107
  date: string;
1901
2108
  journal_id: string;
@@ -1992,9 +2199,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
1992
2199
  }[];
1993
2200
  pdf?: string | undefined;
1994
2201
  posted: boolean;
2202
+ start_date?: string | undefined;
2203
+ end_date?: string | undefined;
1995
2204
  }, params?: {
1996
- force_currency_exchange?: "true" | "false" | undefined;
1997
2205
  folder_id?: string | undefined;
2206
+ force_currency_exchange?: "true" | "false" | undefined;
1998
2207
  } | undefined): import("../types/api").RequestData<{
1999
2208
  reference?: string | undefined;
2000
2209
  due_date?: string | undefined;
@@ -2034,6 +2243,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
2034
2243
  matching_number: string;
2035
2244
  balance: number;
2036
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
+ }[]>;
2037
2258
  getFolders(): import("../types/api").RequestData<{
2038
2259
  id: string;
2039
2260
  name: string;
@@ -2041,14 +2262,23 @@ declare const Consumers: (internalApi: InternalAPI) => {
2041
2262
  vat?: string | undefined;
2042
2263
  company_number?: string | undefined;
2043
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
+ }[]>;
2044
2273
  }>;
2045
2274
  invoicing: import("../types/api").ApiFor<{
2046
2275
  getInvoices(params?: {
2047
2276
  date_from?: string | undefined;
2048
2277
  date_to?: string | undefined;
2049
2278
  payment_status?: "all" | "paid" | "unpaid" | undefined;
2050
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
2051
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;
2052
2282
  } | undefined): import("../types/api").RequestData<{
2053
2283
  id: string;
2054
2284
  source_ref: {
@@ -2056,7 +2286,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2056
2286
  model?: string | undefined;
2057
2287
  };
2058
2288
  currency: string;
2059
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2289
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2060
2290
  status: "draft" | "posted" | "cancelled" | "paid";
2061
2291
  invoice_date: string;
2062
2292
  tax_amount: number;
@@ -2073,6 +2303,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2073
2303
  tax_rate?: number | undefined;
2074
2304
  account_number?: string | undefined;
2075
2305
  tax_id?: string | undefined;
2306
+ tax_exemption_reason?: string | undefined;
2076
2307
  unit_of_measure?: string | undefined;
2077
2308
  product_id?: string | undefined;
2078
2309
  product_code?: string | undefined;
@@ -2089,8 +2320,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
2089
2320
  model?: string | undefined;
2090
2321
  name?: string | undefined;
2091
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;
2092
2341
  last_updated_on?: string | undefined;
2093
2342
  outstanding_amount?: number | undefined;
2343
+ accounting_date?: string | undefined;
2344
+ payment_method_id?: string | undefined;
2345
+ currency_exchange_rate: number;
2094
2346
  }[]>;
2095
2347
  getInvoiceById(invoiceId: string, params?: {
2096
2348
  include_pdf?: "true" | "false" | undefined;
@@ -2101,7 +2353,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2101
2353
  model?: string | undefined;
2102
2354
  };
2103
2355
  currency: string;
2104
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2356
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2105
2357
  status: "draft" | "posted" | "cancelled" | "paid";
2106
2358
  invoice_date: string;
2107
2359
  tax_amount: number;
@@ -2118,6 +2370,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2118
2370
  tax_rate?: number | undefined;
2119
2371
  account_number?: string | undefined;
2120
2372
  tax_id?: string | undefined;
2373
+ tax_exemption_reason?: string | undefined;
2121
2374
  unit_of_measure?: string | undefined;
2122
2375
  product_id?: string | undefined;
2123
2376
  product_code?: string | undefined;
@@ -2134,12 +2387,33 @@ declare const Consumers: (internalApi: InternalAPI) => {
2134
2387
  model?: string | undefined;
2135
2388
  name?: string | undefined;
2136
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;
2137
2408
  last_updated_on?: string | undefined;
2138
2409
  outstanding_amount?: number | undefined;
2410
+ accounting_date?: string | undefined;
2411
+ payment_method_id?: string | undefined;
2412
+ currency_exchange_rate: number;
2139
2413
  }>;
2140
2414
  createInvoice(invoice: {
2141
2415
  currency: string;
2142
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2416
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2143
2417
  status: "draft" | "posted" | "cancelled" | "paid";
2144
2418
  invoice_date: string;
2145
2419
  tax_amount: number;
@@ -2156,6 +2430,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2156
2430
  tax_rate?: number | undefined;
2157
2431
  account_number?: string | undefined;
2158
2432
  tax_id?: string | undefined;
2433
+ tax_exemption_reason?: string | undefined;
2159
2434
  unit_of_measure?: string | undefined;
2160
2435
  product_id?: string | undefined;
2161
2436
  product_code?: string | undefined;
@@ -2172,6 +2447,24 @@ declare const Consumers: (internalApi: InternalAPI) => {
2172
2447
  model?: string | undefined;
2173
2448
  name?: string | undefined;
2174
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;
2175
2468
  }): import("../types/api").RequestData<{
2176
2469
  id: string;
2177
2470
  source_ref: {
@@ -2179,7 +2472,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2179
2472
  model?: string | undefined;
2180
2473
  };
2181
2474
  currency: string;
2182
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2475
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2183
2476
  status: "draft" | "posted" | "cancelled" | "paid";
2184
2477
  invoice_date: string;
2185
2478
  tax_amount: number;
@@ -2196,6 +2489,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2196
2489
  tax_rate?: number | undefined;
2197
2490
  account_number?: string | undefined;
2198
2491
  tax_id?: string | undefined;
2492
+ tax_exemption_reason?: string | undefined;
2199
2493
  unit_of_measure?: string | undefined;
2200
2494
  product_id?: string | undefined;
2201
2495
  product_code?: string | undefined;
@@ -2212,8 +2506,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
2212
2506
  model?: string | undefined;
2213
2507
  name?: string | undefined;
2214
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;
2215
2527
  last_updated_on?: string | undefined;
2216
2528
  outstanding_amount?: number | undefined;
2529
+ accounting_date?: string | undefined;
2530
+ payment_method_id?: string | undefined;
2531
+ currency_exchange_rate: number;
2217
2532
  }>;
2218
2533
  getProducts(): import("../types/api").RequestData<{
2219
2534
  id: string;
@@ -2510,6 +2825,31 @@ declare const Consumers: (internalApi: InternalAPI) => {
2510
2825
  }[];
2511
2826
  external_reference?: string | undefined;
2512
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
+ }[]>;
2513
2853
  }>;
2514
2854
  ecommerce: import("../types/api").ApiFor<{
2515
2855
  getCustomers(): import("../types/api").RequestData<{
@@ -2835,6 +3175,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
2835
3175
  refunded_amount: number;
2836
3176
  currency: string;
2837
3177
  note?: string | undefined;
3178
+ tags: string[];
2838
3179
  lines: {
2839
3180
  id: string;
2840
3181
  source_ref: {
@@ -3111,6 +3452,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3111
3452
  refunded_amount: number;
3112
3453
  currency: string;
3113
3454
  note?: string | undefined;
3455
+ tags: string[];
3114
3456
  lines: {
3115
3457
  id: string;
3116
3458
  source_ref: {
@@ -3346,6 +3688,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3346
3688
  refunded_amount: number;
3347
3689
  currency: string;
3348
3690
  note?: string | undefined;
3691
+ tags: string[];
3349
3692
  lines: {
3350
3693
  id: string;
3351
3694
  source_ref: {
@@ -3646,11 +3989,57 @@ declare const Consumers: (internalApi: InternalAPI) => {
3646
3989
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
3647
3990
  setConnectionId: (connectionId: string) => Promise<void>;
3648
3991
  setIntegrationId: (integrationId: string) => Promise<void>;
3649
- }[]>;
3650
- createConsumer: (body: operations[chiftOperations['createConsumer']]['requestBody']['content']['application/json']) => Promise<{
3651
- consumerId: string;
3652
- getConnections: () => Promise<{
3653
- 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;
3999
+ name: 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;
3654
4043
  name: string;
3655
4044
  integration: string;
3656
4045
  integrationid: number;
@@ -3760,6 +4149,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
3760
4149
  }[];
3761
4150
  items: {
3762
4151
  id: string;
4152
+ type?: "menu" | "product" | undefined;
4153
+ menu_id?: string | undefined;
3763
4154
  quantity: number;
3764
4155
  unit_price: number;
3765
4156
  total: number;
@@ -3769,6 +4160,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3769
4160
  discounts: {
3770
4161
  name?: string | undefined;
3771
4162
  total: number;
4163
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
3772
4164
  }[];
3773
4165
  product_id?: string | undefined;
3774
4166
  accounting_category_id?: string | undefined;
@@ -3835,6 +4227,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
3835
4227
  }[];
3836
4228
  items: {
3837
4229
  id: string;
4230
+ type?: "menu" | "product" | undefined;
4231
+ menu_id?: string | undefined;
3838
4232
  quantity: number;
3839
4233
  unit_price: number;
3840
4234
  total: number;
@@ -3844,6 +4238,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
3844
4238
  discounts: {
3845
4239
  name?: string | undefined;
3846
4240
  total: number;
4241
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
3847
4242
  }[];
3848
4243
  product_id?: string | undefined;
3849
4244
  accounting_category_id?: string | undefined;
@@ -4007,6 +4402,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4007
4402
  }[];
4008
4403
  items: {
4009
4404
  id: string;
4405
+ type?: "menu" | "product" | undefined;
4406
+ menu_id?: string | undefined;
4010
4407
  quantity: number;
4011
4408
  unit_price: number;
4012
4409
  total: number;
@@ -4016,6 +4413,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4016
4413
  discounts: {
4017
4414
  name?: string | undefined;
4018
4415
  total: number;
4416
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
4019
4417
  }[];
4020
4418
  product_id?: string | undefined;
4021
4419
  accounting_category_id?: string | undefined;
@@ -4026,7 +4424,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
4026
4424
  } | undefined): import("../types/api").RequestData<{
4027
4425
  id: string;
4028
4426
  name: string;
4029
- id_parent?: string | undefined;
4030
4427
  code?: string | undefined;
4031
4428
  ledger_account_code?: string | undefined;
4032
4429
  posting_account_code?: string | undefined;
@@ -4087,6 +4484,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4087
4484
  id?: string | undefined;
4088
4485
  model?: string | undefined;
4089
4486
  };
4487
+ type?: "menu" | "product" | undefined;
4488
+ menu_id?: string | undefined;
4090
4489
  quantity: number;
4091
4490
  unit_price: number;
4092
4491
  total: number;
@@ -4096,11 +4495,62 @@ declare const Consumers: (internalApi: InternalAPI) => {
4096
4495
  discounts: {
4097
4496
  name?: string | undefined;
4098
4497
  total: number;
4498
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
4099
4499
  }[];
4100
4500
  product_id?: string | undefined;
4101
4501
  accounting_category_id?: string | undefined;
4102
4502
  }[];
4103
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;
4104
4554
  }[]>;
4105
4555
  getPaymentMethods(params?: {
4106
4556
  location_id?: string | undefined;
@@ -4136,6 +4586,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
4136
4586
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
4137
4587
  currency?: string | undefined;
4138
4588
  date?: string | undefined;
4589
+ partner_id?: {
4590
+ id: string;
4591
+ source_ref: {
4592
+ id?: string | undefined;
4593
+ model?: string | undefined;
4594
+ };
4595
+ } | undefined;
4139
4596
  }[]>;
4140
4597
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
4141
4598
  id: string;
@@ -4144,11 +4601,132 @@ declare const Consumers: (internalApi: InternalAPI) => {
4144
4601
  model?: string | undefined;
4145
4602
  };
4146
4603
  name: string;
4147
- id_parent?: string | undefined;
4148
4604
  code?: string | undefined;
4149
4605
  ledger_account_code?: string | undefined;
4150
4606
  posting_account_code?: string | undefined;
4151
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
+ }[]>;
4152
4730
  }>;
4153
4731
  payment: import("../types/api").ApiFor<{
4154
4732
  getPayments(params: {
@@ -4200,8 +4778,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4200
4778
  payment_id?: string | undefined;
4201
4779
  }[]>;
4202
4780
  getPayment(params: {
4203
- payment_id: string;
4204
4781
  consumer_id: string;
4782
+ payment_id: string;
4205
4783
  }): import("../types/api").RequestData<{
4206
4784
  id: string;
4207
4785
  source_ref: {
@@ -4242,7 +4820,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
4242
4820
  active: boolean;
4243
4821
  }[]>;
4244
4822
  getClients(params?: {
4823
+ search?: string | undefined;
4245
4824
  folder_id?: string | undefined;
4825
+ updated_after?: string | undefined;
4246
4826
  } | undefined): import("../types/api").RequestData<{
4247
4827
  external_reference?: string | undefined;
4248
4828
  first_name?: string | undefined;
@@ -4313,8 +4893,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4313
4893
  }[];
4314
4894
  account_number?: string | undefined;
4315
4895
  }, params?: {
4316
- force_merge?: string | undefined;
4317
4896
  folder_id?: string | undefined;
4897
+ force_merge?: string | undefined;
4318
4898
  } | undefined): import("../types/api").RequestData<{
4319
4899
  external_reference?: string | undefined;
4320
4900
  first_name?: string | undefined;
@@ -4460,7 +5040,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
4460
5040
  id?: string | undefined;
4461
5041
  }>;
4462
5042
  getSuppliers(params?: {
5043
+ search?: string | undefined;
4463
5044
  folder_id?: string | undefined;
5045
+ updated_after?: string | undefined;
4464
5046
  } | undefined): import("../types/api").RequestData<{
4465
5047
  external_reference?: string | undefined;
4466
5048
  first_name?: string | undefined;
@@ -4531,8 +5113,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4531
5113
  }[];
4532
5114
  account_number?: string | undefined;
4533
5115
  }, params?: {
4534
- force_merge?: string | undefined;
4535
5116
  folder_id?: string | undefined;
5117
+ force_merge?: string | undefined;
4536
5118
  } | undefined): import("../types/api").RequestData<{
4537
5119
  external_reference?: string | undefined;
4538
5120
  first_name?: string | undefined;
@@ -4726,9 +5308,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
4726
5308
  analytic_account?: string | undefined;
4727
5309
  }[];
4728
5310
  }, params?: {
5311
+ folder_id?: string | undefined;
4729
5312
  force_financial_period?: string | undefined;
4730
5313
  regroup_lines?: "true" | "false" | undefined;
4731
- folder_id?: string | undefined;
4732
5314
  } | undefined): import("../types/api").RequestData<{
4733
5315
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4734
5316
  invoice_number?: string | undefined;
@@ -4829,9 +5411,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
4829
5411
  }[];
4830
5412
  }[];
4831
5413
  }, params?: {
5414
+ folder_id?: string | undefined;
4832
5415
  force_financial_period?: string | undefined;
4833
5416
  regroup_lines?: "true" | "false" | undefined;
4834
- folder_id?: string | undefined;
4835
5417
  } | undefined): import("../types/api").RequestData<{
4836
5418
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4837
5419
  invoice_number?: string | undefined;
@@ -4890,6 +5472,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
4890
5472
  journal_ids?: string | undefined;
4891
5473
  include_payments?: "true" | "false" | undefined;
4892
5474
  payment_status?: "all" | "paid" | "unpaid" | undefined;
5475
+ updated_after?: string | undefined;
4893
5476
  } | undefined): import("../types/api").RequestData<{
4894
5477
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4895
5478
  invoice_number?: string | undefined;
@@ -4936,8 +5519,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4936
5519
  }[];
4937
5520
  }[]>;
4938
5521
  getInvoice(invoiceId: string, params?: {
4939
- include_payments?: "true" | "false" | undefined;
4940
5522
  folder_id?: string | undefined;
5523
+ include_payments?: "true" | "false" | undefined;
4941
5524
  } | undefined): import("../types/api").RequestData<{
4942
5525
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4943
5526
  invoice_number?: string | undefined;
@@ -4984,8 +5567,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
4984
5567
  }[];
4985
5568
  }>;
4986
5569
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
4987
- include_payments?: "true" | "false" | undefined;
4988
5570
  folder_id?: string | undefined;
5571
+ include_payments?: "true" | "false" | undefined;
4989
5572
  } | undefined): import("../types/api").RequestData<{
4990
5573
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4991
5574
  invoice_number?: string | undefined;
@@ -5044,6 +5627,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5044
5627
  journal_ids?: string | undefined;
5045
5628
  include_payments?: "true" | "false" | undefined;
5046
5629
  payment_status?: "all" | "paid" | "unpaid" | undefined;
5630
+ updated_after?: string | undefined;
5047
5631
  } | undefined): import("../types/api").RequestData<{
5048
5632
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5049
5633
  invoice_number?: string | undefined;
@@ -5216,9 +5800,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
5216
5800
  analytic_plan: string;
5217
5801
  }[]>;
5218
5802
  getJournalEntries(params: {
5219
- date_from: string;
5220
- date_to: string;
5803
+ date_from?: string | undefined;
5804
+ date_to?: string | undefined;
5221
5805
  folder_id?: string | undefined;
5806
+ updated_after?: string | undefined;
5222
5807
  unposted_allowed: "true" | "false";
5223
5808
  journal_id: string;
5224
5809
  partner_id?: string | undefined;
@@ -5248,9 +5833,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
5248
5833
  }[];
5249
5834
  }[]>;
5250
5835
  getJournalEntriesWithMultiplePlans(params: {
5251
- date_from: string;
5252
- date_to: string;
5836
+ date_from?: string | undefined;
5837
+ date_to?: string | undefined;
5253
5838
  folder_id?: string | undefined;
5839
+ updated_after?: string | undefined;
5254
5840
  unposted_allowed: "true" | "false";
5255
5841
  journal_id: string;
5256
5842
  partner_id?: string | undefined;
@@ -5285,9 +5871,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
5285
5871
  }[];
5286
5872
  }[]>;
5287
5873
  getPaymentsByInvoiceId(invoice_id: string, params?: {
5288
- folder_id?: string | undefined;
5289
5874
  page?: number | undefined;
5290
5875
  size?: number | undefined;
5876
+ folder_id?: string | undefined;
5291
5877
  } | undefined): import("../types/api").RequestData<{
5292
5878
  id: string;
5293
5879
  name: string;
@@ -5411,8 +5997,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
5411
5997
  attachPDF(invoice_id: string, attachment: {
5412
5998
  base64_string: string;
5413
5999
  }, params?: {
5414
- overwrite_existing?: "true" | "false" | undefined;
5415
6000
  folder_id?: string | undefined;
6001
+ overwrite_existing?: "true" | "false" | undefined;
5416
6002
  } | undefined): import("../types/api").RequestData<{
5417
6003
  headers: {
5418
6004
  [name: string]: unknown;
@@ -5429,8 +6015,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
5429
6015
  base64_string: string;
5430
6016
  }[]>;
5431
6017
  getChartOfAccounts(params?: {
5432
- classes?: string | undefined;
5433
6018
  folder_id?: string | undefined;
6019
+ classes?: string | undefined;
5434
6020
  } | undefined): import("../types/api").RequestData<{
5435
6021
  number: string;
5436
6022
  name: string;
@@ -5486,8 +6072,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
5486
6072
  partner_id: string;
5487
6073
  account_number: string;
5488
6074
  reference?: string | undefined;
6075
+ matching_numbers: string[];
5489
6076
  payment_communication?: string | undefined;
5490
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;
5491
6087
  }[]>;
5492
6088
  createFinancialEntryOld(financial_entry: {
5493
6089
  date: string;
@@ -5505,8 +6101,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
5505
6101
  }[];
5506
6102
  pdf?: string | undefined;
5507
6103
  }, params?: {
5508
- financial_counterpart_account?: string | undefined;
5509
6104
  folder_id?: string | undefined;
6105
+ financial_counterpart_account?: string | undefined;
5510
6106
  } | undefined): import("../types/api").RequestData<{
5511
6107
  date: string;
5512
6108
  journal_id: string;
@@ -5539,8 +6135,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
5539
6135
  }[];
5540
6136
  pdf?: string | undefined;
5541
6137
  }, params?: {
5542
- financial_counterpart_account?: string | undefined;
5543
6138
  folder_id?: string | undefined;
6139
+ financial_counterpart_account?: string | undefined;
5544
6140
  } | undefined): import("../types/api").RequestData<{
5545
6141
  date: string;
5546
6142
  journal_id: string;
@@ -5637,9 +6233,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
5637
6233
  }[];
5638
6234
  pdf?: string | undefined;
5639
6235
  posted: boolean;
6236
+ start_date?: string | undefined;
6237
+ end_date?: string | undefined;
5640
6238
  }, params?: {
5641
- force_currency_exchange?: "true" | "false" | undefined;
5642
6239
  folder_id?: string | undefined;
6240
+ force_currency_exchange?: "true" | "false" | undefined;
5643
6241
  } | undefined): import("../types/api").RequestData<{
5644
6242
  reference?: string | undefined;
5645
6243
  due_date?: string | undefined;
@@ -5679,6 +6277,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
5679
6277
  matching_number: string;
5680
6278
  balance: number;
5681
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
+ }[]>;
5682
6292
  getFolders(): import("../types/api").RequestData<{
5683
6293
  id: string;
5684
6294
  name: string;
@@ -5686,14 +6296,23 @@ declare const Consumers: (internalApi: InternalAPI) => {
5686
6296
  vat?: string | undefined;
5687
6297
  company_number?: string | undefined;
5688
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
+ }[]>;
5689
6307
  }>;
5690
6308
  invoicing: import("../types/api").ApiFor<{
5691
6309
  getInvoices(params?: {
5692
6310
  date_from?: string | undefined;
5693
6311
  date_to?: string | undefined;
5694
6312
  payment_status?: "all" | "paid" | "unpaid" | undefined;
5695
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
5696
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;
5697
6316
  } | undefined): import("../types/api").RequestData<{
5698
6317
  id: string;
5699
6318
  source_ref: {
@@ -5701,7 +6320,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5701
6320
  model?: string | undefined;
5702
6321
  };
5703
6322
  currency: string;
5704
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6323
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5705
6324
  status: "draft" | "posted" | "cancelled" | "paid";
5706
6325
  invoice_date: string;
5707
6326
  tax_amount: number;
@@ -5718,6 +6337,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5718
6337
  tax_rate?: number | undefined;
5719
6338
  account_number?: string | undefined;
5720
6339
  tax_id?: string | undefined;
6340
+ tax_exemption_reason?: string | undefined;
5721
6341
  unit_of_measure?: string | undefined;
5722
6342
  product_id?: string | undefined;
5723
6343
  product_code?: string | undefined;
@@ -5734,8 +6354,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
5734
6354
  model?: string | undefined;
5735
6355
  name?: string | undefined;
5736
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;
5737
6375
  last_updated_on?: string | undefined;
5738
6376
  outstanding_amount?: number | undefined;
6377
+ accounting_date?: string | undefined;
6378
+ payment_method_id?: string | undefined;
6379
+ currency_exchange_rate: number;
5739
6380
  }[]>;
5740
6381
  getInvoiceById(invoiceId: string, params?: {
5741
6382
  include_pdf?: "true" | "false" | undefined;
@@ -5746,7 +6387,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5746
6387
  model?: string | undefined;
5747
6388
  };
5748
6389
  currency: string;
5749
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6390
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5750
6391
  status: "draft" | "posted" | "cancelled" | "paid";
5751
6392
  invoice_date: string;
5752
6393
  tax_amount: number;
@@ -5763,6 +6404,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5763
6404
  tax_rate?: number | undefined;
5764
6405
  account_number?: string | undefined;
5765
6406
  tax_id?: string | undefined;
6407
+ tax_exemption_reason?: string | undefined;
5766
6408
  unit_of_measure?: string | undefined;
5767
6409
  product_id?: string | undefined;
5768
6410
  product_code?: string | undefined;
@@ -5779,12 +6421,33 @@ declare const Consumers: (internalApi: InternalAPI) => {
5779
6421
  model?: string | undefined;
5780
6422
  name?: string | undefined;
5781
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;
5782
6442
  last_updated_on?: string | undefined;
5783
6443
  outstanding_amount?: number | undefined;
6444
+ accounting_date?: string | undefined;
6445
+ payment_method_id?: string | undefined;
6446
+ currency_exchange_rate: number;
5784
6447
  }>;
5785
6448
  createInvoice(invoice: {
5786
6449
  currency: string;
5787
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6450
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5788
6451
  status: "draft" | "posted" | "cancelled" | "paid";
5789
6452
  invoice_date: string;
5790
6453
  tax_amount: number;
@@ -5801,6 +6464,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5801
6464
  tax_rate?: number | undefined;
5802
6465
  account_number?: string | undefined;
5803
6466
  tax_id?: string | undefined;
6467
+ tax_exemption_reason?: string | undefined;
5804
6468
  unit_of_measure?: string | undefined;
5805
6469
  product_id?: string | undefined;
5806
6470
  product_code?: string | undefined;
@@ -5817,6 +6481,24 @@ declare const Consumers: (internalApi: InternalAPI) => {
5817
6481
  model?: string | undefined;
5818
6482
  name?: string | undefined;
5819
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;
5820
6502
  }): import("../types/api").RequestData<{
5821
6503
  id: string;
5822
6504
  source_ref: {
@@ -5824,7 +6506,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5824
6506
  model?: string | undefined;
5825
6507
  };
5826
6508
  currency: string;
5827
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6509
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5828
6510
  status: "draft" | "posted" | "cancelled" | "paid";
5829
6511
  invoice_date: string;
5830
6512
  tax_amount: number;
@@ -5841,6 +6523,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
5841
6523
  tax_rate?: number | undefined;
5842
6524
  account_number?: string | undefined;
5843
6525
  tax_id?: string | undefined;
6526
+ tax_exemption_reason?: string | undefined;
5844
6527
  unit_of_measure?: string | undefined;
5845
6528
  product_id?: string | undefined;
5846
6529
  product_code?: string | undefined;
@@ -5857,8 +6540,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
5857
6540
  model?: string | undefined;
5858
6541
  name?: string | undefined;
5859
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;
5860
6561
  last_updated_on?: string | undefined;
5861
6562
  outstanding_amount?: number | undefined;
6563
+ accounting_date?: string | undefined;
6564
+ payment_method_id?: string | undefined;
6565
+ currency_exchange_rate: number;
5862
6566
  }>;
5863
6567
  getProducts(): import("../types/api").RequestData<{
5864
6568
  id: string;
@@ -6155,6 +6859,31 @@ declare const Consumers: (internalApi: InternalAPI) => {
6155
6859
  }[];
6156
6860
  external_reference?: string | undefined;
6157
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
+ }[]>;
6158
6887
  }>;
6159
6888
  ecommerce: import("../types/api").ApiFor<{
6160
6889
  getCustomers(): import("../types/api").RequestData<{
@@ -6480,6 +7209,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6480
7209
  refunded_amount: number;
6481
7210
  currency: string;
6482
7211
  note?: string | undefined;
7212
+ tags: string[];
6483
7213
  lines: {
6484
7214
  id: string;
6485
7215
  source_ref: {
@@ -6756,6 +7486,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6756
7486
  refunded_amount: number;
6757
7487
  currency: string;
6758
7488
  note?: string | undefined;
7489
+ tags: string[];
6759
7490
  lines: {
6760
7491
  id: string;
6761
7492
  source_ref: {
@@ -6991,6 +7722,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
6991
7722
  refunded_amount: number;
6992
7723
  currency: string;
6993
7724
  note?: string | undefined;
7725
+ tags: string[];
6994
7726
  lines: {
6995
7727
  id: string;
6996
7728
  source_ref: {
@@ -7291,6 +8023,52 @@ declare const Consumers: (internalApi: InternalAPI) => {
7291
8023
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
7292
8024
  setConnectionId: (connectionId: string) => Promise<void>;
7293
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
+ }>;
7294
8072
  }>;
7295
8073
  getConsumerById: (consumerId: string) => Promise<{
7296
8074
  consumerId: string;
@@ -7405,6 +8183,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
7405
8183
  }[];
7406
8184
  items: {
7407
8185
  id: string;
8186
+ type?: "menu" | "product" | undefined;
8187
+ menu_id?: string | undefined;
7408
8188
  quantity: number;
7409
8189
  unit_price: number;
7410
8190
  total: number;
@@ -7414,6 +8194,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7414
8194
  discounts: {
7415
8195
  name?: string | undefined;
7416
8196
  total: number;
8197
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7417
8198
  }[];
7418
8199
  product_id?: string | undefined;
7419
8200
  accounting_category_id?: string | undefined;
@@ -7480,6 +8261,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
7480
8261
  }[];
7481
8262
  items: {
7482
8263
  id: string;
8264
+ type?: "menu" | "product" | undefined;
8265
+ menu_id?: string | undefined;
7483
8266
  quantity: number;
7484
8267
  unit_price: number;
7485
8268
  total: number;
@@ -7489,6 +8272,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7489
8272
  discounts: {
7490
8273
  name?: string | undefined;
7491
8274
  total: number;
8275
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7492
8276
  }[];
7493
8277
  product_id?: string | undefined;
7494
8278
  accounting_category_id?: string | undefined;
@@ -7652,6 +8436,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
7652
8436
  }[];
7653
8437
  items: {
7654
8438
  id: string;
8439
+ type?: "menu" | "product" | undefined;
8440
+ menu_id?: string | undefined;
7655
8441
  quantity: number;
7656
8442
  unit_price: number;
7657
8443
  total: number;
@@ -7661,6 +8447,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
7661
8447
  discounts: {
7662
8448
  name?: string | undefined;
7663
8449
  total: number;
8450
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7664
8451
  }[];
7665
8452
  product_id?: string | undefined;
7666
8453
  accounting_category_id?: string | undefined;
@@ -7671,7 +8458,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
7671
8458
  } | undefined): import("../types/api").RequestData<{
7672
8459
  id: string;
7673
8460
  name: string;
7674
- id_parent?: string | undefined;
7675
8461
  code?: string | undefined;
7676
8462
  ledger_account_code?: string | undefined;
7677
8463
  posting_account_code?: string | undefined;
@@ -7725,13 +8511,200 @@ declare const Consumers: (internalApi: InternalAPI) => {
7725
8511
  tax_amount: number;
7726
8512
  total: number;
7727
8513
  }[] | undefined;
7728
- 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;
7729
8700
  items: {
7730
8701
  id: string;
7731
8702
  source_ref: {
7732
8703
  id?: string | undefined;
7733
8704
  model?: string | undefined;
7734
8705
  };
8706
+ type?: "menu" | "product" | undefined;
8707
+ menu_id?: string | undefined;
7735
8708
  quantity: number;
7736
8709
  unit_price: number;
7737
8710
  total: number;
@@ -7741,58 +8714,52 @@ declare const Consumers: (internalApi: InternalAPI) => {
7741
8714
  discounts: {
7742
8715
  name?: string | undefined;
7743
8716
  total: number;
8717
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7744
8718
  }[];
7745
8719
  product_id?: string | undefined;
7746
8720
  accounting_category_id?: string | undefined;
7747
8721
  }[];
7748
- service_id?: string | undefined;
7749
- }[]>;
7750
- getPaymentMethods(params?: {
7751
- location_id?: string | undefined;
7752
- } | undefined): import("../types/api").RequestData<{
7753
- id: string;
7754
- source_ref: {
7755
- id?: string | undefined;
7756
- model?: string | undefined;
7757
- };
7758
- name: string;
7759
- extra?: string | undefined;
7760
- ledger_account_code?: string | undefined;
7761
- }[]>;
7762
- getClosure(date: string, params?: {
7763
- location_id?: string | undefined;
7764
- } | undefined): import("../types/api").RequestData<{
7765
- date: string;
7766
- status: "open" | "closed";
7767
- }>;
7768
- getPayments(params: {
7769
- date_from: string;
7770
- date_to: string;
7771
- }): import("../types/api").RequestData<{
7772
- id?: string | undefined;
7773
- source_ref: {
7774
- id?: string | undefined;
7775
- model?: string | undefined;
7776
- };
7777
- payment_method_id?: string | undefined;
7778
- payment_method_name?: string | undefined;
7779
- total: number;
7780
- tip: number;
7781
- status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
7782
- currency?: string | undefined;
7783
- date?: string | undefined;
7784
- }[]>;
7785
- getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
7786
- id: string;
7787
- source_ref: {
8722
+ payments: {
7788
8723
  id?: string | undefined;
7789
- model?: string | undefined;
7790
- };
7791
- name: string;
7792
- id_parent?: string | undefined;
7793
- code?: string | undefined;
7794
- ledger_account_code?: string | undefined;
7795
- 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;
7796
8763
  }[]>;
7797
8764
  }>;
7798
8765
  payment: import("../types/api").ApiFor<{
@@ -7845,8 +8812,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
7845
8812
  payment_id?: string | undefined;
7846
8813
  }[]>;
7847
8814
  getPayment(params: {
7848
- payment_id: string;
7849
8815
  consumer_id: string;
8816
+ payment_id: string;
7850
8817
  }): import("../types/api").RequestData<{
7851
8818
  id: string;
7852
8819
  source_ref: {
@@ -7887,7 +8854,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
7887
8854
  active: boolean;
7888
8855
  }[]>;
7889
8856
  getClients(params?: {
8857
+ search?: string | undefined;
7890
8858
  folder_id?: string | undefined;
8859
+ updated_after?: string | undefined;
7891
8860
  } | undefined): import("../types/api").RequestData<{
7892
8861
  external_reference?: string | undefined;
7893
8862
  first_name?: string | undefined;
@@ -7958,8 +8927,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
7958
8927
  }[];
7959
8928
  account_number?: string | undefined;
7960
8929
  }, params?: {
7961
- force_merge?: string | undefined;
7962
8930
  folder_id?: string | undefined;
8931
+ force_merge?: string | undefined;
7963
8932
  } | undefined): import("../types/api").RequestData<{
7964
8933
  external_reference?: string | undefined;
7965
8934
  first_name?: string | undefined;
@@ -8105,7 +9074,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
8105
9074
  id?: string | undefined;
8106
9075
  }>;
8107
9076
  getSuppliers(params?: {
9077
+ search?: string | undefined;
8108
9078
  folder_id?: string | undefined;
9079
+ updated_after?: string | undefined;
8109
9080
  } | undefined): import("../types/api").RequestData<{
8110
9081
  external_reference?: string | undefined;
8111
9082
  first_name?: string | undefined;
@@ -8176,8 +9147,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
8176
9147
  }[];
8177
9148
  account_number?: string | undefined;
8178
9149
  }, params?: {
8179
- force_merge?: string | undefined;
8180
9150
  folder_id?: string | undefined;
9151
+ force_merge?: string | undefined;
8181
9152
  } | undefined): import("../types/api").RequestData<{
8182
9153
  external_reference?: string | undefined;
8183
9154
  first_name?: string | undefined;
@@ -8371,9 +9342,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
8371
9342
  analytic_account?: string | undefined;
8372
9343
  }[];
8373
9344
  }, params?: {
9345
+ folder_id?: string | undefined;
8374
9346
  force_financial_period?: string | undefined;
8375
9347
  regroup_lines?: "true" | "false" | undefined;
8376
- folder_id?: string | undefined;
8377
9348
  } | undefined): import("../types/api").RequestData<{
8378
9349
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8379
9350
  invoice_number?: string | undefined;
@@ -8474,9 +9445,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
8474
9445
  }[];
8475
9446
  }[];
8476
9447
  }, params?: {
9448
+ folder_id?: string | undefined;
8477
9449
  force_financial_period?: string | undefined;
8478
9450
  regroup_lines?: "true" | "false" | undefined;
8479
- folder_id?: string | undefined;
8480
9451
  } | undefined): import("../types/api").RequestData<{
8481
9452
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8482
9453
  invoice_number?: string | undefined;
@@ -8535,6 +9506,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8535
9506
  journal_ids?: string | undefined;
8536
9507
  include_payments?: "true" | "false" | undefined;
8537
9508
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9509
+ updated_after?: string | undefined;
8538
9510
  } | undefined): import("../types/api").RequestData<{
8539
9511
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8540
9512
  invoice_number?: string | undefined;
@@ -8581,8 +9553,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
8581
9553
  }[];
8582
9554
  }[]>;
8583
9555
  getInvoice(invoiceId: string, params?: {
8584
- include_payments?: "true" | "false" | undefined;
8585
9556
  folder_id?: string | undefined;
9557
+ include_payments?: "true" | "false" | undefined;
8586
9558
  } | undefined): import("../types/api").RequestData<{
8587
9559
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8588
9560
  invoice_number?: string | undefined;
@@ -8629,8 +9601,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
8629
9601
  }[];
8630
9602
  }>;
8631
9603
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
8632
- include_payments?: "true" | "false" | undefined;
8633
9604
  folder_id?: string | undefined;
9605
+ include_payments?: "true" | "false" | undefined;
8634
9606
  } | undefined): import("../types/api").RequestData<{
8635
9607
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8636
9608
  invoice_number?: string | undefined;
@@ -8689,6 +9661,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
8689
9661
  journal_ids?: string | undefined;
8690
9662
  include_payments?: "true" | "false" | undefined;
8691
9663
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9664
+ updated_after?: string | undefined;
8692
9665
  } | undefined): import("../types/api").RequestData<{
8693
9666
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8694
9667
  invoice_number?: string | undefined;
@@ -8861,9 +9834,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
8861
9834
  analytic_plan: string;
8862
9835
  }[]>;
8863
9836
  getJournalEntries(params: {
8864
- date_from: string;
8865
- date_to: string;
9837
+ date_from?: string | undefined;
9838
+ date_to?: string | undefined;
8866
9839
  folder_id?: string | undefined;
9840
+ updated_after?: string | undefined;
8867
9841
  unposted_allowed: "true" | "false";
8868
9842
  journal_id: string;
8869
9843
  partner_id?: string | undefined;
@@ -8893,9 +9867,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
8893
9867
  }[];
8894
9868
  }[]>;
8895
9869
  getJournalEntriesWithMultiplePlans(params: {
8896
- date_from: string;
8897
- date_to: string;
9870
+ date_from?: string | undefined;
9871
+ date_to?: string | undefined;
8898
9872
  folder_id?: string | undefined;
9873
+ updated_after?: string | undefined;
8899
9874
  unposted_allowed: "true" | "false";
8900
9875
  journal_id: string;
8901
9876
  partner_id?: string | undefined;
@@ -8930,9 +9905,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
8930
9905
  }[];
8931
9906
  }[]>;
8932
9907
  getPaymentsByInvoiceId(invoice_id: string, params?: {
8933
- folder_id?: string | undefined;
8934
9908
  page?: number | undefined;
8935
9909
  size?: number | undefined;
9910
+ folder_id?: string | undefined;
8936
9911
  } | undefined): import("../types/api").RequestData<{
8937
9912
  id: string;
8938
9913
  name: string;
@@ -9056,8 +10031,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
9056
10031
  attachPDF(invoice_id: string, attachment: {
9057
10032
  base64_string: string;
9058
10033
  }, params?: {
9059
- overwrite_existing?: "true" | "false" | undefined;
9060
10034
  folder_id?: string | undefined;
10035
+ overwrite_existing?: "true" | "false" | undefined;
9061
10036
  } | undefined): import("../types/api").RequestData<{
9062
10037
  headers: {
9063
10038
  [name: string]: unknown;
@@ -9074,8 +10049,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
9074
10049
  base64_string: string;
9075
10050
  }[]>;
9076
10051
  getChartOfAccounts(params?: {
9077
- classes?: string | undefined;
9078
10052
  folder_id?: string | undefined;
10053
+ classes?: string | undefined;
9079
10054
  } | undefined): import("../types/api").RequestData<{
9080
10055
  number: string;
9081
10056
  name: string;
@@ -9131,8 +10106,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
9131
10106
  partner_id: string;
9132
10107
  account_number: string;
9133
10108
  reference?: string | undefined;
10109
+ matching_numbers: string[];
9134
10110
  payment_communication?: string | undefined;
9135
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;
9136
10121
  }[]>;
9137
10122
  createFinancialEntryOld(financial_entry: {
9138
10123
  date: string;
@@ -9150,8 +10135,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
9150
10135
  }[];
9151
10136
  pdf?: string | undefined;
9152
10137
  }, params?: {
9153
- financial_counterpart_account?: string | undefined;
9154
10138
  folder_id?: string | undefined;
10139
+ financial_counterpart_account?: string | undefined;
9155
10140
  } | undefined): import("../types/api").RequestData<{
9156
10141
  date: string;
9157
10142
  journal_id: string;
@@ -9184,8 +10169,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
9184
10169
  }[];
9185
10170
  pdf?: string | undefined;
9186
10171
  }, params?: {
9187
- financial_counterpart_account?: string | undefined;
9188
10172
  folder_id?: string | undefined;
10173
+ financial_counterpart_account?: string | undefined;
9189
10174
  } | undefined): import("../types/api").RequestData<{
9190
10175
  date: string;
9191
10176
  journal_id: string;
@@ -9282,9 +10267,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
9282
10267
  }[];
9283
10268
  pdf?: string | undefined;
9284
10269
  posted: boolean;
10270
+ start_date?: string | undefined;
10271
+ end_date?: string | undefined;
9285
10272
  }, params?: {
9286
- force_currency_exchange?: "true" | "false" | undefined;
9287
10273
  folder_id?: string | undefined;
10274
+ force_currency_exchange?: "true" | "false" | undefined;
9288
10275
  } | undefined): import("../types/api").RequestData<{
9289
10276
  reference?: string | undefined;
9290
10277
  due_date?: string | undefined;
@@ -9324,6 +10311,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
9324
10311
  matching_number: string;
9325
10312
  balance: number;
9326
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
+ }[]>;
9327
10326
  getFolders(): import("../types/api").RequestData<{
9328
10327
  id: string;
9329
10328
  name: string;
@@ -9331,14 +10330,23 @@ declare const Consumers: (internalApi: InternalAPI) => {
9331
10330
  vat?: string | undefined;
9332
10331
  company_number?: string | undefined;
9333
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
+ }[]>;
9334
10341
  }>;
9335
10342
  invoicing: import("../types/api").ApiFor<{
9336
10343
  getInvoices(params?: {
9337
10344
  date_from?: string | undefined;
9338
10345
  date_to?: string | undefined;
9339
10346
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9340
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
9341
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;
9342
10350
  } | undefined): import("../types/api").RequestData<{
9343
10351
  id: string;
9344
10352
  source_ref: {
@@ -9346,7 +10354,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9346
10354
  model?: string | undefined;
9347
10355
  };
9348
10356
  currency: string;
9349
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10357
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9350
10358
  status: "draft" | "posted" | "cancelled" | "paid";
9351
10359
  invoice_date: string;
9352
10360
  tax_amount: number;
@@ -9363,6 +10371,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9363
10371
  tax_rate?: number | undefined;
9364
10372
  account_number?: string | undefined;
9365
10373
  tax_id?: string | undefined;
10374
+ tax_exemption_reason?: string | undefined;
9366
10375
  unit_of_measure?: string | undefined;
9367
10376
  product_id?: string | undefined;
9368
10377
  product_code?: string | undefined;
@@ -9379,8 +10388,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
9379
10388
  model?: string | undefined;
9380
10389
  name?: string | undefined;
9381
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;
9382
10409
  last_updated_on?: string | undefined;
9383
10410
  outstanding_amount?: number | undefined;
10411
+ accounting_date?: string | undefined;
10412
+ payment_method_id?: string | undefined;
10413
+ currency_exchange_rate: number;
9384
10414
  }[]>;
9385
10415
  getInvoiceById(invoiceId: string, params?: {
9386
10416
  include_pdf?: "true" | "false" | undefined;
@@ -9391,7 +10421,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9391
10421
  model?: string | undefined;
9392
10422
  };
9393
10423
  currency: string;
9394
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10424
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9395
10425
  status: "draft" | "posted" | "cancelled" | "paid";
9396
10426
  invoice_date: string;
9397
10427
  tax_amount: number;
@@ -9408,6 +10438,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9408
10438
  tax_rate?: number | undefined;
9409
10439
  account_number?: string | undefined;
9410
10440
  tax_id?: string | undefined;
10441
+ tax_exemption_reason?: string | undefined;
9411
10442
  unit_of_measure?: string | undefined;
9412
10443
  product_id?: string | undefined;
9413
10444
  product_code?: string | undefined;
@@ -9424,12 +10455,33 @@ declare const Consumers: (internalApi: InternalAPI) => {
9424
10455
  model?: string | undefined;
9425
10456
  name?: string | undefined;
9426
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;
9427
10476
  last_updated_on?: string | undefined;
9428
10477
  outstanding_amount?: number | undefined;
10478
+ accounting_date?: string | undefined;
10479
+ payment_method_id?: string | undefined;
10480
+ currency_exchange_rate: number;
9429
10481
  }>;
9430
10482
  createInvoice(invoice: {
9431
10483
  currency: string;
9432
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10484
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9433
10485
  status: "draft" | "posted" | "cancelled" | "paid";
9434
10486
  invoice_date: string;
9435
10487
  tax_amount: number;
@@ -9446,6 +10498,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9446
10498
  tax_rate?: number | undefined;
9447
10499
  account_number?: string | undefined;
9448
10500
  tax_id?: string | undefined;
10501
+ tax_exemption_reason?: string | undefined;
9449
10502
  unit_of_measure?: string | undefined;
9450
10503
  product_id?: string | undefined;
9451
10504
  product_code?: string | undefined;
@@ -9462,6 +10515,24 @@ declare const Consumers: (internalApi: InternalAPI) => {
9462
10515
  model?: string | undefined;
9463
10516
  name?: string | undefined;
9464
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;
9465
10536
  }): import("../types/api").RequestData<{
9466
10537
  id: string;
9467
10538
  source_ref: {
@@ -9469,7 +10540,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9469
10540
  model?: string | undefined;
9470
10541
  };
9471
10542
  currency: string;
9472
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10543
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9473
10544
  status: "draft" | "posted" | "cancelled" | "paid";
9474
10545
  invoice_date: string;
9475
10546
  tax_amount: number;
@@ -9486,6 +10557,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
9486
10557
  tax_rate?: number | undefined;
9487
10558
  account_number?: string | undefined;
9488
10559
  tax_id?: string | undefined;
10560
+ tax_exemption_reason?: string | undefined;
9489
10561
  unit_of_measure?: string | undefined;
9490
10562
  product_id?: string | undefined;
9491
10563
  product_code?: string | undefined;
@@ -9502,8 +10574,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
9502
10574
  model?: string | undefined;
9503
10575
  name?: string | undefined;
9504
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;
9505
10595
  last_updated_on?: string | undefined;
9506
10596
  outstanding_amount?: number | undefined;
10597
+ accounting_date?: string | undefined;
10598
+ payment_method_id?: string | undefined;
10599
+ currency_exchange_rate: number;
9507
10600
  }>;
9508
10601
  getProducts(): import("../types/api").RequestData<{
9509
10602
  id: string;
@@ -9800,6 +10893,31 @@ declare const Consumers: (internalApi: InternalAPI) => {
9800
10893
  }[];
9801
10894
  external_reference?: string | undefined;
9802
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
+ }[]>;
9803
10921
  }>;
9804
10922
  ecommerce: import("../types/api").ApiFor<{
9805
10923
  getCustomers(): import("../types/api").RequestData<{
@@ -10125,6 +11243,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10125
11243
  refunded_amount: number;
10126
11244
  currency: string;
10127
11245
  note?: string | undefined;
11246
+ tags: string[];
10128
11247
  lines: {
10129
11248
  id: string;
10130
11249
  source_ref: {
@@ -10401,6 +11520,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10401
11520
  refunded_amount: number;
10402
11521
  currency: string;
10403
11522
  note?: string | undefined;
11523
+ tags: string[];
10404
11524
  lines: {
10405
11525
  id: string;
10406
11526
  source_ref: {
@@ -10636,6 +11756,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
10636
11756
  refunded_amount: number;
10637
11757
  currency: string;
10638
11758
  note?: string | undefined;
11759
+ tags: string[];
10639
11760
  lines: {
10640
11761
  id: string;
10641
11762
  source_ref: {
@@ -10936,6 +12057,52 @@ declare const Consumers: (internalApi: InternalAPI) => {
10936
12057
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
10937
12058
  setConnectionId: (connectionId: string) => Promise<void>;
10938
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
+ }>;
10939
12106
  }>;
10940
12107
  getConsumersByName: (consumerName: string) => Promise<{
10941
12108
  consumerId: string;
@@ -11050,6 +12217,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
11050
12217
  }[];
11051
12218
  items: {
11052
12219
  id: string;
12220
+ type?: "menu" | "product" | undefined;
12221
+ menu_id?: string | undefined;
11053
12222
  quantity: number;
11054
12223
  unit_price: number;
11055
12224
  total: number;
@@ -11059,6 +12228,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11059
12228
  discounts: {
11060
12229
  name?: string | undefined;
11061
12230
  total: number;
12231
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11062
12232
  }[];
11063
12233
  product_id?: string | undefined;
11064
12234
  accounting_category_id?: string | undefined;
@@ -11125,6 +12295,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
11125
12295
  }[];
11126
12296
  items: {
11127
12297
  id: string;
12298
+ type?: "menu" | "product" | undefined;
12299
+ menu_id?: string | undefined;
11128
12300
  quantity: number;
11129
12301
  unit_price: number;
11130
12302
  total: number;
@@ -11134,6 +12306,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11134
12306
  discounts: {
11135
12307
  name?: string | undefined;
11136
12308
  total: number;
12309
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11137
12310
  }[];
11138
12311
  product_id?: string | undefined;
11139
12312
  accounting_category_id?: string | undefined;
@@ -11297,6 +12470,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
11297
12470
  }[];
11298
12471
  items: {
11299
12472
  id: string;
12473
+ type?: "menu" | "product" | undefined;
12474
+ menu_id?: string | undefined;
11300
12475
  quantity: number;
11301
12476
  unit_price: number;
11302
12477
  total: number;
@@ -11306,6 +12481,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
11306
12481
  discounts: {
11307
12482
  name?: string | undefined;
11308
12483
  total: number;
12484
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11309
12485
  }[];
11310
12486
  product_id?: string | undefined;
11311
12487
  accounting_category_id?: string | undefined;
@@ -11316,7 +12492,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
11316
12492
  } | undefined): import("../types/api").RequestData<{
11317
12493
  id: string;
11318
12494
  name: string;
11319
- id_parent?: string | undefined;
11320
12495
  code?: string | undefined;
11321
12496
  ledger_account_code?: string | undefined;
11322
12497
  posting_account_code?: string | undefined;
@@ -11377,6 +12552,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
11377
12552
  id?: string | undefined;
11378
12553
  model?: string | undefined;
11379
12554
  };
12555
+ type?: "menu" | "product" | undefined;
12556
+ menu_id?: string | undefined;
11380
12557
  quantity: number;
11381
12558
  unit_price: number;
11382
12559
  total: number;
@@ -11386,11 +12563,62 @@ declare const Consumers: (internalApi: InternalAPI) => {
11386
12563
  discounts: {
11387
12564
  name?: string | undefined;
11388
12565
  total: number;
12566
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11389
12567
  }[];
11390
12568
  product_id?: string | undefined;
11391
12569
  accounting_category_id?: string | undefined;
11392
12570
  }[];
11393
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;
11394
12622
  }[]>;
11395
12623
  getPaymentMethods(params?: {
11396
12624
  location_id?: string | undefined;
@@ -11426,6 +12654,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
11426
12654
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
11427
12655
  currency?: string | undefined;
11428
12656
  date?: string | undefined;
12657
+ partner_id?: {
12658
+ id: string;
12659
+ source_ref: {
12660
+ id?: string | undefined;
12661
+ model?: string | undefined;
12662
+ };
12663
+ } | undefined;
11429
12664
  }[]>;
11430
12665
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
11431
12666
  id: string;
@@ -11434,11 +12669,132 @@ declare const Consumers: (internalApi: InternalAPI) => {
11434
12669
  model?: string | undefined;
11435
12670
  };
11436
12671
  name: string;
11437
- id_parent?: string | undefined;
11438
12672
  code?: string | undefined;
11439
12673
  ledger_account_code?: string | undefined;
11440
12674
  posting_account_code?: string | undefined;
11441
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
+ }[]>;
11442
12798
  }>;
11443
12799
  payment: import("../types/api").ApiFor<{
11444
12800
  getPayments(params: {
@@ -11490,8 +12846,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
11490
12846
  payment_id?: string | undefined;
11491
12847
  }[]>;
11492
12848
  getPayment(params: {
11493
- payment_id: string;
11494
12849
  consumer_id: string;
12850
+ payment_id: string;
11495
12851
  }): import("../types/api").RequestData<{
11496
12852
  id: string;
11497
12853
  source_ref: {
@@ -11532,7 +12888,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
11532
12888
  active: boolean;
11533
12889
  }[]>;
11534
12890
  getClients(params?: {
12891
+ search?: string | undefined;
11535
12892
  folder_id?: string | undefined;
12893
+ updated_after?: string | undefined;
11536
12894
  } | undefined): import("../types/api").RequestData<{
11537
12895
  external_reference?: string | undefined;
11538
12896
  first_name?: string | undefined;
@@ -11603,8 +12961,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
11603
12961
  }[];
11604
12962
  account_number?: string | undefined;
11605
12963
  }, params?: {
11606
- force_merge?: string | undefined;
11607
12964
  folder_id?: string | undefined;
12965
+ force_merge?: string | undefined;
11608
12966
  } | undefined): import("../types/api").RequestData<{
11609
12967
  external_reference?: string | undefined;
11610
12968
  first_name?: string | undefined;
@@ -11750,7 +13108,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
11750
13108
  id?: string | undefined;
11751
13109
  }>;
11752
13110
  getSuppliers(params?: {
13111
+ search?: string | undefined;
11753
13112
  folder_id?: string | undefined;
13113
+ updated_after?: string | undefined;
11754
13114
  } | undefined): import("../types/api").RequestData<{
11755
13115
  external_reference?: string | undefined;
11756
13116
  first_name?: string | undefined;
@@ -11821,8 +13181,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
11821
13181
  }[];
11822
13182
  account_number?: string | undefined;
11823
13183
  }, params?: {
11824
- force_merge?: string | undefined;
11825
13184
  folder_id?: string | undefined;
13185
+ force_merge?: string | undefined;
11826
13186
  } | undefined): import("../types/api").RequestData<{
11827
13187
  external_reference?: string | undefined;
11828
13188
  first_name?: string | undefined;
@@ -12016,9 +13376,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
12016
13376
  analytic_account?: string | undefined;
12017
13377
  }[];
12018
13378
  }, params?: {
13379
+ folder_id?: string | undefined;
12019
13380
  force_financial_period?: string | undefined;
12020
13381
  regroup_lines?: "true" | "false" | undefined;
12021
- folder_id?: string | undefined;
12022
13382
  } | undefined): import("../types/api").RequestData<{
12023
13383
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12024
13384
  invoice_number?: string | undefined;
@@ -12119,9 +13479,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
12119
13479
  }[];
12120
13480
  }[];
12121
13481
  }, params?: {
13482
+ folder_id?: string | undefined;
12122
13483
  force_financial_period?: string | undefined;
12123
13484
  regroup_lines?: "true" | "false" | undefined;
12124
- folder_id?: string | undefined;
12125
13485
  } | undefined): import("../types/api").RequestData<{
12126
13486
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12127
13487
  invoice_number?: string | undefined;
@@ -12180,6 +13540,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12180
13540
  journal_ids?: string | undefined;
12181
13541
  include_payments?: "true" | "false" | undefined;
12182
13542
  payment_status?: "all" | "paid" | "unpaid" | undefined;
13543
+ updated_after?: string | undefined;
12183
13544
  } | undefined): import("../types/api").RequestData<{
12184
13545
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12185
13546
  invoice_number?: string | undefined;
@@ -12226,8 +13587,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12226
13587
  }[];
12227
13588
  }[]>;
12228
13589
  getInvoice(invoiceId: string, params?: {
12229
- include_payments?: "true" | "false" | undefined;
12230
13590
  folder_id?: string | undefined;
13591
+ include_payments?: "true" | "false" | undefined;
12231
13592
  } | undefined): import("../types/api").RequestData<{
12232
13593
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12233
13594
  invoice_number?: string | undefined;
@@ -12274,8 +13635,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12274
13635
  }[];
12275
13636
  }>;
12276
13637
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
12277
- include_payments?: "true" | "false" | undefined;
12278
13638
  folder_id?: string | undefined;
13639
+ include_payments?: "true" | "false" | undefined;
12279
13640
  } | undefined): import("../types/api").RequestData<{
12280
13641
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12281
13642
  invoice_number?: string | undefined;
@@ -12334,6 +13695,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12334
13695
  journal_ids?: string | undefined;
12335
13696
  include_payments?: "true" | "false" | undefined;
12336
13697
  payment_status?: "all" | "paid" | "unpaid" | undefined;
13698
+ updated_after?: string | undefined;
12337
13699
  } | undefined): import("../types/api").RequestData<{
12338
13700
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12339
13701
  invoice_number?: string | undefined;
@@ -12506,9 +13868,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
12506
13868
  analytic_plan: string;
12507
13869
  }[]>;
12508
13870
  getJournalEntries(params: {
12509
- date_from: string;
12510
- date_to: string;
13871
+ date_from?: string | undefined;
13872
+ date_to?: string | undefined;
12511
13873
  folder_id?: string | undefined;
13874
+ updated_after?: string | undefined;
12512
13875
  unposted_allowed: "true" | "false";
12513
13876
  journal_id: string;
12514
13877
  partner_id?: string | undefined;
@@ -12538,9 +13901,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
12538
13901
  }[];
12539
13902
  }[]>;
12540
13903
  getJournalEntriesWithMultiplePlans(params: {
12541
- date_from: string;
12542
- date_to: string;
13904
+ date_from?: string | undefined;
13905
+ date_to?: string | undefined;
12543
13906
  folder_id?: string | undefined;
13907
+ updated_after?: string | undefined;
12544
13908
  unposted_allowed: "true" | "false";
12545
13909
  journal_id: string;
12546
13910
  partner_id?: string | undefined;
@@ -12575,9 +13939,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
12575
13939
  }[];
12576
13940
  }[]>;
12577
13941
  getPaymentsByInvoiceId(invoice_id: string, params?: {
12578
- folder_id?: string | undefined;
12579
13942
  page?: number | undefined;
12580
13943
  size?: number | undefined;
13944
+ folder_id?: string | undefined;
12581
13945
  } | undefined): import("../types/api").RequestData<{
12582
13946
  id: string;
12583
13947
  name: string;
@@ -12701,8 +14065,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12701
14065
  attachPDF(invoice_id: string, attachment: {
12702
14066
  base64_string: string;
12703
14067
  }, params?: {
12704
- overwrite_existing?: "true" | "false" | undefined;
12705
14068
  folder_id?: string | undefined;
14069
+ overwrite_existing?: "true" | "false" | undefined;
12706
14070
  } | undefined): import("../types/api").RequestData<{
12707
14071
  headers: {
12708
14072
  [name: string]: unknown;
@@ -12719,8 +14083,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12719
14083
  base64_string: string;
12720
14084
  }[]>;
12721
14085
  getChartOfAccounts(params?: {
12722
- classes?: string | undefined;
12723
14086
  folder_id?: string | undefined;
14087
+ classes?: string | undefined;
12724
14088
  } | undefined): import("../types/api").RequestData<{
12725
14089
  number: string;
12726
14090
  name: string;
@@ -12776,8 +14140,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
12776
14140
  partner_id: string;
12777
14141
  account_number: string;
12778
14142
  reference?: string | undefined;
14143
+ matching_numbers: string[];
12779
14144
  payment_communication?: string | undefined;
12780
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;
12781
14155
  }[]>;
12782
14156
  createFinancialEntryOld(financial_entry: {
12783
14157
  date: string;
@@ -12795,8 +14169,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12795
14169
  }[];
12796
14170
  pdf?: string | undefined;
12797
14171
  }, params?: {
12798
- financial_counterpart_account?: string | undefined;
12799
14172
  folder_id?: string | undefined;
14173
+ financial_counterpart_account?: string | undefined;
12800
14174
  } | undefined): import("../types/api").RequestData<{
12801
14175
  date: string;
12802
14176
  journal_id: string;
@@ -12829,8 +14203,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
12829
14203
  }[];
12830
14204
  pdf?: string | undefined;
12831
14205
  }, params?: {
12832
- financial_counterpart_account?: string | undefined;
12833
14206
  folder_id?: string | undefined;
14207
+ financial_counterpart_account?: string | undefined;
12834
14208
  } | undefined): import("../types/api").RequestData<{
12835
14209
  date: string;
12836
14210
  journal_id: string;
@@ -12927,9 +14301,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
12927
14301
  }[];
12928
14302
  pdf?: string | undefined;
12929
14303
  posted: boolean;
14304
+ start_date?: string | undefined;
14305
+ end_date?: string | undefined;
12930
14306
  }, params?: {
12931
- force_currency_exchange?: "true" | "false" | undefined;
12932
14307
  folder_id?: string | undefined;
14308
+ force_currency_exchange?: "true" | "false" | undefined;
12933
14309
  } | undefined): import("../types/api").RequestData<{
12934
14310
  reference?: string | undefined;
12935
14311
  due_date?: string | undefined;
@@ -12969,6 +14345,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
12969
14345
  matching_number: string;
12970
14346
  balance: number;
12971
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
+ }[]>;
12972
14360
  getFolders(): import("../types/api").RequestData<{
12973
14361
  id: string;
12974
14362
  name: string;
@@ -12976,14 +14364,23 @@ declare const Consumers: (internalApi: InternalAPI) => {
12976
14364
  vat?: string | undefined;
12977
14365
  company_number?: string | undefined;
12978
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
+ }[]>;
12979
14375
  }>;
12980
14376
  invoicing: import("../types/api").ApiFor<{
12981
14377
  getInvoices(params?: {
12982
14378
  date_from?: string | undefined;
12983
14379
  date_to?: string | undefined;
12984
14380
  payment_status?: "all" | "paid" | "unpaid" | undefined;
12985
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
12986
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;
12987
14384
  } | undefined): import("../types/api").RequestData<{
12988
14385
  id: string;
12989
14386
  source_ref: {
@@ -12991,7 +14388,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
12991
14388
  model?: string | undefined;
12992
14389
  };
12993
14390
  currency: string;
12994
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14391
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
12995
14392
  status: "draft" | "posted" | "cancelled" | "paid";
12996
14393
  invoice_date: string;
12997
14394
  tax_amount: number;
@@ -13008,6 +14405,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13008
14405
  tax_rate?: number | undefined;
13009
14406
  account_number?: string | undefined;
13010
14407
  tax_id?: string | undefined;
14408
+ tax_exemption_reason?: string | undefined;
13011
14409
  unit_of_measure?: string | undefined;
13012
14410
  product_id?: string | undefined;
13013
14411
  product_code?: string | undefined;
@@ -13024,8 +14422,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
13024
14422
  model?: string | undefined;
13025
14423
  name?: string | undefined;
13026
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;
13027
14443
  last_updated_on?: string | undefined;
13028
14444
  outstanding_amount?: number | undefined;
14445
+ accounting_date?: string | undefined;
14446
+ payment_method_id?: string | undefined;
14447
+ currency_exchange_rate: number;
13029
14448
  }[]>;
13030
14449
  getInvoiceById(invoiceId: string, params?: {
13031
14450
  include_pdf?: "true" | "false" | undefined;
@@ -13036,7 +14455,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13036
14455
  model?: string | undefined;
13037
14456
  };
13038
14457
  currency: string;
13039
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14458
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13040
14459
  status: "draft" | "posted" | "cancelled" | "paid";
13041
14460
  invoice_date: string;
13042
14461
  tax_amount: number;
@@ -13053,6 +14472,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13053
14472
  tax_rate?: number | undefined;
13054
14473
  account_number?: string | undefined;
13055
14474
  tax_id?: string | undefined;
14475
+ tax_exemption_reason?: string | undefined;
13056
14476
  unit_of_measure?: string | undefined;
13057
14477
  product_id?: string | undefined;
13058
14478
  product_code?: string | undefined;
@@ -13069,12 +14489,33 @@ declare const Consumers: (internalApi: InternalAPI) => {
13069
14489
  model?: string | undefined;
13070
14490
  name?: string | undefined;
13071
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;
13072
14510
  last_updated_on?: string | undefined;
13073
14511
  outstanding_amount?: number | undefined;
14512
+ accounting_date?: string | undefined;
14513
+ payment_method_id?: string | undefined;
14514
+ currency_exchange_rate: number;
13074
14515
  }>;
13075
14516
  createInvoice(invoice: {
13076
14517
  currency: string;
13077
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14518
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13078
14519
  status: "draft" | "posted" | "cancelled" | "paid";
13079
14520
  invoice_date: string;
13080
14521
  tax_amount: number;
@@ -13091,6 +14532,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13091
14532
  tax_rate?: number | undefined;
13092
14533
  account_number?: string | undefined;
13093
14534
  tax_id?: string | undefined;
14535
+ tax_exemption_reason?: string | undefined;
13094
14536
  unit_of_measure?: string | undefined;
13095
14537
  product_id?: string | undefined;
13096
14538
  product_code?: string | undefined;
@@ -13107,6 +14549,24 @@ declare const Consumers: (internalApi: InternalAPI) => {
13107
14549
  model?: string | undefined;
13108
14550
  name?: string | undefined;
13109
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;
13110
14570
  }): import("../types/api").RequestData<{
13111
14571
  id: string;
13112
14572
  source_ref: {
@@ -13114,7 +14574,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13114
14574
  model?: string | undefined;
13115
14575
  };
13116
14576
  currency: string;
13117
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14577
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13118
14578
  status: "draft" | "posted" | "cancelled" | "paid";
13119
14579
  invoice_date: string;
13120
14580
  tax_amount: number;
@@ -13131,6 +14591,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13131
14591
  tax_rate?: number | undefined;
13132
14592
  account_number?: string | undefined;
13133
14593
  tax_id?: string | undefined;
14594
+ tax_exemption_reason?: string | undefined;
13134
14595
  unit_of_measure?: string | undefined;
13135
14596
  product_id?: string | undefined;
13136
14597
  product_code?: string | undefined;
@@ -13147,8 +14608,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
13147
14608
  model?: string | undefined;
13148
14609
  name?: string | undefined;
13149
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;
13150
14629
  last_updated_on?: string | undefined;
13151
14630
  outstanding_amount?: number | undefined;
14631
+ accounting_date?: string | undefined;
14632
+ payment_method_id?: string | undefined;
14633
+ currency_exchange_rate: number;
13152
14634
  }>;
13153
14635
  getProducts(): import("../types/api").RequestData<{
13154
14636
  id: string;
@@ -13445,6 +14927,31 @@ declare const Consumers: (internalApi: InternalAPI) => {
13445
14927
  }[];
13446
14928
  external_reference?: string | undefined;
13447
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
+ }[]>;
13448
14955
  }>;
13449
14956
  ecommerce: import("../types/api").ApiFor<{
13450
14957
  getCustomers(): import("../types/api").RequestData<{
@@ -13770,6 +15277,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
13770
15277
  refunded_amount: number;
13771
15278
  currency: string;
13772
15279
  note?: string | undefined;
15280
+ tags: string[];
13773
15281
  lines: {
13774
15282
  id: string;
13775
15283
  source_ref: {
@@ -14046,6 +15554,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14046
15554
  refunded_amount: number;
14047
15555
  currency: string;
14048
15556
  note?: string | undefined;
15557
+ tags: string[];
14049
15558
  lines: {
14050
15559
  id: string;
14051
15560
  source_ref: {
@@ -14281,6 +15790,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14281
15790
  refunded_amount: number;
14282
15791
  currency: string;
14283
15792
  note?: string | undefined;
15793
+ tags: string[];
14284
15794
  lines: {
14285
15795
  id: string;
14286
15796
  source_ref: {
@@ -14581,6 +16091,52 @@ declare const Consumers: (internalApi: InternalAPI) => {
14581
16091
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
14582
16092
  setConnectionId: (connectionId: string) => Promise<void>;
14583
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
+ }>;
14584
16140
  }[]>;
14585
16141
  updateConsumerById: (consumerId: string, body: operations[chiftOperations['updateConsumer']]['requestBody']['content']['application/json']) => Promise<{
14586
16142
  consumerId: string;
@@ -14695,6 +16251,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
14695
16251
  }[];
14696
16252
  items: {
14697
16253
  id: string;
16254
+ type?: "menu" | "product" | undefined;
16255
+ menu_id?: string | undefined;
14698
16256
  quantity: number;
14699
16257
  unit_price: number;
14700
16258
  total: number;
@@ -14704,6 +16262,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14704
16262
  discounts: {
14705
16263
  name?: string | undefined;
14706
16264
  total: number;
16265
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
14707
16266
  }[];
14708
16267
  product_id?: string | undefined;
14709
16268
  accounting_category_id?: string | undefined;
@@ -14770,6 +16329,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
14770
16329
  }[];
14771
16330
  items: {
14772
16331
  id: string;
16332
+ type?: "menu" | "product" | undefined;
16333
+ menu_id?: string | undefined;
14773
16334
  quantity: number;
14774
16335
  unit_price: number;
14775
16336
  total: number;
@@ -14779,6 +16340,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14779
16340
  discounts: {
14780
16341
  name?: string | undefined;
14781
16342
  total: number;
16343
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
14782
16344
  }[];
14783
16345
  product_id?: string | undefined;
14784
16346
  accounting_category_id?: string | undefined;
@@ -14942,6 +16504,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
14942
16504
  }[];
14943
16505
  items: {
14944
16506
  id: string;
16507
+ type?: "menu" | "product" | undefined;
16508
+ menu_id?: string | undefined;
14945
16509
  quantity: number;
14946
16510
  unit_price: number;
14947
16511
  total: number;
@@ -14951,6 +16515,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
14951
16515
  discounts: {
14952
16516
  name?: string | undefined;
14953
16517
  total: number;
16518
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
14954
16519
  }[];
14955
16520
  product_id?: string | undefined;
14956
16521
  accounting_category_id?: string | undefined;
@@ -14961,7 +16526,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
14961
16526
  } | undefined): import("../types/api").RequestData<{
14962
16527
  id: string;
14963
16528
  name: string;
14964
- id_parent?: string | undefined;
14965
16529
  code?: string | undefined;
14966
16530
  ledger_account_code?: string | undefined;
14967
16531
  posting_account_code?: string | undefined;
@@ -15022,6 +16586,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
15022
16586
  id?: string | undefined;
15023
16587
  model?: string | undefined;
15024
16588
  };
16589
+ type?: "menu" | "product" | undefined;
16590
+ menu_id?: string | undefined;
15025
16591
  quantity: number;
15026
16592
  unit_price: number;
15027
16593
  total: number;
@@ -15031,11 +16597,62 @@ declare const Consumers: (internalApi: InternalAPI) => {
15031
16597
  discounts: {
15032
16598
  name?: string | undefined;
15033
16599
  total: number;
16600
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
15034
16601
  }[];
15035
16602
  product_id?: string | undefined;
15036
16603
  accounting_category_id?: string | undefined;
15037
16604
  }[];
15038
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;
15039
16656
  }[]>;
15040
16657
  getPaymentMethods(params?: {
15041
16658
  location_id?: string | undefined;
@@ -15071,6 +16688,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
15071
16688
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
15072
16689
  currency?: string | undefined;
15073
16690
  date?: string | undefined;
16691
+ partner_id?: {
16692
+ id: string;
16693
+ source_ref: {
16694
+ id?: string | undefined;
16695
+ model?: string | undefined;
16696
+ };
16697
+ } | undefined;
15074
16698
  }[]>;
15075
16699
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
15076
16700
  id: string;
@@ -15079,11 +16703,132 @@ declare const Consumers: (internalApi: InternalAPI) => {
15079
16703
  model?: string | undefined;
15080
16704
  };
15081
16705
  name: string;
15082
- id_parent?: string | undefined;
15083
16706
  code?: string | undefined;
15084
16707
  ledger_account_code?: string | undefined;
15085
16708
  posting_account_code?: string | undefined;
15086
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
+ }[]>;
15087
16832
  }>;
15088
16833
  payment: import("../types/api").ApiFor<{
15089
16834
  getPayments(params: {
@@ -15135,8 +16880,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
15135
16880
  payment_id?: string | undefined;
15136
16881
  }[]>;
15137
16882
  getPayment(params: {
15138
- payment_id: string;
15139
16883
  consumer_id: string;
16884
+ payment_id: string;
15140
16885
  }): import("../types/api").RequestData<{
15141
16886
  id: string;
15142
16887
  source_ref: {
@@ -15177,7 +16922,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
15177
16922
  active: boolean;
15178
16923
  }[]>;
15179
16924
  getClients(params?: {
16925
+ search?: string | undefined;
15180
16926
  folder_id?: string | undefined;
16927
+ updated_after?: string | undefined;
15181
16928
  } | undefined): import("../types/api").RequestData<{
15182
16929
  external_reference?: string | undefined;
15183
16930
  first_name?: string | undefined;
@@ -15248,8 +16995,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
15248
16995
  }[];
15249
16996
  account_number?: string | undefined;
15250
16997
  }, params?: {
15251
- force_merge?: string | undefined;
15252
16998
  folder_id?: string | undefined;
16999
+ force_merge?: string | undefined;
15253
17000
  } | undefined): import("../types/api").RequestData<{
15254
17001
  external_reference?: string | undefined;
15255
17002
  first_name?: string | undefined;
@@ -15395,7 +17142,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
15395
17142
  id?: string | undefined;
15396
17143
  }>;
15397
17144
  getSuppliers(params?: {
17145
+ search?: string | undefined;
15398
17146
  folder_id?: string | undefined;
17147
+ updated_after?: string | undefined;
15399
17148
  } | undefined): import("../types/api").RequestData<{
15400
17149
  external_reference?: string | undefined;
15401
17150
  first_name?: string | undefined;
@@ -15466,8 +17215,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
15466
17215
  }[];
15467
17216
  account_number?: string | undefined;
15468
17217
  }, params?: {
15469
- force_merge?: string | undefined;
15470
17218
  folder_id?: string | undefined;
17219
+ force_merge?: string | undefined;
15471
17220
  } | undefined): import("../types/api").RequestData<{
15472
17221
  external_reference?: string | undefined;
15473
17222
  first_name?: string | undefined;
@@ -15661,9 +17410,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
15661
17410
  analytic_account?: string | undefined;
15662
17411
  }[];
15663
17412
  }, params?: {
17413
+ folder_id?: string | undefined;
15664
17414
  force_financial_period?: string | undefined;
15665
17415
  regroup_lines?: "true" | "false" | undefined;
15666
- folder_id?: string | undefined;
15667
17416
  } | undefined): import("../types/api").RequestData<{
15668
17417
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15669
17418
  invoice_number?: string | undefined;
@@ -15764,9 +17513,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
15764
17513
  }[];
15765
17514
  }[];
15766
17515
  }, params?: {
17516
+ folder_id?: string | undefined;
15767
17517
  force_financial_period?: string | undefined;
15768
17518
  regroup_lines?: "true" | "false" | undefined;
15769
- folder_id?: string | undefined;
15770
17519
  } | undefined): import("../types/api").RequestData<{
15771
17520
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15772
17521
  invoice_number?: string | undefined;
@@ -15825,6 +17574,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
15825
17574
  journal_ids?: string | undefined;
15826
17575
  include_payments?: "true" | "false" | undefined;
15827
17576
  payment_status?: "all" | "paid" | "unpaid" | undefined;
17577
+ updated_after?: string | undefined;
15828
17578
  } | undefined): import("../types/api").RequestData<{
15829
17579
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15830
17580
  invoice_number?: string | undefined;
@@ -15871,8 +17621,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
15871
17621
  }[];
15872
17622
  }[]>;
15873
17623
  getInvoice(invoiceId: string, params?: {
15874
- include_payments?: "true" | "false" | undefined;
15875
17624
  folder_id?: string | undefined;
17625
+ include_payments?: "true" | "false" | undefined;
15876
17626
  } | undefined): import("../types/api").RequestData<{
15877
17627
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15878
17628
  invoice_number?: string | undefined;
@@ -15919,8 +17669,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
15919
17669
  }[];
15920
17670
  }>;
15921
17671
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
15922
- include_payments?: "true" | "false" | undefined;
15923
17672
  folder_id?: string | undefined;
17673
+ include_payments?: "true" | "false" | undefined;
15924
17674
  } | undefined): import("../types/api").RequestData<{
15925
17675
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15926
17676
  invoice_number?: string | undefined;
@@ -15979,6 +17729,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
15979
17729
  journal_ids?: string | undefined;
15980
17730
  include_payments?: "true" | "false" | undefined;
15981
17731
  payment_status?: "all" | "paid" | "unpaid" | undefined;
17732
+ updated_after?: string | undefined;
15982
17733
  } | undefined): import("../types/api").RequestData<{
15983
17734
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15984
17735
  invoice_number?: string | undefined;
@@ -16151,9 +17902,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
16151
17902
  analytic_plan: string;
16152
17903
  }[]>;
16153
17904
  getJournalEntries(params: {
16154
- date_from: string;
16155
- date_to: string;
17905
+ date_from?: string | undefined;
17906
+ date_to?: string | undefined;
16156
17907
  folder_id?: string | undefined;
17908
+ updated_after?: string | undefined;
16157
17909
  unposted_allowed: "true" | "false";
16158
17910
  journal_id: string;
16159
17911
  partner_id?: string | undefined;
@@ -16183,9 +17935,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
16183
17935
  }[];
16184
17936
  }[]>;
16185
17937
  getJournalEntriesWithMultiplePlans(params: {
16186
- date_from: string;
16187
- date_to: string;
17938
+ date_from?: string | undefined;
17939
+ date_to?: string | undefined;
16188
17940
  folder_id?: string | undefined;
17941
+ updated_after?: string | undefined;
16189
17942
  unposted_allowed: "true" | "false";
16190
17943
  journal_id: string;
16191
17944
  partner_id?: string | undefined;
@@ -16220,9 +17973,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
16220
17973
  }[];
16221
17974
  }[]>;
16222
17975
  getPaymentsByInvoiceId(invoice_id: string, params?: {
16223
- folder_id?: string | undefined;
16224
17976
  page?: number | undefined;
16225
17977
  size?: number | undefined;
17978
+ folder_id?: string | undefined;
16226
17979
  } | undefined): import("../types/api").RequestData<{
16227
17980
  id: string;
16228
17981
  name: string;
@@ -16346,8 +18099,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
16346
18099
  attachPDF(invoice_id: string, attachment: {
16347
18100
  base64_string: string;
16348
18101
  }, params?: {
16349
- overwrite_existing?: "true" | "false" | undefined;
16350
18102
  folder_id?: string | undefined;
18103
+ overwrite_existing?: "true" | "false" | undefined;
16351
18104
  } | undefined): import("../types/api").RequestData<{
16352
18105
  headers: {
16353
18106
  [name: string]: unknown;
@@ -16364,8 +18117,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
16364
18117
  base64_string: string;
16365
18118
  }[]>;
16366
18119
  getChartOfAccounts(params?: {
16367
- classes?: string | undefined;
16368
18120
  folder_id?: string | undefined;
18121
+ classes?: string | undefined;
16369
18122
  } | undefined): import("../types/api").RequestData<{
16370
18123
  number: string;
16371
18124
  name: string;
@@ -16421,8 +18174,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
16421
18174
  partner_id: string;
16422
18175
  account_number: string;
16423
18176
  reference?: string | undefined;
18177
+ matching_numbers: string[];
16424
18178
  payment_communication?: string | undefined;
16425
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;
16426
18189
  }[]>;
16427
18190
  createFinancialEntryOld(financial_entry: {
16428
18191
  date: string;
@@ -16440,8 +18203,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
16440
18203
  }[];
16441
18204
  pdf?: string | undefined;
16442
18205
  }, params?: {
16443
- financial_counterpart_account?: string | undefined;
16444
18206
  folder_id?: string | undefined;
18207
+ financial_counterpart_account?: string | undefined;
16445
18208
  } | undefined): import("../types/api").RequestData<{
16446
18209
  date: string;
16447
18210
  journal_id: string;
@@ -16474,8 +18237,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
16474
18237
  }[];
16475
18238
  pdf?: string | undefined;
16476
18239
  }, params?: {
16477
- financial_counterpart_account?: string | undefined;
16478
18240
  folder_id?: string | undefined;
18241
+ financial_counterpart_account?: string | undefined;
16479
18242
  } | undefined): import("../types/api").RequestData<{
16480
18243
  date: string;
16481
18244
  journal_id: string;
@@ -16572,9 +18335,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
16572
18335
  }[];
16573
18336
  pdf?: string | undefined;
16574
18337
  posted: boolean;
18338
+ start_date?: string | undefined;
18339
+ end_date?: string | undefined;
16575
18340
  }, params?: {
16576
- force_currency_exchange?: "true" | "false" | undefined;
16577
18341
  folder_id?: string | undefined;
18342
+ force_currency_exchange?: "true" | "false" | undefined;
16578
18343
  } | undefined): import("../types/api").RequestData<{
16579
18344
  reference?: string | undefined;
16580
18345
  due_date?: string | undefined;
@@ -16614,6 +18379,18 @@ declare const Consumers: (internalApi: InternalAPI) => {
16614
18379
  matching_number: string;
16615
18380
  balance: number;
16616
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
+ }[]>;
16617
18394
  getFolders(): import("../types/api").RequestData<{
16618
18395
  id: string;
16619
18396
  name: string;
@@ -16621,14 +18398,23 @@ declare const Consumers: (internalApi: InternalAPI) => {
16621
18398
  vat?: string | undefined;
16622
18399
  company_number?: string | undefined;
16623
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
+ }[]>;
16624
18409
  }>;
16625
18410
  invoicing: import("../types/api").ApiFor<{
16626
18411
  getInvoices(params?: {
16627
18412
  date_from?: string | undefined;
16628
18413
  date_to?: string | undefined;
16629
18414
  payment_status?: "all" | "paid" | "unpaid" | undefined;
16630
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
16631
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;
16632
18418
  } | undefined): import("../types/api").RequestData<{
16633
18419
  id: string;
16634
18420
  source_ref: {
@@ -16636,7 +18422,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16636
18422
  model?: string | undefined;
16637
18423
  };
16638
18424
  currency: string;
16639
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
18425
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
16640
18426
  status: "draft" | "posted" | "cancelled" | "paid";
16641
18427
  invoice_date: string;
16642
18428
  tax_amount: number;
@@ -16653,6 +18439,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16653
18439
  tax_rate?: number | undefined;
16654
18440
  account_number?: string | undefined;
16655
18441
  tax_id?: string | undefined;
18442
+ tax_exemption_reason?: string | undefined;
16656
18443
  unit_of_measure?: string | undefined;
16657
18444
  product_id?: string | undefined;
16658
18445
  product_code?: string | undefined;
@@ -16669,8 +18456,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
16669
18456
  model?: string | undefined;
16670
18457
  name?: string | undefined;
16671
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;
16672
18477
  last_updated_on?: string | undefined;
16673
18478
  outstanding_amount?: number | undefined;
18479
+ accounting_date?: string | undefined;
18480
+ payment_method_id?: string | undefined;
18481
+ currency_exchange_rate: number;
16674
18482
  }[]>;
16675
18483
  getInvoiceById(invoiceId: string, params?: {
16676
18484
  include_pdf?: "true" | "false" | undefined;
@@ -16681,7 +18489,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16681
18489
  model?: string | undefined;
16682
18490
  };
16683
18491
  currency: string;
16684
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
18492
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
16685
18493
  status: "draft" | "posted" | "cancelled" | "paid";
16686
18494
  invoice_date: string;
16687
18495
  tax_amount: number;
@@ -16698,6 +18506,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16698
18506
  tax_rate?: number | undefined;
16699
18507
  account_number?: string | undefined;
16700
18508
  tax_id?: string | undefined;
18509
+ tax_exemption_reason?: string | undefined;
16701
18510
  unit_of_measure?: string | undefined;
16702
18511
  product_id?: string | undefined;
16703
18512
  product_code?: string | undefined;
@@ -16714,12 +18523,33 @@ declare const Consumers: (internalApi: InternalAPI) => {
16714
18523
  model?: string | undefined;
16715
18524
  name?: string | undefined;
16716
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;
16717
18544
  last_updated_on?: string | undefined;
16718
18545
  outstanding_amount?: number | undefined;
18546
+ accounting_date?: string | undefined;
18547
+ payment_method_id?: string | undefined;
18548
+ currency_exchange_rate: number;
16719
18549
  }>;
16720
18550
  createInvoice(invoice: {
16721
18551
  currency: string;
16722
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
18552
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
16723
18553
  status: "draft" | "posted" | "cancelled" | "paid";
16724
18554
  invoice_date: string;
16725
18555
  tax_amount: number;
@@ -16736,6 +18566,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16736
18566
  tax_rate?: number | undefined;
16737
18567
  account_number?: string | undefined;
16738
18568
  tax_id?: string | undefined;
18569
+ tax_exemption_reason?: string | undefined;
16739
18570
  unit_of_measure?: string | undefined;
16740
18571
  product_id?: string | undefined;
16741
18572
  product_code?: string | undefined;
@@ -16752,6 +18583,24 @@ declare const Consumers: (internalApi: InternalAPI) => {
16752
18583
  model?: string | undefined;
16753
18584
  name?: string | undefined;
16754
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;
16755
18604
  }): import("../types/api").RequestData<{
16756
18605
  id: string;
16757
18606
  source_ref: {
@@ -16759,7 +18608,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16759
18608
  model?: string | undefined;
16760
18609
  };
16761
18610
  currency: string;
16762
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
18611
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
16763
18612
  status: "draft" | "posted" | "cancelled" | "paid";
16764
18613
  invoice_date: string;
16765
18614
  tax_amount: number;
@@ -16776,6 +18625,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
16776
18625
  tax_rate?: number | undefined;
16777
18626
  account_number?: string | undefined;
16778
18627
  tax_id?: string | undefined;
18628
+ tax_exemption_reason?: string | undefined;
16779
18629
  unit_of_measure?: string | undefined;
16780
18630
  product_id?: string | undefined;
16781
18631
  product_code?: string | undefined;
@@ -16792,8 +18642,29 @@ declare const Consumers: (internalApi: InternalAPI) => {
16792
18642
  model?: string | undefined;
16793
18643
  name?: string | undefined;
16794
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;
16795
18663
  last_updated_on?: string | undefined;
16796
18664
  outstanding_amount?: number | undefined;
18665
+ accounting_date?: string | undefined;
18666
+ payment_method_id?: string | undefined;
18667
+ currency_exchange_rate: number;
16797
18668
  }>;
16798
18669
  getProducts(): import("../types/api").RequestData<{
16799
18670
  id: string;
@@ -17090,6 +18961,31 @@ declare const Consumers: (internalApi: InternalAPI) => {
17090
18961
  }[];
17091
18962
  external_reference?: string | undefined;
17092
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
+ }[]>;
17093
18989
  }>;
17094
18990
  ecommerce: import("../types/api").ApiFor<{
17095
18991
  getCustomers(): import("../types/api").RequestData<{
@@ -17415,6 +19311,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
17415
19311
  refunded_amount: number;
17416
19312
  currency: string;
17417
19313
  note?: string | undefined;
19314
+ tags: string[];
17418
19315
  lines: {
17419
19316
  id: string;
17420
19317
  source_ref: {
@@ -17691,6 +19588,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
17691
19588
  refunded_amount: number;
17692
19589
  currency: string;
17693
19590
  note?: string | undefined;
19591
+ tags: string[];
17694
19592
  lines: {
17695
19593
  id: string;
17696
19594
  source_ref: {
@@ -17926,6 +19824,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
17926
19824
  refunded_amount: number;
17927
19825
  currency: string;
17928
19826
  note?: string | undefined;
19827
+ tags: string[];
17929
19828
  lines: {
17930
19829
  id: string;
17931
19830
  source_ref: {
@@ -18226,6 +20125,52 @@ declare const Consumers: (internalApi: InternalAPI) => {
18226
20125
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
18227
20126
  setConnectionId: (connectionId: string) => Promise<void>;
18228
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
+ }>;
18229
20174
  }>;
18230
20175
  deleteConsumerById: (consumerId: string) => Promise<{
18231
20176
  headers: {