@chift/chift-nodejs 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,10 +11,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11
11
  end?: string | undefined;
12
12
  status: string;
13
13
  }>;
14
+ getConsumerExecutions: (consumerId: string) => Promise<{
15
+ id: string;
16
+ start: string;
17
+ end?: string | undefined;
18
+ status: string;
19
+ }[]>;
14
20
  executeLocal: (process: (consumer: (internalApi: InternalAPI, body: {
15
21
  consumerid: string;
16
22
  name: string;
17
23
  email?: string | undefined;
24
+ internal_reference?: string | undefined;
18
25
  redirect_url?: string | undefined;
19
26
  }) => {
20
27
  consumerId: string;
@@ -129,6 +136,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
129
136
  }[];
130
137
  items: {
131
138
  id: string;
139
+ type?: "menu" | "product" | undefined;
140
+ menu_id?: string | undefined;
132
141
  quantity: number;
133
142
  unit_price: number;
134
143
  total: number;
@@ -138,6 +147,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
138
147
  discounts: {
139
148
  name?: string | undefined;
140
149
  total: number;
150
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
141
151
  }[];
142
152
  product_id?: string | undefined;
143
153
  accounting_category_id?: string | undefined;
@@ -204,6 +214,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
204
214
  }[];
205
215
  items: {
206
216
  id: string;
217
+ type?: "menu" | "product" | undefined;
218
+ menu_id?: string | undefined;
207
219
  quantity: number;
208
220
  unit_price: number;
209
221
  total: number;
@@ -213,6 +225,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
213
225
  discounts: {
214
226
  name?: string | undefined;
215
227
  total: number;
228
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
216
229
  }[];
217
230
  product_id?: string | undefined;
218
231
  accounting_category_id?: string | undefined;
@@ -376,6 +389,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
376
389
  }[];
377
390
  items: {
378
391
  id: string;
392
+ type?: "menu" | "product" | undefined;
393
+ menu_id?: string | undefined;
379
394
  quantity: number;
380
395
  unit_price: number;
381
396
  total: number;
@@ -385,6 +400,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
385
400
  discounts: {
386
401
  name?: string | undefined;
387
402
  total: number;
403
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
388
404
  }[];
389
405
  product_id?: string | undefined;
390
406
  accounting_category_id?: string | undefined;
@@ -395,7 +411,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
395
411
  } | undefined): import("../types/api").RequestData<{
396
412
  id: string;
397
413
  name: string;
398
- id_parent?: string | undefined;
399
414
  code?: string | undefined;
400
415
  ledger_account_code?: string | undefined;
401
416
  posting_account_code?: string | undefined;
@@ -456,6 +471,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
456
471
  id?: string | undefined;
457
472
  model?: string | undefined;
458
473
  };
474
+ type?: "menu" | "product" | undefined;
475
+ menu_id?: string | undefined;
459
476
  quantity: number;
460
477
  unit_price: number;
461
478
  total: number;
@@ -465,11 +482,62 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
465
482
  discounts: {
466
483
  name?: string | undefined;
467
484
  total: number;
485
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
468
486
  }[];
469
487
  product_id?: string | undefined;
470
488
  accounting_category_id?: string | undefined;
471
489
  }[];
472
490
  service_id?: string | undefined;
491
+ reservation?: {
492
+ id: string;
493
+ source_ref: {
494
+ id?: string | undefined;
495
+ model?: string | undefined;
496
+ };
497
+ start_date?: string | undefined;
498
+ end_date?: string | undefined;
499
+ creation_date?: string | undefined;
500
+ resource_id?: {
501
+ id: string;
502
+ source_ref: {
503
+ id?: string | undefined;
504
+ model?: string | undefined;
505
+ };
506
+ } | undefined;
507
+ resource_name?: string | undefined;
508
+ resource_identifier?: string | undefined;
509
+ } | undefined;
510
+ bills?: {
511
+ id: string;
512
+ source_ref: {
513
+ id?: string | undefined;
514
+ model?: string | undefined;
515
+ };
516
+ invoice_number?: string | undefined;
517
+ creation_date?: string | undefined;
518
+ closing_date?: string | undefined;
519
+ partners?: {
520
+ id: string;
521
+ source_ref: {
522
+ id?: string | undefined;
523
+ model?: string | undefined;
524
+ };
525
+ type: "owner" | "account";
526
+ address?: {
527
+ address_type?: string | undefined;
528
+ name?: string | undefined;
529
+ street?: string | undefined;
530
+ number?: string | undefined;
531
+ box?: string | undefined;
532
+ city?: string | undefined;
533
+ postal_code?: string | undefined;
534
+ country?: string | undefined;
535
+ } | undefined;
536
+ first_name?: string | undefined;
537
+ last_name?: string | undefined;
538
+ company_name?: string | undefined;
539
+ }[] | undefined;
540
+ }[] | undefined;
473
541
  }[]>;
474
542
  getPaymentMethods(params?: {
475
543
  location_id?: string | undefined;
@@ -505,6 +573,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
505
573
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
506
574
  currency?: string | undefined;
507
575
  date?: string | undefined;
576
+ partner_id?: {
577
+ id: string;
578
+ source_ref: {
579
+ id?: string | undefined;
580
+ model?: string | undefined;
581
+ };
582
+ } | undefined;
508
583
  }[]>;
509
584
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
510
585
  id: string;
@@ -513,11 +588,132 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
513
588
  model?: string | undefined;
514
589
  };
515
590
  name: string;
516
- id_parent?: string | undefined;
517
591
  code?: string | undefined;
518
592
  ledger_account_code?: string | undefined;
519
593
  posting_account_code?: string | undefined;
520
594
  }[]>;
595
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
596
+ id: string;
597
+ source_ref: {
598
+ id?: string | undefined;
599
+ model?: string | undefined;
600
+ };
601
+ first_name?: string | undefined;
602
+ last_name?: string | undefined;
603
+ company_name?: string | undefined;
604
+ phone?: string | undefined;
605
+ email?: string | undefined;
606
+ account_number?: string | undefined;
607
+ created_on?: string | undefined;
608
+ addresses?: {
609
+ address_type?: string | undefined;
610
+ name?: string | undefined;
611
+ street?: string | undefined;
612
+ number?: string | undefined;
613
+ box?: string | undefined;
614
+ city?: string | undefined;
615
+ postal_code?: string | undefined;
616
+ country?: string | undefined;
617
+ }[] | undefined;
618
+ }[]>;
619
+ getInvoices(params?: {
620
+ date_from: string;
621
+ date_to: string;
622
+ location_id?: string | undefined;
623
+ } | undefined): import("../types/api").RequestData<{
624
+ id: string;
625
+ source_ref: {
626
+ id?: string | undefined;
627
+ model?: string | undefined;
628
+ };
629
+ invoice_number?: string | undefined;
630
+ creation_date?: string | undefined;
631
+ closing_date?: string | undefined;
632
+ partners?: {
633
+ id: string;
634
+ source_ref: {
635
+ id?: string | undefined;
636
+ model?: string | undefined;
637
+ };
638
+ type: "owner" | "account";
639
+ address?: {
640
+ address_type?: string | undefined;
641
+ name?: string | undefined;
642
+ street?: string | undefined;
643
+ number?: string | undefined;
644
+ box?: string | undefined;
645
+ city?: string | undefined;
646
+ postal_code?: string | undefined;
647
+ country?: string | undefined;
648
+ } | undefined;
649
+ first_name?: string | undefined;
650
+ last_name?: string | undefined;
651
+ company_name?: string | undefined;
652
+ }[] | undefined;
653
+ items: {
654
+ id: string;
655
+ source_ref: {
656
+ id?: string | undefined;
657
+ model?: string | undefined;
658
+ };
659
+ type?: "menu" | "product" | undefined;
660
+ menu_id?: string | undefined;
661
+ quantity: number;
662
+ unit_price: number;
663
+ total: number;
664
+ tax_amount: number;
665
+ tax_rate?: number | undefined;
666
+ description?: string | undefined;
667
+ discounts: {
668
+ name?: string | undefined;
669
+ total: number;
670
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
671
+ }[];
672
+ product_id?: string | undefined;
673
+ accounting_category_id?: string | undefined;
674
+ }[];
675
+ payments: {
676
+ id?: string | undefined;
677
+ source_ref: {
678
+ id?: string | undefined;
679
+ model?: string | undefined;
680
+ };
681
+ payment_method_id?: string | undefined;
682
+ payment_method_name?: string | undefined;
683
+ total: number;
684
+ tip: number;
685
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
686
+ currency?: string | undefined;
687
+ date?: string | undefined;
688
+ partner_id?: {
689
+ id: string;
690
+ source_ref: {
691
+ id?: string | undefined;
692
+ model?: string | undefined;
693
+ };
694
+ } | undefined;
695
+ }[];
696
+ service_id?: string | undefined;
697
+ reservation?: {
698
+ id: string;
699
+ source_ref: {
700
+ id?: string | undefined;
701
+ model?: string | undefined;
702
+ };
703
+ start_date?: string | undefined;
704
+ end_date?: string | undefined;
705
+ creation_date?: string | undefined;
706
+ resource_id?: {
707
+ id: string;
708
+ source_ref: {
709
+ id?: string | undefined;
710
+ model?: string | undefined;
711
+ };
712
+ } | undefined;
713
+ resource_name?: string | undefined;
714
+ resource_identifier?: string | undefined;
715
+ } | undefined;
716
+ }[]>;
521
717
  }>;
522
718
  payment: import("../types/api").ApiFor<{
523
719
  getPayments(params: {
@@ -569,8 +765,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
569
765
  payment_id?: string | undefined;
570
766
  }[]>;
571
767
  getPayment(params: {
572
- payment_id: string;
573
768
  consumer_id: string;
769
+ payment_id: string;
574
770
  }): import("../types/api").RequestData<{
575
771
  id: string;
576
772
  source_ref: {
@@ -611,7 +807,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
611
807
  active: boolean;
612
808
  }[]>;
613
809
  getClients(params?: {
810
+ search?: string | undefined;
614
811
  folder_id?: string | undefined;
812
+ updated_after?: string | undefined;
615
813
  } | undefined): import("../types/api").RequestData<{
616
814
  external_reference?: string | undefined;
617
815
  first_name?: string | undefined;
@@ -682,8 +880,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
682
880
  }[];
683
881
  account_number?: string | undefined;
684
882
  }, params?: {
685
- force_merge?: string | undefined;
686
883
  folder_id?: string | undefined;
884
+ force_merge?: string | undefined;
687
885
  } | undefined): import("../types/api").RequestData<{
688
886
  external_reference?: string | undefined;
689
887
  first_name?: string | undefined;
@@ -829,7 +1027,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
829
1027
  id?: string | undefined;
830
1028
  }>;
831
1029
  getSuppliers(params?: {
1030
+ search?: string | undefined;
832
1031
  folder_id?: string | undefined;
1032
+ updated_after?: string | undefined;
833
1033
  } | undefined): import("../types/api").RequestData<{
834
1034
  external_reference?: string | undefined;
835
1035
  first_name?: string | undefined;
@@ -900,8 +1100,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
900
1100
  }[];
901
1101
  account_number?: string | undefined;
902
1102
  }, params?: {
903
- force_merge?: string | undefined;
904
1103
  folder_id?: string | undefined;
1104
+ force_merge?: string | undefined;
905
1105
  } | undefined): import("../types/api").RequestData<{
906
1106
  external_reference?: string | undefined;
907
1107
  first_name?: string | undefined;
@@ -1095,9 +1295,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1095
1295
  analytic_account?: string | undefined;
1096
1296
  }[];
1097
1297
  }, params?: {
1298
+ folder_id?: string | undefined;
1098
1299
  force_financial_period?: string | undefined;
1099
1300
  regroup_lines?: "true" | "false" | undefined;
1100
- folder_id?: string | undefined;
1101
1301
  } | undefined): import("../types/api").RequestData<{
1102
1302
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1103
1303
  invoice_number?: string | undefined;
@@ -1198,9 +1398,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1198
1398
  }[];
1199
1399
  }[];
1200
1400
  }, params?: {
1401
+ folder_id?: string | undefined;
1201
1402
  force_financial_period?: string | undefined;
1202
1403
  regroup_lines?: "true" | "false" | undefined;
1203
- folder_id?: string | undefined;
1204
1404
  } | undefined): import("../types/api").RequestData<{
1205
1405
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1206
1406
  invoice_number?: string | undefined;
@@ -1259,6 +1459,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1259
1459
  journal_ids?: string | undefined;
1260
1460
  include_payments?: "true" | "false" | undefined;
1261
1461
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1462
+ updated_after?: string | undefined;
1262
1463
  } | undefined): import("../types/api").RequestData<{
1263
1464
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1264
1465
  invoice_number?: string | undefined;
@@ -1305,8 +1506,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1305
1506
  }[];
1306
1507
  }[]>;
1307
1508
  getInvoice(invoiceId: string, params?: {
1308
- include_payments?: "true" | "false" | undefined;
1309
1509
  folder_id?: string | undefined;
1510
+ include_payments?: "true" | "false" | undefined;
1310
1511
  } | undefined): import("../types/api").RequestData<{
1311
1512
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1312
1513
  invoice_number?: string | undefined;
@@ -1353,8 +1554,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1353
1554
  }[];
1354
1555
  }>;
1355
1556
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
1356
- include_payments?: "true" | "false" | undefined;
1357
1557
  folder_id?: string | undefined;
1558
+ include_payments?: "true" | "false" | undefined;
1358
1559
  } | undefined): import("../types/api").RequestData<{
1359
1560
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1360
1561
  invoice_number?: string | undefined;
@@ -1413,6 +1614,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1413
1614
  journal_ids?: string | undefined;
1414
1615
  include_payments?: "true" | "false" | undefined;
1415
1616
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1617
+ updated_after?: string | undefined;
1416
1618
  } | undefined): import("../types/api").RequestData<{
1417
1619
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1418
1620
  invoice_number?: string | undefined;
@@ -1585,9 +1787,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1585
1787
  analytic_plan: string;
1586
1788
  }[]>;
1587
1789
  getJournalEntries(params: {
1588
- date_from: string;
1589
- date_to: string;
1790
+ date_from?: string | undefined;
1791
+ date_to?: string | undefined;
1590
1792
  folder_id?: string | undefined;
1793
+ updated_after?: string | undefined;
1591
1794
  unposted_allowed: "true" | "false";
1592
1795
  journal_id: string;
1593
1796
  partner_id?: string | undefined;
@@ -1617,9 +1820,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1617
1820
  }[];
1618
1821
  }[]>;
1619
1822
  getJournalEntriesWithMultiplePlans(params: {
1620
- date_from: string;
1621
- date_to: string;
1823
+ date_from?: string | undefined;
1824
+ date_to?: string | undefined;
1622
1825
  folder_id?: string | undefined;
1826
+ updated_after?: string | undefined;
1623
1827
  unposted_allowed: "true" | "false";
1624
1828
  journal_id: string;
1625
1829
  partner_id?: string | undefined;
@@ -1654,9 +1858,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1654
1858
  }[];
1655
1859
  }[]>;
