@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
|
@@ -96,7 +96,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
96
96
|
}[];
|
|
97
97
|
items: {
|
|
98
98
|
id: string;
|
|
99
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
99
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
100
100
|
menu_id?: string | null | undefined;
|
|
101
101
|
quantity: number;
|
|
102
102
|
unit_price: number;
|
|
@@ -174,7 +174,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
174
174
|
}[];
|
|
175
175
|
items: {
|
|
176
176
|
id: string;
|
|
177
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
177
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
178
178
|
menu_id?: string | null | undefined;
|
|
179
179
|
quantity: number;
|
|
180
180
|
unit_price: number;
|
|
@@ -301,6 +301,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
301
301
|
payments: {
|
|
302
302
|
payment_method_id?: string | null | undefined;
|
|
303
303
|
payment_method_name?: string | null | undefined;
|
|
304
|
+
tip: number | null;
|
|
304
305
|
total: number;
|
|
305
306
|
}[] | null;
|
|
306
307
|
taxes: {
|
|
@@ -361,7 +362,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
361
362
|
}[];
|
|
362
363
|
items: {
|
|
363
364
|
id: string;
|
|
364
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
365
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
365
366
|
menu_id?: string | null | undefined;
|
|
366
367
|
quantity: number;
|
|
367
368
|
unit_price: number;
|
|
@@ -387,6 +388,22 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
387
388
|
ledger_account_code?: string | null | undefined;
|
|
388
389
|
posting_account_code?: string | null | undefined;
|
|
389
390
|
}[]>;
|
|
391
|
+
getObjectives(params: {
|
|
392
|
+
page?: number | undefined;
|
|
393
|
+
size?: number | undefined;
|
|
394
|
+
date_from: string;
|
|
395
|
+
date_to: string;
|
|
396
|
+
location_id?: string | null | undefined;
|
|
397
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
398
|
+
items: {
|
|
399
|
+
total: number;
|
|
400
|
+
tax_amount: number;
|
|
401
|
+
date: string;
|
|
402
|
+
}[];
|
|
403
|
+
total: number;
|
|
404
|
+
page: number;
|
|
405
|
+
size: number;
|
|
406
|
+
}>;
|
|
390
407
|
}>;
|
|
391
408
|
pms: import("../types/api").ApiFor<{
|
|
392
409
|
getLocations(rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
@@ -443,7 +460,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
443
460
|
id?: string | null | undefined;
|
|
444
461
|
model?: string | null | undefined;
|
|
445
462
|
};
|
|
446
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
463
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
447
464
|
menu_id?: string | null | undefined;
|
|
448
465
|
quantity: number;
|
|
449
466
|
unit_price: number;
|
|
@@ -535,6 +552,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
535
552
|
payments: {
|
|
536
553
|
payment_method_id?: string | null | undefined;
|
|
537
554
|
payment_method_name?: string | null | undefined;
|
|
555
|
+
tip: number | null;
|
|
538
556
|
total: number;
|
|
539
557
|
}[] | null;
|
|
540
558
|
taxes: {
|
|
@@ -567,6 +585,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
567
585
|
model?: string | null | undefined;
|
|
568
586
|
};
|
|
569
587
|
} | null | undefined;
|
|
588
|
+
description?: string | null | undefined;
|
|
570
589
|
}[]>;
|
|
571
590
|
getAccountingCategories(params?: {} | undefined, rawData?: boolean | undefined): import("../types/api").RequestData<{
|
|
572
591
|
id: string;
|
|
@@ -643,7 +662,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
643
662
|
id?: string | null | undefined;
|
|
644
663
|
model?: string | null | undefined;
|
|
645
664
|
};
|
|
646
|
-
type?: "menu" | "product" | "general_discount" | null | undefined;
|
|
665
|
+
type?: "menu" | "product" | "service" | "general_discount" | null | undefined;
|
|
647
666
|
menu_id?: string | null | undefined;
|
|
648
667
|
quantity: number;
|
|
649
668
|
unit_price: number;
|
|
@@ -679,6 +698,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
679
698
|
model?: string | null | undefined;
|
|
680
699
|
};
|
|
681
700
|
} | null | undefined;
|
|
701
|
+
description?: string | null | undefined;
|
|
682
702
|
}[];
|
|
683
703
|
service_id?: string | null | undefined;
|
|
684
704
|
reservation?: {
|
|
@@ -744,7 +764,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
744
764
|
id?: string | null | undefined;
|
|
745
765
|
model?: string | null | undefined;
|
|
746
766
|
};
|
|
747
|
-
|
|
767
|
+
amount: number;
|
|
748
768
|
fee: number;
|
|
749
769
|
currency: string;
|
|
750
770
|
exchange_rate: number;
|
|
@@ -1257,7 +1277,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1257
1277
|
customer_memo?: string | null | undefined;
|
|
1258
1278
|
invoice_date: string;
|
|
1259
1279
|
due_date: string;
|
|
1260
|
-
partner_id
|
|
1280
|
+
partner_id?: string | null | undefined;
|
|
1261
1281
|
journal_id?: string | null | undefined;
|
|
1262
1282
|
status: "draft" | "posted" | null;
|
|
1263
1283
|
pdf?: string | null | undefined;
|
|
@@ -1369,6 +1389,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1369
1389
|
country?: string | null | undefined;
|
|
1370
1390
|
}[] | null;
|
|
1371
1391
|
} | null | undefined;
|
|
1392
|
+
due_dates: {
|
|
1393
|
+
due_date: string;
|
|
1394
|
+
payment_method?: string | null | undefined;
|
|
1395
|
+
amount: number;
|
|
1396
|
+
}[] | null;
|
|
1372
1397
|
lines: {
|
|
1373
1398
|
line_number: number | null;
|
|
1374
1399
|
unit_price: number;
|
|
@@ -1396,7 +1421,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1396
1421
|
customer_memo?: string | null | undefined;
|
|
1397
1422
|
invoice_date: string;
|
|
1398
1423
|
due_date: string;
|
|
1399
|
-
partner_id
|
|
1424
|
+
partner_id?: string | null | undefined;
|
|
1400
1425
|
journal_id?: string | null | undefined;
|
|
1401
1426
|
status: "draft" | "posted" | null;
|
|
1402
1427
|
pdf?: string | null | undefined;
|
|
@@ -1514,6 +1539,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1514
1539
|
country?: string | null | undefined;
|
|
1515
1540
|
}[] | null;
|
|
1516
1541
|
} | null | undefined;
|
|
1542
|
+
due_dates: {
|
|
1543
|
+
due_date: string;
|
|
1544
|
+
payment_method?: string | null | undefined;
|
|
1545
|
+
amount: number;
|
|
1546
|
+
}[] | null;
|
|
1517
1547
|
lines: {
|
|
1518
1548
|
line_number: number | null;
|
|
1519
1549
|
unit_price: number;
|
|
@@ -1613,6 +1643,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1613
1643
|
country?: string | null | undefined;
|
|
1614
1644
|
}[] | null;
|
|
1615
1645
|
} | null | undefined;
|
|
1646
|
+
due_dates: {
|
|
1647
|
+
due_date: string;
|
|
1648
|
+
payment_method?: string | null | undefined;
|
|
1649
|
+
amount: number;
|
|
1650
|
+
}[] | null;
|
|
1616
1651
|
lines: {
|
|
1617
1652
|
line_number: number | null;
|
|
1618
1653
|
unit_price: number;
|
|
@@ -1701,6 +1736,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1701
1736
|
country?: string | null | undefined;
|
|
1702
1737
|
}[] | null;
|
|
1703
1738
|
} | null | undefined;
|
|
1739
|
+
due_dates: {
|
|
1740
|
+
due_date: string;
|
|
1741
|
+
payment_method?: string | null | undefined;
|
|
1742
|
+
amount: number;
|
|
1743
|
+
}[] | null;
|
|
1704
1744
|
lines: {
|
|
1705
1745
|
line_number: number | null;
|
|
1706
1746
|
unit_price: number;
|
|
@@ -1789,6 +1829,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1789
1829
|
country?: string | null | undefined;
|
|
1790
1830
|
}[] | null;
|
|
1791
1831
|
} | null | undefined;
|
|
1832
|
+
due_dates: {
|
|
1833
|
+
due_date: string;
|
|
1834
|
+
payment_method?: string | null | undefined;
|
|
1835
|
+
amount: number;
|
|
1836
|
+
}[] | null;
|
|
1792
1837
|
lines: {
|
|
1793
1838
|
line_number: number | null;
|
|
1794
1839
|
unit_price: number;
|
|
@@ -1888,6 +1933,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1888
1933
|
country?: string | null | undefined;
|
|
1889
1934
|
}[] | null;
|
|
1890
1935
|
} | null | undefined;
|
|
1936
|
+
due_dates: {
|
|
1937
|
+
due_date: string;
|
|
1938
|
+
payment_method?: string | null | undefined;
|
|
1939
|
+
amount: number;
|
|
1940
|
+
}[] | null;
|
|
1891
1941
|
lines: {
|
|
1892
1942
|
line_number: number | null;
|
|
1893
1943
|
unit_price: number;
|
|
@@ -2046,6 +2096,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2046
2096
|
date: string | null;
|
|
2047
2097
|
posted: boolean | null;
|
|
2048
2098
|
id: string;
|
|
2099
|
+
due_dates: {
|
|
2100
|
+
due_date: string;
|
|
2101
|
+
payment_method?: string | null | undefined;
|
|
2102
|
+
debit: number | null;
|
|
2103
|
+
credit: number | null;
|
|
2104
|
+
}[] | null;
|
|
2049
2105
|
items: {
|
|
2050
2106
|
account_number: string;
|
|
2051
2107
|
partner_id?: string | null | undefined;
|
|
@@ -2079,6 +2135,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2079
2135
|
date: string | null;
|
|
2080
2136
|
posted: boolean | null;
|
|
2081
2137
|
id: string;
|
|
2138
|
+
due_dates: {
|
|
2139
|
+
due_date: string;
|
|
2140
|
+
payment_method?: string | null | undefined;
|
|
2141
|
+
debit: number | null;
|
|
2142
|
+
credit: number | null;
|
|
2143
|
+
}[] | null;
|
|
2082
2144
|
items: {
|
|
2083
2145
|
account_number: string;
|
|
2084
2146
|
partner_id?: string | null | undefined;
|
|
@@ -2126,6 +2188,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2126
2188
|
name: string;
|
|
2127
2189
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
2128
2190
|
counterpart_account?: string | null | undefined;
|
|
2191
|
+
unallocated_account?: string | null | undefined;
|
|
2129
2192
|
next_document_numbers: {
|
|
2130
2193
|
bookyear_name?: string | null | undefined;
|
|
2131
2194
|
next_document_number?: string | null | undefined;
|
|
@@ -2134,6 +2197,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2134
2197
|
}[] | null;
|
|
2135
2198
|
iban?: string | null | undefined;
|
|
2136
2199
|
currency?: string | null | undefined;
|
|
2200
|
+
other_currencies_allowed: boolean | null;
|
|
2201
|
+
blocked: boolean | null;
|
|
2137
2202
|
}[]>;
|
|
2138
2203
|
createJournal(journal: {
|
|
2139
2204
|
code: string;
|
|
@@ -2148,6 +2213,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2148
2213
|
name: string;
|
|
2149
2214
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
2150
2215
|
counterpart_account?: string | null | undefined;
|
|
2216
|
+
unallocated_account?: string | null | undefined;
|
|
2151
2217
|
next_document_numbers: {
|
|
2152
2218
|
bookyear_name?: string | null | undefined;
|
|
2153
2219
|
next_document_number?: string | null | undefined;
|
|
@@ -2156,6 +2222,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2156
2222
|
}[] | null;
|
|
2157
2223
|
iban?: string | null | undefined;
|
|
2158
2224
|
currency?: string | null | undefined;
|
|
2225
|
+
other_currencies_allowed: boolean | null;
|
|
2226
|
+
blocked: boolean | null;
|
|
2159
2227
|
}>;
|
|
2160
2228
|
getVatCodes(params?: {
|
|
2161
2229
|
folder_id?: string | null | undefined;
|
|
@@ -2169,6 +2237,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2169
2237
|
deductible_account?: string | null | undefined;
|
|
2170
2238
|
payable_account?: string | null | undefined;
|
|
2171
2239
|
reversed: boolean | null;
|
|
2240
|
+
country?: string | null | undefined;
|
|
2172
2241
|
}[]>;
|
|
2173
2242
|
getMiscOperations(params?: {
|
|
2174
2243
|
date_from?: string | null | undefined;
|
|
@@ -2275,7 +2344,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2275
2344
|
number: string;
|
|
2276
2345
|
name: string;
|
|
2277
2346
|
active: boolean | null;
|
|
2278
|
-
type?: "vat" | "
|
|
2347
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
2279
2348
|
}[]>;
|
|
2280
2349
|
getBalanceOfAccounts(filter: {
|
|
2281
2350
|
accounts: string[];
|
|
@@ -2339,41 +2408,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2339
2408
|
reference?: string | null | undefined;
|
|
2340
2409
|
} | null | undefined;
|
|
2341
2410
|
}[]>;
|
|
2342
|
-
createFinancialEntryOld(financial_entry: {
|
|
2343
|
-
date: string;
|
|
2344
|
-
journal_id: string;
|
|
2345
|
-
currency: string;
|
|
2346
|
-
currency_exchange_rate: number | null;
|
|
2347
|
-
reference?: string | null | undefined;
|
|
2348
|
-
number?: string | null | undefined;
|
|
2349
|
-
items: {
|
|
2350
|
-
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2351
|
-
account_number: string;
|
|
2352
|
-
partner_id?: string | null | undefined;
|
|
2353
|
-
amount: number;
|
|
2354
|
-
description?: string | null | undefined;
|
|
2355
|
-
}[];
|
|
2356
|
-
pdf?: string | null | undefined;
|
|
2357
|
-
}, params?: {
|
|
2358
|
-
folder_id?: string | null | undefined;
|
|
2359
|
-
financial_counterpart_account?: string | null | undefined;
|
|
2360
|
-
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2361
|
-
date: string;
|
|
2362
|
-
journal_id: string;
|
|
2363
|
-
currency: string;
|
|
2364
|
-
currency_exchange_rate: number | null;
|
|
2365
|
-
reference?: string | null | undefined;
|
|
2366
|
-
id: string;
|
|
2367
|
-
number: string;
|
|
2368
|
-
items: {
|
|
2369
|
-
type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2370
|
-
account_number: string;
|
|
2371
|
-
partner_id?: string | null | undefined;
|
|
2372
|
-
amount: number;
|
|
2373
|
-
description?: string | null | undefined;
|
|
2374
|
-
counterpart_account: string;
|
|
2375
|
-
}[];
|
|
2376
|
-
}>;
|
|
2377
2411
|
createFinancialEntry(financial_entry: {
|
|
2378
2412
|
date: string;
|
|
2379
2413
|
journal_id: string;
|
|
@@ -2407,59 +2441,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2407
2441
|
counterpart_account: string;
|
|
2408
2442
|
}[];
|
|
2409
2443
|
}>;
|
|
2410
|
-
createJournalEntryOld(journal_entry: {
|
|
2411
|
-
reference?: string | null | undefined;
|
|
2412
|
-
due_date?: string | null | undefined;
|
|
2413
|
-
journal_id: string;
|
|
2414
|
-
name: string;
|
|
2415
|
-
date: string;
|
|
2416
|
-
items: {
|
|
2417
|
-
account_number: string;
|
|
2418
|
-
partner_id?: string | null | undefined;
|
|
2419
|
-
description?: string | null | undefined;
|
|
2420
|
-
debit: number;
|
|
2421
|
-
credit: number;
|
|
2422
|
-
currency: string;
|
|
2423
|
-
currency_exchange_rate: number | null;
|
|
2424
|
-
analytic_distribution: {
|
|
2425
|
-
analytic_plan: string;
|
|
2426
|
-
analytic_accounts: {
|
|
2427
|
-
analytic_account: string;
|
|
2428
|
-
percentage: number;
|
|
2429
|
-
}[];
|
|
2430
|
-
}[] | null;
|
|
2431
|
-
}[];
|
|
2432
|
-
pdf?: string | null | undefined;
|
|
2433
|
-
}, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2434
|
-
reference?: string | null | undefined;
|
|
2435
|
-
due_date?: string | null | undefined;
|
|
2436
|
-
journal_id: string;
|
|
2437
|
-
name?: string | null | undefined;
|
|
2438
|
-
journal_name?: string | null | undefined;
|
|
2439
|
-
date: string | null;
|
|
2440
|
-
posted: boolean | null;
|
|
2441
|
-
id: string;
|
|
2442
|
-
items: {
|
|
2443
|
-
account_number: string;
|
|
2444
|
-
partner_id?: string | null | undefined;
|
|
2445
|
-
description?: string | null | undefined;
|
|
2446
|
-
debit: number;
|
|
2447
|
-
credit: number;
|
|
2448
|
-
currency: string;
|
|
2449
|
-
currency_exchange_rate: number | null;
|
|
2450
|
-
id: string;
|
|
2451
|
-
partner_name?: string | null | undefined;
|
|
2452
|
-
account_name: string;
|
|
2453
|
-
matching_numbers: string[] | null;
|
|
2454
|
-
analytic_distribution: {
|
|
2455
|
-
analytic_plan: string;
|
|
2456
|
-
analytic_accounts: {
|
|
2457
|
-
analytic_account: string;
|
|
2458
|
-
percentage: number;
|
|
2459
|
-
}[];
|
|
2460
|
-
}[] | null;
|
|
2461
|
-
}[] | null;
|
|
2462
|
-
}>;
|
|
2463
2444
|
createJournalEntry(journal_entry: {
|
|
2464
2445
|
reference?: string | null | undefined;
|
|
2465
2446
|
due_date?: string | null | undefined;
|
|
@@ -2470,7 +2451,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2470
2451
|
date: string;
|
|
2471
2452
|
items: {
|
|
2472
2453
|
account_type: "customer_account" | "supplier_account" | "employee_account" | "general_account";
|
|
2473
|
-
account
|
|
2454
|
+
account?: string | null | undefined;
|
|
2474
2455
|
force_general_account?: string | null | undefined;
|
|
2475
2456
|
prioritise_thirdparty_account: boolean | null;
|
|
2476
2457
|
description?: string | null | undefined;
|
|
@@ -2484,7 +2465,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2484
2465
|
}[];
|
|
2485
2466
|
}[] | null;
|
|
2486
2467
|
tax_code?: string | null | undefined;
|
|
2487
|
-
country?: string | null | undefined;
|
|
2488
2468
|
account_info?: {
|
|
2489
2469
|
account_number: string;
|
|
2490
2470
|
account_name: string;
|
|
@@ -2506,6 +2486,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2506
2486
|
date: string | null;
|
|
2507
2487
|
posted: boolean | null;
|
|
2508
2488
|
id: string;
|
|
2489
|
+
due_dates: {
|
|
2490
|
+
due_date: string;
|
|
2491
|
+
payment_method?: string | null | undefined;
|
|
2492
|
+
debit: number | null;
|
|
2493
|
+
credit: number | null;
|
|
2494
|
+
}[] | null;
|
|
2509
2495
|
items: {
|
|
2510
2496
|
account_number: string;
|
|
2511
2497
|
partner_id?: string | null | undefined;
|
|
@@ -2550,12 +2536,65 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2550
2536
|
[key: string]: unknown;
|
|
2551
2537
|
} | null | undefined;
|
|
2552
2538
|
}[]>;
|
|
2539
|
+
createExpense(expense: {
|
|
2540
|
+
employee_id: string;
|
|
2541
|
+
total: number;
|
|
2542
|
+
untaxed_amount: number;
|
|
2543
|
+
tax_amount: number;
|
|
2544
|
+
reference?: string | null | undefined;
|
|
2545
|
+
number?: string | null | undefined;
|
|
2546
|
+
currency: string;
|
|
2547
|
+
currency_exchange_rate: number | null;
|
|
2548
|
+
date: string;
|
|
2549
|
+
pdf?: string | null | undefined;
|
|
2550
|
+
lines: {
|
|
2551
|
+
total: number;
|
|
2552
|
+
untaxed_amount: number;
|
|
2553
|
+
tax_amount: number;
|
|
2554
|
+
description?: string | null | undefined;
|
|
2555
|
+
account_number: string;
|
|
2556
|
+
tax_rate: number;
|
|
2557
|
+
tax_id: string;
|
|
2558
|
+
}[];
|
|
2559
|
+
}, params?: {
|
|
2560
|
+
folder_id?: string | null | undefined;
|
|
2561
|
+
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2562
|
+
employee_id: string;
|
|
2563
|
+
total: number;
|
|
2564
|
+
untaxed_amount: number;
|
|
2565
|
+
tax_amount: number;
|
|
2566
|
+
reference?: string | null | undefined;
|
|
2567
|
+
number?: string | null | undefined;
|
|
2568
|
+
currency: string;
|
|
2569
|
+
currency_exchange_rate: number | null;
|
|
2570
|
+
date: string;
|
|
2571
|
+
pdf?: string | null | undefined;
|
|
2572
|
+
lines: {
|
|
2573
|
+
total: number;
|
|
2574
|
+
untaxed_amount: number;
|
|
2575
|
+
tax_amount: number;
|
|
2576
|
+
description?: string | null | undefined;
|
|
2577
|
+
account_number: string;
|
|
2578
|
+
tax_rate: number;
|
|
2579
|
+
tax_id: string;
|
|
2580
|
+
}[];
|
|
2581
|
+
id: string;
|
|
2582
|
+
}>;
|
|
2553
2583
|
getFolders(options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2554
2584
|
id: string;
|
|
2555
2585
|
name: string;
|
|
2556
2586
|
selected: boolean | null;
|
|
2557
2587
|
vat?: string | null | undefined;
|
|
2558
2588
|
company_number?: string | null | undefined;
|
|
2589
|
+
main_currency?: string | null | undefined;
|
|
2590
|
+
addresses?: {
|
|
2591
|
+
street?: string | null | undefined;
|
|
2592
|
+
number?: string | null | undefined;
|
|
2593
|
+
box?: string | null | undefined;
|
|
2594
|
+
postal_code?: string | null | undefined;
|
|
2595
|
+
city?: string | null | undefined;
|
|
2596
|
+
country?: string | null | undefined;
|
|
2597
|
+
}[] | null | undefined;
|
|
2559
2598
|
}[]>;
|
|
2560
2599
|
getBookyears(params?: {
|
|
2561
2600
|
folder_id?: string | null | undefined;
|
|
@@ -2568,13 +2607,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2568
2607
|
createLedgerAccount(account: {
|
|
2569
2608
|
name: string;
|
|
2570
2609
|
number: string;
|
|
2610
|
+
type: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null;
|
|
2571
2611
|
}, params?: {
|
|
2572
2612
|
folder_id?: string | null | undefined;
|
|
2573
2613
|
} | undefined, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
2574
2614
|
number: string;
|
|
2575
2615
|
name: string;
|
|
2576
2616
|
active: boolean | null;
|
|
2577
|
-
type?: "vat" | "
|
|
2617
|
+
type?: "vat" | "other" | "bank" | "cash" | "other_financial" | "receivable" | "payable" | "income" | "expense" | null | undefined;
|
|
2578
2618
|
}>;
|
|
2579
2619
|
createBankAccount(bankAccount: {
|
|
2580
2620
|
code: string;
|
|
@@ -2595,6 +2635,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2595
2635
|
bank_name?: string | null | undefined;
|
|
2596
2636
|
journal_id?: string | null | undefined;
|
|
2597
2637
|
ledger_account?: string | null | undefined;
|
|
2638
|
+
unallocated_account?: string | null | undefined;
|
|
2598
2639
|
}>;
|
|
2599
2640
|
getJournalEntry(journalEntryId: string, params?: {
|
|
2600
2641
|
folder_id?: string | null | undefined;
|
|
@@ -2607,6 +2648,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2607
2648
|
date: string | null;
|
|
2608
2649
|
posted: boolean | null;
|
|
2609
2650
|
id: string;
|
|
2651
|
+
due_dates: {
|
|
2652
|
+
due_date: string;
|
|
2653
|
+
payment_method?: string | null | undefined;
|
|
2654
|
+
debit: number | null;
|
|
2655
|
+
credit: number | null;
|
|
2656
|
+
}[] | null;
|
|
2610
2657
|
items: {
|
|
2611
2658
|
account_number: string;
|
|
2612
2659
|
partner_id?: string | null | undefined;
|
|
@@ -2628,6 +2675,38 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2628
2675
|
}[] | null;
|
|
2629
2676
|
}[] | null;
|
|
2630
2677
|
}>;
|
|
2678
|
+
getPaymentMethods(params?: {
|
|
2679
|
+
page?: number | undefined;
|
|
2680
|
+
size?: number | undefined;
|
|
2681
|
+
folder_id?: string | null | undefined;
|
|
2682
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
2683
|
+
items: {
|
|
2684
|
+
id: string;
|
|
2685
|
+
name?: string | null | undefined;
|
|
2686
|
+
}[];
|
|
2687
|
+
total: number;
|
|
2688
|
+
page: number;
|
|
2689
|
+
size: number;
|
|
2690
|
+
}>;
|
|
2691
|
+
createInvoicePayment(body: {
|
|
2692
|
+
date: string;
|
|
2693
|
+
payment_method_id: string;
|
|
2694
|
+
currency: string;
|
|
2695
|
+
currency_exchange_rate: number | null;
|
|
2696
|
+
reference?: string | null | undefined;
|
|
2697
|
+
number?: string | null | undefined;
|
|
2698
|
+
items: {
|
|
2699
|
+
invoice_id: string;
|
|
2700
|
+
amount: number;
|
|
2701
|
+
}[];
|
|
2702
|
+
}, params?: {
|
|
2703
|
+
folder_id?: string | null | undefined;
|
|
2704
|
+
} | undefined): import("../types/api").RequestData<{
|
|
2705
|
+
headers: {
|
|
2706
|
+
[name: string]: unknown;
|
|
2707
|
+
};
|
|
2708
|
+
content?: undefined;
|
|
2709
|
+
}>;
|
|
2631
2710
|
}>;
|
|
2632
2711
|
invoicing: import("../types/api").ApiFor<{
|
|
2633
2712
|
getInvoices(params?: {
|
|
@@ -2698,6 +2777,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2698
2777
|
} | null | undefined;
|
|
2699
2778
|
last_updated_on?: string | null | undefined;
|
|
2700
2779
|
outstanding_amount?: number | null | undefined;
|
|
2780
|
+
last_payment_date?: string | null | undefined;
|
|
2701
2781
|
accounting_date?: string | null | undefined;
|
|
2702
2782
|
payment_method_id?: string | null | undefined;
|
|
2703
2783
|
currency_exchange_rate: number | null;
|
|
@@ -2765,6 +2845,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2765
2845
|
} | null | undefined;
|
|
2766
2846
|
last_updated_on?: string | null | undefined;
|
|
2767
2847
|
outstanding_amount?: number | null | undefined;
|
|
2848
|
+
last_payment_date?: string | null | undefined;
|
|
2768
2849
|
accounting_date?: string | null | undefined;
|
|
2769
2850
|
payment_method_id?: string | null | undefined;
|
|
2770
2851
|
currency_exchange_rate: number | null;
|
|
@@ -2885,6 +2966,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2885
2966
|
} | null | undefined;
|
|
2886
2967
|
last_updated_on?: string | null | undefined;
|
|
2887
2968
|
outstanding_amount?: number | null | undefined;
|
|
2969
|
+
last_payment_date?: string | null | undefined;
|
|
2888
2970
|
accounting_date?: string | null | undefined;
|
|
2889
2971
|
payment_method_id?: string | null | undefined;
|
|
2890
2972
|
currency_exchange_rate: number | null;
|
|
@@ -3212,6 +3294,125 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3212
3294
|
};
|
|
3213
3295
|
name: string;
|
|
3214
3296
|
}[]>;
|
|
3297
|
+
getBankAccounts(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3298
|
+
items: {
|
|
3299
|
+
id: string;
|
|
3300
|
+
source_ref: {
|
|
3301
|
+
id?: string | null | undefined;
|
|
3302
|
+
model?: string | null | undefined;
|
|
3303
|
+
};
|
|
3304
|
+
name: string;
|
|
3305
|
+
iban?: string | null | undefined;
|
|
3306
|
+
currency?: string | null | undefined;
|
|
3307
|
+
balance?: number | null | undefined;
|
|
3308
|
+
}[];
|
|
3309
|
+
total: number;
|
|
3310
|
+
page: number;
|
|
3311
|
+
size: number;
|
|
3312
|
+
}>;
|
|
3313
|
+
getBankTransactions(params: {
|
|
3314
|
+
date_from?: string | null | undefined;
|
|
3315
|
+
date_to?: string | null | undefined;
|
|
3316
|
+
bank_account_id: string;
|
|
3317
|
+
status?: "draft" | "done" | null | undefined;
|
|
3318
|
+
}, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3319
|
+
items: {
|
|
3320
|
+
id: string;
|
|
3321
|
+
source_ref: {
|
|
3322
|
+
id?: string | null | undefined;
|
|
3323
|
+
model?: string | null | undefined;
|
|
3324
|
+
};
|
|
3325
|
+
status: "draft" | "done";
|
|
3326
|
+
bank_account_id: string;
|
|
3327
|
+
amount: number;
|
|
3328
|
+
date: string;
|
|
3329
|
+
description?: string | null | undefined;
|
|
3330
|
+
currency: string;
|
|
3331
|
+
currency_exchange_rate: number | null;
|
|
3332
|
+
accounting_code?: string | null | undefined;
|
|
3333
|
+
linked_documents: {
|
|
3334
|
+
id: string;
|
|
3335
|
+
source_ref: {
|
|
3336
|
+
id?: string | null | undefined;
|
|
3337
|
+
model?: string | null | undefined;
|
|
3338
|
+
};
|
|
3339
|
+
amount: number;
|
|
3340
|
+
type: "invoice" | "other";
|
|
3341
|
+
}[] | null;
|
|
3342
|
+
}[];
|
|
3343
|
+
total: number;
|
|
3344
|
+
page: number;
|
|
3345
|
+
size: number;
|
|
3346
|
+
}>;
|
|
3347
|
+
uploadDocument(document: {
|
|
3348
|
+
base64_string: string;
|
|
3349
|
+
document_type: "customer_document" | "supplier_document" | "employee_expense";
|
|
3350
|
+
}, options?: import("../types/api").ClientRequestOption | undefined): import("../types/api").RequestData<{
|
|
3351
|
+
id: string;
|
|
3352
|
+
source_ref: {
|
|
3353
|
+
id?: string | null | undefined;
|
|
3354
|
+
model?: string | null | undefined;
|
|
3355
|
+
};
|
|
3356
|
+
currency?: string | null | undefined;
|
|
3357
|
+
invoice_type?: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "all" | null | undefined;
|
|
3358
|
+
status?: "draft" | "posted" | "cancelled" | "paid" | null | undefined;
|
|
3359
|
+
invoice_date?: string | null | undefined;
|
|
3360
|
+
tax_amount?: number | null | undefined;
|
|
3361
|
+
untaxed_amount?: number | null | undefined;
|
|
3362
|
+
total?: number | null | undefined;
|
|
3363
|
+
lines: {
|
|
3364
|
+
description?: string | null | undefined;
|
|
3365
|
+
unit_price: number;
|
|
3366
|
+
quantity: number;
|
|
3367
|
+
discount_amount: number;
|
|
3368
|
+
tax_amount: number;
|
|
3369
|
+
untaxed_amount: number;
|
|
3370
|
+
total: number;
|
|
3371
|
+
tax_rate?: number | null | undefined;
|
|
3372
|
+
account_number?: string | null | undefined;
|
|
3373
|
+
tax_id?: string | null | undefined;
|
|
3374
|
+
tax_exemption_reason?: string | null | undefined;
|
|
3375
|
+
unit_of_measure?: string | null | undefined;
|
|
3376
|
+
product_id?: string | null | undefined;
|
|
3377
|
+
product_code?: string | null | undefined;
|
|
3378
|
+
product_name?: string | null | undefined;
|
|
3379
|
+
}[] | null;
|
|
3380
|
+
partner_id?: string | null | undefined;
|
|
3381
|
+
invoice_number?: string | null | undefined;
|
|
3382
|
+
due_date?: string | null | undefined;
|
|
3383
|
+
reference?: string | null | undefined;
|
|
3384
|
+
payment_communication?: string | null | undefined;
|
|
3385
|
+
customer_memo?: string | null | undefined;
|
|
3386
|
+
journal_ref?: {
|
|
3387
|
+
id?: string | null | undefined;
|
|
3388
|
+
model?: string | null | undefined;
|
|
3389
|
+
name?: string | null | undefined;
|
|
3390
|
+
} | null | undefined;
|
|
3391
|
+
italian_specificities?: {
|
|
3392
|
+
stamp_duty_amount?: number | null | undefined;
|
|
3393
|
+
withholding_tax?: {
|
|
3394
|
+
rate: number;
|
|
3395
|
+
amount: number;
|
|
3396
|
+
reason?: "RT01" | "RT02" | "RT03" | "RT04" | "RT05" | "RT06" | null | undefined;
|
|
3397
|
+
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;
|
|
3398
|
+
} | null | undefined;
|
|
3399
|
+
welfare_fund?: {
|
|
3400
|
+
rate: number;
|
|
3401
|
+
amount: number;
|
|
3402
|
+
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;
|
|
3403
|
+
} | null | undefined;
|
|
3404
|
+
payment_reporting?: {
|
|
3405
|
+
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;
|
|
3406
|
+
conditions?: "TP01" | "TP02" | "TP03" | null | undefined;
|
|
3407
|
+
} | null | undefined;
|
|
3408
|
+
} | null | undefined;
|
|
3409
|
+
last_updated_on?: string | null | undefined;
|
|
3410
|
+
outstanding_amount?: number | null | undefined;
|
|
3411
|
+
last_payment_date?: string | null | undefined;
|
|
3412
|
+
accounting_date?: string | null | undefined;
|
|
3413
|
+
payment_method_id?: string | null | undefined;
|
|
3414
|
+
currency_exchange_rate: number | null;
|
|
3415
|
+
}>;
|
|
3215
3416
|
}>;
|
|
3216
3417
|
ecommerce: import("../types/api").ApiFor<{
|
|
3217
3418
|
getCustomers(params?: {} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
@@ -3243,7 +3444,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3243
3444
|
}[] | null;
|
|
3244
3445
|
created_on?: string | null | undefined;
|
|
3245
3446
|
}[]>;
|
|
3246
|
-
getProducts(params?: {
|
|
3447
|
+
getProducts(params?: {
|
|
3448
|
+
updated_after?: string | null | undefined;
|
|
3449
|
+
sku?: string | null | undefined;
|
|
3450
|
+
} | undefined, options?: import("../types/api").RawDataOption | undefined): import("../types/api").RequestData<{
|
|
3247
3451
|
id: string;
|
|
3248
3452
|
source_ref: {
|
|
3249
3453
|
id?: string | null | undefined;
|
|
@@ -3257,6 +3461,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3257
3461
|
name: string;
|
|
3258
3462
|
}[] | null;
|
|
3259
3463
|
created_on?: string | null | undefined;
|
|
3464
|
+
last_updated_on?: string | null | undefined;
|
|
3260
3465
|
variants: {
|
|
3261
3466
|
id: string;
|
|
3262
3467
|
source_ref: {
|
|
@@ -3298,6 +3503,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3298
3503
|
}[] | null;
|
|
3299
3504
|
}[] | null;
|
|
3300
3505
|
status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
|
|
3506
|
+
sku?: string | null | undefined;
|
|
3301
3507
|
common_attributes: {
|
|
3302
3508
|
name: string;
|
|
3303
3509
|
values: string[];
|
|
@@ -3355,6 +3561,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3355
3561
|
name: string;
|
|
3356
3562
|
}[] | null;
|
|
3357
3563
|
created_on?: string | null | undefined;
|
|
3564
|
+
last_updated_on?: string | null | undefined;
|
|
3358
3565
|
variants: {
|
|
3359
3566
|
id: string;
|
|
3360
3567
|
source_ref: {
|
|
@@ -3396,6 +3603,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3396
3603
|
}[] | null;
|
|
3397
3604
|
}[] | null;
|
|
3398
3605
|
status?: "unknown" | "archived" | "unpublished" | "published" | null | undefined;
|
|
3606
|
+
sku?: string | null | undefined;
|
|
3399
3607
|
common_attributes: {
|
|
3400
3608
|
name: string;
|
|
3401
3609
|
values: string[];
|
|
@@ -3585,6 +3793,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3585
3793
|
amount: number;
|
|
3586
3794
|
}[] | null;
|
|
3587
3795
|
gift_card: boolean | null;
|
|
3796
|
+
is_gift: boolean | null;
|
|
3588
3797
|
}[];
|
|
3589
3798
|
other_fees: {
|
|
3590
3799
|
id: string;
|
|
@@ -3862,6 +4071,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
3862
4071
|
amount: number;
|
|
3863
4072
|
}[] | null;
|
|
3864
4073
|
gift_card: boolean | null;
|
|
4074
|
+
is_gift: boolean | null;
|
|
3865
4075
|
}[];
|
|
3866
4076
|
other_fees: {
|
|
3867
4077
|
id: string;
|
|
@@ -4100,6 +4310,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
4100
4310
|
amount: number;
|
|
4101
4311
|
}[] | null;
|
|
4102
4312
|
gift_card: boolean | null;
|
|
4313
|
+
is_gift: boolean | null;
|
|
4103
4314
|
}[];
|
|
4104
4315
|
other_fees: {
|
|
4105
4316
|
id: string;
|
|
@@ -4354,6 +4565,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
4354
4565
|
description?: string | null | undefined;
|
|
4355
4566
|
display_order: number;
|
|
4356
4567
|
challenge_question?: string | null | undefined;
|
|
4568
|
+
conditions?: {
|
|
4569
|
+
[key: string]: {
|
|
4570
|
+
[key: string]: unknown;
|
|
4571
|
+
};
|
|
4572
|
+
} | null | undefined;
|
|
4357
4573
|
values: {
|
|
4358
4574
|
source_id?: string | null | undefined;
|
|
4359
4575
|
target_id?: string | null | undefined;
|
|
@@ -4364,6 +4580,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
4364
4580
|
link_metadata?: {
|
|
4365
4581
|
[key: string]: unknown;
|
|
4366
4582
|
} | null | undefined;
|
|
4583
|
+
link_presync?: {
|
|
4584
|
+
[key: string]: unknown;
|
|
4585
|
+
} | null | undefined;
|
|
4367
4586
|
enabled_flows?: {
|
|
4368
4587
|
name: string;
|
|
4369
4588
|
description?: string | null | undefined;
|