@chift/chift-nodejs 1.0.24 → 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.
- package/dist/src/modules/accounting.d.ts +3 -5
- package/dist/src/modules/accounting.js +26 -21
- package/dist/src/modules/api.d.ts +1689 -593
- package/dist/src/modules/consumer.d.ts +320 -101
- package/dist/src/modules/consumers.d.ts +1688 -593
- package/dist/src/modules/integrations.d.ts +1 -0
- package/dist/src/modules/internalApi.js +3 -0
- package/dist/src/modules/invoicing.d.ts +5 -0
- package/dist/src/modules/invoicing.js +24 -0
- package/dist/src/modules/pos.d.ts +1 -0
- package/dist/src/modules/pos.js +8 -0
- package/dist/src/modules/sync.d.ts +1361 -485
- package/dist/src/types/api.d.ts +1 -0
- package/dist/src/types/public-api/schema.d.ts +3111 -869
- package/dist/test/modules/accounting.test.js +1 -29
- package/package.json +1 -2
- package/src/types/public-api/schema.d.ts +3111 -869
|
@@ -124,7 +124,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
124
124
|
}[];
|
|
125
125
|
items: {
|
|
126
126
|
id: string;
|
|
127
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
127
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
128
128
|
menu_id?: string | null | undefined;
|
|
129
129
|
quantity: number;
|
|
130
130
|
unit_price: number;
|
|
@@ -202,7 +202,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
202
202
|
}[];
|
|
203
203
|
items: {
|
|
204
204
|
id: string;
|
|
205
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
205
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
206
206
|
menu_id?: string | null | undefined;
|
|
207
207
|
quantity: number;
|
|
208
208
|
unit_price: number;
|
|
@@ -329,6 +329,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
329
329
|
payments: {
|
|
330
330
|
payment_method_id?: string | null | undefined;
|
|
331
331
|
payment_method_name?: string | null | undefined;
|
|
332
|
+
tip: number | null;
|
|
332
333
|
total: number;
|
|
333
334
|
}[] | null;
|
|
334
335
|
taxes: {
|
|
@@ -389,7 +390,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
389
390
|
}[];
|
|
390
391
|
items: {
|
|
391
392
|
id: string;
|
|
392
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
393
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
393
394
|
menu_id?: string | null | undefined;
|
|
394
395
|
quantity: number;
|
|
395
396
|
unit_price: number;
|
|
@@ -415,6 +416,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
415
416
|
ledger_account_code?: string | null | undefined;
|
|
416
417
|
posting_account_code?: string | null | undefined;
|
|
417
418
|
}[]>;
|
|
419
|
+
getObjectives(params: {
|
|
420
|
+
page?: number | undefined;
|
|
421
|
+
size?: number | undefined;
|
|
422
|
+
date_from: string;
|
|
423
|
+
date_to: string;
|
|
424
|
+
location_id?: string | null | undefined;
|
|
425
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
426
|
+
items: {
|
|
427
|
+
total: number;
|
|
428
|
+
tax_amount: number;
|
|
429
|
+
date: string;
|
|
430
|
+
}[];
|
|
431
|
+
total: number;
|
|
432
|
+
page: number;
|
|
433
|
+
size: number;
|
|
434
|
+
}>;
|
|
418
435
|
}>;
|
|
419
436
|
pms: import("../types/api").ApiFor<{
|
|
420
437
|
getLocations(rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
@@ -471,7 +488,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
471
488
|
id?: string | null | undefined;
|
|
472
489
|
model?: string | null | undefined;
|
|
473
490
|
};
|
|
474
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
491
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
475
492
|
menu_id?: string | null | undefined;
|
|
476
493
|
quantity: number;
|
|
477
494
|
unit_price: number;
|
|
@@ -563,6 +580,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
563
580
|
payments: {
|
|
564
581
|
payment_method_id?: string | null | undefined;
|
|
565
582
|
payment_method_name?: string | null | undefined;
|
|
583
|
+
tip: number | null;
|
|
566
584
|
total: number;
|
|
567
585
|
}[] | null;
|
|
568
586
|
taxes: {
|
|
@@ -595,6 +613,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
595
613
|
model?: string | null | undefined;
|
|
596
614
|
};
|
|
597
615
|
} | null | undefined;
|
|
616
|
+
description?: string | null | undefined;
|
|
598
617
|
}[]>;
|
|
599
618
|
getAccountingCategories(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
600
619
|
id: string;
|
|
@@ -671,7 +690,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
671
690
|
id?: string | null | undefined;
|
|
672
691
|
model?: string | null | undefined;
|
|
673
692
|
};
|
|
674
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
693
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
675
694
|
menu_id?: string | null | undefined;
|
|
676
695
|
quantity: number;
|
|
677
696
|
unit_price: number;
|
|
@@ -707,6 +726,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
707
726
|
model?: string | null | undefined;
|
|
708
727
|
};
|
|
709
728
|
} | null | undefined;
|
|
729
|
+
description?: string | null | undefined;
|
|
710
730
|
}[];
|
|
711
731
|
service_id?: string | null | undefined;
|
|
712
732
|
reservation?: {
|
|
@@ -772,7 +792,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
772
792
|
id?: string | null | undefined;
|
|
773
793
|
model?: string | null | undefined;
|
|
774
794
|
};
|
|
775
|
-
|
|
795
|
+
amount: number;
|
|
776
796
|
fee: number;
|
|
777
797
|
currency: string;
|
|
778
798
|
exchange_rate: number;
|
|
@@ -1285,7 +1305,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1285
1305
|
customer_memo?: string | null | undefined;
|
|
1286
1306
|
invoice_date: string;
|
|
1287
1307
|
due_date: string;
|
|
1288
|
-
partner_id
|
|
1308
|
+
partner_id?: string | null | undefined;
|
|
1289
1309
|
journal_id?: string | null | undefined;
|
|
1290
1310
|
status: "draft" | "posted" | null;
|
|
1291
1311
|
pdf?: string | null | undefined;
|
|
@@ -1397,6 +1417,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1397
1417
|
country?: string | null | undefined;
|
|
1398
1418
|
}[] | null;
|
|
1399
1419
|
} | null | undefined;
|
|
1420
|
+
due_dates: {
|
|
1421
|
+
due_date: string;
|
|
1422
|
+
payment_method?: string | null | undefined;
|
|
1423
|
+
amount: number;
|
|
1424
|
+
}[] | null;
|
|
1400
1425
|
lines: {
|
|
1401
1426
|
line_number: number | null;
|
|
1402
1427
|
unit_price: number;
|
|
@@ -1424,7 +1449,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1424
1449
|
customer_memo?: string | null | undefined;
|
|
1425
1450
|
invoice_date: string;
|
|
1426
1451
|
due_date: string;
|
|
1427
|
-
partner_id
|
|
1452
|
+
partner_id?: string | null | undefined;
|
|
1428
1453
|
journal_id?: string | null | undefined;
|
|
1429
1454
|
status: "draft" | "posted" | null;
|
|
1430
1455
|
pdf?: string | null | undefined;
|
|
@@ -1542,6 +1567,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1542
1567
|
country?: string | null | undefined;
|
|
1543
1568
|
}[] | null;
|
|
1544
1569
|
} | null | undefined;
|
|
1570
|
+
due_dates: {
|
|
1571
|
+
due_date: string;
|
|
1572
|
+
payment_method?: string | null | undefined;
|
|
1573
|
+
amount: number;
|
|
1574
|
+
}[] | null;
|
|
1545
1575
|
lines: {
|
|
1546
1576
|
line_number: number | null;
|
|
1547
1577
|
unit_price: number;
|
|
@@ -1641,6 +1671,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1641
1671
|
country?: string | null | undefined;
|
|
1642
1672
|
}[] | null;
|
|
1643
1673
|
} | null | undefined;
|
|
1674
|
+
due_dates: {
|
|
1675
|
+
due_date: string;
|
|
1676
|
+
payment_method?: string | null | undefined;
|
|
1677
|
+
amount: number;
|
|
1678
|
+
}[] | null;
|
|
1644
1679
|
lines: {
|
|
1645
1680
|
line_number: number | null;
|
|
1646
1681
|
unit_price: number;
|
|
@@ -1729,6 +1764,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1729
1764
|
country?: string | null | undefined;
|
|
1730
1765
|
}[] | null;
|
|
1731
1766
|
} | null | undefined;
|
|
1767
|
+
due_dates: {
|
|
1768
|
+
due_date: string;
|
|
1769
|
+
payment_method?: string | null | undefined;
|
|
1770
|
+
amount: number;
|
|
1771
|
+
}[] | null;
|
|
1732
1772
|
lines: {
|
|
1733
1773
|
line_number: number | null;
|
|
1734
1774
|
unit_price: number;
|
|
@@ -1817,6 +1857,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1817
1857
|
country?: string | null | undefined;
|
|
1818
1858
|
}[] | null;
|
|
1819
1859
|
} | null | undefined;
|
|
1860
|
+
due_dates: {
|
|
1861
|
+
due_date: string;
|
|
1862
|
+
payment_method?: string | null | undefined;
|
|
1863
|
+
amount: number;
|
|
1864
|
+
}[] | null;
|
|
1820
1865
|
lines: {
|
|
1821
1866
|
line_number: number | null;
|
|
1822
1867
|
unit_price: number;
|
|
@@ -1916,6 +1961,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1916
1961
|
country?: string | null | undefined;
|
|
1917
1962
|
}[] | null;
|
|
1918
1963
|
} | null | undefined;
|
|
1964
|
+
due_dates: {
|
|
1965
|
+
due_date: string;
|
|
1966
|
+
payment_method?: string | null | undefined;
|
|
1967
|
+
amount: number;
|
|
1968
|
+
}[] | null;
|
|
1919
1969
|
lines: {
|
|
1920
1970
|
line_number: number | null;
|
|
1921
1971
|
unit_price: number;
|
|
@@ -2074,6 +2124,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2074
2124
|
date: string | null;
|
|
2075
2125
|
posted: boolean | null;
|
|
2076
2126
|
id: string;
|
|
2127
|
+
due_dates: {
|
|
2128
|
+
due_date: string;
|
|
2129
|
+
payment_method?: string | null | undefined;
|
|
2130
|
+
debit: number | null;
|
|
2131
|
+
credit: number | null;
|
|
2132
|
+
}[] | null;
|
|
2077
2133
|
items: {
|
|
2078
2134
|
account_number: string;
|
|
2079
2135
|
partner_id?: string | null | undefined;
|
|
@@ -2107,6 +2163,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2107
2163
|
date: string | null;
|
|
2108
2164
|
posted: boolean | null;
|
|
2109
2165
|
id: string;
|
|
2166
|
+
due_dates: {
|
|
2167
|
+
due_date: string;
|
|
2168
|
+
payment_method?: string | null | undefined;
|
|
2169
|
+
debit: number | null;
|
|
2170
|
+
credit: number | null;
|
|
2171
|
+
}[] | null;
|
|
2110
2172
|
items: {
|
|
2111
2173
|
account_number: string;
|
|
2112
2174
|
partner_id?: string | null | undefined;
|
|
@@ -2154,6 +2216,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2154
2216
|
name: string;
|
|
2155
2217
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
2156
2218
|
counterpart_account?: string | null | undefined;
|
|
2219
|
+
unallocated_account?: string | null | undefined;
|
|
2157
2220
|
next_document_numbers: {
|
|
2158
2221
|
bookyear_name?: string | null | undefined;
|
|
2159
2222
|
next_document_number?: string | null | undefined;
|
|
@@ -2162,6 +2225,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2162
2225
|
}[] | null;
|
|
2163
2226
|
iban?: string | null | undefined;
|
|
2164
2227
|
currency?: string | null | undefined;
|
|
2228
|
+
other_currencies_allowed: boolean | null;
|
|
2229
|
+
blocked: boolean | null;
|
|
2165
2230
|
}[]>;
|
|
2166
2231
|
createJournal(journal: {
|
|
2167
2232
|
code: string;
|
|
@@ -2176,6 +2241,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2176
2241
|
name: string;
|
|
2177
2242
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
2178
2243
|
counterpart_account?: string | null | undefined;
|
|
2244
|
+
unallocated_account?: string | null | undefined;
|
|
2179
2245
|
next_document_numbers: {
|
|
2180
2246
|
bookyear_name?: string | null | undefined;
|
|
2181
2247
|
next_document_number?: string | null | undefined;
|
|
@@ -2184,6 +2250,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2184
2250
|
}[] | null;
|
|
2185
2251
|
iban?: string | null | undefined;
|
|
2186
2252
|
currency?: string | null | undefined;
|
|
2253
|
+
other_currencies_allowed: boolean | null;
|
|
2254
|
+
blocked: boolean | null;
|
|
2187
2255
|
}>;
|
|
2188
2256
|
getVatCodes(params?: {
|
|
2189
2257
|
folder_id?: string | null | undefined;
|
|
@@ -2197,6 +2265,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2197
2265
|
deductible_account?: string | null | undefined;
|
|
2198
2266
|
payable_account?: string | null | undefined;
|
|
2199
2267
|
reversed: boolean | null;
|
|
2268
|
+
country?: string | null | undefined;
|
|
2200
2269
|
}[]>;
|
|
2201
2270
|
getMiscOperations(params?: {
|
|
2202
2271
|
date_from?: string | null | undefined;
|
|
@@ -2303,7 +2372,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2303
2372
|
number: string;
|
|
2304
2373
|
name: string;
|
|
2305
2374
|
active: boolean | null;
|
|
2306
|
-
type?: "vat" | "
|
|
2375
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
2307
2376
|
}[]>;
|
|
2308
2377
|
getBalanceOfAccounts(filter: {
|
|
2309
2378
|
accounts: string[];
|
|
@@ -2367,41 +2436,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2367
2436
|
reference?: string | null | undefined;
|
|
2368
2437
|
} | null | undefined;
|
|
2369
2438
|
}[]>;
|
|
2370
|
-
createFinancialEntryOld(financial_entry: {
|
|
2371
|
-
date: string;
|
|
2372
|
-
journal_id: string;
|
|
2373
|
-
currency: string;
|
|
2374
|
-
currency_exchange_rate: number | null;
|
|
2375
|
-
reference?: string | null | undefined;
|
|
2376
|
-
number?: string | null | undefined;
|
|
2377
|
-
items: {
|
|
2378
|
-
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2379
|
-
account_number: string;
|
|
2380
|
-
partner_id?: string | null | undefined;
|
|
2381
|
-
amount: number;
|
|
2382
|
-
description?: string | null | undefined;
|
|
2383
|
-
}[];
|
|
2384
|
-
pdf?: string | null | undefined;
|
|
2385
|
-
}, params?: {
|
|
2386
|
-
folder_id?: string | null | undefined;
|
|
2387
|
-
financial_counterpart_account?: string | null | undefined;
|
|
2388
|
-
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2389
|
-
date: string;
|
|
2390
|
-
journal_id: string;
|
|
2391
|
-
currency: string;
|
|
2392
|
-
currency_exchange_rate: number | null;
|
|
2393
|
-
reference?: string | null | undefined;
|
|
2394
|
-
id: string;
|
|
2395
|
-
number: string;
|
|
2396
|
-
items: {
|
|
2397
|
-
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2398
|
-
account_number: string;
|
|
2399
|
-
partner_id?: string | null | undefined;
|
|
2400
|
-
amount: number;
|
|
2401
|
-
description?: string | null | undefined;
|
|
2402
|
-
counterpart_account: string;
|
|
2403
|
-
}[];
|
|
2404
|
-
}>;
|
|
2405
2439
|
createFinancialEntry(financial_entry: {
|
|
2406
2440
|
date: string;
|
|
2407
2441
|
journal_id: string;
|
|
@@ -2435,59 +2469,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2435
2469
|
counterpart_account: string;
|
|
2436
2470
|
}[];
|
|
2437
2471
|
}>;
|
|
2438
|
-
createJournalEntryOld(journal_entry: {
|
|
2439
|
-
reference?: string | null | undefined;
|
|
2440
|
-
due_date?: string | null | undefined;
|
|
2441
|
-
journal_id: string;
|
|
2442
|
-
name: string;
|
|
2443
|
-
date: string;
|
|
2444
|
-
items: {
|
|
2445
|
-
account_number: string;
|
|
2446
|
-
partner_id?: string | null | undefined;
|
|
2447
|
-
description?: string | null | undefined;
|
|
2448
|
-
debit: number;
|
|
2449
|
-
credit: number;
|
|
2450
|
-
currency: string;
|
|
2451
|
-
currency_exchange_rate: number | null;
|
|
2452
|
-
analytic_distribution: {
|
|
2453
|
-
analytic_plan: string;
|
|
2454
|
-
analytic_accounts: {
|
|
2455
|
-
analytic_account: string;
|
|
2456
|
-
percentage: number;
|
|
2457
|
-
}[];
|
|
2458
|
-
}[] | null;
|
|
2459
|
-
}[];
|
|
2460
|
-
pdf?: string | null | undefined;
|
|
2461
|
-
}, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2462
|
-
reference?: string | null | undefined;
|
|
2463
|
-
due_date?: string | null | undefined;
|
|
2464
|
-
journal_id: string;
|
|
2465
|
-
name?: string | null | undefined;
|
|
2466
|
-
journal_name?: string | null | undefined;
|
|
2467
|
-
date: string | null;
|
|
2468
|
-
posted: boolean | null;
|
|
2469
|
-
id: string;
|
|
2470
|
-
items: {
|
|
2471
|
-
account_number: string;
|
|
2472
|
-
partner_id?: string | null | undefined;
|
|
2473
|
-
description?: string | null | undefined;
|
|
2474
|
-
debit: number;
|
|
2475
|
-
credit: number;
|
|
2476
|
-
currency: string;
|
|
2477
|
-
currency_exchange_rate: number | null;
|
|
2478
|
-
id: string;
|
|
2479
|
-
partner_name?: string | null | undefined;
|
|
2480
|
-
account_name: string;
|
|
2481
|
-
matching_numbers: string[] | null;
|
|
2482
|
-
analytic_distribution: {
|
|
2483
|
-
analytic_plan: string;
|
|
2484
|
-
analytic_accounts: {
|
|
2485
|
-
analytic_account: string;
|
|
2486
|
-
percentage: number;
|
|
2487
|
-
}[];
|
|
2488
|
-
}[] | null;
|
|
2489
|
-
}[] | null;
|
|
2490
|
-
}>;
|
|
2491
2472
|
createJournalEntry(journal_entry: {
|
|
2492
2473
|
reference?: string | null | undefined;
|
|
2493
2474
|
due_date?: string | null | undefined;
|
|
@@ -2498,7 +2479,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2498
2479
|
date: string;
|
|
2499
2480
|
items: {
|
|
2500
2481
|
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2501
|
-
account
|
|
2482
|
+
account?: string | null | undefined;
|
|
2502
2483
|
force_general_account?: string | null | undefined;
|
|
2503
2484
|
prioritise_thirdparty_account: boolean | null;
|
|
2504
2485
|
description?: string | null | undefined;
|
|
@@ -2512,7 +2493,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2512
2493
|
}[];
|
|
2513
2494
|
}[] | null;
|
|
2514
2495
|
tax_code?: string | null | undefined;
|
|
2515
|
-
country?: string | null | undefined;
|
|
2516
2496
|
account_info?: {
|
|
2517
2497
|
account_number: string;
|
|
2518
2498
|
account_name: string;
|
|
@@ -2534,6 +2514,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2534
2514
|
date: string | null;
|
|
2535
2515
|
posted: boolean | null;
|
|
2536
2516
|
id: string;
|
|
2517
|
+
due_dates: {
|
|
2518
|
+
due_date: string;
|
|
2519
|
+
payment_method?: string | null | undefined;
|
|
2520
|
+
debit: number | null;
|
|
2521
|
+
credit: number | null;
|
|
2522
|
+
}[] | null;
|
|
2537
2523
|
items: {
|
|
2538
2524
|
account_number: string;
|
|
2539
2525
|
partner_id?: string | null | undefined;
|
|
@@ -2578,12 +2564,65 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2578
2564
|
[key: string]: unknown;
|
|
2579
2565
|
} | null | undefined;
|
|
2580
2566
|
}[]>;
|
|
2567
|
+
createExpense(expense: {
|
|
2568
|
+
employee_id: string;
|
|
2569
|
+
total: number;
|
|
2570
|
+
untaxed_amount: number;
|
|
2571
|
+
tax_amount: number;
|
|
2572
|
+
reference?: string | null | undefined;
|
|
2573
|
+
number?: string | null | undefined;
|
|
2574
|
+
currency: string;
|
|
2575
|
+
currency_exchange_rate: number | null;
|
|
2576
|
+
date: string;
|
|
2577
|
+
pdf?: string | null | undefined;
|
|
2578
|
+
lines: {
|
|
2579
|
+
total: number;
|
|
2580
|
+
untaxed_amount: number;
|
|
2581
|
+
tax_amount: number;
|
|
2582
|
+
description?: string | null | undefined;
|
|
2583
|
+
account_number: string;
|
|
2584
|
+
tax_rate: number;
|
|
2585
|
+
tax_id: string;
|
|
2586
|
+
}[];
|
|
2587
|
+
}, params?: {
|
|
2588
|
+
folder_id?: string | null | undefined;
|
|
2589
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2590
|
+
employee_id: string;
|
|
2591
|
+
total: number;
|
|
2592
|
+
untaxed_amount: number;
|
|
2593
|
+
tax_amount: number;
|
|
2594
|
+
reference?: string | null | undefined;
|
|
2595
|
+
number?: string | null | undefined;
|
|
2596
|
+
currency: string;
|
|
2597
|
+
currency_exchange_rate: number | null;
|
|
2598
|
+
date: string;
|
|
2599
|
+
pdf?: string | null | undefined;
|
|
2600
|
+
lines: {
|
|
2601
|
+
total: number;
|
|
2602
|
+
untaxed_amount: number;
|
|
2603
|
+
tax_amount: number;
|
|
2604
|
+
description?: string | null | undefined;
|
|
2605
|
+
account_number: string;
|
|
2606
|
+
tax_rate: number;
|
|
2607
|
+
tax_id: string;
|
|
2608
|
+
}[];
|
|
2609
|
+
id: string;
|
|
2610
|
+
}>;
|
|
2581
2611
|
getFolders(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2582
2612
|
id: string;
|
|
2583
2613
|
name: string;
|
|
2584
2614
|
selected: boolean | null;
|
|
2585
2615
|
vat?: string | null | undefined;
|
|
2586
2616
|
company_number?: string | null | undefined;
|
|
2617
|
+
main_currency?: string | null | undefined;
|
|
2618
|
+
addresses?: {
|
|
2619
|
+
street?: string | null | undefined;
|
|
2620
|
+
number?: string | null | undefined;
|
|
2621
|
+
box?: string | null | undefined;
|
|
2622
|
+
postal_code?: string | null | undefined;
|
|
2623
|
+
city?: string | null | undefined;
|
|
2624
|
+
country?: string | null | undefined;
|
|
2625
|
+
}[] | null | undefined;
|
|
2587
2626
|
}[]>;
|
|
2588
2627
|
getBookyears(params?: {
|
|
2589
2628
|
folder_id?: string | null | undefined;
|
|
@@ -2596,13 +2635,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2596
2635
|
createLedgerAccount(account: {
|
|
2597
2636
|
name: string;
|
|
2598
2637
|
number: string;
|
|
2638
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
2599
2639
|
}, params?: {
|
|
2600
2640
|
folder_id?: string | null | undefined;
|
|
2601
2641
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2602
2642
|
number: string;
|
|
2603
2643
|
name: string;
|
|
2604
2644
|
active: boolean | null;
|
|
2605
|
-
type?: "vat" | "
|
|
2645
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
2606
2646
|
}>;
|
|
2607
2647
|
createBankAccount(bankAccount: {
|
|
2608
2648
|
code: string;
|
|
@@ -2623,6 +2663,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2623
2663
|
bank_name?: string | null | undefined;
|
|
2624
2664
|
journal_id?: string | null | undefined;
|
|
2625
2665
|
ledger_account?: string | null | undefined;
|
|
2666
|
+
unallocated_account?: string | null | undefined;
|
|
2626
2667
|
}>;
|
|
2627
2668
|
getJournalEntry(journalEntryId: string, params?: {
|
|
2628
2669
|
folder_id?: string | null | undefined;
|
|
@@ -2635,6 +2676,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2635
2676
|
date: string | null;
|
|
2636
2677
|
posted: boolean | null;
|
|
2637
2678
|
id: string;
|
|
2679
|
+
due_dates: {
|
|
2680
|
+
due_date: string;
|
|
2681
|
+
payment_method?: string | null | undefined;
|
|
2682
|
+
debit: number | null;
|
|
2683
|
+
credit: number | null;
|
|
2684
|
+
}[] | null;
|
|
2638
2685
|
items: {
|
|
2639
2686
|
account_number: string;
|
|
2640
2687
|
partner_id?: string | null | undefined;
|
|
@@ -2656,6 +2703,38 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2656
2703
|
}[] | null;
|
|
2657
2704
|
}[] | null;
|
|
2658
2705
|
}>;
|
|
2706
|
+
getPaymentMethods(params?: {
|
|
2707
|
+
page?: number | undefined;
|
|
2708
|
+
size?: number | undefined;
|
|
2709
|
+
folder_id?: string | null | undefined;
|
|
2710
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2711
|
+
items: {
|
|
2712
|
+
id: string;
|
|
2713
|
+
name?: string | null | undefined;
|
|
2714
|
+
}[];
|
|
2715
|
+
total: number;
|
|
2716
|
+
page: number;
|
|
2717
|
+
size: number;
|
|
2718
|
+
}>;
|
|
2719
|
+
createInvoicePayment(body: {
|
|
2720
|
+
date: string;
|
|
2721
|
+
payment_method_id: string;
|
|
2722
|
+
currency: string;
|
|
2723
|
+
currency_exchange_rate: number | null;
|
|
2724
|
+
reference?: string | null | undefined;
|
|
2725
|
+
number?: string | null | undefined;
|
|
2726
|
+
items: {
|
|
2727
|
+
invoice_id: string;
|
|
2728
|
+
amount: number;
|
|
2729
|
+
}[];
|
|
2730
|
+
}, params?: {
|
|
2731
|
+
folder_id?: string | null | undefined;
|
|
2732
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2733
|
+
headers: {
|
|
2734
|
+
[name: string]: unknown;
|
|
2735
|
+
};
|
|
2736
|
+
content?: undefined;
|
|
2737
|
+
}>;
|
|
2659
2738
|
}>;
|
|
2660
2739
|
invoicing: import("../types/api").ApiFor<{
|
|
2661
2740
|
getInvoices(params?: {
|
|
@@ -2726,6 +2805,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2726
2805
|
} | null | undefined;
|
|
2727
2806
|
last_updated_on?: string | null | undefined;
|
|
2728
2807
|
outstanding_amount?: number | null | undefined;
|
|
2808
|
+
last_payment_date?: string | null | undefined;
|
|
2729
2809
|
accounting_date?: string | null | undefined;
|
|
2730
2810
|
payment_method_id?: string | null | undefined;
|
|
2731
2811
|
currency_exchange_rate: number | null;
|
|
@@ -2793,6 +2873,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2793
2873
|
} | null | undefined;
|
|
2794
2874
|
last_updated_on?: string | null | undefined;
|
|
2795
2875
|
outstanding_amount?: number | null | undefined;
|
|
2876
|
+
last_payment_date?: string | null | undefined;
|
|
2796
2877
|
accounting_date?: string | null | undefined;
|
|
2797
2878
|
payment_method_id?: string | null | undefined;
|
|
2798
2879
|
currency_exchange_rate: number | null;
|
|
@@ -2913,6 +2994,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2913
2994
|
} | null | undefined;
|
|
2914
2995
|
last_updated_on?: string | null | undefined;
|
|
2915
2996
|
outstanding_amount?: number | null | undefined;
|
|
2997
|
+
last_payment_date?: string | null | undefined;
|
|
2916
2998
|
accounting_date?: string | null | undefined;
|
|
2917
2999
|
payment_method_id?: string | null | undefined;
|
|
2918
3000
|
currency_exchange_rate: number | null;
|
|
@@ -3240,59 +3322,182 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3240
3322
|
};
|
|
3241
3323
|
name: string;
|
|
3242
3324
|
}[]>;
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3246
|
-
id: string;
|
|
3247
|
-
source_ref: {
|
|
3248
|
-
id?: string | null | undefined;
|
|
3249
|
-
model?: string | null | undefined;
|
|
3250
|
-
};
|
|
3251
|
-
first_name?: string | null | undefined;
|
|
3252
|
-
last_name?: string | null | undefined;
|
|
3253
|
-
phone?: string | null | undefined;
|
|
3254
|
-
email?: string | null | undefined;
|
|
3255
|
-
language?: string | null | undefined;
|
|
3256
|
-
internal_notes?: string | null | undefined;
|
|
3257
|
-
currency?: string | null | undefined;
|
|
3258
|
-
addresses: {
|
|
3259
|
-
address_type: "main" | "delivery" | "invoice";
|
|
3260
|
-
company_name?: string | null | undefined;
|
|
3261
|
-
first_name?: string | null | undefined;
|
|
3262
|
-
last_name?: string | null | undefined;
|
|
3263
|
-
street?: string | null | undefined;
|
|
3264
|
-
number?: string | null | undefined;
|
|
3265
|
-
box?: string | null | undefined;
|
|
3266
|
-
city?: string | null | undefined;
|
|
3267
|
-
postal_code?: string | null | undefined;
|
|
3268
|
-
country?: string | null | undefined;
|
|
3269
|
-
phone?: string | null | undefined;
|
|
3270
|
-
email?: string | null | undefined;
|
|
3271
|
-
}[] | null;
|
|
3272
|
-
created_on?: string | null | undefined;
|
|
3273
|
-
}[]>;
|
|
3274
|
-
getProducts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3275
|
-
id: string;
|
|
3276
|
-
source_ref: {
|
|
3277
|
-
id?: string | null | undefined;
|
|
3278
|
-
model?: string | null | undefined;
|
|
3279
|
-
};
|
|
3280
|
-
name: string;
|
|
3281
|
-
description?: string | null | undefined;
|
|
3282
|
-
description_html?: string | null | undefined;
|
|
3283
|
-
categories: {
|
|
3325
|
+
getBankAccounts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3326
|
+
items: {
|
|
3284
3327
|
id: string;
|
|
3328
|
+
source_ref: {
|
|
3329
|
+
id?: string | null | undefined;
|
|
3330
|
+
model?: string | null | undefined;
|
|
3331
|
+
};
|
|
3285
3332
|
name: string;
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3333
|
+
iban?: string | null | undefined;
|
|
3334
|
+
currency?: string | null | undefined;
|
|
3335
|
+
balance?: number | null | undefined;
|
|
3336
|
+
}[];
|
|
3337
|
+
total: number;
|
|
3338
|
+
page: number;
|
|
3339
|
+
size: number;
|
|
3340
|
+
}>;
|
|
3341
|
+
getBankTransactions(params: {
|
|
3342
|
+
date_from?: string | null | undefined;
|
|
3343
|
+
date_to?: string | null | undefined;
|
|
3344
|
+
bank_account_id: string;
|
|
3345
|
+
status?: "draft" | "done" | null | undefined;
|
|
3346
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3347
|
+
items: {
|
|
3289
3348
|
id: string;
|
|
3290
3349
|
source_ref: {
|
|
3291
3350
|
id?: string | null | undefined;
|
|
3292
3351
|
model?: string | null | undefined;
|
|
3293
3352
|
};
|
|
3294
|
-
|
|
3295
|
-
|
|
3353
|
+
status: "draft" | "done";
|
|
3354
|
+
bank_account_id: string;
|
|
3355
|
+
amount: number;
|
|
3356
|
+
date: string;
|
|
3357
|
+
description?: string | null | undefined;
|
|
3358
|
+
currency: string;
|
|
3359
|
+
currency_exchange_rate: number | null;
|
|
3360
|
+
accounting_code?: string | null | undefined;
|
|
3361
|
+
linked_documents: {
|
|
3362
|
+
id: string;
|
|
3363
|
+
source_ref: {
|
|
3364
|
+
id?: string | null | undefined;
|
|
3365
|
+
model?: string | null | undefined;
|
|
3366
|
+
};
|
|
3367
|
+
amount: number;
|
|
3368
|
+
type: "invoice" | "other";
|
|
3369
|
+
}[] | null;
|
|
3370
|
+
}[];
|
|
3371
|
+
total: number;
|
|
3372
|
+
page: number;
|
|
3373
|
+
size: number;
|
|
3374
|
+
}>;
|
|
3375
|
+
uploadDocument(document: {
|
|
3376
|
+
base64_string: string;
|
|
3377
|
+
document_type: "customer_document" | "supplier_document" | "employee_expense";
|
|
3378
|
+
}, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
3379
|
+
id: string;
|
|
3380
|
+
source_ref: {
|
|
3381
|
+
id?: string | null | undefined;
|
|
3382
|
+
model?: string | null | undefined;
|
|
3383
|
+
};
|
|
3384
|
+
currency?: string | null | undefined;
|
|
3385
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
3386
|
+
status?: "draft" | "posted" | "cancelled" | "paid" | null | undefined;
|
|
3387
|
+
invoice_date?: string | null | undefined;
|
|
3388
|
+
tax_amount?: number | null | undefined;
|
|
3389
|
+
untaxed_amount?: number | null | undefined;
|
|
3390
|
+
total?: number | null | undefined;
|
|
3391
|
+
lines: {
|
|
3392
|
+
description?: string | null | undefined;
|
|
3393
|
+
unit_price: number;
|
|
3394
|
+
quantity: number;
|
|
3395
|
+
discount_amount: number;
|
|
3396
|
+
tax_amount: number;
|
|
3397
|
+
untaxed_amount: number;
|
|
3398
|
+
total: number;
|
|
3399
|
+
tax_rate?: number | null | undefined;
|
|
3400
|
+
account_number?: string | null | undefined;
|
|
3401
|
+
tax_id?: string | null | undefined;
|
|
3402
|
+
tax_exemption_reason?: string | null | undefined;
|
|
3403
|
+
unit_of_measure?: string | null | undefined;
|
|
3404
|
+
product_id?: string | null | undefined;
|
|
3405
|
+
product_code?: string | null | undefined;
|
|
3406
|
+
product_name?: string | null | undefined;
|
|
3407
|
+
}[] | null;
|
|
3408
|
+
partner_id?: string | null | undefined;
|
|
3409
|
+
invoice_number?: string | null | undefined;
|
|
3410
|
+
due_date?: string | null | undefined;
|
|
3411
|
+
reference?: string | null | undefined;
|
|
3412
|
+
payment_communication?: string | null | undefined;
|
|
3413
|
+
customer_memo?: string | null | undefined;
|
|
3414
|
+
journal_ref?: {
|
|
3415
|
+
id?: string | null | undefined;
|
|
3416
|
+
model?: string | null | undefined;
|
|
3417
|
+
name?: string | null | undefined;
|
|
3418
|
+
} | null | undefined;
|
|
3419
|
+
italian_specificities?: {
|
|
3420
|
+
stamp_duty_amount?: number | null | undefined;
|
|
3421
|
+
withholding_tax?: {
|
|
3422
|
+
rate: number;
|
|
3423
|
+
amount: number;
|
|
3424
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | null | undefined;
|
|
3425
|
+
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;
|
|
3426
|
+
} | null | undefined;
|
|
3427
|
+
welfare_fund?: {
|
|
3428
|
+
rate: number;
|
|
3429
|
+
amount: number;
|
|
3430
|
+
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;
|
|
3431
|
+
} | null | undefined;
|
|
3432
|
+
payment_reporting?: {
|
|
3433
|
+
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;
|
|
3434
|
+
conditions?: "TP01" | "TP02" | "TP03" | null | undefined;
|
|
3435
|
+
} | null | undefined;
|
|
3436
|
+
} | null | undefined;
|
|
3437
|
+
last_updated_on?: string | null | undefined;
|
|
3438
|
+
outstanding_amount?: number | null | undefined;
|
|
3439
|
+
last_payment_date?: string | null | undefined;
|
|
3440
|
+
accounting_date?: string | null | undefined;
|
|
3441
|
+
payment_method_id?: string | null | undefined;
|
|
3442
|
+
currency_exchange_rate: number | null;
|
|
3443
|
+
}>;
|
|
3444
|
+
}>;
|
|
3445
|
+
ecommerce: import("../types/api").ApiFor<{
|
|
3446
|
+
getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3447
|
+
id: string;
|
|
3448
|
+
source_ref: {
|
|
3449
|
+
id?: string | null | undefined;
|
|
3450
|
+
model?: string | null | undefined;
|
|
3451
|
+
};
|
|
3452
|
+
first_name?: string | null | undefined;
|
|
3453
|
+
last_name?: string | null | undefined;
|
|
3454
|
+
phone?: string | null | undefined;
|
|
3455
|
+
email?: string | null | undefined;
|
|
3456
|
+
language?: string | null | undefined;
|
|
3457
|
+
internal_notes?: string | null | undefined;
|
|
3458
|
+
currency?: string | null | undefined;
|
|
3459
|
+
addresses: {
|
|
3460
|
+
address_type: "main" | "delivery" | "invoice";
|
|
3461
|
+
company_name?: string | null | undefined;
|
|
3462
|
+
first_name?: string | null | undefined;
|
|
3463
|
+
last_name?: string | null | undefined;
|
|
3464
|
+
street?: string | null | undefined;
|
|
3465
|
+
number?: string | null | undefined;
|
|
3466
|
+
box?: string | null | undefined;
|
|
3467
|
+
city?: string | null | undefined;
|
|
3468
|
+
postal_code?: string | null | undefined;
|
|
3469
|
+
country?: string | null | undefined;
|
|
3470
|
+
phone?: string | null | undefined;
|
|
3471
|
+
email?: string | null | undefined;
|
|
3472
|
+
}[] | null;
|
|
3473
|
+
created_on?: string | null | undefined;
|
|
3474
|
+
}[]>;
|
|
3475
|
+
getProducts(params?: {
|
|
3476
|
+
updated_after?: string | null | undefined;
|
|
3477
|
+
sku?: string | null | undefined;
|
|
3478
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3479
|
+
id: string;
|
|
3480
|
+
source_ref: {
|
|
3481
|
+
id?: string | null | undefined;
|
|
3482
|
+
model?: string | null | undefined;
|
|
3483
|
+
};
|
|
3484
|
+
name: string;
|
|
3485
|
+
description?: string | null | undefined;
|
|
3486
|
+
description_html?: string | null | undefined;
|
|
3487
|
+
categories: {
|
|
3488
|
+
id: string;
|
|
3489
|
+
name: string;
|
|
3490
|
+
}[] | null;
|
|
3491
|
+
created_on?: string | null | undefined;
|
|
3492
|
+
last_updated_on?: string | null | undefined;
|
|
3493
|
+
variants: {
|
|
3494
|
+
id: string;
|
|
3495
|
+
source_ref: {
|
|
3496
|
+
id?: string | null | undefined;
|
|
3497
|
+
model?: string | null | undefined;
|
|
3498
|
+
};
|
|
3499
|
+
parent_id: string;
|
|
3500
|
+
name: string;
|
|
3296
3501
|
description?: string | null | undefined;
|
|
3297
3502
|
description_html?: string | null | undefined;
|
|
3298
3503
|
categories: {
|
|
@@ -3326,6 +3531,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3326
3531
|
}[] | null;
|
|
3327
3532
|
}[] | null;
|
|
3328
3533
|
status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
|
|
3534
|
+
sku?: string | null | undefined;
|
|
3329
3535
|
common_attributes: {
|
|
3330
3536
|
name: string;
|
|
3331
3537
|
values: string[];
|
|
@@ -3383,6 +3589,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3383
3589
|
name: string;
|
|
3384
3590
|
}[] | null;
|
|
3385
3591
|
created_on?: string | null | undefined;
|
|
3592
|
+
last_updated_on?: string | null | undefined;
|
|
3386
3593
|
variants: {
|
|
3387
3594
|
id: string;
|
|
3388
3595
|
source_ref: {
|
|
@@ -3424,6 +3631,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3424
3631
|
}[] | null;
|
|
3425
3632
|
}[] | null;
|
|
3426
3633
|
status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
|
|
3634
|
+
sku?: string | null | undefined;
|
|
3427
3635
|
common_attributes: {
|
|
3428
3636
|
name: string;
|
|
3429
3637
|
values: string[];
|
|
@@ -3613,6 +3821,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3613
3821
|
amount: number;
|
|
3614
3822
|
}[] | null;
|
|
3615
3823
|
gift_card: boolean | null;
|
|
3824
|
+
is_gift: boolean | null;
|
|
3616
3825
|
}[];
|
|
3617
3826
|
other_fees: {
|
|
3618
3827
|
id: string;
|
|
@@ -3890,6 +4099,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3890
4099
|
amount: number;
|
|
3891
4100
|
}[] | null;
|
|
3892
4101
|
gift_card: boolean | null;
|
|
4102
|
+
is_gift: boolean | null;
|
|
3893
4103
|
}[];
|
|
3894
4104
|
other_fees: {
|
|
3895
4105
|
id: string;
|
|
@@ -4128,6 +4338,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4128
4338
|
amount: number;
|
|
4129
4339
|
}[] | null;
|
|
4130
4340
|
gift_card: boolean | null;
|
|
4341
|
+
is_gift: boolean | null;
|
|
4131
4342
|
}[];
|
|
4132
4343
|
other_fees: {
|
|
4133
4344
|
id: string;
|
|
@@ -4386,6 +4597,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4386
4597
|
description?: string | null | undefined;
|
|
4387
4598
|
display_order: number;
|
|
4388
4599
|
challenge_question?: string | null | undefined;
|
|
4600
|
+
conditions?: {
|
|
4601
|
+
[key: string]: {
|
|
4602
|
+
[key: string]: unknown;
|
|
4603
|
+
};
|
|
4604
|
+
} | null | undefined;
|
|
4389
4605
|
values: {
|
|
4390
4606
|
source_id?: string | null | undefined;
|
|
4391
4607
|
target_id?: string | null | undefined;
|
|
@@ -4396,6 +4612,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4396
4612
|
link_metadata?: {
|
|
4397
4613
|
[key: string]: unknown;
|
|
4398
4614
|
} | null | undefined;
|
|
4615
|
+
link_presync?: {
|
|
4616
|
+
[key: string]: unknown;
|
|
4617
|
+
} | null | undefined;
|
|
4399
4618
|
enabled_flows?: {
|
|
4400
4619
|
name: string;
|
|
4401
4620
|
description?: string | null | undefined;
|
|
@@ -4648,7 +4867,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4648
4867
|
}[];
|
|
4649
4868
|
items: {
|
|
4650
4869
|
id: string;
|
|
4651
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
4870
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
4652
4871
|
menu_id?: string | null | undefined;
|
|
4653
4872
|
quantity: number;
|
|
4654
4873
|
unit_price: number;
|
|
@@ -4726,7 +4945,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4726
4945
|
}[];
|
|
4727
4946
|
items: {
|
|
4728
4947
|
id: string;
|
|
4729
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
4948
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
4730
4949
|
menu_id?: string | null | undefined;
|
|
4731
4950
|
quantity: number;
|
|
4732
4951
|
unit_price: number;
|
|
@@ -4853,6 +5072,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4853
5072
|
payments: {
|
|
4854
5073
|
payment_method_id?: string | null | undefined;
|
|
4855
5074
|
payment_method_name?: string | null | undefined;
|
|
5075
|
+
tip: number | null;
|
|
4856
5076
|
total: number;
|
|
4857
5077
|
}[] | null;
|
|
4858
5078
|
taxes: {
|
|
@@ -4913,7 +5133,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4913
5133
|
}[];
|
|
4914
5134
|
items: {
|
|
4915
5135
|
id: string;
|
|
4916
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
5136
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
4917
5137
|
menu_id?: string | null | undefined;
|
|
4918
5138
|
quantity: number;
|
|
4919
5139
|
unit_price: number;
|
|
@@ -4939,6 +5159,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4939
5159
|
ledger_account_code?: string | null | undefined;
|
|
4940
5160
|
posting_account_code?: string | null | undefined;
|
|
4941
5161
|
}[]>;
|
|
5162
|
+
getObjectives(params: {
|
|
5163
|
+
page?: number | undefined;
|
|
5164
|
+
size?: number | undefined;
|
|
5165
|
+
date_from: string;
|
|
5166
|
+
date_to: string;
|
|
5167
|
+
location_id?: string | null | undefined;
|
|
5168
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
5169
|
+
items: {
|
|
5170
|
+
total: number;
|
|
5171
|
+
tax_amount: number;
|
|
5172
|
+
date: string;
|
|
5173
|
+
}[];
|
|
5174
|
+
total: number;
|
|
5175
|
+
page: number;
|
|
5176
|
+
size: number;
|
|
5177
|
+
}>;
|
|
4942
5178
|
}>;
|
|
4943
5179
|
pms: import("../types/api").ApiFor<{
|
|
4944
5180
|
getLocations(rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
@@ -4995,7 +5231,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4995
5231
|
id?: string | null | undefined;
|
|
4996
5232
|
model?: string | null | undefined;
|
|
4997
5233
|
};
|
|
4998
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
5234
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
4999
5235
|
menu_id?: string | null | undefined;
|
|
5000
5236
|
quantity: number;
|
|
5001
5237
|
unit_price: number;
|
|
@@ -5087,6 +5323,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5087
5323
|
payments: {
|
|
5088
5324
|
payment_method_id?: string | null | undefined;
|
|
5089
5325
|
payment_method_name?: string | null | undefined;
|
|
5326
|
+
tip: number | null;
|
|
5090
5327
|
total: number;
|
|
5091
5328
|
}[] | null;
|
|
5092
5329
|
taxes: {
|
|
@@ -5119,6 +5356,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5119
5356
|
model?: string | null | undefined;
|
|
5120
5357
|
};
|
|
5121
5358
|
} | null | undefined;
|
|
5359
|
+
description?: string | null | undefined;
|
|
5122
5360
|
}[]>;
|
|
5123
5361
|
getAccountingCategories(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
5124
5362
|
id: string;
|
|
@@ -5195,7 +5433,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5195
5433
|
id?: string | null | undefined;
|
|
5196
5434
|
model?: string | null | undefined;
|
|
5197
5435
|
};
|
|
5198
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
5436
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
5199
5437
|
menu_id?: string | null | undefined;
|
|
5200
5438
|
quantity: number;
|
|
5201
5439
|
unit_price: number;
|
|
@@ -5231,6 +5469,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5231
5469
|
model?: string | null | undefined;
|
|
5232
5470
|
};
|
|
5233
5471
|
} | null | undefined;
|
|
5472
|
+
description?: string | null | undefined;
|
|
5234
5473
|
}[];
|
|
5235
5474
|
service_id?: string | null | undefined;
|
|
5236
5475
|
reservation?: {
|
|
@@ -5296,7 +5535,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5296
5535
|
id?: string | null | undefined;
|
|
5297
5536
|
model?: string | null | undefined;
|
|
5298
5537
|
};
|
|
5299
|
-
|
|
5538
|
+
amount: number;
|
|
5300
5539
|
fee: number;
|
|
5301
5540
|
currency: string;
|
|
5302
5541
|
exchange_rate: number;
|
|
@@ -5809,7 +6048,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5809
6048
|
customer_memo?: string | null | undefined;
|
|
5810
6049
|
invoice_date: string;
|
|
5811
6050
|
due_date: string;
|
|
5812
|
-
partner_id
|
|
6051
|
+
partner_id?: string | null | undefined;
|
|
5813
6052
|
journal_id?: string | null | undefined;
|
|
5814
6053
|
status: "draft" | "posted" | null;
|
|
5815
6054
|
pdf?: string | null | undefined;
|
|
@@ -5921,6 +6160,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5921
6160
|
country?: string | null | undefined;
|
|
5922
6161
|
}[] | null;
|
|
5923
6162
|
} | null | undefined;
|
|
6163
|
+
due_dates: {
|
|
6164
|
+
due_date: string;
|
|
6165
|
+
payment_method?: string | null | undefined;
|
|
6166
|
+
amount: number;
|
|
6167
|
+
}[] | null;
|
|
5924
6168
|
lines: {
|
|
5925
6169
|
line_number: number | null;
|
|
5926
6170
|
unit_price: number;
|
|
@@ -5948,7 +6192,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5948
6192
|
customer_memo?: string | null | undefined;
|
|
5949
6193
|
invoice_date: string;
|
|
5950
6194
|
due_date: string;
|
|
5951
|
-
partner_id
|
|
6195
|
+
partner_id?: string | null | undefined;
|
|
5952
6196
|
journal_id?: string | null | undefined;
|
|
5953
6197
|
status: "draft" | "posted" | null;
|
|
5954
6198
|
pdf?: string | null | undefined;
|
|
@@ -6066,6 +6310,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6066
6310
|
country?: string | null | undefined;
|
|
6067
6311
|
}[] | null;
|
|
6068
6312
|
} | null | undefined;
|
|
6313
|
+
due_dates: {
|
|
6314
|
+
due_date: string;
|
|
6315
|
+
payment_method?: string | null | undefined;
|
|
6316
|
+
amount: number;
|
|
6317
|
+
}[] | null;
|
|
6069
6318
|
lines: {
|
|
6070
6319
|
line_number: number | null;
|
|
6071
6320
|
unit_price: number;
|
|
@@ -6165,6 +6414,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6165
6414
|
country?: string | null | undefined;
|
|
6166
6415
|
}[] | null;
|
|
6167
6416
|
} | null | undefined;
|
|
6417
|
+
due_dates: {
|
|
6418
|
+
due_date: string;
|
|
6419
|
+
payment_method?: string | null | undefined;
|
|
6420
|
+
amount: number;
|
|
6421
|
+
}[] | null;
|
|
6168
6422
|
lines: {
|
|
6169
6423
|
line_number: number | null;
|
|
6170
6424
|
unit_price: number;
|
|
@@ -6253,6 +6507,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6253
6507
|
country?: string | null | undefined;
|
|
6254
6508
|
}[] | null;
|
|
6255
6509
|
} | null | undefined;
|
|
6510
|
+
due_dates: {
|
|
6511
|
+
due_date: string;
|
|
6512
|
+
payment_method?: string | null | undefined;
|
|
6513
|
+
amount: number;
|
|
6514
|
+
}[] | null;
|
|
6256
6515
|
lines: {
|
|
6257
6516
|
line_number: number | null;
|
|
6258
6517
|
unit_price: number;
|
|
@@ -6341,6 +6600,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6341
6600
|
country?: string | null | undefined;
|
|
6342
6601
|
}[] | null;
|
|
6343
6602
|
} | null | undefined;
|
|
6603
|
+
due_dates: {
|
|
6604
|
+
due_date: string;
|
|
6605
|
+
payment_method?: string | null | undefined;
|
|
6606
|
+
amount: number;
|
|
6607
|
+
}[] | null;
|
|
6344
6608
|
lines: {
|
|
6345
6609
|
line_number: number | null;
|
|
6346
6610
|
unit_price: number;
|
|
@@ -6440,6 +6704,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6440
6704
|
country?: string | null | undefined;
|
|
6441
6705
|
}[] | null;
|
|
6442
6706
|
} | null | undefined;
|
|
6707
|
+
due_dates: {
|
|
6708
|
+
due_date: string;
|
|
6709
|
+
payment_method?: string | null | undefined;
|
|
6710
|
+
amount: number;
|
|
6711
|
+
}[] | null;
|
|
6443
6712
|
lines: {
|
|
6444
6713
|
line_number: number | null;
|
|
6445
6714
|
unit_price: number;
|
|
@@ -6598,6 +6867,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6598
6867
|
date: string | null;
|
|
6599
6868
|
posted: boolean | null;
|
|
6600
6869
|
id: string;
|
|
6870
|
+
due_dates: {
|
|
6871
|
+
due_date: string;
|
|
6872
|
+
payment_method?: string | null | undefined;
|
|
6873
|
+
debit: number | null;
|
|
6874
|
+
credit: number | null;
|
|
6875
|
+
}[] | null;
|
|
6601
6876
|
items: {
|
|
6602
6877
|
account_number: string;
|
|
6603
6878
|
partner_id?: string | null | undefined;
|
|
@@ -6631,6 +6906,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6631
6906
|
date: string | null;
|
|
6632
6907
|
posted: boolean | null;
|
|
6633
6908
|
id: string;
|
|
6909
|
+
due_dates: {
|
|
6910
|
+
due_date: string;
|
|
6911
|
+
payment_method?: string | null | undefined;
|
|
6912
|
+
debit: number | null;
|
|
6913
|
+
credit: number | null;
|
|
6914
|
+
}[] | null;
|
|
6634
6915
|
items: {
|
|
6635
6916
|
account_number: string;
|
|
6636
6917
|
partner_id?: string | null | undefined;
|
|
@@ -6678,6 +6959,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6678
6959
|
name: string;
|
|
6679
6960
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6680
6961
|
counterpart_account?: string | null | undefined;
|
|
6962
|
+
unallocated_account?: string | null | undefined;
|
|
6681
6963
|
next_document_numbers: {
|
|
6682
6964
|
bookyear_name?: string | null | undefined;
|
|
6683
6965
|
next_document_number?: string | null | undefined;
|
|
@@ -6686,6 +6968,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6686
6968
|
}[] | null;
|
|
6687
6969
|
iban?: string | null | undefined;
|
|
6688
6970
|
currency?: string | null | undefined;
|
|
6971
|
+
other_currencies_allowed: boolean | null;
|
|
6972
|
+
blocked: boolean | null;
|
|
6689
6973
|
}[]>;
|
|
6690
6974
|
createJournal(journal: {
|
|
6691
6975
|
code: string;
|
|
@@ -6700,6 +6984,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6700
6984
|
name: string;
|
|
6701
6985
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
6702
6986
|
counterpart_account?: string | null | undefined;
|
|
6987
|
+
unallocated_account?: string | null | undefined;
|
|
6703
6988
|
next_document_numbers: {
|
|
6704
6989
|
bookyear_name?: string | null | undefined;
|
|
6705
6990
|
next_document_number?: string | null | undefined;
|
|
@@ -6708,6 +6993,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6708
6993
|
}[] | null;
|
|
6709
6994
|
iban?: string | null | undefined;
|
|
6710
6995
|
currency?: string | null | undefined;
|
|
6996
|
+
other_currencies_allowed: boolean | null;
|
|
6997
|
+
blocked: boolean | null;
|
|
6711
6998
|
}>;
|
|
6712
6999
|
getVatCodes(params?: {
|
|
6713
7000
|
folder_id?: string | null | undefined;
|
|
@@ -6721,6 +7008,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6721
7008
|
deductible_account?: string | null | undefined;
|
|
6722
7009
|
payable_account?: string | null | undefined;
|
|
6723
7010
|
reversed: boolean | null;
|
|
7011
|
+
country?: string | null | undefined;
|
|
6724
7012
|
}[]>;
|
|
6725
7013
|
getMiscOperations(params?: {
|
|
6726
7014
|
date_from?: string | null | undefined;
|
|
@@ -6827,7 +7115,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6827
7115
|
number: string;
|
|
6828
7116
|
name: string;
|
|
6829
7117
|
active: boolean | null;
|
|
6830
|
-
type?: "vat" | "
|
|
7118
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
6831
7119
|
}[]>;
|
|
6832
7120
|
getBalanceOfAccounts(filter: {
|
|
6833
7121
|
accounts: string[];
|
|
@@ -6891,41 +7179,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6891
7179
|
reference?: string | null | undefined;
|
|
6892
7180
|
} | null | undefined;
|
|
6893
7181
|
}[]>;
|
|
6894
|
-
createFinancialEntryOld(financial_entry: {
|
|
6895
|
-
date: string;
|
|
6896
|
-
journal_id: string;
|
|
6897
|
-
currency: string;
|
|
6898
|
-
currency_exchange_rate: number | null;
|
|
6899
|
-
reference?: string | null | undefined;
|
|
6900
|
-
number?: string | null | undefined;
|
|
6901
|
-
items: {
|
|
6902
|
-
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
6903
|
-
account_number: string;
|
|
6904
|
-
partner_id?: string | null | undefined;
|
|
6905
|
-
amount: number;
|
|
6906
|
-
description?: string | null | undefined;
|
|
6907
|
-
}[];
|
|
6908
|
-
pdf?: string | null | undefined;
|
|
6909
|
-
}, params?: {
|
|
6910
|
-
folder_id?: string | null | undefined;
|
|
6911
|
-
financial_counterpart_account?: string | null | undefined;
|
|
6912
|
-
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
6913
|
-
date: string;
|
|
6914
|
-
journal_id: string;
|
|
6915
|
-
currency: string;
|
|
6916
|
-
currency_exchange_rate: number | null;
|
|
6917
|
-
reference?: string | null | undefined;
|
|
6918
|
-
id: string;
|
|
6919
|
-
number: string;
|
|
6920
|
-
items: {
|
|
6921
|
-
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
6922
|
-
account_number: string;
|
|
6923
|
-
partner_id?: string | null | undefined;
|
|
6924
|
-
amount: number;
|
|
6925
|
-
description?: string | null | undefined;
|
|
6926
|
-
counterpart_account: string;
|
|
6927
|
-
}[];
|
|
6928
|
-
}>;
|
|
6929
7182
|
createFinancialEntry(financial_entry: {
|
|
6930
7183
|
date: string;
|
|
6931
7184
|
journal_id: string;
|
|
@@ -6959,20 +7212,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6959
7212
|
counterpart_account: string;
|
|
6960
7213
|
}[];
|
|
6961
7214
|
}>;
|
|
6962
|
-
|
|
7215
|
+
createJournalEntry(journal_entry: {
|
|
6963
7216
|
reference?: string | null | undefined;
|
|
6964
7217
|
due_date?: string | null | undefined;
|
|
6965
7218
|
journal_id: string;
|
|
6966
|
-
|
|
7219
|
+
number: string;
|
|
7220
|
+
currency: string;
|
|
7221
|
+
currency_exchange_rate: number | null;
|
|
6967
7222
|
date: string;
|
|
6968
7223
|
items: {
|
|
6969
|
-
|
|
6970
|
-
|
|
7224
|
+
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
7225
|
+
account?: string | null | undefined;
|
|
7226
|
+
force_general_account?: string | null | undefined;
|
|
7227
|
+
prioritise_thirdparty_account: boolean | null;
|
|
6971
7228
|
description?: string | null | undefined;
|
|
6972
7229
|
debit: number;
|
|
6973
7230
|
credit: number;
|
|
6974
|
-
currency: string;
|
|
6975
|
-
currency_exchange_rate: number | null;
|
|
6976
7231
|
analytic_distribution: {
|
|
6977
7232
|
analytic_plan: string;
|
|
6978
7233
|
analytic_accounts: {
|
|
@@ -6980,76 +7235,20 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6980
7235
|
percentage: number;
|
|
6981
7236
|
}[];
|
|
6982
7237
|
}[] | null;
|
|
7238
|
+
tax_code?: string | null | undefined;
|
|
7239
|
+
account_info?: {
|
|
7240
|
+
account_number: string;
|
|
7241
|
+
account_name: string;
|
|
7242
|
+
} | null | undefined;
|
|
6983
7243
|
}[];
|
|
6984
7244
|
pdf?: string | null | undefined;
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
posted: boolean | null;
|
|
6993
|
-
id: string;
|
|
6994
|
-
items: {
|
|
6995
|
-
account_number: string;
|
|
6996
|
-
partner_id?: string | null | undefined;
|
|
6997
|
-
description?: string | null | undefined;
|
|
6998
|
-
debit: number;
|
|
6999
|
-
credit: number;
|
|
7000
|
-
currency: string;
|
|
7001
|
-
currency_exchange_rate: number | null;
|
|
7002
|
-
id: string;
|
|
7003
|
-
partner_name?: string | null | undefined;
|
|
7004
|
-
account_name: string;
|
|
7005
|
-
matching_numbers: string[] | null;
|
|
7006
|
-
analytic_distribution: {
|
|
7007
|
-
analytic_plan: string;
|
|
7008
|
-
analytic_accounts: {
|
|
7009
|
-
analytic_account: string;
|
|
7010
|
-
percentage: number;
|
|
7011
|
-
}[];
|
|
7012
|
-
}[] | null;
|
|
7013
|
-
}[] | null;
|
|
7014
|
-
}>;
|
|
7015
|
-
createJournalEntry(journal_entry: {
|
|
7016
|
-
reference?: string | null | undefined;
|
|
7017
|
-
due_date?: string | null | undefined;
|
|
7018
|
-
journal_id: string;
|
|
7019
|
-
number: string;
|
|
7020
|
-
currency: string;
|
|
7021
|
-
currency_exchange_rate: number | null;
|
|
7022
|
-
date: string;
|
|
7023
|
-
items: {
|
|
7024
|
-
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
7025
|
-
account: string;
|
|
7026
|
-
force_general_account?: string | null | undefined;
|
|
7027
|
-
prioritise_thirdparty_account: boolean | null;
|
|
7028
|
-
description?: string | null | undefined;
|
|
7029
|
-
debit: number;
|
|
7030
|
-
credit: number;
|
|
7031
|
-
analytic_distribution: {
|
|
7032
|
-
analytic_plan: string;
|
|
7033
|
-
analytic_accounts: {
|
|
7034
|
-
analytic_account: string;
|
|
7035
|
-
percentage: number;
|
|
7036
|
-
}[];
|
|
7037
|
-
}[] | null;
|
|
7038
|
-
tax_code?: string | null | undefined;
|
|
7039
|
-
country?: string | null | undefined;
|
|
7040
|
-
account_info?: {
|
|
7041
|
-
account_number: string;
|
|
7042
|
-
account_name: string;
|
|
7043
|
-
} | null | undefined;
|
|
7044
|
-
}[];
|
|
7045
|
-
pdf?: string | null | undefined;
|
|
7046
|
-
posted: boolean | null;
|
|
7047
|
-
start_date?: string | null | undefined;
|
|
7048
|
-
end_date?: string | null | undefined;
|
|
7049
|
-
}, params?: {
|
|
7050
|
-
folder_id?: string | null | undefined;
|
|
7051
|
-
force_currency_exchange?: "true" | "false" | null | undefined;
|
|
7052
|
-
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
7245
|
+
posted: boolean | null;
|
|
7246
|
+
start_date?: string | null | undefined;
|
|
7247
|
+
end_date?: string | null | undefined;
|
|
7248
|
+
}, params?: {
|
|
7249
|
+
folder_id?: string | null | undefined;
|
|
7250
|
+
force_currency_exchange?: "true" | "false" | null | undefined;
|
|
7251
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
7053
7252
|
reference?: string | null | undefined;
|
|
7054
7253
|
due_date?: string | null | undefined;
|
|
7055
7254
|
journal_id: string;
|
|
@@ -7058,6 +7257,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7058
7257
|
date: string | null;
|
|
7059
7258
|
posted: boolean | null;
|
|
7060
7259
|
id: string;
|
|
7260
|
+
due_dates: {
|
|
7261
|
+
due_date: string;
|
|
7262
|
+
payment_method?: string | null | undefined;
|
|
7263
|
+
debit: number | null;
|
|
7264
|
+
credit: number | null;
|
|
7265
|
+
}[] | null;
|
|
7061
7266
|
items: {
|
|
7062
7267
|
account_number: string;
|
|
7063
7268
|
partner_id?: string | null | undefined;
|
|
@@ -7102,12 +7307,65 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7102
7307
|
[key: string]: unknown;
|
|
7103
7308
|
} | null | undefined;
|
|
7104
7309
|
}[]>;
|
|
7310
|
+
createExpense(expense: {
|
|
7311
|
+
employee_id: string;
|
|
7312
|
+
total: number;
|
|
7313
|
+
untaxed_amount: number;
|
|
7314
|
+
tax_amount: number;
|
|
7315
|
+
reference?: string | null | undefined;
|
|
7316
|
+
number?: string | null | undefined;
|
|
7317
|
+
currency: string;
|
|
7318
|
+
currency_exchange_rate: number | null;
|
|
7319
|
+
date: string;
|
|
7320
|
+
pdf?: string | null | undefined;
|
|
7321
|
+
lines: {
|
|
7322
|
+
total: number;
|
|
7323
|
+
untaxed_amount: number;
|
|
7324
|
+
tax_amount: number;
|
|
7325
|
+
description?: string | null | undefined;
|
|
7326
|
+
account_number: string;
|
|
7327
|
+
tax_rate: number;
|
|
7328
|
+
tax_id: string;
|
|
7329
|
+
}[];
|
|
7330
|
+
}, params?: {
|
|
7331
|
+
folder_id?: string | null | undefined;
|
|
7332
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
7333
|
+
employee_id: string;
|
|
7334
|
+
total: number;
|
|
7335
|
+
untaxed_amount: number;
|
|
7336
|
+
tax_amount: number;
|
|
7337
|
+
reference?: string | null | undefined;
|
|
7338
|
+
number?: string | null | undefined;
|
|
7339
|
+
currency: string;
|
|
7340
|
+
currency_exchange_rate: number | null;
|
|
7341
|
+
date: string;
|
|
7342
|
+
pdf?: string | null | undefined;
|
|
7343
|
+
lines: {
|
|
7344
|
+
total: number;
|
|
7345
|
+
untaxed_amount: number;
|
|
7346
|
+
tax_amount: number;
|
|
7347
|
+
description?: string | null | undefined;
|
|
7348
|
+
account_number: string;
|
|
7349
|
+
tax_rate: number;
|
|
7350
|
+
tax_id: string;
|
|
7351
|
+
}[];
|
|
7352
|
+
id: string;
|
|
7353
|
+
}>;
|
|
7105
7354
|
getFolders(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
7106
7355
|
id: string;
|
|
7107
7356
|
name: string;
|
|
7108
7357
|
selected: boolean | null;
|
|
7109
7358
|
vat?: string | null | undefined;
|
|
7110
7359
|
company_number?: string | null | undefined;
|
|
7360
|
+
main_currency?: string | null | undefined;
|
|
7361
|
+
addresses?: {
|
|
7362
|
+
street?: string | null | undefined;
|
|
7363
|
+
number?: string | null | undefined;
|
|
7364
|
+
box?: string | null | undefined;
|
|
7365
|
+
postal_code?: string | null | undefined;
|
|
7366
|
+
city?: string | null | undefined;
|
|
7367
|
+
country?: string | null | undefined;
|
|
7368
|
+
}[] | null | undefined;
|
|
7111
7369
|
}[]>;
|
|
7112
7370
|
getBookyears(params?: {
|
|
7113
7371
|
folder_id?: string | null | undefined;
|
|
@@ -7120,13 +7378,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7120
7378
|
createLedgerAccount(account: {
|
|
7121
7379
|
name: string;
|
|
7122
7380
|
number: string;
|
|
7381
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
7123
7382
|
}, params?: {
|
|
7124
7383
|
folder_id?: string | null | undefined;
|
|
7125
7384
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
7126
7385
|
number: string;
|
|
7127
7386
|
name: string;
|
|
7128
7387
|
active: boolean | null;
|
|
7129
|
-
type?: "vat" | "
|
|
7388
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
7130
7389
|
}>;
|
|
7131
7390
|
createBankAccount(bankAccount: {
|
|
7132
7391
|
code: string;
|
|
@@ -7147,6 +7406,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7147
7406
|
bank_name?: string | null | undefined;
|
|
7148
7407
|
journal_id?: string | null | undefined;
|
|
7149
7408
|
ledger_account?: string | null | undefined;
|
|
7409
|
+
unallocated_account?: string | null | undefined;
|
|
7150
7410
|
}>;
|
|
7151
7411
|
getJournalEntry(journalEntryId: string, params?: {
|
|
7152
7412
|
folder_id?: string | null | undefined;
|
|
@@ -7159,6 +7419,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7159
7419
|
date: string | null;
|
|
7160
7420
|
posted: boolean | null;
|
|
7161
7421
|
id: string;
|
|
7422
|
+
due_dates: {
|
|
7423
|
+
due_date: string;
|
|
7424
|
+
payment_method?: string | null | undefined;
|
|
7425
|
+
debit: number | null;
|
|
7426
|
+
credit: number | null;
|
|
7427
|
+
}[] | null;
|
|
7162
7428
|
items: {
|
|
7163
7429
|
account_number: string;
|
|
7164
7430
|
partner_id?: string | null | undefined;
|
|
@@ -7180,6 +7446,38 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7180
7446
|
}[] | null;
|
|
7181
7447
|
}[] | null;
|
|
7182
7448
|
}>;
|
|
7449
|
+
getPaymentMethods(params?: {
|
|
7450
|
+
page?: number | undefined;
|
|
7451
|
+
size?: number | undefined;
|
|
7452
|
+
folder_id?: string | null | undefined;
|
|
7453
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
7454
|
+
items: {
|
|
7455
|
+
id: string;
|
|
7456
|
+
name?: string | null | undefined;
|
|
7457
|
+
}[];
|
|
7458
|
+
total: number;
|
|
7459
|
+
page: number;
|
|
7460
|
+
size: number;
|
|
7461
|
+
}>;
|
|
7462
|
+
createInvoicePayment(body: {
|
|
7463
|
+
date: string;
|
|
7464
|
+
payment_method_id: string;
|
|
7465
|
+
currency: string;
|
|
7466
|
+
currency_exchange_rate: number | null;
|
|
7467
|
+
reference?: string | null | undefined;
|
|
7468
|
+
number?: string | null | undefined;
|
|
7469
|
+
items: {
|
|
7470
|
+
invoice_id: string;
|
|
7471
|
+
amount: number;
|
|
7472
|
+
}[];
|
|
7473
|
+
}, params?: {
|
|
7474
|
+
folder_id?: string | null | undefined;
|
|
7475
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7476
|
+
headers: {
|
|
7477
|
+
[name: string]: unknown;
|
|
7478
|
+
};
|
|
7479
|
+
content?: undefined;
|
|
7480
|
+
}>;
|
|
7183
7481
|
}>;
|
|
7184
7482
|
invoicing: import("../types/api").ApiFor<{
|
|
7185
7483
|
getInvoices(params?: {
|
|
@@ -7250,6 +7548,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7250
7548
|
} | null | undefined;
|
|
7251
7549
|
last_updated_on?: string | null | undefined;
|
|
7252
7550
|
outstanding_amount?: number | null | undefined;
|
|
7551
|
+
last_payment_date?: string | null | undefined;
|
|
7253
7552
|
accounting_date?: string | null | undefined;
|
|
7254
7553
|
payment_method_id?: string | null | undefined;
|
|
7255
7554
|
currency_exchange_rate: number | null;
|
|
@@ -7317,6 +7616,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7317
7616
|
} | null | undefined;
|
|
7318
7617
|
last_updated_on?: string | null | undefined;
|
|
7319
7618
|
outstanding_amount?: number | null | undefined;
|
|
7619
|
+
last_payment_date?: string | null | undefined;
|
|
7320
7620
|
accounting_date?: string | null | undefined;
|
|
7321
7621
|
payment_method_id?: string | null | undefined;
|
|
7322
7622
|
currency_exchange_rate: number | null;
|
|
@@ -7437,6 +7737,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7437
7737
|
} | null | undefined;
|
|
7438
7738
|
last_updated_on?: string | null | undefined;
|
|
7439
7739
|
outstanding_amount?: number | null | undefined;
|
|
7740
|
+
last_payment_date?: string | null | undefined;
|
|
7440
7741
|
accounting_date?: string | null | undefined;
|
|
7441
7742
|
payment_method_id?: string | null | undefined;
|
|
7442
7743
|
currency_exchange_rate: number | null;
|
|
@@ -7764,6 +8065,125 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7764
8065
|
};
|
|
7765
8066
|
name: string;
|
|
7766
8067
|
}[]>;
|
|
8068
|
+
getBankAccounts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
8069
|
+
items: {
|
|
8070
|
+
id: string;
|
|
8071
|
+
source_ref: {
|
|
8072
|
+
id?: string | null | undefined;
|
|
8073
|
+
model?: string | null | undefined;
|
|
8074
|
+
};
|
|
8075
|
+
name: string;
|
|
8076
|
+
iban?: string | null | undefined;
|
|
8077
|
+
currency?: string | null | undefined;
|
|
8078
|
+
balance?: number | null | undefined;
|
|
8079
|
+
}[];
|
|
8080
|
+
total: number;
|
|
8081
|
+
page: number;
|
|
8082
|
+
size: number;
|
|
8083
|
+
}>;
|
|
8084
|
+
getBankTransactions(params: {
|
|
8085
|
+
date_from?: string | null | undefined;
|
|
8086
|
+
date_to?: string | null | undefined;
|
|
8087
|
+
bank_account_id: string;
|
|
8088
|
+
status?: "draft" | "done" | null | undefined;
|
|
8089
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
8090
|
+
items: {
|
|
8091
|
+
id: string;
|
|
8092
|
+
source_ref: {
|
|
8093
|
+
id?: string | null | undefined;
|
|
8094
|
+
model?: string | null | undefined;
|
|
8095
|
+
};
|
|
8096
|
+
status: "draft" | "done";
|
|
8097
|
+
bank_account_id: string;
|
|
8098
|
+
amount: number;
|
|
8099
|
+
date: string;
|
|
8100
|
+
description?: string | null | undefined;
|
|
8101
|
+
currency: string;
|
|
8102
|
+
currency_exchange_rate: number | null;
|
|
8103
|
+
accounting_code?: string | null | undefined;
|
|
8104
|
+
linked_documents: {
|
|
8105
|
+
id: string;
|
|
8106
|
+
source_ref: {
|
|
8107
|
+
id?: string | null | undefined;
|
|
8108
|
+
model?: string | null | undefined;
|
|
8109
|
+
};
|
|
8110
|
+
amount: number;
|
|
8111
|
+
type: "invoice" | "other";
|
|
8112
|
+
}[] | null;
|
|
8113
|
+
}[];
|
|
8114
|
+
total: number;
|
|
8115
|
+
page: number;
|
|
8116
|
+
size: number;
|
|
8117
|
+
}>;
|
|
8118
|
+
uploadDocument(document: {
|
|
8119
|
+
base64_string: string;
|
|
8120
|
+
document_type: "customer_document" | "supplier_document" | "employee_expense";
|
|
8121
|
+
}, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
8122
|
+
id: string;
|
|
8123
|
+
source_ref: {
|
|
8124
|
+
id?: string | null | undefined;
|
|
8125
|
+
model?: string | null | undefined;
|
|
8126
|
+
};
|
|
8127
|
+
currency?: string | null | undefined;
|
|
8128
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
8129
|
+
status?: "draft" | "posted" | "cancelled" | "paid" | null | undefined;
|
|
8130
|
+
invoice_date?: string | null | undefined;
|
|
8131
|
+
tax_amount?: number | null | undefined;
|
|
8132
|
+
untaxed_amount?: number | null | undefined;
|
|
8133
|
+
total?: number | null | undefined;
|
|
8134
|
+
lines: {
|
|
8135
|
+
description?: string | null | undefined;
|
|
8136
|
+
unit_price: number;
|
|
8137
|
+
quantity: number;
|
|
8138
|
+
discount_amount: number;
|
|
8139
|
+
tax_amount: number;
|
|
8140
|
+
untaxed_amount: number;
|
|
8141
|
+
total: number;
|
|
8142
|
+
tax_rate?: number | null | undefined;
|
|
8143
|
+
account_number?: string | null | undefined;
|
|
8144
|
+
tax_id?: string | null | undefined;
|
|
8145
|
+
tax_exemption_reason?: string | null | undefined;
|
|
8146
|
+
unit_of_measure?: string | null | undefined;
|
|
8147
|
+
product_id?: string | null | undefined;
|
|
8148
|
+
product_code?: string | null | undefined;
|
|
8149
|
+
product_name?: string | null | undefined;
|
|
8150
|
+
}[] | null;
|
|
8151
|
+
partner_id?: string | null | undefined;
|
|
8152
|
+
invoice_number?: string | null | undefined;
|
|
8153
|
+
due_date?: string | null | undefined;
|
|
8154
|
+
reference?: string | null | undefined;
|
|
8155
|
+
payment_communication?: string | null | undefined;
|
|
8156
|
+
customer_memo?: string | null | undefined;
|
|
8157
|
+
journal_ref?: {
|
|
8158
|
+
id?: string | null | undefined;
|
|
8159
|
+
model?: string | null | undefined;
|
|
8160
|
+
name?: string | null | undefined;
|
|
8161
|
+
} | null | undefined;
|
|
8162
|
+
italian_specificities?: {
|
|
8163
|
+
stamp_duty_amount?: number | null | undefined;
|
|
8164
|
+
withholding_tax?: {
|
|
8165
|
+
rate: number;
|
|
8166
|
+
amount: number;
|
|
8167
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | null | undefined;
|
|
8168
|
+
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;
|
|
8169
|
+
} | null | undefined;
|
|
8170
|
+
welfare_fund?: {
|
|
8171
|
+
rate: number;
|
|
8172
|
+
amount: number;
|
|
8173
|
+
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;
|
|
8174
|
+
} | null | undefined;
|
|
8175
|
+
payment_reporting?: {
|
|
8176
|
+
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;
|
|
8177
|
+
conditions?: "TP01" | "TP02" | "TP03" | null | undefined;
|
|
8178
|
+
} | null | undefined;
|
|
8179
|
+
} | null | undefined;
|
|
8180
|
+
last_updated_on?: string | null | undefined;
|
|
8181
|
+
outstanding_amount?: number | null | undefined;
|
|
8182
|
+
last_payment_date?: string | null | undefined;
|
|
8183
|
+
accounting_date?: string | null | undefined;
|
|
8184
|
+
payment_method_id?: string | null | undefined;
|
|
8185
|
+
currency_exchange_rate: number | null;
|
|
8186
|
+
}>;
|
|
7767
8187
|
}>;
|
|
7768
8188
|
ecommerce: import("../types/api").ApiFor<{
|
|
7769
8189
|
getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -7795,7 +8215,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7795
8215
|
}[] | null;
|
|
7796
8216
|
created_on?: string | null | undefined;
|
|
7797
8217
|
}[]>;
|
|
7798
|
-
getProducts(params?: {
|
|
8218
|
+
getProducts(params?: {
|
|
8219
|
+
updated_after?: string | null | undefined;
|
|
8220
|
+
sku?: string | null | undefined;
|
|
8221
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
7799
8222
|
id: string;
|
|
7800
8223
|
source_ref: {
|
|
7801
8224
|
id?: string | null | undefined;
|
|
@@ -7809,6 +8232,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7809
8232
|
name: string;
|
|
7810
8233
|
}[] | null;
|
|
7811
8234
|
created_on?: string | null | undefined;
|
|
8235
|
+
last_updated_on?: string | null | undefined;
|
|
7812
8236
|
variants: {
|
|
7813
8237
|
id: string;
|
|
7814
8238
|
source_ref: {
|
|
@@ -7850,6 +8274,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7850
8274
|
}[] | null;
|
|
7851
8275
|
}[] | null;
|
|
7852
8276
|
status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
|
|
8277
|
+
sku?: string | null | undefined;
|
|
7853
8278
|
common_attributes: {
|
|
7854
8279
|
name: string;
|
|
7855
8280
|
values: string[];
|
|
@@ -7907,6 +8332,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7907
8332
|
name: string;
|
|
7908
8333
|
}[] | null;
|
|
7909
8334
|
created_on?: string | null | undefined;
|
|
8335
|
+
last_updated_on?: string | null | undefined;
|
|
7910
8336
|
variants: {
|
|
7911
8337
|
id: string;
|
|
7912
8338
|
source_ref: {
|
|
@@ -7948,6 +8374,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7948
8374
|
}[] | null;
|
|
7949
8375
|
}[] | null;
|
|
7950
8376
|
status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
|
|
8377
|
+
sku?: string | null | undefined;
|
|
7951
8378
|
common_attributes: {
|
|
7952
8379
|
name: string;
|
|
7953
8380
|
values: string[];
|
|
@@ -8137,6 +8564,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8137
8564
|
amount: number;
|
|
8138
8565
|
}[] | null;
|
|
8139
8566
|
gift_card: boolean | null;
|
|
8567
|
+
is_gift: boolean | null;
|
|
8140
8568
|
}[];
|
|
8141
8569
|
other_fees: {
|
|
8142
8570
|
id: string;
|
|
@@ -8414,6 +8842,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8414
8842
|
amount: number;
|
|
8415
8843
|
}[] | null;
|
|
8416
8844
|
gift_card: boolean | null;
|
|
8845
|
+
is_gift: boolean | null;
|
|
8417
8846
|
}[];
|
|
8418
8847
|
other_fees: {
|
|
8419
8848
|
id: string;
|
|
@@ -8652,6 +9081,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8652
9081
|
amount: number;
|
|
8653
9082
|
}[] | null;
|
|
8654
9083
|
gift_card: boolean | null;
|
|
9084
|
+
is_gift: boolean | null;
|
|
8655
9085
|
}[];
|
|
8656
9086
|
other_fees: {
|
|
8657
9087
|
id: string;
|
|
@@ -8910,6 +9340,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8910
9340
|
description?: string | null | undefined;
|
|
8911
9341
|
display_order: number;
|
|
8912
9342
|
challenge_question?: string | null | undefined;
|
|
9343
|
+
conditions?: {
|
|
9344
|
+
[key: string]: {
|
|
9345
|
+
[key: string]: unknown;
|
|
9346
|
+
};
|
|
9347
|
+
} | null | undefined;
|
|
8913
9348
|
values: {
|
|
8914
9349
|
source_id?: string | null | undefined;
|
|
8915
9350
|
target_id?: string | null | undefined;
|
|
@@ -8920,6 +9355,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8920
9355
|
link_metadata?: {
|
|
8921
9356
|
[key: string]: unknown;
|
|
8922
9357
|
} | null | undefined;
|
|
9358
|
+
link_presync?: {
|
|
9359
|
+
[key: string]: unknown;
|
|
9360
|
+
} | null | undefined;
|
|
8923
9361
|
enabled_flows?: {
|
|
8924
9362
|
name: string;
|
|
8925
9363
|
description?: string | null | undefined;
|
|
@@ -9172,7 +9610,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9172
9610
|
}[];
|
|
9173
9611
|
items: {
|
|
9174
9612
|
id: string;
|
|
9175
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
9613
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
9176
9614
|
menu_id?: string | null | undefined;
|
|
9177
9615
|
quantity: number;
|
|
9178
9616
|
unit_price: number;
|
|
@@ -9250,7 +9688,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9250
9688
|
}[];
|
|
9251
9689
|
items: {
|
|
9252
9690
|
id: string;
|
|
9253
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
9691
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
9254
9692
|
menu_id?: string | null | undefined;
|
|
9255
9693
|
quantity: number;
|
|
9256
9694
|
unit_price: number;
|
|
@@ -9377,6 +9815,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9377
9815
|
payments: {
|
|
9378
9816
|
payment_method_id?: string | null | undefined;
|
|
9379
9817
|
payment_method_name?: string | null | undefined;
|
|
9818
|
+
tip: number | null;
|
|
9380
9819
|
total: number;
|
|
9381
9820
|
}[] | null;
|
|
9382
9821
|
taxes: {
|
|
@@ -9437,7 +9876,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9437
9876
|
}[];
|
|
9438
9877
|
items: {
|
|
9439
9878
|
id: string;
|
|
9440
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
9879
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
9441
9880
|
menu_id?: string | null | undefined;
|
|
9442
9881
|
quantity: number;
|
|
9443
9882
|
unit_price: number;
|
|
@@ -9463,6 +9902,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9463
9902
|
ledger_account_code?: string | null | undefined;
|
|
9464
9903
|
posting_account_code?: string | null | undefined;
|
|
9465
9904
|
}[]>;
|
|
9905
|
+
getObjectives(params: {
|
|
9906
|
+
page?: number | undefined;
|
|
9907
|
+
size?: number | undefined;
|
|
9908
|
+
date_from: string;
|
|
9909
|
+
date_to: string;
|
|
9910
|
+
location_id?: string | null | undefined;
|
|
9911
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
9912
|
+
items: {
|
|
9913
|
+
total: number;
|
|
9914
|
+
tax_amount: number;
|
|
9915
|
+
date: string;
|
|
9916
|
+
}[];
|
|
9917
|
+
total: number;
|
|
9918
|
+
page: number;
|
|
9919
|
+
size: number;
|
|
9920
|
+
}>;
|
|
9466
9921
|
}>;
|
|
9467
9922
|
pms: import("../types/api").ApiFor<{
|
|
9468
9923
|
getLocations(rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
@@ -9519,7 +9974,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9519
9974
|
id?: string | null | undefined;
|
|
9520
9975
|
model?: string | null | undefined;
|
|
9521
9976
|
};
|
|
9522
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
9977
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
9523
9978
|
menu_id?: string | null | undefined;
|
|
9524
9979
|
quantity: number;
|
|
9525
9980
|
unit_price: number;
|
|
@@ -9611,6 +10066,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9611
10066
|
payments: {
|
|
9612
10067
|
payment_method_id?: string | null | undefined;
|
|
9613
10068
|
payment_method_name?: string | null | undefined;
|
|
10069
|
+
tip: number | null;
|
|
9614
10070
|
total: number;
|
|
9615
10071
|
}[] | null;
|
|
9616
10072
|
taxes: {
|
|
@@ -9643,6 +10099,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9643
10099
|
model?: string | null | undefined;
|
|
9644
10100
|
};
|
|
9645
10101
|
} | null | undefined;
|
|
10102
|
+
description?: string | null | undefined;
|
|
9646
10103
|
}[]>;
|
|
9647
10104
|
getAccountingCategories(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
9648
10105
|
id: string;
|
|
@@ -9719,7 +10176,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9719
10176
|
id?: string | null | undefined;
|
|
9720
10177
|
model?: string | null | undefined;
|
|
9721
10178
|
};
|
|
9722
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
10179
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
9723
10180
|
menu_id?: string | null | undefined;
|
|
9724
10181
|
quantity: number;
|
|
9725
10182
|
unit_price: number;
|
|
@@ -9755,6 +10212,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9755
10212
|
model?: string | null | undefined;
|
|
9756
10213
|
};
|
|
9757
10214
|
} | null | undefined;
|
|
10215
|
+
description?: string | null | undefined;
|
|
9758
10216
|
}[];
|
|
9759
10217
|
service_id?: string | null | undefined;
|
|
9760
10218
|
reservation?: {
|
|
@@ -9820,7 +10278,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9820
10278
|
id?: string | null | undefined;
|
|
9821
10279
|
model?: string | null | undefined;
|
|
9822
10280
|
};
|
|
9823
|
-
|
|
10281
|
+
amount: number;
|
|
9824
10282
|
fee: number;
|
|
9825
10283
|
currency: string;
|
|
9826
10284
|
exchange_rate: number;
|
|
@@ -10333,7 +10791,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10333
10791
|
customer_memo?: string | null | undefined;
|
|
10334
10792
|
invoice_date: string;
|
|
10335
10793
|
due_date: string;
|
|
10336
|
-
partner_id
|
|
10794
|
+
partner_id?: string | null | undefined;
|
|
10337
10795
|
journal_id?: string | null | undefined;
|
|
10338
10796
|
status: "draft" | "posted" | null;
|
|
10339
10797
|
pdf?: string | null | undefined;
|
|
@@ -10445,6 +10903,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10445
10903
|
country?: string | null | undefined;
|
|
10446
10904
|
}[] | null;
|
|
10447
10905
|
} | null | undefined;
|
|
10906
|
+
due_dates: {
|
|
10907
|
+
due_date: string;
|
|
10908
|
+
payment_method?: string | null | undefined;
|
|
10909
|
+
amount: number;
|
|
10910
|
+
}[] | null;
|
|
10448
10911
|
lines: {
|
|
10449
10912
|
line_number: number | null;
|
|
10450
10913
|
unit_price: number;
|
|
@@ -10472,7 +10935,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10472
10935
|
customer_memo?: string | null | undefined;
|
|
10473
10936
|
invoice_date: string;
|
|
10474
10937
|
due_date: string;
|
|
10475
|
-
partner_id
|
|
10938
|
+
partner_id?: string | null | undefined;
|
|
10476
10939
|
journal_id?: string | null | undefined;
|
|
10477
10940
|
status: "draft" | "posted" | null;
|
|
10478
10941
|
pdf?: string | null | undefined;
|
|
@@ -10590,6 +11053,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10590
11053
|
country?: string | null | undefined;
|
|
10591
11054
|
}[] | null;
|
|
10592
11055
|
} | null | undefined;
|
|
11056
|
+
due_dates: {
|
|
11057
|
+
due_date: string;
|
|
11058
|
+
payment_method?: string | null | undefined;
|
|
11059
|
+
amount: number;
|
|
11060
|
+
}[] | null;
|
|
10593
11061
|
lines: {
|
|
10594
11062
|
line_number: number | null;
|
|
10595
11063
|
unit_price: number;
|
|
@@ -10689,6 +11157,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10689
11157
|
country?: string | null | undefined;
|
|
10690
11158
|
}[] | null;
|
|
10691
11159
|
} | null | undefined;
|
|
11160
|
+
due_dates: {
|
|
11161
|
+
due_date: string;
|
|
11162
|
+
payment_method?: string | null | undefined;
|
|
11163
|
+
amount: number;
|
|
11164
|
+
}[] | null;
|
|
10692
11165
|
lines: {
|
|
10693
11166
|
line_number: number | null;
|
|
10694
11167
|
unit_price: number;
|
|
@@ -10777,6 +11250,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10777
11250
|
country?: string | null | undefined;
|
|
10778
11251
|
}[] | null;
|
|
10779
11252
|
} | null | undefined;
|
|
11253
|
+
due_dates: {
|
|
11254
|
+
due_date: string;
|
|
11255
|
+
payment_method?: string | null | undefined;
|
|
11256
|
+
amount: number;
|
|
11257
|
+
}[] | null;
|
|
10780
11258
|
lines: {
|
|
10781
11259
|
line_number: number | null;
|
|
10782
11260
|
unit_price: number;
|
|
@@ -10865,6 +11343,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10865
11343
|
country?: string | null | undefined;
|
|
10866
11344
|
}[] | null;
|
|
10867
11345
|
} | null | undefined;
|
|
11346
|
+
due_dates: {
|
|
11347
|
+
due_date: string;
|
|
11348
|
+
payment_method?: string | null | undefined;
|
|
11349
|
+
amount: number;
|
|
11350
|
+
}[] | null;
|
|
10868
11351
|
lines: {
|
|
10869
11352
|
line_number: number | null;
|
|
10870
11353
|
unit_price: number;
|
|
@@ -10964,6 +11447,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10964
11447
|
country?: string | null | undefined;
|
|
10965
11448
|
}[] | null;
|
|
10966
11449
|
} | null | undefined;
|
|
11450
|
+
due_dates: {
|
|
11451
|
+
due_date: string;
|
|
11452
|
+
payment_method?: string | null | undefined;
|
|
11453
|
+
amount: number;
|
|
11454
|
+
}[] | null;
|
|
10967
11455
|
lines: {
|
|
10968
11456
|
line_number: number | null;
|
|
10969
11457
|
unit_price: number;
|
|
@@ -11122,6 +11610,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11122
11610
|
date: string | null;
|
|
11123
11611
|
posted: boolean | null;
|
|
11124
11612
|
id: string;
|
|
11613
|
+
due_dates: {
|
|
11614
|
+
due_date: string;
|
|
11615
|
+
payment_method?: string | null | undefined;
|
|
11616
|
+
debit: number | null;
|
|
11617
|
+
credit: number | null;
|
|
11618
|
+
}[] | null;
|
|
11125
11619
|
items: {
|
|
11126
11620
|
account_number: string;
|
|
11127
11621
|
partner_id?: string | null | undefined;
|
|
@@ -11155,6 +11649,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11155
11649
|
date: string | null;
|
|
11156
11650
|
posted: boolean | null;
|
|
11157
11651
|
id: string;
|
|
11652
|
+
due_dates: {
|
|
11653
|
+
due_date: string;
|
|
11654
|
+
payment_method?: string | null | undefined;
|
|
11655
|
+
debit: number | null;
|
|
11656
|
+
credit: number | null;
|
|
11657
|
+
}[] | null;
|
|
11158
11658
|
items: {
|
|
11159
11659
|
account_number: string;
|
|
11160
11660
|
partner_id?: string | null | undefined;
|
|
@@ -11202,6 +11702,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11202
11702
|
name: string;
|
|
11203
11703
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11204
11704
|
counterpart_account?: string | null | undefined;
|
|
11705
|
+
unallocated_account?: string | null | undefined;
|
|
11205
11706
|
next_document_numbers: {
|
|
11206
11707
|
bookyear_name?: string | null | undefined;
|
|
11207
11708
|
next_document_number?: string | null | undefined;
|
|
@@ -11210,6 +11711,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11210
11711
|
}[] | null;
|
|
11211
11712
|
iban?: string | null | undefined;
|
|
11212
11713
|
currency?: string | null | undefined;
|
|
11714
|
+
other_currencies_allowed: boolean | null;
|
|
11715
|
+
blocked: boolean | null;
|
|
11213
11716
|
}[]>;
|
|
11214
11717
|
createJournal(journal: {
|
|
11215
11718
|
code: string;
|
|
@@ -11224,6 +11727,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11224
11727
|
name: string;
|
|
11225
11728
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
11226
11729
|
counterpart_account?: string | null | undefined;
|
|
11730
|
+
unallocated_account?: string | null | undefined;
|
|
11227
11731
|
next_document_numbers: {
|
|
11228
11732
|
bookyear_name?: string | null | undefined;
|
|
11229
11733
|
next_document_number?: string | null | undefined;
|
|
@@ -11232,6 +11736,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11232
11736
|
}[] | null;
|
|
11233
11737
|
iban?: string | null | undefined;
|
|
11234
11738
|
currency?: string | null | undefined;
|
|
11739
|
+
other_currencies_allowed: boolean | null;
|
|
11740
|
+
blocked: boolean | null;
|
|
11235
11741
|
}>;
|
|
11236
11742
|
getVatCodes(params?: {
|
|
11237
11743
|
folder_id?: string | null | undefined;
|
|
@@ -11245,6 +11751,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11245
11751
|
deductible_account?: string | null | undefined;
|
|
11246
11752
|
payable_account?: string | null | undefined;
|
|
11247
11753
|
reversed: boolean | null;
|
|
11754
|
+
country?: string | null | undefined;
|
|
11248
11755
|
}[]>;
|
|
11249
11756
|
getMiscOperations(params?: {
|
|
11250
11757
|
date_from?: string | null | undefined;
|
|
@@ -11351,7 +11858,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11351
11858
|
number: string;
|
|
11352
11859
|
name: string;
|
|
11353
11860
|
active: boolean | null;
|
|
11354
|
-
type?: "vat" | "
|
|
11861
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
11355
11862
|
}[]>;
|
|
11356
11863
|
getBalanceOfAccounts(filter: {
|
|
11357
11864
|
accounts: string[];
|
|
@@ -11415,41 +11922,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11415
11922
|
reference?: string | null | undefined;
|
|
11416
11923
|
} | null | undefined;
|
|
11417
11924
|
}[]>;
|
|
11418
|
-
createFinancialEntryOld(financial_entry: {
|
|
11419
|
-
date: string;
|
|
11420
|
-
journal_id: string;
|
|
11421
|
-
currency: string;
|
|
11422
|
-
currency_exchange_rate: number | null;
|
|
11423
|
-
reference?: string | null | undefined;
|
|
11424
|
-
number?: string | null | undefined;
|
|
11425
|
-
items: {
|
|
11426
|
-
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
11427
|
-
account_number: string;
|
|
11428
|
-
partner_id?: string | null | undefined;
|
|
11429
|
-
amount: number;
|
|
11430
|
-
description?: string | null | undefined;
|
|
11431
|
-
}[];
|
|
11432
|
-
pdf?: string | null | undefined;
|
|
11433
|
-
}, params?: {
|
|
11434
|
-
folder_id?: string | null | undefined;
|
|
11435
|
-
financial_counterpart_account?: string | null | undefined;
|
|
11436
|
-
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
11437
|
-
date: string;
|
|
11438
|
-
journal_id: string;
|
|
11439
|
-
currency: string;
|
|
11440
|
-
currency_exchange_rate: number | null;
|
|
11441
|
-
reference?: string | null | undefined;
|
|
11442
|
-
id: string;
|
|
11443
|
-
number: string;
|
|
11444
|
-
items: {
|
|
11445
|
-
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
11446
|
-
account_number: string;
|
|
11447
|
-
partner_id?: string | null | undefined;
|
|
11448
|
-
amount: number;
|
|
11449
|
-
description?: string | null | undefined;
|
|
11450
|
-
counterpart_account: string;
|
|
11451
|
-
}[];
|
|
11452
|
-
}>;
|
|
11453
11925
|
createFinancialEntry(financial_entry: {
|
|
11454
11926
|
date: string;
|
|
11455
11927
|
journal_id: string;
|
|
@@ -11483,59 +11955,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11483
11955
|
counterpart_account: string;
|
|
11484
11956
|
}[];
|
|
11485
11957
|
}>;
|
|
11486
|
-
createJournalEntryOld(journal_entry: {
|
|
11487
|
-
reference?: string | null | undefined;
|
|
11488
|
-
due_date?: string | null | undefined;
|
|
11489
|
-
journal_id: string;
|
|
11490
|
-
name: string;
|
|
11491
|
-
date: string;
|
|
11492
|
-
items: {
|
|
11493
|
-
account_number: string;
|
|
11494
|
-
partner_id?: string | null | undefined;
|
|
11495
|
-
description?: string | null | undefined;
|
|
11496
|
-
debit: number;
|
|
11497
|
-
credit: number;
|
|
11498
|
-
currency: string;
|
|
11499
|
-
currency_exchange_rate: number | null;
|
|
11500
|
-
analytic_distribution: {
|
|
11501
|
-
analytic_plan: string;
|
|
11502
|
-
analytic_accounts: {
|
|
11503
|
-
analytic_account: string;
|
|
11504
|
-
percentage: number;
|
|
11505
|
-
}[];
|
|
11506
|
-
}[] | null;
|
|
11507
|
-
}[];
|
|
11508
|
-
pdf?: string | null | undefined;
|
|
11509
|
-
}, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
11510
|
-
reference?: string | null | undefined;
|
|
11511
|
-
due_date?: string | null | undefined;
|
|
11512
|
-
journal_id: string;
|
|
11513
|
-
name?: string | null | undefined;
|
|
11514
|
-
journal_name?: string | null | undefined;
|
|
11515
|
-
date: string | null;
|
|
11516
|
-
posted: boolean | null;
|
|
11517
|
-
id: string;
|
|
11518
|
-
items: {
|
|
11519
|
-
account_number: string;
|
|
11520
|
-
partner_id?: string | null | undefined;
|
|
11521
|
-
description?: string | null | undefined;
|
|
11522
|
-
debit: number;
|
|
11523
|
-
credit: number;
|
|
11524
|
-
currency: string;
|
|
11525
|
-
currency_exchange_rate: number | null;
|
|
11526
|
-
id: string;
|
|
11527
|
-
partner_name?: string | null | undefined;
|
|
11528
|
-
account_name: string;
|
|
11529
|
-
matching_numbers: string[] | null;
|
|
11530
|
-
analytic_distribution: {
|
|
11531
|
-
analytic_plan: string;
|
|
11532
|
-
analytic_accounts: {
|
|
11533
|
-
analytic_account: string;
|
|
11534
|
-
percentage: number;
|
|
11535
|
-
}[];
|
|
11536
|
-
}[] | null;
|
|
11537
|
-
}[] | null;
|
|
11538
|
-
}>;
|
|
11539
11958
|
createJournalEntry(journal_entry: {
|
|
11540
11959
|
reference?: string | null | undefined;
|
|
11541
11960
|
due_date?: string | null | undefined;
|
|
@@ -11546,7 +11965,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11546
11965
|
date: string;
|
|
11547
11966
|
items: {
|
|
11548
11967
|
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
11549
|
-
account
|
|
11968
|
+
account?: string | null | undefined;
|
|
11550
11969
|
force_general_account?: string | null | undefined;
|
|
11551
11970
|
prioritise_thirdparty_account: boolean | null;
|
|
11552
11971
|
description?: string | null | undefined;
|
|
@@ -11560,7 +11979,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11560
11979
|
}[];
|
|
11561
11980
|
}[] | null;
|
|
11562
11981
|
tax_code?: string | null | undefined;
|
|
11563
|
-
country?: string | null | undefined;
|
|
11564
11982
|
account_info?: {
|
|
11565
11983
|
account_number: string;
|
|
11566
11984
|
account_name: string;
|
|
@@ -11582,6 +12000,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11582
12000
|
date: string | null;
|
|
11583
12001
|
posted: boolean | null;
|
|
11584
12002
|
id: string;
|
|
12003
|
+
due_dates: {
|
|
12004
|
+
due_date: string;
|
|
12005
|
+
payment_method?: string | null | undefined;
|
|
12006
|
+
debit: number | null;
|
|
12007
|
+
credit: number | null;
|
|
12008
|
+
}[] | null;
|
|
11585
12009
|
items: {
|
|
11586
12010
|
account_number: string;
|
|
11587
12011
|
partner_id?: string | null | undefined;
|
|
@@ -11626,12 +12050,65 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11626
12050
|
[key: string]: unknown;
|
|
11627
12051
|
} | null | undefined;
|
|
11628
12052
|
}[]>;
|
|
12053
|
+
createExpense(expense: {
|
|
12054
|
+
employee_id: string;
|
|
12055
|
+
total: number;
|
|
12056
|
+
untaxed_amount: number;
|
|
12057
|
+
tax_amount: number;
|
|
12058
|
+
reference?: string | null | undefined;
|
|
12059
|
+
number?: string | null | undefined;
|
|
12060
|
+
currency: string;
|
|
12061
|
+
currency_exchange_rate: number | null;
|
|
12062
|
+
date: string;
|
|
12063
|
+
pdf?: string | null | undefined;
|
|
12064
|
+
lines: {
|
|
12065
|
+
total: number;
|
|
12066
|
+
untaxed_amount: number;
|
|
12067
|
+
tax_amount: number;
|
|
12068
|
+
description?: string | null | undefined;
|
|
12069
|
+
account_number: string;
|
|
12070
|
+
tax_rate: number;
|
|
12071
|
+
tax_id: string;
|
|
12072
|
+
}[];
|
|
12073
|
+
}, params?: {
|
|
12074
|
+
folder_id?: string | null | undefined;
|
|
12075
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
12076
|
+
employee_id: string;
|
|
12077
|
+
total: number;
|
|
12078
|
+
untaxed_amount: number;
|
|
12079
|
+
tax_amount: number;
|
|
12080
|
+
reference?: string | null | undefined;
|
|
12081
|
+
number?: string | null | undefined;
|
|
12082
|
+
currency: string;
|
|
12083
|
+
currency_exchange_rate: number | null;
|
|
12084
|
+
date: string;
|
|
12085
|
+
pdf?: string | null | undefined;
|
|
12086
|
+
lines: {
|
|
12087
|
+
total: number;
|
|
12088
|
+
untaxed_amount: number;
|
|
12089
|
+
tax_amount: number;
|
|
12090
|
+
description?: string | null | undefined;
|
|
12091
|
+
account_number: string;
|
|
12092
|
+
tax_rate: number;
|
|
12093
|
+
tax_id: string;
|
|
12094
|
+
}[];
|
|
12095
|
+
id: string;
|
|
12096
|
+
}>;
|
|
11629
12097
|
getFolders(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
11630
12098
|
id: string;
|
|
11631
12099
|
name: string;
|
|
11632
12100
|
selected: boolean | null;
|
|
11633
12101
|
vat?: string | null | undefined;
|
|
11634
12102
|
company_number?: string | null | undefined;
|
|
12103
|
+
main_currency?: string | null | undefined;
|
|
12104
|
+
addresses?: {
|
|
12105
|
+
street?: string | null | undefined;
|
|
12106
|
+
number?: string | null | undefined;
|
|
12107
|
+
box?: string | null | undefined;
|
|
12108
|
+
postal_code?: string | null | undefined;
|
|
12109
|
+
city?: string | null | undefined;
|
|
12110
|
+
country?: string | null | undefined;
|
|
12111
|
+
}[] | null | undefined;
|
|
11635
12112
|
}[]>;
|
|
11636
12113
|
getBookyears(params?: {
|
|
11637
12114
|
folder_id?: string | null | undefined;
|
|
@@ -11644,13 +12121,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11644
12121
|
createLedgerAccount(account: {
|
|
11645
12122
|
name: string;
|
|
11646
12123
|
number: string;
|
|
12124
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
11647
12125
|
}, params?: {
|
|
11648
12126
|
folder_id?: string | null | undefined;
|
|
11649
12127
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
11650
12128
|
number: string;
|
|
11651
12129
|
name: string;
|
|
11652
12130
|
active: boolean | null;
|
|
11653
|
-
type?: "vat" | "
|
|
12131
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
11654
12132
|
}>;
|
|
11655
12133
|
createBankAccount(bankAccount: {
|
|
11656
12134
|
code: string;
|
|
@@ -11671,6 +12149,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11671
12149
|
bank_name?: string | null | undefined;
|
|
11672
12150
|
journal_id?: string | null | undefined;
|
|
11673
12151
|
ledger_account?: string | null | undefined;
|
|
12152
|
+
unallocated_account?: string | null | undefined;
|
|
11674
12153
|
}>;
|
|
11675
12154
|
getJournalEntry(journalEntryId: string, params?: {
|
|
11676
12155
|
folder_id?: string | null | undefined;
|
|
@@ -11683,6 +12162,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11683
12162
|
date: string | null;
|
|
11684
12163
|
posted: boolean | null;
|
|
11685
12164
|
id: string;
|
|
12165
|
+
due_dates: {
|
|
12166
|
+
due_date: string;
|
|
12167
|
+
payment_method?: string | null | undefined;
|
|
12168
|
+
debit: number | null;
|
|
12169
|
+
credit: number | null;
|
|
12170
|
+
}[] | null;
|
|
11686
12171
|
items: {
|
|
11687
12172
|
account_number: string;
|
|
11688
12173
|
partner_id?: string | null | undefined;
|
|
@@ -11704,6 +12189,38 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11704
12189
|
}[] | null;
|
|
11705
12190
|
}[] | null;
|
|
11706
12191
|
}>;
|
|
12192
|
+
getPaymentMethods(params?: {
|
|
12193
|
+
page?: number | undefined;
|
|
12194
|
+
size?: number | undefined;
|
|
12195
|
+
folder_id?: string | null | undefined;
|
|
12196
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
12197
|
+
items: {
|
|
12198
|
+
id: string;
|
|
12199
|
+
name?: string | null | undefined;
|
|
12200
|
+
}[];
|
|
12201
|
+
total: number;
|
|
12202
|
+
page: number;
|
|
12203
|
+
size: number;
|
|
12204
|
+
}>;
|
|
12205
|
+
createInvoicePayment(body: {
|
|
12206
|
+
date: string;
|
|
12207
|
+
payment_method_id: string;
|
|
12208
|
+
currency: string;
|
|
12209
|
+
currency_exchange_rate: number | null;
|
|
12210
|
+
reference?: string | null | undefined;
|
|
12211
|
+
number?: string | null | undefined;
|
|
12212
|
+
items: {
|
|
12213
|
+
invoice_id: string;
|
|
12214
|
+
amount: number;
|
|
12215
|
+
}[];
|
|
12216
|
+
}, params?: {
|
|
12217
|
+
folder_id?: string | null | undefined;
|
|
12218
|
+
} | undefined): import("../types/api").RequestData<{
|
|
12219
|
+
headers: {
|
|
12220
|
+
[name: string]: unknown;
|
|
12221
|
+
};
|
|
12222
|
+
content?: undefined;
|
|
12223
|
+
}>;
|
|
11707
12224
|
}>;
|
|
11708
12225
|
invoicing: import("../types/api").ApiFor<{
|
|
11709
12226
|
getInvoices(params?: {
|
|
@@ -11774,6 +12291,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11774
12291
|
} | null | undefined;
|
|
11775
12292
|
last_updated_on?: string | null | undefined;
|
|
11776
12293
|
outstanding_amount?: number | null | undefined;
|
|
12294
|
+
last_payment_date?: string | null | undefined;
|
|
11777
12295
|
accounting_date?: string | null | undefined;
|
|
11778
12296
|
payment_method_id?: string | null | undefined;
|
|
11779
12297
|
currency_exchange_rate: number | null;
|
|
@@ -11841,6 +12359,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11841
12359
|
} | null | undefined;
|
|
11842
12360
|
last_updated_on?: string | null | undefined;
|
|
11843
12361
|
outstanding_amount?: number | null | undefined;
|
|
12362
|
+
last_payment_date?: string | null | undefined;
|
|
11844
12363
|
accounting_date?: string | null | undefined;
|
|
11845
12364
|
payment_method_id?: string | null | undefined;
|
|
11846
12365
|
currency_exchange_rate: number | null;
|
|
@@ -11961,6 +12480,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11961
12480
|
} | null | undefined;
|
|
11962
12481
|
last_updated_on?: string | null | undefined;
|
|
11963
12482
|
outstanding_amount?: number | null | undefined;
|
|
12483
|
+
last_payment_date?: string | null | undefined;
|
|
11964
12484
|
accounting_date?: string | null | undefined;
|
|
11965
12485
|
payment_method_id?: string | null | undefined;
|
|
11966
12486
|
currency_exchange_rate: number | null;
|
|
@@ -12288,6 +12808,125 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12288
12808
|
};
|
|
12289
12809
|
name: string;
|
|
12290
12810
|
}[]>;
|
|
12811
|
+
getBankAccounts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
12812
|
+
items: {
|
|
12813
|
+
id: string;
|
|
12814
|
+
source_ref: {
|
|
12815
|
+
id?: string | null | undefined;
|
|
12816
|
+
model?: string | null | undefined;
|
|
12817
|
+
};
|
|
12818
|
+
name: string;
|
|
12819
|
+
iban?: string | null | undefined;
|
|
12820
|
+
currency?: string | null | undefined;
|
|
12821
|
+
balance?: number | null | undefined;
|
|
12822
|
+
}[];
|
|
12823
|
+
total: number;
|
|
12824
|
+
page: number;
|
|
12825
|
+
size: number;
|
|
12826
|
+
}>;
|
|
12827
|
+
getBankTransactions(params: {
|
|
12828
|
+
date_from?: string | null | undefined;
|
|
12829
|
+
date_to?: string | null | undefined;
|
|
12830
|
+
bank_account_id: string;
|
|
12831
|
+
status?: "draft" | "done" | null | undefined;
|
|
12832
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
12833
|
+
items: {
|
|
12834
|
+
id: string;
|
|
12835
|
+
source_ref: {
|
|
12836
|
+
id?: string | null | undefined;
|
|
12837
|
+
model?: string | null | undefined;
|
|
12838
|
+
};
|
|
12839
|
+
status: "draft" | "done";
|
|
12840
|
+
bank_account_id: string;
|
|
12841
|
+
amount: number;
|
|
12842
|
+
date: string;
|
|
12843
|
+
description?: string | null | undefined;
|
|
12844
|
+
currency: string;
|
|
12845
|
+
currency_exchange_rate: number | null;
|
|
12846
|
+
accounting_code?: string | null | undefined;
|
|
12847
|
+
linked_documents: {
|
|
12848
|
+
id: string;
|
|
12849
|
+
source_ref: {
|
|
12850
|
+
id?: string | null | undefined;
|
|
12851
|
+
model?: string | null | undefined;
|
|
12852
|
+
};
|
|
12853
|
+
amount: number;
|
|
12854
|
+
type: "invoice" | "other";
|
|
12855
|
+
}[] | null;
|
|
12856
|
+
}[];
|
|
12857
|
+
total: number;
|
|
12858
|
+
page: number;
|
|
12859
|
+
size: number;
|
|
12860
|
+
}>;
|
|
12861
|
+
uploadDocument(document: {
|
|
12862
|
+
base64_string: string;
|
|
12863
|
+
document_type: "customer_document" | "supplier_document" | "employee_expense";
|
|
12864
|
+
}, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
12865
|
+
id: string;
|
|
12866
|
+
source_ref: {
|
|
12867
|
+
id?: string | null | undefined;
|
|
12868
|
+
model?: string | null | undefined;
|
|
12869
|
+
};
|
|
12870
|
+
currency?: string | null | undefined;
|
|
12871
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
12872
|
+
status?: "draft" | "posted" | "cancelled" | "paid" | null | undefined;
|
|
12873
|
+
invoice_date?: string | null | undefined;
|
|
12874
|
+
tax_amount?: number | null | undefined;
|
|
12875
|
+
untaxed_amount?: number | null | undefined;
|
|
12876
|
+
total?: number | null | undefined;
|
|
12877
|
+
lines: {
|
|
12878
|
+
description?: string | null | undefined;
|
|
12879
|
+
unit_price: number;
|
|
12880
|
+
quantity: number;
|
|
12881
|
+
discount_amount: number;
|
|
12882
|
+
tax_amount: number;
|
|
12883
|
+
untaxed_amount: number;
|
|
12884
|
+
total: number;
|
|
12885
|
+
tax_rate?: number | null | undefined;
|
|
12886
|
+
account_number?: string | null | undefined;
|
|
12887
|
+
tax_id?: string | null | undefined;
|
|
12888
|
+
tax_exemption_reason?: string | null | undefined;
|
|
12889
|
+
unit_of_measure?: string | null | undefined;
|
|
12890
|
+
product_id?: string | null | undefined;
|
|
12891
|
+
product_code?: string | null | undefined;
|
|
12892
|
+
product_name?: string | null | undefined;
|
|
12893
|
+
}[] | null;
|
|
12894
|
+
partner_id?: string | null | undefined;
|
|
12895
|
+
invoice_number?: string | null | undefined;
|
|
12896
|
+
due_date?: string | null | undefined;
|
|
12897
|
+
reference?: string | null | undefined;
|
|
12898
|
+
payment_communication?: string | null | undefined;
|
|
12899
|
+
customer_memo?: string | null | undefined;
|
|
12900
|
+
journal_ref?: {
|
|
12901
|
+
id?: string | null | undefined;
|
|
12902
|
+
model?: string | null | undefined;
|
|
12903
|
+
name?: string | null | undefined;
|
|
12904
|
+
} | null | undefined;
|
|
12905
|
+
italian_specificities?: {
|
|
12906
|
+
stamp_duty_amount?: number | null | undefined;
|
|
12907
|
+
withholding_tax?: {
|
|
12908
|
+
rate: number;
|
|
12909
|
+
amount: number;
|
|
12910
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | null | undefined;
|
|
12911
|
+
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;
|
|
12912
|
+
} | null | undefined;
|
|
12913
|
+
welfare_fund?: {
|
|
12914
|
+
rate: number;
|
|
12915
|
+
amount: number;
|
|
12916
|
+
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;
|
|
12917
|
+
} | null | undefined;
|
|
12918
|
+
payment_reporting?: {
|
|
12919
|
+
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;
|
|
12920
|
+
conditions?: "TP01" | "TP02" | "TP03" | null | undefined;
|
|
12921
|
+
} | null | undefined;
|
|
12922
|
+
} | null | undefined;
|
|
12923
|
+
last_updated_on?: string | null | undefined;
|
|
12924
|
+
outstanding_amount?: number | null | undefined;
|
|
12925
|
+
last_payment_date?: string | null | undefined;
|
|
12926
|
+
accounting_date?: string | null | undefined;
|
|
12927
|
+
payment_method_id?: string | null | undefined;
|
|
12928
|
+
currency_exchange_rate: number | null;
|
|
12929
|
+
}>;
|
|
12291
12930
|
}>;
|
|
12292
12931
|
ecommerce: import("../types/api").ApiFor<{
|
|
12293
12932
|
getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -12319,7 +12958,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12319
12958
|
}[] | null;
|
|
12320
12959
|
created_on?: string | null | undefined;
|
|
12321
12960
|
}[]>;
|
|
12322
|
-
getProducts(params?: {
|
|
12961
|
+
getProducts(params?: {
|
|
12962
|
+
updated_after?: string | null | undefined;
|
|
12963
|
+
sku?: string | null | undefined;
|
|
12964
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
12323
12965
|
id: string;
|
|
12324
12966
|
source_ref: {
|
|
12325
12967
|
id?: string | null | undefined;
|
|
@@ -12333,6 +12975,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12333
12975
|
name: string;
|
|
12334
12976
|
}[] | null;
|
|
12335
12977
|
created_on?: string | null | undefined;
|
|
12978
|
+
last_updated_on?: string | null | undefined;
|
|
12336
12979
|
variants: {
|
|
12337
12980
|
id: string;
|
|
12338
12981
|
source_ref: {
|
|
@@ -12374,6 +13017,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12374
13017
|
}[] | null;
|
|
12375
13018
|
}[] | null;
|
|
12376
13019
|
status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
|
|
13020
|
+
sku?: string | null | undefined;
|
|
12377
13021
|
common_attributes: {
|
|
12378
13022
|
name: string;
|
|
12379
13023
|
values: string[];
|
|
@@ -12431,6 +13075,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12431
13075
|
name: string;
|
|
12432
13076
|
}[] | null;
|
|
12433
13077
|
created_on?: string | null | undefined;
|
|
13078
|
+
last_updated_on?: string | null | undefined;
|
|
12434
13079
|
variants: {
|
|
12435
13080
|
id: string;
|
|
12436
13081
|
source_ref: {
|
|
@@ -12472,6 +13117,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12472
13117
|
}[] | null;
|
|
12473
13118
|
}[] | null;
|
|
12474
13119
|
status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
|
|
13120
|
+
sku?: string | null | undefined;
|
|
12475
13121
|
common_attributes: {
|
|
12476
13122
|
name: string;
|
|
12477
13123
|
values: string[];
|
|
@@ -12661,6 +13307,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12661
13307
|
amount: number;
|
|
12662
13308
|
}[] | null;
|
|
12663
13309
|
gift_card: boolean | null;
|
|
13310
|
+
is_gift: boolean | null;
|
|
12664
13311
|
}[];
|
|
12665
13312
|
other_fees: {
|
|
12666
13313
|
id: string;
|
|
@@ -12938,6 +13585,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12938
13585
|
amount: number;
|
|
12939
13586
|
}[] | null;
|
|
12940
13587
|
gift_card: boolean | null;
|
|
13588
|
+
is_gift: boolean | null;
|
|
12941
13589
|
}[];
|
|
12942
13590
|
other_fees: {
|
|
12943
13591
|
id: string;
|
|
@@ -13176,6 +13824,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13176
13824
|
amount: number;
|
|
13177
13825
|
}[] | null;
|
|
13178
13826
|
gift_card: boolean | null;
|
|
13827
|
+
is_gift: boolean | null;
|
|
13179
13828
|
}[];
|
|
13180
13829
|
other_fees: {
|
|
13181
13830
|
id: string;
|
|
@@ -13434,6 +14083,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13434
14083
|
description?: string | null | undefined;
|
|
13435
14084
|
display_order: number;
|
|
13436
14085
|
challenge_question?: string | null | undefined;
|
|
14086
|
+
conditions?: {
|
|
14087
|
+
[key: string]: {
|
|
14088
|
+
[key: string]: unknown;
|
|
14089
|
+
};
|
|
14090
|
+
} | null | undefined;
|
|
13437
14091
|
values: {
|
|
13438
14092
|
source_id?: string | null | undefined;
|
|
13439
14093
|
target_id?: string | null | undefined;
|
|
@@ -13444,6 +14098,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13444
14098
|
link_metadata?: {
|
|
13445
14099
|
[key: string]: unknown;
|
|
13446
14100
|
} | null | undefined;
|
|
14101
|
+
link_presync?: {
|
|
14102
|
+
[key: string]: unknown;
|
|
14103
|
+
} | null | undefined;
|
|
13447
14104
|
enabled_flows?: {
|
|
13448
14105
|
name: string;
|
|
13449
14106
|
description?: string | null | undefined;
|
|
@@ -13696,7 +14353,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13696
14353
|
}[];
|
|
13697
14354
|
items: {
|
|
13698
14355
|
id: string;
|
|
13699
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
14356
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
13700
14357
|
menu_id?: string | null | undefined;
|
|
13701
14358
|
quantity: number;
|
|
13702
14359
|
unit_price: number;
|
|
@@ -13774,7 +14431,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13774
14431
|
}[];
|
|
13775
14432
|
items: {
|
|
13776
14433
|
id: string;
|
|
13777
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
14434
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
13778
14435
|
menu_id?: string | null | undefined;
|
|
13779
14436
|
quantity: number;
|
|
13780
14437
|
unit_price: number;
|
|
@@ -13901,6 +14558,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13901
14558
|
payments: {
|
|
13902
14559
|
payment_method_id?: string | null | undefined;
|
|
13903
14560
|
payment_method_name?: string | null | undefined;
|
|
14561
|
+
tip: number | null;
|
|
13904
14562
|
total: number;
|
|
13905
14563
|
}[] | null;
|
|
13906
14564
|
taxes: {
|
|
@@ -13961,7 +14619,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13961
14619
|
}[];
|
|
13962
14620
|
items: {
|
|
13963
14621
|
id: string;
|
|
13964
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
14622
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
13965
14623
|
menu_id?: string | null | undefined;
|
|
13966
14624
|
quantity: number;
|
|
13967
14625
|
unit_price: number;
|
|
@@ -13987,6 +14645,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13987
14645
|
ledger_account_code?: string | null | undefined;
|
|
13988
14646
|
posting_account_code?: string | null | undefined;
|
|
13989
14647
|
}[]>;
|
|
14648
|
+
getObjectives(params: {
|
|
14649
|
+
page?: number | undefined;
|
|
14650
|
+
size?: number | undefined;
|
|
14651
|
+
date_from: string;
|
|
14652
|
+
date_to: string;
|
|
14653
|
+
location_id?: string | null | undefined;
|
|
14654
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
14655
|
+
items: {
|
|
14656
|
+
total: number;
|
|
14657
|
+
tax_amount: number;
|
|
14658
|
+
date: string;
|
|
14659
|
+
}[];
|
|
14660
|
+
total: number;
|
|
14661
|
+
page: number;
|
|
14662
|
+
size: number;
|
|
14663
|
+
}>;
|
|
13990
14664
|
}>;
|
|
13991
14665
|
pms: import("../types/api").ApiFor<{
|
|
13992
14666
|
getLocations(rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
@@ -14043,7 +14717,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14043
14717
|
id?: string | null | undefined;
|
|
14044
14718
|
model?: string | null | undefined;
|
|
14045
14719
|
};
|
|
14046
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
14720
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
14047
14721
|
menu_id?: string | null | undefined;
|
|
14048
14722
|
quantity: number;
|
|
14049
14723
|
unit_price: number;
|
|
@@ -14135,6 +14809,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14135
14809
|
payments: {
|
|
14136
14810
|
payment_method_id?: string | null | undefined;
|
|
14137
14811
|
payment_method_name?: string | null | undefined;
|
|
14812
|
+
tip: number | null;
|
|
14138
14813
|
total: number;
|
|
14139
14814
|
}[] | null;
|
|
14140
14815
|
taxes: {
|
|
@@ -14167,6 +14842,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14167
14842
|
model?: string | null | undefined;
|
|
14168
14843
|
};
|
|
14169
14844
|
} | null | undefined;
|
|
14845
|
+
description?: string | null | undefined;
|
|
14170
14846
|
}[]>;
|
|
14171
14847
|
getAccountingCategories(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
14172
14848
|
id: string;
|
|
@@ -14243,7 +14919,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14243
14919
|
id?: string | null | undefined;
|
|
14244
14920
|
model?: string | null | undefined;
|
|
14245
14921
|
};
|
|
14246
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
14922
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
14247
14923
|
menu_id?: string | null | undefined;
|
|
14248
14924
|
quantity: number;
|
|
14249
14925
|
unit_price: number;
|
|
@@ -14279,6 +14955,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14279
14955
|
model?: string | null | undefined;
|
|
14280
14956
|
};
|
|
14281
14957
|
} | null | undefined;
|
|
14958
|
+
description?: string | null | undefined;
|
|
14282
14959
|
}[];
|
|
14283
14960
|
service_id?: string | null | undefined;
|
|
14284
14961
|
reservation?: {
|
|
@@ -14344,7 +15021,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14344
15021
|
id?: string | null | undefined;
|
|
14345
15022
|
model?: string | null | undefined;
|
|
14346
15023
|
};
|
|
14347
|
-
|
|
15024
|
+
amount: number;
|
|
14348
15025
|
fee: number;
|
|
14349
15026
|
currency: string;
|
|
14350
15027
|
exchange_rate: number;
|
|
@@ -14857,7 +15534,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14857
15534
|
customer_memo?: string | null | undefined;
|
|
14858
15535
|
invoice_date: string;
|
|
14859
15536
|
due_date: string;
|
|
14860
|
-
partner_id
|
|
15537
|
+
partner_id?: string | null | undefined;
|
|
14861
15538
|
journal_id?: string | null | undefined;
|
|
14862
15539
|
status: "draft" | "posted" | null;
|
|
14863
15540
|
pdf?: string | null | undefined;
|
|
@@ -14969,6 +15646,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14969
15646
|
country?: string | null | undefined;
|
|
14970
15647
|
}[] | null;
|
|
14971
15648
|
} | null | undefined;
|
|
15649
|
+
due_dates: {
|
|
15650
|
+
due_date: string;
|
|
15651
|
+
payment_method?: string | null | undefined;
|
|
15652
|
+
amount: number;
|
|
15653
|
+
}[] | null;
|
|
14972
15654
|
lines: {
|
|
14973
15655
|
line_number: number | null;
|
|
14974
15656
|
unit_price: number;
|
|
@@ -14996,7 +15678,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14996
15678
|
customer_memo?: string | null | undefined;
|
|
14997
15679
|
invoice_date: string;
|
|
14998
15680
|
due_date: string;
|
|
14999
|
-
partner_id
|
|
15681
|
+
partner_id?: string | null | undefined;
|
|
15000
15682
|
journal_id?: string | null | undefined;
|
|
15001
15683
|
status: "draft" | "posted" | null;
|
|
15002
15684
|
pdf?: string | null | undefined;
|
|
@@ -15114,6 +15796,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15114
15796
|
country?: string | null | undefined;
|
|
15115
15797
|
}[] | null;
|
|
15116
15798
|
} | null | undefined;
|
|
15799
|
+
due_dates: {
|
|
15800
|
+
due_date: string;
|
|
15801
|
+
payment_method?: string | null | undefined;
|
|
15802
|
+
amount: number;
|
|
15803
|
+
}[] | null;
|
|
15117
15804
|
lines: {
|
|
15118
15805
|
line_number: number | null;
|
|
15119
15806
|
unit_price: number;
|
|
@@ -15213,6 +15900,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15213
15900
|
country?: string | null | undefined;
|
|
15214
15901
|
}[] | null;
|
|
15215
15902
|
} | null | undefined;
|
|
15903
|
+
due_dates: {
|
|
15904
|
+
due_date: string;
|
|
15905
|
+
payment_method?: string | null | undefined;
|
|
15906
|
+
amount: number;
|
|
15907
|
+
}[] | null;
|
|
15216
15908
|
lines: {
|
|
15217
15909
|
line_number: number | null;
|
|
15218
15910
|
unit_price: number;
|
|
@@ -15301,6 +15993,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15301
15993
|
country?: string | null | undefined;
|
|
15302
15994
|
}[] | null;
|
|
15303
15995
|
} | null | undefined;
|
|
15996
|
+
due_dates: {
|
|
15997
|
+
due_date: string;
|
|
15998
|
+
payment_method?: string | null | undefined;
|
|
15999
|
+
amount: number;
|
|
16000
|
+
}[] | null;
|
|
15304
16001
|
lines: {
|
|
15305
16002
|
line_number: number | null;
|
|
15306
16003
|
unit_price: number;
|
|
@@ -15389,6 +16086,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15389
16086
|
country?: string | null | undefined;
|
|
15390
16087
|
}[] | null;
|
|
15391
16088
|
} | null | undefined;
|
|
16089
|
+
due_dates: {
|
|
16090
|
+
due_date: string;
|
|
16091
|
+
payment_method?: string | null | undefined;
|
|
16092
|
+
amount: number;
|
|
16093
|
+
}[] | null;
|
|
15392
16094
|
lines: {
|
|
15393
16095
|
line_number: number | null;
|
|
15394
16096
|
unit_price: number;
|
|
@@ -15488,6 +16190,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15488
16190
|
country?: string | null | undefined;
|
|
15489
16191
|
}[] | null;
|
|
15490
16192
|
} | null | undefined;
|
|
16193
|
+
due_dates: {
|
|
16194
|
+
due_date: string;
|
|
16195
|
+
payment_method?: string | null | undefined;
|
|
16196
|
+
amount: number;
|
|
16197
|
+
}[] | null;
|
|
15491
16198
|
lines: {
|
|
15492
16199
|
line_number: number | null;
|
|
15493
16200
|
unit_price: number;
|
|
@@ -15646,6 +16353,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15646
16353
|
date: string | null;
|
|
15647
16354
|
posted: boolean | null;
|
|
15648
16355
|
id: string;
|
|
16356
|
+
due_dates: {
|
|
16357
|
+
due_date: string;
|
|
16358
|
+
payment_method?: string | null | undefined;
|
|
16359
|
+
debit: number | null;
|
|
16360
|
+
credit: number | null;
|
|
16361
|
+
}[] | null;
|
|
15649
16362
|
items: {
|
|
15650
16363
|
account_number: string;
|
|
15651
16364
|
partner_id?: string | null | undefined;
|
|
@@ -15679,6 +16392,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15679
16392
|
date: string | null;
|
|
15680
16393
|
posted: boolean | null;
|
|
15681
16394
|
id: string;
|
|
16395
|
+
due_dates: {
|
|
16396
|
+
due_date: string;
|
|
16397
|
+
payment_method?: string | null | undefined;
|
|
16398
|
+
debit: number | null;
|
|
16399
|
+
credit: number | null;
|
|
16400
|
+
}[] | null;
|
|
15682
16401
|
items: {
|
|
15683
16402
|
account_number: string;
|
|
15684
16403
|
partner_id?: string | null | undefined;
|
|
@@ -15726,6 +16445,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15726
16445
|
name: string;
|
|
15727
16446
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
15728
16447
|
counterpart_account?: string | null | undefined;
|
|
16448
|
+
unallocated_account?: string | null | undefined;
|
|
15729
16449
|
next_document_numbers: {
|
|
15730
16450
|
bookyear_name?: string | null | undefined;
|
|
15731
16451
|
next_document_number?: string | null | undefined;
|
|
@@ -15734,6 +16454,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15734
16454
|
}[] | null;
|
|
15735
16455
|
iban?: string | null | undefined;
|
|
15736
16456
|
currency?: string | null | undefined;
|
|
16457
|
+
other_currencies_allowed: boolean | null;
|
|
16458
|
+
blocked: boolean | null;
|
|
15737
16459
|
}[]>;
|
|
15738
16460
|
createJournal(journal: {
|
|
15739
16461
|
code: string;
|
|
@@ -15748,6 +16470,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15748
16470
|
name: string;
|
|
15749
16471
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
15750
16472
|
counterpart_account?: string | null | undefined;
|
|
16473
|
+
unallocated_account?: string | null | undefined;
|
|
15751
16474
|
next_document_numbers: {
|
|
15752
16475
|
bookyear_name?: string | null | undefined;
|
|
15753
16476
|
next_document_number?: string | null | undefined;
|
|
@@ -15756,6 +16479,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15756
16479
|
}[] | null;
|
|
15757
16480
|
iban?: string | null | undefined;
|
|
15758
16481
|
currency?: string | null | undefined;
|
|
16482
|
+
other_currencies_allowed: boolean | null;
|
|
16483
|
+
blocked: boolean | null;
|
|
15759
16484
|
}>;
|
|
15760
16485
|
getVatCodes(params?: {
|
|
15761
16486
|
folder_id?: string | null | undefined;
|
|
@@ -15769,6 +16494,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15769
16494
|
deductible_account?: string | null | undefined;
|
|
15770
16495
|
payable_account?: string | null | undefined;
|
|
15771
16496
|
reversed: boolean | null;
|
|
16497
|
+
country?: string | null | undefined;
|
|
15772
16498
|
}[]>;
|
|
15773
16499
|
getMiscOperations(params?: {
|
|
15774
16500
|
date_from?: string | null | undefined;
|
|
@@ -15875,7 +16601,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15875
16601
|
number: string;
|
|
15876
16602
|
name: string;
|
|
15877
16603
|
active: boolean | null;
|
|
15878
|
-
type?: "vat" | "
|
|
16604
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
15879
16605
|
}[]>;
|
|
15880
16606
|
getBalanceOfAccounts(filter: {
|
|
15881
16607
|
accounts: string[];
|
|
@@ -15939,41 +16665,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15939
16665
|
reference?: string | null | undefined;
|
|
15940
16666
|
} | null | undefined;
|
|
15941
16667
|
}[]>;
|
|
15942
|
-
createFinancialEntryOld(financial_entry: {
|
|
15943
|
-
date: string;
|
|
15944
|
-
journal_id: string;
|
|
15945
|
-
currency: string;
|
|
15946
|
-
currency_exchange_rate: number | null;
|
|
15947
|
-
reference?: string | null | undefined;
|
|
15948
|
-
number?: string | null | undefined;
|
|
15949
|
-
items: {
|
|
15950
|
-
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
15951
|
-
account_number: string;
|
|
15952
|
-
partner_id?: string | null | undefined;
|
|
15953
|
-
amount: number;
|
|
15954
|
-
description?: string | null | undefined;
|
|
15955
|
-
}[];
|
|
15956
|
-
pdf?: string | null | undefined;
|
|
15957
|
-
}, params?: {
|
|
15958
|
-
folder_id?: string | null | undefined;
|
|
15959
|
-
financial_counterpart_account?: string | null | undefined;
|
|
15960
|
-
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
15961
|
-
date: string;
|
|
15962
|
-
journal_id: string;
|
|
15963
|
-
currency: string;
|
|
15964
|
-
currency_exchange_rate: number | null;
|
|
15965
|
-
reference?: string | null | undefined;
|
|
15966
|
-
id: string;
|
|
15967
|
-
number: string;
|
|
15968
|
-
items: {
|
|
15969
|
-
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
15970
|
-
account_number: string;
|
|
15971
|
-
partner_id?: string | null | undefined;
|
|
15972
|
-
amount: number;
|
|
15973
|
-
description?: string | null | undefined;
|
|
15974
|
-
counterpart_account: string;
|
|
15975
|
-
}[];
|
|
15976
|
-
}>;
|
|
15977
16668
|
createFinancialEntry(financial_entry: {
|
|
15978
16669
|
date: string;
|
|
15979
16670
|
journal_id: string;
|
|
@@ -16007,59 +16698,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16007
16698
|
counterpart_account: string;
|
|
16008
16699
|
}[];
|
|
16009
16700
|
}>;
|
|
16010
|
-
createJournalEntryOld(journal_entry: {
|
|
16011
|
-
reference?: string | null | undefined;
|
|
16012
|
-
due_date?: string | null | undefined;
|
|
16013
|
-
journal_id: string;
|
|
16014
|
-
name: string;
|
|
16015
|
-
date: string;
|
|
16016
|
-
items: {
|
|
16017
|
-
account_number: string;
|
|
16018
|
-
partner_id?: string | null | undefined;
|
|
16019
|
-
description?: string | null | undefined;
|
|
16020
|
-
debit: number;
|
|
16021
|
-
credit: number;
|
|
16022
|
-
currency: string;
|
|
16023
|
-
currency_exchange_rate: number | null;
|
|
16024
|
-
analytic_distribution: {
|
|
16025
|
-
analytic_plan: string;
|
|
16026
|
-
analytic_accounts: {
|
|
16027
|
-
analytic_account: string;
|
|
16028
|
-
percentage: number;
|
|
16029
|
-
}[];
|
|
16030
|
-
}[] | null;
|
|
16031
|
-
}[];
|
|
16032
|
-
pdf?: string | null | undefined;
|
|
16033
|
-
}, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
16034
|
-
reference?: string | null | undefined;
|
|
16035
|
-
due_date?: string | null | undefined;
|
|
16036
|
-
journal_id: string;
|
|
16037
|
-
name?: string | null | undefined;
|
|
16038
|
-
journal_name?: string | null | undefined;
|
|
16039
|
-
date: string | null;
|
|
16040
|
-
posted: boolean | null;
|
|
16041
|
-
id: string;
|
|
16042
|
-
items: {
|
|
16043
|
-
account_number: string;
|
|
16044
|
-
partner_id?: string | null | undefined;
|
|
16045
|
-
description?: string | null | undefined;
|
|
16046
|
-
debit: number;
|
|
16047
|
-
credit: number;
|
|
16048
|
-
currency: string;
|
|
16049
|
-
currency_exchange_rate: number | null;
|
|
16050
|
-
id: string;
|
|
16051
|
-
partner_name?: string | null | undefined;
|
|
16052
|
-
account_name: string;
|
|
16053
|
-
matching_numbers: string[] | null;
|
|
16054
|
-
analytic_distribution: {
|
|
16055
|
-
analytic_plan: string;
|
|
16056
|
-
analytic_accounts: {
|
|
16057
|
-
analytic_account: string;
|
|
16058
|
-
percentage: number;
|
|
16059
|
-
}[];
|
|
16060
|
-
}[] | null;
|
|
16061
|
-
}[] | null;
|
|
16062
|
-
}>;
|
|
16063
16701
|
createJournalEntry(journal_entry: {
|
|
16064
16702
|
reference?: string | null | undefined;
|
|
16065
16703
|
due_date?: string | null | undefined;
|
|
@@ -16070,7 +16708,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16070
16708
|
date: string;
|
|
16071
16709
|
items: {
|
|
16072
16710
|
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
16073
|
-
account
|
|
16711
|
+
account?: string | null | undefined;
|
|
16074
16712
|
force_general_account?: string | null | undefined;
|
|
16075
16713
|
prioritise_thirdparty_account: boolean | null;
|
|
16076
16714
|
description?: string | null | undefined;
|
|
@@ -16084,7 +16722,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16084
16722
|
}[];
|
|
16085
16723
|
}[] | null;
|
|
16086
16724
|
tax_code?: string | null | undefined;
|
|
16087
|
-
country?: string | null | undefined;
|
|
16088
16725
|
account_info?: {
|
|
16089
16726
|
account_number: string;
|
|
16090
16727
|
account_name: string;
|
|
@@ -16106,6 +16743,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16106
16743
|
date: string | null;
|
|
16107
16744
|
posted: boolean | null;
|
|
16108
16745
|
id: string;
|
|
16746
|
+
due_dates: {
|
|
16747
|
+
due_date: string;
|
|
16748
|
+
payment_method?: string | null | undefined;
|
|
16749
|
+
debit: number | null;
|
|
16750
|
+
credit: number | null;
|
|
16751
|
+
}[] | null;
|
|
16109
16752
|
items: {
|
|
16110
16753
|
account_number: string;
|
|
16111
16754
|
partner_id?: string | null | undefined;
|
|
@@ -16143,19 +16786,72 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16143
16786
|
}[];
|
|
16144
16787
|
}, params?: {
|
|
16145
16788
|
folder_id?: string | null | undefined;
|
|
16146
|
-
} | undefined): import("../types/api").RequestData<{
|
|
16147
|
-
matching_number?: string | null | undefined;
|
|
16148
|
-
processed: boolean;
|
|
16149
|
-
error_msg?: {
|
|
16150
|
-
[key: string]: unknown;
|
|
16151
|
-
} | null | undefined;
|
|
16152
|
-
}[]>;
|
|
16789
|
+
} | undefined): import("../types/api").RequestData<{
|
|
16790
|
+
matching_number?: string | null | undefined;
|
|
16791
|
+
processed: boolean;
|
|
16792
|
+
error_msg?: {
|
|
16793
|
+
[key: string]: unknown;
|
|
16794
|
+
} | null | undefined;
|
|
16795
|
+
}[]>;
|
|
16796
|
+
createExpense(expense: {
|
|
16797
|
+
employee_id: string;
|
|
16798
|
+
total: number;
|
|
16799
|
+
untaxed_amount: number;
|
|
16800
|
+
tax_amount: number;
|
|
16801
|
+
reference?: string | null | undefined;
|
|
16802
|
+
number?: string | null | undefined;
|
|
16803
|
+
currency: string;
|
|
16804
|
+
currency_exchange_rate: number | null;
|
|
16805
|
+
date: string;
|
|
16806
|
+
pdf?: string | null | undefined;
|
|
16807
|
+
lines: {
|
|
16808
|
+
total: number;
|
|
16809
|
+
untaxed_amount: number;
|
|
16810
|
+
tax_amount: number;
|
|
16811
|
+
description?: string | null | undefined;
|
|
16812
|
+
account_number: string;
|
|
16813
|
+
tax_rate: number;
|
|
16814
|
+
tax_id: string;
|
|
16815
|
+
}[];
|
|
16816
|
+
}, params?: {
|
|
16817
|
+
folder_id?: string | null | undefined;
|
|
16818
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
16819
|
+
employee_id: string;
|
|
16820
|
+
total: number;
|
|
16821
|
+
untaxed_amount: number;
|
|
16822
|
+
tax_amount: number;
|
|
16823
|
+
reference?: string | null | undefined;
|
|
16824
|
+
number?: string | null | undefined;
|
|
16825
|
+
currency: string;
|
|
16826
|
+
currency_exchange_rate: number | null;
|
|
16827
|
+
date: string;
|
|
16828
|
+
pdf?: string | null | undefined;
|
|
16829
|
+
lines: {
|
|
16830
|
+
total: number;
|
|
16831
|
+
untaxed_amount: number;
|
|
16832
|
+
tax_amount: number;
|
|
16833
|
+
description?: string | null | undefined;
|
|
16834
|
+
account_number: string;
|
|
16835
|
+
tax_rate: number;
|
|
16836
|
+
tax_id: string;
|
|
16837
|
+
}[];
|
|
16838
|
+
id: string;
|
|
16839
|
+
}>;
|
|
16153
16840
|
getFolders(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16154
16841
|
id: string;
|
|
16155
16842
|
name: string;
|
|
16156
16843
|
selected: boolean | null;
|
|
16157
16844
|
vat?: string | null | undefined;
|
|
16158
16845
|
company_number?: string | null | undefined;
|
|
16846
|
+
main_currency?: string | null | undefined;
|
|
16847
|
+
addresses?: {
|
|
16848
|
+
street?: string | null | undefined;
|
|
16849
|
+
number?: string | null | undefined;
|
|
16850
|
+
box?: string | null | undefined;
|
|
16851
|
+
postal_code?: string | null | undefined;
|
|
16852
|
+
city?: string | null | undefined;
|
|
16853
|
+
country?: string | null | undefined;
|
|
16854
|
+
}[] | null | undefined;
|
|
16159
16855
|
}[]>;
|
|
16160
16856
|
getBookyears(params?: {
|
|
16161
16857
|
folder_id?: string | null | undefined;
|
|
@@ -16168,13 +16864,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16168
16864
|
createLedgerAccount(account: {
|
|
16169
16865
|
name: string;
|
|
16170
16866
|
number: string;
|
|
16867
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
16171
16868
|
}, params?: {
|
|
16172
16869
|
folder_id?: string | null | undefined;
|
|
16173
16870
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
16174
16871
|
number: string;
|
|
16175
16872
|
name: string;
|
|
16176
16873
|
active: boolean | null;
|
|
16177
|
-
type?: "vat" | "
|
|
16874
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
16178
16875
|
}>;
|
|
16179
16876
|
createBankAccount(bankAccount: {
|
|
16180
16877
|
code: string;
|
|
@@ -16195,6 +16892,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16195
16892
|
bank_name?: string | null | undefined;
|
|
16196
16893
|
journal_id?: string | null | undefined;
|
|
16197
16894
|
ledger_account?: string | null | undefined;
|
|
16895
|
+
unallocated_account?: string | null | undefined;
|
|
16198
16896
|
}>;
|
|
16199
16897
|
getJournalEntry(journalEntryId: string, params?: {
|
|
16200
16898
|
folder_id?: string | null | undefined;
|
|
@@ -16207,6 +16905,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16207
16905
|
date: string | null;
|
|
16208
16906
|
posted: boolean | null;
|
|
16209
16907
|
id: string;
|
|
16908
|
+
due_dates: {
|
|
16909
|
+
due_date: string;
|
|
16910
|
+
payment_method?: string | null | undefined;
|
|
16911
|
+
debit: number | null;
|
|
16912
|
+
credit: number | null;
|
|
16913
|
+
}[] | null;
|
|
16210
16914
|
items: {
|
|
16211
16915
|
account_number: string;
|
|
16212
16916
|
partner_id?: string | null | undefined;
|
|
@@ -16228,6 +16932,38 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16228
16932
|
}[] | null;
|
|
16229
16933
|
}[] | null;
|
|
16230
16934
|
}>;
|
|
16935
|
+
getPaymentMethods(params?: {
|
|
16936
|
+
page?: number | undefined;
|
|
16937
|
+
size?: number | undefined;
|
|
16938
|
+
folder_id?: string | null | undefined;
|
|
16939
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16940
|
+
items: {
|
|
16941
|
+
id: string;
|
|
16942
|
+
name?: string | null | undefined;
|
|
16943
|
+
}[];
|
|
16944
|
+
total: number;
|
|
16945
|
+
page: number;
|
|
16946
|
+
size: number;
|
|
16947
|
+
}>;
|
|
16948
|
+
createInvoicePayment(body: {
|
|
16949
|
+
date: string;
|
|
16950
|
+
payment_method_id: string;
|
|
16951
|
+
currency: string;
|
|
16952
|
+
currency_exchange_rate: number | null;
|
|
16953
|
+
reference?: string | null | undefined;
|
|
16954
|
+
number?: string | null | undefined;
|
|
16955
|
+
items: {
|
|
16956
|
+
invoice_id: string;
|
|
16957
|
+
amount: number;
|
|
16958
|
+
}[];
|
|
16959
|
+
}, params?: {
|
|
16960
|
+
folder_id?: string | null | undefined;
|
|
16961
|
+
} | undefined): import("../types/api").RequestData<{
|
|
16962
|
+
headers: {
|
|
16963
|
+
[name: string]: unknown;
|
|
16964
|
+
};
|
|
16965
|
+
content?: undefined;
|
|
16966
|
+
}>;
|
|
16231
16967
|
}>;
|
|
16232
16968
|
invoicing: import("../types/api").ApiFor<{
|
|
16233
16969
|
getInvoices(params?: {
|
|
@@ -16298,6 +17034,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16298
17034
|
} | null | undefined;
|
|
16299
17035
|
last_updated_on?: string | null | undefined;
|
|
16300
17036
|
outstanding_amount?: number | null | undefined;
|
|
17037
|
+
last_payment_date?: string | null | undefined;
|
|
16301
17038
|
accounting_date?: string | null | undefined;
|
|
16302
17039
|
payment_method_id?: string | null | undefined;
|
|
16303
17040
|
currency_exchange_rate: number | null;
|
|
@@ -16365,6 +17102,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16365
17102
|
} | null | undefined;
|
|
16366
17103
|
last_updated_on?: string | null | undefined;
|
|
16367
17104
|
outstanding_amount?: number | null | undefined;
|
|
17105
|
+
last_payment_date?: string | null | undefined;
|
|
16368
17106
|
accounting_date?: string | null | undefined;
|
|
16369
17107
|
payment_method_id?: string | null | undefined;
|
|
16370
17108
|
currency_exchange_rate: number | null;
|
|
@@ -16485,6 +17223,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16485
17223
|
} | null | undefined;
|
|
16486
17224
|
last_updated_on?: string | null | undefined;
|
|
16487
17225
|
outstanding_amount?: number | null | undefined;
|
|
17226
|
+
last_payment_date?: string | null | undefined;
|
|
16488
17227
|
accounting_date?: string | null | undefined;
|
|
16489
17228
|
payment_method_id?: string | null | undefined;
|
|
16490
17229
|
currency_exchange_rate: number | null;
|
|
@@ -16812,6 +17551,125 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16812
17551
|
};
|
|
16813
17552
|
name: string;
|
|
16814
17553
|
}[]>;
|
|
17554
|
+
getBankAccounts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
17555
|
+
items: {
|
|
17556
|
+
id: string;
|
|
17557
|
+
source_ref: {
|
|
17558
|
+
id?: string | null | undefined;
|
|
17559
|
+
model?: string | null | undefined;
|
|
17560
|
+
};
|
|
17561
|
+
name: string;
|
|
17562
|
+
iban?: string | null | undefined;
|
|
17563
|
+
currency?: string | null | undefined;
|
|
17564
|
+
balance?: number | null | undefined;
|
|
17565
|
+
}[];
|
|
17566
|
+
total: number;
|
|
17567
|
+
page: number;
|
|
17568
|
+
size: number;
|
|
17569
|
+
}>;
|
|
17570
|
+
getBankTransactions(params: {
|
|
17571
|
+
date_from?: string | null | undefined;
|
|
17572
|
+
date_to?: string | null | undefined;
|
|
17573
|
+
bank_account_id: string;
|
|
17574
|
+
status?: "draft" | "done" | null | undefined;
|
|
17575
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
17576
|
+
items: {
|
|
17577
|
+
id: string;
|
|
17578
|
+
source_ref: {
|
|
17579
|
+
id?: string | null | undefined;
|
|
17580
|
+
model?: string | null | undefined;
|
|
17581
|
+
};
|
|
17582
|
+
status: "draft" | "done";
|
|
17583
|
+
bank_account_id: string;
|
|
17584
|
+
amount: number;
|
|
17585
|
+
date: string;
|
|
17586
|
+
description?: string | null | undefined;
|
|
17587
|
+
currency: string;
|
|
17588
|
+
currency_exchange_rate: number | null;
|
|
17589
|
+
accounting_code?: string | null | undefined;
|
|
17590
|
+
linked_documents: {
|
|
17591
|
+
id: string;
|
|
17592
|
+
source_ref: {
|
|
17593
|
+
id?: string | null | undefined;
|
|
17594
|
+
model?: string | null | undefined;
|
|
17595
|
+
};
|
|
17596
|
+
amount: number;
|
|
17597
|
+
type: "invoice" | "other";
|
|
17598
|
+
}[] | null;
|
|
17599
|
+
}[];
|
|
17600
|
+
total: number;
|
|
17601
|
+
page: number;
|
|
17602
|
+
size: number;
|
|
17603
|
+
}>;
|
|
17604
|
+
uploadDocument(document: {
|
|
17605
|
+
base64_string: string;
|
|
17606
|
+
document_type: "customer_document" | "supplier_document" | "employee_expense";
|
|
17607
|
+
}, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
17608
|
+
id: string;
|
|
17609
|
+
source_ref: {
|
|
17610
|
+
id?: string | null | undefined;
|
|
17611
|
+
model?: string | null | undefined;
|
|
17612
|
+
};
|
|
17613
|
+
currency?: string | null | undefined;
|
|
17614
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
17615
|
+
status?: "draft" | "posted" | "cancelled" | "paid" | null | undefined;
|
|
17616
|
+
invoice_date?: string | null | undefined;
|
|
17617
|
+
tax_amount?: number | null | undefined;
|
|
17618
|
+
untaxed_amount?: number | null | undefined;
|
|
17619
|
+
total?: number | null | undefined;
|
|
17620
|
+
lines: {
|
|
17621
|
+
description?: string | null | undefined;
|
|
17622
|
+
unit_price: number;
|
|
17623
|
+
quantity: number;
|
|
17624
|
+
discount_amount: number;
|
|
17625
|
+
tax_amount: number;
|
|
17626
|
+
untaxed_amount: number;
|
|
17627
|
+
total: number;
|
|
17628
|
+
tax_rate?: number | null | undefined;
|
|
17629
|
+
account_number?: string | null | undefined;
|
|
17630
|
+
tax_id?: string | null | undefined;
|
|
17631
|
+
tax_exemption_reason?: string | null | undefined;
|
|
17632
|
+
unit_of_measure?: string | null | undefined;
|
|
17633
|
+
product_id?: string | null | undefined;
|
|
17634
|
+
product_code?: string | null | undefined;
|
|
17635
|
+
product_name?: string | null | undefined;
|
|
17636
|
+
}[] | null;
|
|
17637
|
+
partner_id?: string | null | undefined;
|
|
17638
|
+
invoice_number?: string | null | undefined;
|
|
17639
|
+
due_date?: string | null | undefined;
|
|
17640
|
+
reference?: string | null | undefined;
|
|
17641
|
+
payment_communication?: string | null | undefined;
|
|
17642
|
+
customer_memo?: string | null | undefined;
|
|
17643
|
+
journal_ref?: {
|
|
17644
|
+
id?: string | null | undefined;
|
|
17645
|
+
model?: string | null | undefined;
|
|
17646
|
+
name?: string | null | undefined;
|
|
17647
|
+
} | null | undefined;
|
|
17648
|
+
italian_specificities?: {
|
|
17649
|
+
stamp_duty_amount?: number | null | undefined;
|
|
17650
|
+
withholding_tax?: {
|
|
17651
|
+
rate: number;
|
|
17652
|
+
amount: number;
|
|
17653
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | null | undefined;
|
|
17654
|
+
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;
|
|
17655
|
+
} | null | undefined;
|
|
17656
|
+
welfare_fund?: {
|
|
17657
|
+
rate: number;
|
|
17658
|
+
amount: number;
|
|
17659
|
+
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;
|
|
17660
|
+
} | null | undefined;
|
|
17661
|
+
payment_reporting?: {
|
|
17662
|
+
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;
|
|
17663
|
+
conditions?: "TP01" | "TP02" | "TP03" | null | undefined;
|
|
17664
|
+
} | null | undefined;
|
|
17665
|
+
} | null | undefined;
|
|
17666
|
+
last_updated_on?: string | null | undefined;
|
|
17667
|
+
outstanding_amount?: number | null | undefined;
|
|
17668
|
+
last_payment_date?: string | null | undefined;
|
|
17669
|
+
accounting_date?: string | null | undefined;
|
|
17670
|
+
payment_method_id?: string | null | undefined;
|
|
17671
|
+
currency_exchange_rate: number | null;
|
|
17672
|
+
}>;
|
|
16815
17673
|
}>;
|
|
16816
17674
|
ecommerce: import("../types/api").ApiFor<{
|
|
16817
17675
|
getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -16843,7 +17701,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16843
17701
|
}[] | null;
|
|
16844
17702
|
created_on?: string | null | undefined;
|
|
16845
17703
|
}[]>;
|
|
16846
|
-
getProducts(params?: {
|
|
17704
|
+
getProducts(params?: {
|
|
17705
|
+
updated_after?: string | null | undefined;
|
|
17706
|
+
sku?: string | null | undefined;
|
|
17707
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
16847
17708
|
id: string;
|
|
16848
17709
|
source_ref: {
|
|
16849
17710
|
id?: string | null | undefined;
|
|
@@ -16857,6 +17718,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16857
17718
|
name: string;
|
|
16858
17719
|
}[] | null;
|
|
16859
17720
|
created_on?: string | null | undefined;
|
|
17721
|
+
last_updated_on?: string | null | undefined;
|
|
16860
17722
|
variants: {
|
|
16861
17723
|
id: string;
|
|
16862
17724
|
source_ref: {
|
|
@@ -16898,6 +17760,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16898
17760
|
}[] | null;
|
|
16899
17761
|
}[] | null;
|
|
16900
17762
|
status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
|
|
17763
|
+
sku?: string | null | undefined;
|
|
16901
17764
|
common_attributes: {
|
|
16902
17765
|
name: string;
|
|
16903
17766
|
values: string[];
|
|
@@ -16955,6 +17818,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16955
17818
|
name: string;
|
|
16956
17819
|
}[] | null;
|
|
16957
17820
|
created_on?: string | null | undefined;
|
|
17821
|
+
last_updated_on?: string | null | undefined;
|
|
16958
17822
|
variants: {
|
|
16959
17823
|
id: string;
|
|
16960
17824
|
source_ref: {
|
|
@@ -16996,6 +17860,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
16996
17860
|
}[] | null;
|
|
16997
17861
|
}[] | null;
|
|
16998
17862
|
status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
|
|
17863
|
+
sku?: string | null | undefined;
|
|
16999
17864
|
common_attributes: {
|
|
17000
17865
|
name: string;
|
|
17001
17866
|
values: string[];
|
|
@@ -17185,6 +18050,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17185
18050
|
amount: number;
|
|
17186
18051
|
}[] | null;
|
|
17187
18052
|
gift_card: boolean | null;
|
|
18053
|
+
is_gift: boolean | null;
|
|
17188
18054
|
}[];
|
|
17189
18055
|
other_fees: {
|
|
17190
18056
|
id: string;
|
|
@@ -17462,6 +18328,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17462
18328
|
amount: number;
|
|
17463
18329
|
}[] | null;
|
|
17464
18330
|
gift_card: boolean | null;
|
|
18331
|
+
is_gift: boolean | null;
|
|
17465
18332
|
}[];
|
|
17466
18333
|
other_fees: {
|
|
17467
18334
|
id: string;
|
|
@@ -17700,6 +18567,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17700
18567
|
amount: number;
|
|
17701
18568
|
}[] | null;
|
|
17702
18569
|
gift_card: boolean | null;
|
|
18570
|
+
is_gift: boolean | null;
|
|
17703
18571
|
}[];
|
|
17704
18572
|
other_fees: {
|
|
17705
18573
|
id: string;
|
|
@@ -17958,6 +18826,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17958
18826
|
description?: string | null | undefined;
|
|
17959
18827
|
display_order: number;
|
|
17960
18828
|
challenge_question?: string | null | undefined;
|
|
18829
|
+
conditions?: {
|
|
18830
|
+
[key: string]: {
|
|
18831
|
+
[key: string]: unknown;
|
|
18832
|
+
};
|
|
18833
|
+
} | null | undefined;
|
|
17961
18834
|
values: {
|
|
17962
18835
|
source_id?: string | null | undefined;
|
|
17963
18836
|
target_id?: string | null | undefined;
|
|
@@ -17968,6 +18841,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
17968
18841
|
link_metadata?: {
|
|
17969
18842
|
[key: string]: unknown;
|
|
17970
18843
|
} | null | undefined;
|
|
18844
|
+
link_presync?: {
|
|
18845
|
+
[key: string]: unknown;
|
|
18846
|
+
} | null | undefined;
|
|
17971
18847
|
enabled_flows?: {
|
|
17972
18848
|
name: string;
|
|
17973
18849
|
description?: string | null | undefined;
|
|
@@ -18220,7 +19096,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18220
19096
|
}[];
|
|
18221
19097
|
items: {
|
|
18222
19098
|
id: string;
|
|
18223
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
19099
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
18224
19100
|
menu_id?: string | null | undefined;
|
|
18225
19101
|
quantity: number;
|
|
18226
19102
|
unit_price: number;
|
|
@@ -18298,7 +19174,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18298
19174
|
}[];
|
|
18299
19175
|
items: {
|
|
18300
19176
|
id: string;
|
|
18301
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
19177
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
18302
19178
|
menu_id?: string | null | undefined;
|
|
18303
19179
|
quantity: number;
|
|
18304
19180
|
unit_price: number;
|
|
@@ -18425,6 +19301,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18425
19301
|
payments: {
|
|
18426
19302
|
payment_method_id?: string | null | undefined;
|
|
18427
19303
|
payment_method_name?: string | null | undefined;
|
|
19304
|
+
tip: number | null;
|
|
18428
19305
|
total: number;
|
|
18429
19306
|
}[] | null;
|
|
18430
19307
|
taxes: {
|
|
@@ -18485,7 +19362,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18485
19362
|
}[];
|
|
18486
19363
|
items: {
|
|
18487
19364
|
id: string;
|
|
18488
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
19365
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
18489
19366
|
menu_id?: string | null | undefined;
|
|
18490
19367
|
quantity: number;
|
|
18491
19368
|
unit_price: number;
|
|
@@ -18511,6 +19388,22 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18511
19388
|
ledger_account_code?: string | null | undefined;
|
|
18512
19389
|
posting_account_code?: string | null | undefined;
|
|
18513
19390
|
}[]>;
|
|
19391
|
+
getObjectives(params: {
|
|
19392
|
+
page?: number | undefined;
|
|
19393
|
+
size?: number | undefined;
|
|
19394
|
+
date_from: string;
|
|
19395
|
+
date_to: string;
|
|
19396
|
+
location_id?: string | null | undefined;
|
|
19397
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
19398
|
+
items: {
|
|
19399
|
+
total: number;
|
|
19400
|
+
tax_amount: number;
|
|
19401
|
+
date: string;
|
|
19402
|
+
}[];
|
|
19403
|
+
total: number;
|
|
19404
|
+
page: number;
|
|
19405
|
+
size: number;
|
|
19406
|
+
}>;
|
|
18514
19407
|
}>;
|
|
18515
19408
|
pms: import("../types/api").ApiFor<{
|
|
18516
19409
|
getLocations(rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
@@ -18567,7 +19460,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18567
19460
|
id?: string | null | undefined;
|
|
18568
19461
|
model?: string | null | undefined;
|
|
18569
19462
|
};
|
|
18570
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
19463
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
18571
19464
|
menu_id?: string | null | undefined;
|
|
18572
19465
|
quantity: number;
|
|
18573
19466
|
unit_price: number;
|
|
@@ -18659,6 +19552,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18659
19552
|
payments: {
|
|
18660
19553
|
payment_method_id?: string | null | undefined;
|
|
18661
19554
|
payment_method_name?: string | null | undefined;
|
|
19555
|
+
tip: number | null;
|
|
18662
19556
|
total: number;
|
|
18663
19557
|
}[] | null;
|
|
18664
19558
|
taxes: {
|
|
@@ -18691,6 +19585,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18691
19585
|
model?: string | null | undefined;
|
|
18692
19586
|
};
|
|
18693
19587
|
} | null | undefined;
|
|
19588
|
+
description?: string | null | undefined;
|
|
18694
19589
|
}[]>;
|
|
18695
19590
|
getAccountingCategories(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
18696
19591
|
id: string;
|
|
@@ -18767,7 +19662,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18767
19662
|
id?: string | null | undefined;
|
|
18768
19663
|
model?: string | null | undefined;
|
|
18769
19664
|
};
|
|
18770
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
19665
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
18771
19666
|
menu_id?: string | null | undefined;
|
|
18772
19667
|
quantity: number;
|
|
18773
19668
|
unit_price: number;
|
|
@@ -18803,6 +19698,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18803
19698
|
model?: string | null | undefined;
|
|
18804
19699
|
};
|
|
18805
19700
|
} | null | undefined;
|
|
19701
|
+
description?: string | null | undefined;
|
|
18806
19702
|
}[];
|
|
18807
19703
|
service_id?: string | null | undefined;
|
|
18808
19704
|
reservation?: {
|
|
@@ -18868,7 +19764,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
18868
19764
|
id?: string | null | undefined;
|
|
18869
19765
|
model?: string | null | undefined;
|
|
18870
19766
|
};
|
|
18871
|
-
|
|
19767
|
+
amount: number;
|
|
18872
19768
|
fee: number;
|
|
18873
19769
|
currency: string;
|
|
18874
19770
|
exchange_rate: number;
|
|
@@ -19381,7 +20277,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19381
20277
|
customer_memo?: string | null | undefined;
|
|
19382
20278
|
invoice_date: string;
|
|
19383
20279
|
due_date: string;
|
|
19384
|
-
partner_id
|
|
20280
|
+
partner_id?: string | null | undefined;
|
|
19385
20281
|
journal_id?: string | null | undefined;
|
|
19386
20282
|
status: "draft" | "posted" | null;
|
|
19387
20283
|
pdf?: string | null | undefined;
|
|
@@ -19493,6 +20389,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19493
20389
|
country?: string | null | undefined;
|
|
19494
20390
|
}[] | null;
|
|
19495
20391
|
} | null | undefined;
|
|
20392
|
+
due_dates: {
|
|
20393
|
+
due_date: string;
|
|
20394
|
+
payment_method?: string | null | undefined;
|
|
20395
|
+
amount: number;
|
|
20396
|
+
}[] | null;
|
|
19496
20397
|
lines: {
|
|
19497
20398
|
line_number: number | null;
|
|
19498
20399
|
unit_price: number;
|
|
@@ -19520,7 +20421,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19520
20421
|
customer_memo?: string | null | undefined;
|
|
19521
20422
|
invoice_date: string;
|
|
19522
20423
|
due_date: string;
|
|
19523
|
-
partner_id
|
|
20424
|
+
partner_id?: string | null | undefined;
|
|
19524
20425
|
journal_id?: string | null | undefined;
|
|
19525
20426
|
status: "draft" | "posted" | null;
|
|
19526
20427
|
pdf?: string | null | undefined;
|
|
@@ -19638,6 +20539,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19638
20539
|
country?: string | null | undefined;
|
|
19639
20540
|
}[] | null;
|
|
19640
20541
|
} | null | undefined;
|
|
20542
|
+
due_dates: {
|
|
20543
|
+
due_date: string;
|
|
20544
|
+
payment_method?: string | null | undefined;
|
|
20545
|
+
amount: number;
|
|
20546
|
+
}[] | null;
|
|
19641
20547
|
lines: {
|
|
19642
20548
|
line_number: number | null;
|
|
19643
20549
|
unit_price: number;
|
|
@@ -19737,6 +20643,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19737
20643
|
country?: string | null | undefined;
|
|
19738
20644
|
}[] | null;
|
|
19739
20645
|
} | null | undefined;
|
|
20646
|
+
due_dates: {
|
|
20647
|
+
due_date: string;
|
|
20648
|
+
payment_method?: string | null | undefined;
|
|
20649
|
+
amount: number;
|
|
20650
|
+
}[] | null;
|
|
19740
20651
|
lines: {
|
|
19741
20652
|
line_number: number | null;
|
|
19742
20653
|
unit_price: number;
|
|
@@ -19825,6 +20736,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19825
20736
|
country?: string | null | undefined;
|
|
19826
20737
|
}[] | null;
|
|
19827
20738
|
} | null | undefined;
|
|
20739
|
+
due_dates: {
|
|
20740
|
+
due_date: string;
|
|
20741
|
+
payment_method?: string | null | undefined;
|
|
20742
|
+
amount: number;
|
|
20743
|
+
}[] | null;
|
|
19828
20744
|
lines: {
|
|
19829
20745
|
line_number: number | null;
|
|
19830
20746
|
unit_price: number;
|
|
@@ -19913,6 +20829,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
19913
20829
|
country?: string | null | undefined;
|
|
19914
20830
|
}[] | null;
|
|
19915
20831
|
} | null | undefined;
|
|
20832
|
+
due_dates: {
|
|
20833
|
+
due_date: string;
|
|
20834
|
+
payment_method?: string | null | undefined;
|
|
20835
|
+
amount: number;
|
|
20836
|
+
}[] | null;
|
|
19916
20837
|
lines: {
|
|
19917
20838
|
line_number: number | null;
|
|
19918
20839
|
unit_price: number;
|
|
@@ -20012,6 +20933,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20012
20933
|
country?: string | null | undefined;
|
|
20013
20934
|
}[] | null;
|
|
20014
20935
|
} | null | undefined;
|
|
20936
|
+
due_dates: {
|
|
20937
|
+
due_date: string;
|
|
20938
|
+
payment_method?: string | null | undefined;
|
|
20939
|
+
amount: number;
|
|
20940
|
+
}[] | null;
|
|
20015
20941
|
lines: {
|
|
20016
20942
|
line_number: number | null;
|
|
20017
20943
|
unit_price: number;
|
|
@@ -20170,6 +21096,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20170
21096
|
date: string | null;
|
|
20171
21097
|
posted: boolean | null;
|
|
20172
21098
|
id: string;
|
|
21099
|
+
due_dates: {
|
|
21100
|
+
due_date: string;
|
|
21101
|
+
payment_method?: string | null | undefined;
|
|
21102
|
+
debit: number | null;
|
|
21103
|
+
credit: number | null;
|
|
21104
|
+
}[] | null;
|
|
20173
21105
|
items: {
|
|
20174
21106
|
account_number: string;
|
|
20175
21107
|
partner_id?: string | null | undefined;
|
|
@@ -20203,6 +21135,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20203
21135
|
date: string | null;
|
|
20204
21136
|
posted: boolean | null;
|
|
20205
21137
|
id: string;
|
|
21138
|
+
due_dates: {
|
|
21139
|
+
due_date: string;
|
|
21140
|
+
payment_method?: string | null | undefined;
|
|
21141
|
+
debit: number | null;
|
|
21142
|
+
credit: number | null;
|
|
21143
|
+
}[] | null;
|
|
20206
21144
|
items: {
|
|
20207
21145
|
account_number: string;
|
|
20208
21146
|
partner_id?: string | null | undefined;
|
|
@@ -20250,6 +21188,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20250
21188
|
name: string;
|
|
20251
21189
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
20252
21190
|
counterpart_account?: string | null | undefined;
|
|
21191
|
+
unallocated_account?: string | null | undefined;
|
|
20253
21192
|
next_document_numbers: {
|
|
20254
21193
|
bookyear_name?: string | null | undefined;
|
|
20255
21194
|
next_document_number?: string | null | undefined;
|
|
@@ -20258,6 +21197,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20258
21197
|
}[] | null;
|
|
20259
21198
|
iban?: string | null | undefined;
|
|
20260
21199
|
currency?: string | null | undefined;
|
|
21200
|
+
other_currencies_allowed: boolean | null;
|
|
21201
|
+
blocked: boolean | null;
|
|
20261
21202
|
}[]>;
|
|
20262
21203
|
createJournal(journal: {
|
|
20263
21204
|
code: string;
|
|
@@ -20272,6 +21213,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20272
21213
|
name: string;
|
|
20273
21214
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
20274
21215
|
counterpart_account?: string | null | undefined;
|
|
21216
|
+
unallocated_account?: string | null | undefined;
|
|
20275
21217
|
next_document_numbers: {
|
|
20276
21218
|
bookyear_name?: string | null | undefined;
|
|
20277
21219
|
next_document_number?: string | null | undefined;
|
|
@@ -20280,6 +21222,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20280
21222
|
}[] | null;
|
|
20281
21223
|
iban?: string | null | undefined;
|
|
20282
21224
|
currency?: string | null | undefined;
|
|
21225
|
+
other_currencies_allowed: boolean | null;
|
|
21226
|
+
blocked: boolean | null;
|
|
20283
21227
|
}>;
|
|
20284
21228
|
getVatCodes(params?: {
|
|
20285
21229
|
folder_id?: string | null | undefined;
|
|
@@ -20293,6 +21237,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20293
21237
|
deductible_account?: string | null | undefined;
|
|
20294
21238
|
payable_account?: string | null | undefined;
|
|
20295
21239
|
reversed: boolean | null;
|
|
21240
|
+
country?: string | null | undefined;
|
|
20296
21241
|
}[]>;
|
|
20297
21242
|
getMiscOperations(params?: {
|
|
20298
21243
|
date_from?: string | null | undefined;
|
|
@@ -20399,7 +21344,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20399
21344
|
number: string;
|
|
20400
21345
|
name: string;
|
|
20401
21346
|
active: boolean | null;
|
|
20402
|
-
type?: "vat" | "
|
|
21347
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
20403
21348
|
}[]>;
|
|
20404
21349
|
getBalanceOfAccounts(filter: {
|
|
20405
21350
|
accounts: string[];
|
|
@@ -20446,58 +21391,23 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20446
21391
|
currency: string;
|
|
20447
21392
|
currency_exchange_rate: number;
|
|
20448
21393
|
amount: number;
|
|
20449
|
-
open_amount: number;
|
|
20450
|
-
partner_id: string;
|
|
20451
|
-
account_number: string;
|
|
20452
|
-
reference?: string | null | undefined;
|
|
20453
|
-
matching_numbers: string[] | null;
|
|
20454
|
-
payment_communication?: string | null | undefined;
|
|
20455
|
-
posted: boolean;
|
|
20456
|
-
original_document?: {
|
|
20457
|
-
id?: string | null | undefined;
|
|
20458
|
-
number?: string | null | undefined;
|
|
20459
|
-
journal_id?: string | null | undefined;
|
|
20460
|
-
journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | null | undefined;
|
|
20461
|
-
date?: string | null | undefined;
|
|
20462
|
-
due_date?: string | null | undefined;
|
|
20463
|
-
reference?: string | null | undefined;
|
|
20464
|
-
} | null | undefined;
|
|
20465
|
-
}[]>;
|
|
20466
|
-
createFinancialEntryOld(financial_entry: {
|
|
20467
|
-
date: string;
|
|
20468
|
-
journal_id: string;
|
|
20469
|
-
currency: string;
|
|
20470
|
-
currency_exchange_rate: number | null;
|
|
20471
|
-
reference?: string | null | undefined;
|
|
20472
|
-
number?: string | null | undefined;
|
|
20473
|
-
items: {
|
|
20474
|
-
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
20475
|
-
account_number: string;
|
|
20476
|
-
partner_id?: string | null | undefined;
|
|
20477
|
-
amount: number;
|
|
20478
|
-
description?: string | null | undefined;
|
|
20479
|
-
}[];
|
|
20480
|
-
pdf?: string | null | undefined;
|
|
20481
|
-
}, params?: {
|
|
20482
|
-
folder_id?: string | null | undefined;
|
|
20483
|
-
financial_counterpart_account?: string | null | undefined;
|
|
20484
|
-
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
20485
|
-
date: string;
|
|
20486
|
-
journal_id: string;
|
|
20487
|
-
currency: string;
|
|
20488
|
-
currency_exchange_rate: number | null;
|
|
20489
|
-
reference?: string | null | undefined;
|
|
20490
|
-
id: string;
|
|
20491
|
-
number: string;
|
|
20492
|
-
items: {
|
|
20493
|
-
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
20494
|
-
account_number: string;
|
|
20495
|
-
partner_id?: string | null | undefined;
|
|
20496
|
-
amount: number;
|
|
20497
|
-
description?: string | null | undefined;
|
|
20498
|
-
counterpart_account: string;
|
|
20499
|
-
}[];
|
|
20500
|
-
}>;
|
|
21394
|
+
open_amount: number;
|
|
21395
|
+
partner_id: string;
|
|
21396
|
+
account_number: string;
|
|
21397
|
+
reference?: string | null | undefined;
|
|
21398
|
+
matching_numbers: string[] | null;
|
|
21399
|
+
payment_communication?: string | null | undefined;
|
|
21400
|
+
posted: boolean;
|
|
21401
|
+
original_document?: {
|
|
21402
|
+
id?: string | null | undefined;
|
|
21403
|
+
number?: string | null | undefined;
|
|
21404
|
+
journal_id?: string | null | undefined;
|
|
21405
|
+
journal_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown" | null | undefined;
|
|
21406
|
+
date?: string | null | undefined;
|
|
21407
|
+
due_date?: string | null | undefined;
|
|
21408
|
+
reference?: string | null | undefined;
|
|
21409
|
+
} | null | undefined;
|
|
21410
|
+
}[]>;
|
|
20501
21411
|
createFinancialEntry(financial_entry: {
|
|
20502
21412
|
date: string;
|
|
20503
21413
|
journal_id: string;
|
|
@@ -20531,59 +21441,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20531
21441
|
counterpart_account: string;
|
|
20532
21442
|
}[];
|
|
20533
21443
|
}>;
|
|
20534
|
-
createJournalEntryOld(journal_entry: {
|
|
20535
|
-
reference?: string | null | undefined;
|
|
20536
|
-
due_date?: string | null | undefined;
|
|
20537
|
-
journal_id: string;
|
|
20538
|
-
name: string;
|
|
20539
|
-
date: string;
|
|
20540
|
-
items: {
|
|
20541
|
-
account_number: string;
|
|
20542
|
-
partner_id?: string | null | undefined;
|
|
20543
|
-
description?: string | null | undefined;
|
|
20544
|
-
debit: number;
|
|
20545
|
-
credit: number;
|
|
20546
|
-
currency: string;
|
|
20547
|
-
currency_exchange_rate: number | null;
|
|
20548
|
-
analytic_distribution: {
|
|
20549
|
-
analytic_plan: string;
|
|
20550
|
-
analytic_accounts: {
|
|
20551
|
-
analytic_account: string;
|
|
20552
|
-
percentage: number;
|
|
20553
|
-
}[];
|
|
20554
|
-
}[] | null;
|
|
20555
|
-
}[];
|
|
20556
|
-
pdf?: string | null | undefined;
|
|
20557
|
-
}, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
20558
|
-
reference?: string | null | undefined;
|
|
20559
|
-
due_date?: string | null | undefined;
|
|
20560
|
-
journal_id: string;
|
|
20561
|
-
name?: string | null | undefined;
|
|
20562
|
-
journal_name?: string | null | undefined;
|
|
20563
|
-
date: string | null;
|
|
20564
|
-
posted: boolean | null;
|
|
20565
|
-
id: string;
|
|
20566
|
-
items: {
|
|
20567
|
-
account_number: string;
|
|
20568
|
-
partner_id?: string | null | undefined;
|
|
20569
|
-
description?: string | null | undefined;
|
|
20570
|
-
debit: number;
|
|
20571
|
-
credit: number;
|
|
20572
|
-
currency: string;
|
|
20573
|
-
currency_exchange_rate: number | null;
|
|
20574
|
-
id: string;
|
|
20575
|
-
partner_name?: string | null | undefined;
|
|
20576
|
-
account_name: string;
|
|
20577
|
-
matching_numbers: string[] | null;
|
|
20578
|
-
analytic_distribution: {
|
|
20579
|
-
analytic_plan: string;
|
|
20580
|
-
analytic_accounts: {
|
|
20581
|
-
analytic_account: string;
|
|
20582
|
-
percentage: number;
|
|
20583
|
-
}[];
|
|
20584
|
-
}[] | null;
|
|
20585
|
-
}[] | null;
|
|
20586
|
-
}>;
|
|
20587
21444
|
createJournalEntry(journal_entry: {
|
|
20588
21445
|
reference?: string | null | undefined;
|
|
20589
21446
|
due_date?: string | null | undefined;
|
|
@@ -20594,7 +21451,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20594
21451
|
date: string;
|
|
20595
21452
|
items: {
|
|
20596
21453
|
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
20597
|
-
account
|
|
21454
|
+
account?: string | null | undefined;
|
|
20598
21455
|
force_general_account?: string | null | undefined;
|
|
20599
21456
|
prioritise_thirdparty_account: boolean | null;
|
|
20600
21457
|
description?: string | null | undefined;
|
|
@@ -20608,7 +21465,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20608
21465
|
}[];
|
|
20609
21466
|
}[] | null;
|
|
20610
21467
|
tax_code?: string | null | undefined;
|
|
20611
|
-
country?: string | null | undefined;
|
|
20612
21468
|
account_info?: {
|
|
20613
21469
|
account_number: string;
|
|
20614
21470
|
account_name: string;
|
|
@@ -20630,6 +21486,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20630
21486
|
date: string | null;
|
|
20631
21487
|
posted: boolean | null;
|
|
20632
21488
|
id: string;
|
|
21489
|
+
due_dates: {
|
|
21490
|
+
due_date: string;
|
|
21491
|
+
payment_method?: string | null | undefined;
|
|
21492
|
+
debit: number | null;
|
|
21493
|
+
credit: number | null;
|
|
21494
|
+
}[] | null;
|
|
20633
21495
|
items: {
|
|
20634
21496
|
account_number: string;
|
|
20635
21497
|
partner_id?: string | null | undefined;
|
|
@@ -20674,12 +21536,65 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20674
21536
|
[key: string]: unknown;
|
|
20675
21537
|
} | null | undefined;
|
|
20676
21538
|
}[]>;
|
|
21539
|
+
createExpense(expense: {
|
|
21540
|
+
employee_id: string;
|
|
21541
|
+
total: number;
|
|
21542
|
+
untaxed_amount: number;
|
|
21543
|
+
tax_amount: number;
|
|
21544
|
+
reference?: string | null | undefined;
|
|
21545
|
+
number?: string | null | undefined;
|
|
21546
|
+
currency: string;
|
|
21547
|
+
currency_exchange_rate: number | null;
|
|
21548
|
+
date: string;
|
|
21549
|
+
pdf?: string | null | undefined;
|
|
21550
|
+
lines: {
|
|
21551
|
+
total: number;
|
|
21552
|
+
untaxed_amount: number;
|
|
21553
|
+
tax_amount: number;
|
|
21554
|
+
description?: string | null | undefined;
|
|
21555
|
+
account_number: string;
|
|
21556
|
+
tax_rate: number;
|
|
21557
|
+
tax_id: string;
|
|
21558
|
+
}[];
|
|
21559
|
+
}, params?: {
|
|
21560
|
+
folder_id?: string | null | undefined;
|
|
21561
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
21562
|
+
employee_id: string;
|
|
21563
|
+
total: number;
|
|
21564
|
+
untaxed_amount: number;
|
|
21565
|
+
tax_amount: number;
|
|
21566
|
+
reference?: string | null | undefined;
|
|
21567
|
+
number?: string | null | undefined;
|
|
21568
|
+
currency: string;
|
|
21569
|
+
currency_exchange_rate: number | null;
|
|
21570
|
+
date: string;
|
|
21571
|
+
pdf?: string | null | undefined;
|
|
21572
|
+
lines: {
|
|
21573
|
+
total: number;
|
|
21574
|
+
untaxed_amount: number;
|
|
21575
|
+
tax_amount: number;
|
|
21576
|
+
description?: string | null | undefined;
|
|
21577
|
+
account_number: string;
|
|
21578
|
+
tax_rate: number;
|
|
21579
|
+
tax_id: string;
|
|
21580
|
+
}[];
|
|
21581
|
+
id: string;
|
|
21582
|
+
}>;
|
|
20677
21583
|
getFolders(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
20678
21584
|
id: string;
|
|
20679
21585
|
name: string;
|
|
20680
21586
|
selected: boolean | null;
|
|
20681
21587
|
vat?: string | null | undefined;
|
|
20682
21588
|
company_number?: string | null | undefined;
|
|
21589
|
+
main_currency?: string | null | undefined;
|
|
21590
|
+
addresses?: {
|
|
21591
|
+
street?: string | null | undefined;
|
|
21592
|
+
number?: string | null | undefined;
|
|
21593
|
+
box?: string | null | undefined;
|
|
21594
|
+
postal_code?: string | null | undefined;
|
|
21595
|
+
city?: string | null | undefined;
|
|
21596
|
+
country?: string | null | undefined;
|
|
21597
|
+
}[] | null | undefined;
|
|
20683
21598
|
}[]>;
|
|
20684
21599
|
getBookyears(params?: {
|
|
20685
21600
|
folder_id?: string | null | undefined;
|
|
@@ -20692,13 +21607,14 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20692
21607
|
createLedgerAccount(account: {
|
|
20693
21608
|
name: string;
|
|
20694
21609
|
number: string;
|
|
21610
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
20695
21611
|
}, params?: {
|
|
20696
21612
|
folder_id?: string | null | undefined;
|
|
20697
21613
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
20698
21614
|
number: string;
|
|
20699
21615
|
name: string;
|
|
20700
21616
|
active: boolean | null;
|
|
20701
|
-
type?: "vat" | "
|
|
21617
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
20702
21618
|
}>;
|
|
20703
21619
|
createBankAccount(bankAccount: {
|
|
20704
21620
|
code: string;
|
|
@@ -20719,6 +21635,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20719
21635
|
bank_name?: string | null | undefined;
|
|
20720
21636
|
journal_id?: string | null | undefined;
|
|
20721
21637
|
ledger_account?: string | null | undefined;
|
|
21638
|
+
unallocated_account?: string | null | undefined;
|
|
20722
21639
|
}>;
|
|
20723
21640
|
getJournalEntry(journalEntryId: string, params?: {
|
|
20724
21641
|
folder_id?: string | null | undefined;
|
|
@@ -20731,6 +21648,12 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20731
21648
|
date: string | null;
|
|
20732
21649
|
posted: boolean | null;
|
|
20733
21650
|
id: string;
|
|
21651
|
+
due_dates: {
|
|
21652
|
+
due_date: string;
|
|
21653
|
+
payment_method?: string | null | undefined;
|
|
21654
|
+
debit: number | null;
|
|
21655
|
+
credit: number | null;
|
|
21656
|
+
}[] | null;
|
|
20734
21657
|
items: {
|
|
20735
21658
|
account_number: string;
|
|
20736
21659
|
partner_id?: string | null | undefined;
|
|
@@ -20752,6 +21675,38 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20752
21675
|
}[] | null;
|
|
20753
21676
|
}[] | null;
|
|
20754
21677
|
}>;
|
|
21678
|
+
getPaymentMethods(params?: {
|
|
21679
|
+
page?: number | undefined;
|
|
21680
|
+
size?: number | undefined;
|
|
21681
|
+
folder_id?: string | null | undefined;
|
|
21682
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21683
|
+
items: {
|
|
21684
|
+
id: string;
|
|
21685
|
+
name?: string | null | undefined;
|
|
21686
|
+
}[];
|
|
21687
|
+
total: number;
|
|
21688
|
+
page: number;
|
|
21689
|
+
size: number;
|
|
21690
|
+
}>;
|
|
21691
|
+
createInvoicePayment(body: {
|
|
21692
|
+
date: string;
|
|
21693
|
+
payment_method_id: string;
|
|
21694
|
+
currency: string;
|
|
21695
|
+
currency_exchange_rate: number | null;
|
|
21696
|
+
reference?: string | null | undefined;
|
|
21697
|
+
number?: string | null | undefined;
|
|
21698
|
+
items: {
|
|
21699
|
+
invoice_id: string;
|
|
21700
|
+
amount: number;
|
|
21701
|
+
}[];
|
|
21702
|
+
}, params?: {
|
|
21703
|
+
folder_id?: string | null | undefined;
|
|
21704
|
+
} | undefined): import("../types/api").RequestData<{
|
|
21705
|
+
headers: {
|
|
21706
|
+
[name: string]: unknown;
|
|
21707
|
+
};
|
|
21708
|
+
content?: undefined;
|
|
21709
|
+
}>;
|
|
20755
21710
|
}>;
|
|
20756
21711
|
invoicing: import("../types/api").ApiFor<{
|
|
20757
21712
|
getInvoices(params?: {
|
|
@@ -20822,6 +21777,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20822
21777
|
} | null | undefined;
|
|
20823
21778
|
last_updated_on?: string | null | undefined;
|
|
20824
21779
|
outstanding_amount?: number | null | undefined;
|
|
21780
|
+
last_payment_date?: string | null | undefined;
|
|
20825
21781
|
accounting_date?: string | null | undefined;
|
|
20826
21782
|
payment_method_id?: string | null | undefined;
|
|
20827
21783
|
currency_exchange_rate: number | null;
|
|
@@ -20889,6 +21845,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
20889
21845
|
} | null | undefined;
|
|
20890
21846
|
last_updated_on?: string | null | undefined;
|
|
20891
21847
|
outstanding_amount?: number | null | undefined;
|
|
21848
|
+
last_payment_date?: string | null | undefined;
|
|
20892
21849
|
accounting_date?: string | null | undefined;
|
|
20893
21850
|
payment_method_id?: string | null | undefined;
|
|
20894
21851
|
currency_exchange_rate: number | null;
|
|
@@ -21009,6 +21966,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21009
21966
|
} | null | undefined;
|
|
21010
21967
|
last_updated_on?: string | null | undefined;
|
|
21011
21968
|
outstanding_amount?: number | null | undefined;
|
|
21969
|
+
last_payment_date?: string | null | undefined;
|
|
21012
21970
|
accounting_date?: string | null | undefined;
|
|
21013
21971
|
payment_method_id?: string | null | undefined;
|
|
21014
21972
|
currency_exchange_rate: number | null;
|
|
@@ -21336,6 +22294,125 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21336
22294
|
};
|
|
21337
22295
|
name: string;
|
|
21338
22296
|
}[]>;
|
|
22297
|
+
getBankAccounts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
22298
|
+
items: {
|
|
22299
|
+
id: string;
|
|
22300
|
+
source_ref: {
|
|
22301
|
+
id?: string | null | undefined;
|
|
22302
|
+
model?: string | null | undefined;
|
|
22303
|
+
};
|
|
22304
|
+
name: string;
|
|
22305
|
+
iban?: string | null | undefined;
|
|
22306
|
+
currency?: string | null | undefined;
|
|
22307
|
+
balance?: number | null | undefined;
|
|
22308
|
+
}[];
|
|
22309
|
+
total: number;
|
|
22310
|
+
page: number;
|
|
22311
|
+
size: number;
|
|
22312
|
+
}>;
|
|
22313
|
+
getBankTransactions(params: {
|
|
22314
|
+
date_from?: string | null | undefined;
|
|
22315
|
+
date_to?: string | null | undefined;
|
|
22316
|
+
bank_account_id: string;
|
|
22317
|
+
status?: "draft" | "done" | null | undefined;
|
|
22318
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
22319
|
+
items: {
|
|
22320
|
+
id: string;
|
|
22321
|
+
source_ref: {
|
|
22322
|
+
id?: string | null | undefined;
|
|
22323
|
+
model?: string | null | undefined;
|
|
22324
|
+
};
|
|
22325
|
+
status: "draft" | "done";
|
|
22326
|
+
bank_account_id: string;
|
|
22327
|
+
amount: number;
|
|
22328
|
+
date: string;
|
|
22329
|
+
description?: string | null | undefined;
|
|
22330
|
+
currency: string;
|
|
22331
|
+
currency_exchange_rate: number | null;
|
|
22332
|
+
accounting_code?: string | null | undefined;
|
|
22333
|
+
linked_documents: {
|
|
22334
|
+
id: string;
|
|
22335
|
+
source_ref: {
|
|
22336
|
+
id?: string | null | undefined;
|
|
22337
|
+
model?: string | null | undefined;
|
|
22338
|
+
};
|
|
22339
|
+
amount: number;
|
|
22340
|
+
type: "invoice" | "other";
|
|
22341
|
+
}[] | null;
|
|
22342
|
+
}[];
|
|
22343
|
+
total: number;
|
|
22344
|
+
page: number;
|
|
22345
|
+
size: number;
|
|
22346
|
+
}>;
|
|
22347
|
+
uploadDocument(document: {
|
|
22348
|
+
base64_string: string;
|
|
22349
|
+
document_type: "customer_document" | "supplier_document" | "employee_expense";
|
|
22350
|
+
}, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
22351
|
+
id: string;
|
|
22352
|
+
source_ref: {
|
|
22353
|
+
id?: string | null | undefined;
|
|
22354
|
+
model?: string | null | undefined;
|
|
22355
|
+
};
|
|
22356
|
+
currency?: string | null | undefined;
|
|
22357
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
22358
|
+
status?: "draft" | "posted" | "cancelled" | "paid" | null | undefined;
|
|
22359
|
+
invoice_date?: string | null | undefined;
|
|
22360
|
+
tax_amount?: number | null | undefined;
|
|
22361
|
+
untaxed_amount?: number | null | undefined;
|
|
22362
|
+
total?: number | null | undefined;
|
|
22363
|
+
lines: {
|
|
22364
|
+
description?: string | null | undefined;
|
|
22365
|
+
unit_price: number;
|
|
22366
|
+
quantity: number;
|
|
22367
|
+
discount_amount: number;
|
|
22368
|
+
tax_amount: number;
|
|
22369
|
+
untaxed_amount: number;
|
|
22370
|
+
total: number;
|
|
22371
|
+
tax_rate?: number | null | undefined;
|
|
22372
|
+
account_number?: string | null | undefined;
|
|
22373
|
+
tax_id?: string | null | undefined;
|
|
22374
|
+
tax_exemption_reason?: string | null | undefined;
|
|
22375
|
+
unit_of_measure?: string | null | undefined;
|
|
22376
|
+
product_id?: string | null | undefined;
|
|
22377
|
+
product_code?: string | null | undefined;
|
|
22378
|
+
product_name?: string | null | undefined;
|
|
22379
|
+
}[] | null;
|
|
22380
|
+
partner_id?: string | null | undefined;
|
|
22381
|
+
invoice_number?: string | null | undefined;
|
|
22382
|
+
due_date?: string | null | undefined;
|
|
22383
|
+
reference?: string | null | undefined;
|
|
22384
|
+
payment_communication?: string | null | undefined;
|
|
22385
|
+
customer_memo?: string | null | undefined;
|
|
22386
|
+
journal_ref?: {
|
|
22387
|
+
id?: string | null | undefined;
|
|
22388
|
+
model?: string | null | undefined;
|
|
22389
|
+
name?: string | null | undefined;
|
|
22390
|
+
} | null | undefined;
|
|
22391
|
+
italian_specificities?: {
|
|
22392
|
+
stamp_duty_amount?: number | null | undefined;
|
|
22393
|
+
withholding_tax?: {
|
|
22394
|
+
rate: number;
|
|
22395
|
+
amount: number;
|
|
22396
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | null | undefined;
|
|
22397
|
+
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;
|
|
22398
|
+
} | null | undefined;
|
|
22399
|
+
welfare_fund?: {
|
|
22400
|
+
rate: number;
|
|
22401
|
+
amount: number;
|
|
22402
|
+
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;
|
|
22403
|
+
} | null | undefined;
|
|
22404
|
+
payment_reporting?: {
|
|
22405
|
+
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;
|
|
22406
|
+
conditions?: "TP01" | "TP02" | "TP03" | null | undefined;
|
|
22407
|
+
} | null | undefined;
|
|
22408
|
+
} | null | undefined;
|
|
22409
|
+
last_updated_on?: string | null | undefined;
|
|
22410
|
+
outstanding_amount?: number | null | undefined;
|
|
22411
|
+
last_payment_date?: string | null | undefined;
|
|
22412
|
+
accounting_date?: string | null | undefined;
|
|
22413
|
+
payment_method_id?: string | null | undefined;
|
|
22414
|
+
currency_exchange_rate: number | null;
|
|
22415
|
+
}>;
|
|
21339
22416
|
}>;
|
|
21340
22417
|
ecommerce: import("../types/api").ApiFor<{
|
|
21341
22418
|
getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -21367,7 +22444,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21367
22444
|
}[] | null;
|
|
21368
22445
|
created_on?: string | null | undefined;
|
|
21369
22446
|
}[]>;
|
|
21370
|
-
getProducts(params?: {
|
|
22447
|
+
getProducts(params?: {
|
|
22448
|
+
updated_after?: string | null | undefined;
|
|
22449
|
+
sku?: string | null | undefined;
|
|
22450
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
21371
22451
|
id: string;
|
|
21372
22452
|
source_ref: {
|
|
21373
22453
|
id?: string | null | undefined;
|
|
@@ -21381,6 +22461,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21381
22461
|
name: string;
|
|
21382
22462
|
}[] | null;
|
|
21383
22463
|
created_on?: string | null | undefined;
|
|
22464
|
+
last_updated_on?: string | null | undefined;
|
|
21384
22465
|
variants: {
|
|
21385
22466
|
id: string;
|
|
21386
22467
|
source_ref: {
|
|
@@ -21422,6 +22503,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21422
22503
|
}[] | null;
|
|
21423
22504
|
}[] | null;
|
|
21424
22505
|
status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
|
|
22506
|
+
sku?: string | null | undefined;
|
|
21425
22507
|
common_attributes: {
|
|
21426
22508
|
name: string;
|
|
21427
22509
|
values: string[];
|
|
@@ -21479,6 +22561,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21479
22561
|
name: string;
|
|
21480
22562
|
}[] | null;
|
|
21481
22563
|
created_on?: string | null | undefined;
|
|
22564
|
+
last_updated_on?: string | null | undefined;
|
|
21482
22565
|
variants: {
|
|
21483
22566
|
id: string;
|
|
21484
22567
|
source_ref: {
|
|
@@ -21520,6 +22603,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21520
22603
|
}[] | null;
|
|
21521
22604
|
}[] | null;
|
|
21522
22605
|
status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
|
|
22606
|
+
sku?: string | null | undefined;
|
|
21523
22607
|
common_attributes: {
|
|
21524
22608
|
name: string;
|
|
21525
22609
|
values: string[];
|
|
@@ -21709,6 +22793,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21709
22793
|
amount: number;
|
|
21710
22794
|
}[] | null;
|
|
21711
22795
|
gift_card: boolean | null;
|
|
22796
|
+
is_gift: boolean | null;
|
|
21712
22797
|
}[];
|
|
21713
22798
|
other_fees: {
|
|
21714
22799
|
id: string;
|
|
@@ -21986,6 +23071,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
21986
23071
|
amount: number;
|
|
21987
23072
|
}[] | null;
|
|
21988
23073
|
gift_card: boolean | null;
|
|
23074
|
+
is_gift: boolean | null;
|
|
21989
23075
|
}[];
|
|
21990
23076
|
other_fees: {
|
|
21991
23077
|
id: string;
|
|
@@ -22224,6 +23310,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
22224
23310
|
amount: number;
|
|
22225
23311
|
}[] | null;
|
|
22226
23312
|
gift_card: boolean | null;
|
|
23313
|
+
is_gift: boolean | null;
|
|
22227
23314
|
}[];
|
|
22228
23315
|
other_fees: {
|
|
22229
23316
|
id: string;
|
|
@@ -22482,6 +23569,11 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
22482
23569
|
description?: string | null | undefined;
|
|
22483
23570
|
display_order: number;
|
|
22484
23571
|
challenge_question?: string | null | undefined;
|
|
23572
|
+
conditions?: {
|
|
23573
|
+
[key: string]: {
|
|
23574
|
+
[key: string]: unknown;
|
|
23575
|
+
};
|
|
23576
|
+
} | null | undefined;
|
|
22485
23577
|
values: {
|
|
22486
23578
|
source_id?: string | null | undefined;
|
|
22487
23579
|
target_id?: string | null | undefined;
|
|
@@ -22492,6 +23584,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
22492
23584
|
link_metadata?: {
|
|
22493
23585
|
[key: string]: unknown;
|
|
22494
23586
|
} | null | undefined;
|
|
23587
|
+
link_presync?: {
|
|
23588
|
+
[key: string]: unknown;
|
|
23589
|
+
} | null | undefined;
|
|
22495
23590
|
enabled_flows?: {
|
|
22496
23591
|
name: string;
|
|
22497
23592
|
description?: string | null | undefined;
|