1656
1860
  getPaymentsByInvoiceId(invoice_id: string, params?: {
1657
- folder_id?: string | undefined;
1658
1861
  page?: number | undefined;
1659
1862
  size?: number | undefined;
1863
+ folder_id?: string | undefined;
1660
1864
  } | undefined): import("../types/api").RequestData<{
1661
1865
  id: string;
1662
1866
  name: string;
@@ -1780,8 +1984,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1780
1984
  attachPDF(invoice_id: string, attachment: {
1781
1985
  base64_string: string;
1782
1986
  }, params?: {
1783
- overwrite_existing?: "true" | "false" | undefined;
1784
1987
  folder_id?: string | undefined;
1988
+ overwrite_existing?: "true" | "false" | undefined;
1785
1989
  } | undefined): import("../types/api").RequestData<{
1786
1990
  headers: {
1787
1991
  [name: string]: unknown;
@@ -1798,8 +2002,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1798
2002
  base64_string: string;
1799
2003
  }[]>;
1800
2004
  getChartOfAccounts(params?: {
1801
- classes?: string | undefined;
1802
2005
  folder_id?: string | undefined;
2006
+ classes?: string | undefined;
1803
2007
  } | undefined): import("../types/api").RequestData<{
1804
2008
  number: string;
1805
2009
  name: string;
@@ -1855,8 +2059,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1855
2059
  partner_id: string;
1856
2060
  account_number: string;
1857
2061
  reference?: string | undefined;
2062
+ matching_numbers: string[];
1858
2063
  payment_communication?: string | undefined;
1859
2064
  posted: boolean;
2065
+ original_document?: {
2066
+ id?: string | undefined;
2067
+ number?: string | undefined;
2068
+ journal_id?: string | undefined;
2069
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
2070
+ date?: string | undefined;
2071
+ due_date?: string | undefined;
2072
+ reference?: string | undefined;
2073
+ } | undefined;
1860
2074
  }[]>;
1861
2075
  createFinancialEntryOld(financial_entry: {
1862
2076
  date: string;
@@ -1874,8 +2088,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1874
2088
  }[];
1875
2089
  pdf?: string | undefined;
1876
2090
  }, params?: {
1877
- financial_counterpart_account?: string | undefined;
1878
2091
  folder_id?: string | undefined;
2092
+ financial_counterpart_account?: string | undefined;
1879
2093
  } | undefined): import("../types/api").RequestData<{
1880
2094
  date: string;
1881
2095
  journal_id: string;
@@ -1908,8 +2122,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
1908
2122
  }[];
1909
2123
  pdf?: string | undefined;
1910
2124
  }, params?: {
1911
- financial_counterpart_account?: string | undefined;
1912
2125
  folder_id?: string | undefined;
2126
+ financial_counterpart_account?: string | undefined;
1913
2127
  } | undefined): import("../types/api").RequestData<{
1914
2128
  date: string;
1915
2129
  journal_id: string;
@@ -2006,9 +2220,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2006
2220
  }[];
2007
2221
  pdf?: string | undefined;
2008
2222
  posted: boolean;
2223
+ start_date?: string | undefined;
2224
+ end_date?: string | undefined;
2009
2225
  }, params?: {
2010
- force_currency_exchange?: "true" | "false" | undefined;
2011
2226
  folder_id?: string | undefined;
2227
+ force_currency_exchange?: "true" | "false" | undefined;
2012
2228
  } | undefined): import("../types/api").RequestData<{
2013
2229
  reference?: string | undefined;
2014
2230
  due_date?: string | undefined;
@@ -2048,6 +2264,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2048
2264
  matching_number: string;
2049
2265
  balance: number;
2050
2266
  }>;
2267
+ matchEntriesMultiple(body: {
2268
+ matchings: {
2269
+ entries: string[];
2270
+ partner_id: string;
2271
+ }[];
2272
+ }, params?: {
2273
+ folder_id?: string | undefined;
2274
+ } | undefined): import("../types/api").RequestData<{
2275
+ matching_number?: string | undefined;
2276
+ processed: boolean;
2277
+ error_msg?: Record<string, never> | undefined;
2278
+ }[]>;
2051
2279
  getFolders(): import("../types/api").RequestData<{
2052
2280
  id: string;
2053
2281
  name: string;
@@ -2055,14 +2283,23 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2055
2283
  vat?: string | undefined;
2056
2284
  company_number?: string | undefined;
2057
2285
  }[]>;
2286
+ getBookyears(params?: {
2287
+ folder_id?: string | undefined;
2288
+ } | undefined): import("../types/api").RequestData<{
2289
+ name: string;
2290
+ start: string;
2291
+ end: string;
2292
+ closed: boolean;
2293
+ }[]>;
2058
2294
  }>;
2059
2295
  invoicing: import("../types/api").ApiFor<{
2060
2296
  getInvoices(params?: {
2061
2297
  date_from?: string | undefined;
2062
2298
  date_to?: string | undefined;
2063
2299
  payment_status?: "all" | "paid" | "unpaid" | undefined;
2064
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
2065
2300
  updated_after?: string | undefined;
2301
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
2302
+ include_invoice_lines?: "true" | "false" | undefined;
2066
2303
  } | undefined): import("../types/api").RequestData<{
2067
2304
  id: string;
2068
2305
  source_ref: {
@@ -2070,7 +2307,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2070
2307
  model?: string | undefined;
2071
2308
  };
2072
2309
  currency: string;
2073
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2310
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2074
2311
  status: "draft" | "posted" | "cancelled" | "paid";
2075
2312
  invoice_date: string;
2076
2313
  tax_amount: number;
@@ -2087,6 +2324,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2087
2324
  tax_rate?: number | undefined;
2088
2325
  account_number?: string | undefined;
2089
2326
  tax_id?: string | undefined;
2327
+ tax_exemption_reason?: string | undefined;
2090
2328
  unit_of_measure?: string | undefined;
2091
2329
  product_id?: string | undefined;
2092
2330
  product_code?: string | undefined;
@@ -2103,8 +2341,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2103
2341
  model?: string | undefined;
2104
2342
  name?: string | undefined;
2105
2343
  } | undefined;
2344
+ italian_specificities?: {
2345
+ stamp_duty_amount?: number | undefined;
2346
+ withholding_tax?: {
2347
+ rate: number;
2348
+ amount: number;
2349
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2350
+ 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;
2351
+ } | undefined;
2352
+ welfare_fund?: {
2353
+ rate: number;
2354
+ amount: number;
2355
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2356
+ } | undefined;
2357
+ payment_reporting?: {
2358
+ 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;
2359
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2360
+ } | undefined;
2361
+ } | undefined;
2106
2362
  last_updated_on?: string | undefined;
2107
2363
  outstanding_amount?: number | undefined;
2364
+ accounting_date?: string | undefined;
2365
+ payment_method_id?: string | undefined;
2366
+ currency_exchange_rate: number;
2108
2367
  }[]>;
2109
2368
  getInvoiceById(invoiceId: string, params?: {
2110
2369
  include_pdf?: "true" | "false" | undefined;
@@ -2115,7 +2374,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2115
2374
  model?: string | undefined;
2116
2375
  };
2117
2376
  currency: string;
2118
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2377
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2119
2378
  status: "draft" | "posted" | "cancelled" | "paid";
2120
2379
  invoice_date: string;
2121
2380
  tax_amount: number;
@@ -2132,6 +2391,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2132
2391
  tax_rate?: number | undefined;
2133
2392
  account_number?: string | undefined;
2134
2393
  tax_id?: string | undefined;
2394
+ tax_exemption_reason?: string | undefined;
2135
2395
  unit_of_measure?: string | undefined;
2136
2396
  product_id?: string | undefined;
2137
2397
  product_code?: string | undefined;
@@ -2148,12 +2408,33 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2148
2408
  model?: string | undefined;
2149
2409
  name?: string | undefined;
2150
2410
  } | undefined;
2411
+ italian_specificities?: {
2412
+ stamp_duty_amount?: number | undefined;
2413
+ withholding_tax?: {
2414
+ rate: number;
2415
+ amount: number;
2416
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2417
+ 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;
2418
+ } | undefined;
2419
+ welfare_fund?: {
2420
+ rate: number;
2421
+ amount: number;
2422
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2423
+ } | undefined;
2424
+ payment_reporting?: {
2425
+ 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;
2426
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2427
+ } | undefined;
2428
+ } | undefined;
2151
2429
  last_updated_on?: string | undefined;
2152
2430
  outstanding_amount?: number | undefined;
2431
+ accounting_date?: string | undefined;
2432
+ payment_method_id?: string | undefined;
2433
+ currency_exchange_rate: number;
2153
2434
  }>;
2154
2435
  createInvoice(invoice: {
2155
2436
  currency: string;
2156
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2437
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2157
2438
  status: "draft" | "posted" | "cancelled" | "paid";
2158
2439
  invoice_date: string;
2159
2440
  tax_amount: number;
@@ -2170,6 +2451,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2170
2451
  tax_rate?: number | undefined;
2171
2452
  account_number?: string | undefined;
2172
2453
  tax_id?: string | undefined;
2454
+ tax_exemption_reason?: string | undefined;
2173
2455
  unit_of_measure?: string | undefined;
2174
2456
  product_id?: string | undefined;
2175
2457
  product_code?: string | undefined;
@@ -2186,6 +2468,24 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2186
2468
  model?: string | undefined;
2187
2469
  name?: string | undefined;
2188
2470
  } | undefined;
2471
+ italian_specificities?: {
2472
+ stamp_duty_amount?: number | undefined;
2473
+ withholding_tax?: {
2474
+ rate: number;
2475
+ amount: number;
2476
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2477
+ 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;
2478
+ } | undefined;
2479
+ welfare_fund?: {
2480
+ rate: number;
2481
+ amount: number;
2482
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2483
+ } | undefined;
2484
+ payment_reporting?: {
2485
+ 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;
2486
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2487
+ } | undefined;
2488
+ } | undefined;
2189
2489
  }): import("../types/api").RequestData<{
2190
2490
  id: string;
2191
2491
  source_ref: {
@@ -2193,7 +2493,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2193
2493
  model?: string | undefined;
2194
2494
  };
2195
2495
  currency: string;
2196
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
2496
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
2197
2497
  status: "draft" | "posted" | "cancelled" | "paid";
2198
2498
  invoice_date: string;
2199
2499
  tax_amount: number;
@@ -2210,6 +2510,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2210
2510
  tax_rate?: number | undefined;
2211
2511
  account_number?: string | undefined;
2212
2512
  tax_id?: string | undefined;
2513
+ tax_exemption_reason?: string | undefined;
2213
2514
  unit_of_measure?: string | undefined;
2214
2515
  product_id?: string | undefined;
2215
2516
  product_code?: string | undefined;
@@ -2226,8 +2527,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2226
2527
  model?: string | undefined;
2227
2528
  name?: string | undefined;
2228
2529
  } | undefined;
2530
+ italian_specificities?: {
2531
+ stamp_duty_amount?: number | undefined;
2532
+ withholding_tax?: {
2533
+ rate: number;
2534
+ amount: number;
2535
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
2536
+ 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;
2537
+ } | undefined;
2538
+ welfare_fund?: {
2539
+ rate: number;
2540
+ amount: number;
2541
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
2542
+ } | undefined;
2543
+ payment_reporting?: {
2544
+ 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;
2545
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
2546
+ } | undefined;
2547
+ } | undefined;
2229
2548
  last_updated_on?: string | undefined;
2230
2549
  outstanding_amount?: number | undefined;
2550
+ accounting_date?: string | undefined;
2551
+ payment_method_id?: string | undefined;
2552
+ currency_exchange_rate: number;
2231
2553
  }>;
2232
2554
  getProducts(): import("../types/api").RequestData<{
2233
2555
  id: string;
@@ -2524,6 +2846,31 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2524
2846
  }[];
2525
2847
  external_reference?: string | undefined;
2526
2848
  }>;
2849
+ getPayments(): import("../types/api").RequestData<{
2850
+ id: string;
2851
+ source_ref: {
2852
+ id?: string | undefined;
2853
+ model?: string | undefined;
2854
+ };
2855
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
2856
+ description: string;
2857
+ amount: number;
2858
+ currency: string;
2859
+ payment_date: string;
2860
+ partner_id: string;
2861
+ payment_method_id?: string | undefined;
2862
+ payment_method_name?: string | undefined;
2863
+ invoice_id?: string | undefined;
2864
+ invoice_number?: string | undefined;
2865
+ }[]>;
2866
+ getPaymentMethods(): import("../types/api").RequestData<{
2867
+ id: string;
2868
+ source_ref: {
2869
+ id?: string | undefined;
2870
+ model?: string | undefined;
2871
+ };
2872
+ name: string;
2873
+ }[]>;
2527
2874
  }>;
2528
2875
  ecommerce: import("../types/api").ApiFor<{
2529
2876
  getCustomers(): import("../types/api").RequestData<{
@@ -2849,6 +3196,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
2849
3196
  refunded_amount: number;
2850
3197
  currency: string;
2851
3198
  note?: string | undefined;
3199
+ tags: string[];
2852
3200
  lines: {
2853
3201
  id: string;
2854
3202
  source_ref: {
@@ -3125,6 +3473,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3125
3473
  refunded_amount: number;
3126
3474
  currency: string;
3127
3475
  note?: string | undefined;
3476
+ tags: string[];
3128
3477
  lines: {
3129
3478
  id: string;
3130
3479
  source_ref: {
@@ -3360,6 +3709,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3360
3709
  refunded_amount: number;
3361
3710
  currency: string;
3362
3711
  note?: string | undefined;
3712
+ tags: string[];
3363
3713
  lines: {
3364
3714
  id: string;
3365
3715
  source_ref: {
@@ -3660,9 +4010,55 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3660
4010
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
3661
4011
  setConnectionId: (connectionId: string) => Promise<void>;
3662
4012
  setIntegrationId: (integrationId: string) => Promise<void>;
3663
- }, context: any) => any, log?: boolean) => Promise<void>;
3664
- flowId: string;
3665
- name: string;
4013
+ updateConsumer: (body: {
4014
+ name?: string | undefined;
4015
+ email?: string | undefined;
4016
+ internal_reference?: string | undefined;
4017
+ redirect_url?: string | undefined;
4018
+ }) => Promise<{
4019
+ consumerid: string;
4020
+ name: string;
4021
+ email?: string | undefined;
4022
+ internal_reference?: string | undefined;
4023
+ redirect_url?: string | undefined;
4024
+ }>;
4025
+ updateFlowConfig: (syncId: string, flowId: string, body: {
4026
+ triggerid: string;
4027
+ data: Record<string, never>;
4028
+ }) => Promise<{
4029
+ name: string;
4030
+ description?: string | undefined;
4031
+ id: string;
4032
+ config?: {
4033
+ definitionFields?: Record<string, never>[] | undefined;
4034
+ doorkeyFields?: Record<string, never>[] | undefined;
4035
+ customFields?: Record<string, never>[] | undefined;
4036
+ datastores: {
4037
+ id?: string | undefined;
4038
+ name: string;
4039
+ status: "active" | "inactive";
4040
+ definition: {
4041
+ columns: {
4042
+ name: string;
4043
+ title: string;
4044
+ type: string;
4045
+ optional: boolean;
4046
+ }[];
4047
+ search_column?: string | undefined;
4048
+ };
4049
+ }[];
4050
+ } | undefined;
4051
+ values: Record<string, never>;
4052
+ enabled_on?: string | undefined;
4053
+ trigger: {
4054
+ id: string;
4055
+ type: "event" | "timer";
4056
+ cronschedule?: string | undefined;
4057
+ };
4058
+ }>;
4059
+ }, context: any) => any, log?: boolean) => Promise<void>;
4060
+ flowId: string;
4061
+ name: string;
3666
4062
  }>;
3667
4063
  getFlows: () => {
3668
4064
  execute: ({ testData, context }: any) => Promise<void>;
@@ -3672,10 +4068,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3672
4068
  end?: string | undefined;
3673
4069
  status: string;
3674
4070
  }>;
4071
+ getConsumerExecutions: (consumerId: string) => Promise<{
4072
+ id: string;
4073
+ start: string;
4074
+ end?: string | undefined;
4075
+ status: string;
4076
+ }[]>;
3675
4077
  executeLocal: (process: (consumer: (internalApi: InternalAPI, body: {
3676
4078
  consumerid: string;
3677
4079
  name: string;
3678
4080
  email?: string | undefined;
4081
+ internal_reference?: string | undefined;
3679
4082
  redirect_url?: string | undefined;
3680
4083
  }) => {
3681
4084
  consumerId: string;
@@ -3790,6 +4193,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3790
4193
  }[];
3791
4194
  items: {
3792
4195
  id: string;
4196
+ type?: "menu" | "product" | undefined;
4197
+ menu_id?: string | undefined;
3793
4198
  quantity: number;
3794
4199
  unit_price: number;
3795
4200
  total: number;
@@ -3799,6 +4204,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3799
4204
  discounts: {
3800
4205
  name?: string | undefined;
3801
4206
  total: number;
4207
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
3802
4208
  }[];
3803
4209
  product_id?: string | undefined;
3804
4210
  accounting_category_id?: string | undefined;
@@ -3865,6 +4271,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3865
4271
  }[];
3866
4272
  items: {
3867
4273
  id: string;
4274
+ type?: "menu" | "product" | undefined;
4275
+ menu_id?: string | undefined;
3868
4276
  quantity: number;
3869
4277
  unit_price: number;
3870
4278
  total: number;
@@ -3874,6 +4282,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
3874
4282
  discounts: {
3875
4283
  name?: string | undefined;
3876
4284
  total: number;
4285
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
3877
4286
  }[];
3878
4287
  product_id?: string | undefined;
3879
4288
  accounting_category_id?: string | undefined;
@@ -4037,6 +4446,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4037
4446
  }[];
4038
4447
  items: {
4039
4448
  id: string;
4449
+ type?: "menu" | "product" | undefined;
4450
+ menu_id?: string | undefined;
4040
4451
  quantity: number;
4041
4452
  unit_price: number;
4042
4453
  total: number;
@@ -4046,6 +4457,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4046
4457
  discounts: {
4047
4458
  name?: string | undefined;
4048
4459
  total: number;
4460
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
4049
4461
  }[];
4050
4462
  product_id?: string | undefined;
4051
4463
  accounting_category_id?: string | undefined;
@@ -4056,7 +4468,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4056
4468
  } | undefined): import("../types/api").RequestData<{
4057
4469
  id: string;
4058
4470
  name: string;
4059
- id_parent?: string | undefined;
4060
4471
  code?: string | undefined;
4061
4472
  ledger_account_code?: string | undefined;
4062
4473
  posting_account_code?: string | undefined;
@@ -4117,6 +4528,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4117
4528
  id?: string | undefined;
4118
4529
  model?: string | undefined;
4119
4530
  };
4531
+ type?: "menu" | "product" | undefined;
4532
+ menu_id?: string | undefined;
4120
4533
  quantity: number;
4121
4534
  unit_price: number;
4122
4535
  total: number;
@@ -4126,11 +4539,62 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4126
4539
  discounts: {
4127
4540
  name?: string | undefined;
4128
4541
  total: number;
4542
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
4129
4543
  }[];
4130
4544
  product_id?: string | undefined;
4131
4545
  accounting_category_id?: string | undefined;
4132
4546
  }[];
4133
4547
  service_id?: string | undefined;
4548
+ reservation?: {
4549
+ id: string;
4550
+ source_ref: {
4551
+ id?: string | undefined;
4552
+ model?: string | undefined;
4553
+ };
4554
+ start_date?: string | undefined;
4555
+ end_date?: string | undefined;
4556
+ creation_date?: string | undefined;
4557
+ resource_id?: {
4558
+ id: string;
4559
+ source_ref: {
4560
+ id?: string | undefined;
4561
+ model?: string | undefined;
4562
+ };
4563
+ } | undefined;
4564
+ resource_name?: string | undefined;
4565
+ resource_identifier?: string | undefined;
4566
+ } | undefined;
4567
+ bills?: {
4568
+ id: string;
4569
+ source_ref: {
4570
+ id?: string | undefined;
4571
+ model?: string | undefined;
4572
+ };
4573
+ invoice_number?: string | undefined;
4574
+ creation_date?: string | undefined;
4575
+ closing_date?: string | undefined;
4576
+ partners?: {
4577
+ id: string;
4578
+ source_ref: {
4579
+ id?: string | undefined;
4580
+ model?: string | undefined;
4581
+ };
4582
+ type: "owner" | "account";
4583
+ address?: {
4584
+ address_type?: string | undefined;
4585
+ name?: string | undefined;
4586
+ street?: string | undefined;
4587
+ number?: string | undefined;
4588
+ box?: string | undefined;
4589
+ city?: string | undefined;
4590
+ postal_code?: string | undefined;
4591
+ country?: string | undefined;
4592
+ } | undefined;
4593
+ first_name?: string | undefined;
4594
+ last_name?: string | undefined;
4595
+ company_name?: string | undefined;
4596
+ }[] | undefined;
4597
+ }[] | undefined;
4134
4598
  }[]>;
