@chift/chift-nodejs 1.0.25 → 1.0.26

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.
@@ -127,7 +127,7 @@ export declare class API {
127
127
  }[];
128
128
  items: {
129
129
  id: string;
130
- type?: "menu" | "product" | "general_discount" | null | undefined;
130
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
131
131
  menu_id?: string | null | undefined;
132
132
  quantity: number;
133
133
  unit_price: number;
@@ -205,7 +205,7 @@ export declare class API {
205
205
  }[];
206
206
  items: {
207
207
  id: string;
208
- type?: "menu" | "product" | "general_discount" | null | undefined;
208
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
209
209
  menu_id?: string | null | undefined;
210
210
  quantity: number;
211
211
  unit_price: number;
@@ -332,6 +332,7 @@ export declare class API {
332
332
  payments: {
333
333
  payment_method_id?: string | null | undefined;
334
334
  payment_method_name?: string | null | undefined;
335
+ tip: number | null;
335
336
  total: number;
336
337
  }[] | null;
337
338
  taxes: {
@@ -392,7 +393,7 @@ export declare class API {
392
393
  }[];
393
394
  items: {
394
395
  id: string;
395
- type?: "menu" | "product" | "general_discount" | null | undefined;
396
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
396
397
  menu_id?: string | null | undefined;
397
398
  quantity: number;
398
399
  unit_price: number;
@@ -418,6 +419,22 @@ export declare class API {
418
419
  ledger_account_code?: string | null | undefined;
419
420
  posting_account_code?: string | null | undefined;
420
421
  }[]>;
422
+ getObjectives(params: {
423
+ page?: number | undefined;
424
+ size?: number | undefined;
425
+ date_from: string;
426
+ date_to: string;
427
+ location_id?: string | null | undefined;
428
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
429
+ items: {
430
+ total: number;
431
+ tax_amount: number;
432
+ date: string;
433
+ }[];
434
+ total: number;
435
+ page: number;
436
+ size: number;
437
+ }>;
421
438
  }>;
422
439
  pms: import("../types/api").ApiFor<{
423
440
  getLocations(rawData?: boolean | undefined): import("../types/api").RequestData<{
@@ -474,7 +491,7 @@ export declare class API {
474
491
  id?: string | null | undefined;
475
492
  model?: string | null | undefined;
476
493
  };
477
- type?: "menu" | "product" | "general_discount" | null | undefined;
494
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
478
495
  menu_id?: string | null | undefined;
479
496
  quantity: number;
480
497
  unit_price: number;
@@ -566,6 +583,7 @@ export declare class API {
566
583
  payments: {
567
584
  payment_method_id?: string | null | undefined;
568
585
  payment_method_name?: string | null | undefined;
586
+ tip: number | null;
569
587
  total: number;
570
588
  }[] | null;
571
589
  taxes: {
@@ -598,6 +616,7 @@ export declare class API {
598
616
  model?: string | null | undefined;
599
617
  };
600
618
  } | null | undefined;
619
+ description?: string | null | undefined;
601
620
  }[]>;
602
621
  getAccountingCategories(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
603
622
  id: string;
@@ -674,7 +693,7 @@ export declare class API {
674
693
  id?: string | null | undefined;
675
694
  model?: string | null | undefined;
676
695
  };
677
- type?: "menu" | "product" | "general_discount" | null | undefined;
696
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
678
697
  menu_id?: string | null | undefined;
679
698
  quantity: number;
680
699
  unit_price: number;
@@ -710,6 +729,7 @@ export declare class API {
710
729
  model?: string | null | undefined;
711
730
  };
712
731
  } | null | undefined;
732
+ description?: string | null | undefined;
713
733
  }[];
714
734
  service_id?: string | null | undefined;
715
735
  reservation?: {
@@ -775,7 +795,7 @@ export declare class API {
775
795
  id?: string | null | undefined;
776
796
  model?: string | null | undefined;
777
797
  };
778
- total: number;
798
+ amount: number;
779
799
  fee: number;
780
800
  currency: string;
781
801
  exchange_rate: number;
@@ -1288,7 +1308,7 @@ export declare class API {
1288
1308
  customer_memo?: string | null | undefined;
1289
1309
  invoice_date: string;
1290
1310
  due_date: string;
1291
- partner_id: string;
1311
+ partner_id?: string | null | undefined;
1292
1312
  journal_id?: string | null | undefined;
1293
1313
  status: "draft" | "posted" | null;
1294
1314
  pdf?: string | null | undefined;
@@ -1400,6 +1420,11 @@ export declare class API {
1400
1420
  country?: string | null | undefined;
1401
1421
  }[] | null;
1402
1422
  } | null | undefined;
1423
+ due_dates: {
1424
+ due_date: string;
1425
+ payment_method?: string | null | undefined;
1426
+ amount: number;
1427
+ }[] | null;
1403
1428
  lines: {
1404
1429
  line_number: number | null;
1405
1430
  unit_price: number;
@@ -1427,7 +1452,7 @@ export declare class API {
1427
1452
  customer_memo?: string | null | undefined;
1428
1453
  invoice_date: string;
1429
1454
  due_date: string;
1430
- partner_id: string;
1455
+ partner_id?: string | null | undefined;
1431
1456
  journal_id?: string | null | undefined;
1432
1457
  status: "draft" | "posted" | null;
1433
1458
  pdf?: string | null | undefined;
@@ -1545,6 +1570,11 @@ export declare class API {
1545
1570
  country?: string | null | undefined;
1546
1571
  }[] | null;
1547
1572
  } | null | undefined;
1573
+ due_dates: {
1574
+ due_date: string;
1575
+ payment_method?: string | null | undefined;
1576
+ amount: number;
1577
+ }[] | null;
1548
1578
  lines: {
1549
1579
  line_number: number | null;
1550
1580
  unit_price: number;
@@ -1644,6 +1674,11 @@ export declare class API {
1644
1674
  country?: string | null | undefined;
1645
1675
  }[] | null;
1646
1676
  } | null | undefined;
1677
+ due_dates: {
1678
+ due_date: string;
1679
+ payment_method?: string | null | undefined;
1680
+ amount: number;
1681
+ }[] | null;
1647
1682
  lines: {
1648
1683
  line_number: number | null;
1649
1684
  unit_price: number;
@@ -1732,6 +1767,11 @@ export declare class API {
1732
1767
  country?: string | null | undefined;
1733
1768
  }[] | null;
1734
1769
  } | null | undefined;
1770
+ due_dates: {
1771
+ due_date: string;
1772
+ payment_method?: string | null | undefined;
1773
+ amount: number;
1774
+ }[] | null;
1735
1775
  lines: {
1736
1776
  line_number: number | null;
1737
1777
  unit_price: number;
@@ -1820,6 +1860,11 @@ export declare class API {
1820
1860
  country?: string | null | undefined;
1821
1861
  }[] | null;
1822
1862
  } | null | undefined;
1863
+ due_dates: {
1864
+ due_date: string;
1865
+ payment_method?: string | null | undefined;
1866
+ amount: number;
1867
+ }[] | null;
1823
1868
  lines: {
1824
1869
  line_number: number | null;
1825
1870
  unit_price: number;
@@ -1919,6 +1964,11 @@ export declare class API {
1919
1964
  country?: string | null | undefined;
1920
1965
  }[] | null;
1921
1966
  } | null | undefined;
1967
+ due_dates: {
1968
+ due_date: string;
1969
+ payment_method?: string | null | undefined;
1970
+ amount: number;
1971
+ }[] | null;
1922
1972
  lines: {
1923
1973
  line_number: number | null;
1924
1974
  unit_price: number;
@@ -2077,6 +2127,12 @@ export declare class API {
2077
2127
  date: string | null;
2078
2128
  posted: boolean | null;
2079
2129
  id: string;
2130
+ due_dates: {
2131
+ due_date: string;
2132
+ payment_method?: string | null | undefined;
2133
+ debit: number | null;
2134
+ credit: number | null;
2135
+ }[] | null;
2080
2136
  items: {
2081
2137
  account_number: string;
2082
2138
  partner_id?: string | null | undefined;
@@ -2110,6 +2166,12 @@ export declare class API {
2110
2166
  date: string | null;
2111
2167
  posted: boolean | null;
2112
2168
  id: string;
2169
+ due_dates: {
2170
+ due_date: string;
2171
+ payment_method?: string | null | undefined;
2172
+ debit: number | null;
2173
+ credit: number | null;
2174
+ }[] | null;
2113
2175
  items: {
2114
2176
  account_number: string;
2115
2177
  partner_id?: string | null | undefined;
@@ -2157,6 +2219,7 @@ export declare class API {
2157
2219
  name: string;
2158
2220
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
2159
2221
  counterpart_account?: string | null | undefined;
2222
+ unallocated_account?: string | null | undefined;
2160
2223
  next_document_numbers: {
2161
2224
  bookyear_name?: string | null | undefined;
2162
2225
  next_document_number?: string | null | undefined;
@@ -2165,6 +2228,8 @@ export declare class API {
2165
2228
  }[] | null;
2166
2229
  iban?: string | null | undefined;
2167
2230
  currency?: string | null | undefined;
2231
+ other_currencies_allowed: boolean | null;
2232
+ blocked: boolean | null;
2168
2233
  }[]>;
2169
2234
  createJournal(journal: {
2170
2235
  code: string;
@@ -2179,6 +2244,7 @@ export declare class API {
2179
2244
  name: string;
2180
2245
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
2181
2246
  counterpart_account?: string | null | undefined;
2247
+ unallocated_account?: string | null | undefined;
2182
2248
  next_document_numbers: {
2183
2249
  bookyear_name?: string | null | undefined;
2184
2250
  next_document_number?: string | null | undefined;
@@ -2187,6 +2253,8 @@ export declare class API {
2187
2253
  }[] | null;
2188
2254
  iban?: string | null | undefined;
2189
2255
  currency?: string | null | undefined;
2256
+ other_currencies_allowed: boolean | null;
2257
+ blocked: boolean | null;
2190
2258
  }>;
2191
2259
  getVatCodes(params?: {
2192
2260
  folder_id?: string | null | undefined;
@@ -2200,6 +2268,7 @@ export declare class API {
2200
2268
  deductible_account?: string | null | undefined;
2201
2269
  payable_account?: string | null | undefined;
2202
2270
  reversed: boolean | null;
2271
+ country?: string | null | undefined;
2203
2272
  }[]>;
2204
2273
  getMiscOperations(params?: {
2205
2274
  date_from?: string | null | undefined;
@@ -2306,7 +2375,7 @@ export declare class API {
2306
2375
  number: string;
2307
2376
  name: string;
2308
2377
  active: boolean | null;
2309
- type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_financial" | "receivable" | "payable" | "other" | null | undefined;
2378
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
2310
2379
  }[]>;
2311
2380
  getBalanceOfAccounts(filter: {
2312
2381
  accounts: string[];
@@ -2370,41 +2439,6 @@ export declare class API {
2370
2439
  reference?: string | null | undefined;
2371
2440
  } | null | undefined;
2372
2441
  }[]>;
2373
- createFinancialEntryOld(financial_entry: {
2374
- date: string;
2375
- journal_id: string;
2376
- currency: string;
2377
- currency_exchange_rate: number | null;
2378
- reference?: string | null | undefined;
2379
- number?: string | null | undefined;
2380
- items: {
2381
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
2382
- account_number: string;
2383
- partner_id?: string | null | undefined;
2384
- amount: number;
2385
- description?: string | null | undefined;
2386
- }[];
2387
- pdf?: string | null | undefined;
2388
- }, params?: {
2389
- folder_id?: string | null | undefined;
2390
- financial_counterpart_account?: string | null | undefined;
2391
- } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2392
- date: string;
2393
- journal_id: string;
2394
- currency: string;
2395
- currency_exchange_rate: number | null;
2396
- reference?: string | null | undefined;
2397
- id: string;
2398
- number: string;
2399
- items: {
2400
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
2401
- account_number: string;
2402
- partner_id?: string | null | undefined;
2403
- amount: number;
2404
- description?: string | null | undefined;
2405
- counterpart_account: string;
2406
- }[];
2407
- }>;
2408
2442
  createFinancialEntry(financial_entry: {
2409
2443
  date: string;
2410
2444
  journal_id: string;
@@ -2438,59 +2472,6 @@ export declare class API {
2438
2472
  counterpart_account: string;
2439
2473
  }[];
2440
2474
  }>;
2441
- createJournalEntryOld(journal_entry: {
2442
- reference?: string | null | undefined;
2443
- due_date?: string | null | undefined;
2444
- journal_id: string;
2445
- name: string;
2446
- date: string;
2447
- items: {
2448
- account_number: string;
2449
- partner_id?: string | null | undefined;
2450
- description?: string | null | undefined;
2451
- debit: number;
2452
- credit: number;
2453
- currency: string;
2454
- currency_exchange_rate: number | null;
2455
- analytic_distribution: {
2456
- analytic_plan: string;
2457
- analytic_accounts: {
2458
- analytic_account: string;
2459
- percentage: number;
2460
- }[];
2461
- }[] | null;
2462
- }[];
2463
- pdf?: string | null | undefined;
2464
- }, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2465
- reference?: string | null | undefined;
2466
- due_date?: string | null | undefined;
2467
- journal_id: string;
2468
- name?: string | null | undefined;
2469
- journal_name?: string | null | undefined;
2470
- date: string | null;
2471
- posted: boolean | null;
2472
- id: string;
2473
- items: {
2474
- account_number: string;
2475
- partner_id?: string | null | undefined;
2476
- description?: string | null | undefined;
2477
- debit: number;
2478
- credit: number;
2479
- currency: string;
2480
- currency_exchange_rate: number | null;
2481
- id: string;
2482
- partner_name?: string | null | undefined;
2483
- account_name: string;
2484
- matching_numbers: string[] | null;
2485
- analytic_distribution: {
2486
- analytic_plan: string;
2487
- analytic_accounts: {
2488
- analytic_account: string;
2489
- percentage: number;
2490
- }[];
2491
- }[] | null;
2492
- }[] | null;
2493
- }>;
2494
2475
  createJournalEntry(journal_entry: {
2495
2476
  reference?: string | null | undefined;
2496
2477
  due_date?: string | null | undefined;
@@ -2501,7 +2482,7 @@ export declare class API {
2501
2482
  date: string;
2502
2483
  items: {
2503
2484
  account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
2504
- account: string;
2485
+ account?: string | null | undefined;
2505
2486
  force_general_account?: string | null | undefined;
2506
2487
  prioritise_thirdparty_account: boolean | null;
2507
2488
  description?: string | null | undefined;
@@ -2515,7 +2496,6 @@ export declare class API {
2515
2496
  }[];
2516
2497
  }[] | null;
2517
2498
  tax_code?: string | null | undefined;
2518
- country?: string | null | undefined;
2519
2499
  account_info?: {
2520
2500
  account_number: string;
2521
2501
  account_name: string;
@@ -2537,6 +2517,12 @@ export declare class API {
2537
2517
  date: string | null;
2538
2518
  posted: boolean | null;
2539
2519
  id: string;
2520
+ due_dates: {
2521
+ due_date: string;
2522
+ payment_method?: string | null | undefined;
2523
+ debit: number | null;
2524
+ credit: number | null;
2525
+ }[] | null;
2540
2526
  items: {
2541
2527
  account_number: string;
2542
2528
  partner_id?: string | null | undefined;
@@ -2581,12 +2567,65 @@ export declare class API {
2581
2567
  [key: string]: unknown;
2582
2568
  } | null | undefined;
2583
2569
  }[]>;
2570
+ createExpense(expense: {
2571
+ employee_id: string;
2572
+ total: number;
2573
+ untaxed_amount: number;
2574
+ tax_amount: number;
2575
+ reference?: string | null | undefined;
2576
+ number?: string | null | undefined;
2577
+ currency: string;
2578
+ currency_exchange_rate: number | null;
2579
+ date: string;
2580
+ pdf?: string | null | undefined;
2581
+ lines: {
2582
+ total: number;
2583
+ untaxed_amount: number;
2584
+ tax_amount: number;
2585
+ description?: string | null | undefined;
2586
+ account_number: string;
2587
+ tax_rate: number;
2588
+ tax_id: string;
2589
+ }[];
2590
+ }, params?: {
2591
+ folder_id?: string | null | undefined;
2592
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2593
+ employee_id: string;
2594
+ total: number;
2595
+ untaxed_amount: number;
2596
+ tax_amount: number;
2597
+ reference?: string | null | undefined;
2598
+ number?: string | null | undefined;
2599
+ currency: string;
2600
+ currency_exchange_rate: number | null;
2601
+ date: string;
2602
+ pdf?: string | null | undefined;
2603
+ lines: {
2604
+ total: number;
2605
+ untaxed_amount: number;
2606
+ tax_amount: number;
2607
+ description?: string | null | undefined;
2608
+ account_number: string;
2609
+ tax_rate: number;
2610
+ tax_id: string;
2611
+ }[];
2612
+ id: string;
2613
+ }>;
2584
2614
  getFolders(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2585
2615
  id: string;
2586
2616
  name: string;
2587
2617
  selected: boolean | null;
2588
2618
  vat?: string | null | undefined;
2589
2619
  company_number?: string | null | undefined;
2620
+ main_currency?: string | null | undefined;
2621
+ addresses?: {
2622
+ street?: string | null | undefined;
2623
+ number?: string | null | undefined;
2624
+ box?: string | null | undefined;
2625
+ postal_code?: string | null | undefined;
2626
+ city?: string | null | undefined;
2627
+ country?: string | null | undefined;
2628
+ }[] | null | undefined;
2590
2629
  }[]>;
2591
2630
  getBookyears(params?: {
2592
2631
  folder_id?: string | null | undefined;
@@ -2599,13 +2638,14 @@ export declare class API {
2599
2638
  createLedgerAccount(account: {
2600
2639
  name: string;
2601
2640
  number: string;
2641
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
2602
2642
  }, params?: {
2603
2643
  folder_id?: string | null | undefined;
2604
2644
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
2605
2645
  number: string;
2606
2646
  name: string;
2607
2647
  active: boolean | null;
2608
- type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_financial" | "receivable" | "payable" | "other" | null | undefined;
2648
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
2609
2649
  }>;
2610
2650
  createBankAccount(bankAccount: {
2611
2651
  code: string;
@@ -2626,6 +2666,7 @@ export declare class API {
2626
2666
  bank_name?: string | null | undefined;
2627
2667
  journal_id?: string | null | undefined;
2628
2668
  ledger_account?: string | null | undefined;
2669
+ unallocated_account?: string | null | undefined;
2629
2670
  }>;
2630
2671
  getJournalEntry(journalEntryId: string, params?: {
2631
2672
  folder_id?: string | null | undefined;
@@ -2638,6 +2679,12 @@ export declare class API {
2638
2679
  date: string | null;
2639
2680
  posted: boolean | null;
2640
2681
  id: string;
2682
+ due_dates: {
2683
+ due_date: string;
2684
+ payment_method?: string | null | undefined;
2685
+ debit: number | null;
2686
+ credit: number | null;
2687
+ }[] | null;
2641
2688
  items: {
2642
2689
  account_number: string;
2643
2690
  partner_id?: string | null | undefined;
@@ -2659,6 +2706,38 @@ export declare class API {
2659
2706
  }[] | null;
2660
2707
  }[] | null;
2661
2708
  }>;
2709
+ getPaymentMethods(params?: {
2710
+ page?: number | undefined;
2711
+ size?: number | undefined;
2712
+ folder_id?: string | null | undefined;
2713
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
2714
+ items: {
2715
+ id: string;
2716
+ name?: string | null | undefined;
2717
+ }[];
2718
+ total: number;
2719
+ page: number;
2720
+ size: number;
2721
+ }>;
2722
+ createInvoicePayment(body: {
2723
+ date: string;
2724
+ payment_method_id: string;
2725
+ currency: string;
2726
+ currency_exchange_rate: number | null;
2727
+ reference?: string | null | undefined;
2728
+ number?: string | null | undefined;
2729
+ items: {
2730
+ invoice_id: string;
2731
+ amount: number;
2732
+ }[];
2733
+ }, params?: {
2734
+ folder_id?: string | null | undefined;
2735
+ } | undefined): import("../types/api").RequestData<{
2736
+ headers: {
2737
+ [name: string]: unknown;
2738
+ };
2739
+ content?: undefined;
2740
+ }>;
2662
2741
  }>;
2663
2742
  invoicing: import("../types/api").ApiFor<{
2664
2743
  getInvoices(params?: {
@@ -2729,6 +2808,7 @@ export declare class API {
2729
2808
  } | null | undefined;
2730
2809
  last_updated_on?: string | null | undefined;
2731
2810
  outstanding_amount?: number | null | undefined;
2811
+ last_payment_date?: string | null | undefined;
2732
2812
  accounting_date?: string | null | undefined;
2733
2813
  payment_method_id?: string | null | undefined;
2734
2814
  currency_exchange_rate: number | null;
@@ -2796,6 +2876,7 @@ export declare class API {
2796
2876
  } | null | undefined;
2797
2877
  last_updated_on?: string | null | undefined;
2798
2878
  outstanding_amount?: number | null | undefined;
2879
+ last_payment_date?: string | null | undefined;
2799
2880
  accounting_date?: string | null | undefined;
2800
2881
  payment_method_id?: string | null | undefined;
2801
2882
  currency_exchange_rate: number | null;
@@ -2916,6 +2997,7 @@ export declare class API {
2916
2997
  } | null | undefined;
2917
2998
  last_updated_on?: string | null | undefined;
2918
2999
  outstanding_amount?: number | null | undefined;
3000
+ last_payment_date?: string | null | undefined;
2919
3001
  accounting_date?: string | null | undefined;
2920
3002
  payment_method_id?: string | null | undefined;
2921
3003
  currency_exchange_rate: number | null;
@@ -3243,59 +3325,182 @@ export declare class API {
3243
3325
  };
3244
3326
  name: string;
3245
3327
  }[]>;
3246
- }>;
3247
- ecommerce: import("../types/api").ApiFor<{
3248
- getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3249
- id: string;
3250
- source_ref: {
3251
- id?: string | null | undefined;
3252
- model?: string | null | undefined;
3253
- };
3254
- first_name?: string | null | undefined;
3255
- last_name?: string | null | undefined;
3256
- phone?: string | null | undefined;
3257
- email?: string | null | undefined;
3258
- language?: string | null | undefined;
3259
- internal_notes?: string | null | undefined;
3260
- currency?: string | null | undefined;
3261
- addresses: {
3262
- address_type: "main" | "delivery" | "invoice";
3263
- company_name?: string | null | undefined;
3264
- first_name?: string | null | undefined;
3265
- last_name?: string | null | undefined;
3266
- street?: string | null | undefined;
3267
- number?: string | null | undefined;
3268
- box?: string | null | undefined;
3269
- city?: string | null | undefined;
3270
- postal_code?: string | null | undefined;
3271
- country?: string | null | undefined;
3272
- phone?: string | null | undefined;
3273
- email?: string | null | undefined;
3274
- }[] | null;
3275
- created_on?: string | null | undefined;
3276
- }[]>;
3277
- getProducts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3278
- id: string;
3279
- source_ref: {
3280
- id?: string | null | undefined;
3281
- model?: string | null | undefined;
3282
- };
3283
- name: string;
3284
- description?: string | null | undefined;
3285
- description_html?: string | null | undefined;
3286
- categories: {
3328
+ getBankAccounts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3329
+ items: {
3287
3330
  id: string;
3331
+ source_ref: {
3332
+ id?: string | null | undefined;
3333
+ model?: string | null | undefined;
3334
+ };
3288
3335
  name: string;
3289
- }[] | null;
3290
- created_on?: string | null | undefined;
3291
- variants: {
3336
+ iban?: string | null | undefined;
3337
+ currency?: string | null | undefined;
3338
+ balance?: number | null | undefined;
3339
+ }[];
3340
+ total: number;
3341
+ page: number;
3342
+ size: number;
3343
+ }>;
3344
+ getBankTransactions(params: {
3345
+ date_from?: string | null | undefined;
3346
+ date_to?: string | null | undefined;
3347
+ bank_account_id: string;
3348
+ status?: "draft" | "done" | null | undefined;
3349
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3350
+ items: {
3292
3351
  id: string;
3293
3352
  source_ref: {
3294
3353
  id?: string | null | undefined;
3295
3354
  model?: string | null | undefined;
3296
3355
  };
3297
- parent_id: string;
3298
- name: string;
3356
+ status: "draft" | "done";
3357
+ bank_account_id: string;
3358
+ amount: number;
3359
+ date: string;
3360
+ description?: string | null | undefined;
3361
+ currency: string;
3362
+ currency_exchange_rate: number | null;
3363
+ accounting_code?: string | null | undefined;
3364
+ linked_documents: {
3365
+ id: string;
3366
+ source_ref: {
3367
+ id?: string | null | undefined;
3368
+ model?: string | null | undefined;
3369
+ };
3370
+ amount: number;
3371
+ type: "invoice" | "other";
3372
+ }[] | null;
3373
+ }[];
3374
+ total: number;
3375
+ page: number;
3376
+ size: number;
3377
+ }>;
3378
+ uploadDocument(document: {
3379
+ base64_string: string;
3380
+ document_type: "customer_document" | "supplier_document" | "employee_expense";
3381
+ }, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
3382
+ id: string;
3383
+ source_ref: {
3384
+ id?: string | null | undefined;
3385
+ model?: string | null | undefined;
3386
+ };
3387
+ currency?: string | null | undefined;
3388
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
3389
+ status?: "draft" | "posted" | "cancelled" | "paid" | null | undefined;
3390
+ invoice_date?: string | null | undefined;
3391
+ tax_amount?: number | null | undefined;
3392
+ untaxed_amount?: number | null | undefined;
3393
+ total?: number | null | undefined;
3394
+ lines: {
3395
+ description?: string | null | undefined;
3396
+ unit_price: number;
3397
+ quantity: number;
3398
+ discount_amount: number;
3399
+ tax_amount: number;
3400
+ untaxed_amount: number;
3401
+ total: number;
3402
+ tax_rate?: number | null | undefined;
3403
+ account_number?: string | null | undefined;
3404
+ tax_id?: string | null | undefined;
3405
+ tax_exemption_reason?: string | null | undefined;
3406
+ unit_of_measure?: string | null | undefined;
3407
+ product_id?: string | null | undefined;
3408
+ product_code?: string | null | undefined;
3409
+ product_name?: string | null | undefined;
3410
+ }[] | null;
3411
+ partner_id?: string | null | undefined;
3412
+ invoice_number?: string | null | undefined;
3413
+ due_date?: string | null | undefined;
3414
+ reference?: string | null | undefined;
3415
+ payment_communication?: string | null | undefined;
3416
+ customer_memo?: string | null | undefined;
3417
+ journal_ref?: {
3418
+ id?: string | null | undefined;
3419
+ model?: string | null | undefined;
3420
+ name?: string | null | undefined;
3421
+ } | null | undefined;
3422
+ italian_specificities?: {
3423
+ stamp_duty_amount?: number | null | undefined;
3424
+ withholding_tax?: {
3425
+ rate: number;
3426
+ amount: number;
3427
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | null | undefined;
3428
+ 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" | null | undefined;
3429
+ } | null | undefined;
3430
+ welfare_fund?: {
3431
+ rate: number;
3432
+ amount: number;
3433
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | null | undefined;
3434
+ } | null | undefined;
3435
+ payment_reporting?: {
3436
+ method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | null | undefined;
3437
+ conditions?: "TP01" | "TP02" | "TP03" | null | undefined;
3438
+ } | null | undefined;
3439
+ } | null | undefined;
3440
+ last_updated_on?: string | null | undefined;
3441
+ outstanding_amount?: number | null | undefined;
3442
+ last_payment_date?: string | null | undefined;
3443
+ accounting_date?: string | null | undefined;
3444
+ payment_method_id?: string | null | undefined;
3445
+ currency_exchange_rate: number | null;
3446
+ }>;
3447
+ }>;
3448
+ ecommerce: import("../types/api").ApiFor<{
3449
+ getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3450
+ id: string;
3451
+ source_ref: {
3452
+ id?: string | null | undefined;
3453
+ model?: string | null | undefined;
3454
+ };
3455
+ first_name?: string | null | undefined;
3456
+ last_name?: string | null | undefined;
3457
+ phone?: string | null | undefined;
3458
+ email?: string | null | undefined;
3459
+ language?: string | null | undefined;
3460
+ internal_notes?: string | null | undefined;
3461
+ currency?: string | null | undefined;
3462
+ addresses: {
3463
+ address_type: "main" | "delivery" | "invoice";
3464
+ company_name?: string | null | undefined;
3465
+ first_name?: string | null | undefined;
3466
+ last_name?: string | null | undefined;
3467
+ street?: string | null | undefined;
3468
+ number?: string | null | undefined;
3469
+ box?: string | null | undefined;
3470
+ city?: string | null | undefined;
3471
+ postal_code?: string | null | undefined;
3472
+ country?: string | null | undefined;
3473
+ phone?: string | null | undefined;
3474
+ email?: string | null | undefined;
3475
+ }[] | null;
3476
+ created_on?: string | null | undefined;
3477
+ }[]>;
3478
+ getProducts(params?: {
3479
+ updated_after?: string | null | undefined;
3480
+ sku?: string | null | undefined;
3481
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
3482
+ id: string;
3483
+ source_ref: {
3484
+ id?: string | null | undefined;
3485
+ model?: string | null | undefined;
3486
+ };
3487
+ name: string;
3488
+ description?: string | null | undefined;
3489
+ description_html?: string | null | undefined;
3490
+ categories: {
3491
+ id: string;
3492
+ name: string;
3493
+ }[] | null;
3494
+ created_on?: string | null | undefined;
3495
+ last_updated_on?: string | null | undefined;
3496
+ variants: {
3497
+ id: string;
3498
+ source_ref: {
3499
+ id?: string | null | undefined;
3500
+ model?: string | null | undefined;
3501
+ };
3502
+ parent_id: string;
3503
+ name: string;
3299
3504
  description?: string | null | undefined;
3300
3505
  description_html?: string | null | undefined;
3301
3506
  categories: {
@@ -3329,6 +3534,7 @@ export declare class API {
3329
3534
  }[] | null;
3330
3535
  }[] | null;
3331
3536
  status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
3537
+ sku?: string | null | undefined;
3332
3538
  common_attributes: {
3333
3539
  name: string;
3334
3540
  values: string[];
@@ -3386,6 +3592,7 @@ export declare class API {
3386
3592
  name: string;
3387
3593
  }[] | null;
3388
3594
  created_on?: string | null | undefined;
3595
+ last_updated_on?: string | null | undefined;
3389
3596
  variants: {
3390
3597
  id: string;
3391
3598
  source_ref: {
@@ -3427,6 +3634,7 @@ export declare class API {
3427
3634
  }[] | null;
3428
3635
  }[] | null;
3429
3636
  status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
3637
+ sku?: string | null | undefined;
3430
3638
  common_attributes: {
3431
3639
  name: string;
3432
3640
  values: string[];
@@ -3616,6 +3824,7 @@ export declare class API {
3616
3824
  amount: number;
3617
3825
  }[] | null;
3618
3826
  gift_card: boolean | null;
3827
+ is_gift: boolean | null;
3619
3828
  }[];
3620
3829
  other_fees: {
3621
3830
  id: string;
@@ -3893,6 +4102,7 @@ export declare class API {
3893
4102
  amount: number;
3894
4103
  }[] | null;
3895
4104
  gift_card: boolean | null;
4105
+ is_gift: boolean | null;
3896
4106
  }[];
3897
4107
  other_fees: {
3898
4108
  id: string;
@@ -4131,6 +4341,7 @@ export declare class API {
4131
4341
  amount: number;
4132
4342
  }[] | null;
4133
4343
  gift_card: boolean | null;
4344
+ is_gift: boolean | null;
4134
4345
  }[];
4135
4346
  other_fees: {
4136
4347
  id: string;
@@ -4389,6 +4600,11 @@ export declare class API {
4389
4600
  description?: string | null | undefined;
4390
4601
  display_order: number;
4391
4602
  challenge_question?: string | null | undefined;
4603
+ conditions?: {
4604
+ [key: string]: {
4605
+ [key: string]: unknown;
4606
+ };
4607
+ } | null | undefined;
4392
4608
  values: {
4393
4609
  source_id?: string | null | undefined;
4394
4610
  target_id?: string | null | undefined;
@@ -4399,6 +4615,9 @@ export declare class API {
4399
4615
  link_metadata?: {
4400
4616
  [key: string]: unknown;
4401
4617
  } | null | undefined;
4618
+ link_presync?: {
4619
+ [key: string]: unknown;
4620
+ } | null | undefined;
4402
4621
  enabled_flows?: {
4403
4622
  name: string;
4404
4623
  description?: string | null | undefined;
@@ -4656,7 +4875,7 @@ export declare class API {
4656
4875
  }[];
4657
4876
  items: {
4658
4877
  id: string;
4659
- type?: "menu" | "product" | "general_discount" | null | undefined;
4878
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
4660
4879
  menu_id?: string | null | undefined;
4661
4880
  quantity: number;
4662
4881
  unit_price: number;
@@ -4734,7 +4953,7 @@ export declare class API {
4734
4953
  }[];
4735
4954
  items: {
4736
4955
  id: string;
4737
- type?: "menu" | "product" | "general_discount" | null | undefined;
4956
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
4738
4957
  menu_id?: string | null | undefined;
4739
4958
  quantity: number;
4740
4959
  unit_price: number;
@@ -4861,6 +5080,7 @@ export declare class API {
4861
5080
  payments: {
4862
5081
  payment_method_id?: string | null | undefined;
4863
5082
  payment_method_name?: string | null | undefined;
5083
+ tip: number | null;
4864
5084
  total: number;
4865
5085
  }[] | null;
4866
5086
  taxes: {
@@ -4921,7 +5141,7 @@ export declare class API {
4921
5141
  }[];
4922
5142
  items: {
4923
5143
  id: string;
4924
- type?: "menu" | "product" | "general_discount" | null | undefined;
5144
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
4925
5145
  menu_id?: string | null | undefined;
4926
5146
  quantity: number;
4927
5147
  unit_price: number;
@@ -4947,6 +5167,22 @@ export declare class API {
4947
5167
  ledger_account_code?: string | null | undefined;
4948
5168
  posting_account_code?: string | null | undefined;
4949
5169
  }[]>;
5170
+ getObjectives(params: {
5171
+ page?: number | undefined;
5172
+ size?: number | undefined;
5173
+ date_from: string;
5174
+ date_to: string;
5175
+ location_id?: string | null | undefined;
5176
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
5177
+ items: {
5178
+ total: number;
5179
+ tax_amount: number;
5180
+ date: string;
5181
+ }[];
5182
+ total: number;
5183
+ page: number;
5184
+ size: number;
5185
+ }>;
4950
5186
  }>;
4951
5187
  pms: import("../types/api").ApiFor<{
4952
5188
  getLocations(rawData?: boolean | undefined): import("../types/api").RequestData<{
@@ -5003,7 +5239,7 @@ export declare class API {
5003
5239
  id?: string | null | undefined;
5004
5240
  model?: string | null | undefined;
5005
5241
  };
5006
- type?: "menu" | "product" | "general_discount" | null | undefined;
5242
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
5007
5243
  menu_id?: string | null | undefined;
5008
5244
  quantity: number;
5009
5245
  unit_price: number;
@@ -5095,6 +5331,7 @@ export declare class API {
5095
5331
  payments: {
5096
5332
  payment_method_id?: string | null | undefined;
5097
5333
  payment_method_name?: string | null | undefined;
5334
+ tip: number | null;
5098
5335
  total: number;
5099
5336
  }[] | null;
5100
5337
  taxes: {
@@ -5127,6 +5364,7 @@ export declare class API {
5127
5364
  model?: string | null | undefined;
5128
5365
  };
5129
5366
  } | null | undefined;
5367
+ description?: string | null | undefined;
5130
5368
  }[]>;
5131
5369
  getAccountingCategories(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
5132
5370
  id: string;
@@ -5203,7 +5441,7 @@ export declare class API {
5203
5441
  id?: string | null | undefined;
5204
5442
  model?: string | null | undefined;
5205
5443
  };
5206
- type?: "menu" | "product" | "general_discount" | null | undefined;
5444
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
5207
5445
  menu_id?: string | null | undefined;
5208
5446
  quantity: number;
5209
5447
  unit_price: number;
@@ -5239,6 +5477,7 @@ export declare class API {
5239
5477
  model?: string | null | undefined;
5240
5478
  };
5241
5479
  } | null | undefined;
5480
+ description?: string | null | undefined;
5242
5481
  }[];
5243
5482
  service_id?: string | null | undefined;
5244
5483
  reservation?: {
@@ -5304,7 +5543,7 @@ export declare class API {
5304
5543
  id?: string | null | undefined;
5305
5544
  model?: string | null | undefined;
5306
5545
  };
5307
- total: number;
5546
+ amount: number;
5308
5547
  fee: number;
5309
5548
  currency: string;
5310
5549
  exchange_rate: number;
@@ -5817,7 +6056,7 @@ export declare class API {
5817
6056
  customer_memo?: string | null | undefined;
5818
6057
  invoice_date: string;
5819
6058
  due_date: string;
5820
- partner_id: string;
6059
+ partner_id?: string | null | undefined;
5821
6060
  journal_id?: string | null | undefined;
5822
6061
  status: "draft" | "posted" | null;
5823
6062
  pdf?: string | null | undefined;
@@ -5929,6 +6168,11 @@ export declare class API {
5929
6168
  country?: string | null | undefined;
5930
6169
  }[] | null;
5931
6170
  } | null | undefined;
6171
+ due_dates: {
6172
+ due_date: string;
6173
+ payment_method?: string | null | undefined;
6174
+ amount: number;
6175
+ }[] | null;
5932
6176
  lines: {
5933
6177
  line_number: number | null;
5934
6178
  unit_price: number;
@@ -5956,7 +6200,7 @@ export declare class API {
5956
6200
  customer_memo?: string | null | undefined;
5957
6201
  invoice_date: string;
5958
6202
  due_date: string;
5959
- partner_id: string;
6203
+ partner_id?: string | null | undefined;
5960
6204
  journal_id?: string | null | undefined;
5961
6205
  status: "draft" | "posted" | null;
5962
6206
  pdf?: string | null | undefined;
@@ -6074,6 +6318,11 @@ export declare class API {
6074
6318
  country?: string | null | undefined;
6075
6319
  }[] | null;
6076
6320
  } | null | undefined;
6321
+ due_dates: {
6322
+ due_date: string;
6323
+ payment_method?: string | null | undefined;
6324
+ amount: number;
6325
+ }[] | null;
6077
6326
  lines: {
6078
6327
  line_number: number | null;
6079
6328
  unit_price: number;
@@ -6173,6 +6422,11 @@ export declare class API {
6173
6422
  country?: string | null | undefined;
6174
6423
  }[] | null;
6175
6424
  } | null | undefined;
6425
+ due_dates: {
6426
+ due_date: string;
6427
+ payment_method?: string | null | undefined;
6428
+ amount: number;
6429
+ }[] | null;
6176
6430
  lines: {
6177
6431
  line_number: number | null;
6178
6432
  unit_price: number;
@@ -6261,6 +6515,11 @@ export declare class API {
6261
6515
  country?: string | null | undefined;
6262
6516
  }[] | null;
6263
6517
  } | null | undefined;
6518
+ due_dates: {
6519
+ due_date: string;
6520
+ payment_method?: string | null | undefined;
6521
+ amount: number;
6522
+ }[] | null;
6264
6523
  lines: {
6265
6524
  line_number: number | null;
6266
6525
  unit_price: number;
@@ -6349,6 +6608,11 @@ export declare class API {
6349
6608
  country?: string | null | undefined;
6350
6609
  }[] | null;
6351
6610
  } | null | undefined;
6611
+ due_dates: {
6612
+ due_date: string;
6613
+ payment_method?: string | null | undefined;
6614
+ amount: number;
6615
+ }[] | null;
6352
6616
  lines: {
6353
6617
  line_number: number | null;
6354
6618
  unit_price: number;
@@ -6448,6 +6712,11 @@ export declare class API {
6448
6712
  country?: string | null | undefined;
6449
6713
  }[] | null;
6450
6714
  } | null | undefined;
6715
+ due_dates: {
6716
+ due_date: string;
6717
+ payment_method?: string | null | undefined;
6718
+ amount: number;
6719
+ }[] | null;
6451
6720
  lines: {
6452
6721
  line_number: number | null;
6453
6722
  unit_price: number;
@@ -6606,6 +6875,12 @@ export declare class API {
6606
6875
  date: string | null;
6607
6876
  posted: boolean | null;
6608
6877
  id: string;
6878
+ due_dates: {
6879
+ due_date: string;
6880
+ payment_method?: string | null | undefined;
6881
+ debit: number | null;
6882
+ credit: number | null;
6883
+ }[] | null;
6609
6884
  items: {
6610
6885
  account_number: string;
6611
6886
  partner_id?: string | null | undefined;
@@ -6639,6 +6914,12 @@ export declare class API {
6639
6914
  date: string | null;
6640
6915
  posted: boolean | null;
6641
6916
  id: string;
6917
+ due_dates: {
6918
+ due_date: string;
6919
+ payment_method?: string | null | undefined;
6920
+ debit: number | null;
6921
+ credit: number | null;
6922
+ }[] | null;
6642
6923
  items: {
6643
6924
  account_number: string;
6644
6925
  partner_id?: string | null | undefined;
@@ -6686,6 +6967,7 @@ export declare class API {
6686
6967
  name: string;
6687
6968
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6688
6969
  counterpart_account?: string | null | undefined;
6970
+ unallocated_account?: string | null | undefined;
6689
6971
  next_document_numbers: {
6690
6972
  bookyear_name?: string | null | undefined;
6691
6973
  next_document_number?: string | null | undefined;
@@ -6694,6 +6976,8 @@ export declare class API {
6694
6976
  }[] | null;
6695
6977
  iban?: string | null | undefined;
6696
6978
  currency?: string | null | undefined;
6979
+ other_currencies_allowed: boolean | null;
6980
+ blocked: boolean | null;
6697
6981
  }[]>;
6698
6982
  createJournal(journal: {
6699
6983
  code: string;
@@ -6708,6 +6992,7 @@ export declare class API {
6708
6992
  name: string;
6709
6993
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
6710
6994
  counterpart_account?: string | null | undefined;
6995
+ unallocated_account?: string | null | undefined;
6711
6996
  next_document_numbers: {
6712
6997
  bookyear_name?: string | null | undefined;
6713
6998
  next_document_number?: string | null | undefined;
@@ -6716,6 +7001,8 @@ export declare class API {
6716
7001
  }[] | null;
6717
7002
  iban?: string | null | undefined;
6718
7003
  currency?: string | null | undefined;
7004
+ other_currencies_allowed: boolean | null;
7005
+ blocked: boolean | null;
6719
7006
  }>;
6720
7007
  getVatCodes(params?: {
6721
7008
  folder_id?: string | null | undefined;
@@ -6729,6 +7016,7 @@ export declare class API {
6729
7016
  deductible_account?: string | null | undefined;
6730
7017
  payable_account?: string | null | undefined;
6731
7018
  reversed: boolean | null;
7019
+ country?: string | null | undefined;
6732
7020
  }[]>;
6733
7021
  getMiscOperations(params?: {
6734
7022
  date_from?: string | null | undefined;
@@ -6835,7 +7123,7 @@ export declare class API {
6835
7123
  number: string;
6836
7124
  name: string;
6837
7125
  active: boolean | null;
6838
- type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_financial" | "receivable" | "payable" | "other" | null | undefined;
7126
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
6839
7127
  }[]>;
6840
7128
  getBalanceOfAccounts(filter: {
6841
7129
  accounts: string[];
@@ -6899,41 +7187,6 @@ export declare class API {
6899
7187
  reference?: string | null | undefined;
6900
7188
  } | null | undefined;
6901
7189
  }[]>;
6902
- createFinancialEntryOld(financial_entry: {
6903
- date: string;
6904
- journal_id: string;
6905
- currency: string;
6906
- currency_exchange_rate: number | null;
6907
- reference?: string | null | undefined;
6908
- number?: string | null | undefined;
6909
- items: {
6910
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
6911
- account_number: string;
6912
- partner_id?: string | null | undefined;
6913
- amount: number;
6914
- description?: string | null | undefined;
6915
- }[];
6916
- pdf?: string | null | undefined;
6917
- }, params?: {
6918
- folder_id?: string | null | undefined;
6919
- financial_counterpart_account?: string | null | undefined;
6920
- } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
6921
- date: string;
6922
- journal_id: string;
6923
- currency: string;
6924
- currency_exchange_rate: number | null;
6925
- reference?: string | null | undefined;
6926
- id: string;
6927
- number: string;
6928
- items: {
6929
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
6930
- account_number: string;
6931
- partner_id?: string | null | undefined;
6932
- amount: number;
6933
- description?: string | null | undefined;
6934
- counterpart_account: string;
6935
- }[];
6936
- }>;
6937
7190
  createFinancialEntry(financial_entry: {
6938
7191
  date: string;
6939
7192
  journal_id: string;
@@ -6967,20 +7220,22 @@ export declare class API {
6967
7220
  counterpart_account: string;
6968
7221
  }[];
6969
7222
  }>;
6970
- createJournalEntryOld(journal_entry: {
7223
+ createJournalEntry(journal_entry: {
6971
7224
  reference?: string | null | undefined;
6972
7225
  due_date?: string | null | undefined;
6973
7226
  journal_id: string;
6974
- name: string;
7227
+ number: string;
7228
+ currency: string;
7229
+ currency_exchange_rate: number | null;
6975
7230
  date: string;
6976
7231
  items: {
6977
- account_number: string;
6978
- partner_id?: string | null | undefined;
7232
+ account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7233
+ account?: string | null | undefined;
7234
+ force_general_account?: string | null | undefined;
7235
+ prioritise_thirdparty_account: boolean | null;
6979
7236
  description?: string | null | undefined;
6980
7237
  debit: number;
6981
7238
  credit: number;
6982
- currency: string;
6983
- currency_exchange_rate: number | null;
6984
7239
  analytic_distribution: {
6985
7240
  analytic_plan: string;
6986
7241
  analytic_accounts: {
@@ -6988,76 +7243,20 @@ export declare class API {
6988
7243
  percentage: number;
6989
7244
  }[];
6990
7245
  }[] | null;
7246
+ tax_code?: string | null | undefined;
7247
+ account_info?: {
7248
+ account_number: string;
7249
+ account_name: string;
7250
+ } | null | undefined;
6991
7251
  }[];
6992
7252
  pdf?: string | null | undefined;
6993
- }, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
6994
- reference?: string | null | undefined;
6995
- due_date?: string | null | undefined;
6996
- journal_id: string;
6997
- name?: string | null | undefined;
6998
- journal_name?: string | null | undefined;
6999
- date: string | null;
7000
- posted: boolean | null;
7001
- id: string;
7002
- items: {
7003
- account_number: string;
7004
- partner_id?: string | null | undefined;
7005
- description?: string | null | undefined;
7006
- debit: number;
7007
- credit: number;
7008
- currency: string;
7009
- currency_exchange_rate: number | null;
7010
- id: string;
7011
- partner_name?: string | null | undefined;
7012
- account_name: string;
7013
- matching_numbers: string[] | null;
7014
- analytic_distribution: {
7015
- analytic_plan: string;
7016
- analytic_accounts: {
7017
- analytic_account: string;
7018
- percentage: number;
7019
- }[];
7020
- }[] | null;
7021
- }[] | null;
7022
- }>;
7023
- createJournalEntry(journal_entry: {
7024
- reference?: string | null | undefined;
7025
- due_date?: string | null | undefined;
7026
- journal_id: string;
7027
- number: string;
7028
- currency: string;
7029
- currency_exchange_rate: number | null;
7030
- date: string;
7031
- items: {
7032
- account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
7033
- account: string;
7034
- force_general_account?: string | null | undefined;
7035
- prioritise_thirdparty_account: boolean | null;
7036
- description?: string | null | undefined;
7037
- debit: number;
7038
- credit: number;
7039
- analytic_distribution: {
7040
- analytic_plan: string;
7041
- analytic_accounts: {
7042
- analytic_account: string;
7043
- percentage: number;
7044
- }[];
7045
- }[] | null;
7046
- tax_code?: string | null | undefined;
7047
- country?: string | null | undefined;
7048
- account_info?: {
7049
- account_number: string;
7050
- account_name: string;
7051
- } | null | undefined;
7052
- }[];
7053
- pdf?: string | null | undefined;
7054
- posted: boolean | null;
7055
- start_date?: string | null | undefined;
7056
- end_date?: string | null | undefined;
7057
- }, params?: {
7058
- folder_id?: string | null | undefined;
7059
- force_currency_exchange?: "true" | "false" | null | undefined;
7060
- } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
7253
+ posted: boolean | null;
7254
+ start_date?: string | null | undefined;
7255
+ end_date?: string | null | undefined;
7256
+ }, params?: {
7257
+ folder_id?: string | null | undefined;
7258
+ force_currency_exchange?: "true" | "false" | null | undefined;
7259
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
7061
7260
  reference?: string | null | undefined;
7062
7261
  due_date?: string | null | undefined;
7063
7262
  journal_id: string;
@@ -7066,6 +7265,12 @@ export declare class API {
7066
7265
  date: string | null;
7067
7266
  posted: boolean | null;
7068
7267
  id: string;
7268
+ due_dates: {
7269
+ due_date: string;
7270
+ payment_method?: string | null | undefined;
7271
+ debit: number | null;
7272
+ credit: number | null;
7273
+ }[] | null;
7069
7274
  items: {
7070
7275
  account_number: string;
7071
7276
  partner_id?: string | null | undefined;
@@ -7110,12 +7315,65 @@ export declare class API {
7110
7315
  [key: string]: unknown;
7111
7316
  } | null | undefined;
7112
7317
  }[]>;
7318
+ createExpense(expense: {
7319
+ employee_id: string;
7320
+ total: number;
7321
+ untaxed_amount: number;
7322
+ tax_amount: number;
7323
+ reference?: string | null | undefined;
7324
+ number?: string | null | undefined;
7325
+ currency: string;
7326
+ currency_exchange_rate: number | null;
7327
+ date: string;
7328
+ pdf?: string | null | undefined;
7329
+ lines: {
7330
+ total: number;
7331
+ untaxed_amount: number;
7332
+ tax_amount: number;
7333
+ description?: string | null | undefined;
7334
+ account_number: string;
7335
+ tax_rate: number;
7336
+ tax_id: string;
7337
+ }[];
7338
+ }, params?: {
7339
+ folder_id?: string | null | undefined;
7340
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
7341
+ employee_id: string;
7342
+ total: number;
7343
+ untaxed_amount: number;
7344
+ tax_amount: number;
7345
+ reference?: string | null | undefined;
7346
+ number?: string | null | undefined;
7347
+ currency: string;
7348
+ currency_exchange_rate: number | null;
7349
+ date: string;
7350
+ pdf?: string | null | undefined;
7351
+ lines: {
7352
+ total: number;
7353
+ untaxed_amount: number;
7354
+ tax_amount: number;
7355
+ description?: string | null | undefined;
7356
+ account_number: string;
7357
+ tax_rate: number;
7358
+ tax_id: string;
7359
+ }[];
7360
+ id: string;
7361
+ }>;
7113
7362
  getFolders(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7114
7363
  id: string;
7115
7364
  name: string;
7116
7365
  selected: boolean | null;
7117
7366
  vat?: string | null | undefined;
7118
7367
  company_number?: string | null | undefined;
7368
+ main_currency?: string | null | undefined;
7369
+ addresses?: {
7370
+ street?: string | null | undefined;
7371
+ number?: string | null | undefined;
7372
+ box?: string | null | undefined;
7373
+ postal_code?: string | null | undefined;
7374
+ city?: string | null | undefined;
7375
+ country?: string | null | undefined;
7376
+ }[] | null | undefined;
7119
7377
  }[]>;
7120
7378
  getBookyears(params?: {
7121
7379
  folder_id?: string | null | undefined;
@@ -7128,13 +7386,14 @@ export declare class API {
7128
7386
  createLedgerAccount(account: {
7129
7387
  name: string;
7130
7388
  number: string;
7389
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
7131
7390
  }, params?: {
7132
7391
  folder_id?: string | null | undefined;
7133
7392
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
7134
7393
  number: string;
7135
7394
  name: string;
7136
7395
  active: boolean | null;
7137
- type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_financial" | "receivable" | "payable" | "other" | null | undefined;
7396
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
7138
7397
  }>;
7139
7398
  createBankAccount(bankAccount: {
7140
7399
  code: string;
@@ -7155,6 +7414,7 @@ export declare class API {
7155
7414
  bank_name?: string | null | undefined;
7156
7415
  journal_id?: string | null | undefined;
7157
7416
  ledger_account?: string | null | undefined;
7417
+ unallocated_account?: string | null | undefined;
7158
7418
  }>;
7159
7419
  getJournalEntry(journalEntryId: string, params?: {
7160
7420
  folder_id?: string | null | undefined;
@@ -7167,6 +7427,12 @@ export declare class API {
7167
7427
  date: string | null;
7168
7428
  posted: boolean | null;
7169
7429
  id: string;
7430
+ due_dates: {
7431
+ due_date: string;
7432
+ payment_method?: string | null | undefined;
7433
+ debit: number | null;
7434
+ credit: number | null;
7435
+ }[] | null;
7170
7436
  items: {
7171
7437
  account_number: string;
7172
7438
  partner_id?: string | null | undefined;
@@ -7188,6 +7454,38 @@ export declare class API {
7188
7454
  }[] | null;
7189
7455
  }[] | null;
7190
7456
  }>;
7457
+ getPaymentMethods(params?: {
7458
+ page?: number | undefined;
7459
+ size?: number | undefined;
7460
+ folder_id?: string | null | undefined;
7461
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7462
+ items: {
7463
+ id: string;
7464
+ name?: string | null | undefined;
7465
+ }[];
7466
+ total: number;
7467
+ page: number;
7468
+ size: number;
7469
+ }>;
7470
+ createInvoicePayment(body: {
7471
+ date: string;
7472
+ payment_method_id: string;
7473
+ currency: string;
7474
+ currency_exchange_rate: number | null;
7475
+ reference?: string | null | undefined;
7476
+ number?: string | null | undefined;
7477
+ items: {
7478
+ invoice_id: string;
7479
+ amount: number;
7480
+ }[];
7481
+ }, params?: {
7482
+ folder_id?: string | null | undefined;
7483
+ } | undefined): import("../types/api").RequestData<{
7484
+ headers: {
7485
+ [name: string]: unknown;
7486
+ };
7487
+ content?: undefined;
7488
+ }>;
7191
7489
  }>;
7192
7490
  invoicing: import("../types/api").ApiFor<{
7193
7491
  getInvoices(params?: {
@@ -7258,6 +7556,7 @@ export declare class API {
7258
7556
  } | null | undefined;
7259
7557
  last_updated_on?: string | null | undefined;
7260
7558
  outstanding_amount?: number | null | undefined;
7559
+ last_payment_date?: string | null | undefined;
7261
7560
  accounting_date?: string | null | undefined;
7262
7561
  payment_method_id?: string | null | undefined;
7263
7562
  currency_exchange_rate: number | null;
@@ -7325,6 +7624,7 @@ export declare class API {
7325
7624
  } | null | undefined;
7326
7625
  last_updated_on?: string | null | undefined;
7327
7626
  outstanding_amount?: number | null | undefined;
7627
+ last_payment_date?: string | null | undefined;
7328
7628
  accounting_date?: string | null | undefined;
7329
7629
  payment_method_id?: string | null | undefined;
7330
7630
  currency_exchange_rate: number | null;
@@ -7445,6 +7745,7 @@ export declare class API {
7445
7745
  } | null | undefined;
7446
7746
  last_updated_on?: string | null | undefined;
7447
7747
  outstanding_amount?: number | null | undefined;
7748
+ last_payment_date?: string | null | undefined;
7448
7749
  accounting_date?: string | null | undefined;
7449
7750
  payment_method_id?: string | null | undefined;
7450
7751
  currency_exchange_rate: number | null;
@@ -7772,6 +8073,125 @@ export declare class API {
7772
8073
  };
7773
8074
  name: string;
7774
8075
  }[]>;
8076
+ getBankAccounts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8077
+ items: {
8078
+ id: string;
8079
+ source_ref: {
8080
+ id?: string | null | undefined;
8081
+ model?: string | null | undefined;
8082
+ };
8083
+ name: string;
8084
+ iban?: string | null | undefined;
8085
+ currency?: string | null | undefined;
8086
+ balance?: number | null | undefined;
8087
+ }[];
8088
+ total: number;
8089
+ page: number;
8090
+ size: number;
8091
+ }>;
8092
+ getBankTransactions(params: {
8093
+ date_from?: string | null | undefined;
8094
+ date_to?: string | null | undefined;
8095
+ bank_account_id: string;
8096
+ status?: "draft" | "done" | null | undefined;
8097
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8098
+ items: {
8099
+ id: string;
8100
+ source_ref: {
8101
+ id?: string | null | undefined;
8102
+ model?: string | null | undefined;
8103
+ };
8104
+ status: "draft" | "done";
8105
+ bank_account_id: string;
8106
+ amount: number;
8107
+ date: string;
8108
+ description?: string | null | undefined;
8109
+ currency: string;
8110
+ currency_exchange_rate: number | null;
8111
+ accounting_code?: string | null | undefined;
8112
+ linked_documents: {
8113
+ id: string;
8114
+ source_ref: {
8115
+ id?: string | null | undefined;
8116
+ model?: string | null | undefined;
8117
+ };
8118
+ amount: number;
8119
+ type: "invoice" | "other";
8120
+ }[] | null;
8121
+ }[];
8122
+ total: number;
8123
+ page: number;
8124
+ size: number;
8125
+ }>;
8126
+ uploadDocument(document: {
8127
+ base64_string: string;
8128
+ document_type: "customer_document" | "supplier_document" | "employee_expense";
8129
+ }, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
8130
+ id: string;
8131
+ source_ref: {
8132
+ id?: string | null | undefined;
8133
+ model?: string | null | undefined;
8134
+ };
8135
+ currency?: string | null | undefined;
8136
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
8137
+ status?: "draft" | "posted" | "cancelled" | "paid" | null | undefined;
8138
+ invoice_date?: string | null | undefined;
8139
+ tax_amount?: number | null | undefined;
8140
+ untaxed_amount?: number | null | undefined;
8141
+ total?: number | null | undefined;
8142
+ lines: {
8143
+ description?: string | null | undefined;
8144
+ unit_price: number;
8145
+ quantity: number;
8146
+ discount_amount: number;
8147
+ tax_amount: number;
8148
+ untaxed_amount: number;
8149
+ total: number;
8150
+ tax_rate?: number | null | undefined;
8151
+ account_number?: string | null | undefined;
8152
+ tax_id?: string | null | undefined;
8153
+ tax_exemption_reason?: string | null | undefined;
8154
+ unit_of_measure?: string | null | undefined;
8155
+ product_id?: string | null | undefined;
8156
+ product_code?: string | null | undefined;
8157
+ product_name?: string | null | undefined;
8158
+ }[] | null;
8159
+ partner_id?: string | null | undefined;
8160
+ invoice_number?: string | null | undefined;
8161
+ due_date?: string | null | undefined;
8162
+ reference?: string | null | undefined;
8163
+ payment_communication?: string | null | undefined;
8164
+ customer_memo?: string | null | undefined;
8165
+ journal_ref?: {
8166
+ id?: string | null | undefined;
8167
+ model?: string | null | undefined;
8168
+ name?: string | null | undefined;
8169
+ } | null | undefined;
8170
+ italian_specificities?: {
8171
+ stamp_duty_amount?: number | null | undefined;
8172
+ withholding_tax?: {
8173
+ rate: number;
8174
+ amount: number;
8175
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | null | undefined;
8176
+ 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" | null | undefined;
8177
+ } | null | undefined;
8178
+ welfare_fund?: {
8179
+ rate: number;
8180
+ amount: number;
8181
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | null | undefined;
8182
+ } | null | undefined;
8183
+ payment_reporting?: {
8184
+ method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | null | undefined;
8185
+ conditions?: "TP01" | "TP02" | "TP03" | null | undefined;
8186
+ } | null | undefined;
8187
+ } | null | undefined;
8188
+ last_updated_on?: string | null | undefined;
8189
+ outstanding_amount?: number | null | undefined;
8190
+ last_payment_date?: string | null | undefined;
8191
+ accounting_date?: string | null | undefined;
8192
+ payment_method_id?: string | null | undefined;
8193
+ currency_exchange_rate: number | null;
8194
+ }>;
7775
8195
  }>;
7776
8196
  ecommerce: import("../types/api").ApiFor<{
7777
8197
  getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -7803,7 +8223,10 @@ export declare class API {
7803
8223
  }[] | null;
7804
8224
  created_on?: string | null | undefined;
7805
8225
  }[]>;
7806
- getProducts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
8226
+ getProducts(params?: {
8227
+ updated_after?: string | null | undefined;
8228
+ sku?: string | null | undefined;
8229
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
7807
8230
  id: string;
7808
8231
  source_ref: {
7809
8232
  id?: string | null | undefined;
@@ -7817,6 +8240,7 @@ export declare class API {
7817
8240
  name: string;
7818
8241
  }[] | null;
7819
8242
  created_on?: string | null | undefined;
8243
+ last_updated_on?: string | null | undefined;
7820
8244
  variants: {
7821
8245
  id: string;
7822
8246
  source_ref: {
@@ -7858,6 +8282,7 @@ export declare class API {
7858
8282
  }[] | null;
7859
8283
  }[] | null;
7860
8284
  status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
8285
+ sku?: string | null | undefined;
7861
8286
  common_attributes: {
7862
8287
  name: string;
7863
8288
  values: string[];
@@ -7915,6 +8340,7 @@ export declare class API {
7915
8340
  name: string;
7916
8341
  }[] | null;
7917
8342
  created_on?: string | null | undefined;
8343
+ last_updated_on?: string | null | undefined;
7918
8344
  variants: {
7919
8345
  id: string;
7920
8346
  source_ref: {
@@ -7956,6 +8382,7 @@ export declare class API {
7956
8382
  }[] | null;
7957
8383
  }[] | null;
7958
8384
  status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
8385
+ sku?: string | null | undefined;
7959
8386
  common_attributes: {
7960
8387
  name: string;
7961
8388
  values: string[];
@@ -8145,6 +8572,7 @@ export declare class API {
8145
8572
  amount: number;
8146
8573
  }[] | null;
8147
8574
  gift_card: boolean | null;
8575
+ is_gift: boolean | null;
8148
8576
  }[];
8149
8577
  other_fees: {
8150
8578
  id: string;
@@ -8422,6 +8850,7 @@ export declare class API {
8422
8850
  amount: number;
8423
8851
  }[] | null;
8424
8852
  gift_card: boolean | null;
8853
+ is_gift: boolean | null;
8425
8854
  }[];
8426
8855
  other_fees: {
8427
8856
  id: string;
@@ -8660,6 +9089,7 @@ export declare class API {
8660
9089
  amount: number;
8661
9090
  }[] | null;
8662
9091
  gift_card: boolean | null;
9092
+ is_gift: boolean | null;
8663
9093
  }[];
8664
9094
  other_fees: {
8665
9095
  id: string;
@@ -8918,6 +9348,11 @@ export declare class API {
8918
9348
  description?: string | null | undefined;
8919
9349
  display_order: number;
8920
9350
  challenge_question?: string | null | undefined;
9351
+ conditions?: {
9352
+ [key: string]: {
9353
+ [key: string]: unknown;
9354
+ };
9355
+ } | null | undefined;
8921
9356
  values: {
8922
9357
  source_id?: string | null | undefined;
8923
9358
  target_id?: string | null | undefined;
@@ -8928,6 +9363,9 @@ export declare class API {
8928
9363
  link_metadata?: {
8929
9364
  [key: string]: unknown;
8930
9365
  } | null | undefined;
9366
+ link_presync?: {
9367
+ [key: string]: unknown;
9368
+ } | null | undefined;
8931
9369
  enabled_flows?: {
8932
9370
  name: string;
8933
9371
  description?: string | null | undefined;
@@ -9180,7 +9618,7 @@ export declare class API {
9180
9618
  }[];
9181
9619
  items: {
9182
9620
  id: string;
9183
- type?: "menu" | "product" | "general_discount" | null | undefined;
9621
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
9184
9622
  menu_id?: string | null | undefined;
9185
9623
  quantity: number;
9186
9624
  unit_price: number;
@@ -9258,7 +9696,7 @@ export declare class API {
9258
9696
  }[];
9259
9697
  items: {
9260
9698
  id: string;
9261
- type?: "menu" | "product" | "general_discount" | null | undefined;
9699
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
9262
9700
  menu_id?: string | null | undefined;
9263
9701
  quantity: number;
9264
9702
  unit_price: number;
@@ -9385,6 +9823,7 @@ export declare class API {
9385
9823
  payments: {
9386
9824
  payment_method_id?: string | null | undefined;
9387
9825
  payment_method_name?: string | null | undefined;
9826
+ tip: number | null;
9388
9827
  total: number;
9389
9828
  }[] | null;
9390
9829
  taxes: {
@@ -9445,7 +9884,7 @@ export declare class API {
9445
9884
  }[];
9446
9885
  items: {
9447
9886
  id: string;
9448
- type?: "menu" | "product" | "general_discount" | null | undefined;
9887
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
9449
9888
  menu_id?: string | null | undefined;
9450
9889
  quantity: number;
9451
9890
  unit_price: number;
@@ -9471,6 +9910,22 @@ export declare class API {
9471
9910
  ledger_account_code?: string | null | undefined;
9472
9911
  posting_account_code?: string | null | undefined;
9473
9912
  }[]>;
9913
+ getObjectives(params: {
9914
+ page?: number | undefined;
9915
+ size?: number | undefined;
9916
+ date_from: string;
9917
+ date_to: string;
9918
+ location_id?: string | null | undefined;
9919
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
9920
+ items: {
9921
+ total: number;
9922
+ tax_amount: number;
9923
+ date: string;
9924
+ }[];
9925
+ total: number;
9926
+ page: number;
9927
+ size: number;
9928
+ }>;
9474
9929
  }>;
9475
9930
  pms: import("../types/api").ApiFor<{
9476
9931
  getLocations(rawData?: boolean | undefined): import("../types/api").RequestData<{
@@ -9527,7 +9982,7 @@ export declare class API {
9527
9982
  id?: string | null | undefined;
9528
9983
  model?: string | null | undefined;
9529
9984
  };
9530
- type?: "menu" | "product" | "general_discount" | null | undefined;
9985
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
9531
9986
  menu_id?: string | null | undefined;
9532
9987
  quantity: number;
9533
9988
  unit_price: number;
@@ -9619,6 +10074,7 @@ export declare class API {
9619
10074
  payments: {
9620
10075
  payment_method_id?: string | null | undefined;
9621
10076
  payment_method_name?: string | null | undefined;
10077
+ tip: number | null;
9622
10078
  total: number;
9623
10079
  }[] | null;
9624
10080
  taxes: {
@@ -9651,6 +10107,7 @@ export declare class API {
9651
10107
  model?: string | null | undefined;
9652
10108
  };
9653
10109
  } | null | undefined;
10110
+ description?: string | null | undefined;
9654
10111
  }[]>;
9655
10112
  getAccountingCategories(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
9656
10113
  id: string;
@@ -9727,7 +10184,7 @@ export declare class API {
9727
10184
  id?: string | null | undefined;
9728
10185
  model?: string | null | undefined;
9729
10186
  };
9730
- type?: "menu" | "product" | "general_discount" | null | undefined;
10187
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
9731
10188
  menu_id?: string | null | undefined;
9732
10189
  quantity: number;
9733
10190
  unit_price: number;
@@ -9763,6 +10220,7 @@ export declare class API {
9763
10220
  model?: string | null | undefined;
9764
10221
  };
9765
10222
  } | null | undefined;
10223
+ description?: string | null | undefined;
9766
10224
  }[];
9767
10225
  service_id?: string | null | undefined;
9768
10226
  reservation?: {
@@ -9828,7 +10286,7 @@ export declare class API {
9828
10286
  id?: string | null | undefined;
9829
10287
  model?: string | null | undefined;
9830
10288
  };
9831
- total: number;
10289
+ amount: number;
9832
10290
  fee: number;
9833
10291
  currency: string;
9834
10292
  exchange_rate: number;
@@ -10341,7 +10799,7 @@ export declare class API {
10341
10799
  customer_memo?: string | null | undefined;
10342
10800
  invoice_date: string;
10343
10801
  due_date: string;
10344
- partner_id: string;
10802
+ partner_id?: string | null | undefined;
10345
10803
  journal_id?: string | null | undefined;
10346
10804
  status: "draft" | "posted" | null;
10347
10805
  pdf?: string | null | undefined;
@@ -10453,6 +10911,11 @@ export declare class API {
10453
10911
  country?: string | null | undefined;
10454
10912
  }[] | null;
10455
10913
  } | null | undefined;
10914
+ due_dates: {
10915
+ due_date: string;
10916
+ payment_method?: string | null | undefined;
10917
+ amount: number;
10918
+ }[] | null;
10456
10919
  lines: {
10457
10920
  line_number: number | null;
10458
10921
  unit_price: number;
@@ -10480,7 +10943,7 @@ export declare class API {
10480
10943
  customer_memo?: string | null | undefined;
10481
10944
  invoice_date: string;
10482
10945
  due_date: string;
10483
- partner_id: string;
10946
+ partner_id?: string | null | undefined;
10484
10947
  journal_id?: string | null | undefined;
10485
10948
  status: "draft" | "posted" | null;
10486
10949
  pdf?: string | null | undefined;
@@ -10598,6 +11061,11 @@ export declare class API {
10598
11061
  country?: string | null | undefined;
10599
11062
  }[] | null;
10600
11063
  } | null | undefined;
11064
+ due_dates: {
11065
+ due_date: string;
11066
+ payment_method?: string | null | undefined;
11067
+ amount: number;
11068
+ }[] | null;
10601
11069
  lines: {
10602
11070
  line_number: number | null;
10603
11071
  unit_price: number;
@@ -10697,6 +11165,11 @@ export declare class API {
10697
11165
  country?: string | null | undefined;
10698
11166
  }[] | null;
10699
11167
  } | null | undefined;
11168
+ due_dates: {
11169
+ due_date: string;
11170
+ payment_method?: string | null | undefined;
11171
+ amount: number;
11172
+ }[] | null;
10700
11173
  lines: {
10701
11174
  line_number: number | null;
10702
11175
  unit_price: number;
@@ -10785,6 +11258,11 @@ export declare class API {
10785
11258
  country?: string | null | undefined;
10786
11259
  }[] | null;
10787
11260
  } | null | undefined;
11261
+ due_dates: {
11262
+ due_date: string;
11263
+ payment_method?: string | null | undefined;
11264
+ amount: number;
11265
+ }[] | null;
10788
11266
  lines: {
10789
11267
  line_number: number | null;
10790
11268
  unit_price: number;
@@ -10873,6 +11351,11 @@ export declare class API {
10873
11351
  country?: string | null | undefined;
10874
11352
  }[] | null;
10875
11353
  } | null | undefined;
11354
+ due_dates: {
11355
+ due_date: string;
11356
+ payment_method?: string | null | undefined;
11357
+ amount: number;
11358
+ }[] | null;
10876
11359
  lines: {
10877
11360
  line_number: number | null;
10878
11361
  unit_price: number;
@@ -10972,6 +11455,11 @@ export declare class API {
10972
11455
  country?: string | null | undefined;
10973
11456
  }[] | null;
10974
11457
  } | null | undefined;
11458
+ due_dates: {
11459
+ due_date: string;
11460
+ payment_method?: string | null | undefined;
11461
+ amount: number;
11462
+ }[] | null;
10975
11463
  lines: {
10976
11464
  line_number: number | null;
10977
11465
  unit_price: number;
@@ -11130,6 +11618,12 @@ export declare class API {
11130
11618
  date: string | null;
11131
11619
  posted: boolean | null;
11132
11620
  id: string;
11621
+ due_dates: {
11622
+ due_date: string;
11623
+ payment_method?: string | null | undefined;
11624
+ debit: number | null;
11625
+ credit: number | null;
11626
+ }[] | null;
11133
11627
  items: {
11134
11628
  account_number: string;
11135
11629
  partner_id?: string | null | undefined;
@@ -11163,6 +11657,12 @@ export declare class API {
11163
11657
  date: string | null;
11164
11658
  posted: boolean | null;
11165
11659
  id: string;
11660
+ due_dates: {
11661
+ due_date: string;
11662
+ payment_method?: string | null | undefined;
11663
+ debit: number | null;
11664
+ credit: number | null;
11665
+ }[] | null;
11166
11666
  items: {
11167
11667
  account_number: string;
11168
11668
  partner_id?: string | null | undefined;
@@ -11210,6 +11710,7 @@ export declare class API {
11210
11710
  name: string;
11211
11711
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11212
11712
  counterpart_account?: string | null | undefined;
11713
+ unallocated_account?: string | null | undefined;
11213
11714
  next_document_numbers: {
11214
11715
  bookyear_name?: string | null | undefined;
11215
11716
  next_document_number?: string | null | undefined;
@@ -11218,6 +11719,8 @@ export declare class API {
11218
11719
  }[] | null;
11219
11720
  iban?: string | null | undefined;
11220
11721
  currency?: string | null | undefined;
11722
+ other_currencies_allowed: boolean | null;
11723
+ blocked: boolean | null;
11221
11724
  }[]>;
11222
11725
  createJournal(journal: {
11223
11726
  code: string;
@@ -11232,6 +11735,7 @@ export declare class API {
11232
11735
  name: string;
11233
11736
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
11234
11737
  counterpart_account?: string | null | undefined;
11738
+ unallocated_account?: string | null | undefined;
11235
11739
  next_document_numbers: {
11236
11740
  bookyear_name?: string | null | undefined;
11237
11741
  next_document_number?: string | null | undefined;
@@ -11240,6 +11744,8 @@ export declare class API {
11240
11744
  }[] | null;
11241
11745
  iban?: string | null | undefined;
11242
11746
  currency?: string | null | undefined;
11747
+ other_currencies_allowed: boolean | null;
11748
+ blocked: boolean | null;
11243
11749
  }>;
11244
11750
  getVatCodes(params?: {
11245
11751
  folder_id?: string | null | undefined;
@@ -11253,6 +11759,7 @@ export declare class API {
11253
11759
  deductible_account?: string | null | undefined;
11254
11760
  payable_account?: string | null | undefined;
11255
11761
  reversed: boolean | null;
11762
+ country?: string | null | undefined;
11256
11763
  }[]>;
11257
11764
  getMiscOperations(params?: {
11258
11765
  date_from?: string | null | undefined;
@@ -11359,7 +11866,7 @@ export declare class API {
11359
11866
  number: string;
11360
11867
  name: string;
11361
11868
  active: boolean | null;
11362
- type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_financial" | "receivable" | "payable" | "other" | null | undefined;
11869
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
11363
11870
  }[]>;
11364
11871
  getBalanceOfAccounts(filter: {
11365
11872
  accounts: string[];
@@ -11423,41 +11930,6 @@ export declare class API {
11423
11930
  reference?: string | null | undefined;
11424
11931
  } | null | undefined;
11425
11932
  }[]>;
11426
- createFinancialEntryOld(financial_entry: {
11427
- date: string;
11428
- journal_id: string;
11429
- currency: string;
11430
- currency_exchange_rate: number | null;
11431
- reference?: string | null | undefined;
11432
- number?: string | null | undefined;
11433
- items: {
11434
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
11435
- account_number: string;
11436
- partner_id?: string | null | undefined;
11437
- amount: number;
11438
- description?: string | null | undefined;
11439
- }[];
11440
- pdf?: string | null | undefined;
11441
- }, params?: {
11442
- folder_id?: string | null | undefined;
11443
- financial_counterpart_account?: string | null | undefined;
11444
- } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
11445
- date: string;
11446
- journal_id: string;
11447
- currency: string;
11448
- currency_exchange_rate: number | null;
11449
- reference?: string | null | undefined;
11450
- id: string;
11451
- number: string;
11452
- items: {
11453
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
11454
- account_number: string;
11455
- partner_id?: string | null | undefined;
11456
- amount: number;
11457
- description?: string | null | undefined;
11458
- counterpart_account: string;
11459
- }[];
11460
- }>;
11461
11933
  createFinancialEntry(financial_entry: {
11462
11934
  date: string;
11463
11935
  journal_id: string;
@@ -11491,59 +11963,6 @@ export declare class API {
11491
11963
  counterpart_account: string;
11492
11964
  }[];
11493
11965
  }>;
11494
- createJournalEntryOld(journal_entry: {
11495
- reference?: string | null | undefined;
11496
- due_date?: string | null | undefined;
11497
- journal_id: string;
11498
- name: string;
11499
- date: string;
11500
- items: {
11501
- account_number: string;
11502
- partner_id?: string | null | undefined;
11503
- description?: string | null | undefined;
11504
- debit: number;
11505
- credit: number;
11506
- currency: string;
11507
- currency_exchange_rate: number | null;
11508
- analytic_distribution: {
11509
- analytic_plan: string;
11510
- analytic_accounts: {
11511
- analytic_account: string;
11512
- percentage: number;
11513
- }[];
11514
- }[] | null;
11515
- }[];
11516
- pdf?: string | null | undefined;
11517
- }, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
11518
- reference?: string | null | undefined;
11519
- due_date?: string | null | undefined;
11520
- journal_id: string;
11521
- name?: string | null | undefined;
11522
- journal_name?: string | null | undefined;
11523
- date: string | null;
11524
- posted: boolean | null;
11525
- id: string;
11526
- items: {
11527
- account_number: string;
11528
- partner_id?: string | null | undefined;
11529
- description?: string | null | undefined;
11530
- debit: number;
11531
- credit: number;
11532
- currency: string;
11533
- currency_exchange_rate: number | null;
11534
- id: string;
11535
- partner_name?: string | null | undefined;
11536
- account_name: string;
11537
- matching_numbers: string[] | null;
11538
- analytic_distribution: {
11539
- analytic_plan: string;
11540
- analytic_accounts: {
11541
- analytic_account: string;
11542
- percentage: number;
11543
- }[];
11544
- }[] | null;
11545
- }[] | null;
11546
- }>;
11547
11966
  createJournalEntry(journal_entry: {
11548
11967
  reference?: string | null | undefined;
11549
11968
  due_date?: string | null | undefined;
@@ -11554,7 +11973,7 @@ export declare class API {
11554
11973
  date: string;
11555
11974
  items: {
11556
11975
  account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
11557
- account: string;
11976
+ account?: string | null | undefined;
11558
11977
  force_general_account?: string | null | undefined;
11559
11978
  prioritise_thirdparty_account: boolean | null;
11560
11979
  description?: string | null | undefined;
@@ -11568,7 +11987,6 @@ export declare class API {
11568
11987
  }[];
11569
11988
  }[] | null;
11570
11989
  tax_code?: string | null | undefined;
11571
- country?: string | null | undefined;
11572
11990
  account_info?: {
11573
11991
  account_number: string;
11574
11992
  account_name: string;
@@ -11590,6 +12008,12 @@ export declare class API {
11590
12008
  date: string | null;
11591
12009
  posted: boolean | null;
11592
12010
  id: string;
12011
+ due_dates: {
12012
+ due_date: string;
12013
+ payment_method?: string | null | undefined;
12014
+ debit: number | null;
12015
+ credit: number | null;
12016
+ }[] | null;
11593
12017
  items: {
11594
12018
  account_number: string;
11595
12019
  partner_id?: string | null | undefined;
@@ -11634,12 +12058,65 @@ export declare class API {
11634
12058
  [key: string]: unknown;
11635
12059
  } | null | undefined;
11636
12060
  }[]>;
12061
+ createExpense(expense: {
12062
+ employee_id: string;
12063
+ total: number;
12064
+ untaxed_amount: number;
12065
+ tax_amount: number;
12066
+ reference?: string | null | undefined;
12067
+ number?: string | null | undefined;
12068
+ currency: string;
12069
+ currency_exchange_rate: number | null;
12070
+ date: string;
12071
+ pdf?: string | null | undefined;
12072
+ lines: {
12073
+ total: number;
12074
+ untaxed_amount: number;
12075
+ tax_amount: number;
12076
+ description?: string | null | undefined;
12077
+ account_number: string;
12078
+ tax_rate: number;
12079
+ tax_id: string;
12080
+ }[];
12081
+ }, params?: {
12082
+ folder_id?: string | null | undefined;
12083
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
12084
+ employee_id: string;
12085
+ total: number;
12086
+ untaxed_amount: number;
12087
+ tax_amount: number;
12088
+ reference?: string | null | undefined;
12089
+ number?: string | null | undefined;
12090
+ currency: string;
12091
+ currency_exchange_rate: number | null;
12092
+ date: string;
12093
+ pdf?: string | null | undefined;
12094
+ lines: {
12095
+ total: number;
12096
+ untaxed_amount: number;
12097
+ tax_amount: number;
12098
+ description?: string | null | undefined;
12099
+ account_number: string;
12100
+ tax_rate: number;
12101
+ tax_id: string;
12102
+ }[];
12103
+ id: string;
12104
+ }>;
11637
12105
  getFolders(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
11638
12106
  id: string;
11639
12107
  name: string;
11640
12108
  selected: boolean | null;
11641
12109
  vat?: string | null | undefined;
11642
12110
  company_number?: string | null | undefined;
12111
+ main_currency?: string | null | undefined;
12112
+ addresses?: {
12113
+ street?: string | null | undefined;
12114
+ number?: string | null | undefined;
12115
+ box?: string | null | undefined;
12116
+ postal_code?: string | null | undefined;
12117
+ city?: string | null | undefined;
12118
+ country?: string | null | undefined;
12119
+ }[] | null | undefined;
11643
12120
  }[]>;
11644
12121
  getBookyears(params?: {
11645
12122
  folder_id?: string | null | undefined;
@@ -11652,13 +12129,14 @@ export declare class API {
11652
12129
  createLedgerAccount(account: {
11653
12130
  name: string;
11654
12131
  number: string;
12132
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
11655
12133
  }, params?: {
11656
12134
  folder_id?: string | null | undefined;
11657
12135
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
11658
12136
  number: string;
11659
12137
  name: string;
11660
12138
  active: boolean | null;
11661
- type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_financial" | "receivable" | "payable" | "other" | null | undefined;
12139
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
11662
12140
  }>;
11663
12141
  createBankAccount(bankAccount: {
11664
12142
  code: string;
@@ -11679,6 +12157,7 @@ export declare class API {
11679
12157
  bank_name?: string | null | undefined;
11680
12158
  journal_id?: string | null | undefined;
11681
12159
  ledger_account?: string | null | undefined;
12160
+ unallocated_account?: string | null | undefined;
11682
12161
  }>;
11683
12162
  getJournalEntry(journalEntryId: string, params?: {
11684
12163
  folder_id?: string | null | undefined;
@@ -11691,6 +12170,12 @@ export declare class API {
11691
12170
  date: string | null;
11692
12171
  posted: boolean | null;
11693
12172
  id: string;
12173
+ due_dates: {
12174
+ due_date: string;
12175
+ payment_method?: string | null | undefined;
12176
+ debit: number | null;
12177
+ credit: number | null;
12178
+ }[] | null;
11694
12179
  items: {
11695
12180
  account_number: string;
11696
12181
  partner_id?: string | null | undefined;
@@ -11712,6 +12197,38 @@ export declare class API {
11712
12197
  }[] | null;
11713
12198
  }[] | null;
11714
12199
  }>;
12200
+ getPaymentMethods(params?: {
12201
+ page?: number | undefined;
12202
+ size?: number | undefined;
12203
+ folder_id?: string | null | undefined;
12204
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
12205
+ items: {
12206
+ id: string;
12207
+ name?: string | null | undefined;
12208
+ }[];
12209
+ total: number;
12210
+ page: number;
12211
+ size: number;
12212
+ }>;
12213
+ createInvoicePayment(body: {
12214
+ date: string;
12215
+ payment_method_id: string;
12216
+ currency: string;
12217
+ currency_exchange_rate: number | null;
12218
+ reference?: string | null | undefined;
12219
+ number?: string | null | undefined;
12220
+ items: {
12221
+ invoice_id: string;
12222
+ amount: number;
12223
+ }[];
12224
+ }, params?: {
12225
+ folder_id?: string | null | undefined;
12226
+ } | undefined): import("../types/api").RequestData<{
12227
+ headers: {
12228
+ [name: string]: unknown;
12229
+ };
12230
+ content?: undefined;
12231
+ }>;
11715
12232
  }>;
11716
12233
  invoicing: import("../types/api").ApiFor<{
11717
12234
  getInvoices(params?: {
@@ -11782,6 +12299,7 @@ export declare class API {
11782
12299
  } | null | undefined;
11783
12300
  last_updated_on?: string | null | undefined;
11784
12301
  outstanding_amount?: number | null | undefined;
12302
+ last_payment_date?: string | null | undefined;
11785
12303
  accounting_date?: string | null | undefined;
11786
12304
  payment_method_id?: string | null | undefined;
11787
12305
  currency_exchange_rate: number | null;
@@ -11849,6 +12367,7 @@ export declare class API {
11849
12367
  } | null | undefined;
11850
12368
  last_updated_on?: string | null | undefined;
11851
12369
  outstanding_amount?: number | null | undefined;
12370
+ last_payment_date?: string | null | undefined;
11852
12371
  accounting_date?: string | null | undefined;
11853
12372
  payment_method_id?: string | null | undefined;
11854
12373
  currency_exchange_rate: number | null;
@@ -11969,6 +12488,7 @@ export declare class API {
11969
12488
  } | null | undefined;
11970
12489
  last_updated_on?: string | null | undefined;
11971
12490
  outstanding_amount?: number | null | undefined;
12491
+ last_payment_date?: string | null | undefined;
11972
12492
  accounting_date?: string | null | undefined;
11973
12493
  payment_method_id?: string | null | undefined;
11974
12494
  currency_exchange_rate: number | null;
@@ -12296,6 +12816,125 @@ export declare class API {
12296
12816
  };
12297
12817
  name: string;
12298
12818
  }[]>;
12819
+ getBankAccounts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
12820
+ items: {
12821
+ id: string;
12822
+ source_ref: {
12823
+ id?: string | null | undefined;
12824
+ model?: string | null | undefined;
12825
+ };
12826
+ name: string;
12827
+ iban?: string | null | undefined;
12828
+ currency?: string | null | undefined;
12829
+ balance?: number | null | undefined;
12830
+ }[];
12831
+ total: number;
12832
+ page: number;
12833
+ size: number;
12834
+ }>;
12835
+ getBankTransactions(params: {
12836
+ date_from?: string | null | undefined;
12837
+ date_to?: string | null | undefined;
12838
+ bank_account_id: string;
12839
+ status?: "draft" | "done" | null | undefined;
12840
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
12841
+ items: {
12842
+ id: string;
12843
+ source_ref: {
12844
+ id?: string | null | undefined;
12845
+ model?: string | null | undefined;
12846
+ };
12847
+ status: "draft" | "done";
12848
+ bank_account_id: string;
12849
+ amount: number;
12850
+ date: string;
12851
+ description?: string | null | undefined;
12852
+ currency: string;
12853
+ currency_exchange_rate: number | null;
12854
+ accounting_code?: string | null | undefined;
12855
+ linked_documents: {
12856
+ id: string;
12857
+ source_ref: {
12858
+ id?: string | null | undefined;
12859
+ model?: string | null | undefined;
12860
+ };
12861
+ amount: number;
12862
+ type: "invoice" | "other";
12863
+ }[] | null;
12864
+ }[];
12865
+ total: number;
12866
+ page: number;
12867
+ size: number;
12868
+ }>;
12869
+ uploadDocument(document: {
12870
+ base64_string: string;
12871
+ document_type: "customer_document" | "supplier_document" | "employee_expense";
12872
+ }, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
12873
+ id: string;
12874
+ source_ref: {
12875
+ id?: string | null | undefined;
12876
+ model?: string | null | undefined;
12877
+ };
12878
+ currency?: string | null | undefined;
12879
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
12880
+ status?: "draft" | "posted" | "cancelled" | "paid" | null | undefined;
12881
+ invoice_date?: string | null | undefined;
12882
+ tax_amount?: number | null | undefined;
12883
+ untaxed_amount?: number | null | undefined;
12884
+ total?: number | null | undefined;
12885
+ lines: {
12886
+ description?: string | null | undefined;
12887
+ unit_price: number;
12888
+ quantity: number;
12889
+ discount_amount: number;
12890
+ tax_amount: number;
12891
+ untaxed_amount: number;
12892
+ total: number;
12893
+ tax_rate?: number | null | undefined;
12894
+ account_number?: string | null | undefined;
12895
+ tax_id?: string | null | undefined;
12896
+ tax_exemption_reason?: string | null | undefined;
12897
+ unit_of_measure?: string | null | undefined;
12898
+ product_id?: string | null | undefined;
12899
+ product_code?: string | null | undefined;
12900
+ product_name?: string | null | undefined;
12901
+ }[] | null;
12902
+ partner_id?: string | null | undefined;
12903
+ invoice_number?: string | null | undefined;
12904
+ due_date?: string | null | undefined;
12905
+ reference?: string | null | undefined;
12906
+ payment_communication?: string | null | undefined;
12907
+ customer_memo?: string | null | undefined;
12908
+ journal_ref?: {
12909
+ id?: string | null | undefined;
12910
+ model?: string | null | undefined;
12911
+ name?: string | null | undefined;
12912
+ } | null | undefined;
12913
+ italian_specificities?: {
12914
+ stamp_duty_amount?: number | null | undefined;
12915
+ withholding_tax?: {
12916
+ rate: number;
12917
+ amount: number;
12918
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | null | undefined;
12919
+ 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" | null | undefined;
12920
+ } | null | undefined;
12921
+ welfare_fund?: {
12922
+ rate: number;
12923
+ amount: number;
12924
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | null | undefined;
12925
+ } | null | undefined;
12926
+ payment_reporting?: {
12927
+ method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | null | undefined;
12928
+ conditions?: "TP01" | "TP02" | "TP03" | null | undefined;
12929
+ } | null | undefined;
12930
+ } | null | undefined;
12931
+ last_updated_on?: string | null | undefined;
12932
+ outstanding_amount?: number | null | undefined;
12933
+ last_payment_date?: string | null | undefined;
12934
+ accounting_date?: string | null | undefined;
12935
+ payment_method_id?: string | null | undefined;
12936
+ currency_exchange_rate: number | null;
12937
+ }>;
12299
12938
  }>;
12300
12939
  ecommerce: import("../types/api").ApiFor<{
12301
12940
  getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -12327,7 +12966,10 @@ export declare class API {
12327
12966
  }[] | null;
12328
12967
  created_on?: string | null | undefined;
12329
12968
  }[]>;
12330
- getProducts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
12969
+ getProducts(params?: {
12970
+ updated_after?: string | null | undefined;
12971
+ sku?: string | null | undefined;
12972
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
12331
12973
  id: string;
12332
12974
  source_ref: {
12333
12975
  id?: string | null | undefined;
@@ -12341,6 +12983,7 @@ export declare class API {
12341
12983
  name: string;
12342
12984
  }[] | null;
12343
12985
  created_on?: string | null | undefined;
12986
+ last_updated_on?: string | null | undefined;
12344
12987
  variants: {
12345
12988
  id: string;
12346
12989
  source_ref: {
@@ -12382,6 +13025,7 @@ export declare class API {
12382
13025
  }[] | null;
12383
13026
  }[] | null;
12384
13027
  status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
13028
+ sku?: string | null | undefined;
12385
13029
  common_attributes: {
12386
13030
  name: string;
12387
13031
  values: string[];
@@ -12439,6 +13083,7 @@ export declare class API {
12439
13083
  name: string;
12440
13084
  }[] | null;
12441
13085
  created_on?: string | null | undefined;
13086
+ last_updated_on?: string | null | undefined;
12442
13087
  variants: {
12443
13088
  id: string;
12444
13089
  source_ref: {
@@ -12480,6 +13125,7 @@ export declare class API {
12480
13125
  }[] | null;
12481
13126
  }[] | null;
12482
13127
  status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
13128
+ sku?: string | null | undefined;
12483
13129
  common_attributes: {
12484
13130
  name: string;
12485
13131
  values: string[];
@@ -12669,6 +13315,7 @@ export declare class API {
12669
13315
  amount: number;
12670
13316
  }[] | null;
12671
13317
  gift_card: boolean | null;
13318
+ is_gift: boolean | null;
12672
13319
  }[];
12673
13320
  other_fees: {
12674
13321
  id: string;
@@ -12946,6 +13593,7 @@ export declare class API {
12946
13593
  amount: number;
12947
13594
  }[] | null;
12948
13595
  gift_card: boolean | null;
13596
+ is_gift: boolean | null;
12949
13597
  }[];
12950
13598
  other_fees: {
12951
13599
  id: string;
@@ -13184,6 +13832,7 @@ export declare class API {
13184
13832
  amount: number;
13185
13833
  }[] | null;
13186
13834
  gift_card: boolean | null;
13835
+ is_gift: boolean | null;
13187
13836
  }[];
13188
13837
  other_fees: {
13189
13838
  id: string;
@@ -13442,6 +14091,11 @@ export declare class API {
13442
14091
  description?: string | null | undefined;
13443
14092
  display_order: number;
13444
14093
  challenge_question?: string | null | undefined;
14094
+ conditions?: {
14095
+ [key: string]: {
14096
+ [key: string]: unknown;
14097
+ };
14098
+ } | null | undefined;
13445
14099
  values: {
13446
14100
  source_id?: string | null | undefined;
13447
14101
  target_id?: string | null | undefined;
@@ -13452,6 +14106,9 @@ export declare class API {
13452
14106
  link_metadata?: {
13453
14107
  [key: string]: unknown;
13454
14108
  } | null | undefined;
14109
+ link_presync?: {
14110
+ [key: string]: unknown;
14111
+ } | null | undefined;
13455
14112
  enabled_flows?: {
13456
14113
  name: string;
13457
14114
  description?: string | null | undefined;
@@ -13704,7 +14361,7 @@ export declare class API {
13704
14361
  }[];
13705
14362
  items: {
13706
14363
  id: string;
13707
- type?: "menu" | "product" | "general_discount" | null | undefined;
14364
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
13708
14365
  menu_id?: string | null | undefined;
13709
14366
  quantity: number;
13710
14367
  unit_price: number;
@@ -13782,7 +14439,7 @@ export declare class API {
13782
14439
  }[];
13783
14440
  items: {
13784
14441
  id: string;
13785
- type?: "menu" | "product" | "general_discount" | null | undefined;
14442
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
13786
14443
  menu_id?: string | null | undefined;
13787
14444
  quantity: number;
13788
14445
  unit_price: number;
@@ -13909,6 +14566,7 @@ export declare class API {
13909
14566
  payments: {
13910
14567
  payment_method_id?: string | null | undefined;
13911
14568
  payment_method_name?: string | null | undefined;
14569
+ tip: number | null;
13912
14570
  total: number;
13913
14571
  }[] | null;
13914
14572
  taxes: {
@@ -13969,7 +14627,7 @@ export declare class API {
13969
14627
  }[];
13970
14628
  items: {
13971
14629
  id: string;
13972
- type?: "menu" | "product" | "general_discount" | null | undefined;
14630
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
13973
14631
  menu_id?: string | null | undefined;
13974
14632
  quantity: number;
13975
14633
  unit_price: number;
@@ -13995,6 +14653,22 @@ export declare class API {
13995
14653
  ledger_account_code?: string | null | undefined;
13996
14654
  posting_account_code?: string | null | undefined;
13997
14655
  }[]>;
14656
+ getObjectives(params: {
14657
+ page?: number | undefined;
14658
+ size?: number | undefined;
14659
+ date_from: string;
14660
+ date_to: string;
14661
+ location_id?: string | null | undefined;
14662
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
14663
+ items: {
14664
+ total: number;
14665
+ tax_amount: number;
14666
+ date: string;
14667
+ }[];
14668
+ total: number;
14669
+ page: number;
14670
+ size: number;
14671
+ }>;
13998
14672
  }>;
13999
14673
  pms: import("../types/api").ApiFor<{
14000
14674
  getLocations(rawData?: boolean | undefined): import("../types/api").RequestData<{
@@ -14051,7 +14725,7 @@ export declare class API {
14051
14725
  id?: string | null | undefined;
14052
14726
  model?: string | null | undefined;
14053
14727
  };
14054
- type?: "menu" | "product" | "general_discount" | null | undefined;
14728
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
14055
14729
  menu_id?: string | null | undefined;
14056
14730
  quantity: number;
14057
14731
  unit_price: number;
@@ -14143,6 +14817,7 @@ export declare class API {
14143
14817
  payments: {
14144
14818
  payment_method_id?: string | null | undefined;
14145
14819
  payment_method_name?: string | null | undefined;
14820
+ tip: number | null;
14146
14821
  total: number;
14147
14822
  }[] | null;
14148
14823
  taxes: {
@@ -14175,6 +14850,7 @@ export declare class API {
14175
14850
  model?: string | null | undefined;
14176
14851
  };
14177
14852
  } | null | undefined;
14853
+ description?: string | null | undefined;
14178
14854
  }[]>;
14179
14855
  getAccountingCategories(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
14180
14856
  id: string;
@@ -14251,7 +14927,7 @@ export declare class API {
14251
14927
  id?: string | null | undefined;
14252
14928
  model?: string | null | undefined;
14253
14929
  };
14254
- type?: "menu" | "product" | "general_discount" | null | undefined;
14930
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
14255
14931
  menu_id?: string | null | undefined;
14256
14932
  quantity: number;
14257
14933
  unit_price: number;
@@ -14287,6 +14963,7 @@ export declare class API {
14287
14963
  model?: string | null | undefined;
14288
14964
  };
14289
14965
  } | null | undefined;
14966
+ description?: string | null | undefined;
14290
14967
  }[];
14291
14968
  service_id?: string | null | undefined;
14292
14969
  reservation?: {
@@ -14352,7 +15029,7 @@ export declare class API {
14352
15029
  id?: string | null | undefined;
14353
15030
  model?: string | null | undefined;
14354
15031
  };
14355
- total: number;
15032
+ amount: number;
14356
15033
  fee: number;
14357
15034
  currency: string;
14358
15035
  exchange_rate: number;
@@ -14865,7 +15542,7 @@ export declare class API {
14865
15542
  customer_memo?: string | null | undefined;
14866
15543
  invoice_date: string;
14867
15544
  due_date: string;
14868
- partner_id: string;
15545
+ partner_id?: string | null | undefined;
14869
15546
  journal_id?: string | null | undefined;
14870
15547
  status: "draft" | "posted" | null;
14871
15548
  pdf?: string | null | undefined;
@@ -14977,6 +15654,11 @@ export declare class API {
14977
15654
  country?: string | null | undefined;
14978
15655
  }[] | null;
14979
15656
  } | null | undefined;
15657
+ due_dates: {
15658
+ due_date: string;
15659
+ payment_method?: string | null | undefined;
15660
+ amount: number;
15661
+ }[] | null;
14980
15662
  lines: {
14981
15663
  line_number: number | null;
14982
15664
  unit_price: number;
@@ -15004,7 +15686,7 @@ export declare class API {
15004
15686
  customer_memo?: string | null | undefined;
15005
15687
  invoice_date: string;
15006
15688
  due_date: string;
15007
- partner_id: string;
15689
+ partner_id?: string | null | undefined;
15008
15690
  journal_id?: string | null | undefined;
15009
15691
  status: "draft" | "posted" | null;
15010
15692
  pdf?: string | null | undefined;
@@ -15122,6 +15804,11 @@ export declare class API {
15122
15804
  country?: string | null | undefined;
15123
15805
  }[] | null;
15124
15806
  } | null | undefined;
15807
+ due_dates: {
15808
+ due_date: string;
15809
+ payment_method?: string | null | undefined;
15810
+ amount: number;
15811
+ }[] | null;
15125
15812
  lines: {
15126
15813
  line_number: number | null;
15127
15814
  unit_price: number;
@@ -15221,6 +15908,11 @@ export declare class API {
15221
15908
  country?: string | null | undefined;
15222
15909
  }[] | null;
15223
15910
  } | null | undefined;
15911
+ due_dates: {
15912
+ due_date: string;
15913
+ payment_method?: string | null | undefined;
15914
+ amount: number;
15915
+ }[] | null;
15224
15916
  lines: {
15225
15917
  line_number: number | null;
15226
15918
  unit_price: number;
@@ -15309,6 +16001,11 @@ export declare class API {
15309
16001
  country?: string | null | undefined;
15310
16002
  }[] | null;
15311
16003
  } | null | undefined;
16004
+ due_dates: {
16005
+ due_date: string;
16006
+ payment_method?: string | null | undefined;
16007
+ amount: number;
16008
+ }[] | null;
15312
16009
  lines: {
15313
16010
  line_number: number | null;
15314
16011
  unit_price: number;
@@ -15397,6 +16094,11 @@ export declare class API {
15397
16094
  country?: string | null | undefined;
15398
16095
  }[] | null;
15399
16096
  } | null | undefined;
16097
+ due_dates: {
16098
+ due_date: string;
16099
+ payment_method?: string | null | undefined;
16100
+ amount: number;
16101
+ }[] | null;
15400
16102
  lines: {
15401
16103
  line_number: number | null;
15402
16104
  unit_price: number;
@@ -15496,6 +16198,11 @@ export declare class API {
15496
16198
  country?: string | null | undefined;
15497
16199
  }[] | null;
15498
16200
  } | null | undefined;
16201
+ due_dates: {
16202
+ due_date: string;
16203
+ payment_method?: string | null | undefined;
16204
+ amount: number;
16205
+ }[] | null;
15499
16206
  lines: {
15500
16207
  line_number: number | null;
15501
16208
  unit_price: number;
@@ -15654,6 +16361,12 @@ export declare class API {
15654
16361
  date: string | null;
15655
16362
  posted: boolean | null;
15656
16363
  id: string;
16364
+ due_dates: {
16365
+ due_date: string;
16366
+ payment_method?: string | null | undefined;
16367
+ debit: number | null;
16368
+ credit: number | null;
16369
+ }[] | null;
15657
16370
  items: {
15658
16371
  account_number: string;
15659
16372
  partner_id?: string | null | undefined;
@@ -15687,6 +16400,12 @@ export declare class API {
15687
16400
  date: string | null;
15688
16401
  posted: boolean | null;
15689
16402
  id: string;
16403
+ due_dates: {
16404
+ due_date: string;
16405
+ payment_method?: string | null | undefined;
16406
+ debit: number | null;
16407
+ credit: number | null;
16408
+ }[] | null;
15690
16409
  items: {
15691
16410
  account_number: string;
15692
16411
  partner_id?: string | null | undefined;
@@ -15734,6 +16453,7 @@ export declare class API {
15734
16453
  name: string;
15735
16454
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
15736
16455
  counterpart_account?: string | null | undefined;
16456
+ unallocated_account?: string | null | undefined;
15737
16457
  next_document_numbers: {
15738
16458
  bookyear_name?: string | null | undefined;
15739
16459
  next_document_number?: string | null | undefined;
@@ -15742,6 +16462,8 @@ export declare class API {
15742
16462
  }[] | null;
15743
16463
  iban?: string | null | undefined;
15744
16464
  currency?: string | null | undefined;
16465
+ other_currencies_allowed: boolean | null;
16466
+ blocked: boolean | null;
15745
16467
  }[]>;
15746
16468
  createJournal(journal: {
15747
16469
  code: string;
@@ -15756,6 +16478,7 @@ export declare class API {
15756
16478
  name: string;
15757
16479
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
15758
16480
  counterpart_account?: string | null | undefined;
16481
+ unallocated_account?: string | null | undefined;
15759
16482
  next_document_numbers: {
15760
16483
  bookyear_name?: string | null | undefined;
15761
16484
  next_document_number?: string | null | undefined;
@@ -15764,6 +16487,8 @@ export declare class API {
15764
16487
  }[] | null;
15765
16488
  iban?: string | null | undefined;
15766
16489
  currency?: string | null | undefined;
16490
+ other_currencies_allowed: boolean | null;
16491
+ blocked: boolean | null;
15767
16492
  }>;
15768
16493
  getVatCodes(params?: {
15769
16494
  folder_id?: string | null | undefined;
@@ -15777,6 +16502,7 @@ export declare class API {
15777
16502
  deductible_account?: string | null | undefined;
15778
16503
  payable_account?: string | null | undefined;
15779
16504
  reversed: boolean | null;
16505
+ country?: string | null | undefined;
15780
16506
  }[]>;
15781
16507
  getMiscOperations(params?: {
15782
16508
  date_from?: string | null | undefined;
@@ -15883,7 +16609,7 @@ export declare class API {
15883
16609
  number: string;
15884
16610
  name: string;
15885
16611
  active: boolean | null;
15886
- type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_financial" | "receivable" | "payable" | "other" | null | undefined;
16612
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
15887
16613
  }[]>;
15888
16614
  getBalanceOfAccounts(filter: {
15889
16615
  accounts: string[];
@@ -15947,41 +16673,6 @@ export declare class API {
15947
16673
  reference?: string | null | undefined;
15948
16674
  } | null | undefined;
15949
16675
  }[]>;
15950
- createFinancialEntryOld(financial_entry: {
15951
- date: string;
15952
- journal_id: string;
15953
- currency: string;
15954
- currency_exchange_rate: number | null;
15955
- reference?: string | null | undefined;
15956
- number?: string | null | undefined;
15957
- items: {
15958
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
15959
- account_number: string;
15960
- partner_id?: string | null | undefined;
15961
- amount: number;
15962
- description?: string | null | undefined;
15963
- }[];
15964
- pdf?: string | null | undefined;
15965
- }, params?: {
15966
- folder_id?: string | null | undefined;
15967
- financial_counterpart_account?: string | null | undefined;
15968
- } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
15969
- date: string;
15970
- journal_id: string;
15971
- currency: string;
15972
- currency_exchange_rate: number | null;
15973
- reference?: string | null | undefined;
15974
- id: string;
15975
- number: string;
15976
- items: {
15977
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
15978
- account_number: string;
15979
- partner_id?: string | null | undefined;
15980
- amount: number;
15981
- description?: string | null | undefined;
15982
- counterpart_account: string;
15983
- }[];
15984
- }>;
15985
16676
  createFinancialEntry(financial_entry: {
15986
16677
  date: string;
15987
16678
  journal_id: string;
@@ -16015,59 +16706,6 @@ export declare class API {
16015
16706
  counterpart_account: string;
16016
16707
  }[];
16017
16708
  }>;
16018
- createJournalEntryOld(journal_entry: {
16019
- reference?: string | null | undefined;
16020
- due_date?: string | null | undefined;
16021
- journal_id: string;
16022
- name: string;
16023
- date: string;
16024
- items: {
16025
- account_number: string;
16026
- partner_id?: string | null | undefined;
16027
- description?: string | null | undefined;
16028
- debit: number;
16029
- credit: number;
16030
- currency: string;
16031
- currency_exchange_rate: number | null;
16032
- analytic_distribution: {
16033
- analytic_plan: string;
16034
- analytic_accounts: {
16035
- analytic_account: string;
16036
- percentage: number;
16037
- }[];
16038
- }[] | null;
16039
- }[];
16040
- pdf?: string | null | undefined;
16041
- }, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
16042
- reference?: string | null | undefined;
16043
- due_date?: string | null | undefined;
16044
- journal_id: string;
16045
- name?: string | null | undefined;
16046
- journal_name?: string | null | undefined;
16047
- date: string | null;
16048
- posted: boolean | null;
16049
- id: string;
16050
- items: {
16051
- account_number: string;
16052
- partner_id?: string | null | undefined;
16053
- description?: string | null | undefined;
16054
- debit: number;
16055
- credit: number;
16056
- currency: string;
16057
- currency_exchange_rate: number | null;
16058
- id: string;
16059
- partner_name?: string | null | undefined;
16060
- account_name: string;
16061
- matching_numbers: string[] | null;
16062
- analytic_distribution: {
16063
- analytic_plan: string;
16064
- analytic_accounts: {
16065
- analytic_account: string;
16066
- percentage: number;
16067
- }[];
16068
- }[] | null;
16069
- }[] | null;
16070
- }>;
16071
16709
  createJournalEntry(journal_entry: {
16072
16710
  reference?: string | null | undefined;
16073
16711
  due_date?: string | null | undefined;
@@ -16078,7 +16716,7 @@ export declare class API {
16078
16716
  date: string;
16079
16717
  items: {
16080
16718
  account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
16081
- account: string;
16719
+ account?: string | null | undefined;
16082
16720
  force_general_account?: string | null | undefined;
16083
16721
  prioritise_thirdparty_account: boolean | null;
16084
16722
  description?: string | null | undefined;
@@ -16092,7 +16730,6 @@ export declare class API {
16092
16730
  }[];
16093
16731
  }[] | null;
16094
16732
  tax_code?: string | null | undefined;
16095
- country?: string | null | undefined;
16096
16733
  account_info?: {
16097
16734
  account_number: string;
16098
16735
  account_name: string;
@@ -16114,6 +16751,12 @@ export declare class API {
16114
16751
  date: string | null;
16115
16752
  posted: boolean | null;
16116
16753
  id: string;
16754
+ due_dates: {
16755
+ due_date: string;
16756
+ payment_method?: string | null | undefined;
16757
+ debit: number | null;
16758
+ credit: number | null;
16759
+ }[] | null;
16117
16760
  items: {
16118
16761
  account_number: string;
16119
16762
  partner_id?: string | null | undefined;
@@ -16151,19 +16794,72 @@ export declare class API {
16151
16794
  }[];
16152
16795
  }, params?: {
16153
16796
  folder_id?: string | null | undefined;
16154
- } | undefined): import("../types/api").RequestData<{
16155
- matching_number?: string | null | undefined;
16156
- processed: boolean;
16157
- error_msg?: {
16158
- [key: string]: unknown;
16159
- } | null | undefined;
16160
- }[]>;
16797
+ } | undefined): import("../types/api").RequestData<{
16798
+ matching_number?: string | null | undefined;
16799
+ processed: boolean;
16800
+ error_msg?: {
16801
+ [key: string]: unknown;
16802
+ } | null | undefined;
16803
+ }[]>;
16804
+ createExpense(expense: {
16805
+ employee_id: string;
16806
+ total: number;
16807
+ untaxed_amount: number;
16808
+ tax_amount: number;
16809
+ reference?: string | null | undefined;
16810
+ number?: string | null | undefined;
16811
+ currency: string;
16812
+ currency_exchange_rate: number | null;
16813
+ date: string;
16814
+ pdf?: string | null | undefined;
16815
+ lines: {
16816
+ total: number;
16817
+ untaxed_amount: number;
16818
+ tax_amount: number;
16819
+ description?: string | null | undefined;
16820
+ account_number: string;
16821
+ tax_rate: number;
16822
+ tax_id: string;
16823
+ }[];
16824
+ }, params?: {
16825
+ folder_id?: string | null | undefined;
16826
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
16827
+ employee_id: string;
16828
+ total: number;
16829
+ untaxed_amount: number;
16830
+ tax_amount: number;
16831
+ reference?: string | null | undefined;
16832
+ number?: string | null | undefined;
16833
+ currency: string;
16834
+ currency_exchange_rate: number | null;
16835
+ date: string;
16836
+ pdf?: string | null | undefined;
16837
+ lines: {
16838
+ total: number;
16839
+ untaxed_amount: number;
16840
+ tax_amount: number;
16841
+ description?: string | null | undefined;
16842
+ account_number: string;
16843
+ tax_rate: number;
16844
+ tax_id: string;
16845
+ }[];
16846
+ id: string;
16847
+ }>;
16161
16848
  getFolders(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16162
16849
  id: string;
16163
16850
  name: string;
16164
16851
  selected: boolean | null;
16165
16852
  vat?: string | null | undefined;
16166
16853
  company_number?: string | null | undefined;
16854
+ main_currency?: string | null | undefined;
16855
+ addresses?: {
16856
+ street?: string | null | undefined;
16857
+ number?: string | null | undefined;
16858
+ box?: string | null | undefined;
16859
+ postal_code?: string | null | undefined;
16860
+ city?: string | null | undefined;
16861
+ country?: string | null | undefined;
16862
+ }[] | null | undefined;
16167
16863
  }[]>;
16168
16864
  getBookyears(params?: {
16169
16865
  folder_id?: string | null | undefined;
@@ -16176,13 +16872,14 @@ export declare class API {
16176
16872
  createLedgerAccount(account: {
16177
16873
  name: string;
16178
16874
  number: string;
16875
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
16179
16876
  }, params?: {
16180
16877
  folder_id?: string | null | undefined;
16181
16878
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
16182
16879
  number: string;
16183
16880
  name: string;
16184
16881
  active: boolean | null;
16185
- type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_financial" | "receivable" | "payable" | "other" | null | undefined;
16882
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
16186
16883
  }>;
16187
16884
  createBankAccount(bankAccount: {
16188
16885
  code: string;
@@ -16203,6 +16900,7 @@ export declare class API {
16203
16900
  bank_name?: string | null | undefined;
16204
16901
  journal_id?: string | null | undefined;
16205
16902
  ledger_account?: string | null | undefined;
16903
+ unallocated_account?: string | null | undefined;
16206
16904
  }>;
16207
16905
  getJournalEntry(journalEntryId: string, params?: {
16208
16906
  folder_id?: string | null | undefined;
@@ -16215,6 +16913,12 @@ export declare class API {
16215
16913
  date: string | null;
16216
16914
  posted: boolean | null;
16217
16915
  id: string;
16916
+ due_dates: {
16917
+ due_date: string;
16918
+ payment_method?: string | null | undefined;
16919
+ debit: number | null;
16920
+ credit: number | null;
16921
+ }[] | null;
16218
16922
  items: {
16219
16923
  account_number: string;
16220
16924
  partner_id?: string | null | undefined;
@@ -16236,6 +16940,38 @@ export declare class API {
16236
16940
  }[] | null;
16237
16941
  }[] | null;
16238
16942
  }>;
16943
+ getPaymentMethods(params?: {
16944
+ page?: number | undefined;
16945
+ size?: number | undefined;
16946
+ folder_id?: string | null | undefined;
16947
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16948
+ items: {
16949
+ id: string;
16950
+ name?: string | null | undefined;
16951
+ }[];
16952
+ total: number;
16953
+ page: number;
16954
+ size: number;
16955
+ }>;
16956
+ createInvoicePayment(body: {
16957
+ date: string;
16958
+ payment_method_id: string;
16959
+ currency: string;
16960
+ currency_exchange_rate: number | null;
16961
+ reference?: string | null | undefined;
16962
+ number?: string | null | undefined;
16963
+ items: {
16964
+ invoice_id: string;
16965
+ amount: number;
16966
+ }[];
16967
+ }, params?: {
16968
+ folder_id?: string | null | undefined;
16969
+ } | undefined): import("../types/api").RequestData<{
16970
+ headers: {
16971
+ [name: string]: unknown;
16972
+ };
16973
+ content?: undefined;
16974
+ }>;
16239
16975
  }>;
16240
16976
  invoicing: import("../types/api").ApiFor<{
16241
16977
  getInvoices(params?: {
@@ -16306,6 +17042,7 @@ export declare class API {
16306
17042
  } | null | undefined;
16307
17043
  last_updated_on?: string | null | undefined;
16308
17044
  outstanding_amount?: number | null | undefined;
17045
+ last_payment_date?: string | null | undefined;
16309
17046
  accounting_date?: string | null | undefined;
16310
17047
  payment_method_id?: string | null | undefined;
16311
17048
  currency_exchange_rate: number | null;
@@ -16373,6 +17110,7 @@ export declare class API {
16373
17110
  } | null | undefined;
16374
17111
  last_updated_on?: string | null | undefined;
16375
17112
  outstanding_amount?: number | null | undefined;
17113
+ last_payment_date?: string | null | undefined;
16376
17114
  accounting_date?: string | null | undefined;
16377
17115
  payment_method_id?: string | null | undefined;
16378
17116
  currency_exchange_rate: number | null;
@@ -16493,6 +17231,7 @@ export declare class API {
16493
17231
  } | null | undefined;
16494
17232
  last_updated_on?: string | null | undefined;
16495
17233
  outstanding_amount?: number | null | undefined;
17234
+ last_payment_date?: string | null | undefined;
16496
17235
  accounting_date?: string | null | undefined;
16497
17236
  payment_method_id?: string | null | undefined;
16498
17237
  currency_exchange_rate: number | null;
@@ -16820,6 +17559,125 @@ export declare class API {
16820
17559
  };
16821
17560
  name: string;
16822
17561
  }[]>;
17562
+ getBankAccounts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
17563
+ items: {
17564
+ id: string;
17565
+ source_ref: {
17566
+ id?: string | null | undefined;
17567
+ model?: string | null | undefined;
17568
+ };
17569
+ name: string;
17570
+ iban?: string | null | undefined;
17571
+ currency?: string | null | undefined;
17572
+ balance?: number | null | undefined;
17573
+ }[];
17574
+ total: number;
17575
+ page: number;
17576
+ size: number;
17577
+ }>;
17578
+ getBankTransactions(params: {
17579
+ date_from?: string | null | undefined;
17580
+ date_to?: string | null | undefined;
17581
+ bank_account_id: string;
17582
+ status?: "draft" | "done" | null | undefined;
17583
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
17584
+ items: {
17585
+ id: string;
17586
+ source_ref: {
17587
+ id?: string | null | undefined;
17588
+ model?: string | null | undefined;
17589
+ };
17590
+ status: "draft" | "done";
17591
+ bank_account_id: string;
17592
+ amount: number;
17593
+ date: string;
17594
+ description?: string | null | undefined;
17595
+ currency: string;
17596
+ currency_exchange_rate: number | null;
17597
+ accounting_code?: string | null | undefined;
17598
+ linked_documents: {
17599
+ id: string;
17600
+ source_ref: {
17601
+ id?: string | null | undefined;
17602
+ model?: string | null | undefined;
17603
+ };
17604
+ amount: number;
17605
+ type: "invoice" | "other";
17606
+ }[] | null;
17607
+ }[];
17608
+ total: number;
17609
+ page: number;
17610
+ size: number;
17611
+ }>;
17612
+ uploadDocument(document: {
17613
+ base64_string: string;
17614
+ document_type: "customer_document" | "supplier_document" | "employee_expense";
17615
+ }, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
17616
+ id: string;
17617
+ source_ref: {
17618
+ id?: string | null | undefined;
17619
+ model?: string | null | undefined;
17620
+ };
17621
+ currency?: string | null | undefined;
17622
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
17623
+ status?: "draft" | "posted" | "cancelled" | "paid" | null | undefined;
17624
+ invoice_date?: string | null | undefined;
17625
+ tax_amount?: number | null | undefined;
17626
+ untaxed_amount?: number | null | undefined;
17627
+ total?: number | null | undefined;
17628
+ lines: {
17629
+ description?: string | null | undefined;
17630
+ unit_price: number;
17631
+ quantity: number;
17632
+ discount_amount: number;
17633
+ tax_amount: number;
17634
+ untaxed_amount: number;
17635
+ total: number;
17636
+ tax_rate?: number | null | undefined;
17637
+ account_number?: string | null | undefined;
17638
+ tax_id?: string | null | undefined;
17639
+ tax_exemption_reason?: string | null | undefined;
17640
+ unit_of_measure?: string | null | undefined;
17641
+ product_id?: string | null | undefined;
17642
+ product_code?: string | null | undefined;
17643
+ product_name?: string | null | undefined;
17644
+ }[] | null;
17645
+ partner_id?: string | null | undefined;
17646
+ invoice_number?: string | null | undefined;
17647
+ due_date?: string | null | undefined;
17648
+ reference?: string | null | undefined;
17649
+ payment_communication?: string | null | undefined;
17650
+ customer_memo?: string | null | undefined;
17651
+ journal_ref?: {
17652
+ id?: string | null | undefined;
17653
+ model?: string | null | undefined;
17654
+ name?: string | null | undefined;
17655
+ } | null | undefined;
17656
+ italian_specificities?: {
17657
+ stamp_duty_amount?: number | null | undefined;
17658
+ withholding_tax?: {
17659
+ rate: number;
17660
+ amount: number;
17661
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | null | undefined;
17662
+ 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" | null | undefined;
17663
+ } | null | undefined;
17664
+ welfare_fund?: {
17665
+ rate: number;
17666
+ amount: number;
17667
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | null | undefined;
17668
+ } | null | undefined;
17669
+ payment_reporting?: {
17670
+ method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | null | undefined;
17671
+ conditions?: "TP01" | "TP02" | "TP03" | null | undefined;
17672
+ } | null | undefined;
17673
+ } | null | undefined;
17674
+ last_updated_on?: string | null | undefined;
17675
+ outstanding_amount?: number | null | undefined;
17676
+ last_payment_date?: string | null | undefined;
17677
+ accounting_date?: string | null | undefined;
17678
+ payment_method_id?: string | null | undefined;
17679
+ currency_exchange_rate: number | null;
17680
+ }>;
16823
17681
  }>;
16824
17682
  ecommerce: import("../types/api").ApiFor<{
16825
17683
  getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -16851,7 +17709,10 @@ export declare class API {
16851
17709
  }[] | null;
16852
17710
  created_on?: string | null | undefined;
16853
17711
  }[]>;
16854
- getProducts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
17712
+ getProducts(params?: {
17713
+ updated_after?: string | null | undefined;
17714
+ sku?: string | null | undefined;
17715
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
16855
17716
  id: string;
16856
17717
  source_ref: {
16857
17718
  id?: string | null | undefined;
@@ -16865,6 +17726,7 @@ export declare class API {
16865
17726
  name: string;
16866
17727
  }[] | null;
16867
17728
  created_on?: string | null | undefined;
17729
+ last_updated_on?: string | null | undefined;
16868
17730
  variants: {
16869
17731
  id: string;
16870
17732
  source_ref: {
@@ -16906,6 +17768,7 @@ export declare class API {
16906
17768
  }[] | null;
16907
17769
  }[] | null;
16908
17770
  status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
17771
+ sku?: string | null | undefined;
16909
17772
  common_attributes: {
16910
17773
  name: string;
16911
17774
  values: string[];
@@ -16963,6 +17826,7 @@ export declare class API {
16963
17826
  name: string;
16964
17827
  }[] | null;
16965
17828
  created_on?: string | null | undefined;
17829
+ last_updated_on?: string | null | undefined;
16966
17830
  variants: {
16967
17831
  id: string;
16968
17832
  source_ref: {
@@ -17004,6 +17868,7 @@ export declare class API {
17004
17868
  }[] | null;
17005
17869
  }[] | null;
17006
17870
  status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
17871
+ sku?: string | null | undefined;
17007
17872
  common_attributes: {
17008
17873
  name: string;
17009
17874
  values: string[];
@@ -17193,6 +18058,7 @@ export declare class API {
17193
18058
  amount: number;
17194
18059
  }[] | null;
17195
18060
  gift_card: boolean | null;
18061
+ is_gift: boolean | null;
17196
18062
  }[];
17197
18063
  other_fees: {
17198
18064
  id: string;
@@ -17470,6 +18336,7 @@ export declare class API {
17470
18336
  amount: number;
17471
18337
  }[] | null;
17472
18338
  gift_card: boolean | null;
18339
+ is_gift: boolean | null;
17473
18340
  }[];
17474
18341
  other_fees: {
17475
18342
  id: string;
@@ -17708,6 +18575,7 @@ export declare class API {
17708
18575
  amount: number;
17709
18576
  }[] | null;
17710
18577
  gift_card: boolean | null;
18578
+ is_gift: boolean | null;
17711
18579
  }[];
17712
18580
  other_fees: {
17713
18581
  id: string;
@@ -17966,6 +18834,11 @@ export declare class API {
17966
18834
  description?: string | null | undefined;
17967
18835
  display_order: number;
17968
18836
  challenge_question?: string | null | undefined;
18837
+ conditions?: {
18838
+ [key: string]: {
18839
+ [key: string]: unknown;
18840
+ };
18841
+ } | null | undefined;
17969
18842
  values: {
17970
18843
  source_id?: string | null | undefined;
17971
18844
  target_id?: string | null | undefined;
@@ -17976,6 +18849,9 @@ export declare class API {
17976
18849
  link_metadata?: {
17977
18850
  [key: string]: unknown;
17978
18851
  } | null | undefined;
18852
+ link_presync?: {
18853
+ [key: string]: unknown;
18854
+ } | null | undefined;
17979
18855
  enabled_flows?: {
17980
18856
  name: string;
17981
18857
  description?: string | null | undefined;
@@ -18233,7 +19109,7 @@ export declare class API {
18233
19109
  }[];
18234
19110
  items: {
18235
19111
  id: string;
18236
- type?: "menu" | "product" | "general_discount" | null | undefined;
19112
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
18237
19113
  menu_id?: string | null | undefined;
18238
19114
  quantity: number;
18239
19115
  unit_price: number;
@@ -18311,7 +19187,7 @@ export declare class API {
18311
19187
  }[];
18312
19188
  items: {
18313
19189
  id: string;
18314
- type?: "menu" | "product" | "general_discount" | null | undefined;
19190
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
18315
19191
  menu_id?: string | null | undefined;
18316
19192
  quantity: number;
18317
19193
  unit_price: number;
@@ -18438,6 +19314,7 @@ export declare class API {
18438
19314
  payments: {
18439
19315
  payment_method_id?: string | null | undefined;
18440
19316
  payment_method_name?: string | null | undefined;
19317
+ tip: number | null;
18441
19318
  total: number;
18442
19319
  }[] | null;
18443
19320
  taxes: {
@@ -18498,7 +19375,7 @@ export declare class API {
18498
19375
  }[];
18499
19376
  items: {
18500
19377
  id: string;
18501
- type?: "menu" | "product" | "general_discount" | null | undefined;
19378
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
18502
19379
  menu_id?: string | null | undefined;
18503
19380
  quantity: number;
18504
19381
  unit_price: number;
@@ -18524,6 +19401,22 @@ export declare class API {
18524
19401
  ledger_account_code?: string | null | undefined;
18525
19402
  posting_account_code?: string | null | undefined;
18526
19403
  }[]>;
19404
+ getObjectives(params: {
19405
+ page?: number | undefined;
19406
+ size?: number | undefined;
19407
+ date_from: string;
19408
+ date_to: string;
19409
+ location_id?: string | null | undefined;
19410
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
19411
+ items: {
19412
+ total: number;
19413
+ tax_amount: number;
19414
+ date: string;
19415
+ }[];
19416
+ total: number;
19417
+ page: number;
19418
+ size: number;
19419
+ }>;
18527
19420
  }>;
18528
19421
  pms: import("../types/api").ApiFor<{
18529
19422
  getLocations(rawData?: boolean | undefined): import("../types/api").RequestData<{
@@ -18580,7 +19473,7 @@ export declare class API {
18580
19473
  id?: string | null | undefined;
18581
19474
  model?: string | null | undefined;
18582
19475
  };
18583
- type?: "menu" | "product" | "general_discount" | null | undefined;
19476
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
18584
19477
  menu_id?: string | null | undefined;
18585
19478
  quantity: number;
18586
19479
  unit_price: number;
@@ -18672,6 +19565,7 @@ export declare class API {
18672
19565
  payments: {
18673
19566
  payment_method_id?: string | null | undefined;
18674
19567
  payment_method_name?: string | null | undefined;
19568
+ tip: number | null;
18675
19569
  total: number;
18676
19570
  }[] | null;
18677
19571
  taxes: {
@@ -18704,6 +19598,7 @@ export declare class API {
18704
19598
  model?: string | null | undefined;
18705
19599
  };
18706
19600
  } | null | undefined;
19601
+ description?: string | null | undefined;
18707
19602
  }[]>;
18708
19603
  getAccountingCategories(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
18709
19604
  id: string;
@@ -18780,7 +19675,7 @@ export declare class API {
18780
19675
  id?: string | null | undefined;
18781
19676
  model?: string | null | undefined;
18782
19677
  };
18783
- type?: "menu" | "product" | "general_discount" | null | undefined;
19678
+ type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
18784
19679
  menu_id?: string | null | undefined;
18785
19680
  quantity: number;
18786
19681
  unit_price: number;
@@ -18816,6 +19711,7 @@ export declare class API {
18816
19711
  model?: string | null | undefined;
18817
19712
  };
18818
19713
  } | null | undefined;
19714
+ description?: string | null | undefined;
18819
19715
  }[];
18820
19716
  service_id?: string | null | undefined;
18821
19717
  reservation?: {
@@ -18881,7 +19777,7 @@ export declare class API {
18881
19777
  id?: string | null | undefined;
18882
19778
  model?: string | null | undefined;
18883
19779
  };
18884
- total: number;
19780
+ amount: number;
18885
19781
  fee: number;
18886
19782
  currency: string;
18887
19783
  exchange_rate: number;
@@ -19394,7 +20290,7 @@ export declare class API {
19394
20290
  customer_memo?: string | null | undefined;
19395
20291
  invoice_date: string;
19396
20292
  due_date: string;
19397
- partner_id: string;
20293
+ partner_id?: string | null | undefined;
19398
20294
  journal_id?: string | null | undefined;
19399
20295
  status: "draft" | "posted" | null;
19400
20296
  pdf?: string | null | undefined;
@@ -19506,6 +20402,11 @@ export declare class API {
19506
20402
  country?: string | null | undefined;
19507
20403
  }[] | null;
19508
20404
  } | null | undefined;
20405
+ due_dates: {
20406
+ due_date: string;
20407
+ payment_method?: string | null | undefined;
20408
+ amount: number;
20409
+ }[] | null;
19509
20410
  lines: {
19510
20411
  line_number: number | null;
19511
20412
  unit_price: number;
@@ -19533,7 +20434,7 @@ export declare class API {
19533
20434
  customer_memo?: string | null | undefined;
19534
20435
  invoice_date: string;
19535
20436
  due_date: string;
19536
- partner_id: string;
20437
+ partner_id?: string | null | undefined;
19537
20438
  journal_id?: string | null | undefined;
19538
20439
  status: "draft" | "posted" | null;
19539
20440
  pdf?: string | null | undefined;
@@ -19651,6 +20552,11 @@ export declare class API {
19651
20552
  country?: string | null | undefined;
19652
20553
  }[] | null;
19653
20554
  } | null | undefined;
20555
+ due_dates: {
20556
+ due_date: string;
20557
+ payment_method?: string | null | undefined;
20558
+ amount: number;
20559
+ }[] | null;
19654
20560
  lines: {
19655
20561
  line_number: number | null;
19656
20562
  unit_price: number;
@@ -19750,6 +20656,11 @@ export declare class API {
19750
20656
  country?: string | null | undefined;
19751
20657
  }[] | null;
19752
20658
  } | null | undefined;
20659
+ due_dates: {
20660
+ due_date: string;
20661
+ payment_method?: string | null | undefined;
20662
+ amount: number;
20663
+ }[] | null;
19753
20664
  lines: {
19754
20665
  line_number: number | null;
19755
20666
  unit_price: number;
@@ -19838,6 +20749,11 @@ export declare class API {
19838
20749
  country?: string | null | undefined;
19839
20750
  }[] | null;
19840
20751
  } | null | undefined;
20752
+ due_dates: {
20753
+ due_date: string;
20754
+ payment_method?: string | null | undefined;
20755
+ amount: number;
20756
+ }[] | null;
19841
20757
  lines: {
19842
20758
  line_number: number | null;
19843
20759
  unit_price: number;
@@ -19926,6 +20842,11 @@ export declare class API {
19926
20842
  country?: string | null | undefined;
19927
20843
  }[] | null;
19928
20844
  } | null | undefined;
20845
+ due_dates: {
20846
+ due_date: string;
20847
+ payment_method?: string | null | undefined;
20848
+ amount: number;
20849
+ }[] | null;
19929
20850
  lines: {
19930
20851
  line_number: number | null;
19931
20852
  unit_price: number;
@@ -20025,6 +20946,11 @@ export declare class API {
20025
20946
  country?: string | null | undefined;
20026
20947
  }[] | null;
20027
20948
  } | null | undefined;
20949
+ due_dates: {
20950
+ due_date: string;
20951
+ payment_method?: string | null | undefined;
20952
+ amount: number;
20953
+ }[] | null;
20028
20954
  lines: {
20029
20955
  line_number: number | null;
20030
20956
  unit_price: number;
@@ -20183,6 +21109,12 @@ export declare class API {
20183
21109
  date: string | null;
20184
21110
  posted: boolean | null;
20185
21111
  id: string;
21112
+ due_dates: {
21113
+ due_date: string;
21114
+ payment_method?: string | null | undefined;
21115
+ debit: number | null;
21116
+ credit: number | null;
21117
+ }[] | null;
20186
21118
  items: {
20187
21119
  account_number: string;
20188
21120
  partner_id?: string | null | undefined;
@@ -20216,6 +21148,12 @@ export declare class API {
20216
21148
  date: string | null;
20217
21149
  posted: boolean | null;
20218
21150
  id: string;
21151
+ due_dates: {
21152
+ due_date: string;
21153
+ payment_method?: string | null | undefined;
21154
+ debit: number | null;
21155
+ credit: number | null;
21156
+ }[] | null;
20219
21157
  items: {
20220
21158
  account_number: string;
20221
21159
  partner_id?: string | null | undefined;
@@ -20263,6 +21201,7 @@ export declare class API {
20263
21201
  name: string;
20264
21202
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
20265
21203
  counterpart_account?: string | null | undefined;
21204
+ unallocated_account?: string | null | undefined;
20266
21205
  next_document_numbers: {
20267
21206
  bookyear_name?: string | null | undefined;
20268
21207
  next_document_number?: string | null | undefined;
@@ -20271,6 +21210,8 @@ export declare class API {
20271
21210
  }[] | null;
20272
21211
  iban?: string | null | undefined;
20273
21212
  currency?: string | null | undefined;
21213
+ other_currencies_allowed: boolean | null;
21214
+ blocked: boolean | null;
20274
21215
  }[]>;
20275
21216
  createJournal(journal: {
20276
21217
  code: string;
@@ -20285,6 +21226,7 @@ export declare class API {
20285
21226
  name: string;
20286
21227
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
20287
21228
  counterpart_account?: string | null | undefined;
21229
+ unallocated_account?: string | null | undefined;
20288
21230
  next_document_numbers: {
20289
21231
  bookyear_name?: string | null | undefined;
20290
21232
  next_document_number?: string | null | undefined;
@@ -20293,6 +21235,8 @@ export declare class API {
20293
21235
  }[] | null;
20294
21236
  iban?: string | null | undefined;
20295
21237
  currency?: string | null | undefined;
21238
+ other_currencies_allowed: boolean | null;
21239
+ blocked: boolean | null;
20296
21240
  }>;
20297
21241
  getVatCodes(params?: {
20298
21242
  folder_id?: string | null | undefined;
@@ -20306,6 +21250,7 @@ export declare class API {
20306
21250
  deductible_account?: string | null | undefined;
20307
21251
  payable_account?: string | null | undefined;
20308
21252
  reversed: boolean | null;
21253
+ country?: string | null | undefined;
20309
21254
  }[]>;
20310
21255
  getMiscOperations(params?: {
20311
21256
  date_from?: string | null | undefined;
@@ -20412,7 +21357,7 @@ export declare class API {
20412
21357
  number: string;
20413
21358
  name: string;
20414
21359
  active: boolean | null;
20415
- type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_financial" | "receivable" | "payable" | "other" | null | undefined;
21360
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
20416
21361
  }[]>;
20417
21362
  getBalanceOfAccounts(filter: {
20418
21363
  accounts: string[];
@@ -20459,58 +21404,23 @@ export declare class API {
20459
21404
  currency: string;
20460
21405
  currency_exchange_rate: number;
20461
21406
  amount: number;
20462
- open_amount: number;
20463
- partner_id: string;
20464
- account_number: string;
20465
- reference?: string | null | undefined;
20466
- matching_numbers: string[] | null;
20467
- payment_communication?: string | null | undefined;
20468
- posted: boolean;
20469
- original_document?: {
20470
- id?: string | null | undefined;
20471
- number?: string | null | undefined;
20472
- journal_id?: string | null | undefined;
20473
- journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | null | undefined;
20474
- date?: string | null | undefined;
20475
- due_date?: string | null | undefined;
20476
- reference?: string | null | undefined;
20477
- } | null | undefined;
20478
- }[]>;
20479
- createFinancialEntryOld(financial_entry: {
20480
- date: string;
20481
- journal_id: string;
20482
- currency: string;
20483
- currency_exchange_rate: number | null;
20484
- reference?: string | null | undefined;
20485
- number?: string | null | undefined;
20486
- items: {
20487
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
20488
- account_number: string;
20489
- partner_id?: string | null | undefined;
20490
- amount: number;
20491
- description?: string | null | undefined;
20492
- }[];
20493
- pdf?: string | null | undefined;
20494
- }, params?: {
20495
- folder_id?: string | null | undefined;
20496
- financial_counterpart_account?: string | null | undefined;
20497
- } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
20498
- date: string;
20499
- journal_id: string;
20500
- currency: string;
20501
- currency_exchange_rate: number | null;
20502
- reference?: string | null | undefined;
20503
- id: string;
20504
- number: string;
20505
- items: {
20506
- type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
20507
- account_number: string;
20508
- partner_id?: string | null | undefined;
20509
- amount: number;
20510
- description?: string | null | undefined;
20511
- counterpart_account: string;
20512
- }[];
20513
- }>;
21407
+ open_amount: number;
21408
+ partner_id: string;
21409
+ account_number: string;
21410
+ reference?: string | null | undefined;
21411
+ matching_numbers: string[] | null;
21412
+ payment_communication?: string | null | undefined;
21413
+ posted: boolean;
21414
+ original_document?: {
21415
+ id?: string | null | undefined;
21416
+ number?: string | null | undefined;
21417
+ journal_id?: string | null | undefined;
21418
+ journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | null | undefined;
21419
+ date?: string | null | undefined;
21420
+ due_date?: string | null | undefined;
21421
+ reference?: string | null | undefined;
21422
+ } | null | undefined;
21423
+ }[]>;
20514
21424
  createFinancialEntry(financial_entry: {
20515
21425
  date: string;
20516
21426
  journal_id: string;
@@ -20544,59 +21454,6 @@ export declare class API {
20544
21454
  counterpart_account: string;
20545
21455
  }[];
20546
21456
  }>;
20547
- createJournalEntryOld(journal_entry: {
20548
- reference?: string | null | undefined;
20549
- due_date?: string | null | undefined;
20550
- journal_id: string;
20551
- name: string;
20552
- date: string;
20553
- items: {
20554
- account_number: string;
20555
- partner_id?: string | null | undefined;
20556
- description?: string | null | undefined;
20557
- debit: number;
20558
- credit: number;
20559
- currency: string;
20560
- currency_exchange_rate: number | null;
20561
- analytic_distribution: {
20562
- analytic_plan: string;
20563
- analytic_accounts: {
20564
- analytic_account: string;
20565
- percentage: number;
20566
- }[];
20567
- }[] | null;
20568
- }[];
20569
- pdf?: string | null | undefined;
20570
- }, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
20571
- reference?: string | null | undefined;
20572
- due_date?: string | null | undefined;
20573
- journal_id: string;
20574
- name?: string | null | undefined;
20575
- journal_name?: string | null | undefined;
20576
- date: string | null;
20577
- posted: boolean | null;
20578
- id: string;
20579
- items: {
20580
- account_number: string;
20581
- partner_id?: string | null | undefined;
20582
- description?: string | null | undefined;
20583
- debit: number;
20584
- credit: number;
20585
- currency: string;
20586
- currency_exchange_rate: number | null;
20587
- id: string;
20588
- partner_name?: string | null | undefined;
20589
- account_name: string;
20590
- matching_numbers: string[] | null;
20591
- analytic_distribution: {
20592
- analytic_plan: string;
20593
- analytic_accounts: {
20594
- analytic_account: string;
20595
- percentage: number;
20596
- }[];
20597
- }[] | null;
20598
- }[] | null;
20599
- }>;
20600
21457
  createJournalEntry(journal_entry: {
20601
21458
  reference?: string | null | undefined;
20602
21459
  due_date?: string | null | undefined;
@@ -20607,7 +21464,7 @@ export declare class API {
20607
21464
  date: string;
20608
21465
  items: {
20609
21466
  account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
20610
- account: string;
21467
+ account?: string | null | undefined;
20611
21468
  force_general_account?: string | null | undefined;
20612
21469
  prioritise_thirdparty_account: boolean | null;
20613
21470
  description?: string | null | undefined;
@@ -20621,7 +21478,6 @@ export declare class API {
20621
21478
  }[];
20622
21479
  }[] | null;
20623
21480
  tax_code?: string | null | undefined;
20624
- country?: string | null | undefined;
20625
21481
  account_info?: {
20626
21482
  account_number: string;
20627
21483
  account_name: string;
@@ -20643,6 +21499,12 @@ export declare class API {
20643
21499
  date: string | null;
20644
21500
  posted: boolean | null;
20645
21501
  id: string;
21502
+ due_dates: {
21503
+ due_date: string;
21504
+ payment_method?: string | null | undefined;
21505
+ debit: number | null;
21506
+ credit: number | null;
21507
+ }[] | null;
20646
21508
  items: {
20647
21509
  account_number: string;
20648
21510
  partner_id?: string | null | undefined;
@@ -20687,12 +21549,65 @@ export declare class API {
20687
21549
  [key: string]: unknown;
20688
21550
  } | null | undefined;
20689
21551
  }[]>;
21552
+ createExpense(expense: {
21553
+ employee_id: string;
21554
+ total: number;
21555
+ untaxed_amount: number;
21556
+ tax_amount: number;
21557
+ reference?: string | null | undefined;
21558
+ number?: string | null | undefined;
21559
+ currency: string;
21560
+ currency_exchange_rate: number | null;
21561
+ date: string;
21562
+ pdf?: string | null | undefined;
21563
+ lines: {
21564
+ total: number;
21565
+ untaxed_amount: number;
21566
+ tax_amount: number;
21567
+ description?: string | null | undefined;
21568
+ account_number: string;
21569
+ tax_rate: number;
21570
+ tax_id: string;
21571
+ }[];
21572
+ }, params?: {
21573
+ folder_id?: string | null | undefined;
21574
+ } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
21575
+ employee_id: string;
21576
+ total: number;
21577
+ untaxed_amount: number;
21578
+ tax_amount: number;
21579
+ reference?: string | null | undefined;
21580
+ number?: string | null | undefined;
21581
+ currency: string;
21582
+ currency_exchange_rate: number | null;
21583
+ date: string;
21584
+ pdf?: string | null | undefined;
21585
+ lines: {
21586
+ total: number;
21587
+ untaxed_amount: number;
21588
+ tax_amount: number;
21589
+ description?: string | null | undefined;
21590
+ account_number: string;
21591
+ tax_rate: number;
21592
+ tax_id: string;
21593
+ }[];
21594
+ id: string;
21595
+ }>;
20690
21596
  getFolders(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
20691
21597
  id: string;
20692
21598
  name: string;
20693
21599
  selected: boolean | null;
20694
21600
  vat?: string | null | undefined;
20695
21601
  company_number?: string | null | undefined;
21602
+ main_currency?: string | null | undefined;
21603
+ addresses?: {
21604
+ street?: string | null | undefined;
21605
+ number?: string | null | undefined;
21606
+ box?: string | null | undefined;
21607
+ postal_code?: string | null | undefined;
21608
+ city?: string | null | undefined;
21609
+ country?: string | null | undefined;
21610
+ }[] | null | undefined;
20696
21611
  }[]>;
20697
21612
  getBookyears(params?: {
20698
21613
  folder_id?: string | null | undefined;
@@ -20705,13 +21620,14 @@ export declare class API {
20705
21620
  createLedgerAccount(account: {
20706
21621
  name: string;
20707
21622
  number: string;
21623
+ type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
20708
21624
  }, params?: {
20709
21625
  folder_id?: string | null | undefined;
20710
21626
  } | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
20711
21627
  number: string;
20712
21628
  name: string;
20713
21629
  active: boolean | null;
20714
- type?: "vat" | "bank" | "cash" | "income" | "expense" | "other_financial" | "receivable" | "payable" | "other" | null | undefined;
21630
+ type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
20715
21631
  }>;
20716
21632
  createBankAccount(bankAccount: {
20717
21633
  code: string;
@@ -20732,6 +21648,7 @@ export declare class API {
20732
21648
  bank_name?: string | null | undefined;
20733
21649
  journal_id?: string | null | undefined;
20734
21650
  ledger_account?: string | null | undefined;
21651
+ unallocated_account?: string | null | undefined;
20735
21652
  }>;
20736
21653
  getJournalEntry(journalEntryId: string, params?: {
20737
21654
  folder_id?: string | null | undefined;
@@ -20744,6 +21661,12 @@ export declare class API {
20744
21661
  date: string | null;
20745
21662
  posted: boolean | null;
20746
21663
  id: string;
21664
+ due_dates: {
21665
+ due_date: string;
21666
+ payment_method?: string | null | undefined;
21667
+ debit: number | null;
21668
+ credit: number | null;
21669
+ }[] | null;
20747
21670
  items: {
20748
21671
  account_number: string;
20749
21672
  partner_id?: string | null | undefined;
@@ -20765,6 +21688,38 @@ export declare class API {
20765
21688
  }[] | null;
20766
21689
  }[] | null;
20767
21690
  }>;
21691
+ getPaymentMethods(params?: {
21692
+ page?: number | undefined;
21693
+ size?: number | undefined;
21694
+ folder_id?: string | null | undefined;
21695
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21696
+ items: {
21697
+ id: string;
21698
+ name?: string | null | undefined;
21699
+ }[];
21700
+ total: number;
21701
+ page: number;
21702
+ size: number;
21703
+ }>;
21704
+ createInvoicePayment(body: {
21705
+ date: string;
21706
+ payment_method_id: string;
21707
+ currency: string;
21708
+ currency_exchange_rate: number | null;
21709
+ reference?: string | null | undefined;
21710
+ number?: string | null | undefined;
21711
+ items: {
21712
+ invoice_id: string;
21713
+ amount: number;
21714
+ }[];
21715
+ }, params?: {
21716
+ folder_id?: string | null | undefined;
21717
+ } | undefined): import("../types/api").RequestData<{
21718
+ headers: {
21719
+ [name: string]: unknown;
21720
+ };
21721
+ content?: undefined;
21722
+ }>;
20768
21723
  }>;
20769
21724
  invoicing: import("../types/api").ApiFor<{
20770
21725
  getInvoices(params?: {
@@ -20835,6 +21790,7 @@ export declare class API {
20835
21790
  } | null | undefined;
20836
21791
  last_updated_on?: string | null | undefined;
20837
21792
  outstanding_amount?: number | null | undefined;
21793
+ last_payment_date?: string | null | undefined;
20838
21794
  accounting_date?: string | null | undefined;
20839
21795
  payment_method_id?: string | null | undefined;
20840
21796
  currency_exchange_rate: number | null;
@@ -20902,6 +21858,7 @@ export declare class API {
20902
21858
  } | null | undefined;
20903
21859
  last_updated_on?: string | null | undefined;
20904
21860
  outstanding_amount?: number | null | undefined;
21861
+ last_payment_date?: string | null | undefined;
20905
21862
  accounting_date?: string | null | undefined;
20906
21863
  payment_method_id?: string | null | undefined;
20907
21864
  currency_exchange_rate: number | null;
@@ -21022,6 +21979,7 @@ export declare class API {
21022
21979
  } | null | undefined;
21023
21980
  last_updated_on?: string | null | undefined;
21024
21981
  outstanding_amount?: number | null | undefined;
21982
+ last_payment_date?: string | null | undefined;
21025
21983
  accounting_date?: string | null | undefined;
21026
21984
  payment_method_id?: string | null | undefined;
21027
21985
  currency_exchange_rate: number | null;
@@ -21349,6 +22307,125 @@ export declare class API {
21349
22307
  };
21350
22308
  name: string;
21351
22309
  }[]>;
22310
+ getBankAccounts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
22311
+ items: {
22312
+ id: string;
22313
+ source_ref: {
22314
+ id?: string | null | undefined;
22315
+ model?: string | null | undefined;
22316
+ };
22317
+ name: string;
22318
+ iban?: string | null | undefined;
22319
+ currency?: string | null | undefined;
22320
+ balance?: number | null | undefined;
22321
+ }[];
22322
+ total: number;
22323
+ page: number;
22324
+ size: number;
22325
+ }>;
22326
+ getBankTransactions(params: {
22327
+ date_from?: string | null | undefined;
22328
+ date_to?: string | null | undefined;
22329
+ bank_account_id: string;
22330
+ status?: "draft" | "done" | null | undefined;
22331
+ }, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
22332
+ items: {
22333
+ id: string;
22334
+ source_ref: {
22335
+ id?: string | null | undefined;
22336
+ model?: string | null | undefined;
22337
+ };
22338
+ status: "draft" | "done";
22339
+ bank_account_id: string;
22340
+ amount: number;
22341
+ date: string;
22342
+ description?: string | null | undefined;
22343
+ currency: string;
22344
+ currency_exchange_rate: number | null;
22345
+ accounting_code?: string | null | undefined;
22346
+ linked_documents: {
22347
+ id: string;
22348
+ source_ref: {
22349
+ id?: string | null | undefined;
22350
+ model?: string | null | undefined;
22351
+ };
22352
+ amount: number;
22353
+ type: "invoice" | "other";
22354
+ }[] | null;
22355
+ }[];
22356
+ total: number;
22357
+ page: number;
22358
+ size: number;
22359
+ }>;
22360
+ uploadDocument(document: {
22361
+ base64_string: string;
22362
+ document_type: "customer_document" | "supplier_document" | "employee_expense";
22363
+ }, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
22364
+ id: string;
22365
+ source_ref: {
22366
+ id?: string | null | undefined;
22367
+ model?: string | null | undefined;
22368
+ };
22369
+ currency?: string | null | undefined;
22370
+ invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
22371
+ status?: "draft" | "posted" | "cancelled" | "paid" | null | undefined;
22372
+ invoice_date?: string | null | undefined;
22373
+ tax_amount?: number | null | undefined;
22374
+ untaxed_amount?: number | null | undefined;
22375
+ total?: number | null | undefined;
22376
+ lines: {
22377
+ description?: string | null | undefined;
22378
+ unit_price: number;
22379
+ quantity: number;
22380
+ discount_amount: number;
22381
+ tax_amount: number;
22382
+ untaxed_amount: number;
22383
+ total: number;
22384
+ tax_rate?: number | null | undefined;
22385
+ account_number?: string | null | undefined;
22386
+ tax_id?: string | null | undefined;
22387
+ tax_exemption_reason?: string | null | undefined;
22388
+ unit_of_measure?: string | null | undefined;
22389
+ product_id?: string | null | undefined;
22390
+ product_code?: string | null | undefined;
22391
+ product_name?: string | null | undefined;
22392
+ }[] | null;
22393
+ partner_id?: string | null | undefined;
22394
+ invoice_number?: string | null | undefined;
22395
+ due_date?: string | null | undefined;
22396
+ reference?: string | null | undefined;
22397
+ payment_communication?: string | null | undefined;
22398
+ customer_memo?: string | null | undefined;
22399
+ journal_ref?: {
22400
+ id?: string | null | undefined;
22401
+ model?: string | null | undefined;
22402
+ name?: string | null | undefined;
22403
+ } | null | undefined;
22404
+ italian_specificities?: {
22405
+ stamp_duty_amount?: number | null | undefined;
22406
+ withholding_tax?: {
22407
+ rate: number;
22408
+ amount: number;
22409
+ reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | null | undefined;
22410
+ 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" | null | undefined;
22411
+ } | null | undefined;
22412
+ welfare_fund?: {
22413
+ rate: number;
22414
+ amount: number;
22415
+ type?: "TC01" | "TC02" | "TC03" | "TC04" | "TC05" | "TC06" | "TC07" | "TC08" | "TC09" | "TC10" | "TC11" | "TC12" | "TC13" | "TC14" | "TC15" | "TC16" | "TC17" | "TC18" | "TC19" | "TC20" | "TC21" | "TC22" | null | undefined;
22416
+ } | null | undefined;
22417
+ payment_reporting?: {
22418
+ method?: "MP01" | "MP02" | "MP03" | "MP04" | "MP05" | "MP06" | "MP07" | "MP08" | "MP09" | "MP10" | "MP11" | "MP12" | "MP13" | "MP14" | "MP15" | "MP16" | "MP17" | "MP18" | "MP19" | "MP20" | "MP21" | "MP22" | "MP23" | null | undefined;
22419
+ conditions?: "TP01" | "TP02" | "TP03" | null | undefined;
22420
+ } | null | undefined;
22421
+ } | null | undefined;
22422
+ last_updated_on?: string | null | undefined;
22423
+ outstanding_amount?: number | null | undefined;
22424
+ last_payment_date?: string | null | undefined;
22425
+ accounting_date?: string | null | undefined;
22426
+ payment_method_id?: string | null | undefined;
22427
+ currency_exchange_rate: number | null;
22428
+ }>;
21352
22429
  }>;
21353
22430
  ecommerce: import("../types/api").ApiFor<{
21354
22431
  getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
@@ -21380,7 +22457,10 @@ export declare class API {
21380
22457
  }[] | null;
21381
22458
  created_on?: string | null | undefined;
21382
22459
  }[]>;
21383
- getProducts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
22460
+ getProducts(params?: {
22461
+ updated_after?: string | null | undefined;
22462
+ sku?: string | null | undefined;
22463
+ } | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
21384
22464
  id: string;
21385
22465
  source_ref: {
21386
22466
  id?: string | null | undefined;
@@ -21394,6 +22474,7 @@ export declare class API {
21394
22474
  name: string;
21395
22475
  }[] | null;
21396
22476
  created_on?: string | null | undefined;
22477
+ last_updated_on?: string | null | undefined;
21397
22478
  variants: {
21398
22479
  id: string;
21399
22480
  source_ref: {
@@ -21435,6 +22516,7 @@ export declare class API {
21435
22516
  }[] | null;
21436
22517
  }[] | null;
21437
22518
  status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
22519
+ sku?: string | null | undefined;
21438
22520
  common_attributes: {
21439
22521
  name: string;
21440
22522
  values: string[];
@@ -21492,6 +22574,7 @@ export declare class API {
21492
22574
  name: string;
21493
22575
  }[] | null;
21494
22576
  created_on?: string | null | undefined;
22577
+ last_updated_on?: string | null | undefined;
21495
22578
  variants: {
21496
22579
  id: string;
21497
22580
  source_ref: {
@@ -21533,6 +22616,7 @@ export declare class API {
21533
22616
  }[] | null;
21534
22617
  }[] | null;
21535
22618
  status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
22619
+ sku?: string | null | undefined;
21536
22620
  common_attributes: {
21537
22621
  name: string;
21538
22622
  values: string[];
@@ -21722,6 +22806,7 @@ export declare class API {
21722
22806
  amount: number;
21723
22807
  }[] | null;
21724
22808
  gift_card: boolean | null;
22809
+ is_gift: boolean | null;
21725
22810
  }[];
21726
22811
  other_fees: {
21727
22812
  id: string;
@@ -21999,6 +23084,7 @@ export declare class API {
21999
23084
  amount: number;
22000
23085
  }[] | null;
22001
23086
  gift_card: boolean | null;
23087
+ is_gift: boolean | null;
22002
23088
  }[];
22003
23089
  other_fees: {
22004
23090
  id: string;
@@ -22237,6 +23323,7 @@ export declare class API {
22237
23323
  amount: number;
22238
23324
  }[] | null;
22239
23325
  gift_card: boolean | null;
23326
+ is_gift: boolean | null;
22240
23327
  }[];
22241
23328
  other_fees: {
22242
23329
  id: string;
@@ -22495,6 +23582,11 @@ export declare class API {
22495
23582
  description?: string | null | undefined;
22496
23583
  display_order: number;
22497
23584
  challenge_question?: string | null | undefined;
23585
+ conditions?: {
23586
+ [key: string]: {
23587
+ [key: string]: unknown;
23588
+ };
23589
+ } | null | undefined;
22498
23590
  values: {
22499
23591
  source_id?: string | null | undefined;
22500
23592
  target_id?: string | null | undefined;
@@ -22505,6 +23597,9 @@ export declare class API {
22505
23597
  link_metadata?: {
22506
23598
  [key: string]: unknown;
22507
23599
  } | null | undefined;
23600
+ link_presync?: {
23601
+ [key: string]: unknown;
23602
+ } | null | undefined;
22508
23603
  enabled_flows?: {
22509
23604
  name: string;
22510
23605
  description?: string | null | undefined;
@@ -22664,6 +23759,7 @@ export declare class API {
22664
23759
  optional: boolean;
22665
23760
  }[] | null;
22666
23761
  supported_countries?: string[] | null | undefined;
23762
+ local_agent: boolean;
22667
23763
  }[]>;
22668
23764
  getIntegrationLogo: (integrationId: number, imageType: "icon" | "logo") => Promise<any>;
22669
23765
  };