@chift/chift-nodejs 1.0.20 → 1.0.22

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.
@@ -129,6 +129,7 @@ export declare class API {
129
129
  discounts: {
130
130
  name?: string | undefined;
131
131
  total: number;
132
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
132
133
  }[];
133
134
  product_id?: string | undefined;
134
135
  accounting_category_id?: string | undefined;
@@ -206,6 +207,7 @@ export declare class API {
206
207
  discounts: {
207
208
  name?: string | undefined;
208
209
  total: number;
210
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
209
211
  }[];
210
212
  product_id?: string | undefined;
211
213
  accounting_category_id?: string | undefined;
@@ -380,6 +382,7 @@ export declare class API {
380
382
  discounts: {
381
383
  name?: string | undefined;
382
384
  total: number;
385
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
383
386
  }[];
384
387
  product_id?: string | undefined;
385
388
  accounting_category_id?: string | undefined;
@@ -461,11 +464,62 @@ export declare class API {
461
464
  discounts: {
462
465
  name?: string | undefined;
463
466
  total: number;
467
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
464
468
  }[];
465
469
  product_id?: string | undefined;
466
470
  accounting_category_id?: string | undefined;
467
471
  }[];
468
472
  service_id?: string | undefined;
473
+ reservation?: {
474
+ id: string;
475
+ source_ref: {
476
+ id?: string | undefined;
477
+ model?: string | undefined;
478
+ };
479
+ start_date?: string | undefined;
480
+ end_date?: string | undefined;
481
+ creation_date?: string | undefined;
482
+ resource_id?: {
483
+ id: string;
484
+ source_ref: {
485
+ id?: string | undefined;
486
+ model?: string | undefined;
487
+ };
488
+ } | undefined;
489
+ resource_name?: string | undefined;
490
+ resource_identifier?: string | undefined;
491
+ } | undefined;
492
+ bills?: {
493
+ id: string;
494
+ source_ref: {
495
+ id?: string | undefined;
496
+ model?: string | undefined;
497
+ };
498
+ invoice_number?: string | undefined;
499
+ creation_date?: string | undefined;
500
+ closing_date?: string | undefined;
501
+ partners?: {
502
+ id: string;
503
+ source_ref: {
504
+ id?: string | undefined;
505
+ model?: string | undefined;
506
+ };
507
+ type: "owner" | "account";
508
+ address?: {
509
+ address_type?: string | undefined;
510
+ name?: string | undefined;
511
+ street?: string | undefined;
512
+ number?: string | undefined;
513
+ box?: string | undefined;
514
+ city?: string | undefined;
515
+ postal_code?: string | undefined;
516
+ country?: string | undefined;
517
+ } | undefined;
518
+ first_name?: string | undefined;
519
+ last_name?: string | undefined;
520
+ company_name?: string | undefined;
521
+ }[] | undefined;
522
+ }[] | undefined;
469
523
  }[]>;
470
524
  getPaymentMethods(params?: {
471
525
  location_id?: string | undefined;
@@ -501,6 +555,13 @@ export declare class API {
501
555
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
502
556
  currency?: string | undefined;
503
557
  date?: string | undefined;
558
+ partner_id?: {
559
+ id: string;
560
+ source_ref: {
561
+ id?: string | undefined;
562
+ model?: string | undefined;
563
+ };
564
+ } | undefined;
504
565
  }[]>;
505
566
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
506
567
  id: string;
@@ -513,6 +574,128 @@ export declare class API {
513
574
  ledger_account_code?: string | undefined;
514
575
  posting_account_code?: string | undefined;
515
576
  }[]>;
577
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
578
+ id: string;
579
+ source_ref: {
580
+ id?: string | undefined;
581
+ model?: string | undefined;
582
+ };
583
+ first_name?: string | undefined;
584
+ last_name?: string | undefined;
585
+ company_name?: string | undefined;
586
+ phone?: string | undefined;
587
+ email?: string | undefined;
588
+ account_number?: string | undefined;
589
+ created_on?: string | undefined;
590
+ addresses?: {
591
+ address_type?: string | undefined;
592
+ name?: string | undefined;
593
+ street?: string | undefined;
594
+ number?: string | undefined;
595
+ box?: string | undefined;
596
+ city?: string | undefined;
597
+ postal_code?: string | undefined;
598
+ country?: string | undefined;
599
+ }[] | undefined;
600
+ }[]>;
601
+ getInvoices(params?: {
602
+ date_from: string;
603
+ date_to: string;
604
+ location_id?: string | undefined;
605
+ } | undefined): import("../types/api").RequestData<{
606
+ id: string;
607
+ source_ref: {
608
+ id?: string | undefined;
609
+ model?: string | undefined;
610
+ };
611
+ invoice_number?: string | undefined;
612
+ creation_date?: string | undefined;
613
+ closing_date?: string | undefined;
614
+ partners?: {
615
+ id: string;
616
+ source_ref: {
617
+ id?: string | undefined;
618
+ model?: string | undefined;
619
+ };
620
+ type: "owner" | "account";
621
+ address?: {
622
+ address_type?: string | undefined;
623
+ name?: string | undefined;
624
+ street?: string | undefined;
625
+ number?: string | undefined;
626
+ box?: string | undefined;
627
+ city?: string | undefined;
628
+ postal_code?: string | undefined;
629
+ country?: string | undefined;
630
+ } | undefined;
631
+ first_name?: string | undefined;
632
+ last_name?: string | undefined;
633
+ company_name?: string | undefined;
634
+ }[] | undefined;
635
+ items: {
636
+ id: string;
637
+ source_ref: {
638
+ id?: string | undefined;
639
+ model?: string | undefined;
640
+ };
641
+ type?: "menu" | "product" | undefined;
642
+ menu_id?: string | undefined;
643
+ quantity: number;
644
+ unit_price: number;
645
+ total: number;
646
+ tax_amount: number;
647
+ tax_rate?: number | undefined;
648
+ description?: string | undefined;
649
+ discounts: {
650
+ name?: string | undefined;
651
+ total: number;
652
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
653
+ }[];
654
+ product_id?: string | undefined;
655
+ accounting_category_id?: string | undefined;
656
+ }[];
657
+ payments: {
658
+ id?: string | undefined;
659
+ source_ref: {
660
+ id?: string | undefined;
661
+ model?: string | undefined;
662
+ };
663
+ payment_method_id?: string | undefined;
664
+ payment_method_name?: string | undefined;
665
+ total: number;
666
+ tip: number;
667
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
668
+ currency?: string | undefined;
669
+ date?: string | undefined;
670
+ partner_id?: {
671
+ id: string;
672
+ source_ref: {
673
+ id?: string | undefined;
674
+ model?: string | undefined;
675
+ };
676
+ } | undefined;
677
+ }[];
678
+ service_id?: string | undefined;
679
+ reservation?: {
680
+ id: string;
681
+ source_ref: {
682
+ id?: string | undefined;
683
+ model?: string | undefined;
684
+ };
685
+ start_date?: string | undefined;
686
+ end_date?: string | undefined;
687
+ creation_date?: string | undefined;
688
+ resource_id?: {
689
+ id: string;
690
+ source_ref: {
691
+ id?: string | undefined;
692
+ model?: string | undefined;
693
+ };
694
+ } | undefined;
695
+ resource_name?: string | undefined;
696
+ resource_identifier?: string | undefined;
697
+ } | undefined;
698
+ }[]>;
516
699
  }>;
517
700
  payment: import("../types/api").ApiFor<{
518
701
  getPayments(params: {
@@ -564,8 +747,8 @@ export declare class API {
564
747
  payment_id?: string | undefined;
565
748
  }[]>;
566
749
  getPayment(params: {
567
- payment_id: string;
568
750
  consumer_id: string;
751
+ payment_id: string;
569
752
  }): import("../types/api").RequestData<{
570
753
  id: string;
571
754
  source_ref: {
@@ -608,6 +791,7 @@ export declare class API {
608
791
  getClients(params?: {
609
792
  search?: string | undefined;
610
793
  folder_id?: string | undefined;
794
+ updated_after?: string | undefined;
611
795
  } | undefined): import("../types/api").RequestData<{
612
796
  external_reference?: string | undefined;
613
797
  first_name?: string | undefined;
@@ -678,8 +862,8 @@ export declare class API {
678
862
  }[];
679
863
  account_number?: string | undefined;
680
864
  }, params?: {
681
- force_merge?: string | undefined;
682
865
  folder_id?: string | undefined;
866
+ force_merge?: string | undefined;
683
867
  } | undefined): import("../types/api").RequestData<{
684
868
  external_reference?: string | undefined;
685
869
  first_name?: string | undefined;
@@ -827,6 +1011,7 @@ export declare class API {
827
1011
  getSuppliers(params?: {
828
1012
  search?: string | undefined;
829
1013
  folder_id?: string | undefined;
1014
+ updated_after?: string | undefined;
830
1015
  } | undefined): import("../types/api").RequestData<{
831
1016
  external_reference?: string | undefined;
832
1017
  first_name?: string | undefined;
@@ -897,8 +1082,8 @@ export declare class API {
897
1082
  }[];
898
1083
  account_number?: string | undefined;
899
1084
  }, params?: {
900
- force_merge?: string | undefined;
901
1085
  folder_id?: string | undefined;
1086
+ force_merge?: string | undefined;
902
1087
  } | undefined): import("../types/api").RequestData<{
903
1088
  external_reference?: string | undefined;
904
1089
  first_name?: string | undefined;
@@ -1092,9 +1277,9 @@ export declare class API {
1092
1277
  analytic_account?: string | undefined;
1093
1278
  }[];
1094
1279
  }, params?: {
1280
+ folder_id?: string | undefined;
1095
1281
  force_financial_period?: string | undefined;
1096
1282
  regroup_lines?: "true" | "false" | undefined;
1097
- folder_id?: string | undefined;
1098
1283
  } | undefined): import("../types/api").RequestData<{
1099
1284
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1100
1285
  invoice_number?: string | undefined;
@@ -1195,9 +1380,9 @@ export declare class API {
1195
1380
  }[];
1196
1381
  }[];
1197
1382
  }, params?: {
1383
+ folder_id?: string | undefined;
1198
1384
  force_financial_period?: string | undefined;
1199
1385
  regroup_lines?: "true" | "false" | undefined;
1200
- folder_id?: string | undefined;
1201
1386
  } | undefined): import("../types/api").RequestData<{
1202
1387
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1203
1388
  invoice_number?: string | undefined;
@@ -1256,6 +1441,7 @@ export declare class API {
1256
1441
  journal_ids?: string | undefined;
1257
1442
  include_payments?: "true" | "false" | undefined;
1258
1443
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1444
+ updated_after?: string | undefined;
1259
1445
  } | undefined): import("../types/api").RequestData<{
1260
1446
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1261
1447
  invoice_number?: string | undefined;
@@ -1302,8 +1488,8 @@ export declare class API {
1302
1488
  }[];
1303
1489
  }[]>;
1304
1490
  getInvoice(invoiceId: string, params?: {
1305
- include_payments?: "true" | "false" | undefined;
1306
1491
  folder_id?: string | undefined;
1492
+ include_payments?: "true" | "false" | undefined;
1307
1493
  } | undefined): import("../types/api").RequestData<{
1308
1494
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1309
1495
  invoice_number?: string | undefined;
@@ -1350,8 +1536,8 @@ export declare class API {
1350
1536
  }[];
1351
1537
  }>;
1352
1538
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
1353
- include_payments?: "true" | "false" | undefined;
1354
1539
  folder_id?: string | undefined;
1540
+ include_payments?: "true" | "false" | undefined;
1355
1541
  } | undefined): import("../types/api").RequestData<{
1356
1542
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1357
1543
  invoice_number?: string | undefined;
@@ -1410,6 +1596,7 @@ export declare class API {
1410
1596
  journal_ids?: string | undefined;
1411
1597
  include_payments?: "true" | "false" | undefined;
1412
1598
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1599
+ updated_after?: string | undefined;
1413
1600
  } | undefined): import("../types/api").RequestData<{
1414
1601
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1415
1602
  invoice_number?: string | undefined;
@@ -1582,9 +1769,10 @@ export declare class API {
1582
1769
  analytic_plan: string;
1583
1770
  }[]>;
1584
1771
  getJournalEntries(params: {
1585
- date_from: string;
1586
- date_to: string;
1772
+ date_from?: string | undefined;
1773
+ date_to?: string | undefined;
1587
1774
  folder_id?: string | undefined;
1775
+ updated_after?: string | undefined;
1588
1776
  unposted_allowed: "true" | "false";
1589
1777
  journal_id: string;
1590
1778
  partner_id?: string | undefined;
@@ -1614,9 +1802,10 @@ export declare class API {
1614
1802
  }[];
1615
1803
  }[]>;
1616
1804
  getJournalEntriesWithMultiplePlans(params: {
1617
- date_from: string;
1618
- date_to: string;
1805
+ date_from?: string | undefined;
1806
+ date_to?: string | undefined;
1619
1807
  folder_id?: string | undefined;
1808
+ updated_after?: string | undefined;
1620
1809
  unposted_allowed: "true" | "false";
1621
1810
  journal_id: string;
1622
1811
  partner_id?: string | undefined;
@@ -1651,9 +1840,9 @@ export declare class API {
1651
1840
  }[];
1652
1841
  }[]>;
1653
1842
  getPaymentsByInvoiceId(invoice_id: string, params?: {
1654
- folder_id?: string | undefined;
1655
1843
  page?: number | undefined;
1656
1844
  size?: number | undefined;
1845
+ folder_id?: string | undefined;
1657
1846
  } | undefined): import("../types/api").RequestData<{
1658
1847
  id: string;
1659
1848
  name: string;
@@ -1777,8 +1966,8 @@ export declare class API {
1777
1966
  attachPDF(invoice_id: string, attachment: {
1778
1967
  base64_string: string;
1779
1968
  }, params?: {
1780
- overwrite_existing?: "true" | "false" | undefined;
1781
1969
  folder_id?: string | undefined;
1970
+ overwrite_existing?: "true" | "false" | undefined;
1782
1971
  } | undefined): import("../types/api").RequestData<{
1783
1972
  headers: {
1784
1973
  [name: string]: unknown;
@@ -1795,8 +1984,8 @@ export declare class API {
1795
1984
  base64_string: string;
1796
1985
  }[]>;
1797
1986
  getChartOfAccounts(params?: {
1798
- classes?: string | undefined;
1799
1987
  folder_id?: string | undefined;
1988
+ classes?: string | undefined;
1800
1989
  } | undefined): import("../types/api").RequestData<{
1801
1990
  number: string;
1802
1991
  name: string;
@@ -1852,8 +2041,18 @@ export declare class API {
1852
2041
  partner_id: string;
1853
2042
  account_number: string;
1854
2043
  reference?: string | undefined;
2044
+ matching_numbers: string[];
1855
2045
  payment_communication?: string | undefined;
1856
2046
  posted: boolean;
2047
+ original_document?: {
2048
+ id?: string | undefined;
2049
+ number?: string | undefined;
2050
+ journal_id?: string | undefined;
2051
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
2052
+ date?: string | undefined;
2053
+ due_date?: string | undefined;
2054
+ reference?: string | undefined;
2055
+ } | undefined;
1857
2056
  }[]>;
1858
2057
  createFinancialEntryOld(financial_entry: {
1859
2058
  date: string;
@@ -1871,8 +2070,8 @@ export declare class API {
1871
2070
  }[];
1872
2071
  pdf?: string | undefined;
1873
2072
  }, params?: {
1874
- financial_counterpart_account?: string | undefined;
1875
2073
  folder_id?: string | undefined;
2074
+ financial_counterpart_account?: string | undefined;
1876
2075
  } | undefined): import("../types/api").RequestData<{
1877
2076
  date: string;
1878
2077
  journal_id: string;
@@ -1905,8 +2104,8 @@ export declare class API {
1905
2104
  }[];
1906
2105
  pdf?: string | undefined;
1907
2106
  }, params?: {
1908
- financial_counterpart_account?: string | undefined;
1909
2107
  folder_id?: string | undefined;
2108
+ financial_counterpart_account?: string | undefined;
1910
2109
  } | undefined): import("../types/api").RequestData<{
1911
2110
  date: string;
1912
2111
  journal_id: string;
@@ -2006,8 +2205,8 @@ export declare class API {
2006
2205
  start_date?: string | undefined;
2007
2206
  end_date?: string | undefined;
2008
2207
  }, params?: {
2009
- force_currency_exchange?: "true" | "false" | undefined;
2010
2208
  folder_id?: string | undefined;
2209
+ force_currency_exchange?: "true" | "false" | undefined;
2011
2210
  } | undefined): import("../types/api").RequestData<{
2012
2211
  reference?: string | undefined;
2013
2212
  due_date?: string | undefined;
@@ -2047,6 +2246,18 @@ export declare class API {
2047
2246
  matching_number: string;
2048
2247
  balance: number;
2049
2248
  }>;
2249
+ matchEntriesMultiple(body: {
2250
+ matchings: {
2251
+ entries: string[];
2252
+ partner_id: string;
2253
+ }[];
2254
+ }, params?: {
2255
+ folder_id?: string | undefined;
2256
+ } | undefined): import("../types/api").RequestData<{
2257
+ matching_number?: string | undefined;
2258
+ processed: boolean;
2259
+ error_msg?: Record<string, never> | undefined;
2260
+ }[]>;
2050
2261
  getFolders(): import("../types/api").RequestData<{
2051
2262
  id: string;
2052
2263
  name: string;
@@ -2054,14 +2265,23 @@ export declare class API {
2054
2265
  vat?: string | undefined;
2055
2266
  company_number?: string | undefined;
2056
2267
  }[]>;
2268
+ getBookyears(params?: {
2269
+ folder_id?: string | undefined;
2270
+ } | undefined): import("../types/api").RequestData<{
2271
+ name: string;
2272
+ start: string;
2273
+ end: string;
2274
+ closed: boolean;
2275
+ }[]>;
2057
2276
  }>;
2058
2277
  invoicing: import("../types/api").ApiFor<{
2059
2278
  getInvoices(params?: {
2060
2279
  date_from?: string | undefined;
2061
2280
  date_to?: string | undefined;
2062
2281
  payment_status?: "all" | "paid" | "unpaid" | undefined;
2063
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
2064
2282
  updated_after?: string | undefined;
2283
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
2284
+ include_invoice_lines?: "true" | "false" | undefined;
2065
2285
  } | undefined): import("../types/api").RequestData<{
2066
2286
  id: string;
2067
2287
  source_ref: {
@@ -2069,7 +2289,7 @@ export declare class API {
2069
2289
  model?: string | undefined;
2070
2290
  };
2071
2291
  currency: string;
2072
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2292
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2073
2293
  status: "draft" | "posted" | "cancelled" | "paid";
2074
2294
  invoice_date: string;
2075
2295
  tax_amount: number;
@@ -2086,6 +2306,7 @@ export declare class API {
2086
2306
  tax_rate?: number | undefined;
2087
2307
  account_number?: string | undefined;
2088
2308
  tax_id?: string | undefined;
2309
+ tax_exemption_reason?: string | undefined;
2089
2310
  unit_of_measure?: string | undefined;
2090
2311
  product_id?: string | undefined;
2091
2312
  product_code?: string | undefined;
@@ -2102,9 +2323,29 @@ export declare class API {
2102
2323
  model?: string | undefined;
2103
2324
  name?: string | undefined;
2104
2325
  } | undefined;
2326
+ italian_specificities?: {
2327
+ stamp_duty_amount?: number | undefined;
2328
+ withholding_tax?: {
2329
+ rate: number;
2330
+ amount: number;
2331
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2332
+ 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;
2333
+ } | undefined;
2334
+ welfare_fund?: {
2335
+ rate: number;
2336
+ amount: number;
2337
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2338
+ } | undefined;
2339
+ payment_reporting?: {
2340
+ 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;
2341
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2342
+ } | undefined;
2343
+ } | undefined;
2105
2344
  last_updated_on?: string | undefined;
2106
2345
  outstanding_amount?: number | undefined;
2107
2346
  accounting_date?: string | undefined;
2347
+ payment_method_id?: string | undefined;
2348
+ currency_exchange_rate: number;
2108
2349
  }[]>;
2109
2350
  getInvoiceById(invoiceId: string, params?: {
2110
2351
  include_pdf?: "true" | "false" | undefined;
@@ -2115,7 +2356,7 @@ export declare class API {
2115
2356
  model?: string | undefined;
2116
2357
  };
2117
2358
  currency: string;
2118
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2359
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2119
2360
  status: "draft" | "posted" | "cancelled" | "paid";
2120
2361
  invoice_date: string;
2121
2362
  tax_amount: number;
@@ -2132,6 +2373,7 @@ export declare class API {
2132
2373
  tax_rate?: number | undefined;
2133
2374
  account_number?: string | undefined;
2134
2375
  tax_id?: string | undefined;
2376
+ tax_exemption_reason?: string | undefined;
2135
2377
  unit_of_measure?: string | undefined;
2136
2378
  product_id?: string | undefined;
2137
2379
  product_code?: string | undefined;
@@ -2148,13 +2390,33 @@ export declare class API {
2148
2390
  model?: string | undefined;
2149
2391
  name?: string | undefined;
2150
2392
  } | undefined;
2393
+ italian_specificities?: {
2394
+ stamp_duty_amount?: number | undefined;
2395
+ withholding_tax?: {
2396
+ rate: number;
2397
+ amount: number;
2398
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2399
+ 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;
2400
+ } | undefined;
2401
+ welfare_fund?: {
2402
+ rate: number;
2403
+ amount: number;
2404
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2405
+ } | undefined;
2406
+ payment_reporting?: {
2407
+ 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;
2408
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2409
+ } | undefined;
2410
+ } | undefined;
2151
2411
  last_updated_on?: string | undefined;
2152
2412
  outstanding_amount?: number | undefined;
2153
2413
  accounting_date?: string | undefined;
2414
+ payment_method_id?: string | undefined;
2415
+ currency_exchange_rate: number;
2154
2416
  }>;
2155
2417
  createInvoice(invoice: {
2156
2418
  currency: string;
2157
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2419
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2158
2420
  status: "draft" | "posted" | "cancelled" | "paid";
2159
2421
  invoice_date: string;
2160
2422
  tax_amount: number;
@@ -2171,6 +2433,7 @@ export declare class API {
2171
2433
  tax_rate?: number | undefined;
2172
2434
  account_number?: string | undefined;
2173
2435
  tax_id?: string | undefined;
2436
+ tax_exemption_reason?: string | undefined;
2174
2437
  unit_of_measure?: string | undefined;
2175
2438
  product_id?: string | undefined;
2176
2439
  product_code?: string | undefined;
@@ -2187,6 +2450,24 @@ export declare class API {
2187
2450
  model?: string | undefined;
2188
2451
  name?: string | undefined;
2189
2452
  } | undefined;
2453
+ italian_specificities?: {
2454
+ stamp_duty_amount?: number | undefined;
2455
+ withholding_tax?: {
2456
+ rate: number;
2457
+ amount: number;
2458
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2459
+ 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;
2460
+ } | undefined;
2461
+ welfare_fund?: {
2462
+ rate: number;
2463
+ amount: number;
2464
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2465
+ } | undefined;
2466
+ payment_reporting?: {
2467
+ 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;
2468
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2469
+ } | undefined;
2470
+ } | undefined;
2190
2471
  }): import("../types/api").RequestData<{
2191
2472
  id: string;
2192
2473
  source_ref: {
@@ -2194,7 +2475,7 @@ export declare class API {
2194
2475
  model?: string | undefined;
2195
2476
  };
2196
2477
  currency: string;
2197
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2478
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2198
2479
  status: "draft" | "posted" | "cancelled" | "paid";
2199
2480
  invoice_date: string;
2200
2481
  tax_amount: number;
@@ -2211,6 +2492,7 @@ export declare class API {
2211
2492
  tax_rate?: number | undefined;
2212
2493
  account_number?: string | undefined;
2213
2494
  tax_id?: string | undefined;
2495
+ tax_exemption_reason?: string | undefined;
2214
2496
  unit_of_measure?: string | undefined;
2215
2497
  product_id?: string | undefined;
2216
2498
  product_code?: string | undefined;
@@ -2227,9 +2509,29 @@ export declare class API {
2227
2509
  model?: string | undefined;
2228
2510
  name?: string | undefined;
2229
2511
  } | undefined;
2512
+ italian_specificities?: {
2513
+ stamp_duty_amount?: number | undefined;
2514
+ withholding_tax?: {
2515
+ rate: number;
2516
+ amount: number;
2517
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2518
+ 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;
2519
+ } | undefined;
2520
+ welfare_fund?: {
2521
+ rate: number;
2522
+ amount: number;
2523
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2524
+ } | undefined;
2525
+ payment_reporting?: {
2526
+ 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;
2527
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2528
+ } | undefined;
2529
+ } | undefined;
2230
2530
  last_updated_on?: string | undefined;
2231
2531
  outstanding_amount?: number | undefined;
2232
2532
  accounting_date?: string | undefined;
2533
+ payment_method_id?: string | undefined;
2534
+ currency_exchange_rate: number;
2233
2535
  }>;
2234
2536
  getProducts(): import("../types/api").RequestData<{
2235
2537
  id: string;
@@ -2526,6 +2828,31 @@ export declare class API {
2526
2828
  }[];
2527
2829
  external_reference?: string | undefined;
2528
2830
  }>;
2831
+ getPayments(): import("../types/api").RequestData<{
2832
+ id: string;
2833
+ source_ref: {
2834
+ id?: string | undefined;
2835
+ model?: string | undefined;
2836
+ };
2837
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
2838
+ description: string;
2839
+ amount: number;
2840
+ currency: string;
2841
+ payment_date: string;
2842
+ partner_id: string;
2843
+ payment_method_id?: string | undefined;
2844
+ payment_method_name?: string | undefined;
2845
+ invoice_id?: string | undefined;
2846
+ invoice_number?: string | undefined;
2847
+ }[]>;
2848
+ getPaymentMethods(): import("../types/api").RequestData<{
2849
+ id: string;
2850
+ source_ref: {
2851
+ id?: string | undefined;
2852
+ model?: string | undefined;
2853
+ };
2854
+ name: string;
2855
+ }[]>;
2529
2856
  }>;
2530
2857
  ecommerce: import("../types/api").ApiFor<{
2531
2858
  getCustomers(): import("../types/api").RequestData<{
@@ -3665,14 +3992,61 @@ export declare class API {
3665
3992
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
3666
3993
  setConnectionId: (connectionId: string) => Promise<void>;
3667
3994
  setIntegrationId: (integrationId: string) => Promise<void>;
3668
- }[]>;
3669
- createConsumer: (body: {
3670
- name: string;
3671
- email?: string | undefined;
3672
- redirect_url?: string | undefined;
3673
- }) => Promise<{
3674
- consumerId: string;
3675
- getConnections: () => Promise<{
3995
+ updateConsumer: (body: {
3996
+ name?: string | undefined;
3997
+ email?: string | undefined;
3998
+ internal_reference?: string | undefined;
3999
+ redirect_url?: string | undefined;
4000
+ }) => Promise<{
4001
+ consumerid: string;
4002
+ name: string;
4003
+ email?: string | undefined;
4004
+ internal_reference?: string | undefined;
4005
+ redirect_url?: string | undefined;
4006
+ }>;
4007
+ updateFlowConfig: (syncId: string, flowId: string, body: {
4008
+ triggerid: string;
4009
+ data: Record<string, never>;
4010
+ }) => Promise<{
4011
+ name: string;
4012
+ description?: string | undefined;
4013
+ id: string;
4014
+ config?: {
4015
+ definitionFields?: Record<string, never>[] | undefined;
4016
+ doorkeyFields?: Record<string, never>[] | undefined;
4017
+ customFields?: Record<string, never>[] | undefined;
4018
+ datastores: {
4019
+ id?: string | undefined;
4020
+ name: string;
4021
+ status: "active" | "inactive";
4022
+ definition: {
4023
+ columns: {
4024
+ name: string;
4025
+ title: string;
4026
+ type: string;
4027
+ optional: boolean;
4028
+ }[];
4029
+ search_column?: string | undefined;
4030
+ };
4031
+ }[];
4032
+ } | undefined;
4033
+ values: Record<string, never>;
4034
+ enabled_on?: string | undefined;
4035
+ trigger: {
4036
+ id: string;
4037
+ type: "event" | "timer";
4038
+ cronschedule?: string | undefined;
4039
+ };
4040
+ }>;
4041
+ }[]>;
4042
+ createConsumer: (body: {
4043
+ name: string;
4044
+ email?: string | undefined;
4045
+ internal_reference?: string | undefined;
4046
+ redirect_url?: string | undefined;
4047
+ }) => Promise<{
4048
+ consumerId: string;
4049
+ getConnections: () => Promise<{
3676
4050
  connectionid: string;
3677
4051
  name: string;
3678
4052
  integration: string;
@@ -3794,6 +4168,7 @@ export declare class API {
3794
4168
  discounts: {
3795
4169
  name?: string | undefined;
3796
4170
  total: number;
4171
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
3797
4172
  }[];
3798
4173
  product_id?: string | undefined;
3799
4174
  accounting_category_id?: string | undefined;
@@ -3871,6 +4246,7 @@ export declare class API {
3871
4246
  discounts: {
3872
4247
  name?: string | undefined;
3873
4248
  total: number;
4249
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
3874
4250
  }[];
3875
4251
  product_id?: string | undefined;
3876
4252
  accounting_category_id?: string | undefined;
@@ -4045,6 +4421,7 @@ export declare class API {
4045
4421
  discounts: {
4046
4422
  name?: string | undefined;
4047
4423
  total: number;
4424
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
4048
4425
  }[];
4049
4426
  product_id?: string | undefined;
4050
4427
  accounting_category_id?: string | undefined;
@@ -4126,11 +4503,62 @@ export declare class API {
4126
4503
  discounts: {
4127
4504
  name?: string | undefined;
4128
4505
  total: number;
4506
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
4129
4507
  }[];
4130
4508
  product_id?: string | undefined;
4131
4509
  accounting_category_id?: string | undefined;
4132
4510
  }[];
4133
4511
  service_id?: string | undefined;
4512
+ reservation?: {
4513
+ id: string;
4514
+ source_ref: {
4515
+ id?: string | undefined;
4516
+ model?: string | undefined;
4517
+ };
4518
+ start_date?: string | undefined;
4519
+ end_date?: string | undefined;
4520
+ creation_date?: string | undefined;
4521
+ resource_id?: {
4522
+ id: string;
4523
+ source_ref: {
4524
+ id?: string | undefined;
4525
+ model?: string | undefined;
4526
+ };
4527
+ } | undefined;
4528
+ resource_name?: string | undefined;
4529
+ resource_identifier?: string | undefined;
4530
+ } | undefined;
4531
+ bills?: {
4532
+ id: string;
4533
+ source_ref: {
4534
+ id?: string | undefined;
4535
+ model?: string | undefined;
4536
+ };
4537
+ invoice_number?: string | undefined;
4538
+ creation_date?: string | undefined;
4539
+ closing_date?: string | undefined;
4540
+ partners?: {
4541
+ id: string;
4542
+ source_ref: {
4543
+ id?: string | undefined;
4544
+ model?: string | undefined;
4545
+ };
4546
+ type: "owner" | "account";
4547
+ address?: {
4548
+ address_type?: string | undefined;
4549
+ name?: string | undefined;
4550
+ street?: string | undefined;
4551
+ number?: string | undefined;
4552
+ box?: string | undefined;
4553
+ city?: string | undefined;
4554
+ postal_code?: string | undefined;
4555
+ country?: string | undefined;
4556
+ } | undefined;
4557
+ first_name?: string | undefined;
4558
+ last_name?: string | undefined;
4559
+ company_name?: string | undefined;
4560
+ }[] | undefined;
4561
+ }[] | undefined;
4134
4562
  }[]>;
4135
4563
  getPaymentMethods(params?: {
4136
4564
  location_id?: string | undefined;
@@ -4166,6 +4594,13 @@ export declare class API {
4166
4594
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
4167
4595
  currency?: string | undefined;
4168
4596
  date?: string | undefined;
4597
+ partner_id?: {
4598
+ id: string;
4599
+ source_ref: {
4600
+ id?: string | undefined;
4601
+ model?: string | undefined;
4602
+ };
4603
+ } | undefined;
4169
4604
  }[]>;
4170
4605
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
4171
4606
  id: string;
@@ -4178,6 +4613,128 @@ export declare class API {
4178
4613
  ledger_account_code?: string | undefined;
4179
4614
  posting_account_code?: string | undefined;
4180
4615
  }[]>;
4616
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
4617
+ id: string;
4618
+ source_ref: {
4619
+ id?: string | undefined;
4620
+ model?: string | undefined;
4621
+ };
4622
+ first_name?: string | undefined;
4623
+ last_name?: string | undefined;
4624
+ company_name?: string | undefined;
4625
+ phone?: string | undefined;
4626
+ email?: string | undefined;
4627
+ account_number?: string | undefined;
4628
+ created_on?: string | undefined;
4629
+ addresses?: {
4630
+ address_type?: string | undefined;
4631
+ name?: string | undefined;
4632
+ street?: string | undefined;
4633
+ number?: string | undefined;
4634
+ box?: string | undefined;
4635
+ city?: string | undefined;
4636
+ postal_code?: string | undefined;
4637
+ country?: string | undefined;
4638
+ }[] | undefined;
4639
+ }[]>;
4640
+ getInvoices(params?: {
4641
+ date_from: string;
4642
+ date_to: string;
4643
+ location_id?: string | undefined;
4644
+ } | undefined): import("../types/api").RequestData<{
4645
+ id: string;
4646
+ source_ref: {
4647
+ id?: string | undefined;
4648
+ model?: string | undefined;
4649
+ };
4650
+ invoice_number?: string | undefined;
4651
+ creation_date?: string | undefined;
4652
+ closing_date?: string | undefined;
4653
+ partners?: {
4654
+ id: string;
4655
+ source_ref: {
4656
+ id?: string | undefined;
4657
+ model?: string | undefined;
4658
+ };
4659
+ type: "owner" | "account";
4660
+ address?: {
4661
+ address_type?: string | undefined;
4662
+ name?: string | undefined;
4663
+ street?: string | undefined;
4664
+ number?: string | undefined;
4665
+ box?: string | undefined;
4666
+ city?: string | undefined;
4667
+ postal_code?: string | undefined;
4668
+ country?: string | undefined;
4669
+ } | undefined;
4670
+ first_name?: string | undefined;
4671
+ last_name?: string | undefined;
4672
+ company_name?: string | undefined;
4673
+ }[] | undefined;
4674
+ items: {
4675
+ id: string;
4676
+ source_ref: {
4677
+ id?: string | undefined;
4678
+ model?: string | undefined;
4679
+ };
4680
+ type?: "menu" | "product" | undefined;
4681
+ menu_id?: string | undefined;
4682
+ quantity: number;
4683
+ unit_price: number;
4684
+ total: number;
4685
+ tax_amount: number;
4686
+ tax_rate?: number | undefined;
4687
+ description?: string | undefined;
4688
+ discounts: {
4689
+ name?: string | undefined;
4690
+ total: number;
4691
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
4692
+ }[];
4693
+ product_id?: string | undefined;
4694
+ accounting_category_id?: string | undefined;
4695
+ }[];
4696
+ payments: {
4697
+ id?: string | undefined;
4698
+ source_ref: {
4699
+ id?: string | undefined;
4700
+ model?: string | undefined;
4701
+ };
4702
+ payment_method_id?: string | undefined;
4703
+ payment_method_name?: string | undefined;
4704
+ total: number;
4705
+ tip: number;
4706
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
4707
+ currency?: string | undefined;
4708
+ date?: string | undefined;
4709
+ partner_id?: {
4710
+ id: string;
4711
+ source_ref: {
4712
+ id?: string | undefined;
4713
+ model?: string | undefined;
4714
+ };
4715
+ } | undefined;
4716
+ }[];
4717
+ service_id?: string | undefined;
4718
+ reservation?: {
4719
+ id: string;
4720
+ source_ref: {
4721
+ id?: string | undefined;
4722
+ model?: string | undefined;
4723
+ };
4724
+ start_date?: string | undefined;
4725
+ end_date?: string | undefined;
4726
+ creation_date?: string | undefined;
4727
+ resource_id?: {
4728
+ id: string;
4729
+ source_ref: {
4730
+ id?: string | undefined;
4731
+ model?: string | undefined;
4732
+ };
4733
+ } | undefined;
4734
+ resource_name?: string | undefined;
4735
+ resource_identifier?: string | undefined;
4736
+ } | undefined;
4737
+ }[]>;
4181
4738
  }>;
4182
4739
  payment: import("../types/api").ApiFor<{
4183
4740
  getPayments(params: {
@@ -4229,8 +4786,8 @@ export declare class API {
4229
4786
  payment_id?: string | undefined;
4230
4787
  }[]>;
4231
4788
  getPayment(params: {
4232
- payment_id: string;
4233
4789
  consumer_id: string;
4790
+ payment_id: string;
4234
4791
  }): import("../types/api").RequestData<{
4235
4792
  id: string;
4236
4793
  source_ref: {
@@ -4273,6 +4830,7 @@ export declare class API {
4273
4830
  getClients(params?: {
4274
4831
  search?: string | undefined;
4275
4832
  folder_id?: string | undefined;
4833
+ updated_after?: string | undefined;
4276
4834
  } | undefined): import("../types/api").RequestData<{
4277
4835
  external_reference?: string | undefined;
4278
4836
  first_name?: string | undefined;
@@ -4343,8 +4901,8 @@ export declare class API {
4343
4901
  }[];
4344
4902
  account_number?: string | undefined;
4345
4903
  }, params?: {
4346
- force_merge?: string | undefined;
4347
4904
  folder_id?: string | undefined;
4905
+ force_merge?: string | undefined;
4348
4906
  } | undefined): import("../types/api").RequestData<{
4349
4907
  external_reference?: string | undefined;
4350
4908
  first_name?: string | undefined;
@@ -4492,6 +5050,7 @@ export declare class API {
4492
5050
  getSuppliers(params?: {
4493
5051
  search?: string | undefined;
4494
5052
  folder_id?: string | undefined;
5053
+ updated_after?: string | undefined;
4495
5054
  } | undefined): import("../types/api").RequestData<{
4496
5055
  external_reference?: string | undefined;
4497
5056
  first_name?: string | undefined;
@@ -4562,8 +5121,8 @@ export declare class API {
4562
5121
  }[];
4563
5122
  account_number?: string | undefined;
4564
5123
  }, params?: {
4565
- force_merge?: string | undefined;
4566
5124
  folder_id?: string | undefined;
5125
+ force_merge?: string | undefined;
4567
5126
  } | undefined): import("../types/api").RequestData<{
4568
5127
  external_reference?: string | undefined;
4569
5128
  first_name?: string | undefined;
@@ -4757,9 +5316,9 @@ export declare class API {
4757
5316
  analytic_account?: string | undefined;
4758
5317
  }[];
4759
5318
  }, params?: {
5319
+ folder_id?: string | undefined;
4760
5320
  force_financial_period?: string | undefined;
4761
5321
  regroup_lines?: "true" | "false" | undefined;
4762
- folder_id?: string | undefined;
4763
5322
  } | undefined): import("../types/api").RequestData<{
4764
5323
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4765
5324
  invoice_number?: string | undefined;
@@ -4860,9 +5419,9 @@ export declare class API {
4860
5419
  }[];
4861
5420
  }[];
4862
5421
  }, params?: {
5422
+ folder_id?: string | undefined;
4863
5423
  force_financial_period?: string | undefined;
4864
5424
  regroup_lines?: "true" | "false" | undefined;
4865
- folder_id?: string | undefined;
4866
5425
  } | undefined): import("../types/api").RequestData<{
4867
5426
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4868
5427
  invoice_number?: string | undefined;
@@ -4921,6 +5480,7 @@ export declare class API {
4921
5480
  journal_ids?: string | undefined;
4922
5481
  include_payments?: "true" | "false" | undefined;
4923
5482
  payment_status?: "all" | "paid" | "unpaid" | undefined;
5483
+ updated_after?: string | undefined;
4924
5484
  } | undefined): import("../types/api").RequestData<{
4925
5485
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4926
5486
  invoice_number?: string | undefined;
@@ -4967,8 +5527,8 @@ export declare class API {
4967
5527
  }[];
4968
5528
  }[]>;
4969
5529
  getInvoice(invoiceId: string, params?: {
4970
- include_payments?: "true" | "false" | undefined;
4971
5530
  folder_id?: string | undefined;
5531
+ include_payments?: "true" | "false" | undefined;
4972
5532
  } | undefined): import("../types/api").RequestData<{
4973
5533
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4974
5534
  invoice_number?: string | undefined;
@@ -5015,8 +5575,8 @@ export declare class API {
5015
5575
  }[];
5016
5576
  }>;
5017
5577
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
5018
- include_payments?: "true" | "false" | undefined;
5019
5578
  folder_id?: string | undefined;
5579
+ include_payments?: "true" | "false" | undefined;
5020
5580
  } | undefined): import("../types/api").RequestData<{
5021
5581
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5022
5582
  invoice_number?: string | undefined;
@@ -5075,6 +5635,7 @@ export declare class API {
5075
5635
  journal_ids?: string | undefined;
5076
5636
  include_payments?: "true" | "false" | undefined;
5077
5637
  payment_status?: "all" | "paid" | "unpaid" | undefined;
5638
+ updated_after?: string | undefined;
5078
5639
  } | undefined): import("../types/api").RequestData<{
5079
5640
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5080
5641
  invoice_number?: string | undefined;
@@ -5247,9 +5808,10 @@ export declare class API {
5247
5808
  analytic_plan: string;
5248
5809
  }[]>;
5249
5810
  getJournalEntries(params: {
5250
- date_from: string;
5251
- date_to: string;
5811
+ date_from?: string | undefined;
5812
+ date_to?: string | undefined;
5252
5813
  folder_id?: string | undefined;
5814
+ updated_after?: string | undefined;
5253
5815
  unposted_allowed: "true" | "false";
5254
5816
  journal_id: string;
5255
5817
  partner_id?: string | undefined;
@@ -5279,9 +5841,10 @@ export declare class API {
5279
5841
  }[];
5280
5842
  }[]>;
5281
5843
  getJournalEntriesWithMultiplePlans(params: {
5282
- date_from: string;
5283
- date_to: string;
5844
+ date_from?: string | undefined;
5845
+ date_to?: string | undefined;
5284
5846
  folder_id?: string | undefined;
5847
+ updated_after?: string | undefined;
5285
5848
  unposted_allowed: "true" | "false";
5286
5849
  journal_id: string;
5287
5850
  partner_id?: string | undefined;
@@ -5316,9 +5879,9 @@ export declare class API {
5316
5879
  }[];
5317
5880
  }[]>;
5318
5881
  getPaymentsByInvoiceId(invoice_id: string, params?: {
5319
- folder_id?: string | undefined;
5320
5882
  page?: number | undefined;
5321
5883
  size?: number | undefined;
5884
+ folder_id?: string | undefined;
5322
5885
  } | undefined): import("../types/api").RequestData<{
5323
5886
  id: string;
5324
5887
  name: string;
@@ -5442,8 +6005,8 @@ export declare class API {
5442
6005
  attachPDF(invoice_id: string, attachment: {
5443
6006
  base64_string: string;
5444
6007
  }, params?: {
5445
- overwrite_existing?: "true" | "false" | undefined;
5446
6008
  folder_id?: string | undefined;
6009
+ overwrite_existing?: "true" | "false" | undefined;
5447
6010
  } | undefined): import("../types/api").RequestData<{
5448
6011
  headers: {
5449
6012
  [name: string]: unknown;
@@ -5460,8 +6023,8 @@ export declare class API {
5460
6023
  base64_string: string;
5461
6024
  }[]>;
5462
6025
  getChartOfAccounts(params?: {
5463
- classes?: string | undefined;
5464
6026
  folder_id?: string | undefined;
6027
+ classes?: string | undefined;
5465
6028
  } | undefined): import("../types/api").RequestData<{
5466
6029
  number: string;
5467
6030
  name: string;
@@ -5517,8 +6080,18 @@ export declare class API {
5517
6080
  partner_id: string;
5518
6081
  account_number: string;
5519
6082
  reference?: string | undefined;
6083
+ matching_numbers: string[];
5520
6084
  payment_communication?: string | undefined;
5521
6085
  posted: boolean;
6086
+ original_document?: {
6087
+ id?: string | undefined;
6088
+ number?: string | undefined;
6089
+ journal_id?: string | undefined;
6090
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
6091
+ date?: string | undefined;
6092
+ due_date?: string | undefined;
6093
+ reference?: string | undefined;
6094
+ } | undefined;
5522
6095
  }[]>;
5523
6096
  createFinancialEntryOld(financial_entry: {
5524
6097
  date: string;
@@ -5536,8 +6109,8 @@ export declare class API {
5536
6109
  }[];
5537
6110
  pdf?: string | undefined;
5538
6111
  }, params?: {
5539
- financial_counterpart_account?: string | undefined;
5540
6112
  folder_id?: string | undefined;
6113
+ financial_counterpart_account?: string | undefined;
5541
6114
  } | undefined): import("../types/api").RequestData<{
5542
6115
  date: string;
5543
6116
  journal_id: string;
@@ -5570,8 +6143,8 @@ export declare class API {
5570
6143
  }[];
5571
6144
  pdf?: string | undefined;
5572
6145
  }, params?: {
5573
- financial_counterpart_account?: string | undefined;
5574
6146
  folder_id?: string | undefined;
6147
+ financial_counterpart_account?: string | undefined;
5575
6148
  } | undefined): import("../types/api").RequestData<{
5576
6149
  date: string;
5577
6150
  journal_id: string;
@@ -5671,8 +6244,8 @@ export declare class API {
5671
6244
  start_date?: string | undefined;
5672
6245
  end_date?: string | undefined;
5673
6246
  }, params?: {
5674
- force_currency_exchange?: "true" | "false" | undefined;
5675
6247
  folder_id?: string | undefined;
6248
+ force_currency_exchange?: "true" | "false" | undefined;
5676
6249
  } | undefined): import("../types/api").RequestData<{
5677
6250
  reference?: string | undefined;
5678
6251
  due_date?: string | undefined;
@@ -5712,6 +6285,18 @@ export declare class API {
5712
6285
  matching_number: string;
5713
6286
  balance: number;
5714
6287
  }>;
6288
+ matchEntriesMultiple(body: {
6289
+ matchings: {
6290
+ entries: string[];
6291
+ partner_id: string;
6292
+ }[];
6293
+ }, params?: {
6294
+ folder_id?: string | undefined;
6295
+ } | undefined): import("../types/api").RequestData<{
6296
+ matching_number?: string | undefined;
6297
+ processed: boolean;
6298
+ error_msg?: Record<string, never> | undefined;
6299
+ }[]>;
5715
6300
  getFolders(): import("../types/api").RequestData<{
5716
6301
  id: string;
5717
6302
  name: string;
@@ -5719,14 +6304,23 @@ export declare class API {
5719
6304
  vat?: string | undefined;
5720
6305
  company_number?: string | undefined;
5721
6306
  }[]>;
6307
+ getBookyears(params?: {
6308
+ folder_id?: string | undefined;
6309
+ } | undefined): import("../types/api").RequestData<{
6310
+ name: string;
6311
+ start: string;
6312
+ end: string;
6313
+ closed: boolean;
6314
+ }[]>;
5722
6315
  }>;
5723
6316
  invoicing: import("../types/api").ApiFor<{
5724
6317
  getInvoices(params?: {
5725
6318
  date_from?: string | undefined;
5726
6319
  date_to?: string | undefined;
5727
6320
  payment_status?: "all" | "paid" | "unpaid" | undefined;
5728
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
5729
6321
  updated_after?: string | undefined;
6322
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
6323
+ include_invoice_lines?: "true" | "false" | undefined;
5730
6324
  } | undefined): import("../types/api").RequestData<{
5731
6325
  id: string;
5732
6326
  source_ref: {
@@ -5734,7 +6328,7 @@ export declare class API {
5734
6328
  model?: string | undefined;
5735
6329
  };
5736
6330
  currency: string;
5737
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6331
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5738
6332
  status: "draft" | "posted" | "cancelled" | "paid";
5739
6333
  invoice_date: string;
5740
6334
  tax_amount: number;
@@ -5751,6 +6345,7 @@ export declare class API {
5751
6345
  tax_rate?: number | undefined;
5752
6346
  account_number?: string | undefined;
5753
6347
  tax_id?: string | undefined;
6348
+ tax_exemption_reason?: string | undefined;
5754
6349
  unit_of_measure?: string | undefined;
5755
6350
  product_id?: string | undefined;
5756
6351
  product_code?: string | undefined;
@@ -5767,9 +6362,29 @@ export declare class API {
5767
6362
  model?: string | undefined;
5768
6363
  name?: string | undefined;
5769
6364
  } | undefined;
6365
+ italian_specificities?: {
6366
+ stamp_duty_amount?: number | undefined;
6367
+ withholding_tax?: {
6368
+ rate: number;
6369
+ amount: number;
6370
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
6371
+ 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;
6372
+ } | undefined;
6373
+ welfare_fund?: {
6374
+ rate: number;
6375
+ amount: number;
6376
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
6377
+ } | undefined;
6378
+ payment_reporting?: {
6379
+ 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;
6380
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
6381
+ } | undefined;
6382
+ } | undefined;
5770
6383
  last_updated_on?: string | undefined;
5771
6384
  outstanding_amount?: number | undefined;
5772
6385
  accounting_date?: string | undefined;
6386
+ payment_method_id?: string | undefined;
6387
+ currency_exchange_rate: number;
5773
6388
  }[]>;
5774
6389
  getInvoiceById(invoiceId: string, params?: {
5775
6390
  include_pdf?: "true" | "false" | undefined;
@@ -5780,7 +6395,7 @@ export declare class API {
5780
6395
  model?: string | undefined;
5781
6396
  };
5782
6397
  currency: string;
5783
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6398
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5784
6399
  status: "draft" | "posted" | "cancelled" | "paid";
5785
6400
  invoice_date: string;
5786
6401
  tax_amount: number;
@@ -5797,6 +6412,7 @@ export declare class API {
5797
6412
  tax_rate?: number | undefined;
5798
6413
  account_number?: string | undefined;
5799
6414
  tax_id?: string | undefined;
6415
+ tax_exemption_reason?: string | undefined;
5800
6416
  unit_of_measure?: string | undefined;
5801
6417
  product_id?: string | undefined;
5802
6418
  product_code?: string | undefined;
@@ -5813,13 +6429,33 @@ export declare class API {
5813
6429
  model?: string | undefined;
5814
6430
  name?: string | undefined;
5815
6431
  } | undefined;
6432
+ italian_specificities?: {
6433
+ stamp_duty_amount?: number | undefined;
6434
+ withholding_tax?: {
6435
+ rate: number;
6436
+ amount: number;
6437
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
6438
+ 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;
6439
+ } | undefined;
6440
+ welfare_fund?: {
6441
+ rate: number;
6442
+ amount: number;
6443
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
6444
+ } | undefined;
6445
+ payment_reporting?: {
6446
+ 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;
6447
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
6448
+ } | undefined;
6449
+ } | undefined;
5816
6450
  last_updated_on?: string | undefined;
5817
6451
  outstanding_amount?: number | undefined;
5818
6452
  accounting_date?: string | undefined;
6453
+ payment_method_id?: string | undefined;
6454
+ currency_exchange_rate: number;
5819
6455
  }>;
5820
6456
  createInvoice(invoice: {
5821
6457
  currency: string;
5822
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6458
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5823
6459
  status: "draft" | "posted" | "cancelled" | "paid";
5824
6460
  invoice_date: string;
5825
6461
  tax_amount: number;
@@ -5836,6 +6472,7 @@ export declare class API {
5836
6472
  tax_rate?: number | undefined;
5837
6473
  account_number?: string | undefined;
5838
6474
  tax_id?: string | undefined;
6475
+ tax_exemption_reason?: string | undefined;
5839
6476
  unit_of_measure?: string | undefined;
5840
6477
  product_id?: string | undefined;
5841
6478
  product_code?: string | undefined;
@@ -5852,6 +6489,24 @@ export declare class API {
5852
6489
  model?: string | undefined;
5853
6490
  name?: string | undefined;
5854
6491
  } | undefined;
6492
+ italian_specificities?: {
6493
+ stamp_duty_amount?: number | undefined;
6494
+ withholding_tax?: {
6495
+ rate: number;
6496
+ amount: number;
6497
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
6498
+ 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;
6499
+ } | undefined;
6500
+ welfare_fund?: {
6501
+ rate: number;
6502
+ amount: number;
6503
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
6504
+ } | undefined;
6505
+ payment_reporting?: {
6506
+ 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;
6507
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
6508
+ } | undefined;
6509
+ } | undefined;
5855
6510
  }): import("../types/api").RequestData<{
5856
6511
  id: string;
5857
6512
  source_ref: {
@@ -5859,7 +6514,7 @@ export declare class API {
5859
6514
  model?: string | undefined;
5860
6515
  };
5861
6516
  currency: string;
5862
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6517
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5863
6518
  status: "draft" | "posted" | "cancelled" | "paid";
5864
6519
  invoice_date: string;
5865
6520
  tax_amount: number;
@@ -5876,6 +6531,7 @@ export declare class API {
5876
6531
  tax_rate?: number | undefined;
5877
6532
  account_number?: string | undefined;
5878
6533
  tax_id?: string | undefined;
6534
+ tax_exemption_reason?: string | undefined;
5879
6535
  unit_of_measure?: string | undefined;
5880
6536
  product_id?: string | undefined;
5881
6537
  product_code?: string | undefined;
@@ -5892,9 +6548,29 @@ export declare class API {
5892
6548
  model?: string | undefined;
5893
6549
  name?: string | undefined;
5894
6550
  } | undefined;
6551
+ italian_specificities?: {
6552
+ stamp_duty_amount?: number | undefined;
6553
+ withholding_tax?: {
6554
+ rate: number;
6555
+ amount: number;
6556
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
6557
+ 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;
6558
+ } | undefined;
6559
+ welfare_fund?: {
6560
+ rate: number;
6561
+ amount: number;
6562
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
6563
+ } | undefined;
6564
+ payment_reporting?: {
6565
+ 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;
6566
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
6567
+ } | undefined;
6568
+ } | undefined;
5895
6569
  last_updated_on?: string | undefined;
5896
6570
  outstanding_amount?: number | undefined;
5897
6571
  accounting_date?: string | undefined;
6572
+ payment_method_id?: string | undefined;
6573
+ currency_exchange_rate: number;
5898
6574
  }>;
5899
6575
  getProducts(): import("../types/api").RequestData<{
5900
6576
  id: string;
@@ -6191,6 +6867,31 @@ export declare class API {
6191
6867
  }[];
6192
6868
  external_reference?: string | undefined;
6193
6869
  }>;
6870
+ getPayments(): import("../types/api").RequestData<{
6871
+ id: string;
6872
+ source_ref: {
6873
+ id?: string | undefined;
6874
+ model?: string | undefined;
6875
+ };
6876
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
6877
+ description: string;
6878
+ amount: number;
6879
+ currency: string;
6880
+ payment_date: string;
6881
+ partner_id: string;
6882
+ payment_method_id?: string | undefined;
6883
+ payment_method_name?: string | undefined;
6884
+ invoice_id?: string | undefined;
6885
+ invoice_number?: string | undefined;
6886
+ }[]>;
6887
+ getPaymentMethods(): import("../types/api").RequestData<{
6888
+ id: string;
6889
+ source_ref: {
6890
+ id?: string | undefined;
6891
+ model?: string | undefined;
6892
+ };
6893
+ name: string;
6894
+ }[]>;
6194
6895
  }>;
6195
6896
  ecommerce: import("../types/api").ApiFor<{
6196
6897
  getCustomers(): import("../types/api").RequestData<{
@@ -7330,6 +8031,52 @@ export declare class API {
7330
8031
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
7331
8032
  setConnectionId: (connectionId: string) => Promise<void>;
7332
8033
  setIntegrationId: (integrationId: string) => Promise<void>;
8034
+ updateConsumer: (body: {
8035
+ name?: string | undefined;
8036
+ email?: string | undefined;
8037
+ internal_reference?: string | undefined;
8038
+ redirect_url?: string | undefined;
8039
+ }) => Promise<{
8040
+ consumerid: string;
8041
+ name: string;
8042
+ email?: string | undefined;
8043
+ internal_reference?: string | undefined;
8044
+ redirect_url?: string | undefined;
8045
+ }>;
8046
+ updateFlowConfig: (syncId: string, flowId: string, body: {
8047
+ triggerid: string;
8048
+ data: Record<string, never>;
8049
+ }) => Promise<{
8050
+ name: string;
8051
+ description?: string | undefined;
8052
+ id: string;
8053
+ config?: {
8054
+ definitionFields?: Record<string, never>[] | undefined;
8055
+ doorkeyFields?: Record<string, never>[] | undefined;
8056
+ customFields?: Record<string, never>[] | undefined;
8057
+ datastores: {
8058
+ id?: string | undefined;
8059
+ name: string;
8060
+ status: "active" | "inactive";
8061
+ definition: {
8062
+ columns: {
8063
+ name: string;
8064
+ title: string;
8065
+ type: string;
8066
+ optional: boolean;
8067
+ }[];
8068
+ search_column?: string | undefined;
8069
+ };
8070
+ }[];
8071
+ } | undefined;
8072
+ values: Record<string, never>;
8073
+ enabled_on?: string | undefined;
8074
+ trigger: {
8075
+ id: string;
8076
+ type: "event" | "timer";
8077
+ cronschedule?: string | undefined;
8078
+ };
8079
+ }>;
7333
8080
  }>;
7334
8081
  getConsumerById: (consumerId: string) => Promise<{
7335
8082
  consumerId: string;
@@ -7455,6 +8202,7 @@ export declare class API {
7455
8202
  discounts: {
7456
8203
  name?: string | undefined;
7457
8204
  total: number;
8205
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7458
8206
  }[];
7459
8207
  product_id?: string | undefined;
7460
8208
  accounting_category_id?: string | undefined;
@@ -7532,6 +8280,7 @@ export declare class API {
7532
8280
  discounts: {
7533
8281
  name?: string | undefined;
7534
8282
  total: number;
8283
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7535
8284
  }[];
7536
8285
  product_id?: string | undefined;
7537
8286
  accounting_category_id?: string | undefined;
@@ -7706,6 +8455,7 @@ export declare class API {
7706
8455
  discounts: {
7707
8456
  name?: string | undefined;
7708
8457
  total: number;
8458
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7709
8459
  }[];
7710
8460
  product_id?: string | undefined;
7711
8461
  accounting_category_id?: string | undefined;
@@ -7787,11 +8537,62 @@ export declare class API {
7787
8537
  discounts: {
7788
8538
  name?: string | undefined;
7789
8539
  total: number;
8540
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7790
8541
  }[];
7791
8542
  product_id?: string | undefined;
7792
8543
  accounting_category_id?: string | undefined;
7793
8544
  }[];
7794
8545
  service_id?: string | undefined;
8546
+ reservation?: {
8547
+ id: string;
8548
+ source_ref: {
8549
+ id?: string | undefined;
8550
+ model?: string | undefined;
8551
+ };
8552
+ start_date?: string | undefined;
8553
+ end_date?: string | undefined;
8554
+ creation_date?: string | undefined;
8555
+ resource_id?: {
8556
+ id: string;
8557
+ source_ref: {
8558
+ id?: string | undefined;
8559
+ model?: string | undefined;
8560
+ };
8561
+ } | undefined;
8562
+ resource_name?: string | undefined;
8563
+ resource_identifier?: string | undefined;
8564
+ } | undefined;
8565
+ bills?: {
8566
+ id: string;
8567
+ source_ref: {
8568
+ id?: string | undefined;
8569
+ model?: string | undefined;
8570
+ };
8571
+ invoice_number?: string | undefined;
8572
+ creation_date?: string | undefined;
8573
+ closing_date?: string | undefined;
8574
+ partners?: {
8575
+ id: string;
8576
+ source_ref: {
8577
+ id?: string | undefined;
8578
+ model?: string | undefined;
8579
+ };
8580
+ type: "owner" | "account";
8581
+ address?: {
8582
+ address_type?: string | undefined;
8583
+ name?: string | undefined;
8584
+ street?: string | undefined;
8585
+ number?: string | undefined;
8586
+ box?: string | undefined;
8587
+ city?: string | undefined;
8588
+ postal_code?: string | undefined;
8589
+ country?: string | undefined;
8590
+ } | undefined;
8591
+ first_name?: string | undefined;
8592
+ last_name?: string | undefined;
8593
+ company_name?: string | undefined;
8594
+ }[] | undefined;
8595
+ }[] | undefined;
7795
8596
  }[]>;
7796
8597
  getPaymentMethods(params?: {
7797
8598
  location_id?: string | undefined;
@@ -7827,6 +8628,13 @@ export declare class API {
7827
8628
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
7828
8629
  currency?: string | undefined;
7829
8630
  date?: string | undefined;
8631
+ partner_id?: {
8632
+ id: string;
8633
+ source_ref: {
8634
+ id?: string | undefined;
8635
+ model?: string | undefined;
8636
+ };
8637
+ } | undefined;
7830
8638
  }[]>;
7831
8639
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
7832
8640
  id: string;
@@ -7839,6 +8647,128 @@ export declare class API {
7839
8647
  ledger_account_code?: string | undefined;
7840
8648
  posting_account_code?: string | undefined;
7841
8649
  }[]>;
8650
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
8651
+ id: string;
8652
+ source_ref: {
8653
+ id?: string | undefined;
8654
+ model?: string | undefined;
8655
+ };
8656
+ first_name?: string | undefined;
8657
+ last_name?: string | undefined;
8658
+ company_name?: string | undefined;
8659
+ phone?: string | undefined;
8660
+ email?: string | undefined;
8661
+ account_number?: string | undefined;
8662
+ created_on?: string | undefined;
8663
+ addresses?: {
8664
+ address_type?: string | undefined;
8665
+ name?: string | undefined;
8666
+ street?: string | undefined;
8667
+ number?: string | undefined;
8668
+ box?: string | undefined;
8669
+ city?: string | undefined;
8670
+ postal_code?: string | undefined;
8671
+ country?: string | undefined;
8672
+ }[] | undefined;
8673
+ }[]>;
8674
+ getInvoices(params?: {
8675
+ date_from: string;
8676
+ date_to: string;
8677
+ location_id?: string | undefined;
8678
+ } | undefined): import("../types/api").RequestData<{
8679
+ id: string;
8680
+ source_ref: {
8681
+ id?: string | undefined;
8682
+ model?: string | undefined;
8683
+ };
8684
+ invoice_number?: string | undefined;
8685
+ creation_date?: string | undefined;
8686
+ closing_date?: string | undefined;
8687
+ partners?: {
8688
+ id: string;
8689
+ source_ref: {
8690
+ id?: string | undefined;
8691
+ model?: string | undefined;
8692
+ };
8693
+ type: "owner" | "account";
8694
+ address?: {
8695
+ address_type?: string | undefined;
8696
+ name?: string | undefined;
8697
+ street?: string | undefined;
8698
+ number?: string | undefined;
8699
+ box?: string | undefined;
8700
+ city?: string | undefined;
8701
+ postal_code?: string | undefined;
8702
+ country?: string | undefined;
8703
+ } | undefined;
8704
+ first_name?: string | undefined;
8705
+ last_name?: string | undefined;
8706
+ company_name?: string | undefined;
8707
+ }[] | undefined;
8708
+ items: {
8709
+ id: string;
8710
+ source_ref: {
8711
+ id?: string | undefined;
8712
+ model?: string | undefined;
8713
+ };
8714
+ type?: "menu" | "product" | undefined;
8715
+ menu_id?: string | undefined;
8716
+ quantity: number;
8717
+ unit_price: number;
8718
+ total: number;
8719
+ tax_amount: number;
8720
+ tax_rate?: number | undefined;
8721
+ description?: string | undefined;
8722
+ discounts: {
8723
+ name?: string | undefined;
8724
+ total: number;
8725
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
8726
+ }[];
8727
+ product_id?: string | undefined;
8728
+ accounting_category_id?: string | undefined;
8729
+ }[];
8730
+ payments: {
8731
+ id?: string | undefined;
8732
+ source_ref: {
8733
+ id?: string | undefined;
8734
+ model?: string | undefined;
8735
+ };
8736
+ payment_method_id?: string | undefined;
8737
+ payment_method_name?: string | undefined;
8738
+ total: number;
8739
+ tip: number;
8740
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
8741
+ currency?: string | undefined;
8742
+ date?: string | undefined;
8743
+ partner_id?: {
8744
+ id: string;
8745
+ source_ref: {
8746
+ id?: string | undefined;
8747
+ model?: string | undefined;
8748
+ };
8749
+ } | undefined;
8750
+ }[];
8751
+ service_id?: string | undefined;
8752
+ reservation?: {
8753
+ id: string;
8754
+ source_ref: {
8755
+ id?: string | undefined;
8756
+ model?: string | undefined;
8757
+ };
8758
+ start_date?: string | undefined;
8759
+ end_date?: string | undefined;
8760
+ creation_date?: string | undefined;
8761
+ resource_id?: {
8762
+ id: string;
8763
+ source_ref: {
8764
+ id?: string | undefined;
8765
+ model?: string | undefined;
8766
+ };
8767
+ } | undefined;
8768
+ resource_name?: string | undefined;
8769
+ resource_identifier?: string | undefined;
8770
+ } | undefined;
8771
+ }[]>;
7842
8772
  }>;
7843
8773
  payment: import("../types/api").ApiFor<{
7844
8774
  getPayments(params: {
@@ -7890,8 +8820,8 @@ export declare class API {
7890
8820
  payment_id?: string | undefined;
7891
8821
  }[]>;
7892
8822
  getPayment(params: {
7893
- payment_id: string;
7894
8823
  consumer_id: string;
8824
+ payment_id: string;
7895
8825
  }): import("../types/api").RequestData<{
7896
8826
  id: string;
7897
8827
  source_ref: {
@@ -7934,6 +8864,7 @@ export declare class API {
7934
8864
  getClients(params?: {
7935
8865
  search?: string | undefined;
7936
8866
  folder_id?: string | undefined;
8867
+ updated_after?: string | undefined;
7937
8868
  } | undefined): import("../types/api").RequestData<{
7938
8869
  external_reference?: string | undefined;
7939
8870
  first_name?: string | undefined;
@@ -8004,8 +8935,8 @@ export declare class API {
8004
8935
  }[];
8005
8936
  account_number?: string | undefined;
8006
8937
  }, params?: {
8007
- force_merge?: string | undefined;
8008
8938
  folder_id?: string | undefined;
8939
+ force_merge?: string | undefined;
8009
8940
  } | undefined): import("../types/api").RequestData<{
8010
8941
  external_reference?: string | undefined;
8011
8942
  first_name?: string | undefined;
@@ -8153,6 +9084,7 @@ export declare class API {
8153
9084
  getSuppliers(params?: {
8154
9085
  search?: string | undefined;
8155
9086
  folder_id?: string | undefined;
9087
+ updated_after?: string | undefined;
8156
9088
  } | undefined): import("../types/api").RequestData<{
8157
9089
  external_reference?: string | undefined;
8158
9090
  first_name?: string | undefined;
@@ -8223,8 +9155,8 @@ export declare class API {
8223
9155
  }[];
8224
9156
  account_number?: string | undefined;
8225
9157
  }, params?: {
8226
- force_merge?: string | undefined;
8227
9158
  folder_id?: string | undefined;
9159
+ force_merge?: string | undefined;
8228
9160
  } | undefined): import("../types/api").RequestData<{
8229
9161
  external_reference?: string | undefined;
8230
9162
  first_name?: string | undefined;
@@ -8418,9 +9350,9 @@ export declare class API {
8418
9350
  analytic_account?: string | undefined;
8419
9351
  }[];
8420
9352
  }, params?: {
9353
+ folder_id?: string | undefined;
8421
9354
  force_financial_period?: string | undefined;
8422
9355
  regroup_lines?: "true" | "false" | undefined;
8423
- folder_id?: string | undefined;
8424
9356
  } | undefined): import("../types/api").RequestData<{
8425
9357
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8426
9358
  invoice_number?: string | undefined;
@@ -8521,9 +9453,9 @@ export declare class API {
8521
9453
  }[];
8522
9454
  }[];
8523
9455
  }, params?: {
9456
+ folder_id?: string | undefined;
8524
9457
  force_financial_period?: string | undefined;
8525
9458
  regroup_lines?: "true" | "false" | undefined;
8526
- folder_id?: string | undefined;
8527
9459
  } | undefined): import("../types/api").RequestData<{
8528
9460
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8529
9461
  invoice_number?: string | undefined;
@@ -8582,6 +9514,7 @@ export declare class API {
8582
9514
  journal_ids?: string | undefined;
8583
9515
  include_payments?: "true" | "false" | undefined;
8584
9516
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9517
+ updated_after?: string | undefined;
8585
9518
  } | undefined): import("../types/api").RequestData<{
8586
9519
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8587
9520
  invoice_number?: string | undefined;
@@ -8628,8 +9561,8 @@ export declare class API {
8628
9561
  }[];
8629
9562
  }[]>;
8630
9563
  getInvoice(invoiceId: string, params?: {
8631
- include_payments?: "true" | "false" | undefined;
8632
9564
  folder_id?: string | undefined;
9565
+ include_payments?: "true" | "false" | undefined;
8633
9566
  } | undefined): import("../types/api").RequestData<{
8634
9567
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8635
9568
  invoice_number?: string | undefined;
@@ -8676,8 +9609,8 @@ export declare class API {
8676
9609
  }[];
8677
9610
  }>;
8678
9611
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
8679
- include_payments?: "true" | "false" | undefined;
8680
9612
  folder_id?: string | undefined;
9613
+ include_payments?: "true" | "false" | undefined;
8681
9614
  } | undefined): import("../types/api").RequestData<{
8682
9615
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8683
9616
  invoice_number?: string | undefined;
@@ -8736,6 +9669,7 @@ export declare class API {
8736
9669
  journal_ids?: string | undefined;
8737
9670
  include_payments?: "true" | "false" | undefined;
8738
9671
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9672
+ updated_after?: string | undefined;
8739
9673
  } | undefined): import("../types/api").RequestData<{
8740
9674
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8741
9675
  invoice_number?: string | undefined;
@@ -8908,9 +9842,10 @@ export declare class API {
8908
9842
  analytic_plan: string;
8909
9843
  }[]>;
8910
9844
  getJournalEntries(params: {
8911
- date_from: string;
8912
- date_to: string;
9845
+ date_from?: string | undefined;
9846
+ date_to?: string | undefined;
8913
9847
  folder_id?: string | undefined;
9848
+ updated_after?: string | undefined;
8914
9849
  unposted_allowed: "true" | "false";
8915
9850
  journal_id: string;
8916
9851
  partner_id?: string | undefined;
@@ -8940,9 +9875,10 @@ export declare class API {
8940
9875
  }[];
8941
9876
  }[]>;
8942
9877
  getJournalEntriesWithMultiplePlans(params: {
8943
- date_from: string;
8944
- date_to: string;
9878
+ date_from?: string | undefined;
9879
+ date_to?: string | undefined;
8945
9880
  folder_id?: string | undefined;
9881
+ updated_after?: string | undefined;
8946
9882
  unposted_allowed: "true" | "false";
8947
9883
  journal_id: string;
8948
9884
  partner_id?: string | undefined;
@@ -8977,9 +9913,9 @@ export declare class API {
8977
9913
  }[];
8978
9914
  }[]>;
8979
9915
  getPaymentsByInvoiceId(invoice_id: string, params?: {
8980
- folder_id?: string | undefined;
8981
9916
  page?: number | undefined;
8982
9917
  size?: number | undefined;
9918
+ folder_id?: string | undefined;
8983
9919
  } | undefined): import("../types/api").RequestData<{
8984
9920
  id: string;
8985
9921
  name: string;
@@ -9103,8 +10039,8 @@ export declare class API {
9103
10039
  attachPDF(invoice_id: string, attachment: {
9104
10040
  base64_string: string;
9105
10041
  }, params?: {
9106
- overwrite_existing?: "true" | "false" | undefined;
9107
10042
  folder_id?: string | undefined;
10043
+ overwrite_existing?: "true" | "false" | undefined;
9108
10044
  } | undefined): import("../types/api").RequestData<{
9109
10045
  headers: {
9110
10046
  [name: string]: unknown;
@@ -9121,8 +10057,8 @@ export declare class API {
9121
10057
  base64_string: string;
9122
10058
  }[]>;
9123
10059
  getChartOfAccounts(params?: {
9124
- classes?: string | undefined;
9125
10060
  folder_id?: string | undefined;
10061
+ classes?: string | undefined;
9126
10062
  } | undefined): import("../types/api").RequestData<{
9127
10063
  number: string;
9128
10064
  name: string;
@@ -9178,8 +10114,18 @@ export declare class API {
9178
10114
  partner_id: string;
9179
10115
  account_number: string;
9180
10116
  reference?: string | undefined;
10117
+ matching_numbers: string[];
9181
10118
  payment_communication?: string | undefined;
9182
10119
  posted: boolean;
10120
+ original_document?: {
10121
+ id?: string | undefined;
10122
+ number?: string | undefined;
10123
+ journal_id?: string | undefined;
10124
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
10125
+ date?: string | undefined;
10126
+ due_date?: string | undefined;
10127
+ reference?: string | undefined;
10128
+ } | undefined;
9183
10129
  }[]>;
9184
10130
  createFinancialEntryOld(financial_entry: {
9185
10131
  date: string;
@@ -9197,8 +10143,8 @@ export declare class API {
9197
10143
  }[];
9198
10144
  pdf?: string | undefined;
9199
10145
  }, params?: {
9200
- financial_counterpart_account?: string | undefined;
9201
10146
  folder_id?: string | undefined;
10147
+ financial_counterpart_account?: string | undefined;
9202
10148
  } | undefined): import("../types/api").RequestData<{
9203
10149
  date: string;
9204
10150
  journal_id: string;
@@ -9231,8 +10177,8 @@ export declare class API {
9231
10177
  }[];
9232
10178
  pdf?: string | undefined;
9233
10179
  }, params?: {
9234
- financial_counterpart_account?: string | undefined;
9235
10180
  folder_id?: string | undefined;
10181
+ financial_counterpart_account?: string | undefined;
9236
10182
  } | undefined): import("../types/api").RequestData<{
9237
10183
  date: string;
9238
10184
  journal_id: string;
@@ -9332,8 +10278,8 @@ export declare class API {
9332
10278
  start_date?: string | undefined;
9333
10279
  end_date?: string | undefined;
9334
10280
  }, params?: {
9335
- force_currency_exchange?: "true" | "false" | undefined;
9336
10281
  folder_id?: string | undefined;
10282
+ force_currency_exchange?: "true" | "false" | undefined;
9337
10283
  } | undefined): import("../types/api").RequestData<{
9338
10284
  reference?: string | undefined;
9339
10285
  due_date?: string | undefined;
@@ -9373,6 +10319,18 @@ export declare class API {
9373
10319
  matching_number: string;
9374
10320
  balance: number;
9375
10321
  }>;
10322
+ matchEntriesMultiple(body: {
10323
+ matchings: {
10324
+ entries: string[];
10325
+ partner_id: string;
10326
+ }[];
10327
+ }, params?: {
10328
+ folder_id?: string | undefined;
10329
+ } | undefined): import("../types/api").RequestData<{
10330
+ matching_number?: string | undefined;
10331
+ processed: boolean;
10332
+ error_msg?: Record<string, never> | undefined;
10333
+ }[]>;
9376
10334
  getFolders(): import("../types/api").RequestData<{
9377
10335
  id: string;
9378
10336
  name: string;
@@ -9380,14 +10338,23 @@ export declare class API {
9380
10338
  vat?: string | undefined;
9381
10339
  company_number?: string | undefined;
9382
10340
  }[]>;
10341
+ getBookyears(params?: {
10342
+ folder_id?: string | undefined;
10343
+ } | undefined): import("../types/api").RequestData<{
10344
+ name: string;
10345
+ start: string;
10346
+ end: string;
10347
+ closed: boolean;
10348
+ }[]>;
9383
10349
  }>;
9384
10350
  invoicing: import("../types/api").ApiFor<{
9385
10351
  getInvoices(params?: {
9386
10352
  date_from?: string | undefined;
9387
10353
  date_to?: string | undefined;
9388
10354
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9389
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
9390
10355
  updated_after?: string | undefined;
10356
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
10357
+ include_invoice_lines?: "true" | "false" | undefined;
9391
10358
  } | undefined): import("../types/api").RequestData<{
9392
10359
  id: string;
9393
10360
  source_ref: {
@@ -9395,7 +10362,7 @@ export declare class API {
9395
10362
  model?: string | undefined;
9396
10363
  };
9397
10364
  currency: string;
9398
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10365
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9399
10366
  status: "draft" | "posted" | "cancelled" | "paid";
9400
10367
  invoice_date: string;
9401
10368
  tax_amount: number;
@@ -9412,6 +10379,7 @@ export declare class API {
9412
10379
  tax_rate?: number | undefined;
9413
10380
  account_number?: string | undefined;
9414
10381
  tax_id?: string | undefined;
10382
+ tax_exemption_reason?: string | undefined;
9415
10383
  unit_of_measure?: string | undefined;
9416
10384
  product_id?: string | undefined;
9417
10385
  product_code?: string | undefined;
@@ -9428,9 +10396,29 @@ export declare class API {
9428
10396
  model?: string | undefined;
9429
10397
  name?: string | undefined;
9430
10398
  } | undefined;
10399
+ italian_specificities?: {
10400
+ stamp_duty_amount?: number | undefined;
10401
+ withholding_tax?: {
10402
+ rate: number;
10403
+ amount: number;
10404
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
10405
+ 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;
10406
+ } | undefined;
10407
+ welfare_fund?: {
10408
+ rate: number;
10409
+ amount: number;
10410
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
10411
+ } | undefined;
10412
+ payment_reporting?: {
10413
+ 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;
10414
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
10415
+ } | undefined;
10416
+ } | undefined;
9431
10417
  last_updated_on?: string | undefined;
9432
10418
  outstanding_amount?: number | undefined;
9433
10419
  accounting_date?: string | undefined;
10420
+ payment_method_id?: string | undefined;
10421
+ currency_exchange_rate: number;
9434
10422
  }[]>;
9435
10423
  getInvoiceById(invoiceId: string, params?: {
9436
10424
  include_pdf?: "true" | "false" | undefined;
@@ -9441,7 +10429,7 @@ export declare class API {
9441
10429
  model?: string | undefined;
9442
10430
  };
9443
10431
  currency: string;
9444
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10432
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9445
10433
  status: "draft" | "posted" | "cancelled" | "paid";
9446
10434
  invoice_date: string;
9447
10435
  tax_amount: number;
@@ -9458,6 +10446,7 @@ export declare class API {
9458
10446
  tax_rate?: number | undefined;
9459
10447
  account_number?: string | undefined;
9460
10448
  tax_id?: string | undefined;
10449
+ tax_exemption_reason?: string | undefined;
9461
10450
  unit_of_measure?: string | undefined;
9462
10451
  product_id?: string | undefined;
9463
10452
  product_code?: string | undefined;
@@ -9474,13 +10463,33 @@ export declare class API {
9474
10463
  model?: string | undefined;
9475
10464
  name?: string | undefined;
9476
10465
  } | undefined;
10466
+ italian_specificities?: {
10467
+ stamp_duty_amount?: number | undefined;
10468
+ withholding_tax?: {
10469
+ rate: number;
10470
+ amount: number;
10471
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
10472
+ 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;
10473
+ } | undefined;
10474
+ welfare_fund?: {
10475
+ rate: number;
10476
+ amount: number;
10477
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
10478
+ } | undefined;
10479
+ payment_reporting?: {
10480
+ 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;
10481
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
10482
+ } | undefined;
10483
+ } | undefined;
9477
10484
  last_updated_on?: string | undefined;
9478
10485
  outstanding_amount?: number | undefined;
9479
10486
  accounting_date?: string | undefined;
10487
+ payment_method_id?: string | undefined;
10488
+ currency_exchange_rate: number;
9480
10489
  }>;
9481
10490
  createInvoice(invoice: {
9482
10491
  currency: string;
9483
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10492
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9484
10493
  status: "draft" | "posted" | "cancelled" | "paid";
9485
10494
  invoice_date: string;
9486
10495
  tax_amount: number;
@@ -9497,6 +10506,7 @@ export declare class API {
9497
10506
  tax_rate?: number | undefined;
9498
10507
  account_number?: string | undefined;
9499
10508
  tax_id?: string | undefined;
10509
+ tax_exemption_reason?: string | undefined;
9500
10510
  unit_of_measure?: string | undefined;
9501
10511
  product_id?: string | undefined;
9502
10512
  product_code?: string | undefined;
@@ -9513,6 +10523,24 @@ export declare class API {
9513
10523
  model?: string | undefined;
9514
10524
  name?: string | undefined;
9515
10525
  } | undefined;
10526
+ italian_specificities?: {
10527
+ stamp_duty_amount?: number | undefined;
10528
+ withholding_tax?: {
10529
+ rate: number;
10530
+ amount: number;
10531
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
10532
+ 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;
10533
+ } | undefined;
10534
+ welfare_fund?: {
10535
+ rate: number;
10536
+ amount: number;
10537
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
10538
+ } | undefined;
10539
+ payment_reporting?: {
10540
+ 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;
10541
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
10542
+ } | undefined;
10543
+ } | undefined;
9516
10544
  }): import("../types/api").RequestData<{
9517
10545
  id: string;
9518
10546
  source_ref: {
@@ -9520,7 +10548,7 @@ export declare class API {
9520
10548
  model?: string | undefined;
9521
10549
  };
9522
10550
  currency: string;
9523
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10551
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9524
10552
  status: "draft" | "posted" | "cancelled" | "paid";
9525
10553
  invoice_date: string;
9526
10554
  tax_amount: number;
@@ -9537,6 +10565,7 @@ export declare class API {
9537
10565
  tax_rate?: number | undefined;
9538
10566
  account_number?: string | undefined;
9539
10567
  tax_id?: string | undefined;
10568
+ tax_exemption_reason?: string | undefined;
9540
10569
  unit_of_measure?: string | undefined;
9541
10570
  product_id?: string | undefined;
9542
10571
  product_code?: string | undefined;
@@ -9553,9 +10582,29 @@ export declare class API {
9553
10582
  model?: string | undefined;
9554
10583
  name?: string | undefined;
9555
10584
  } | undefined;
10585
+ italian_specificities?: {
10586
+ stamp_duty_amount?: number | undefined;
10587
+ withholding_tax?: {
10588
+ rate: number;
10589
+ amount: number;
10590
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
10591
+ 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;
10592
+ } | undefined;
10593
+ welfare_fund?: {
10594
+ rate: number;
10595
+ amount: number;
10596
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
10597
+ } | undefined;
10598
+ payment_reporting?: {
10599
+ 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;
10600
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
10601
+ } | undefined;
10602
+ } | undefined;
9556
10603
  last_updated_on?: string | undefined;
9557
10604
  outstanding_amount?: number | undefined;
9558
10605
  accounting_date?: string | undefined;
10606
+ payment_method_id?: string | undefined;
10607
+ currency_exchange_rate: number;
9559
10608
  }>;
9560
10609
  getProducts(): import("../types/api").RequestData<{
9561
10610
  id: string;
@@ -9852,6 +10901,31 @@ export declare class API {
9852
10901
  }[];
9853
10902
  external_reference?: string | undefined;
9854
10903
  }>;
10904
+ getPayments(): import("../types/api").RequestData<{
10905
+ id: string;
10906
+ source_ref: {
10907
+ id?: string | undefined;
10908
+ model?: string | undefined;
10909
+ };
10910
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
10911
+ description: string;
10912
+ amount: number;
10913
+ currency: string;
10914
+ payment_date: string;
10915
+ partner_id: string;
10916
+ payment_method_id?: string | undefined;
10917
+ payment_method_name?: string | undefined;
10918
+ invoice_id?: string | undefined;
10919
+ invoice_number?: string | undefined;
10920
+ }[]>;
10921
+ getPaymentMethods(): import("../types/api").RequestData<{
10922
+ id: string;
10923
+ source_ref: {
10924
+ id?: string | undefined;
10925
+ model?: string | undefined;
10926
+ };
10927
+ name: string;
10928
+ }[]>;
9855
10929
  }>;
9856
10930
  ecommerce: import("../types/api").ApiFor<{
9857
10931
  getCustomers(): import("../types/api").RequestData<{
@@ -10991,6 +12065,52 @@ export declare class API {
10991
12065
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
10992
12066
  setConnectionId: (connectionId: string) => Promise<void>;
10993
12067
  setIntegrationId: (integrationId: string) => Promise<void>;
12068
+ updateConsumer: (body: {
12069
+ name?: string | undefined;
12070
+ email?: string | undefined;
12071
+ internal_reference?: string | undefined;
12072
+ redirect_url?: string | undefined;
12073
+ }) => Promise<{
12074
+ consumerid: string;
12075
+ name: string;
12076
+ email?: string | undefined;
12077
+ internal_reference?: string | undefined;
12078
+ redirect_url?: string | undefined;
12079
+ }>;
12080
+ updateFlowConfig: (syncId: string, flowId: string, body: {
12081
+ triggerid: string;
12082
+ data: Record<string, never>;
12083
+ }) => Promise<{
12084
+ name: string;
12085
+ description?: string | undefined;
12086
+ id: string;
12087
+ config?: {
12088
+ definitionFields?: Record<string, never>[] | undefined;
12089
+ doorkeyFields?: Record<string, never>[] | undefined;
12090
+ customFields?: Record<string, never>[] | undefined;
12091
+ datastores: {
12092
+ id?: string | undefined;
12093
+ name: string;
12094
+ status: "active" | "inactive";
12095
+ definition: {
12096
+ columns: {
12097
+ name: string;
12098
+ title: string;
12099
+ type: string;
12100
+ optional: boolean;
12101
+ }[];
12102
+ search_column?: string | undefined;
12103
+ };
12104
+ }[];
12105
+ } | undefined;
12106
+ values: Record<string, never>;
12107
+ enabled_on?: string | undefined;
12108
+ trigger: {
12109
+ id: string;
12110
+ type: "event" | "timer";
12111
+ cronschedule?: string | undefined;
12112
+ };
12113
+ }>;
10994
12114
  }>;
10995
12115
  getConsumersByName: (consumerName: string) => Promise<{
10996
12116
  consumerId: string;
@@ -11116,6 +12236,7 @@ export declare class API {
11116
12236
  discounts: {
11117
12237
  name?: string | undefined;
11118
12238
  total: number;
12239
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11119
12240
  }[];
11120
12241
  product_id?: string | undefined;
11121
12242
  accounting_category_id?: string | undefined;
@@ -11193,6 +12314,7 @@ export declare class API {
11193
12314
  discounts: {
11194
12315
  name?: string | undefined;
11195
12316
  total: number;
12317
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11196
12318
  }[];
11197
12319
  product_id?: string | undefined;
11198
12320
  accounting_category_id?: string | undefined;
@@ -11367,6 +12489,7 @@ export declare class API {
11367
12489
  discounts: {
11368
12490
  name?: string | undefined;
11369
12491
  total: number;
12492
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11370
12493
  }[];
11371
12494
  product_id?: string | undefined;
11372
12495
  accounting_category_id?: string | undefined;
@@ -11425,12 +12548,197 @@ export declare class API {
11425
12548
  loyalty?: number | undefined;
11426
12549
  customer_id?: string | undefined;
11427
12550
  location_id?: string | undefined;
11428
- taxes?: {
11429
- tax_rate: number;
11430
- tax_amount: number;
11431
- total: number;
12551
+ taxes?: {
12552
+ tax_rate: number;
12553
+ tax_amount: number;
12554
+ total: number;
12555
+ }[] | undefined;
12556
+ guests?: number | undefined;
12557
+ items: {
12558
+ id: string;
12559
+ source_ref: {
12560
+ id?: string | undefined;
12561
+ model?: string | undefined;
12562
+ };
12563
+ type?: "menu" | "product" | undefined;
12564
+ menu_id?: string | undefined;
12565
+ quantity: number;
12566
+ unit_price: number;
12567
+ total: number;
12568
+ tax_amount: number;
12569
+ tax_rate?: number | undefined;
12570
+ description?: string | undefined;
12571
+ discounts: {
12572
+ name?: string | undefined;
12573
+ total: number;
12574
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
12575
+ }[];
12576
+ product_id?: string | undefined;
12577
+ accounting_category_id?: string | undefined;
12578
+ }[];
12579
+ service_id?: string | undefined;
12580
+ reservation?: {
12581
+ id: string;
12582
+ source_ref: {
12583
+ id?: string | undefined;
12584
+ model?: string | undefined;
12585
+ };
12586
+ start_date?: string | undefined;
12587
+ end_date?: string | undefined;
12588
+ creation_date?: string | undefined;
12589
+ resource_id?: {
12590
+ id: string;
12591
+ source_ref: {
12592
+ id?: string | undefined;
12593
+ model?: string | undefined;
12594
+ };
12595
+ } | undefined;
12596
+ resource_name?: string | undefined;
12597
+ resource_identifier?: string | undefined;
12598
+ } | undefined;
12599
+ bills?: {
12600
+ id: string;
12601
+ source_ref: {
12602
+ id?: string | undefined;
12603
+ model?: string | undefined;
12604
+ };
12605
+ invoice_number?: string | undefined;
12606
+ creation_date?: string | undefined;
12607
+ closing_date?: string | undefined;
12608
+ partners?: {
12609
+ id: string;
12610
+ source_ref: {
12611
+ id?: string | undefined;
12612
+ model?: string | undefined;
12613
+ };
12614
+ type: "owner" | "account";
12615
+ address?: {
12616
+ address_type?: string | undefined;
12617
+ name?: string | undefined;
12618
+ street?: string | undefined;
12619
+ number?: string | undefined;
12620
+ box?: string | undefined;
12621
+ city?: string | undefined;
12622
+ postal_code?: string | undefined;
12623
+ country?: string | undefined;
12624
+ } | undefined;
12625
+ first_name?: string | undefined;
12626
+ last_name?: string | undefined;
12627
+ company_name?: string | undefined;
12628
+ }[] | undefined;
12629
+ }[] | undefined;
12630
+ }[]>;
12631
+ getPaymentMethods(params?: {
12632
+ location_id?: string | undefined;
12633
+ } | undefined): import("../types/api").RequestData<{
12634
+ id: string;
12635
+ source_ref: {
12636
+ id?: string | undefined;
12637
+ model?: string | undefined;
12638
+ };
12639
+ name: string;
12640
+ extra?: string | undefined;
12641
+ ledger_account_code?: string | undefined;
12642
+ }[]>;
12643
+ getClosure(date: string, params?: {
12644
+ location_id?: string | undefined;
12645
+ } | undefined): import("../types/api").RequestData<{
12646
+ date: string;
12647
+ status: "open" | "closed";
12648
+ }>;
12649
+ getPayments(params: {
12650
+ date_from: string;
12651
+ date_to: string;
12652
+ }): import("../types/api").RequestData<{
12653
+ id?: string | undefined;
12654
+ source_ref: {
12655
+ id?: string | undefined;
12656
+ model?: string | undefined;
12657
+ };
12658
+ payment_method_id?: string | undefined;
12659
+ payment_method_name?: string | undefined;
12660
+ total: number;
12661
+ tip: number;
12662
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
12663
+ currency?: string | undefined;
12664
+ date?: string | undefined;
12665
+ partner_id?: {
12666
+ id: string;
12667
+ source_ref: {
12668
+ id?: string | undefined;
12669
+ model?: string | undefined;
12670
+ };
12671
+ } | undefined;
12672
+ }[]>;
12673
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
12674
+ id: string;
12675
+ source_ref: {
12676
+ id?: string | undefined;
12677
+ model?: string | undefined;
12678
+ };
12679
+ name: string;
12680
+ code?: string | undefined;
12681
+ ledger_account_code?: string | undefined;
12682
+ posting_account_code?: string | undefined;
12683
+ }[]>;
12684
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
12685
+ id: string;
12686
+ source_ref: {
12687
+ id?: string | undefined;
12688
+ model?: string | undefined;
12689
+ };
12690
+ first_name?: string | undefined;
12691
+ last_name?: string | undefined;
12692
+ company_name?: string | undefined;
12693
+ phone?: string | undefined;
12694
+ email?: string | undefined;
12695
+ account_number?: string | undefined;
12696
+ created_on?: string | undefined;
12697
+ addresses?: {
12698
+ address_type?: string | undefined;
12699
+ name?: string | undefined;
12700
+ street?: string | undefined;
12701
+ number?: string | undefined;
12702
+ box?: string | undefined;
12703
+ city?: string | undefined;
12704
+ postal_code?: string | undefined;
12705
+ country?: string | undefined;
12706
+ }[] | undefined;
12707
+ }[]>;
12708
+ getInvoices(params?: {
12709
+ date_from: string;
12710
+ date_to: string;
12711
+ location_id?: string | undefined;
12712
+ } | undefined): import("../types/api").RequestData<{
12713
+ id: string;
12714
+ source_ref: {
12715
+ id?: string | undefined;
12716
+ model?: string | undefined;
12717
+ };
12718
+ invoice_number?: string | undefined;
12719
+ creation_date?: string | undefined;
12720
+ closing_date?: string | undefined;
12721
+ partners?: {
12722
+ id: string;
12723
+ source_ref: {
12724
+ id?: string | undefined;
12725
+ model?: string | undefined;
12726
+ };
12727
+ type: "owner" | "account";
12728
+ address?: {
12729
+ address_type?: string | undefined;
12730
+ name?: string | undefined;
12731
+ street?: string | undefined;
12732
+ number?: string | undefined;
12733
+ box?: string | undefined;
12734
+ city?: string | undefined;
12735
+ postal_code?: string | undefined;
12736
+ country?: string | undefined;
12737
+ } | undefined;
12738
+ first_name?: string | undefined;
12739
+ last_name?: string | undefined;
12740
+ company_name?: string | undefined;
11432
12741
  }[] | undefined;
11433
- guests?: number | undefined;
11434
12742
  items: {
11435
12743
  id: string;
11436
12744
  source_ref: {
@@ -11448,57 +12756,52 @@ export declare class API {
11448
12756
  discounts: {
11449
12757
  name?: string | undefined;
11450
12758
  total: number;
12759
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11451
12760
  }[];
11452
12761
  product_id?: string | undefined;
11453
12762
  accounting_category_id?: string | undefined;
11454
12763
  }[];
11455
- service_id?: string | undefined;
11456
- }[]>;
11457
- getPaymentMethods(params?: {
11458
- location_id?: string | undefined;
11459
- } | undefined): import("../types/api").RequestData<{
11460
- id: string;
11461
- source_ref: {
11462
- id?: string | undefined;
11463
- model?: string | undefined;
11464
- };
11465
- name: string;
11466
- extra?: string | undefined;
11467
- ledger_account_code?: string | undefined;
11468
- }[]>;
11469
- getClosure(date: string, params?: {
11470
- location_id?: string | undefined;
11471
- } | undefined): import("../types/api").RequestData<{
11472
- date: string;
11473
- status: "open" | "closed";
11474
- }>;
11475
- getPayments(params: {
11476
- date_from: string;
11477
- date_to: string;
11478
- }): import("../types/api").RequestData<{
11479
- id?: string | undefined;
11480
- source_ref: {
11481
- id?: string | undefined;
11482
- model?: string | undefined;
11483
- };
11484
- payment_method_id?: string | undefined;
11485
- payment_method_name?: string | undefined;
11486
- total: number;
11487
- tip: number;
11488
- status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
11489
- currency?: string | undefined;
11490
- date?: string | undefined;
11491
- }[]>;
11492
- getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
11493
- id: string;
11494
- source_ref: {
12764
+ payments: {
11495
12765
  id?: string | undefined;
11496
- model?: string | undefined;
11497
- };
11498
- name: string;
11499
- code?: string | undefined;
11500
- ledger_account_code?: string | undefined;
11501
- posting_account_code?: string | undefined;
12766
+ source_ref: {
12767
+ id?: string | undefined;
12768
+ model?: string | undefined;
12769
+ };
12770
+ payment_method_id?: string | undefined;
12771
+ payment_method_name?: string | undefined;
12772
+ total: number;
12773
+ tip: number;
12774
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
12775
+ currency?: string | undefined;
12776
+ date?: string | undefined;
12777
+ partner_id?: {
12778
+ id: string;
12779
+ source_ref: {
12780
+ id?: string | undefined;
12781
+ model?: string | undefined;
12782
+ };
12783
+ } | undefined;
12784
+ }[];
12785
+ service_id?: string | undefined;
12786
+ reservation?: {
12787
+ id: string;
12788
+ source_ref: {
12789
+ id?: string | undefined;
12790
+ model?: string | undefined;
12791
+ };
12792
+ start_date?: string | undefined;
12793
+ end_date?: string | undefined;
12794
+ creation_date?: string | undefined;
12795
+ resource_id?: {
12796
+ id: string;
12797
+ source_ref: {
12798
+ id?: string | undefined;
12799
+ model?: string | undefined;
12800
+ };
12801
+ } | undefined;
12802
+ resource_name?: string | undefined;
12803
+ resource_identifier?: string | undefined;
12804
+ } | undefined;
11502
12805
  }[]>;
11503
12806
  }>;
11504
12807
  payment: import("../types/api").ApiFor<{
@@ -11551,8 +12854,8 @@ export declare class API {
11551
12854
  payment_id?: string | undefined;
11552
12855
  }[]>;
11553
12856
  getPayment(params: {
11554
- payment_id: string;
11555
12857
  consumer_id: string;
12858
+ payment_id: string;
11556
12859
  }): import("../types/api").RequestData<{
11557
12860
  id: string;
11558
12861
  source_ref: {
@@ -11595,6 +12898,7 @@ export declare class API {
11595
12898
  getClients(params?: {
11596
12899
  search?: string | undefined;
11597
12900
  folder_id?: string | undefined;
12901
+ updated_after?: string | undefined;
11598
12902
  } | undefined): import("../types/api").RequestData<{
11599
12903
  external_reference?: string | undefined;
11600
12904
  first_name?: string | undefined;
@@ -11665,8 +12969,8 @@ export declare class API {
11665
12969
  }[];
11666
12970
  account_number?: string | undefined;
11667
12971
  }, params?: {
11668
- force_merge?: string | undefined;
11669
12972
  folder_id?: string | undefined;
12973
+ force_merge?: string | undefined;
11670
12974
  } | undefined): import("../types/api").RequestData<{
11671
12975
  external_reference?: string | undefined;
11672
12976
  first_name?: string | undefined;
@@ -11814,6 +13118,7 @@ export declare class API {
11814
13118
  getSuppliers(params?: {
11815
13119
  search?: string | undefined;
11816
13120
  folder_id?: string | undefined;
13121
+ updated_after?: string | undefined;
11817
13122
  } | undefined): import("../types/api").RequestData<{
11818
13123
  external_reference?: string | undefined;
11819
13124
  first_name?: string | undefined;
@@ -11884,8 +13189,8 @@ export declare class API {
11884
13189
  }[];
11885
13190
  account_number?: string | undefined;
11886
13191
  }, params?: {
11887
- force_merge?: string | undefined;
11888
13192
  folder_id?: string | undefined;
13193
+ force_merge?: string | undefined;
11889
13194
  } | undefined): import("../types/api").RequestData<{
11890
13195
  external_reference?: string | undefined;
11891
13196
  first_name?: string | undefined;
@@ -12079,9 +13384,9 @@ export declare class API {
12079
13384
  analytic_account?: string | undefined;
12080
13385
  }[];
12081
13386
  }, params?: {
13387
+ folder_id?: string | undefined;
12082
13388
  force_financial_period?: string | undefined;
12083
13389
  regroup_lines?: "true" | "false" | undefined;
12084
- folder_id?: string | undefined;
12085
13390
  } | undefined): import("../types/api").RequestData<{
12086
13391
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12087
13392
  invoice_number?: string | undefined;
@@ -12182,9 +13487,9 @@ export declare class API {
12182
13487
  }[];
12183
13488
  }[];
12184
13489
  }, params?: {
13490
+ folder_id?: string | undefined;
12185
13491
  force_financial_period?: string | undefined;
12186
13492
  regroup_lines?: "true" | "false" | undefined;
12187
- folder_id?: string | undefined;
12188
13493
  } | undefined): import("../types/api").RequestData<{
12189
13494
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12190
13495
  invoice_number?: string | undefined;
@@ -12243,6 +13548,7 @@ export declare class API {
12243
13548
  journal_ids?: string | undefined;
12244
13549
  include_payments?: "true" | "false" | undefined;
12245
13550
  payment_status?: "all" | "paid" | "unpaid" | undefined;
13551
+ updated_after?: string | undefined;
12246
13552
  } | undefined): import("../types/api").RequestData<{
12247
13553
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12248
13554
  invoice_number?: string | undefined;
@@ -12289,8 +13595,8 @@ export declare class API {
12289
13595
  }[];
12290
13596
  }[]>;
12291
13597
  getInvoice(invoiceId: string, params?: {
12292
- include_payments?: "true" | "false" | undefined;
12293
13598
  folder_id?: string | undefined;
13599
+ include_payments?: "true" | "false" | undefined;
12294
13600
  } | undefined): import("../types/api").RequestData<{
12295
13601
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12296
13602
  invoice_number?: string | undefined;
@@ -12337,8 +13643,8 @@ export declare class API {
12337
13643
  }[];
12338
13644
  }>;
12339
13645
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
12340
- include_payments?: "true" | "false" | undefined;
12341
13646
  folder_id?: string | undefined;
13647
+ include_payments?: "true" | "false" | undefined;
12342
13648
  } | undefined): import("../types/api").RequestData<{
12343
13649
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12344
13650
  invoice_number?: string | undefined;
@@ -12397,6 +13703,7 @@ export declare class API {
12397
13703
  journal_ids?: string | undefined;
12398
13704
  include_payments?: "true" | "false" | undefined;
12399
13705
  payment_status?: "all" | "paid" | "unpaid" | undefined;
13706
+ updated_after?: string | undefined;
12400
13707
  } | undefined): import("../types/api").RequestData<{
12401
13708
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12402
13709
  invoice_number?: string | undefined;
@@ -12569,9 +13876,10 @@ export declare class API {
12569
13876
  analytic_plan: string;
12570
13877
  }[]>;
12571
13878
  getJournalEntries(params: {
12572
- date_from: string;
12573
- date_to: string;
13879
+ date_from?: string | undefined;
13880
+ date_to?: string | undefined;
12574
13881
  folder_id?: string | undefined;
13882
+ updated_after?: string | undefined;
12575
13883
  unposted_allowed: "true" | "false";
12576
13884
  journal_id: string;
12577
13885
  partner_id?: string | undefined;
@@ -12601,9 +13909,10 @@ export declare class API {
12601
13909
  }[];
12602
13910
  }[]>;
12603
13911
  getJournalEntriesWithMultiplePlans(params: {
12604
- date_from: string;
12605
- date_to: string;
13912
+ date_from?: string | undefined;
13913
+ date_to?: string | undefined;
12606
13914
  folder_id?: string | undefined;
13915
+ updated_after?: string | undefined;
12607
13916
  unposted_allowed: "true" | "false";
12608
13917
  journal_id: string;
12609
13918
  partner_id?: string | undefined;
@@ -12638,9 +13947,9 @@ export declare class API {
12638
13947
  }[];
12639
13948
  }[]>;
12640
13949
  getPaymentsByInvoiceId(invoice_id: string, params?: {
12641
- folder_id?: string | undefined;
12642
13950
  page?: number | undefined;
12643
13951
  size?: number | undefined;
13952
+ folder_id?: string | undefined;
12644
13953
  } | undefined): import("../types/api").RequestData<{
12645
13954
  id: string;
12646
13955
  name: string;
@@ -12764,8 +14073,8 @@ export declare class API {
12764
14073
  attachPDF(invoice_id: string, attachment: {
12765
14074
  base64_string: string;
12766
14075
  }, params?: {
12767
- overwrite_existing?: "true" | "false" | undefined;
12768
14076
  folder_id?: string | undefined;
14077
+ overwrite_existing?: "true" | "false" | undefined;
12769
14078
  } | undefined): import("../types/api").RequestData<{
12770
14079
  headers: {
12771
14080
  [name: string]: unknown;
@@ -12782,8 +14091,8 @@ export declare class API {
12782
14091
  base64_string: string;
12783
14092
  }[]>;
12784
14093
  getChartOfAccounts(params?: {
12785
- classes?: string | undefined;
12786
14094
  folder_id?: string | undefined;
14095
+ classes?: string | undefined;
12787
14096
  } | undefined): import("../types/api").RequestData<{
12788
14097
  number: string;
12789
14098
  name: string;
@@ -12839,8 +14148,18 @@ export declare class API {
12839
14148
  partner_id: string;
12840
14149
  account_number: string;
12841
14150
  reference?: string | undefined;
14151
+ matching_numbers: string[];
12842
14152
  payment_communication?: string | undefined;
12843
14153
  posted: boolean;
14154
+ original_document?: {
14155
+ id?: string | undefined;
14156
+ number?: string | undefined;
14157
+ journal_id?: string | undefined;
14158
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
14159
+ date?: string | undefined;
14160
+ due_date?: string | undefined;
14161
+ reference?: string | undefined;
14162
+ } | undefined;
12844
14163
  }[]>;
12845
14164
  createFinancialEntryOld(financial_entry: {
12846
14165
  date: string;
@@ -12858,8 +14177,8 @@ export declare class API {
12858
14177
  }[];
12859
14178
  pdf?: string | undefined;
12860
14179
  }, params?: {
12861
- financial_counterpart_account?: string | undefined;
12862
14180
  folder_id?: string | undefined;
14181
+ financial_counterpart_account?: string | undefined;
12863
14182
  } | undefined): import("../types/api").RequestData<{
12864
14183
  date: string;
12865
14184
  journal_id: string;
@@ -12892,8 +14211,8 @@ export declare class API {
12892
14211
  }[];
12893
14212
  pdf?: string | undefined;
12894
14213
  }, params?: {
12895
- financial_counterpart_account?: string | undefined;
12896
14214
  folder_id?: string | undefined;
14215
+ financial_counterpart_account?: string | undefined;
12897
14216
  } | undefined): import("../types/api").RequestData<{
12898
14217
  date: string;
12899
14218
  journal_id: string;
@@ -12993,8 +14312,8 @@ export declare class API {
12993
14312
  start_date?: string | undefined;
12994
14313
  end_date?: string | undefined;
12995
14314
  }, params?: {
12996
- force_currency_exchange?: "true" | "false" | undefined;
12997
14315
  folder_id?: string | undefined;
14316
+ force_currency_exchange?: "true" | "false" | undefined;
12998
14317
  } | undefined): import("../types/api").RequestData<{
12999
14318
  reference?: string | undefined;
13000
14319
  due_date?: string | undefined;
@@ -13034,6 +14353,18 @@ export declare class API {
13034
14353
  matching_number: string;
13035
14354
  balance: number;
13036
14355
  }>;
14356
+ matchEntriesMultiple(body: {
14357
+ matchings: {
14358
+ entries: string[];
14359
+ partner_id: string;
14360
+ }[];
14361
+ }, params?: {
14362
+ folder_id?: string | undefined;
14363
+ } | undefined): import("../types/api").RequestData<{
14364
+ matching_number?: string | undefined;
14365
+ processed: boolean;
14366
+ error_msg?: Record<string, never> | undefined;
14367
+ }[]>;
13037
14368
  getFolders(): import("../types/api").RequestData<{
13038
14369
  id: string;
13039
14370
  name: string;
@@ -13041,14 +14372,23 @@ export declare class API {
13041
14372
  vat?: string | undefined;
13042
14373
  company_number?: string | undefined;
13043
14374
  }[]>;
14375
+ getBookyears(params?: {
14376
+ folder_id?: string | undefined;
14377
+ } | undefined): import("../types/api").RequestData<{
14378
+ name: string;
14379
+ start: string;
14380
+ end: string;
14381
+ closed: boolean;
14382
+ }[]>;
13044
14383
  }>;
13045
14384
  invoicing: import("../types/api").ApiFor<{
13046
14385
  getInvoices(params?: {
13047
14386
  date_from?: string | undefined;
13048
14387
  date_to?: string | undefined;
13049
14388
  payment_status?: "all" | "paid" | "unpaid" | undefined;
13050
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
13051
14389
  updated_after?: string | undefined;
14390
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
14391
+ include_invoice_lines?: "true" | "false" | undefined;
13052
14392
  } | undefined): import("../types/api").RequestData<{
13053
14393
  id: string;
13054
14394
  source_ref: {
@@ -13056,7 +14396,7 @@ export declare class API {
13056
14396
  model?: string | undefined;
13057
14397
  };
13058
14398
  currency: string;
13059
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14399
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13060
14400
  status: "draft" | "posted" | "cancelled" | "paid";
13061
14401
  invoice_date: string;
13062
14402
  tax_amount: number;
@@ -13073,6 +14413,7 @@ export declare class API {
13073
14413
  tax_rate?: number | undefined;
13074
14414
  account_number?: string | undefined;
13075
14415
  tax_id?: string | undefined;
14416
+ tax_exemption_reason?: string | undefined;
13076
14417
  unit_of_measure?: string | undefined;
13077
14418
  product_id?: string | undefined;
13078
14419
  product_code?: string | undefined;
@@ -13089,9 +14430,29 @@ export declare class API {
13089
14430
  model?: string | undefined;
13090
14431
  name?: string | undefined;
13091
14432
  } | undefined;
14433
+ italian_specificities?: {
14434
+ stamp_duty_amount?: number | undefined;
14435
+ withholding_tax?: {
14436
+ rate: number;
14437
+ amount: number;
14438
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
14439
+ 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;
14440
+ } | undefined;
14441
+ welfare_fund?: {
14442
+ rate: number;
14443
+ amount: number;
14444
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
14445
+ } | undefined;
14446
+ payment_reporting?: {
14447
+ 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;
14448
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
14449
+ } | undefined;
14450
+ } | undefined;
13092
14451
  last_updated_on?: string | undefined;
13093
14452
  outstanding_amount?: number | undefined;
13094
14453
  accounting_date?: string | undefined;
14454
+ payment_method_id?: string | undefined;
14455
+ currency_exchange_rate: number;
13095
14456
  }[]>;
13096
14457
  getInvoiceById(invoiceId: string, params?: {
13097
14458
  include_pdf?: "true" | "false" | undefined;
@@ -13102,7 +14463,7 @@ export declare class API {
13102
14463
  model?: string | undefined;
13103
14464
  };
13104
14465
  currency: string;
13105
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14466
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13106
14467
  status: "draft" | "posted" | "cancelled" | "paid";
13107
14468
  invoice_date: string;
13108
14469
  tax_amount: number;
@@ -13119,6 +14480,7 @@ export declare class API {
13119
14480
  tax_rate?: number | undefined;
13120
14481
  account_number?: string | undefined;
13121
14482
  tax_id?: string | undefined;
14483
+ tax_exemption_reason?: string | undefined;
13122
14484
  unit_of_measure?: string | undefined;
13123
14485
  product_id?: string | undefined;
13124
14486
  product_code?: string | undefined;
@@ -13135,13 +14497,33 @@ export declare class API {
13135
14497
  model?: string | undefined;
13136
14498
  name?: string | undefined;
13137
14499
  } | undefined;
14500
+ italian_specificities?: {
14501
+ stamp_duty_amount?: number | undefined;
14502
+ withholding_tax?: {
14503
+ rate: number;
14504
+ amount: number;
14505
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
14506
+ 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;
14507
+ } | undefined;
14508
+ welfare_fund?: {
14509
+ rate: number;
14510
+ amount: number;
14511
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
14512
+ } | undefined;
14513
+ payment_reporting?: {
14514
+ 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;
14515
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
14516
+ } | undefined;
14517
+ } | undefined;
13138
14518
  last_updated_on?: string | undefined;
13139
14519
  outstanding_amount?: number | undefined;
13140
14520
  accounting_date?: string | undefined;
14521
+ payment_method_id?: string | undefined;
14522
+ currency_exchange_rate: number;
13141
14523
  }>;
13142
14524
  createInvoice(invoice: {
13143
14525
  currency: string;
13144
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14526
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13145
14527
  status: "draft" | "posted" | "cancelled" | "paid";
13146
14528
  invoice_date: string;
13147
14529
  tax_amount: number;
@@ -13158,6 +14540,7 @@ export declare class API {
13158
14540
  tax_rate?: number | undefined;
13159
14541
  account_number?: string | undefined;
13160
14542
  tax_id?: string | undefined;
14543
+ tax_exemption_reason?: string | undefined;
13161
14544
  unit_of_measure?: string | undefined;
13162
14545
  product_id?: string | undefined;
13163
14546
  product_code?: string | undefined;
@@ -13174,6 +14557,24 @@ export declare class API {
13174
14557
  model?: string | undefined;
13175
14558
  name?: string | undefined;
13176
14559
  } | undefined;
14560
+ italian_specificities?: {
14561
+ stamp_duty_amount?: number | undefined;
14562
+ withholding_tax?: {
14563
+ rate: number;
14564
+ amount: number;
14565
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
14566
+ 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;
14567
+ } | undefined;
14568
+ welfare_fund?: {
14569
+ rate: number;
14570
+ amount: number;
14571
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
14572
+ } | undefined;
14573
+ payment_reporting?: {
14574
+ 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;
14575
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
14576
+ } | undefined;
14577
+ } | undefined;
13177
14578
  }): import("../types/api").RequestData<{
13178
14579
  id: string;
13179
14580
  source_ref: {
@@ -13181,7 +14582,7 @@ export declare class API {
13181
14582
  model?: string | undefined;
13182
14583
  };
13183
14584
  currency: string;
13184
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14585
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13185
14586
  status: "draft" | "posted" | "cancelled" | "paid";
13186
14587
  invoice_date: string;
13187
14588
  tax_amount: number;
@@ -13198,6 +14599,7 @@ export declare class API {
13198
14599
  tax_rate?: number | undefined;
13199
14600
  account_number?: string | undefined;
13200
14601
  tax_id?: string | undefined;
14602
+ tax_exemption_reason?: string | undefined;
13201
14603
  unit_of_measure?: string | undefined;
13202
14604
  product_id?: string | undefined;
13203
14605
  product_code?: string | undefined;
@@ -13214,9 +14616,29 @@ export declare class API {
13214
14616
  model?: string | undefined;
13215
14617
  name?: string | undefined;
13216
14618
  } | undefined;
14619
+ italian_specificities?: {
14620
+ stamp_duty_amount?: number | undefined;
14621
+ withholding_tax?: {
14622
+ rate: number;
14623
+ amount: number;
14624
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
14625
+ 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;
14626
+ } | undefined;
14627
+ welfare_fund?: {
14628
+ rate: number;
14629
+ amount: number;
14630
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
14631
+ } | undefined;
14632
+ payment_reporting?: {
14633
+ 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;
14634
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
14635
+ } | undefined;
14636
+ } | undefined;
13217
14637
  last_updated_on?: string | undefined;
13218
14638
  outstanding_amount?: number | undefined;
13219
14639
  accounting_date?: string | undefined;
14640
+ payment_method_id?: string | undefined;
14641
+ currency_exchange_rate: number;
13220
14642
  }>;
13221
14643
  getProducts(): import("../types/api").RequestData<{
13222
14644
  id: string;
@@ -13513,6 +14935,31 @@ export declare class API {
13513
14935
  }[];
13514
14936
  external_reference?: string | undefined;
13515
14937
  }>;
14938
+ getPayments(): import("../types/api").RequestData<{
14939
+ id: string;
14940
+ source_ref: {
14941
+ id?: string | undefined;
14942
+ model?: string | undefined;
14943
+ };
14944
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
14945
+ description: string;
14946
+ amount: number;
14947
+ currency: string;
14948
+ payment_date: string;
14949
+ partner_id: string;
14950
+ payment_method_id?: string | undefined;
14951
+ payment_method_name?: string | undefined;
14952
+ invoice_id?: string | undefined;
14953
+ invoice_number?: string | undefined;
14954
+ }[]>;
14955
+ getPaymentMethods(): import("../types/api").RequestData<{
14956
+ id: string;
14957
+ source_ref: {
14958
+ id?: string | undefined;
14959
+ model?: string | undefined;
14960
+ };
14961
+ name: string;
14962
+ }[]>;
13516
14963
  }>;
13517
14964
  ecommerce: import("../types/api").ApiFor<{
13518
14965
  getCustomers(): import("../types/api").RequestData<{
@@ -14652,10 +16099,57 @@ export declare class API {
14652
16099
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
14653
16100
  setConnectionId: (connectionId: string) => Promise<void>;
14654
16101
  setIntegrationId: (integrationId: string) => Promise<void>;
16102
+ updateConsumer: (body: {
16103
+ name?: string | undefined;
16104
+ email?: string | undefined;
16105
+ internal_reference?: string | undefined;
16106
+ redirect_url?: string | undefined;
16107
+ }) => Promise<{
16108
+ consumerid: string;
16109
+ name: string;
16110
+ email?: string | undefined;
16111
+ internal_reference?: string | undefined;
16112
+ redirect_url?: string | undefined;
16113
+ }>;
16114
+ updateFlowConfig: (syncId: string, flowId: string, body: {
16115
+ triggerid: string;
16116
+ data: Record<string, never>;
16117
+ }) => Promise<{
16118
+ name: string;
16119
+ description?: string | undefined;
16120
+ id: string;
16121
+ config?: {
16122
+ definitionFields?: Record<string, never>[] | undefined;
16123
+ doorkeyFields?: Record<string, never>[] | undefined;
16124
+ customFields?: Record<string, never>[] | undefined;
16125
+ datastores: {
16126
+ id?: string | undefined;
16127
+ name: string;
16128
+ status: "active" | "inactive";
16129
+ definition: {
16130
+ columns: {
16131
+ name: string;
16132
+ title: string;
16133
+ type: string;
16134
+ optional: boolean;
16135
+ }[];
16136
+ search_column?: string | undefined;
16137
+ };
16138
+ }[];
16139
+ } | undefined;
16140
+ values: Record<string, never>;
16141
+ enabled_on?: string | undefined;
16142
+ trigger: {
16143
+ id: string;
16144
+ type: "event" | "timer";
16145
+ cronschedule?: string | undefined;
16146
+ };
16147
+ }>;
14655
16148
  }[]>;
14656
16149
  updateConsumerById: (consumerId: string, body: {
14657
16150
  name?: string | undefined;
14658
16151
  email?: string | undefined;
16152
+ internal_reference?: string | undefined;
14659
16153
  redirect_url?: string | undefined;
14660
16154
  }) => Promise<{
14661
16155
  consumerId: string;
@@ -14781,6 +16275,7 @@ export declare class API {
14781
16275
  discounts: {
14782
16276
  name?: string | undefined;
14783
16277
  total: number;
16278
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
14784
16279
  }[];
14785
16280
  product_id?: string | undefined;
14786
16281
  accounting_category_id?: string | undefined;
@@ -14858,6 +16353,7 @@ export declare class API {
14858
16353
  discounts: {
14859
16354
  name?: string | undefined;
14860
16355
  total: number;
16356
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
14861
16357
  }[];
14862
16358
  product_id?: string | undefined;
14863
16359
  accounting_category_id?: string | undefined;
@@ -15032,6 +16528,7 @@ export declare class API {
15032
16528
  discounts: {
15033
16529
  name?: string | undefined;
15034
16530
  total: number;
16531
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
15035
16532
  }[];
15036
16533
  product_id?: string | undefined;
15037
16534
  accounting_category_id?: string | undefined;
@@ -15113,11 +16610,62 @@ export declare class API {
15113
16610
  discounts: {
15114
16611
  name?: string | undefined;
15115
16612
  total: number;
16613
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
15116
16614
  }[];
15117
16615
  product_id?: string | undefined;
15118
16616
  accounting_category_id?: string | undefined;
15119
16617
  }[];
15120
16618
  service_id?: string | undefined;
16619
+ reservation?: {
16620
+ id: string;
16621
+ source_ref: {
16622
+ id?: string | undefined;
16623
+ model?: string | undefined;
16624
+ };
16625
+ start_date?: string | undefined;
16626
+ end_date?: string | undefined;
16627
+ creation_date?: string | undefined;
16628
+ resource_id?: {
16629
+ id: string;
16630
+ source_ref: {
16631
+ id?: string | undefined;
16632
+ model?: string | undefined;
16633
+ };
16634
+ } | undefined;
16635
+ resource_name?: string | undefined;
16636
+ resource_identifier?: string | undefined;
16637
+ } | undefined;
16638
+ bills?: {
16639
+ id: string;
16640
+ source_ref: {
16641
+ id?: string | undefined;
16642
+ model?: string | undefined;
16643
+ };
16644
+ invoice_number?: string | undefined;
16645
+ creation_date?: string | undefined;
16646
+ closing_date?: string | undefined;
16647
+ partners?: {
16648
+ id: string;
16649
+ source_ref: {
16650
+ id?: string | undefined;
16651
+ model?: string | undefined;
16652
+ };
16653
+ type: "owner" | "account";
16654
+ address?: {
16655
+ address_type?: string | undefined;
16656
+ name?: string | undefined;
16657
+ street?: string | undefined;
16658
+ number?: string | undefined;
16659
+ box?: string | undefined;
16660
+ city?: string | undefined;
16661
+ postal_code?: string | undefined;
16662
+ country?: string | undefined;
16663
+ } | undefined;
16664
+ first_name?: string | undefined;
16665
+ last_name?: string | undefined;
16666
+ company_name?: string | undefined;
16667
+ }[] | undefined;
16668
+ }[] | undefined;
15121
16669
  }[]>;
15122
16670
  getPaymentMethods(params?: {
15123
16671
  location_id?: string | undefined;
@@ -15153,6 +16701,13 @@ export declare class API {
15153
16701
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
15154
16702
  currency?: string | undefined;
15155
16703
  date?: string | undefined;
16704
+ partner_id?: {
16705
+ id: string;
16706
+ source_ref: {
16707
+ id?: string | undefined;
16708
+ model?: string | undefined;
16709
+ };
16710
+ } | undefined;
15156
16711
  }[]>;
15157
16712
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
15158
16713
  id: string;
@@ -15165,6 +16720,128 @@ export declare class API {
15165
16720
  ledger_account_code?: string | undefined;
15166
16721
  posting_account_code?: string | undefined;
15167
16722
  }[]>;
16723
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
16724
+ id: string;
16725
+ source_ref: {
16726
+ id?: string | undefined;
16727
+ model?: string | undefined;
16728
+ };
16729
+ first_name?: string | undefined;
16730
+ last_name?: string | undefined;
16731
+ company_name?: string | undefined;
16732
+ phone?: string | undefined;
16733
+ email?: string | undefined;
16734
+ account_number?: string | undefined;
16735
+ created_on?: string | undefined;
16736
+ addresses?: {
16737
+ address_type?: string | undefined;
16738
+ name?: string | undefined;
16739
+ street?: string | undefined;
16740
+ number?: string | undefined;
16741
+ box?: string | undefined;
16742
+ city?: string | undefined;
16743
+ postal_code?: string | undefined;
16744
+ country?: string | undefined;
16745
+ }[] | undefined;
16746
+ }[]>;
16747
+ getInvoices(params?: {
16748
+ date_from: string;
16749
+ date_to: string;
16750
+ location_id?: string | undefined;
16751
+ } | undefined): import("../types/api").RequestData<{
16752
+ id: string;
16753
+ source_ref: {
16754
+ id?: string | undefined;
16755
+ model?: string | undefined;
16756
+ };
16757
+ invoice_number?: string | undefined;
16758
+ creation_date?: string | undefined;
16759
+ closing_date?: string | undefined;
16760
+ partners?: {
16761
+ id: string;
16762
+ source_ref: {
16763
+ id?: string | undefined;
16764
+ model?: string | undefined;
16765
+ };
16766
+ type: "owner" | "account";
16767
+ address?: {
16768
+ address_type?: string | undefined;
16769
+ name?: string | undefined;
16770
+ street?: string | undefined;
16771
+ number?: string | undefined;
16772
+ box?: string | undefined;
16773
+ city?: string | undefined;
16774
+ postal_code?: string | undefined;
16775
+ country?: string | undefined;
16776
+ } | undefined;
16777
+ first_name?: string | undefined;
16778
+ last_name?: string | undefined;
16779
+ company_name?: string | undefined;
16780
+ }[] | undefined;
16781
+ items: {
16782
+ id: string;
16783
+ source_ref: {
16784
+ id?: string | undefined;
16785
+ model?: string | undefined;
16786
+ };
16787
+ type?: "menu" | "product" | undefined;
16788
+ menu_id?: string | undefined;
16789
+ quantity: number;
16790
+ unit_price: number;
16791
+ total: number;
16792
+ tax_amount: number;
16793
+ tax_rate?: number | undefined;
16794
+ description?: string | undefined;
16795
+ discounts: {
16796
+ name?: string | undefined;
16797
+ total: number;
16798
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
16799
+ }[];
16800
+ product_id?: string | undefined;
16801
+ accounting_category_id?: string | undefined;
16802
+ }[];
16803
+ payments: {
16804
+ id?: string | undefined;
16805
+ source_ref: {
16806
+ id?: string | undefined;
16807
+ model?: string | undefined;
16808
+ };
16809
+ payment_method_id?: string | undefined;
16810
+ payment_method_name?: string | undefined;
16811
+ total: number;
16812
+ tip: number;
16813
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
16814
+ currency?: string | undefined;
16815
+ date?: string | undefined;
16816
+ partner_id?: {
16817
+ id: string;
16818
+ source_ref: {
16819
+ id?: string | undefined;
16820
+ model?: string | undefined;
16821
+ };
16822
+ } | undefined;
16823
+ }[];
16824
+ service_id?: string | undefined;
16825
+ reservation?: {
16826
+ id: string;
16827
+ source_ref: {
16828
+ id?: string | undefined;
16829
+ model?: string | undefined;
16830
+ };
16831
+ start_date?: string | undefined;
16832
+ end_date?: string | undefined;
16833
+ creation_date?: string | undefined;
16834
+ resource_id?: {
16835
+ id: string;
16836
+ source_ref: {
16837
+ id?: string | undefined;
16838
+ model?: string | undefined;
16839
+ };
16840
+ } | undefined;
16841
+ resource_name?: string | undefined;
16842
+ resource_identifier?: string | undefined;
16843
+ } | undefined;
16844
+ }[]>;
15168
16845
  }>;
15169
16846
  payment: import("../types/api").ApiFor<{
15170
16847
  getPayments(params: {
@@ -15216,8 +16893,8 @@ export declare class API {
15216
16893
  payment_id?: string | undefined;
15217
16894
  }[]>;
15218
16895
  getPayment(params: {
15219
- payment_id: string;
15220
16896
  consumer_id: string;
16897
+ payment_id: string;
15221
16898
  }): import("../types/api").RequestData<{
15222
16899
  id: string;
15223
16900
  source_ref: {
@@ -15260,6 +16937,7 @@ export declare class API {
15260
16937
  getClients(params?: {
15261
16938
  search?: string | undefined;
15262
16939
  folder_id?: string | undefined;
16940
+ updated_after?: string | undefined;
15263
16941
  } | undefined): import("../types/api").RequestData<{
15264
16942
  external_reference?: string | undefined;
15265
16943
  first_name?: string | undefined;
@@ -15330,8 +17008,8 @@ export declare class API {
15330
17008
  }[];
15331
17009
  account_number?: string | undefined;
15332
17010
  }, params?: {
15333
- force_merge?: string | undefined;
15334
17011
  folder_id?: string | undefined;
17012
+ force_merge?: string | undefined;
15335
17013
  } | undefined): import("../types/api").RequestData<{
15336
17014
  external_reference?: string | undefined;
15337
17015
  first_name?: string | undefined;
@@ -15479,6 +17157,7 @@ export declare class API {
15479
17157
  getSuppliers(params?: {
15480
17158
  search?: string | undefined;
15481
17159
  folder_id?: string | undefined;
17160
+ updated_after?: string | undefined;
15482
17161
  } | undefined): import("../types/api").RequestData<{
15483
17162
  external_reference?: string | undefined;
15484
17163
  first_name?: string | undefined;
@@ -15549,8 +17228,8 @@ export declare class API {
15549
17228
  }[];
15550
17229
  account_number?: string | undefined;
15551
17230
  }, params?: {
15552
- force_merge?: string | undefined;
15553
17231
  folder_id?: string | undefined;
17232
+ force_merge?: string | undefined;
15554
17233
  } | undefined): import("../types/api").RequestData<{
15555
17234
  external_reference?: string | undefined;
15556
17235
  first_name?: string | undefined;
@@ -15744,9 +17423,9 @@ export declare class API {
15744
17423
  analytic_account?: string | undefined;
15745
17424
  }[];
15746
17425
  }, params?: {
17426
+ folder_id?: string | undefined;
15747
17427
  force_financial_period?: string | undefined;
15748
17428
  regroup_lines?: "true" | "false" | undefined;
15749
- folder_id?: string | undefined;
15750
17429
  } | undefined): import("../types/api").RequestData<{
15751
17430
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15752
17431
  invoice_number?: string | undefined;
@@ -15847,9 +17526,9 @@ export declare class API {
15847
17526
  }[];
15848
17527
  }[];
15849
17528
  }, params?: {
17529
+ folder_id?: string | undefined;
15850
17530
  force_financial_period?: string | undefined;
15851
17531
  regroup_lines?: "true" | "false" | undefined;
15852
- folder_id?: string | undefined;
15853
17532
  } | undefined): import("../types/api").RequestData<{
15854
17533
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15855
17534
  invoice_number?: string | undefined;
@@ -15908,6 +17587,7 @@ export declare class API {
15908
17587
  journal_ids?: string | undefined;
15909
17588
  include_payments?: "true" | "false" | undefined;
15910
17589
  payment_status?: "all" | "paid" | "unpaid" | undefined;
17590
+ updated_after?: string | undefined;
15911
17591
  } | undefined): import("../types/api").RequestData<{
15912
17592
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15913
17593
  invoice_number?: string | undefined;
@@ -15954,8 +17634,8 @@ export declare class API {
15954
17634
  }[];
15955
17635
  }[]>;
15956
17636
  getInvoice(invoiceId: string, params?: {
15957
- include_payments?: "true" | "false" | undefined;
15958
17637
  folder_id?: string | undefined;
17638
+ include_payments?: "true" | "false" | undefined;
15959
17639
  } | undefined): import("../types/api").RequestData<{
15960
17640
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
15961
17641
  invoice_number?: string | undefined;
@@ -16002,8 +17682,8 @@ export declare class API {
16002
17682
  }[];
16003
17683
  }>;
16004
17684
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
16005
- include_payments?: "true" | "false" | undefined;
16006
17685
  folder_id?: string | undefined;
17686
+ include_payments?: "true" | "false" | undefined;
16007
17687
  } | undefined): import("../types/api").RequestData<{
16008
17688
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
16009
17689
  invoice_number?: string | undefined;
@@ -16062,6 +17742,7 @@ export declare class API {
16062
17742
  journal_ids?: string | undefined;
16063
17743
  include_payments?: "true" | "false" | undefined;
16064
17744
  payment_status?: "all" | "paid" | "unpaid" | undefined;
17745
+ updated_after?: string | undefined;
16065
17746
  } | undefined): import("../types/api").RequestData<{
16066
17747
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
16067
17748
  invoice_number?: string | undefined;
@@ -16234,9 +17915,10 @@ export declare class API {
16234
17915
  analytic_plan: string;
16235
17916
  }[]>;
16236
17917
  getJournalEntries(params: {
16237
- date_from: string;
16238
- date_to: string;
17918
+ date_from?: string | undefined;
17919
+ date_to?: string | undefined;
16239
17920
  folder_id?: string | undefined;
17921
+ updated_after?: string | undefined;
16240
17922
  unposted_allowed: "true" | "false";
16241
17923
  journal_id: string;
16242
17924
  partner_id?: string | undefined;
@@ -16266,9 +17948,10 @@ export declare class API {
16266
17948
  }[];
16267
17949
  }[]>;
16268
17950
  getJournalEntriesWithMultiplePlans(params: {
16269
- date_from: string;
16270
- date_to: string;
17951
+ date_from?: string | undefined;
17952
+ date_to?: string | undefined;
16271
17953
  folder_id?: string | undefined;
17954
+ updated_after?: string | undefined;
16272
17955
  unposted_allowed: "true" | "false";
16273
17956
  journal_id: string;
16274
17957
  partner_id?: string | undefined;
@@ -16303,9 +17986,9 @@ export declare class API {
16303
17986
  }[];
16304
17987
  }[]>;
16305
17988
  getPaymentsByInvoiceId(invoice_id: string, params?: {
16306
- folder_id?: string | undefined;
16307
17989
  page?: number | undefined;
16308
17990
  size?: number | undefined;
17991
+ folder_id?: string | undefined;
16309
17992
  } | undefined): import("../types/api").RequestData<{
16310
17993
  id: string;
16311
17994
  name: string;
@@ -16429,8 +18112,8 @@ export declare class API {
16429
18112
  attachPDF(invoice_id: string, attachment: {
16430
18113
  base64_string: string;
16431
18114
  }, params?: {
16432
- overwrite_existing?: "true" | "false" | undefined;
16433
18115
  folder_id?: string | undefined;
18116
+ overwrite_existing?: "true" | "false" | undefined;
16434
18117
  } | undefined): import("../types/api").RequestData<{
16435
18118
  headers: {
16436
18119
  [name: string]: unknown;
@@ -16447,8 +18130,8 @@ export declare class API {
16447
18130
  base64_string: string;
16448
18131
  }[]>;
16449
18132
  getChartOfAccounts(params?: {
16450
- classes?: string | undefined;
16451
18133
  folder_id?: string | undefined;
18134
+ classes?: string | undefined;
16452
18135
  } | undefined): import("../types/api").RequestData<{
16453
18136
  number: string;
16454
18137
  name: string;
@@ -16504,8 +18187,18 @@ export declare class API {
16504
18187
  partner_id: string;
16505
18188
  account_number: string;
16506
18189
  reference?: string | undefined;
18190
+ matching_numbers: string[];
16507
18191
  payment_communication?: string | undefined;
16508
18192
  posted: boolean;
18193
+ original_document?: {
18194
+ id?: string | undefined;
18195
+ number?: string | undefined;
18196
+ journal_id?: string | undefined;
18197
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
18198
+ date?: string | undefined;
18199
+ due_date?: string | undefined;
18200
+ reference?: string | undefined;
18201
+ } | undefined;
16509
18202
  }[]>;
16510
18203
  createFinancialEntryOld(financial_entry: {
16511
18204
  date: string;
@@ -16523,8 +18216,8 @@ export declare class API {
16523
18216
  }[];
16524
18217
  pdf?: string | undefined;
16525
18218
  }, params?: {
16526
- financial_counterpart_account?: string | undefined;
16527
18219
  folder_id?: string | undefined;
18220
+ financial_counterpart_account?: string | undefined;
16528
18221
  } | undefined): import("../types/api").RequestData<{
16529
18222
  date: string;
16530
18223
  journal_id: string;
@@ -16557,8 +18250,8 @@ export declare class API {
16557
18250
  }[];
16558
18251
  pdf?: string | undefined;
16559
18252
  }, params?: {
16560
- financial_counterpart_account?: string | undefined;
16561
18253
  folder_id?: string | undefined;
18254
+ financial_counterpart_account?: string | undefined;
16562
18255
  } | undefined): import("../types/api").RequestData<{
16563
18256
  date: string;
16564
18257
  journal_id: string;
@@ -16658,8 +18351,8 @@ export declare class API {
16658
18351
  start_date?: string | undefined;
16659
18352
  end_date?: string | undefined;
16660
18353
  }, params?: {
16661
- force_currency_exchange?: "true" | "false" | undefined;
16662
18354
  folder_id?: string | undefined;
18355
+ force_currency_exchange?: "true" | "false" | undefined;
16663
18356
  } | undefined): import("../types/api").RequestData<{
16664
18357
  reference?: string | undefined;
16665
18358
  due_date?: string | undefined;
@@ -16699,6 +18392,18 @@ export declare class API {
16699
18392
  matching_number: string;
16700
18393
  balance: number;
16701
18394
  }>;
18395
+ matchEntriesMultiple(body: {
18396
+ matchings: {
18397
+ entries: string[];
18398
+ partner_id: string;
18399
+ }[];
18400
+ }, params?: {
18401
+ folder_id?: string | undefined;
18402
+ } | undefined): import("../types/api").RequestData<{
18403
+ matching_number?: string | undefined;
18404
+ processed: boolean;
18405
+ error_msg?: Record<string, never> | undefined;
18406
+ }[]>;
16702
18407
  getFolders(): import("../types/api").RequestData<{
16703
18408
  id: string;
16704
18409
  name: string;
@@ -16706,14 +18411,23 @@ export declare class API {
16706
18411
  vat?: string | undefined;
16707
18412
  company_number?: string | undefined;
16708
18413
  }[]>;
18414
+ getBookyears(params?: {
18415
+ folder_id?: string | undefined;
18416
+ } | undefined): import("../types/api").RequestData<{
18417
+ name: string;
18418
+ start: string;
18419
+ end: string;
18420
+ closed: boolean;
18421
+ }[]>;
16709
18422
  }>;
16710
18423
  invoicing: import("../types/api").ApiFor<{
16711
18424
  getInvoices(params?: {
16712
18425
  date_from?: string | undefined;
16713
18426
  date_to?: string | undefined;
16714
18427
  payment_status?: "all" | "paid" | "unpaid" | undefined;
16715
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
16716
18428
  updated_after?: string | undefined;
18429
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
18430
+ include_invoice_lines?: "true" | "false" | undefined;
16717
18431
  } | undefined): import("../types/api").RequestData<{
16718
18432
  id: string;
16719
18433
  source_ref: {
@@ -16721,7 +18435,7 @@ export declare class API {
16721
18435
  model?: string | undefined;
16722
18436
  };
16723
18437
  currency: string;
16724
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
18438
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
16725
18439
  status: "draft" | "posted" | "cancelled" | "paid";
16726
18440
  invoice_date: string;
16727
18441
  tax_amount: number;
@@ -16738,6 +18452,7 @@ export declare class API {
16738
18452
  tax_rate?: number | undefined;
16739
18453
  account_number?: string | undefined;
16740
18454
  tax_id?: string | undefined;
18455
+ tax_exemption_reason?: string | undefined;
16741
18456
  unit_of_measure?: string | undefined;
16742
18457
  product_id?: string | undefined;
16743
18458
  product_code?: string | undefined;
@@ -16754,9 +18469,29 @@ export declare class API {
16754
18469
  model?: string | undefined;
16755
18470
  name?: string | undefined;
16756
18471
  } | undefined;
18472
+ italian_specificities?: {
18473
+ stamp_duty_amount?: number | undefined;
18474
+ withholding_tax?: {
18475
+ rate: number;
18476
+ amount: number;
18477
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
18478
+ 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;
18479
+ } | undefined;
18480
+ welfare_fund?: {
18481
+ rate: number;
18482
+ amount: number;
18483
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
18484
+ } | undefined;
18485
+ payment_reporting?: {
18486
+ 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;
18487
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
18488
+ } | undefined;
18489
+ } | undefined;
16757
18490
  last_updated_on?: string | undefined;
16758
18491
  outstanding_amount?: number | undefined;
16759
18492
  accounting_date?: string | undefined;
18493
+ payment_method_id?: string | undefined;
18494
+ currency_exchange_rate: number;
16760
18495
  }[]>;
16761
18496
  getInvoiceById(invoiceId: string, params?: {
16762
18497
  include_pdf?: "true" | "false" | undefined;
@@ -16767,7 +18502,7 @@ export declare class API {
16767
18502
  model?: string | undefined;
16768
18503
  };
16769
18504
  currency: string;
16770
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
18505
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
16771
18506
  status: "draft" | "posted" | "cancelled" | "paid";
16772
18507
  invoice_date: string;
16773
18508
  tax_amount: number;
@@ -16784,6 +18519,7 @@ export declare class API {
16784
18519
  tax_rate?: number | undefined;
16785
18520
  account_number?: string | undefined;
16786
18521
  tax_id?: string | undefined;
18522
+ tax_exemption_reason?: string | undefined;
16787
18523
  unit_of_measure?: string | undefined;
16788
18524
  product_id?: string | undefined;
16789
18525
  product_code?: string | undefined;
@@ -16800,13 +18536,33 @@ export declare class API {
16800
18536
  model?: string | undefined;
16801
18537
  name?: string | undefined;
16802
18538
  } | undefined;
18539
+ italian_specificities?: {
18540
+ stamp_duty_amount?: number | undefined;
18541
+ withholding_tax?: {
18542
+ rate: number;
18543
+ amount: number;
18544
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
18545
+ 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;
18546
+ } | undefined;
18547
+ welfare_fund?: {
18548
+ rate: number;
18549
+ amount: number;
18550
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
18551
+ } | undefined;
18552
+ payment_reporting?: {
18553
+ 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;
18554
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
18555
+ } | undefined;
18556
+ } | undefined;
16803
18557
  last_updated_on?: string | undefined;
16804
18558
  outstanding_amount?: number | undefined;
16805
18559
  accounting_date?: string | undefined;
18560
+ payment_method_id?: string | undefined;
18561
+ currency_exchange_rate: number;
16806
18562
  }>;
16807
18563
  createInvoice(invoice: {
16808
18564
  currency: string;
16809
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
18565
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
16810
18566
  status: "draft" | "posted" | "cancelled" | "paid";
16811
18567
  invoice_date: string;
16812
18568
  tax_amount: number;
@@ -16823,6 +18579,7 @@ export declare class API {
16823
18579
  tax_rate?: number | undefined;
16824
18580
  account_number?: string | undefined;
16825
18581
  tax_id?: string | undefined;
18582
+ tax_exemption_reason?: string | undefined;
16826
18583
  unit_of_measure?: string | undefined;
16827
18584
  product_id?: string | undefined;
16828
18585
  product_code?: string | undefined;
@@ -16839,6 +18596,24 @@ export declare class API {
16839
18596
  model?: string | undefined;
16840
18597
  name?: string | undefined;
16841
18598
  } | undefined;
18599
+ italian_specificities?: {
18600
+ stamp_duty_amount?: number | undefined;
18601
+ withholding_tax?: {
18602
+ rate: number;
18603
+ amount: number;
18604
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
18605
+ 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;
18606
+ } | undefined;
18607
+ welfare_fund?: {
18608
+ rate: number;
18609
+ amount: number;
18610
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
18611
+ } | undefined;
18612
+ payment_reporting?: {
18613
+ 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;
18614
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
18615
+ } | undefined;
18616
+ } | undefined;
16842
18617
  }): import("../types/api").RequestData<{
16843
18618
  id: string;
16844
18619
  source_ref: {
@@ -16846,7 +18621,7 @@ export declare class API {
16846
18621
  model?: string | undefined;
16847
18622
  };
16848
18623
  currency: string;
16849
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
18624
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
16850
18625
  status: "draft" | "posted" | "cancelled" | "paid";
16851
18626
  invoice_date: string;
16852
18627
  tax_amount: number;
@@ -16863,6 +18638,7 @@ export declare class API {
16863
18638
  tax_rate?: number | undefined;
16864
18639
  account_number?: string | undefined;
16865
18640
  tax_id?: string | undefined;
18641
+ tax_exemption_reason?: string | undefined;
16866
18642
  unit_of_measure?: string | undefined;
16867
18643
  product_id?: string | undefined;
16868
18644
  product_code?: string | undefined;
@@ -16879,9 +18655,29 @@ export declare class API {
16879
18655
  model?: string | undefined;
16880
18656
  name?: string | undefined;
16881
18657
  } | undefined;
18658
+ italian_specificities?: {
18659
+ stamp_duty_amount?: number | undefined;
18660
+ withholding_tax?: {
18661
+ rate: number;
18662
+ amount: number;
18663
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
18664
+ 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;
18665
+ } | undefined;
18666
+ welfare_fund?: {
18667
+ rate: number;
18668
+ amount: number;
18669
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
18670
+ } | undefined;
18671
+ payment_reporting?: {
18672
+ 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;
18673
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
18674
+ } | undefined;
18675
+ } | undefined;
16882
18676
  last_updated_on?: string | undefined;
16883
18677
  outstanding_amount?: number | undefined;
16884
18678
  accounting_date?: string | undefined;
18679
+ payment_method_id?: string | undefined;
18680
+ currency_exchange_rate: number;
16885
18681
  }>;
16886
18682
  getProducts(): import("../types/api").RequestData<{
16887
18683
  id: string;
@@ -17178,6 +18974,31 @@ export declare class API {
17178
18974
  }[];
17179
18975
  external_reference?: string | undefined;
17180
18976
  }>;
18977
+ getPayments(): import("../types/api").RequestData<{
18978
+ id: string;
18979
+ source_ref: {
18980
+ id?: string | undefined;
18981
+ model?: string | undefined;
18982
+ };
18983
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
18984
+ description: string;
18985
+ amount: number;
18986
+ currency: string;
18987
+ payment_date: string;
18988
+ partner_id: string;
18989
+ payment_method_id?: string | undefined;
18990
+ payment_method_name?: string | undefined;
18991
+ invoice_id?: string | undefined;
18992
+ invoice_number?: string | undefined;
18993
+ }[]>;
18994
+ getPaymentMethods(): import("../types/api").RequestData<{
18995
+ id: string;
18996
+ source_ref: {
18997
+ id?: string | undefined;
18998
+ model?: string | undefined;
18999
+ };
19000
+ name: string;
19001
+ }[]>;
17181
19002
  }>;
17182
19003
  ecommerce: import("../types/api").ApiFor<{
17183
19004
  getCustomers(): import("../types/api").RequestData<{
@@ -18317,6 +20138,52 @@ export declare class API {
18317
20138
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
18318
20139
  setConnectionId: (connectionId: string) => Promise<void>;
18319
20140
  setIntegrationId: (integrationId: string) => Promise<void>;
20141
+ updateConsumer: (body: {
20142
+ name?: string | undefined;
20143
+ email?: string | undefined;
20144
+ internal_reference?: string | undefined;
20145
+ redirect_url?: string | undefined;
20146
+ }) => Promise<{
20147
+ consumerid: string;
20148
+ name: string;
20149
+ email?: string | undefined;
20150
+ internal_reference?: string | undefined;
20151
+ redirect_url?: string | undefined;
20152
+ }>;
20153
+ updateFlowConfig: (syncId: string, flowId: string, body: {
20154
+ triggerid: string;
20155
+ data: Record<string, never>;
20156
+ }) => Promise<{
20157
+ name: string;
20158
+ description?: string | undefined;
20159
+ id: string;
20160
+ config?: {
20161
+ definitionFields?: Record<string, never>[] | undefined;
20162
+ doorkeyFields?: Record<string, never>[] | undefined;
20163
+ customFields?: Record<string, never>[] | undefined;
20164
+ datastores: {
20165
+ id?: string | undefined;
20166
+ name: string;
20167
+ status: "active" | "inactive";
20168
+ definition: {
20169
+ columns: {
20170
+ name: string;
20171
+ title: string;
20172
+ type: string;
20173
+ optional: boolean;
20174
+ }[];
20175
+ search_column?: string | undefined;
20176
+ };
20177
+ }[];
20178
+ } | undefined;
20179
+ values: Record<string, never>;
20180
+ enabled_on?: string | undefined;
20181
+ trigger: {
20182
+ id: string;
20183
+ type: "event" | "timer";
20184
+ cronschedule?: string | undefined;
20185
+ };
20186
+ }>;
18320
20187
  }>;
18321
20188
  deleteConsumerById: (consumerId: string) => Promise<{
18322
20189
  headers: {
@@ -18346,6 +20213,7 @@ export declare class API {
18346
20213
  optional: boolean;
18347
20214
  }[];
18348
20215
  }[]>;
20216
+ getIntegrationLogo: (integrationId: number, imageType: "icon" | "logo") => Promise<any>;
18349
20217
  };
18350
20218
  Webhooks: {
18351
20219
  getWebhookTypes: () => Promise<{
@@ -18361,6 +20229,7 @@ export declare class API {
18361
20229
  consumerid: string;
18362
20230
  name: string;
18363
20231
  email?: string | undefined;
20232
+ internal_reference?: string | undefined;
18364
20233
  redirect_url?: string | undefined;
18365
20234
  }>;
18366
20235
  getWebhookById: (webhookId: string) => Promise<{
@@ -18381,6 +20250,7 @@ export declare class API {
18381
20250
  consumerid: string;
18382
20251
  name: string;
18383
20252
  email?: string | undefined;
20253
+ internal_reference?: string | undefined;
18384
20254
  redirect_url?: string | undefined;
18385
20255
  }>;
18386
20256
  unRegisterWebhook: (webhookId: string) => Promise<{
@@ -18425,6 +20295,26 @@ export declare class API {
18425
20295
  search_column?: string | undefined;
18426
20296
  };
18427
20297
  }[]>;
20298
+ getConsumerDataStoreData: (consumerId: string, datastoreId: string) => Promise<{
20299
+ data: Record<string, never>;
20300
+ id: string;
20301
+ created_on: string;
20302
+ }[]>;
20303
+ createConsumerDataStoreData: (consumerId: string, datastoreId: string, body: {
20304
+ data: Record<string, never>;
20305
+ }) => Promise<{
20306
+ data: Record<string, never>;
20307
+ id: string;
20308
+ created_on: string;
20309
+ }>;
20310
+ updateConsumerDataStoreData: (consumerId: string, datastoreId: string, datastoreDataId: string, body: {
20311
+ data: Record<string, never>;
20312
+ }) => Promise<{
20313
+ data: Record<string, never>;
20314
+ id: string;
20315
+ created_on: string;
20316
+ }>;
20317
+ deleteConsumerDataStoreData: (consumerId: string, datastoreId: string, datastoreDataId: string) => Promise<void>;
18428
20318
  };
18429
20319
  constructor(auth: AuthType);
18430
20320
  private _setup;