4135
4599
  getPaymentMethods(params?: {
4136
4600
  location_id?: string | undefined;
@@ -4166,6 +4630,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4166
4630
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
4167
4631
  currency?: string | undefined;
4168
4632
  date?: string | undefined;
4633
+ partner_id?: {
4634
+ id: string;
4635
+ source_ref: {
4636
+ id?: string | undefined;
4637
+ model?: string | undefined;
4638
+ };
4639
+ } | undefined;
4169
4640
  }[]>;
4170
4641
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
4171
4642
  id: string;
@@ -4174,11 +4645,132 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4174
4645
  model?: string | undefined;
4175
4646
  };
4176
4647
  name: string;
4177
- id_parent?: string | undefined;
4178
4648
  code?: string | undefined;
4179
4649
  ledger_account_code?: string | undefined;
4180
4650
  posting_account_code?: string | undefined;
4181
4651
  }[]>;
4652
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
4653
+ id: string;
4654
+ source_ref: {
4655
+ id?: string | undefined;
4656
+ model?: string | undefined;
4657
+ };
4658
+ first_name?: string | undefined;
4659
+ last_name?: string | undefined;
4660
+ company_name?: string | undefined;
4661
+ phone?: string | undefined;
4662
+ email?: string | undefined;
4663
+ account_number?: string | undefined;
4664
+ created_on?: string | undefined;
4665
+ addresses?: {
4666
+ address_type?: string | undefined;
4667
+ name?: string | undefined;
4668
+ street?: string | undefined;
4669
+ number?: string | undefined;
4670
+ box?: string | undefined;
4671
+ city?: string | undefined;
4672
+ postal_code?: string | undefined;
4673
+ country?: string | undefined;
4674
+ }[] | undefined;
4675
+ }[]>;
4676
+ getInvoices(params?: {
4677
+ date_from: string;
4678
+ date_to: string;
4679
+ location_id?: string | undefined;
4680
+ } | undefined): import("../types/api").RequestData<{
4681
+ id: string;
4682
+ source_ref: {
4683
+ id?: string | undefined;
4684
+ model?: string | undefined;
4685
+ };
4686
+ invoice_number?: string | undefined;
4687
+ creation_date?: string | undefined;
4688
+ closing_date?: string | undefined;
4689
+ partners?: {
4690
+ id: string;
4691
+ source_ref: {
4692
+ id?: string | undefined;
4693
+ model?: string | undefined;
4694
+ };
4695
+ type: "owner" | "account";
4696
+ address?: {
4697
+ address_type?: string | undefined;
4698
+ name?: string | undefined;
4699
+ street?: string | undefined;
4700
+ number?: string | undefined;
4701
+ box?: string | undefined;
4702
+ city?: string | undefined;
4703
+ postal_code?: string | undefined;
4704
+ country?: string | undefined;
4705
+ } | undefined;
4706
+ first_name?: string | undefined;
4707
+ last_name?: string | undefined;
4708
+ company_name?: string | undefined;
4709
+ }[] | undefined;
4710
+ items: {
4711
+ id: string;
4712
+ source_ref: {
4713
+ id?: string | undefined;
4714
+ model?: string | undefined;
4715
+ };
4716
+ type?: "menu" | "product" | undefined;
4717
+ menu_id?: string | undefined;
4718
+ quantity: number;
4719
+ unit_price: number;
4720
+ total: number;
4721
+ tax_amount: number;
4722
+ tax_rate?: number | undefined;
4723
+ description?: string | undefined;
4724
+ discounts: {
4725
+ name?: string | undefined;
4726
+ total: number;
4727
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
4728
+ }[];
4729
+ product_id?: string | undefined;
4730
+ accounting_category_id?: string | undefined;
4731
+ }[];
4732
+ payments: {
4733
+ id?: string | undefined;
4734
+ source_ref: {
4735
+ id?: string | undefined;
4736
+ model?: string | undefined;
4737
+ };
4738
+ payment_method_id?: string | undefined;
4739
+ payment_method_name?: string | undefined;
4740
+ total: number;
4741
+ tip: number;
4742
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
4743
+ currency?: string | undefined;
4744
+ date?: string | undefined;
4745
+ partner_id?: {
4746
+ id: string;
4747
+ source_ref: {
4748
+ id?: string | undefined;
4749
+ model?: string | undefined;
4750
+ };
4751
+ } | undefined;
4752
+ }[];
4753
+ service_id?: string | undefined;
4754
+ reservation?: {
4755
+ id: string;
4756
+ source_ref: {
4757
+ id?: string | undefined;
4758
+ model?: string | undefined;
4759
+ };
4760
+ start_date?: string | undefined;
4761
+ end_date?: string | undefined;
4762
+ creation_date?: string | undefined;
4763
+ resource_id?: {
4764
+ id: string;
4765
+ source_ref: {
4766
+ id?: string | undefined;
4767
+ model?: string | undefined;
4768
+ };
4769
+ } | undefined;
4770
+ resource_name?: string | undefined;
4771
+ resource_identifier?: string | undefined;
4772
+ } | undefined;
4773
+ }[]>;
4182
4774
  }>;
4183
4775
  payment: import("../types/api").ApiFor<{
4184
4776
  getPayments(params: {
@@ -4230,8 +4822,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4230
4822
  payment_id?: string | undefined;
4231
4823
  }[]>;
4232
4824
  getPayment(params: {
4233
- payment_id: string;
4234
4825
  consumer_id: string;
4826
+ payment_id: string;
4235
4827
  }): import("../types/api").RequestData<{
4236
4828
  id: string;
4237
4829
  source_ref: {
@@ -4272,7 +4864,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4272
4864
  active: boolean;
4273
4865
  }[]>;
4274
4866
  getClients(params?: {
4867
+ search?: string | undefined;
4275
4868
  folder_id?: string | undefined;
4869
+ updated_after?: string | undefined;
4276
4870
  } | undefined): import("../types/api").RequestData<{
4277
4871
  external_reference?: string | undefined;
4278
4872
  first_name?: string | undefined;
@@ -4343,8 +4937,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4343
4937
  }[];
4344
4938
  account_number?: string | undefined;
4345
4939
  }, params?: {
4346
- force_merge?: string | undefined;
4347
4940
  folder_id?: string | undefined;
4941
+ force_merge?: string | undefined;
4348
4942
  } | undefined): import("../types/api").RequestData<{
4349
4943
  external_reference?: string | undefined;
4350
4944
  first_name?: string | undefined;
@@ -4490,7 +5084,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4490
5084
  id?: string | undefined;
4491
5085
  }>;
4492
5086
  getSuppliers(params?: {
5087
+ search?: string | undefined;
4493
5088
  folder_id?: string | undefined;
5089
+ updated_after?: string | undefined;
4494
5090
  } | undefined): import("../types/api").RequestData<{
4495
5091
  external_reference?: string | undefined;
4496
5092
  first_name?: string | undefined;
@@ -4561,8 +5157,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4561
5157
  }[];
4562
5158
  account_number?: string | undefined;
4563
5159
  }, params?: {
4564
- force_merge?: string | undefined;
4565
5160
  folder_id?: string | undefined;
5161
+ force_merge?: string | undefined;
4566
5162
  } | undefined): import("../types/api").RequestData<{
4567
5163
  external_reference?: string | undefined;
4568
5164
  first_name?: string | undefined;
@@ -4756,9 +5352,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4756
5352
  analytic_account?: string | undefined;
4757
5353
  }[];
4758
5354
  }, params?: {
5355
+ folder_id?: string | undefined;
4759
5356
  force_financial_period?: string | undefined;
4760
5357
  regroup_lines?: "true" | "false" | undefined;
4761
- folder_id?: string | undefined;
4762
5358
  } | undefined): import("../types/api").RequestData<{
4763
5359
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4764
5360
  invoice_number?: string | undefined;
@@ -4859,9 +5455,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4859
5455
  }[];
4860
5456
  }[];
4861
5457
  }, params?: {
5458
+ folder_id?: string | undefined;
4862
5459
  force_financial_period?: string | undefined;
4863
5460
  regroup_lines?: "true" | "false" | undefined;
4864
- folder_id?: string | undefined;
4865
5461
  } | undefined): import("../types/api").RequestData<{
4866
5462
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4867
5463
  invoice_number?: string | undefined;
@@ -4920,6 +5516,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4920
5516
  journal_ids?: string | undefined;
4921
5517
  include_payments?: "true" | "false" | undefined;
4922
5518
  payment_status?: "all" | "paid" | "unpaid" | undefined;
5519
+ updated_after?: string | undefined;
4923
5520
  } | undefined): import("../types/api").RequestData<{
4924
5521
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4925
5522
  invoice_number?: string | undefined;
@@ -4966,8 +5563,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
4966
5563
  }[];
4967
5564
  }[]>;
4968
5565
  getInvoice(invoiceId: string, params?: {
4969
- include_payments?: "true" | "false" | undefined;
4970
5566
  folder_id?: string | undefined;
5567
+ include_payments?: "true" | "false" | undefined;
4971
5568
  } | undefined): import("../types/api").RequestData<{
4972
5569
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
4973
5570
  invoice_number?: string | undefined;
@@ -5014,8 +5611,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5014
5611
  }[];
5015
5612
  }>;
5016
5613
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
5017
- include_payments?: "true" | "false" | undefined;
5018
5614
  folder_id?: string | undefined;
5615
+ include_payments?: "true" | "false" | undefined;
5019
5616
  } | undefined): import("../types/api").RequestData<{
5020
5617
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5021
5618
  invoice_number?: string | undefined;
@@ -5074,6 +5671,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5074
5671
  journal_ids?: string | undefined;
5075
5672
  include_payments?: "true" | "false" | undefined;
5076
5673
  payment_status?: "all" | "paid" | "unpaid" | undefined;
5674
+ updated_after?: string | undefined;
5077
5675
  } | undefined): import("../types/api").RequestData<{
5078
5676
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
5079
5677
  invoice_number?: string | undefined;
@@ -5246,9 +5844,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5246
5844
  analytic_plan: string;
5247
5845
  }[]>;
5248
5846
  getJournalEntries(params: {
5249
- date_from: string;
5250
- date_to: string;
5847
+ date_from?: string | undefined;
5848
+ date_to?: string | undefined;
5251
5849
  folder_id?: string | undefined;
5850
+ updated_after?: string | undefined;
5252
5851
  unposted_allowed: "true" | "false";
5253
5852
  journal_id: string;
5254
5853
  partner_id?: string | undefined;
@@ -5278,9 +5877,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5278
5877
  }[];
5279
5878
  }[]>;
5280
5879
  getJournalEntriesWithMultiplePlans(params: {
5281
- date_from: string;
5282
- date_to: string;
5880
+ date_from?: string | undefined;
5881
+ date_to?: string | undefined;
5283
5882
  folder_id?: string | undefined;
5883
+ updated_after?: string | undefined;
5284
5884
  unposted_allowed: "true" | "false";
5285
5885
  journal_id: string;
5286
5886
  partner_id?: string | undefined;
@@ -5315,9 +5915,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5315
5915
  }[];
5316
5916
  }[]>;
5317
5917
  getPaymentsByInvoiceId(invoice_id: string, params?: {
5318
- folder_id?: string | undefined;
5319
5918
  page?: number | undefined;
5320
5919
  size?: number | undefined;
5920
+ folder_id?: string | undefined;
5321
5921
  } | undefined): import("../types/api").RequestData<{
5322
5922
  id: string;
5323
5923
  name: string;
@@ -5441,8 +6041,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5441
6041
  attachPDF(invoice_id: string, attachment: {
5442
6042
  base64_string: string;
5443
6043
  }, params?: {
5444
- overwrite_existing?: "true" | "false" | undefined;
5445
6044
  folder_id?: string | undefined;
6045
+ overwrite_existing?: "true" | "false" | undefined;
5446
6046
  } | undefined): import("../types/api").RequestData<{
5447
6047
  headers: {
5448
6048
  [name: string]: unknown;
@@ -5459,8 +6059,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5459
6059
  base64_string: string;
5460
6060
  }[]>;
5461
6061
  getChartOfAccounts(params?: {
5462
- classes?: string | undefined;
5463
6062
  folder_id?: string | undefined;
6063
+ classes?: string | undefined;
5464
6064
  } | undefined): import("../types/api").RequestData<{
5465
6065
  number: string;
5466
6066
  name: string;
@@ -5516,8 +6116,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5516
6116
  partner_id: string;
5517
6117
  account_number: string;
5518
6118
  reference?: string | undefined;
6119
+ matching_numbers: string[];
5519
6120
  payment_communication?: string | undefined;
5520
6121
  posted: boolean;
6122
+ original_document?: {
6123
+ id?: string | undefined;
6124
+ number?: string | undefined;
6125
+ journal_id?: string | undefined;
6126
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
6127
+ date?: string | undefined;
6128
+ due_date?: string | undefined;
6129
+ reference?: string | undefined;
6130
+ } | undefined;
5521
6131
  }[]>;
5522
6132
  createFinancialEntryOld(financial_entry: {
5523
6133
  date: string;
@@ -5535,8 +6145,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5535
6145
  }[];
5536
6146
  pdf?: string | undefined;
5537
6147
  }, params?: {
5538
- financial_counterpart_account?: string | undefined;
5539
6148
  folder_id?: string | undefined;
6149
+ financial_counterpart_account?: string | undefined;
5540
6150
  } | undefined): import("../types/api").RequestData<{
5541
6151
  date: string;
5542
6152
  journal_id: string;
@@ -5569,8 +6179,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5569
6179
  }[];
5570
6180
  pdf?: string | undefined;
5571
6181
  }, params?: {
5572
- financial_counterpart_account?: string | undefined;
5573
6182
  folder_id?: string | undefined;
6183
+ financial_counterpart_account?: string | undefined;
5574
6184
  } | undefined): import("../types/api").RequestData<{
5575
6185
  date: string;
5576
6186
  journal_id: string;
@@ -5667,9 +6277,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5667
6277
  }[];
5668
6278
  pdf?: string | undefined;
5669
6279
  posted: boolean;
6280
+ start_date?: string | undefined;
6281
+ end_date?: string | undefined;
5670
6282
  }, params?: {
5671
- force_currency_exchange?: "true" | "false" | undefined;
5672
6283
  folder_id?: string | undefined;
6284
+ force_currency_exchange?: "true" | "false" | undefined;
5673
6285
  } | undefined): import("../types/api").RequestData<{
5674
6286
  reference?: string | undefined;
5675
6287
  due_date?: string | undefined;
@@ -5709,6 +6321,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5709
6321
  matching_number: string;
5710
6322
  balance: number;
5711
6323
  }>;
6324
+ matchEntriesMultiple(body: {
6325
+ matchings: {
6326
+ entries: string[];
6327
+ partner_id: string;
6328
+ }[];
6329
+ }, params?: {
6330
+ folder_id?: string | undefined;
6331
+ } | undefined): import("../types/api").RequestData<{
6332
+ matching_number?: string | undefined;
6333
+ processed: boolean;
6334
+ error_msg?: Record<string, never> | undefined;
6335
+ }[]>;
5712
6336
  getFolders(): import("../types/api").RequestData<{
5713
6337
  id: string;
5714
6338
  name: string;
@@ -5716,14 +6340,23 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5716
6340
  vat?: string | undefined;
5717
6341
  company_number?: string | undefined;
5718
6342
  }[]>;
6343
+ getBookyears(params?: {
6344
+ folder_id?: string | undefined;
6345
+ } | undefined): import("../types/api").RequestData<{
6346
+ name: string;
6347
+ start: string;
6348
+ end: string;
6349
+ closed: boolean;
6350
+ }[]>;
5719
6351
  }>;
5720
6352
  invoicing: import("../types/api").ApiFor<{
5721
6353
  getInvoices(params?: {
5722
6354
  date_from?: string | undefined;
5723
6355
  date_to?: string | undefined;
5724
6356
  payment_status?: "all" | "paid" | "unpaid" | undefined;
5725
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
5726
6357
  updated_after?: string | undefined;
6358
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
6359
+ include_invoice_lines?: "true" | "false" | undefined;
5727
6360
  } | undefined): import("../types/api").RequestData<{
5728
6361
  id: string;
5729
6362
  source_ref: {
@@ -5731,7 +6364,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5731
6364
  model?: string | undefined;
5732
6365
  };
5733
6366
  currency: string;
5734
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6367
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5735
6368
  status: "draft" | "posted" | "cancelled" | "paid";
5736
6369
  invoice_date: string;
5737
6370
  tax_amount: number;
@@ -5748,6 +6381,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5748
6381
  tax_rate?: number | undefined;
5749
6382
  account_number?: string | undefined;
5750
6383
  tax_id?: string | undefined;
6384
+ tax_exemption_reason?: string | undefined;
5751
6385
  unit_of_measure?: string | undefined;
5752
6386
  product_id?: string | undefined;
5753
6387
  product_code?: string | undefined;
@@ -5764,8 +6398,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5764
6398
  model?: string | undefined;
5765
6399
  name?: string | undefined;
5766
6400
  } | undefined;
6401
+ italian_specificities?: {
6402
+ stamp_duty_amount?: number | undefined;
6403
+ withholding_tax?: {
6404
+ rate: number;
6405
+ amount: number;
6406
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
6407
+ 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;
6408
+ } | undefined;
6409
+ welfare_fund?: {
6410
+ rate: number;
6411
+ amount: number;
6412
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
6413
+ } | undefined;
6414
+ payment_reporting?: {
6415
+ 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;
6416
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
6417
+ } | undefined;
6418
+ } | undefined;
5767
6419
  last_updated_on?: string | undefined;
5768
6420
  outstanding_amount?: number | undefined;
6421
+ accounting_date?: string | undefined;
6422
+ payment_method_id?: string | undefined;
6423
+ currency_exchange_rate: number;
5769
6424
  }[]>;
5770
6425
  getInvoiceById(invoiceId: string, params?: {
5771
6426
  include_pdf?: "true" | "false" | undefined;
@@ -5776,7 +6431,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5776
6431
  model?: string | undefined;
5777
6432
  };
5778
6433
  currency: string;
5779
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6434
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5780
6435
  status: "draft" | "posted" | "cancelled" | "paid";
5781
6436
  invoice_date: string;
5782
6437
  tax_amount: number;
@@ -5793,6 +6448,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5793
6448
  tax_rate?: number | undefined;
5794
6449
  account_number?: string | undefined;
5795
6450
  tax_id?: string | undefined;
6451
+ tax_exemption_reason?: string | undefined;
5796
6452
  unit_of_measure?: string | undefined;
5797
6453
  product_id?: string | undefined;
5798
6454
  product_code?: string | undefined;
@@ -5809,12 +6465,33 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5809
6465
  model?: string | undefined;
5810
6466
  name?: string | undefined;
5811
6467
  } | undefined;
6468
+ italian_specificities?: {
6469
+ stamp_duty_amount?: number | undefined;
6470
+ withholding_tax?: {
6471
+ rate: number;
6472
+ amount: number;
6473
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
6474
+ 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;
6475
+ } | undefined;
6476
+ welfare_fund?: {
6477
+ rate: number;
6478
+ amount: number;
6479
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
6480
+ } | undefined;
6481
+ payment_reporting?: {
6482
+ 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;
6483
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
6484
+ } | undefined;
6485
+ } | undefined;
5812
6486
  last_updated_on?: string | undefined;
5813
6487
  outstanding_amount?: number | undefined;
6488
+ accounting_date?: string | undefined;
6489
+ payment_method_id?: string | undefined;
6490
+ currency_exchange_rate: number;
5814
6491
  }>;
5815
6492
  createInvoice(invoice: {
5816
6493
  currency: string;
5817
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6494
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5818
6495
  status: "draft" | "posted" | "cancelled" | "paid";
5819
6496
  invoice_date: string;
5820
6497
  tax_amount: number;
@@ -5831,6 +6508,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5831
6508
  tax_rate?: number | undefined;
5832
6509
  account_number?: string | undefined;
5833
6510
  tax_id?: string | undefined;
6511
+ tax_exemption_reason?: string | undefined;
5834
6512
  unit_of_measure?: string | undefined;
5835
6513
  product_id?: string | undefined;
5836
6514
  product_code?: string | undefined;
@@ -5847,6 +6525,24 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5847
6525
  model?: string | undefined;
5848
6526
  name?: string | undefined;
5849
6527
  } | undefined;
6528
+ italian_specificities?: {
6529
+ stamp_duty_amount?: number | undefined;
6530
+ withholding_tax?: {
6531
+ rate: number;
6532
+ amount: number;
6533
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
6534
+ 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;
6535
+ } | undefined;
6536
+ welfare_fund?: {
6537
+ rate: number;
6538
+ amount: number;
6539
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
6540
+ } | undefined;
6541
+ payment_reporting?: {
6542
+ 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;
6543
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
6544
+ } | undefined;
6545
+ } | undefined;
5850
6546
  }): import("../types/api").RequestData<{
5851
6547
  id: string;
5852
6548
  source_ref: {
@@ -5854,7 +6550,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5854
6550
  model?: string | undefined;
5855
6551
  };
5856
6552
  currency: string;
5857
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
6553
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
5858
6554
  status: "draft" | "posted" | "cancelled" | "paid";
5859
6555
  invoice_date: string;
5860
6556
  tax_amount: number;
@@ -5871,6 +6567,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5871
6567
  tax_rate?: number | undefined;
5872
6568
  account_number?: string | undefined;
5873
6569
  tax_id?: string | undefined;
6570
+ tax_exemption_reason?: string | undefined;
5874
6571
  unit_of_measure?: string | undefined;
5875
6572
  product_id?: string | undefined;
5876
6573
  product_code?: string | undefined;
@@ -5887,8 +6584,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
5887
6584
  model?: string | undefined;
5888
6585
  name?: string | undefined;
5889
6586
  } | undefined;
6587
+ italian_specificities?: {
6588
+ stamp_duty_amount?: number | undefined;
6589
+ withholding_tax?: {
6590
+ rate: number;
6591
+ amount: number;
6592
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
6593
+ 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;
6594
+ } | undefined;
6595
+ welfare_fund?: {
6596
+ rate: number;
6597
+ amount: number;
6598
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
6599
+ } | undefined;
6600
+ payment_reporting?: {
6601
+ 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;
6602
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
6603
+ } | undefined;
6604
+ } | undefined;
5890
6605
  last_updated_on?: string | undefined;
5891
6606
  outstanding_amount?: number | undefined;
6607
+ accounting_date?: string | undefined;
6608
+ payment_method_id?: string | undefined;
6609
+ currency_exchange_rate: number;
5892
6610
  }>;
5893
6611
  getProducts(): import("../types/api").RequestData<{
5894
6612
  id: string;
@@ -6185,6 +6903,31 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6185
6903
  }[];
6186
6904
  external_reference?: string | undefined;
6187
6905
  }>;
6906
+ getPayments(): import("../types/api").RequestData<{
6907
+ id: string;
6908
+ source_ref: {
6909
+ id?: string | undefined;
6910
+ model?: string | undefined;
6911
+ };
6912
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
6913
+ description: string;
6914
+ amount: number;
6915
+ currency: string;
6916
+ payment_date: string;
6917
+ partner_id: string;
6918
+ payment_method_id?: string | undefined;
6919
+ payment_method_name?: string | undefined;
6920
+ invoice_id?: string | undefined;
6921
+ invoice_number?: string | undefined;
6922
+ }[]>;
6923
+ getPaymentMethods(): import("../types/api").RequestData<{
6924
+ id: string;
6925
+ source_ref: {
6926
+ id?: string | undefined;
6927
+ model?: string | undefined;
6928
+ };
6929
+ name: string;
6930
+ }[]>;
6188
6931
  }>;
6189
6932
  ecommerce: import("../types/api").ApiFor<{
6190
6933
  getCustomers(): import("../types/api").RequestData<{
@@ -6510,6 +7253,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6510
7253
  refunded_amount: number;
6511
7254
  currency: string;
6512
7255
  note?: string | undefined;
7256
+ tags: string[];
6513
7257
  lines: {
6514
7258
  id: string;
6515
7259
  source_ref: {
@@ -6786,6 +7530,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
6786
7530
  refunded_amount: number;
6787
7531
  currency: string;
6788
7532
  note?: string | undefined;
7533
+ tags: string[];
6789
7534
  lines: {
6790
7535
  id: string;
6791
7536
  source_ref: {
@@ -7021,6 +7766,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7021
7766
  refunded_amount: number;
7022
7767
  currency: string;
7023
7768
  note?: string | undefined;
7769
+ tags: string[];
7024
7770
  lines: {
7025
7771
  id: string;
7026
7772
  source_ref: {
@@ -7321,6 +8067,52 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7321
8067
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
7322
8068
  setConnectionId: (connectionId: string) => Promise<void>;
7323
8069
  setIntegrationId: (integrationId: string) => Promise<void>;
8070
+ updateConsumer: (body: {
8071
+ name?: string | undefined;
8072
+ email?: string | undefined;
8073
+ internal_reference?: string | undefined;
8074
+ redirect_url?: string | undefined;
8075
+ }) => Promise<{
8076
+ consumerid: string;
8077
+ name: string;
8078
+ email?: string | undefined;
8079
+ internal_reference?: string | undefined;
8080
+ redirect_url?: string | undefined;
8081
+ }>;
8082
+ updateFlowConfig: (syncId: string, flowId: string, body: {
8083
+ triggerid: string;
8084
+ data: Record<string, never>;
8085
+ }) => Promise<{
8086
+ name: string;
8087
+ description?: string | undefined;
8088
+ id: string;
8089
+ config?: {
8090
+ definitionFields?: Record<string, never>[] | undefined;
8091
+ doorkeyFields?: Record<string, never>[] | undefined;
8092
+ customFields?: Record<string, never>[] | undefined;
8093
+ datastores: {
8094
+ id?: string | undefined;
8095
+ name: string;
8096
+ status: "active" | "inactive";
8097
+ definition: {
8098
+ columns: {
8099
+ name: string;
8100
+ title: string;
8101
+ type: string;
8102
+ optional: boolean;
8103
+ }[];
8104
+ search_column?: string | undefined;
8105
+ };
8106
+ }[];
8107
+ } | undefined;
8108
+ values: Record<string, never>;
8109
+ enabled_on?: string | undefined;
8110
+ trigger: {
8111
+ id: string;
8112
+ type: "event" | "timer";
8113
+ cronschedule?: string | undefined;
8114
+ };
8115
+ }>;
7324
8116
  }, context: any) => any, log?: boolean) => Promise<void>;
7325
8117
  flowId: string;
7326
8118
  name: string;
@@ -7333,10 +8125,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7333
8125
  end?: string | undefined;
7334
8126
  status: string;
7335
8127
  }>;
8128
+ getConsumerExecutions: (consumerId: string) => Promise<{
8129
+ id: string;
8130
+ start: string;
8131
+ end?: string | undefined;
8132
+ status: string;
8133
+ }[]>;
7336
8134
  executeLocal: (process: (consumer: (internalApi: InternalAPI, body: {
7337
8135
  consumerid: string;
7338
8136
  name: string;
7339
8137
  email?: string | undefined;
8138
+ internal_reference?: string | undefined;
7340
8139
  redirect_url?: string | undefined;
7341
8140
  }) => {
7342
8141
  consumerId: string;
@@ -7451,6 +8250,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7451
8250
  }[];
7452
8251
  items: {
7453
8252
  id: string;
8253
+ type?: "menu" | "product" | undefined;
8254
+ menu_id?: string | undefined;
7454
8255
  quantity: number;
7455
8256
  unit_price: number;
7456
8257
  total: number;
@@ -7460,6 +8261,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7460
8261
  discounts: {
7461
8262
  name?: string | undefined;
7462
8263
  total: number;
8264
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7463
8265
  }[];
7464
8266
  product_id?: string | undefined;
7465
8267
  accounting_category_id?: string | undefined;
@@ -7526,6 +8328,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7526
8328
  }[];
7527
8329
  items: {
7528
8330
  id: string;
8331
+ type?: "menu" | "product" | undefined;
8332
+ menu_id?: string | undefined;
7529
8333
  quantity: number;
7530
8334
  unit_price: number;
7531
8335
  total: number;
@@ -7535,6 +8339,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7535
8339
  discounts: {
7536
8340
  name?: string | undefined;
7537
8341
  total: number;
8342
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7538
8343
  }[];
7539
8344
  product_id?: string | undefined;
7540
8345
  accounting_category_id?: string | undefined;
@@ -7698,6 +8503,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7698
8503
  }[];
7699
8504
  items: {
7700
8505
  id: string;
8506
+ type?: "menu" | "product" | undefined;
8507
+ menu_id?: string | undefined;
7701
8508
  quantity: number;
7702
8509
  unit_price: number;
7703
8510
  total: number;
@@ -7707,6 +8514,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7707
8514
  discounts: {
7708
8515
  name?: string | undefined;
7709
8516
  total: number;
8517
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7710
8518
  }[];
7711
8519
  product_id?: string | undefined;
7712
8520
  accounting_category_id?: string | undefined;
@@ -7717,7 +8525,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7717
8525
  } | undefined): import("../types/api").RequestData<{
7718
8526
  id: string;
7719
8527
  name: string;
7720
- id_parent?: string | undefined;
7721
8528
  code?: string | undefined;
7722
8529
  ledger_account_code?: string | undefined;
7723
8530
  posting_account_code?: string | undefined;
@@ -7766,18 +8573,205 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7766
8573
  loyalty?: number | undefined;
7767
8574
  customer_id?: string | undefined;
7768
8575
  location_id?: string | undefined;
7769
- taxes?: {
7770
- tax_rate: number;
7771
- tax_amount: number;
7772
- total: number;
8576
+ taxes?: {
8577
+ tax_rate: number;
8578
+ tax_amount: number;
8579
+ total: number;
8580
+ }[] | undefined;
8581
+ guests?: number | undefined;
8582
+ items: {
8583
+ id: string;
8584
+ source_ref: {
8585
+ id?: string | undefined;
8586
+ model?: string | undefined;
8587
+ };
8588
+ type?: "menu" | "product" | undefined;
8589
+ menu_id?: string | undefined;
8590
+ quantity: number;
8591
+ unit_price: number;
8592
+ total: number;
8593
+ tax_amount: number;
8594
+ tax_rate?: number | undefined;
8595
+ description?: string | undefined;
8596
+ discounts: {
8597
+ name?: string | undefined;
8598
+ total: number;
8599
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
8600
+ }[];
8601
+ product_id?: string | undefined;
8602
+ accounting_category_id?: string | undefined;
8603
+ }[];
8604
+ service_id?: string | undefined;
8605
+ reservation?: {
8606
+ id: string;
8607
+ source_ref: {
8608
+ id?: string | undefined;
8609
+ model?: string | undefined;
8610
+ };
8611
+ start_date?: string | undefined;
8612
+ end_date?: string | undefined;
8613
+ creation_date?: string | undefined;
8614
+ resource_id?: {
8615
+ id: string;
8616
+ source_ref: {
8617
+ id?: string | undefined;
8618
+ model?: string | undefined;
8619
+ };
8620
+ } | undefined;
8621
+ resource_name?: string | undefined;
8622
+ resource_identifier?: string | undefined;
8623
+ } | undefined;
8624
+ bills?: {
8625
+ id: string;
8626
+ source_ref: {
8627
+ id?: string | undefined;
8628
+ model?: string | undefined;
8629
+ };
8630
+ invoice_number?: string | undefined;
8631
+ creation_date?: string | undefined;
8632
+ closing_date?: string | undefined;
8633
+ partners?: {
8634
+ id: string;
8635
+ source_ref: {
8636
+ id?: string | undefined;
8637
+ model?: string | undefined;
8638
+ };
8639
+ type: "owner" | "account";
8640
+ address?: {
8641
+ address_type?: string | undefined;
8642
+ name?: string | undefined;
8643
+ street?: string | undefined;
8644
+ number?: string | undefined;
8645
+ box?: string | undefined;
8646
+ city?: string | undefined;
8647
+ postal_code?: string | undefined;
8648
+ country?: string | undefined;
8649
+ } | undefined;
8650
+ first_name?: string | undefined;
8651
+ last_name?: string | undefined;
8652
+ company_name?: string | undefined;
8653
+ }[] | undefined;
8654
+ }[] | undefined;
8655
+ }[]>;
8656
+ getPaymentMethods(params?: {
8657
+ location_id?: string | undefined;
8658
+ } | undefined): import("../types/api").RequestData<{
8659
+ id: string;
8660
+ source_ref: {
8661
+ id?: string | undefined;
8662
+ model?: string | undefined;
8663
+ };
8664
+ name: string;
8665
+ extra?: string | undefined;
8666
+ ledger_account_code?: string | undefined;
8667
+ }[]>;
8668
+ getClosure(date: string, params?: {
8669
+ location_id?: string | undefined;
8670
+ } | undefined): import("../types/api").RequestData<{
8671
+ date: string;
8672
+ status: "open" | "closed";
8673
+ }>;
8674
+ getPayments(params: {
8675
+ date_from: string;
8676
+ date_to: string;
8677
+ }): import("../types/api").RequestData<{
8678
+ id?: string | undefined;
8679
+ source_ref: {
8680
+ id?: string | undefined;
8681
+ model?: string | undefined;
8682
+ };
8683
+ payment_method_id?: string | undefined;
8684
+ payment_method_name?: string | undefined;
8685
+ total: number;
8686
+ tip: number;
8687
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
8688
+ currency?: string | undefined;
8689
+ date?: string | undefined;
8690
+ partner_id?: {
8691
+ id: string;
8692
+ source_ref: {
8693
+ id?: string | undefined;
8694
+ model?: string | undefined;
8695
+ };
8696
+ } | undefined;
8697
+ }[]>;
8698
+ getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
8699
+ id: string;
8700
+ source_ref: {
8701
+ id?: string | undefined;
8702
+ model?: string | undefined;
8703
+ };
8704
+ name: string;
8705
+ code?: string | undefined;
8706
+ ledger_account_code?: string | undefined;
8707
+ posting_account_code?: string | undefined;
8708
+ }[]>;
8709
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
8710
+ id: string;
8711
+ source_ref: {
8712
+ id?: string | undefined;
8713
+ model?: string | undefined;
8714
+ };
8715
+ first_name?: string | undefined;
8716
+ last_name?: string | undefined;
8717
+ company_name?: string | undefined;
8718
+ phone?: string | undefined;
8719
+ email?: string | undefined;
8720
+ account_number?: string | undefined;
8721
+ created_on?: string | undefined;
8722
+ addresses?: {
8723
+ address_type?: string | undefined;
8724
+ name?: string | undefined;
8725
+ street?: string | undefined;
8726
+ number?: string | undefined;
8727
+ box?: string | undefined;
8728
+ city?: string | undefined;
8729
+ postal_code?: string | undefined;
8730
+ country?: string | undefined;
8731
+ }[] | undefined;
8732
+ }[]>;
8733
+ getInvoices(params?: {
8734
+ date_from: string;
8735
+ date_to: string;
8736
+ location_id?: string | undefined;
8737
+ } | undefined): import("../types/api").RequestData<{
8738
+ id: string;
8739
+ source_ref: {
8740
+ id?: string | undefined;
8741
+ model?: string | undefined;
8742
+ };
8743
+ invoice_number?: string | undefined;
8744
+ creation_date?: string | undefined;
8745
+ closing_date?: string | undefined;
8746
+ partners?: {
8747
+ id: string;
8748
+ source_ref: {
8749
+ id?: string | undefined;
8750
+ model?: string | undefined;
8751
+ };
8752
+ type: "owner" | "account";
8753
+ address?: {
8754
+ address_type?: string | undefined;
8755
+ name?: string | undefined;
8756
+ street?: string | undefined;
8757
+ number?: string | undefined;
8758
+ box?: string | undefined;
8759
+ city?: string | undefined;
8760
+ postal_code?: string | undefined;
8761
+ country?: string | undefined;
8762
+ } | undefined;
8763
+ first_name?: string | undefined;
8764
+ last_name?: string | undefined;
8765
+ company_name?: string | undefined;
7773
8766
  }[] | undefined;
7774
- guests?: number | undefined;
7775
8767
  items: {
7776
8768
  id: string;
7777
8769
  source_ref: {
7778
8770
  id?: string | undefined;
7779
8771
  model?: string | undefined;
7780
8772
  };
8773
+ type?: "menu" | "product" | undefined;
8774
+ menu_id?: string | undefined;
7781
8775
  quantity: number;
7782
8776
  unit_price: number;
7783
8777
  total: number;
@@ -7787,58 +8781,52 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7787
8781
  discounts: {
7788
8782
  name?: string | undefined;
7789
8783
  total: number;
8784
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
7790
8785
  }[];
7791
8786
  product_id?: string | undefined;
7792
8787
  accounting_category_id?: string | undefined;
7793
8788
  }[];
7794
- service_id?: string | undefined;
7795
- }[]>;
7796
- getPaymentMethods(params?: {
7797
- location_id?: string | undefined;
7798
- } | undefined): import("../types/api").RequestData<{
7799
- id: string;
7800
- source_ref: {
7801
- id?: string | undefined;
7802
- model?: string | undefined;
7803
- };
7804
- name: string;
7805
- extra?: string | undefined;
7806
- ledger_account_code?: string | undefined;
7807
- }[]>;
7808
- getClosure(date: string, params?: {
7809
- location_id?: string | undefined;
7810
- } | undefined): import("../types/api").RequestData<{
7811
- date: string;
7812
- status: "open" | "closed";
7813
- }>;
7814
- getPayments(params: {
7815
- date_from: string;
7816
- date_to: string;
7817
- }): import("../types/api").RequestData<{
7818
- id?: string | undefined;
7819
- source_ref: {
7820
- id?: string | undefined;
7821
- model?: string | undefined;
7822
- };
7823
- payment_method_id?: string | undefined;
7824
- payment_method_name?: string | undefined;
7825
- total: number;
7826
- tip: number;
7827
- status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
7828
- currency?: string | undefined;
7829
- date?: string | undefined;
7830
- }[]>;
7831
- getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
7832
- id: string;
7833
- source_ref: {
8789
+ payments: {
7834
8790
  id?: string | undefined;
7835
- model?: string | undefined;
7836
- };
7837
- name: string;
7838
- id_parent?: string | undefined;
7839
- code?: string | undefined;
7840
- ledger_account_code?: string | undefined;
7841
- posting_account_code?: string | undefined;
8791
+ source_ref: {
8792
+ id?: string | undefined;
8793
+ model?: string | undefined;
8794
+ };
8795
+ payment_method_id?: string | undefined;
8796
+ payment_method_name?: string | undefined;
8797
+ total: number;
8798
+ tip: number;
8799
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
8800
+ currency?: string | undefined;
8801
+ date?: string | undefined;
8802
+ partner_id?: {
8803
+ id: string;
8804
+ source_ref: {
8805
+ id?: string | undefined;
8806
+ model?: string | undefined;
8807
+ };
8808
+ } | undefined;
8809
+ }[];
8810
+ service_id?: string | undefined;
8811
+ reservation?: {
8812
+ id: string;
8813
+ source_ref: {
8814
+ id?: string | undefined;
8815
+ model?: string | undefined;
8816
+ };
8817
+ start_date?: string | undefined;
8818
+ end_date?: string | undefined;
8819
+ creation_date?: string | undefined;
8820
+ resource_id?: {
8821
+ id: string;
8822
+ source_ref: {
8823
+ id?: string | undefined;
8824
+ model?: string | undefined;
8825
+ };
8826
+ } | undefined;
8827
+ resource_name?: string | undefined;
8828
+ resource_identifier?: string | undefined;
8829
+ } | undefined;
7842
8830
  }[]>;
7843
8831
  }>;
7844
8832
  payment: import("../types/api").ApiFor<{
@@ -7891,8 +8879,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7891
8879
  payment_id?: string | undefined;
7892
8880
  }[]>;
7893
8881
  getPayment(params: {
7894
- payment_id: string;
7895
8882
  consumer_id: string;
8883
+ payment_id: string;
7896
8884
  }): import("../types/api").RequestData<{
7897
8885
  id: string;
7898
8886
  source_ref: {
@@ -7933,7 +8921,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
7933
8921
  active: boolean;
7934
8922
  }[]>;
7935
8923
  getClients(params?: {
8924
+ search?: string | undefined;
7936
8925
  folder_id?: string | undefined;
8926
+ updated_after?: string | undefined;
7937
8927
  } | undefined): import("../types/api").RequestData<{
7938
8928
  external_reference?: string | undefined;
7939
8929
  first_name?: string | undefined;
@@ -8004,8 +8994,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8004
8994
  }[];
8005
8995
  account_number?: string | undefined;
8006
8996
  }, params?: {
8007
- force_merge?: string | undefined;
8008
8997
  folder_id?: string | undefined;
8998
+ force_merge?: string | undefined;
8009
8999
  } | undefined): import("../types/api").RequestData<{
8010
9000
  external_reference?: string | undefined;
8011
9001
  first_name?: string | undefined;
@@ -8151,7 +9141,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8151
9141
  id?: string | undefined;
8152
9142
  }>;
8153
9143
  getSuppliers(params?: {
9144
+ search?: string | undefined;
8154
9145
  folder_id?: string | undefined;
9146
+ updated_after?: string | undefined;
8155
9147
  } | undefined): import("../types/api").RequestData<{
8156
9148
  external_reference?: string | undefined;
8157
9149
  first_name?: string | undefined;
@@ -8222,8 +9214,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8222
9214
  }[];
8223
9215
  account_number?: string | undefined;
8224
9216
  }, params?: {
8225
- force_merge?: string | undefined;
8226
9217
  folder_id?: string | undefined;
9218
+ force_merge?: string | undefined;
8227
9219
  } | undefined): import("../types/api").RequestData<{
8228
9220
  external_reference?: string | undefined;
8229
9221
  first_name?: string | undefined;
@@ -8417,9 +9409,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8417
9409
  analytic_account?: string | undefined;
8418
9410
  }[];
8419
9411
  }, params?: {
9412
+ folder_id?: string | undefined;
8420
9413
  force_financial_period?: string | undefined;
8421
9414
  regroup_lines?: "true" | "false" | undefined;
8422
- folder_id?: string | undefined;
8423
9415
  } | undefined): import("../types/api").RequestData<{
8424
9416
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8425
9417
  invoice_number?: string | undefined;
@@ -8520,9 +9512,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8520
9512
  }[];
8521
9513
  }[];
8522
9514
  }, params?: {
9515
+ folder_id?: string | undefined;
8523
9516
  force_financial_period?: string | undefined;
8524
9517
  regroup_lines?: "true" | "false" | undefined;
8525
- folder_id?: string | undefined;
8526
9518
  } | undefined): import("../types/api").RequestData<{
8527
9519
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8528
9520
  invoice_number?: string | undefined;
@@ -8581,6 +9573,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8581
9573
  journal_ids?: string | undefined;
8582
9574
  include_payments?: "true" | "false" | undefined;
8583
9575
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9576
+ updated_after?: string | undefined;
8584
9577
  } | undefined): import("../types/api").RequestData<{
8585
9578
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8586
9579
  invoice_number?: string | undefined;
@@ -8627,8 +9620,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8627
9620
  }[];
8628
9621
  }[]>;
8629
9622
  getInvoice(invoiceId: string, params?: {
8630
- include_payments?: "true" | "false" | undefined;
8631
9623
  folder_id?: string | undefined;
9624
+ include_payments?: "true" | "false" | undefined;
8632
9625
  } | undefined): import("../types/api").RequestData<{
8633
9626
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8634
9627
  invoice_number?: string | undefined;
@@ -8675,8 +9668,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8675
9668
  }[];
8676
9669
  }>;
8677
9670
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
8678
- include_payments?: "true" | "false" | undefined;
8679
9671
  folder_id?: string | undefined;
9672
+ include_payments?: "true" | "false" | undefined;
8680
9673
  } | undefined): import("../types/api").RequestData<{
8681
9674
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8682
9675
  invoice_number?: string | undefined;
@@ -8735,6 +9728,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8735
9728
  journal_ids?: string | undefined;
8736
9729
  include_payments?: "true" | "false" | undefined;
8737
9730
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9731
+ updated_after?: string | undefined;
8738
9732
  } | undefined): import("../types/api").RequestData<{
8739
9733
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
8740
9734
  invoice_number?: string | undefined;
@@ -8907,9 +9901,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8907
9901
  analytic_plan: string;
8908
9902
  }[]>;
8909
9903
  getJournalEntries(params: {
8910
- date_from: string;
8911
- date_to: string;
9904
+ date_from?: string | undefined;
9905
+ date_to?: string | undefined;
8912
9906
  folder_id?: string | undefined;
9907
+ updated_after?: string | undefined;
8913
9908
  unposted_allowed: "true" | "false";
8914
9909
  journal_id: string;
8915
9910
  partner_id?: string | undefined;
@@ -8939,9 +9934,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8939
9934
  }[];
8940
9935
  }[]>;
8941
9936
  getJournalEntriesWithMultiplePlans(params: {
8942
- date_from: string;
8943
- date_to: string;
9937
+ date_from?: string | undefined;
9938
+ date_to?: string | undefined;
8944
9939
  folder_id?: string | undefined;
9940
+ updated_after?: string | undefined;
8945
9941
  unposted_allowed: "true" | "false";
8946
9942
  journal_id: string;
8947
9943
  partner_id?: string | undefined;
@@ -8976,9 +9972,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
8976
9972
  }[];
8977
9973
  }[]>;
8978
9974
  getPaymentsByInvoiceId(invoice_id: string, params?: {
8979
- folder_id?: string | undefined;
8980
9975
  page?: number | undefined;
8981
9976
  size?: number | undefined;
9977
+ folder_id?: string | undefined;
8982
9978
  } | undefined): import("../types/api").RequestData<{
8983
9979
  id: string;
8984
9980
  name: string;
@@ -9102,8 +10098,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9102
10098
  attachPDF(invoice_id: string, attachment: {
9103
10099
  base64_string: string;
9104
10100
  }, params?: {
9105
- overwrite_existing?: "true" | "false" | undefined;
9106
10101
  folder_id?: string | undefined;
10102
+ overwrite_existing?: "true" | "false" | undefined;
9107
10103
  } | undefined): import("../types/api").RequestData<{
9108
10104
  headers: {
9109
10105
  [name: string]: unknown;
@@ -9120,8 +10116,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9120
10116
  base64_string: string;
9121
10117
  }[]>;
9122
10118
  getChartOfAccounts(params?: {
9123
- classes?: string | undefined;
9124
10119
  folder_id?: string | undefined;
10120
+ classes?: string | undefined;
9125
10121
  } | undefined): import("../types/api").RequestData<{
9126
10122
  number: string;
9127
10123
  name: string;
@@ -9177,8 +10173,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9177
10173
  partner_id: string;
9178
10174
  account_number: string;
9179
10175
  reference?: string | undefined;
10176
+ matching_numbers: string[];
9180
10177
  payment_communication?: string | undefined;
9181
10178
  posted: boolean;
10179
+ original_document?: {
10180
+ id?: string | undefined;
10181
+ number?: string | undefined;
10182
+ journal_id?: string | undefined;
10183
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
10184
+ date?: string | undefined;
10185
+ due_date?: string | undefined;
10186
+ reference?: string | undefined;
10187
+ } | undefined;
9182
10188
  }[]>;
9183
10189
  createFinancialEntryOld(financial_entry: {
9184
10190
  date: string;
@@ -9196,8 +10202,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9196
10202
  }[];
9197
10203
  pdf?: string | undefined;
9198
10204
  }, params?: {
9199
- financial_counterpart_account?: string | undefined;
9200
10205
  folder_id?: string | undefined;
10206
+ financial_counterpart_account?: string | undefined;
9201
10207
  } | undefined): import("../types/api").RequestData<{
9202
10208
  date: string;
9203
10209
  journal_id: string;
@@ -9230,8 +10236,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9230
10236
  }[];
9231
10237
  pdf?: string | undefined;
9232
10238
  }, params?: {
9233
- financial_counterpart_account?: string | undefined;
9234
10239
  folder_id?: string | undefined;
10240
+ financial_counterpart_account?: string | undefined;
9235
10241
  } | undefined): import("../types/api").RequestData<{
9236
10242
  date: string;
9237
10243
  journal_id: string;
@@ -9328,9 +10334,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9328
10334
  }[];
9329
10335
  pdf?: string | undefined;
9330
10336
  posted: boolean;
10337
+ start_date?: string | undefined;
10338
+ end_date?: string | undefined;
9331
10339
  }, params?: {
9332
- force_currency_exchange?: "true" | "false" | undefined;
9333
10340
  folder_id?: string | undefined;
10341
+ force_currency_exchange?: "true" | "false" | undefined;
9334
10342
  } | undefined): import("../types/api").RequestData<{
9335
10343
  reference?: string | undefined;
9336
10344
  due_date?: string | undefined;
@@ -9370,6 +10378,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9370
10378
  matching_number: string;
9371
10379
  balance: number;
9372
10380
  }>;
10381
+ matchEntriesMultiple(body: {
10382
+ matchings: {
10383
+ entries: string[];
10384
+ partner_id: string;
10385
+ }[];
10386
+ }, params?: {
10387
+ folder_id?: string | undefined;
10388
+ } | undefined): import("../types/api").RequestData<{
10389
+ matching_number?: string | undefined;
10390
+ processed: boolean;
10391
+ error_msg?: Record<string, never> | undefined;
10392
+ }[]>;
9373
10393
  getFolders(): import("../types/api").RequestData<{
9374
10394
  id: string;
9375
10395
  name: string;
@@ -9377,14 +10397,23 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9377
10397
  vat?: string | undefined;
9378
10398
  company_number?: string | undefined;
9379
10399
  }[]>;
10400
+ getBookyears(params?: {
10401
+ folder_id?: string | undefined;
10402
+ } | undefined): import("../types/api").RequestData<{
10403
+ name: string;
10404
+ start: string;
10405
+ end: string;
10406
+ closed: boolean;
10407
+ }[]>;
9380
10408
  }>;
9381
10409
  invoicing: import("../types/api").ApiFor<{
9382
10410
  getInvoices(params?: {
9383
10411
  date_from?: string | undefined;
9384
10412
  date_to?: string | undefined;
9385
10413
  payment_status?: "all" | "paid" | "unpaid" | undefined;
9386
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
9387
10414
  updated_after?: string | undefined;
10415
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
10416
+ include_invoice_lines?: "true" | "false" | undefined;
9388
10417
  } | undefined): import("../types/api").RequestData<{
9389
10418
  id: string;
9390
10419
  source_ref: {
@@ -9392,7 +10421,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9392
10421
  model?: string | undefined;
9393
10422
  };
9394
10423
  currency: string;
9395
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10424
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9396
10425
  status: "draft" | "posted" | "cancelled" | "paid";
9397
10426
  invoice_date: string;
9398
10427
  tax_amount: number;
@@ -9409,6 +10438,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9409
10438
  tax_rate?: number | undefined;
9410
10439
  account_number?: string | undefined;
9411
10440
  tax_id?: string | undefined;
10441
+ tax_exemption_reason?: string | undefined;
9412
10442
  unit_of_measure?: string | undefined;
9413
10443
  product_id?: string | undefined;
9414
10444
  product_code?: string | undefined;
@@ -9425,8 +10455,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9425
10455
  model?: string | undefined;
9426
10456
  name?: string | undefined;
9427
10457
  } | undefined;
10458
+ italian_specificities?: {
10459
+ stamp_duty_amount?: number | undefined;
10460
+ withholding_tax?: {
10461
+ rate: number;
10462
+ amount: number;
10463
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
10464
+ payment_reason?: "A" | "U" | "R" | "Q" | "H" | "V" | "V2" | "I" | "J" | "K" | "P" | "S" | "T" | "W" | "X" | "Y" | "B" | "C" | "D" | "E" | "F" | "G" | "L" | "L1" | "M" | "M1" | "M2" | "IN" | "O" | "O1" | "V1" | undefined;
10465
+ } | undefined;
10466
+ welfare_fund?: {
10467
+ rate: number;
10468
+ amount: number;
10469
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
10470
+ } | undefined;
10471
+ payment_reporting?: {
10472
+ method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | undefined;
10473
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
10474
+ } | undefined;
10475
+ } | undefined;
9428
10476
  last_updated_on?: string | undefined;
9429
10477
  outstanding_amount?: number | undefined;
10478
+ accounting_date?: string | undefined;
10479
+ payment_method_id?: string | undefined;
10480
+ currency_exchange_rate: number;
9430
10481
  }[]>;
9431
10482
  getInvoiceById(invoiceId: string, params?: {
9432
10483
  include_pdf?: "true" | "false" | undefined;
@@ -9437,7 +10488,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9437
10488
  model?: string | undefined;
9438
10489
  };
9439
10490
  currency: string;
9440
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10491
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9441
10492
  status: "draft" | "posted" | "cancelled" | "paid";
9442
10493
  invoice_date: string;
9443
10494
  tax_amount: number;
@@ -9454,6 +10505,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9454
10505
  tax_rate?: number | undefined;
9455
10506
  account_number?: string | undefined;
9456
10507
  tax_id?: string | undefined;
10508
+ tax_exemption_reason?: string | undefined;
9457
10509
  unit_of_measure?: string | undefined;
9458
10510
  product_id?: string | undefined;
9459
10511
  product_code?: string | undefined;
@@ -9470,12 +10522,33 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9470
10522
  model?: string | undefined;
9471
10523
  name?: string | undefined;
9472
10524
  } | undefined;
10525
+ italian_specificities?: {
10526
+ stamp_duty_amount?: number | undefined;
10527
+ withholding_tax?: {
10528
+ rate: number;
10529
+ amount: number;
10530
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
10531
+ 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;
10532
+ } | undefined;
10533
+ welfare_fund?: {
10534
+ rate: number;
10535
+ amount: number;
10536
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
10537
+ } | undefined;
10538
+ payment_reporting?: {
10539
+ 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;
10540
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
10541
+ } | undefined;
10542
+ } | undefined;
9473
10543
  last_updated_on?: string | undefined;
9474
10544
  outstanding_amount?: number | undefined;
10545
+ accounting_date?: string | undefined;
10546
+ payment_method_id?: string | undefined;
10547
+ currency_exchange_rate: number;
9475
10548
  }>;
9476
10549
  createInvoice(invoice: {
9477
10550
  currency: string;
9478
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10551
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9479
10552
  status: "draft" | "posted" | "cancelled" | "paid";
9480
10553
  invoice_date: string;
9481
10554
  tax_amount: number;
@@ -9492,6 +10565,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9492
10565
  tax_rate?: number | undefined;
9493
10566
  account_number?: string | undefined;
9494
10567
  tax_id?: string | undefined;
10568
+ tax_exemption_reason?: string | undefined;
9495
10569
  unit_of_measure?: string | undefined;
9496
10570
  product_id?: string | undefined;
9497
10571
  product_code?: string | undefined;
@@ -9508,6 +10582,24 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9508
10582
  model?: string | undefined;
9509
10583
  name?: string | undefined;
9510
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;
9511
10603
  }): import("../types/api").RequestData<{
9512
10604
  id: string;
9513
10605
  source_ref: {
@@ -9515,7 +10607,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9515
10607
  model?: string | undefined;
9516
10608
  };
9517
10609
  currency: string;
9518
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
10610
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
9519
10611
  status: "draft" | "posted" | "cancelled" | "paid";
9520
10612
  invoice_date: string;
9521
10613
  tax_amount: number;
@@ -9532,6 +10624,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9532
10624
  tax_rate?: number | undefined;
9533
10625
  account_number?: string | undefined;
9534
10626
  tax_id?: string | undefined;
10627
+ tax_exemption_reason?: string | undefined;
9535
10628
  unit_of_measure?: string | undefined;
9536
10629
  product_id?: string | undefined;
9537
10630
  product_code?: string | undefined;
@@ -9548,8 +10641,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9548
10641
  model?: string | undefined;
9549
10642
  name?: string | undefined;
9550
10643
  } | undefined;
10644
+ italian_specificities?: {
10645
+ stamp_duty_amount?: number | undefined;
10646
+ withholding_tax?: {
10647
+ rate: number;
10648
+ amount: number;
10649
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
10650
+ 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;
10651
+ } | undefined;
10652
+ welfare_fund?: {
10653
+ rate: number;
10654
+ amount: number;
10655
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
10656
+ } | undefined;
10657
+ payment_reporting?: {
10658
+ 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;
10659
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
10660
+ } | undefined;
10661
+ } | undefined;
9551
10662
  last_updated_on?: string | undefined;
9552
10663
  outstanding_amount?: number | undefined;
10664
+ accounting_date?: string | undefined;
10665
+ payment_method_id?: string | undefined;
10666
+ currency_exchange_rate: number;
9553
10667
  }>;
9554
10668
  getProducts(): import("../types/api").RequestData<{
9555
10669
  id: string;
@@ -9846,6 +10960,31 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
9846
10960
  }[];
9847
10961
  external_reference?: string | undefined;
9848
10962
  }>;
10963
+ getPayments(): import("../types/api").RequestData<{
10964
+ id: string;
10965
+ source_ref: {
10966
+ id?: string | undefined;
10967
+ model?: string | undefined;
10968
+ };
10969
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
10970
+ description: string;
10971
+ amount: number;
10972
+ currency: string;
10973
+ payment_date: string;
10974
+ partner_id: string;
10975
+ payment_method_id?: string | undefined;
10976
+ payment_method_name?: string | undefined;
10977
+ invoice_id?: string | undefined;
10978
+ invoice_number?: string | undefined;
10979
+ }[]>;
10980
+ getPaymentMethods(): import("../types/api").RequestData<{
10981
+ id: string;
10982
+ source_ref: {
10983
+ id?: string | undefined;
10984
+ model?: string | undefined;
10985
+ };
10986
+ name: string;
10987
+ }[]>;
9849
10988
  }>;
9850
10989
  ecommerce: import("../types/api").ApiFor<{
9851
10990
  getCustomers(): import("../types/api").RequestData<{
@@ -10171,6 +11310,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10171
11310
  refunded_amount: number;
10172
11311
  currency: string;
10173
11312
  note?: string | undefined;
11313
+ tags: string[];
10174
11314
  lines: {
10175
11315
  id: string;
10176
11316
  source_ref: {
@@ -10447,6 +11587,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10447
11587
  refunded_amount: number;
10448
11588
  currency: string;
10449
11589
  note?: string | undefined;
11590
+ tags: string[];
10450
11591
  lines: {
10451
11592
  id: string;
10452
11593
  source_ref: {
@@ -10682,6 +11823,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10682
11823
  refunded_amount: number;
10683
11824
  currency: string;
10684
11825
  note?: string | undefined;
11826
+ tags: string[];
10685
11827
  lines: {
10686
11828
  id: string;
10687
11829
  source_ref: {
@@ -10982,6 +12124,52 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10982
12124
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
10983
12125
  setConnectionId: (connectionId: string) => Promise<void>;
10984
12126
  setIntegrationId: (integrationId: string) => Promise<void>;
12127
+ updateConsumer: (body: {
12128
+ name?: string | undefined;
12129
+ email?: string | undefined;
12130
+ internal_reference?: string | undefined;
12131
+ redirect_url?: string | undefined;
12132
+ }) => Promise<{
12133
+ consumerid: string;
12134
+ name: string;
12135
+ email?: string | undefined;
12136
+ internal_reference?: string | undefined;
12137
+ redirect_url?: string | undefined;
12138
+ }>;
12139
+ updateFlowConfig: (syncId: string, flowId: string, body: {
12140
+ triggerid: string;
12141
+ data: Record<string, never>;
12142
+ }) => Promise<{
12143
+ name: string;
12144
+ description?: string | undefined;
12145
+ id: string;
12146
+ config?: {
12147
+ definitionFields?: Record<string, never>[] | undefined;
12148
+ doorkeyFields?: Record<string, never>[] | undefined;
12149
+ customFields?: Record<string, never>[] | undefined;
12150
+ datastores: {
12151
+ id?: string | undefined;
12152
+ name: string;
12153
+ status: "active" | "inactive";
12154
+ definition: {
12155
+ columns: {
12156
+ name: string;
12157
+ title: string;
12158
+ type: string;
12159
+ optional: boolean;
12160
+ }[];
12161
+ search_column?: string | undefined;
12162
+ };
12163
+ }[];
12164
+ } | undefined;
12165
+ values: Record<string, never>;
12166
+ enabled_on?: string | undefined;
12167
+ trigger: {
12168
+ id: string;
12169
+ type: "event" | "timer";
12170
+ cronschedule?: string | undefined;
12171
+ };
12172
+ }>;
10985
12173
  }, context: any) => any, log?: boolean) => Promise<void>;
10986
12174
  flowId: string;
10987
12175
  name: string;
@@ -10994,10 +12182,17 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
10994
12182
  end?: string | undefined;
10995
12183
  status: string;
10996
12184
  }>;
12185
+ getConsumerExecutions: (consumerId: string) => Promise<{
12186
+ id: string;
12187
+ start: string;
12188
+ end?: string | undefined;
12189
+ status: string;
12190
+ }[]>;
10997
12191
  executeLocal: (process: (consumer: (internalApi: InternalAPI, body: {
10998
12192
  consumerid: string;
10999
12193
  name: string;
11000
12194
  email?: string | undefined;
12195
+ internal_reference?: string | undefined;
11001
12196
  redirect_url?: string | undefined;
11002
12197
  }) => {
11003
12198
  consumerId: string;
@@ -11112,6 +12307,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11112
12307
  }[];
11113
12308
  items: {
11114
12309
  id: string;
12310
+ type?: "menu" | "product" | undefined;
12311
+ menu_id?: string | undefined;
11115
12312
  quantity: number;
11116
12313
  unit_price: number;
11117
12314
  total: number;
@@ -11121,6 +12318,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11121
12318
  discounts: {
11122
12319
  name?: string | undefined;
11123
12320
  total: number;
12321
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11124
12322
  }[];
11125
12323
  product_id?: string | undefined;
11126
12324
  accounting_category_id?: string | undefined;
@@ -11187,6 +12385,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11187
12385
  }[];
11188
12386
  items: {
11189
12387
  id: string;
12388
+ type?: "menu" | "product" | undefined;
12389
+ menu_id?: string | undefined;
11190
12390
  quantity: number;
11191
12391
  unit_price: number;
11192
12392
  total: number;
@@ -11196,6 +12396,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11196
12396
  discounts: {
11197
12397
  name?: string | undefined;
11198
12398
  total: number;
12399
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11199
12400
  }[];
11200
12401
  product_id?: string | undefined;
11201
12402
  accounting_category_id?: string | undefined;
@@ -11359,6 +12560,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11359
12560
  }[];
11360
12561
  items: {
11361
12562
  id: string;
12563
+ type?: "menu" | "product" | undefined;
12564
+ menu_id?: string | undefined;
11362
12565
  quantity: number;
11363
12566
  unit_price: number;
11364
12567
  total: number;
@@ -11368,6 +12571,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11368
12571
  discounts: {
11369
12572
  name?: string | undefined;
11370
12573
  total: number;
12574
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11371
12575
  }[];
11372
12576
  product_id?: string | undefined;
11373
12577
  accounting_category_id?: string | undefined;
@@ -11378,7 +12582,6 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11378
12582
  } | undefined): import("../types/api").RequestData<{
11379
12583
  id: string;
11380
12584
  name: string;
11381
- id_parent?: string | undefined;
11382
12585
  code?: string | undefined;
11383
12586
  ledger_account_code?: string | undefined;
11384
12587
  posting_account_code?: string | undefined;
@@ -11439,6 +12642,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11439
12642
  id?: string | undefined;
11440
12643
  model?: string | undefined;
11441
12644
  };
12645
+ type?: "menu" | "product" | undefined;
12646
+ menu_id?: string | undefined;
11442
12647
  quantity: number;
11443
12648
  unit_price: number;
11444
12649
  total: number;
@@ -11448,11 +12653,62 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11448
12653
  discounts: {
11449
12654
  name?: string | undefined;
11450
12655
  total: number;
12656
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
11451
12657
  }[];
11452
12658
  product_id?: string | undefined;
11453
12659
  accounting_category_id?: string | undefined;
11454
12660
  }[];
11455
12661
  service_id?: string | undefined;
12662
+ reservation?: {
12663
+ id: string;
12664
+ source_ref: {
12665
+ id?: string | undefined;
12666
+ model?: string | undefined;
12667
+ };
12668
+ start_date?: string | undefined;
12669
+ end_date?: string | undefined;
12670
+ creation_date?: string | undefined;
12671
+ resource_id?: {
12672
+ id: string;
12673
+ source_ref: {
12674
+ id?: string | undefined;
12675
+ model?: string | undefined;
12676
+ };
12677
+ } | undefined;
12678
+ resource_name?: string | undefined;
12679
+ resource_identifier?: string | undefined;
12680
+ } | undefined;
12681
+ bills?: {
12682
+ id: string;
12683
+ source_ref: {
12684
+ id?: string | undefined;
12685
+ model?: string | undefined;
12686
+ };
12687
+ invoice_number?: string | undefined;
12688
+ creation_date?: string | undefined;
12689
+ closing_date?: string | undefined;
12690
+ partners?: {
12691
+ id: string;
12692
+ source_ref: {
12693
+ id?: string | undefined;
12694
+ model?: string | undefined;
12695
+ };
12696
+ type: "owner" | "account";
12697
+ address?: {
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
+ first_name?: string | undefined;
12708
+ last_name?: string | undefined;
12709
+ company_name?: string | undefined;
12710
+ }[] | undefined;
12711
+ }[] | undefined;
11456
12712
  }[]>;
11457
12713
  getPaymentMethods(params?: {
11458
12714
  location_id?: string | undefined;
@@ -11488,6 +12744,13 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11488
12744
  status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
11489
12745
  currency?: string | undefined;
11490
12746
  date?: string | undefined;
12747
+ partner_id?: {
12748
+ id: string;
12749
+ source_ref: {
12750
+ id?: string | undefined;
12751
+ model?: string | undefined;
12752
+ };
12753
+ } | undefined;
11491
12754
  }[]>;
11492
12755
  getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
11493
12756
  id: string;
@@ -11496,11 +12759,132 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11496
12759
  model?: string | undefined;
11497
12760
  };
11498
12761
  name: string;
11499
- id_parent?: string | undefined;
11500
12762
  code?: string | undefined;
11501
12763
  ledger_account_code?: string | undefined;
11502
12764
  posting_account_code?: string | undefined;
11503
12765
  }[]>;
12766
+ getCustomers(params?: {} | undefined): import("../types/api").RequestData<{
12767
+ id: string;
12768
+ source_ref: {
12769
+ id?: string | undefined;
12770
+ model?: string | undefined;
12771
+ };
12772
+ first_name?: string | undefined;
12773
+ last_name?: string | undefined;
12774
+ company_name?: string | undefined;
12775
+ phone?: string | undefined;
12776
+ email?: string | undefined;
12777
+ account_number?: string | undefined;
12778
+ created_on?: string | undefined;
12779
+ addresses?: {
12780
+ address_type?: string | undefined;
12781
+ name?: string | undefined;
12782
+ street?: string | undefined;
12783
+ number?: string | undefined;
12784
+ box?: string | undefined;
12785
+ city?: string | undefined;
12786
+ postal_code?: string | undefined;
12787
+ country?: string | undefined;
12788
+ }[] | undefined;
12789
+ }[]>;
12790
+ getInvoices(params?: {
12791
+ date_from: string;
12792
+ date_to: string;
12793
+ location_id?: string | undefined;
12794
+ } | undefined): import("../types/api").RequestData<{
12795
+ id: string;
12796
+ source_ref: {
12797
+ id?: string | undefined;
12798
+ model?: string | undefined;
12799
+ };
12800
+ invoice_number?: string | undefined;
12801
+ creation_date?: string | undefined;
12802
+ closing_date?: string | undefined;
12803
+ partners?: {
12804
+ id: string;
12805
+ source_ref: {
12806
+ id?: string | undefined;
12807
+ model?: string | undefined;
12808
+ };
12809
+ type: "owner" | "account";
12810
+ address?: {
12811
+ address_type?: string | undefined;
12812
+ name?: string | undefined;
12813
+ street?: string | undefined;
12814
+ number?: string | undefined;
12815
+ box?: string | undefined;
12816
+ city?: string | undefined;
12817
+ postal_code?: string | undefined;
12818
+ country?: string | undefined;
12819
+ } | undefined;
12820
+ first_name?: string | undefined;
12821
+ last_name?: string | undefined;
12822
+ company_name?: string | undefined;
12823
+ }[] | undefined;
12824
+ items: {
12825
+ id: string;
12826
+ source_ref: {
12827
+ id?: string | undefined;
12828
+ model?: string | undefined;
12829
+ };
12830
+ type?: "menu" | "product" | undefined;
12831
+ menu_id?: string | undefined;
12832
+ quantity: number;
12833
+ unit_price: number;
12834
+ total: number;
12835
+ tax_amount: number;
12836
+ tax_rate?: number | undefined;
12837
+ description?: string | undefined;
12838
+ discounts: {
12839
+ name?: string | undefined;
12840
+ total: number;
12841
+ type: "OFFERED" | "UNKNOWN" | "LOSS";
12842
+ }[];
12843
+ product_id?: string | undefined;
12844
+ accounting_category_id?: string | undefined;
12845
+ }[];
12846
+ payments: {
12847
+ id?: string | undefined;
12848
+ source_ref: {
12849
+ id?: string | undefined;
12850
+ model?: string | undefined;
12851
+ };
12852
+ payment_method_id?: string | undefined;
12853
+ payment_method_name?: string | undefined;
12854
+ total: number;
12855
+ tip: number;
12856
+ status: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised";
12857
+ currency?: string | undefined;
12858
+ date?: string | undefined;
12859
+ partner_id?: {
12860
+ id: string;
12861
+ source_ref: {
12862
+ id?: string | undefined;
12863
+ model?: string | undefined;
12864
+ };
12865
+ } | undefined;
12866
+ }[];
12867
+ service_id?: string | undefined;
12868
+ reservation?: {
12869
+ id: string;
12870
+ source_ref: {
12871
+ id?: string | undefined;
12872
+ model?: string | undefined;
12873
+ };
12874
+ start_date?: string | undefined;
12875
+ end_date?: string | undefined;
12876
+ creation_date?: string | undefined;
12877
+ resource_id?: {
12878
+ id: string;
12879
+ source_ref: {
12880
+ id?: string | undefined;
12881
+ model?: string | undefined;
12882
+ };
12883
+ } | undefined;
12884
+ resource_name?: string | undefined;
12885
+ resource_identifier?: string | undefined;
12886
+ } | undefined;
12887
+ }[]>;
11504
12888
  }>;
11505
12889
  payment: import("../types/api").ApiFor<{
11506
12890
  getPayments(params: {
@@ -11552,8 +12936,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11552
12936
  payment_id?: string | undefined;
11553
12937
  }[]>;
11554
12938
  getPayment(params: {
11555
- payment_id: string;
11556
12939
  consumer_id: string;
12940
+ payment_id: string;
11557
12941
  }): import("../types/api").RequestData<{
11558
12942
  id: string;
11559
12943
  source_ref: {
@@ -11594,7 +12978,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11594
12978
  active: boolean;
11595
12979
  }[]>;
11596
12980
  getClients(params?: {
12981
+ search?: string | undefined;
11597
12982
  folder_id?: string | undefined;
12983
+ updated_after?: string | undefined;
11598
12984
  } | undefined): import("../types/api").RequestData<{
11599
12985
  external_reference?: string | undefined;
11600
12986
  first_name?: string | undefined;
@@ -11665,8 +13051,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11665
13051
  }[];
11666
13052
  account_number?: string | undefined;
11667
13053
  }, params?: {
11668
- force_merge?: string | undefined;
11669
13054
  folder_id?: string | undefined;
13055
+ force_merge?: string | undefined;
11670
13056
  } | undefined): import("../types/api").RequestData<{
11671
13057
  external_reference?: string | undefined;
11672
13058
  first_name?: string | undefined;
@@ -11812,7 +13198,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11812
13198
  id?: string | undefined;
11813
13199
  }>;
11814
13200
  getSuppliers(params?: {
13201
+ search?: string | undefined;
11815
13202
  folder_id?: string | undefined;
13203
+ updated_after?: string | undefined;
11816
13204
  } | undefined): import("../types/api").RequestData<{
11817
13205
  external_reference?: string | undefined;
11818
13206
  first_name?: string | undefined;
@@ -11883,8 +13271,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
11883
13271
  }[];
11884
13272
  account_number?: string | undefined;
11885
13273
  }, params?: {
11886
- force_merge?: string | undefined;
11887
13274
  folder_id?: string | undefined;
13275
+ force_merge?: string | undefined;
11888
13276
  } | undefined): import("../types/api").RequestData<{
11889
13277
  external_reference?: string | undefined;
11890
13278
  first_name?: string | undefined;
@@ -12078,9 +13466,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12078
13466
  analytic_account?: string | undefined;
12079
13467
  }[];
12080
13468
  }, params?: {
13469
+ folder_id?: string | undefined;
12081
13470
  force_financial_period?: string | undefined;
12082
13471
  regroup_lines?: "true" | "false" | undefined;
12083
- folder_id?: string | undefined;
12084
13472
  } | undefined): import("../types/api").RequestData<{
12085
13473
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12086
13474
  invoice_number?: string | undefined;
@@ -12181,9 +13569,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12181
13569
  }[];
12182
13570
  }[];
12183
13571
  }, params?: {
13572
+ folder_id?: string | undefined;
12184
13573
  force_financial_period?: string | undefined;
12185
13574
  regroup_lines?: "true" | "false" | undefined;
12186
- folder_id?: string | undefined;
12187
13575
  } | undefined): import("../types/api").RequestData<{
12188
13576
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12189
13577
  invoice_number?: string | undefined;
@@ -12242,6 +13630,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12242
13630
  journal_ids?: string | undefined;
12243
13631
  include_payments?: "true" | "false" | undefined;
12244
13632
  payment_status?: "all" | "paid" | "unpaid" | undefined;
13633
+ updated_after?: string | undefined;
12245
13634
  } | undefined): import("../types/api").RequestData<{
12246
13635
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12247
13636
  invoice_number?: string | undefined;
@@ -12288,8 +13677,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12288
13677
  }[];
12289
13678
  }[]>;
12290
13679
  getInvoice(invoiceId: string, params?: {
12291
- include_payments?: "true" | "false" | undefined;
12292
13680
  folder_id?: string | undefined;
13681
+ include_payments?: "true" | "false" | undefined;
12293
13682
  } | undefined): import("../types/api").RequestData<{
12294
13683
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12295
13684
  invoice_number?: string | undefined;
@@ -12336,8 +13725,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12336
13725
  }[];
12337
13726
  }>;
12338
13727
  getInvoiceWithMultiplePlans(invoiceId: string, params?: {
12339
- include_payments?: "true" | "false" | undefined;
12340
13728
  folder_id?: string | undefined;
13729
+ include_payments?: "true" | "false" | undefined;
12341
13730
  } | undefined): import("../types/api").RequestData<{
12342
13731
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12343
13732
  invoice_number?: string | undefined;
@@ -12396,6 +13785,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12396
13785
  journal_ids?: string | undefined;
12397
13786
  include_payments?: "true" | "false" | undefined;
12398
13787
  payment_status?: "all" | "paid" | "unpaid" | undefined;
13788
+ updated_after?: string | undefined;
12399
13789
  } | undefined): import("../types/api").RequestData<{
12400
13790
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
12401
13791
  invoice_number?: string | undefined;
@@ -12568,9 +13958,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12568
13958
  analytic_plan: string;
12569
13959
  }[]>;
12570
13960
  getJournalEntries(params: {
12571
- date_from: string;
12572
- date_to: string;
13961
+ date_from?: string | undefined;
13962
+ date_to?: string | undefined;
12573
13963
  folder_id?: string | undefined;
13964
+ updated_after?: string | undefined;
12574
13965
  unposted_allowed: "true" | "false";
12575
13966
  journal_id: string;
12576
13967
  partner_id?: string | undefined;
@@ -12600,9 +13991,10 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12600
13991
  }[];
12601
13992
  }[]>;
12602
13993
  getJournalEntriesWithMultiplePlans(params: {
12603
- date_from: string;
12604
- date_to: string;
13994
+ date_from?: string | undefined;
13995
+ date_to?: string | undefined;
12605
13996
  folder_id?: string | undefined;
13997
+ updated_after?: string | undefined;
12606
13998
  unposted_allowed: "true" | "false";
12607
13999
  journal_id: string;
12608
14000
  partner_id?: string | undefined;
@@ -12637,9 +14029,9 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12637
14029
  }[];
12638
14030
  }[]>;
12639
14031
  getPaymentsByInvoiceId(invoice_id: string, params?: {
12640
- folder_id?: string | undefined;
12641
14032
  page?: number | undefined;
12642
14033
  size?: number | undefined;
14034
+ folder_id?: string | undefined;
12643
14035
  } | undefined): import("../types/api").RequestData<{
12644
14036
  id: string;
12645
14037
  name: string;
@@ -12763,8 +14155,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12763
14155
  attachPDF(invoice_id: string, attachment: {
12764
14156
  base64_string: string;
12765
14157
  }, params?: {
12766
- overwrite_existing?: "true" | "false" | undefined;
12767
14158
  folder_id?: string | undefined;
14159
+ overwrite_existing?: "true" | "false" | undefined;
12768
14160
  } | undefined): import("../types/api").RequestData<{
12769
14161
  headers: {
12770
14162
  [name: string]: unknown;
@@ -12781,8 +14173,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12781
14173
  base64_string: string;
12782
14174
  }[]>;
12783
14175
  getChartOfAccounts(params?: {
12784
- classes?: string | undefined;
12785
14176
  folder_id?: string | undefined;
14177
+ classes?: string | undefined;
12786
14178
  } | undefined): import("../types/api").RequestData<{
12787
14179
  number: string;
12788
14180
  name: string;
@@ -12838,8 +14230,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12838
14230
  partner_id: string;
12839
14231
  account_number: string;
12840
14232
  reference?: string | undefined;
14233
+ matching_numbers: string[];
12841
14234
  payment_communication?: string | undefined;
12842
14235
  posted: boolean;
14236
+ original_document?: {
14237
+ id?: string | undefined;
14238
+ number?: string | undefined;
14239
+ journal_id?: string | undefined;
14240
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | undefined;
14241
+ date?: string | undefined;
14242
+ due_date?: string | undefined;
14243
+ reference?: string | undefined;
14244
+ } | undefined;
12843
14245
  }[]>;
12844
14246
  createFinancialEntryOld(financial_entry: {
12845
14247
  date: string;
@@ -12857,8 +14259,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12857
14259
  }[];
12858
14260
  pdf?: string | undefined;
12859
14261
  }, params?: {
12860
- financial_counterpart_account?: string | undefined;
12861
14262
  folder_id?: string | undefined;
14263
+ financial_counterpart_account?: string | undefined;
12862
14264
  } | undefined): import("../types/api").RequestData<{
12863
14265
  date: string;
12864
14266
  journal_id: string;
@@ -12891,8 +14293,8 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12891
14293
  }[];
12892
14294
  pdf?: string | undefined;
12893
14295
  }, params?: {
12894
- financial_counterpart_account?: string | undefined;
12895
14296
  folder_id?: string | undefined;
14297
+ financial_counterpart_account?: string | undefined;
12896
14298
  } | undefined): import("../types/api").RequestData<{
12897
14299
  date: string;
12898
14300
  journal_id: string;
@@ -12989,9 +14391,11 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
12989
14391
  }[];
12990
14392
  pdf?: string | undefined;
12991
14393
  posted: boolean;
14394
+ start_date?: string | undefined;
14395
+ end_date?: string | undefined;
12992
14396
  }, params?: {
12993
- force_currency_exchange?: "true" | "false" | undefined;
12994
14397
  folder_id?: string | undefined;
14398
+ force_currency_exchange?: "true" | "false" | undefined;
12995
14399
  } | undefined): import("../types/api").RequestData<{
12996
14400
  reference?: string | undefined;
12997
14401
  due_date?: string | undefined;
@@ -13031,6 +14435,18 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13031
14435
  matching_number: string;
13032
14436
  balance: number;
13033
14437
  }>;
14438
+ matchEntriesMultiple(body: {
14439
+ matchings: {
14440
+ entries: string[];
14441
+ partner_id: string;
14442
+ }[];
14443
+ }, params?: {
14444
+ folder_id?: string | undefined;
14445
+ } | undefined): import("../types/api").RequestData<{
14446
+ matching_number?: string | undefined;
14447
+ processed: boolean;
14448
+ error_msg?: Record<string, never> | undefined;
14449
+ }[]>;
13034
14450
  getFolders(): import("../types/api").RequestData<{
13035
14451
  id: string;
13036
14452
  name: string;
@@ -13038,14 +14454,23 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13038
14454
  vat?: string | undefined;
13039
14455
  company_number?: string | undefined;
13040
14456
  }[]>;
14457
+ getBookyears(params?: {
14458
+ folder_id?: string | undefined;
14459
+ } | undefined): import("../types/api").RequestData<{
14460
+ name: string;
14461
+ start: string;
14462
+ end: string;
14463
+ closed: boolean;
14464
+ }[]>;
13041
14465
  }>;
13042
14466
  invoicing: import("../types/api").ApiFor<{
13043
14467
  getInvoices(params?: {
13044
14468
  date_from?: string | undefined;
13045
14469
  date_to?: string | undefined;
13046
14470
  payment_status?: "all" | "paid" | "unpaid" | undefined;
13047
- invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
13048
14471
  updated_after?: string | undefined;
14472
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | undefined;
14473
+ include_invoice_lines?: "true" | "false" | undefined;
13049
14474
  } | undefined): import("../types/api").RequestData<{
13050
14475
  id: string;
13051
14476
  source_ref: {
@@ -13053,7 +14478,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13053
14478
  model?: string | undefined;
13054
14479
  };
13055
14480
  currency: string;
13056
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14481
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13057
14482
  status: "draft" | "posted" | "cancelled" | "paid";
13058
14483
  invoice_date: string;
13059
14484
  tax_amount: number;
@@ -13070,6 +14495,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13070
14495
  tax_rate?: number | undefined;
13071
14496
  account_number?: string | undefined;
13072
14497
  tax_id?: string | undefined;
14498
+ tax_exemption_reason?: string | undefined;
13073
14499
  unit_of_measure?: string | undefined;
13074
14500
  product_id?: string | undefined;
13075
14501
  product_code?: string | undefined;
@@ -13086,8 +14512,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13086
14512
  model?: string | undefined;
13087
14513
  name?: string | undefined;
13088
14514
  } | undefined;
14515
+ italian_specificities?: {
14516
+ stamp_duty_amount?: number | undefined;
14517
+ withholding_tax?: {
14518
+ rate: number;
14519
+ amount: number;
14520
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
14521
+ 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;
14522
+ } | undefined;
14523
+ welfare_fund?: {
14524
+ rate: number;
14525
+ amount: number;
14526
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
14527
+ } | undefined;
14528
+ payment_reporting?: {
14529
+ 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;
14530
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
14531
+ } | undefined;
14532
+ } | undefined;
13089
14533
  last_updated_on?: string | undefined;
13090
14534
  outstanding_amount?: number | undefined;
14535
+ accounting_date?: string | undefined;
14536
+ payment_method_id?: string | undefined;
14537
+ currency_exchange_rate: number;
13091
14538
  }[]>;
13092
14539
  getInvoiceById(invoiceId: string, params?: {
13093
14540
  include_pdf?: "true" | "false" | undefined;
@@ -13098,7 +14545,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13098
14545
  model?: string | undefined;
13099
14546
  };
13100
14547
  currency: string;
13101
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14548
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13102
14549
  status: "draft" | "posted" | "cancelled" | "paid";
13103
14550
  invoice_date: string;
13104
14551
  tax_amount: number;
@@ -13115,6 +14562,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13115
14562
  tax_rate?: number | undefined;
13116
14563
  account_number?: string | undefined;
13117
14564
  tax_id?: string | undefined;
14565
+ tax_exemption_reason?: string | undefined;
13118
14566
  unit_of_measure?: string | undefined;
13119
14567
  product_id?: string | undefined;
13120
14568
  product_code?: string | undefined;
@@ -13131,12 +14579,33 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13131
14579
  model?: string | undefined;
13132
14580
  name?: string | undefined;
13133
14581
  } | undefined;
14582
+ italian_specificities?: {
14583
+ stamp_duty_amount?: number | undefined;
14584
+ withholding_tax?: {
14585
+ rate: number;
14586
+ amount: number;
14587
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
14588
+ 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;
14589
+ } | undefined;
14590
+ welfare_fund?: {
14591
+ rate: number;
14592
+ amount: number;
14593
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
14594
+ } | undefined;
14595
+ payment_reporting?: {
14596
+ 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;
14597
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
14598
+ } | undefined;
14599
+ } | undefined;
13134
14600
  last_updated_on?: string | undefined;
13135
14601
  outstanding_amount?: number | undefined;
14602
+ accounting_date?: string | undefined;
14603
+ payment_method_id?: string | undefined;
14604
+ currency_exchange_rate: number;
13136
14605
  }>;
13137
14606
  createInvoice(invoice: {
13138
14607
  currency: string;
13139
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14608
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13140
14609
  status: "draft" | "posted" | "cancelled" | "paid";
13141
14610
  invoice_date: string;
13142
14611
  tax_amount: number;
@@ -13153,6 +14622,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13153
14622
  tax_rate?: number | undefined;
13154
14623
  account_number?: string | undefined;
13155
14624
  tax_id?: string | undefined;
14625
+ tax_exemption_reason?: string | undefined;
13156
14626
  unit_of_measure?: string | undefined;
13157
14627
  product_id?: string | undefined;
13158
14628
  product_code?: string | undefined;
@@ -13169,6 +14639,24 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13169
14639
  model?: string | undefined;
13170
14640
  name?: string | undefined;
13171
14641
  } | undefined;
14642
+ italian_specificities?: {
14643
+ stamp_duty_amount?: number | undefined;
14644
+ withholding_tax?: {
14645
+ rate: number;
14646
+ amount: number;
14647
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
14648
+ 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;
14649
+ } | undefined;
14650
+ welfare_fund?: {
14651
+ rate: number;
14652
+ amount: number;
14653
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
14654
+ } | undefined;
14655
+ payment_reporting?: {
14656
+ 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;
14657
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
14658
+ } | undefined;
14659
+ } | undefined;
13172
14660
  }): import("../types/api").RequestData<{
13173
14661
  id: string;
13174
14662
  source_ref: {
@@ -13176,7 +14664,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13176
14664
  model?: string | undefined;
13177
14665
  };
13178
14666
  currency: string;
13179
- invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
14667
+ invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all";
13180
14668
  status: "draft" | "posted" | "cancelled" | "paid";
13181
14669
  invoice_date: string;
13182
14670
  tax_amount: number;
@@ -13193,6 +14681,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13193
14681
  tax_rate?: number | undefined;
13194
14682
  account_number?: string | undefined;
13195
14683
  tax_id?: string | undefined;
14684
+ tax_exemption_reason?: string | undefined;
13196
14685
  unit_of_measure?: string | undefined;
13197
14686
  product_id?: string | undefined;
13198
14687
  product_code?: string | undefined;
@@ -13209,8 +14698,29 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13209
14698
  model?: string | undefined;
13210
14699
  name?: string | undefined;
13211
14700
  } | undefined;
14701
+ italian_specificities?: {
14702
+ stamp_duty_amount?: number | undefined;
14703
+ withholding_tax?: {
14704
+ rate: number;
14705
+ amount: number;
14706
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | undefined;
14707
+ 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;
14708
+ } | undefined;
14709
+ welfare_fund?: {
14710
+ rate: number;
14711
+ amount: number;
14712
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | undefined;
14713
+ } | undefined;
14714
+ payment_reporting?: {
14715
+ 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;
14716
+ conditions?: "TP01" | "TP02" | "TP03" | undefined;
14717
+ } | undefined;
14718
+ } | undefined;
13212
14719
  last_updated_on?: string | undefined;
13213
14720
  outstanding_amount?: number | undefined;
14721
+ accounting_date?: string | undefined;
14722
+ payment_method_id?: string | undefined;
14723
+ currency_exchange_rate: number;
13214
14724
  }>;
13215
14725
  getProducts(): import("../types/api").RequestData<{
13216
14726
  id: string;
@@ -13507,6 +15017,31 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13507
15017
  }[];
13508
15018
  external_reference?: string | undefined;
13509
15019
  }>;
15020
+ getPayments(): import("../types/api").RequestData<{
15021
+ id: string;
15022
+ source_ref: {
15023
+ id?: string | undefined;
15024
+ model?: string | undefined;
15025
+ };
15026
+ status: "unknown" | "pending" | "completed" | "canceled" | "failed" | "authorized";
15027
+ description: string;
15028
+ amount: number;
15029
+ currency: string;
15030
+ payment_date: string;
15031
+ partner_id: string;
15032
+ payment_method_id?: string | undefined;
15033
+ payment_method_name?: string | undefined;
15034
+ invoice_id?: string | undefined;
15035
+ invoice_number?: string | undefined;
15036
+ }[]>;
15037
+ getPaymentMethods(): import("../types/api").RequestData<{
15038
+ id: string;
15039
+ source_ref: {
15040
+ id?: string | undefined;
15041
+ model?: string | undefined;
15042
+ };
15043
+ name: string;
15044
+ }[]>;
13510
15045
  }>;
13511
15046
  ecommerce: import("../types/api").ApiFor<{
13512
15047
  getCustomers(): import("../types/api").RequestData<{
@@ -13832,6 +15367,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
13832
15367
  refunded_amount: number;
13833
15368
  currency: string;
13834
15369
  note?: string | undefined;
15370
+ tags: string[];
13835
15371
  lines: {
13836
15372
  id: string;
13837
15373
  source_ref: {
@@ -14108,6 +15644,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
14108
15644
  refunded_amount: number;
14109
15645
  currency: string;
14110
15646
  note?: string | undefined;
15647
+ tags: string[];
14111
15648
  lines: {
14112
15649
  id: string;
14113
15650
  source_ref: {
@@ -14343,6 +15880,7 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
14343
15880
  refunded_amount: number;
14344
15881
  currency: string;
14345
15882
  note?: string | undefined;
15883
+ tags: string[];
14346
15884
  lines: {
14347
15885
  id: string;
14348
15886
  source_ref: {
@@ -14643,6 +16181,52 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
14643
16181
  logData: (logs: import("../types/consumers").ConsumerLog[]) => Promise<import("../types/sync").SimpleResponseModel>;
14644
16182
  setConnectionId: (connectionId: string) => Promise<void>;
14645
16183
  setIntegrationId: (integrationId: string) => Promise<void>;
16184
+ updateConsumer: (body: {
16185
+ name?: string | undefined;
16186
+ email?: string | undefined;
16187
+ internal_reference?: string | undefined;
16188
+ redirect_url?: string | undefined;
16189
+ }) => Promise<{
16190
+ consumerid: string;
16191
+ name: string;
16192
+ email?: string | undefined;
16193
+ internal_reference?: string | undefined;
16194
+ redirect_url?: string | undefined;
16195
+ }>;
16196
+ updateFlowConfig: (syncId: string, flowId: string, body: {
16197
+ triggerid: string;
16198
+ data: Record<string, never>;
16199
+ }) => Promise<{
16200
+ name: string;
16201
+ description?: string | undefined;
16202
+ id: string;
16203
+ config?: {
16204
+ definitionFields?: Record<string, never>[] | undefined;
16205
+ doorkeyFields?: Record<string, never>[] | undefined;
16206
+ customFields?: Record<string, never>[] | undefined;
16207
+ datastores: {
16208
+ id?: string | undefined;
16209
+ name: string;
16210
+ status: "active" | "inactive";
16211
+ definition: {
16212
+ columns: {
16213
+ name: string;
16214
+ title: string;
16215
+ type: string;
16216
+ optional: boolean;
16217
+ }[];
16218
+ search_column?: string | undefined;
16219
+ };
16220
+ }[];
16221
+ } | undefined;
16222
+ values: Record<string, never>;
16223
+ enabled_on?: string | undefined;
16224
+ trigger: {
16225
+ id: string;
16226
+ type: "event" | "timer";
16227
+ cronschedule?: string | undefined;
16228
+ };
16229
+ }>;
14646
16230
  }, context: any) => any, log?: boolean) => Promise<void>;
14647
16231
  flowId: string;
14648
16232
  name: string;
@@ -14650,5 +16234,22 @@ declare const Sync: (internalApi: InternalAPI, body: components['schemas']['Read
14650
16234
  name: string;
14651
16235
  consumers: string[];
14652
16236
  syncid: string;
16237
+ sendCustomEvent: (flowid: string, eventData: components['schemas']['PostSyncFlowEvent']) => Promise<{
16238
+ status: string;
16239
+ message: string;
16240
+ data?: Record<string, never> | undefined;
16241
+ }>;
16242
+ getConsumerExecutions: (consumerid: string, flowid: string) => Promise<{
16243
+ id: string;
16244
+ start: string;
16245
+ end?: string | undefined;
16246
+ status: string;
16247
+ }[]>;
16248
+ getExecution: (flowid: string, executionid: string) => Promise<{
16249
+ id: string;
16250
+ start: string;
16251
+ end?: string | undefined;
16252
+ status: string;
16253
+ }>;
14653
16254
  };
14654
16255
  export { Sync };