@chift/chift-nodejs 1.0.14 → 1.0.15
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/.eslintcache +1 -1
- package/CHANGELOG.md +7 -1
- package/dist/src/modules/api.d.ts +1110 -265
- package/dist/src/modules/consumer.d.ts +221 -52
- package/dist/src/modules/consumer.js +3 -0
- package/dist/src/modules/consumers.d.ts +1109 -264
- package/dist/src/modules/integrations.d.ts +1 -1
- package/dist/src/modules/pms.d.ts +15 -0
- package/dist/src/modules/pms.js +47 -0
- package/dist/src/modules/pos.d.ts +4 -4
- package/dist/src/modules/sync.d.ts +884 -208
- package/dist/src/types/public-api/schema.d.ts +984 -292
- package/package.json +1 -1
- package/src/modules/consumer.ts +3 -0
- package/src/modules/pms.ts +67 -0
- package/src/modules/pos.ts +4 -4
- package/src/types/public-api/schema.d.ts +12029 -0
- package/src/types/public-api/schema.ts +987 -288
- package/test/modules/pos.test.ts +1 -1
|
@@ -87,6 +87,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
87
87
|
total_discount?: number | undefined;
|
|
88
88
|
total_refund?: number | undefined;
|
|
89
89
|
total_tip?: number | undefined;
|
|
90
|
+
currency?: string | undefined;
|
|
91
|
+
country?: string | undefined;
|
|
92
|
+
loyalty?: number | undefined;
|
|
93
|
+
customer_id?: string | undefined;
|
|
94
|
+
location_id?: string | undefined;
|
|
95
|
+
taxes?: {
|
|
96
|
+
tax_rate: number;
|
|
97
|
+
tax_amount: number;
|
|
98
|
+
total: number;
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
payments: {
|
|
101
|
+
id?: string | undefined;
|
|
102
|
+
payment_method_id?: string | undefined;
|
|
103
|
+
payment_method_name?: string | undefined;
|
|
104
|
+
total: number;
|
|
105
|
+
tip?: number | undefined;
|
|
106
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
107
|
+
currency?: string | undefined;
|
|
108
|
+
date?: string | undefined;
|
|
109
|
+
}[];
|
|
90
110
|
items: {
|
|
91
111
|
id: string;
|
|
92
112
|
quantity: number;
|
|
@@ -102,26 +122,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
102
122
|
product_id?: string | undefined;
|
|
103
123
|
accounting_category_id?: string | undefined;
|
|
104
124
|
}[];
|
|
105
|
-
payments: {
|
|
106
|
-
id?: string | undefined;
|
|
107
|
-
payment_method_id?: string | undefined;
|
|
108
|
-
payment_method_name?: string | undefined;
|
|
109
|
-
total: number;
|
|
110
|
-
tip?: number | undefined;
|
|
111
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
112
|
-
currency?: string | undefined;
|
|
113
|
-
date?: string | undefined;
|
|
114
|
-
}[];
|
|
115
|
-
currency?: string | undefined;
|
|
116
|
-
country?: string | undefined;
|
|
117
|
-
loyalty?: number | undefined;
|
|
118
|
-
customer_id?: string | undefined;
|
|
119
|
-
location_id?: string | undefined;
|
|
120
|
-
taxes?: {
|
|
121
|
-
tax_rate: number;
|
|
122
|
-
tax_amount: number;
|
|
123
|
-
total: number;
|
|
124
|
-
}[] | undefined;
|
|
125
125
|
}[]>;
|
|
126
126
|
getCustomers(params?: {
|
|
127
127
|
search?: string | undefined;
|
|
@@ -160,6 +160,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
160
160
|
total_discount?: number | undefined;
|
|
161
161
|
total_refund?: number | undefined;
|
|
162
162
|
total_tip?: number | undefined;
|
|
163
|
+
currency?: string | undefined;
|
|
164
|
+
country?: string | undefined;
|
|
165
|
+
loyalty?: number | undefined;
|
|
166
|
+
customer_id?: string | undefined;
|
|
167
|
+
location_id?: string | undefined;
|
|
168
|
+
taxes?: {
|
|
169
|
+
tax_rate: number;
|
|
170
|
+
tax_amount: number;
|
|
171
|
+
total: number;
|
|
172
|
+
}[] | undefined;
|
|
173
|
+
payments: {
|
|
174
|
+
id?: string | undefined;
|
|
175
|
+
payment_method_id?: string | undefined;
|
|
176
|
+
payment_method_name?: string | undefined;
|
|
177
|
+
total: number;
|
|
178
|
+
tip?: number | undefined;
|
|
179
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
180
|
+
currency?: string | undefined;
|
|
181
|
+
date?: string | undefined;
|
|
182
|
+
}[];
|
|
163
183
|
items: {
|
|
164
184
|
id: string;
|
|
165
185
|
quantity: number;
|
|
@@ -175,26 +195,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
175
195
|
product_id?: string | undefined;
|
|
176
196
|
accounting_category_id?: string | undefined;
|
|
177
197
|
}[];
|
|
178
|
-
payments: {
|
|
179
|
-
id?: string | undefined;
|
|
180
|
-
payment_method_id?: string | undefined;
|
|
181
|
-
payment_method_name?: string | undefined;
|
|
182
|
-
total: number;
|
|
183
|
-
tip?: number | undefined;
|
|
184
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
185
|
-
currency?: string | undefined;
|
|
186
|
-
date?: string | undefined;
|
|
187
|
-
}[];
|
|
188
|
-
currency?: string | undefined;
|
|
189
|
-
country?: string | undefined;
|
|
190
|
-
loyalty?: number | undefined;
|
|
191
|
-
customer_id?: string | undefined;
|
|
192
|
-
location_id?: string | undefined;
|
|
193
|
-
taxes?: {
|
|
194
|
-
tax_rate: number;
|
|
195
|
-
tax_amount: number;
|
|
196
|
-
total: number;
|
|
197
|
-
}[] | undefined;
|
|
198
198
|
}>;
|
|
199
199
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
200
200
|
id: string;
|
|
@@ -330,6 +330,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
330
330
|
total_discount?: number | undefined;
|
|
331
331
|
total_refund?: number | undefined;
|
|
332
332
|
total_tip?: number | undefined;
|
|
333
|
+
currency?: string | undefined;
|
|
334
|
+
country?: string | undefined;
|
|
335
|
+
loyalty?: number | undefined;
|
|
336
|
+
customer_id?: string | undefined;
|
|
337
|
+
location_id?: string | undefined;
|
|
338
|
+
taxes?: {
|
|
339
|
+
tax_rate: number;
|
|
340
|
+
tax_amount: number;
|
|
341
|
+
total: number;
|
|
342
|
+
}[] | undefined;
|
|
343
|
+
payments: {
|
|
344
|
+
id?: string | undefined;
|
|
345
|
+
payment_method_id?: string | undefined;
|
|
346
|
+
payment_method_name?: string | undefined;
|
|
347
|
+
total: number;
|
|
348
|
+
tip?: number | undefined;
|
|
349
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
350
|
+
currency?: string | undefined;
|
|
351
|
+
date?: string | undefined;
|
|
352
|
+
}[];
|
|
333
353
|
items: {
|
|
334
354
|
id: string;
|
|
335
355
|
quantity: number;
|
|
@@ -345,16 +365,53 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
345
365
|
product_id?: string | undefined;
|
|
346
366
|
accounting_category_id?: string | undefined;
|
|
347
367
|
}[];
|
|
348
|
-
|
|
368
|
+
}>;
|
|
369
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
370
|
+
id: string;
|
|
371
|
+
name: string;
|
|
372
|
+
id_parent?: string | undefined;
|
|
373
|
+
code?: string | undefined;
|
|
374
|
+
ledger_account_code?: string | undefined;
|
|
375
|
+
posting_account_code?: string | undefined;
|
|
376
|
+
}[]>;
|
|
377
|
+
}>;
|
|
378
|
+
pms: import("../types/api").ApiFor<{
|
|
379
|
+
getLocations(): import("../types/api").RequestData<{
|
|
380
|
+
id: string;
|
|
381
|
+
name: string;
|
|
382
|
+
timezone?: string | undefined;
|
|
383
|
+
address?: {
|
|
384
|
+
address_type?: string | undefined;
|
|
385
|
+
name?: string | undefined;
|
|
386
|
+
street?: string | undefined;
|
|
387
|
+
number?: string | undefined;
|
|
388
|
+
box?: string | undefined;
|
|
389
|
+
city?: string | undefined;
|
|
390
|
+
postal_code?: string | undefined;
|
|
391
|
+
country?: string | undefined;
|
|
392
|
+
} | undefined;
|
|
393
|
+
}[]>;
|
|
394
|
+
getOrders(params: {
|
|
395
|
+
date_from: string;
|
|
396
|
+
date_to: string;
|
|
397
|
+
location_id?: string | undefined;
|
|
398
|
+
state?: "closed" | "consumed" | undefined;
|
|
399
|
+
}): import("../types/api").RequestData<{
|
|
400
|
+
id: string;
|
|
401
|
+
source_ref: {
|
|
349
402
|
id?: string | undefined;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
403
|
+
model?: string | undefined;
|
|
404
|
+
};
|
|
405
|
+
order_number?: string | undefined;
|
|
406
|
+
creation_date: string;
|
|
407
|
+
closing_date?: string | undefined;
|
|
408
|
+
service_date?: string | undefined;
|
|
409
|
+
device_id?: string | undefined;
|
|
410
|
+
total: number;
|
|
411
|
+
tax_amount: number;
|
|
412
|
+
total_discount?: number | undefined;
|
|
413
|
+
total_refund?: number | undefined;
|
|
414
|
+
total_tip?: number | undefined;
|
|
358
415
|
currency?: string | undefined;
|
|
359
416
|
country?: string | undefined;
|
|
360
417
|
loyalty?: number | undefined;
|
|
@@ -365,9 +422,68 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
365
422
|
tax_amount: number;
|
|
366
423
|
total: number;
|
|
367
424
|
}[] | undefined;
|
|
425
|
+
items: {
|
|
426
|
+
id: string;
|
|
427
|
+
source_ref: {
|
|
428
|
+
id?: string | undefined;
|
|
429
|
+
model?: string | undefined;
|
|
430
|
+
};
|
|
431
|
+
quantity: number;
|
|
432
|
+
unit_price: number;
|
|
433
|
+
total: number;
|
|
434
|
+
tax_amount: number;
|
|
435
|
+
tax_rate?: number | undefined;
|
|
436
|
+
description?: string | undefined;
|
|
437
|
+
discounts?: {
|
|
438
|
+
name?: string | undefined;
|
|
439
|
+
total: number;
|
|
440
|
+
}[] | undefined;
|
|
441
|
+
product_id?: string | undefined;
|
|
442
|
+
accounting_category_id?: string | undefined;
|
|
443
|
+
}[];
|
|
444
|
+
service_id?: string | undefined;
|
|
445
|
+
}[]>;
|
|
446
|
+
getPaymentMethods(params?: {
|
|
447
|
+
location_id?: string | undefined;
|
|
448
|
+
} | undefined): import("../types/api").RequestData<{
|
|
449
|
+
id: string;
|
|
450
|
+
source_ref: {
|
|
451
|
+
id?: string | undefined;
|
|
452
|
+
model?: string | undefined;
|
|
453
|
+
};
|
|
454
|
+
name: string;
|
|
455
|
+
extra?: string | undefined;
|
|
456
|
+
ledger_account_code?: string | undefined;
|
|
457
|
+
}[]>;
|
|
458
|
+
getClosure(date: string, params?: {
|
|
459
|
+
location_id?: string | undefined;
|
|
460
|
+
} | undefined): import("../types/api").RequestData<{
|
|
461
|
+
date: string;
|
|
462
|
+
status: "open" | "closed";
|
|
368
463
|
}>;
|
|
464
|
+
getPayments(params: {
|
|
465
|
+
date_from: string;
|
|
466
|
+
date_to: string;
|
|
467
|
+
}): import("../types/api").RequestData<{
|
|
468
|
+
id?: string | undefined;
|
|
469
|
+
source_ref: {
|
|
470
|
+
id?: string | undefined;
|
|
471
|
+
model?: string | undefined;
|
|
472
|
+
};
|
|
473
|
+
payment_method_id?: string | undefined;
|
|
474
|
+
payment_method_name?: string | undefined;
|
|
475
|
+
total: number;
|
|
476
|
+
tip?: number | undefined;
|
|
477
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
478
|
+
currency?: string | undefined;
|
|
479
|
+
date?: string | undefined;
|
|
480
|
+
}[]>;
|
|
369
481
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
370
482
|
id: string;
|
|
483
|
+
source_ref: {
|
|
484
|
+
id?: string | undefined;
|
|
485
|
+
model?: string | undefined;
|
|
486
|
+
};
|
|
371
487
|
name: string;
|
|
372
488
|
id_parent?: string | undefined;
|
|
373
489
|
code?: string | undefined;
|
|
@@ -852,6 +968,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
852
968
|
iban: string;
|
|
853
969
|
};
|
|
854
970
|
} | undefined;
|
|
971
|
+
shipping_country?: string | undefined;
|
|
855
972
|
lines: {
|
|
856
973
|
line_number?: number | undefined;
|
|
857
974
|
description: string;
|
|
@@ -948,6 +1065,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
948
1065
|
iban: string;
|
|
949
1066
|
};
|
|
950
1067
|
} | undefined;
|
|
1068
|
+
shipping_country?: string | undefined;
|
|
951
1069
|
lines: {
|
|
952
1070
|
line_number?: number | undefined;
|
|
953
1071
|
description: string;
|
|
@@ -1809,6 +1927,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
1809
1927
|
id: string;
|
|
1810
1928
|
name: string;
|
|
1811
1929
|
selected?: boolean | undefined;
|
|
1930
|
+
vat?: string | undefined;
|
|
1931
|
+
company_number?: string | undefined;
|
|
1812
1932
|
}[]>;
|
|
1813
1933
|
}>;
|
|
1814
1934
|
invoicing: import("../types/api").ApiFor<{
|
|
@@ -2538,6 +2658,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2538
2658
|
date_to?: string | undefined;
|
|
2539
2659
|
updated_after?: string | undefined;
|
|
2540
2660
|
include_detailed_refunds?: "true" | "false" | undefined;
|
|
2661
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
2541
2662
|
} | undefined): import("../types/api").RequestData<{
|
|
2542
2663
|
id: string;
|
|
2543
2664
|
source_ref: {
|
|
@@ -2584,8 +2705,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2584
2705
|
created_on?: string | undefined;
|
|
2585
2706
|
last_updated_on?: string | undefined;
|
|
2586
2707
|
confirmed_on?: string | undefined;
|
|
2708
|
+
delivery_date?: string | undefined;
|
|
2587
2709
|
cancelled_on?: string | undefined;
|
|
2588
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
2710
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2589
2711
|
discount_amount: number;
|
|
2590
2712
|
untaxed_amount_without_fees: number;
|
|
2591
2713
|
tax_amount_without_fees: number;
|
|
@@ -2609,6 +2731,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2609
2731
|
id: string;
|
|
2610
2732
|
sku?: string | undefined;
|
|
2611
2733
|
name: string;
|
|
2734
|
+
categories?: {
|
|
2735
|
+
id: string;
|
|
2736
|
+
name: string;
|
|
2737
|
+
}[] | undefined;
|
|
2612
2738
|
} | undefined;
|
|
2613
2739
|
quantity: number;
|
|
2614
2740
|
untaxed_amount: number;
|
|
@@ -2626,6 +2752,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2626
2752
|
tax_amount: number;
|
|
2627
2753
|
total: number;
|
|
2628
2754
|
}[] | undefined;
|
|
2755
|
+
transactions?: {
|
|
2756
|
+
id: string;
|
|
2757
|
+
payment_method_id?: string | undefined;
|
|
2758
|
+
payment_method_name?: string | undefined;
|
|
2759
|
+
amount: number;
|
|
2760
|
+
status: "failed" | "pending" | "success";
|
|
2761
|
+
}[] | undefined;
|
|
2629
2762
|
}[] | undefined;
|
|
2630
2763
|
currency: string;
|
|
2631
2764
|
note?: string | undefined;
|
|
@@ -2640,6 +2773,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2640
2773
|
id: string;
|
|
2641
2774
|
sku?: string | undefined;
|
|
2642
2775
|
name: string;
|
|
2776
|
+
categories?: {
|
|
2777
|
+
id: string;
|
|
2778
|
+
name: string;
|
|
2779
|
+
}[] | undefined;
|
|
2643
2780
|
} | undefined;
|
|
2644
2781
|
quantity: number;
|
|
2645
2782
|
unit_price: number;
|
|
@@ -2775,8 +2912,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2775
2912
|
created_on?: string | undefined;
|
|
2776
2913
|
last_updated_on?: string | undefined;
|
|
2777
2914
|
confirmed_on?: string | undefined;
|
|
2915
|
+
delivery_date?: string | undefined;
|
|
2778
2916
|
cancelled_on?: string | undefined;
|
|
2779
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
2917
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2780
2918
|
discount_amount: number;
|
|
2781
2919
|
untaxed_amount_without_fees: number;
|
|
2782
2920
|
tax_amount_without_fees: number;
|
|
@@ -2800,6 +2938,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2800
2938
|
id: string;
|
|
2801
2939
|
sku?: string | undefined;
|
|
2802
2940
|
name: string;
|
|
2941
|
+
categories?: {
|
|
2942
|
+
id: string;
|
|
2943
|
+
name: string;
|
|
2944
|
+
}[] | undefined;
|
|
2803
2945
|
} | undefined;
|
|
2804
2946
|
quantity: number;
|
|
2805
2947
|
untaxed_amount: number;
|
|
@@ -2817,6 +2959,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2817
2959
|
tax_amount: number;
|
|
2818
2960
|
total: number;
|
|
2819
2961
|
}[] | undefined;
|
|
2962
|
+
transactions?: {
|
|
2963
|
+
id: string;
|
|
2964
|
+
payment_method_id?: string | undefined;
|
|
2965
|
+
payment_method_name?: string | undefined;
|
|
2966
|
+
amount: number;
|
|
2967
|
+
status: "failed" | "pending" | "success";
|
|
2968
|
+
}[] | undefined;
|
|
2820
2969
|
}[] | undefined;
|
|
2821
2970
|
currency: string;
|
|
2822
2971
|
note?: string | undefined;
|
|
@@ -2831,6 +2980,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2831
2980
|
id: string;
|
|
2832
2981
|
sku?: string | undefined;
|
|
2833
2982
|
name: string;
|
|
2983
|
+
categories?: {
|
|
2984
|
+
id: string;
|
|
2985
|
+
name: string;
|
|
2986
|
+
}[] | undefined;
|
|
2834
2987
|
} | undefined;
|
|
2835
2988
|
quantity: number;
|
|
2836
2989
|
unit_price: number;
|
|
@@ -2925,8 +3078,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2925
3078
|
created_on?: string | undefined;
|
|
2926
3079
|
last_updated_on?: string | undefined;
|
|
2927
3080
|
confirmed_on?: string | undefined;
|
|
3081
|
+
delivery_date?: string | undefined;
|
|
2928
3082
|
cancelled_on?: string | undefined;
|
|
2929
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
3083
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
2930
3084
|
discount_amount: number;
|
|
2931
3085
|
untaxed_amount_without_fees: number;
|
|
2932
3086
|
tax_amount_without_fees: number;
|
|
@@ -2950,6 +3104,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2950
3104
|
id: string;
|
|
2951
3105
|
sku?: string | undefined;
|
|
2952
3106
|
name: string;
|
|
3107
|
+
categories?: {
|
|
3108
|
+
id: string;
|
|
3109
|
+
name: string;
|
|
3110
|
+
}[] | undefined;
|
|
2953
3111
|
} | undefined;
|
|
2954
3112
|
quantity: number;
|
|
2955
3113
|
untaxed_amount: number;
|
|
@@ -2967,6 +3125,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2967
3125
|
tax_amount: number;
|
|
2968
3126
|
total: number;
|
|
2969
3127
|
}[] | undefined;
|
|
3128
|
+
transactions?: {
|
|
3129
|
+
id: string;
|
|
3130
|
+
payment_method_id?: string | undefined;
|
|
3131
|
+
payment_method_name?: string | undefined;
|
|
3132
|
+
amount: number;
|
|
3133
|
+
status: "failed" | "pending" | "success";
|
|
3134
|
+
}[] | undefined;
|
|
2970
3135
|
}[] | undefined;
|
|
2971
3136
|
currency: string;
|
|
2972
3137
|
note?: string | undefined;
|
|
@@ -2981,6 +3146,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
2981
3146
|
id: string;
|
|
2982
3147
|
sku?: string | undefined;
|
|
2983
3148
|
name: string;
|
|
3149
|
+
categories?: {
|
|
3150
|
+
id: string;
|
|
3151
|
+
name: string;
|
|
3152
|
+
}[] | undefined;
|
|
2984
3153
|
} | undefined;
|
|
2985
3154
|
quantity: number;
|
|
2986
3155
|
unit_price: number;
|
|
@@ -3242,6 +3411,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3242
3411
|
total_discount?: number | undefined;
|
|
3243
3412
|
total_refund?: number | undefined;
|
|
3244
3413
|
total_tip?: number | undefined;
|
|
3414
|
+
currency?: string | undefined;
|
|
3415
|
+
country?: string | undefined;
|
|
3416
|
+
loyalty?: number | undefined;
|
|
3417
|
+
customer_id?: string | undefined;
|
|
3418
|
+
location_id?: string | undefined;
|
|
3419
|
+
taxes?: {
|
|
3420
|
+
tax_rate: number;
|
|
3421
|
+
tax_amount: number;
|
|
3422
|
+
total: number;
|
|
3423
|
+
}[] | undefined;
|
|
3424
|
+
payments: {
|
|
3425
|
+
id?: string | undefined;
|
|
3426
|
+
payment_method_id?: string | undefined;
|
|
3427
|
+
payment_method_name?: string | undefined;
|
|
3428
|
+
total: number;
|
|
3429
|
+
tip?: number | undefined;
|
|
3430
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3431
|
+
currency?: string | undefined;
|
|
3432
|
+
date?: string | undefined;
|
|
3433
|
+
}[];
|
|
3245
3434
|
items: {
|
|
3246
3435
|
id: string;
|
|
3247
3436
|
quantity: number;
|
|
@@ -3257,26 +3446,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3257
3446
|
product_id?: string | undefined;
|
|
3258
3447
|
accounting_category_id?: string | undefined;
|
|
3259
3448
|
}[];
|
|
3260
|
-
payments: {
|
|
3261
|
-
id?: string | undefined;
|
|
3262
|
-
payment_method_id?: string | undefined;
|
|
3263
|
-
payment_method_name?: string | undefined;
|
|
3264
|
-
total: number;
|
|
3265
|
-
tip?: number | undefined;
|
|
3266
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3267
|
-
currency?: string | undefined;
|
|
3268
|
-
date?: string | undefined;
|
|
3269
|
-
}[];
|
|
3270
|
-
currency?: string | undefined;
|
|
3271
|
-
country?: string | undefined;
|
|
3272
|
-
loyalty?: number | undefined;
|
|
3273
|
-
customer_id?: string | undefined;
|
|
3274
|
-
location_id?: string | undefined;
|
|
3275
|
-
taxes?: {
|
|
3276
|
-
tax_rate: number;
|
|
3277
|
-
tax_amount: number;
|
|
3278
|
-
total: number;
|
|
3279
|
-
}[] | undefined;
|
|
3280
3449
|
}[]>;
|
|
3281
3450
|
getCustomers(params?: {
|
|
3282
3451
|
search?: string | undefined;
|
|
@@ -3315,6 +3484,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3315
3484
|
total_discount?: number | undefined;
|
|
3316
3485
|
total_refund?: number | undefined;
|
|
3317
3486
|
total_tip?: number | undefined;
|
|
3487
|
+
currency?: string | undefined;
|
|
3488
|
+
country?: string | undefined;
|
|
3489
|
+
loyalty?: number | undefined;
|
|
3490
|
+
customer_id?: string | undefined;
|
|
3491
|
+
location_id?: string | undefined;
|
|
3492
|
+
taxes?: {
|
|
3493
|
+
tax_rate: number;
|
|
3494
|
+
tax_amount: number;
|
|
3495
|
+
total: number;
|
|
3496
|
+
}[] | undefined;
|
|
3497
|
+
payments: {
|
|
3498
|
+
id?: string | undefined;
|
|
3499
|
+
payment_method_id?: string | undefined;
|
|
3500
|
+
payment_method_name?: string | undefined;
|
|
3501
|
+
total: number;
|
|
3502
|
+
tip?: number | undefined;
|
|
3503
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3504
|
+
currency?: string | undefined;
|
|
3505
|
+
date?: string | undefined;
|
|
3506
|
+
}[];
|
|
3318
3507
|
items: {
|
|
3319
3508
|
id: string;
|
|
3320
3509
|
quantity: number;
|
|
@@ -3330,26 +3519,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3330
3519
|
product_id?: string | undefined;
|
|
3331
3520
|
accounting_category_id?: string | undefined;
|
|
3332
3521
|
}[];
|
|
3333
|
-
payments: {
|
|
3334
|
-
id?: string | undefined;
|
|
3335
|
-
payment_method_id?: string | undefined;
|
|
3336
|
-
payment_method_name?: string | undefined;
|
|
3337
|
-
total: number;
|
|
3338
|
-
tip?: number | undefined;
|
|
3339
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3340
|
-
currency?: string | undefined;
|
|
3341
|
-
date?: string | undefined;
|
|
3342
|
-
}[];
|
|
3343
|
-
currency?: string | undefined;
|
|
3344
|
-
country?: string | undefined;
|
|
3345
|
-
loyalty?: number | undefined;
|
|
3346
|
-
customer_id?: string | undefined;
|
|
3347
|
-
location_id?: string | undefined;
|
|
3348
|
-
taxes?: {
|
|
3349
|
-
tax_rate: number;
|
|
3350
|
-
tax_amount: number;
|
|
3351
|
-
total: number;
|
|
3352
|
-
}[] | undefined;
|
|
3353
3522
|
}>;
|
|
3354
3523
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
3355
3524
|
id: string;
|
|
@@ -3485,6 +3654,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3485
3654
|
total_discount?: number | undefined;
|
|
3486
3655
|
total_refund?: number | undefined;
|
|
3487
3656
|
total_tip?: number | undefined;
|
|
3657
|
+
currency?: string | undefined;
|
|
3658
|
+
country?: string | undefined;
|
|
3659
|
+
loyalty?: number | undefined;
|
|
3660
|
+
customer_id?: string | undefined;
|
|
3661
|
+
location_id?: string | undefined;
|
|
3662
|
+
taxes?: {
|
|
3663
|
+
tax_rate: number;
|
|
3664
|
+
tax_amount: number;
|
|
3665
|
+
total: number;
|
|
3666
|
+
}[] | undefined;
|
|
3667
|
+
payments: {
|
|
3668
|
+
id?: string | undefined;
|
|
3669
|
+
payment_method_id?: string | undefined;
|
|
3670
|
+
payment_method_name?: string | undefined;
|
|
3671
|
+
total: number;
|
|
3672
|
+
tip?: number | undefined;
|
|
3673
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3674
|
+
currency?: string | undefined;
|
|
3675
|
+
date?: string | undefined;
|
|
3676
|
+
}[];
|
|
3488
3677
|
items: {
|
|
3489
3678
|
id: string;
|
|
3490
3679
|
quantity: number;
|
|
@@ -3500,16 +3689,53 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3500
3689
|
product_id?: string | undefined;
|
|
3501
3690
|
accounting_category_id?: string | undefined;
|
|
3502
3691
|
}[];
|
|
3503
|
-
|
|
3692
|
+
}>;
|
|
3693
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3694
|
+
id: string;
|
|
3695
|
+
name: string;
|
|
3696
|
+
id_parent?: string | undefined;
|
|
3697
|
+
code?: string | undefined;
|
|
3698
|
+
ledger_account_code?: string | undefined;
|
|
3699
|
+
posting_account_code?: string | undefined;
|
|
3700
|
+
}[]>;
|
|
3701
|
+
}>;
|
|
3702
|
+
pms: import("../types/api").ApiFor<{
|
|
3703
|
+
getLocations(): import("../types/api").RequestData<{
|
|
3704
|
+
id: string;
|
|
3705
|
+
name: string;
|
|
3706
|
+
timezone?: string | undefined;
|
|
3707
|
+
address?: {
|
|
3708
|
+
address_type?: string | undefined;
|
|
3709
|
+
name?: string | undefined;
|
|
3710
|
+
street?: string | undefined;
|
|
3711
|
+
number?: string | undefined;
|
|
3712
|
+
box?: string | undefined;
|
|
3713
|
+
city?: string | undefined;
|
|
3714
|
+
postal_code?: string | undefined;
|
|
3715
|
+
country?: string | undefined;
|
|
3716
|
+
} | undefined;
|
|
3717
|
+
}[]>;
|
|
3718
|
+
getOrders(params: {
|
|
3719
|
+
date_from: string;
|
|
3720
|
+
date_to: string;
|
|
3721
|
+
location_id?: string | undefined;
|
|
3722
|
+
state?: "closed" | "consumed" | undefined;
|
|
3723
|
+
}): import("../types/api").RequestData<{
|
|
3724
|
+
id: string;
|
|
3725
|
+
source_ref: {
|
|
3504
3726
|
id?: string | undefined;
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3727
|
+
model?: string | undefined;
|
|
3728
|
+
};
|
|
3729
|
+
order_number?: string | undefined;
|
|
3730
|
+
creation_date: string;
|
|
3731
|
+
closing_date?: string | undefined;
|
|
3732
|
+
service_date?: string | undefined;
|
|
3733
|
+
device_id?: string | undefined;
|
|
3734
|
+
total: number;
|
|
3735
|
+
tax_amount: number;
|
|
3736
|
+
total_discount?: number | undefined;
|
|
3737
|
+
total_refund?: number | undefined;
|
|
3738
|
+
total_tip?: number | undefined;
|
|
3513
3739
|
currency?: string | undefined;
|
|
3514
3740
|
country?: string | undefined;
|
|
3515
3741
|
loyalty?: number | undefined;
|
|
@@ -3520,9 +3746,68 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
3520
3746
|
tax_amount: number;
|
|
3521
3747
|
total: number;
|
|
3522
3748
|
}[] | undefined;
|
|
3749
|
+
items: {
|
|
3750
|
+
id: string;
|
|
3751
|
+
source_ref: {
|
|
3752
|
+
id?: string | undefined;
|
|
3753
|
+
model?: string | undefined;
|
|
3754
|
+
};
|
|
3755
|
+
quantity: number;
|
|
3756
|
+
unit_price: number;
|
|
3757
|
+
total: number;
|
|
3758
|
+
tax_amount: number;
|
|
3759
|
+
tax_rate?: number | undefined;
|
|
3760
|
+
description?: string | undefined;
|
|
3761
|
+
discounts?: {
|
|
3762
|
+
name?: string | undefined;
|
|
3763
|
+
total: number;
|
|
3764
|
+
}[] | undefined;
|
|
3765
|
+
product_id?: string | undefined;
|
|
3766
|
+
accounting_category_id?: string | undefined;
|
|
3767
|
+
}[];
|
|
3768
|
+
service_id?: string | undefined;
|
|
3769
|
+
}[]>;
|
|
3770
|
+
getPaymentMethods(params?: {
|
|
3771
|
+
location_id?: string | undefined;
|
|
3772
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3773
|
+
id: string;
|
|
3774
|
+
source_ref: {
|
|
3775
|
+
id?: string | undefined;
|
|
3776
|
+
model?: string | undefined;
|
|
3777
|
+
};
|
|
3778
|
+
name: string;
|
|
3779
|
+
extra?: string | undefined;
|
|
3780
|
+
ledger_account_code?: string | undefined;
|
|
3781
|
+
}[]>;
|
|
3782
|
+
getClosure(date: string, params?: {
|
|
3783
|
+
location_id?: string | undefined;
|
|
3784
|
+
} | undefined): import("../types/api").RequestData<{
|
|
3785
|
+
date: string;
|
|
3786
|
+
status: "open" | "closed";
|
|
3523
3787
|
}>;
|
|
3788
|
+
getPayments(params: {
|
|
3789
|
+
date_from: string;
|
|
3790
|
+
date_to: string;
|
|
3791
|
+
}): import("../types/api").RequestData<{
|
|
3792
|
+
id?: string | undefined;
|
|
3793
|
+
source_ref: {
|
|
3794
|
+
id?: string | undefined;
|
|
3795
|
+
model?: string | undefined;
|
|
3796
|
+
};
|
|
3797
|
+
payment_method_id?: string | undefined;
|
|
3798
|
+
payment_method_name?: string | undefined;
|
|
3799
|
+
total: number;
|
|
3800
|
+
tip?: number | undefined;
|
|
3801
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
3802
|
+
currency?: string | undefined;
|
|
3803
|
+
date?: string | undefined;
|
|
3804
|
+
}[]>;
|
|
3524
3805
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
3525
3806
|
id: string;
|
|
3807
|
+
source_ref: {
|
|
3808
|
+
id?: string | undefined;
|
|
3809
|
+
model?: string | undefined;
|
|
3810
|
+
};
|
|
3526
3811
|
name: string;
|
|
3527
3812
|
id_parent?: string | undefined;
|
|
3528
3813
|
code?: string | undefined;
|
|
@@ -4007,6 +4292,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4007
4292
|
iban: string;
|
|
4008
4293
|
};
|
|
4009
4294
|
} | undefined;
|
|
4295
|
+
shipping_country?: string | undefined;
|
|
4010
4296
|
lines: {
|
|
4011
4297
|
line_number?: number | undefined;
|
|
4012
4298
|
description: string;
|
|
@@ -4103,6 +4389,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4103
4389
|
iban: string;
|
|
4104
4390
|
};
|
|
4105
4391
|
} | undefined;
|
|
4392
|
+
shipping_country?: string | undefined;
|
|
4106
4393
|
lines: {
|
|
4107
4394
|
line_number?: number | undefined;
|
|
4108
4395
|
description: string;
|
|
@@ -4964,6 +5251,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
4964
5251
|
id: string;
|
|
4965
5252
|
name: string;
|
|
4966
5253
|
selected?: boolean | undefined;
|
|
5254
|
+
vat?: string | undefined;
|
|
5255
|
+
company_number?: string | undefined;
|
|
4967
5256
|
}[]>;
|
|
4968
5257
|
}>;
|
|
4969
5258
|
invoicing: import("../types/api").ApiFor<{
|
|
@@ -5693,6 +5982,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5693
5982
|
date_to?: string | undefined;
|
|
5694
5983
|
updated_after?: string | undefined;
|
|
5695
5984
|
include_detailed_refunds?: "true" | "false" | undefined;
|
|
5985
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
5696
5986
|
} | undefined): import("../types/api").RequestData<{
|
|
5697
5987
|
id: string;
|
|
5698
5988
|
source_ref: {
|
|
@@ -5739,8 +6029,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5739
6029
|
created_on?: string | undefined;
|
|
5740
6030
|
last_updated_on?: string | undefined;
|
|
5741
6031
|
confirmed_on?: string | undefined;
|
|
6032
|
+
delivery_date?: string | undefined;
|
|
5742
6033
|
cancelled_on?: string | undefined;
|
|
5743
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
6034
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
5744
6035
|
discount_amount: number;
|
|
5745
6036
|
untaxed_amount_without_fees: number;
|
|
5746
6037
|
tax_amount_without_fees: number;
|
|
@@ -5764,6 +6055,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5764
6055
|
id: string;
|
|
5765
6056
|
sku?: string | undefined;
|
|
5766
6057
|
name: string;
|
|
6058
|
+
categories?: {
|
|
6059
|
+
id: string;
|
|
6060
|
+
name: string;
|
|
6061
|
+
}[] | undefined;
|
|
5767
6062
|
} | undefined;
|
|
5768
6063
|
quantity: number;
|
|
5769
6064
|
untaxed_amount: number;
|
|
@@ -5781,6 +6076,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5781
6076
|
tax_amount: number;
|
|
5782
6077
|
total: number;
|
|
5783
6078
|
}[] | undefined;
|
|
6079
|
+
transactions?: {
|
|
6080
|
+
id: string;
|
|
6081
|
+
payment_method_id?: string | undefined;
|
|
6082
|
+
payment_method_name?: string | undefined;
|
|
6083
|
+
amount: number;
|
|
6084
|
+
status: "failed" | "pending" | "success";
|
|
6085
|
+
}[] | undefined;
|
|
5784
6086
|
}[] | undefined;
|
|
5785
6087
|
currency: string;
|
|
5786
6088
|
note?: string | undefined;
|
|
@@ -5795,6 +6097,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5795
6097
|
id: string;
|
|
5796
6098
|
sku?: string | undefined;
|
|
5797
6099
|
name: string;
|
|
6100
|
+
categories?: {
|
|
6101
|
+
id: string;
|
|
6102
|
+
name: string;
|
|
6103
|
+
}[] | undefined;
|
|
5798
6104
|
} | undefined;
|
|
5799
6105
|
quantity: number;
|
|
5800
6106
|
unit_price: number;
|
|
@@ -5930,8 +6236,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5930
6236
|
created_on?: string | undefined;
|
|
5931
6237
|
last_updated_on?: string | undefined;
|
|
5932
6238
|
confirmed_on?: string | undefined;
|
|
6239
|
+
delivery_date?: string | undefined;
|
|
5933
6240
|
cancelled_on?: string | undefined;
|
|
5934
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
6241
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
5935
6242
|
discount_amount: number;
|
|
5936
6243
|
untaxed_amount_without_fees: number;
|
|
5937
6244
|
tax_amount_without_fees: number;
|
|
@@ -5955,6 +6262,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5955
6262
|
id: string;
|
|
5956
6263
|
sku?: string | undefined;
|
|
5957
6264
|
name: string;
|
|
6265
|
+
categories?: {
|
|
6266
|
+
id: string;
|
|
6267
|
+
name: string;
|
|
6268
|
+
}[] | undefined;
|
|
5958
6269
|
} | undefined;
|
|
5959
6270
|
quantity: number;
|
|
5960
6271
|
untaxed_amount: number;
|
|
@@ -5972,6 +6283,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5972
6283
|
tax_amount: number;
|
|
5973
6284
|
total: number;
|
|
5974
6285
|
}[] | undefined;
|
|
6286
|
+
transactions?: {
|
|
6287
|
+
id: string;
|
|
6288
|
+
payment_method_id?: string | undefined;
|
|
6289
|
+
payment_method_name?: string | undefined;
|
|
6290
|
+
amount: number;
|
|
6291
|
+
status: "failed" | "pending" | "success";
|
|
6292
|
+
}[] | undefined;
|
|
5975
6293
|
}[] | undefined;
|
|
5976
6294
|
currency: string;
|
|
5977
6295
|
note?: string | undefined;
|
|
@@ -5986,6 +6304,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
5986
6304
|
id: string;
|
|
5987
6305
|
sku?: string | undefined;
|
|
5988
6306
|
name: string;
|
|
6307
|
+
categories?: {
|
|
6308
|
+
id: string;
|
|
6309
|
+
name: string;
|
|
6310
|
+
}[] | undefined;
|
|
5989
6311
|
} | undefined;
|
|
5990
6312
|
quantity: number;
|
|
5991
6313
|
unit_price: number;
|
|
@@ -6080,8 +6402,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6080
6402
|
created_on?: string | undefined;
|
|
6081
6403
|
last_updated_on?: string | undefined;
|
|
6082
6404
|
confirmed_on?: string | undefined;
|
|
6405
|
+
delivery_date?: string | undefined;
|
|
6083
6406
|
cancelled_on?: string | undefined;
|
|
6084
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
6407
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
6085
6408
|
discount_amount: number;
|
|
6086
6409
|
untaxed_amount_without_fees: number;
|
|
6087
6410
|
tax_amount_without_fees: number;
|
|
@@ -6105,6 +6428,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6105
6428
|
id: string;
|
|
6106
6429
|
sku?: string | undefined;
|
|
6107
6430
|
name: string;
|
|
6431
|
+
categories?: {
|
|
6432
|
+
id: string;
|
|
6433
|
+
name: string;
|
|
6434
|
+
}[] | undefined;
|
|
6108
6435
|
} | undefined;
|
|
6109
6436
|
quantity: number;
|
|
6110
6437
|
untaxed_amount: number;
|
|
@@ -6122,6 +6449,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6122
6449
|
tax_amount: number;
|
|
6123
6450
|
total: number;
|
|
6124
6451
|
}[] | undefined;
|
|
6452
|
+
transactions?: {
|
|
6453
|
+
id: string;
|
|
6454
|
+
payment_method_id?: string | undefined;
|
|
6455
|
+
payment_method_name?: string | undefined;
|
|
6456
|
+
amount: number;
|
|
6457
|
+
status: "failed" | "pending" | "success";
|
|
6458
|
+
}[] | undefined;
|
|
6125
6459
|
}[] | undefined;
|
|
6126
6460
|
currency: string;
|
|
6127
6461
|
note?: string | undefined;
|
|
@@ -6136,6 +6470,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6136
6470
|
id: string;
|
|
6137
6471
|
sku?: string | undefined;
|
|
6138
6472
|
name: string;
|
|
6473
|
+
categories?: {
|
|
6474
|
+
id: string;
|
|
6475
|
+
name: string;
|
|
6476
|
+
}[] | undefined;
|
|
6139
6477
|
} | undefined;
|
|
6140
6478
|
quantity: number;
|
|
6141
6479
|
unit_price: number;
|
|
@@ -6397,6 +6735,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6397
6735
|
total_discount?: number | undefined;
|
|
6398
6736
|
total_refund?: number | undefined;
|
|
6399
6737
|
total_tip?: number | undefined;
|
|
6738
|
+
currency?: string | undefined;
|
|
6739
|
+
country?: string | undefined;
|
|
6740
|
+
loyalty?: number | undefined;
|
|
6741
|
+
customer_id?: string | undefined;
|
|
6742
|
+
location_id?: string | undefined;
|
|
6743
|
+
taxes?: {
|
|
6744
|
+
tax_rate: number;
|
|
6745
|
+
tax_amount: number;
|
|
6746
|
+
total: number;
|
|
6747
|
+
}[] | undefined;
|
|
6748
|
+
payments: {
|
|
6749
|
+
id?: string | undefined;
|
|
6750
|
+
payment_method_id?: string | undefined;
|
|
6751
|
+
payment_method_name?: string | undefined;
|
|
6752
|
+
total: number;
|
|
6753
|
+
tip?: number | undefined;
|
|
6754
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6755
|
+
currency?: string | undefined;
|
|
6756
|
+
date?: string | undefined;
|
|
6757
|
+
}[];
|
|
6400
6758
|
items: {
|
|
6401
6759
|
id: string;
|
|
6402
6760
|
quantity: number;
|
|
@@ -6412,26 +6770,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6412
6770
|
product_id?: string | undefined;
|
|
6413
6771
|
accounting_category_id?: string | undefined;
|
|
6414
6772
|
}[];
|
|
6415
|
-
payments: {
|
|
6416
|
-
id?: string | undefined;
|
|
6417
|
-
payment_method_id?: string | undefined;
|
|
6418
|
-
payment_method_name?: string | undefined;
|
|
6419
|
-
total: number;
|
|
6420
|
-
tip?: number | undefined;
|
|
6421
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6422
|
-
currency?: string | undefined;
|
|
6423
|
-
date?: string | undefined;
|
|
6424
|
-
}[];
|
|
6425
|
-
currency?: string | undefined;
|
|
6426
|
-
country?: string | undefined;
|
|
6427
|
-
loyalty?: number | undefined;
|
|
6428
|
-
customer_id?: string | undefined;
|
|
6429
|
-
location_id?: string | undefined;
|
|
6430
|
-
taxes?: {
|
|
6431
|
-
tax_rate: number;
|
|
6432
|
-
tax_amount: number;
|
|
6433
|
-
total: number;
|
|
6434
|
-
}[] | undefined;
|
|
6435
6773
|
}[]>;
|
|
6436
6774
|
getCustomers(params?: {
|
|
6437
6775
|
search?: string | undefined;
|
|
@@ -6470,21 +6808,16 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6470
6808
|
total_discount?: number | undefined;
|
|
6471
6809
|
total_refund?: number | undefined;
|
|
6472
6810
|
total_tip?: number | undefined;
|
|
6473
|
-
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
tax_rate
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
total: number;
|
|
6484
|
-
}[] | undefined;
|
|
6485
|
-
product_id?: string | undefined;
|
|
6486
|
-
accounting_category_id?: string | undefined;
|
|
6487
|
-
}[];
|
|
6811
|
+
currency?: string | undefined;
|
|
6812
|
+
country?: string | undefined;
|
|
6813
|
+
loyalty?: number | undefined;
|
|
6814
|
+
customer_id?: string | undefined;
|
|
6815
|
+
location_id?: string | undefined;
|
|
6816
|
+
taxes?: {
|
|
6817
|
+
tax_rate: number;
|
|
6818
|
+
tax_amount: number;
|
|
6819
|
+
total: number;
|
|
6820
|
+
}[] | undefined;
|
|
6488
6821
|
payments: {
|
|
6489
6822
|
id?: string | undefined;
|
|
6490
6823
|
payment_method_id?: string | undefined;
|
|
@@ -6495,16 +6828,21 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6495
6828
|
currency?: string | undefined;
|
|
6496
6829
|
date?: string | undefined;
|
|
6497
6830
|
}[];
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
location_id?: string | undefined;
|
|
6503
|
-
taxes?: {
|
|
6504
|
-
tax_rate: number;
|
|
6505
|
-
tax_amount: number;
|
|
6831
|
+
items: {
|
|
6832
|
+
id: string;
|
|
6833
|
+
quantity: number;
|
|
6834
|
+
unit_price: number;
|
|
6506
6835
|
total: number;
|
|
6507
|
-
|
|
6836
|
+
tax_amount: number;
|
|
6837
|
+
tax_rate?: number | undefined;
|
|
6838
|
+
description?: string | undefined;
|
|
6839
|
+
discounts?: {
|
|
6840
|
+
name?: string | undefined;
|
|
6841
|
+
total: number;
|
|
6842
|
+
}[] | undefined;
|
|
6843
|
+
product_id?: string | undefined;
|
|
6844
|
+
accounting_category_id?: string | undefined;
|
|
6845
|
+
}[];
|
|
6508
6846
|
}>;
|
|
6509
6847
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
6510
6848
|
id: string;
|
|
@@ -6640,6 +6978,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6640
6978
|
total_discount?: number | undefined;
|
|
6641
6979
|
total_refund?: number | undefined;
|
|
6642
6980
|
total_tip?: number | undefined;
|
|
6981
|
+
currency?: string | undefined;
|
|
6982
|
+
country?: string | undefined;
|
|
6983
|
+
loyalty?: number | undefined;
|
|
6984
|
+
customer_id?: string | undefined;
|
|
6985
|
+
location_id?: string | undefined;
|
|
6986
|
+
taxes?: {
|
|
6987
|
+
tax_rate: number;
|
|
6988
|
+
tax_amount: number;
|
|
6989
|
+
total: number;
|
|
6990
|
+
}[] | undefined;
|
|
6991
|
+
payments: {
|
|
6992
|
+
id?: string | undefined;
|
|
6993
|
+
payment_method_id?: string | undefined;
|
|
6994
|
+
payment_method_name?: string | undefined;
|
|
6995
|
+
total: number;
|
|
6996
|
+
tip?: number | undefined;
|
|
6997
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
6998
|
+
currency?: string | undefined;
|
|
6999
|
+
date?: string | undefined;
|
|
7000
|
+
}[];
|
|
6643
7001
|
items: {
|
|
6644
7002
|
id: string;
|
|
6645
7003
|
quantity: number;
|
|
@@ -6655,16 +7013,53 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6655
7013
|
product_id?: string | undefined;
|
|
6656
7014
|
accounting_category_id?: string | undefined;
|
|
6657
7015
|
}[];
|
|
6658
|
-
|
|
7016
|
+
}>;
|
|
7017
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
7018
|
+
id: string;
|
|
7019
|
+
name: string;
|
|
7020
|
+
id_parent?: string | undefined;
|
|
7021
|
+
code?: string | undefined;
|
|
7022
|
+
ledger_account_code?: string | undefined;
|
|
7023
|
+
posting_account_code?: string | undefined;
|
|
7024
|
+
}[]>;
|
|
7025
|
+
}>;
|
|
7026
|
+
pms: import("../types/api").ApiFor<{
|
|
7027
|
+
getLocations(): import("../types/api").RequestData<{
|
|
7028
|
+
id: string;
|
|
7029
|
+
name: string;
|
|
7030
|
+
timezone?: string | undefined;
|
|
7031
|
+
address?: {
|
|
7032
|
+
address_type?: string | undefined;
|
|
7033
|
+
name?: string | undefined;
|
|
7034
|
+
street?: string | undefined;
|
|
7035
|
+
number?: string | undefined;
|
|
7036
|
+
box?: string | undefined;
|
|
7037
|
+
city?: string | undefined;
|
|
7038
|
+
postal_code?: string | undefined;
|
|
7039
|
+
country?: string | undefined;
|
|
7040
|
+
} | undefined;
|
|
7041
|
+
}[]>;
|
|
7042
|
+
getOrders(params: {
|
|
7043
|
+
date_from: string;
|
|
7044
|
+
date_to: string;
|
|
7045
|
+
location_id?: string | undefined;
|
|
7046
|
+
state?: "closed" | "consumed" | undefined;
|
|
7047
|
+
}): import("../types/api").RequestData<{
|
|
7048
|
+
id: string;
|
|
7049
|
+
source_ref: {
|
|
6659
7050
|
id?: string | undefined;
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
7051
|
+
model?: string | undefined;
|
|
7052
|
+
};
|
|
7053
|
+
order_number?: string | undefined;
|
|
7054
|
+
creation_date: string;
|
|
7055
|
+
closing_date?: string | undefined;
|
|
7056
|
+
service_date?: string | undefined;
|
|
7057
|
+
device_id?: string | undefined;
|
|
7058
|
+
total: number;
|
|
7059
|
+
tax_amount: number;
|
|
7060
|
+
total_discount?: number | undefined;
|
|
7061
|
+
total_refund?: number | undefined;
|
|
7062
|
+
total_tip?: number | undefined;
|
|
6668
7063
|
currency?: string | undefined;
|
|
6669
7064
|
country?: string | undefined;
|
|
6670
7065
|
loyalty?: number | undefined;
|
|
@@ -6675,9 +7070,68 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
6675
7070
|
tax_amount: number;
|
|
6676
7071
|
total: number;
|
|
6677
7072
|
}[] | undefined;
|
|
7073
|
+
items: {
|
|
7074
|
+
id: string;
|
|
7075
|
+
source_ref: {
|
|
7076
|
+
id?: string | undefined;
|
|
7077
|
+
model?: string | undefined;
|
|
7078
|
+
};
|
|
7079
|
+
quantity: number;
|
|
7080
|
+
unit_price: number;
|
|
7081
|
+
total: number;
|
|
7082
|
+
tax_amount: number;
|
|
7083
|
+
tax_rate?: number | undefined;
|
|
7084
|
+
description?: string | undefined;
|
|
7085
|
+
discounts?: {
|
|
7086
|
+
name?: string | undefined;
|
|
7087
|
+
total: number;
|
|
7088
|
+
}[] | undefined;
|
|
7089
|
+
product_id?: string | undefined;
|
|
7090
|
+
accounting_category_id?: string | undefined;
|
|
7091
|
+
}[];
|
|
7092
|
+
service_id?: string | undefined;
|
|
7093
|
+
}[]>;
|
|
7094
|
+
getPaymentMethods(params?: {
|
|
7095
|
+
location_id?: string | undefined;
|
|
7096
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7097
|
+
id: string;
|
|
7098
|
+
source_ref: {
|
|
7099
|
+
id?: string | undefined;
|
|
7100
|
+
model?: string | undefined;
|
|
7101
|
+
};
|
|
7102
|
+
name: string;
|
|
7103
|
+
extra?: string | undefined;
|
|
7104
|
+
ledger_account_code?: string | undefined;
|
|
7105
|
+
}[]>;
|
|
7106
|
+
getClosure(date: string, params?: {
|
|
7107
|
+
location_id?: string | undefined;
|
|
7108
|
+
} | undefined): import("../types/api").RequestData<{
|
|
7109
|
+
date: string;
|
|
7110
|
+
status: "open" | "closed";
|
|
6678
7111
|
}>;
|
|
7112
|
+
getPayments(params: {
|
|
7113
|
+
date_from: string;
|
|
7114
|
+
date_to: string;
|
|
7115
|
+
}): import("../types/api").RequestData<{
|
|
7116
|
+
id?: string | undefined;
|
|
7117
|
+
source_ref: {
|
|
7118
|
+
id?: string | undefined;
|
|
7119
|
+
model?: string | undefined;
|
|
7120
|
+
};
|
|
7121
|
+
payment_method_id?: string | undefined;
|
|
7122
|
+
payment_method_name?: string | undefined;
|
|
7123
|
+
total: number;
|
|
7124
|
+
tip?: number | undefined;
|
|
7125
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
7126
|
+
currency?: string | undefined;
|
|
7127
|
+
date?: string | undefined;
|
|
7128
|
+
}[]>;
|
|
6679
7129
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
6680
7130
|
id: string;
|
|
7131
|
+
source_ref: {
|
|
7132
|
+
id?: string | undefined;
|
|
7133
|
+
model?: string | undefined;
|
|
7134
|
+
};
|
|
6681
7135
|
name: string;
|
|
6682
7136
|
id_parent?: string | undefined;
|
|
6683
7137
|
code?: string | undefined;
|
|
@@ -7162,6 +7616,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7162
7616
|
iban: string;
|
|
7163
7617
|
};
|
|
7164
7618
|
} | undefined;
|
|
7619
|
+
shipping_country?: string | undefined;
|
|
7165
7620
|
lines: {
|
|
7166
7621
|
line_number?: number | undefined;
|
|
7167
7622
|
description: string;
|
|
@@ -7258,6 +7713,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
7258
7713
|
iban: string;
|
|
7259
7714
|
};
|
|
7260
7715
|
} | undefined;
|
|
7716
|
+
shipping_country?: string | undefined;
|
|
7261
7717
|
lines: {
|
|
7262
7718
|
line_number?: number | undefined;
|
|
7263
7719
|
description: string;
|
|
@@ -8119,6 +8575,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8119
8575
|
id: string;
|
|
8120
8576
|
name: string;
|
|
8121
8577
|
selected?: boolean | undefined;
|
|
8578
|
+
vat?: string | undefined;
|
|
8579
|
+
company_number?: string | undefined;
|
|
8122
8580
|
}[]>;
|
|
8123
8581
|
}>;
|
|
8124
8582
|
invoicing: import("../types/api").ApiFor<{
|
|
@@ -8848,6 +9306,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8848
9306
|
date_to?: string | undefined;
|
|
8849
9307
|
updated_after?: string | undefined;
|
|
8850
9308
|
include_detailed_refunds?: "true" | "false" | undefined;
|
|
9309
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
8851
9310
|
} | undefined): import("../types/api").RequestData<{
|
|
8852
9311
|
id: string;
|
|
8853
9312
|
source_ref: {
|
|
@@ -8894,8 +9353,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8894
9353
|
created_on?: string | undefined;
|
|
8895
9354
|
last_updated_on?: string | undefined;
|
|
8896
9355
|
confirmed_on?: string | undefined;
|
|
9356
|
+
delivery_date?: string | undefined;
|
|
8897
9357
|
cancelled_on?: string | undefined;
|
|
8898
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
9358
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
8899
9359
|
discount_amount: number;
|
|
8900
9360
|
untaxed_amount_without_fees: number;
|
|
8901
9361
|
tax_amount_without_fees: number;
|
|
@@ -8919,6 +9379,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8919
9379
|
id: string;
|
|
8920
9380
|
sku?: string | undefined;
|
|
8921
9381
|
name: string;
|
|
9382
|
+
categories?: {
|
|
9383
|
+
id: string;
|
|
9384
|
+
name: string;
|
|
9385
|
+
}[] | undefined;
|
|
8922
9386
|
} | undefined;
|
|
8923
9387
|
quantity: number;
|
|
8924
9388
|
untaxed_amount: number;
|
|
@@ -8936,6 +9400,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8936
9400
|
tax_amount: number;
|
|
8937
9401
|
total: number;
|
|
8938
9402
|
}[] | undefined;
|
|
9403
|
+
transactions?: {
|
|
9404
|
+
id: string;
|
|
9405
|
+
payment_method_id?: string | undefined;
|
|
9406
|
+
payment_method_name?: string | undefined;
|
|
9407
|
+
amount: number;
|
|
9408
|
+
status: "failed" | "pending" | "success";
|
|
9409
|
+
}[] | undefined;
|
|
8939
9410
|
}[] | undefined;
|
|
8940
9411
|
currency: string;
|
|
8941
9412
|
note?: string | undefined;
|
|
@@ -8950,6 +9421,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
8950
9421
|
id: string;
|
|
8951
9422
|
sku?: string | undefined;
|
|
8952
9423
|
name: string;
|
|
9424
|
+
categories?: {
|
|
9425
|
+
id: string;
|
|
9426
|
+
name: string;
|
|
9427
|
+
}[] | undefined;
|
|
8953
9428
|
} | undefined;
|
|
8954
9429
|
quantity: number;
|
|
8955
9430
|
unit_price: number;
|
|
@@ -9085,8 +9560,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9085
9560
|
created_on?: string | undefined;
|
|
9086
9561
|
last_updated_on?: string | undefined;
|
|
9087
9562
|
confirmed_on?: string | undefined;
|
|
9563
|
+
delivery_date?: string | undefined;
|
|
9088
9564
|
cancelled_on?: string | undefined;
|
|
9089
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
9565
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
9090
9566
|
discount_amount: number;
|
|
9091
9567
|
untaxed_amount_without_fees: number;
|
|
9092
9568
|
tax_amount_without_fees: number;
|
|
@@ -9110,6 +9586,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9110
9586
|
id: string;
|
|
9111
9587
|
sku?: string | undefined;
|
|
9112
9588
|
name: string;
|
|
9589
|
+
categories?: {
|
|
9590
|
+
id: string;
|
|
9591
|
+
name: string;
|
|
9592
|
+
}[] | undefined;
|
|
9113
9593
|
} | undefined;
|
|
9114
9594
|
quantity: number;
|
|
9115
9595
|
untaxed_amount: number;
|
|
@@ -9127,6 +9607,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9127
9607
|
tax_amount: number;
|
|
9128
9608
|
total: number;
|
|
9129
9609
|
}[] | undefined;
|
|
9610
|
+
transactions?: {
|
|
9611
|
+
id: string;
|
|
9612
|
+
payment_method_id?: string | undefined;
|
|
9613
|
+
payment_method_name?: string | undefined;
|
|
9614
|
+
amount: number;
|
|
9615
|
+
status: "failed" | "pending" | "success";
|
|
9616
|
+
}[] | undefined;
|
|
9130
9617
|
}[] | undefined;
|
|
9131
9618
|
currency: string;
|
|
9132
9619
|
note?: string | undefined;
|
|
@@ -9141,6 +9628,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9141
9628
|
id: string;
|
|
9142
9629
|
sku?: string | undefined;
|
|
9143
9630
|
name: string;
|
|
9631
|
+
categories?: {
|
|
9632
|
+
id: string;
|
|
9633
|
+
name: string;
|
|
9634
|
+
}[] | undefined;
|
|
9144
9635
|
} | undefined;
|
|
9145
9636
|
quantity: number;
|
|
9146
9637
|
unit_price: number;
|
|
@@ -9235,8 +9726,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9235
9726
|
created_on?: string | undefined;
|
|
9236
9727
|
last_updated_on?: string | undefined;
|
|
9237
9728
|
confirmed_on?: string | undefined;
|
|
9729
|
+
delivery_date?: string | undefined;
|
|
9238
9730
|
cancelled_on?: string | undefined;
|
|
9239
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
9731
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
9240
9732
|
discount_amount: number;
|
|
9241
9733
|
untaxed_amount_without_fees: number;
|
|
9242
9734
|
tax_amount_without_fees: number;
|
|
@@ -9260,6 +9752,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9260
9752
|
id: string;
|
|
9261
9753
|
sku?: string | undefined;
|
|
9262
9754
|
name: string;
|
|
9755
|
+
categories?: {
|
|
9756
|
+
id: string;
|
|
9757
|
+
name: string;
|
|
9758
|
+
}[] | undefined;
|
|
9263
9759
|
} | undefined;
|
|
9264
9760
|
quantity: number;
|
|
9265
9761
|
untaxed_amount: number;
|
|
@@ -9277,6 +9773,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9277
9773
|
tax_amount: number;
|
|
9278
9774
|
total: number;
|
|
9279
9775
|
}[] | undefined;
|
|
9776
|
+
transactions?: {
|
|
9777
|
+
id: string;
|
|
9778
|
+
payment_method_id?: string | undefined;
|
|
9779
|
+
payment_method_name?: string | undefined;
|
|
9780
|
+
amount: number;
|
|
9781
|
+
status: "failed" | "pending" | "success";
|
|
9782
|
+
}[] | undefined;
|
|
9280
9783
|
}[] | undefined;
|
|
9281
9784
|
currency: string;
|
|
9282
9785
|
note?: string | undefined;
|
|
@@ -9291,6 +9794,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9291
9794
|
id: string;
|
|
9292
9795
|
sku?: string | undefined;
|
|
9293
9796
|
name: string;
|
|
9797
|
+
categories?: {
|
|
9798
|
+
id: string;
|
|
9799
|
+
name: string;
|
|
9800
|
+
}[] | undefined;
|
|
9294
9801
|
} | undefined;
|
|
9295
9802
|
quantity: number;
|
|
9296
9803
|
unit_price: number;
|
|
@@ -9552,6 +10059,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9552
10059
|
total_discount?: number | undefined;
|
|
9553
10060
|
total_refund?: number | undefined;
|
|
9554
10061
|
total_tip?: number | undefined;
|
|
10062
|
+
currency?: string | undefined;
|
|
10063
|
+
country?: string | undefined;
|
|
10064
|
+
loyalty?: number | undefined;
|
|
10065
|
+
customer_id?: string | undefined;
|
|
10066
|
+
location_id?: string | undefined;
|
|
10067
|
+
taxes?: {
|
|
10068
|
+
tax_rate: number;
|
|
10069
|
+
tax_amount: number;
|
|
10070
|
+
total: number;
|
|
10071
|
+
}[] | undefined;
|
|
10072
|
+
payments: {
|
|
10073
|
+
id?: string | undefined;
|
|
10074
|
+
payment_method_id?: string | undefined;
|
|
10075
|
+
payment_method_name?: string | undefined;
|
|
10076
|
+
total: number;
|
|
10077
|
+
tip?: number | undefined;
|
|
10078
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10079
|
+
currency?: string | undefined;
|
|
10080
|
+
date?: string | undefined;
|
|
10081
|
+
}[];
|
|
9555
10082
|
items: {
|
|
9556
10083
|
id: string;
|
|
9557
10084
|
quantity: number;
|
|
@@ -9567,26 +10094,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9567
10094
|
product_id?: string | undefined;
|
|
9568
10095
|
accounting_category_id?: string | undefined;
|
|
9569
10096
|
}[];
|
|
9570
|
-
payments: {
|
|
9571
|
-
id?: string | undefined;
|
|
9572
|
-
payment_method_id?: string | undefined;
|
|
9573
|
-
payment_method_name?: string | undefined;
|
|
9574
|
-
total: number;
|
|
9575
|
-
tip?: number | undefined;
|
|
9576
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
9577
|
-
currency?: string | undefined;
|
|
9578
|
-
date?: string | undefined;
|
|
9579
|
-
}[];
|
|
9580
|
-
currency?: string | undefined;
|
|
9581
|
-
country?: string | undefined;
|
|
9582
|
-
loyalty?: number | undefined;
|
|
9583
|
-
customer_id?: string | undefined;
|
|
9584
|
-
location_id?: string | undefined;
|
|
9585
|
-
taxes?: {
|
|
9586
|
-
tax_rate: number;
|
|
9587
|
-
tax_amount: number;
|
|
9588
|
-
total: number;
|
|
9589
|
-
}[] | undefined;
|
|
9590
10097
|
}[]>;
|
|
9591
10098
|
getCustomers(params?: {
|
|
9592
10099
|
search?: string | undefined;
|
|
@@ -9625,6 +10132,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9625
10132
|
total_discount?: number | undefined;
|
|
9626
10133
|
total_refund?: number | undefined;
|
|
9627
10134
|
total_tip?: number | undefined;
|
|
10135
|
+
currency?: string | undefined;
|
|
10136
|
+
country?: string | undefined;
|
|
10137
|
+
loyalty?: number | undefined;
|
|
10138
|
+
customer_id?: string | undefined;
|
|
10139
|
+
location_id?: string | undefined;
|
|
10140
|
+
taxes?: {
|
|
10141
|
+
tax_rate: number;
|
|
10142
|
+
tax_amount: number;
|
|
10143
|
+
total: number;
|
|
10144
|
+
}[] | undefined;
|
|
10145
|
+
payments: {
|
|
10146
|
+
id?: string | undefined;
|
|
10147
|
+
payment_method_id?: string | undefined;
|
|
10148
|
+
payment_method_name?: string | undefined;
|
|
10149
|
+
total: number;
|
|
10150
|
+
tip?: number | undefined;
|
|
10151
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10152
|
+
currency?: string | undefined;
|
|
10153
|
+
date?: string | undefined;
|
|
10154
|
+
}[];
|
|
9628
10155
|
items: {
|
|
9629
10156
|
id: string;
|
|
9630
10157
|
quantity: number;
|
|
@@ -9640,26 +10167,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9640
10167
|
product_id?: string | undefined;
|
|
9641
10168
|
accounting_category_id?: string | undefined;
|
|
9642
10169
|
}[];
|
|
9643
|
-
payments: {
|
|
9644
|
-
id?: string | undefined;
|
|
9645
|
-
payment_method_id?: string | undefined;
|
|
9646
|
-
payment_method_name?: string | undefined;
|
|
9647
|
-
total: number;
|
|
9648
|
-
tip?: number | undefined;
|
|
9649
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
9650
|
-
currency?: string | undefined;
|
|
9651
|
-
date?: string | undefined;
|
|
9652
|
-
}[];
|
|
9653
|
-
currency?: string | undefined;
|
|
9654
|
-
country?: string | undefined;
|
|
9655
|
-
loyalty?: number | undefined;
|
|
9656
|
-
customer_id?: string | undefined;
|
|
9657
|
-
location_id?: string | undefined;
|
|
9658
|
-
taxes?: {
|
|
9659
|
-
tax_rate: number;
|
|
9660
|
-
tax_amount: number;
|
|
9661
|
-
total: number;
|
|
9662
|
-
}[] | undefined;
|
|
9663
10170
|
}>;
|
|
9664
10171
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
9665
10172
|
id: string;
|
|
@@ -9795,6 +10302,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9795
10302
|
total_discount?: number | undefined;
|
|
9796
10303
|
total_refund?: number | undefined;
|
|
9797
10304
|
total_tip?: number | undefined;
|
|
10305
|
+
currency?: string | undefined;
|
|
10306
|
+
country?: string | undefined;
|
|
10307
|
+
loyalty?: number | undefined;
|
|
10308
|
+
customer_id?: string | undefined;
|
|
10309
|
+
location_id?: string | undefined;
|
|
10310
|
+
taxes?: {
|
|
10311
|
+
tax_rate: number;
|
|
10312
|
+
tax_amount: number;
|
|
10313
|
+
total: number;
|
|
10314
|
+
}[] | undefined;
|
|
10315
|
+
payments: {
|
|
10316
|
+
id?: string | undefined;
|
|
10317
|
+
payment_method_id?: string | undefined;
|
|
10318
|
+
payment_method_name?: string | undefined;
|
|
10319
|
+
total: number;
|
|
10320
|
+
tip?: number | undefined;
|
|
10321
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10322
|
+
currency?: string | undefined;
|
|
10323
|
+
date?: string | undefined;
|
|
10324
|
+
}[];
|
|
9798
10325
|
items: {
|
|
9799
10326
|
id: string;
|
|
9800
10327
|
quantity: number;
|
|
@@ -9810,16 +10337,53 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9810
10337
|
product_id?: string | undefined;
|
|
9811
10338
|
accounting_category_id?: string | undefined;
|
|
9812
10339
|
}[];
|
|
9813
|
-
|
|
10340
|
+
}>;
|
|
10341
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
10342
|
+
id: string;
|
|
10343
|
+
name: string;
|
|
10344
|
+
id_parent?: string | undefined;
|
|
10345
|
+
code?: string | undefined;
|
|
10346
|
+
ledger_account_code?: string | undefined;
|
|
10347
|
+
posting_account_code?: string | undefined;
|
|
10348
|
+
}[]>;
|
|
10349
|
+
}>;
|
|
10350
|
+
pms: import("../types/api").ApiFor<{
|
|
10351
|
+
getLocations(): import("../types/api").RequestData<{
|
|
10352
|
+
id: string;
|
|
10353
|
+
name: string;
|
|
10354
|
+
timezone?: string | undefined;
|
|
10355
|
+
address?: {
|
|
10356
|
+
address_type?: string | undefined;
|
|
10357
|
+
name?: string | undefined;
|
|
10358
|
+
street?: string | undefined;
|
|
10359
|
+
number?: string | undefined;
|
|
10360
|
+
box?: string | undefined;
|
|
10361
|
+
city?: string | undefined;
|
|
10362
|
+
postal_code?: string | undefined;
|
|
10363
|
+
country?: string | undefined;
|
|
10364
|
+
} | undefined;
|
|
10365
|
+
}[]>;
|
|
10366
|
+
getOrders(params: {
|
|
10367
|
+
date_from: string;
|
|
10368
|
+
date_to: string;
|
|
10369
|
+
location_id?: string | undefined;
|
|
10370
|
+
state?: "closed" | "consumed" | undefined;
|
|
10371
|
+
}): import("../types/api").RequestData<{
|
|
10372
|
+
id: string;
|
|
10373
|
+
source_ref: {
|
|
9814
10374
|
id?: string | undefined;
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9821
|
-
|
|
9822
|
-
|
|
10375
|
+
model?: string | undefined;
|
|
10376
|
+
};
|
|
10377
|
+
order_number?: string | undefined;
|
|
10378
|
+
creation_date: string;
|
|
10379
|
+
closing_date?: string | undefined;
|
|
10380
|
+
service_date?: string | undefined;
|
|
10381
|
+
device_id?: string | undefined;
|
|
10382
|
+
total: number;
|
|
10383
|
+
tax_amount: number;
|
|
10384
|
+
total_discount?: number | undefined;
|
|
10385
|
+
total_refund?: number | undefined;
|
|
10386
|
+
total_tip?: number | undefined;
|
|
9823
10387
|
currency?: string | undefined;
|
|
9824
10388
|
country?: string | undefined;
|
|
9825
10389
|
loyalty?: number | undefined;
|
|
@@ -9830,9 +10394,68 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
9830
10394
|
tax_amount: number;
|
|
9831
10395
|
total: number;
|
|
9832
10396
|
}[] | undefined;
|
|
10397
|
+
items: {
|
|
10398
|
+
id: string;
|
|
10399
|
+
source_ref: {
|
|
10400
|
+
id?: string | undefined;
|
|
10401
|
+
model?: string | undefined;
|
|
10402
|
+
};
|
|
10403
|
+
quantity: number;
|
|
10404
|
+
unit_price: number;
|
|
10405
|
+
total: number;
|
|
10406
|
+
tax_amount: number;
|
|
10407
|
+
tax_rate?: number | undefined;
|
|
10408
|
+
description?: string | undefined;
|
|
10409
|
+
discounts?: {
|
|
10410
|
+
name?: string | undefined;
|
|
10411
|
+
total: number;
|
|
10412
|
+
}[] | undefined;
|
|
10413
|
+
product_id?: string | undefined;
|
|
10414
|
+
accounting_category_id?: string | undefined;
|
|
10415
|
+
}[];
|
|
10416
|
+
service_id?: string | undefined;
|
|
10417
|
+
}[]>;
|
|
10418
|
+
getPaymentMethods(params?: {
|
|
10419
|
+
location_id?: string | undefined;
|
|
10420
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10421
|
+
id: string;
|
|
10422
|
+
source_ref: {
|
|
10423
|
+
id?: string | undefined;
|
|
10424
|
+
model?: string | undefined;
|
|
10425
|
+
};
|
|
10426
|
+
name: string;
|
|
10427
|
+
extra?: string | undefined;
|
|
10428
|
+
ledger_account_code?: string | undefined;
|
|
10429
|
+
}[]>;
|
|
10430
|
+
getClosure(date: string, params?: {
|
|
10431
|
+
location_id?: string | undefined;
|
|
10432
|
+
} | undefined): import("../types/api").RequestData<{
|
|
10433
|
+
date: string;
|
|
10434
|
+
status: "open" | "closed";
|
|
9833
10435
|
}>;
|
|
10436
|
+
getPayments(params: {
|
|
10437
|
+
date_from: string;
|
|
10438
|
+
date_to: string;
|
|
10439
|
+
}): import("../types/api").RequestData<{
|
|
10440
|
+
id?: string | undefined;
|
|
10441
|
+
source_ref: {
|
|
10442
|
+
id?: string | undefined;
|
|
10443
|
+
model?: string | undefined;
|
|
10444
|
+
};
|
|
10445
|
+
payment_method_id?: string | undefined;
|
|
10446
|
+
payment_method_name?: string | undefined;
|
|
10447
|
+
total: number;
|
|
10448
|
+
tip?: number | undefined;
|
|
10449
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
10450
|
+
currency?: string | undefined;
|
|
10451
|
+
date?: string | undefined;
|
|
10452
|
+
}[]>;
|
|
9834
10453
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
9835
10454
|
id: string;
|
|
10455
|
+
source_ref: {
|
|
10456
|
+
id?: string | undefined;
|
|
10457
|
+
model?: string | undefined;
|
|
10458
|
+
};
|
|
9836
10459
|
name: string;
|
|
9837
10460
|
id_parent?: string | undefined;
|
|
9838
10461
|
code?: string | undefined;
|
|
@@ -10317,6 +10940,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10317
10940
|
iban: string;
|
|
10318
10941
|
};
|
|
10319
10942
|
} | undefined;
|
|
10943
|
+
shipping_country?: string | undefined;
|
|
10320
10944
|
lines: {
|
|
10321
10945
|
line_number?: number | undefined;
|
|
10322
10946
|
description: string;
|
|
@@ -10413,6 +11037,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
10413
11037
|
iban: string;
|
|
10414
11038
|
};
|
|
10415
11039
|
} | undefined;
|
|
11040
|
+
shipping_country?: string | undefined;
|
|
10416
11041
|
lines: {
|
|
10417
11042
|
line_number?: number | undefined;
|
|
10418
11043
|
description: string;
|
|
@@ -11274,6 +11899,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
11274
11899
|
id: string;
|
|
11275
11900
|
name: string;
|
|
11276
11901
|
selected?: boolean | undefined;
|
|
11902
|
+
vat?: string | undefined;
|
|
11903
|
+
company_number?: string | undefined;
|
|
11277
11904
|
}[]>;
|
|
11278
11905
|
}>;
|
|
11279
11906
|
invoicing: import("../types/api").ApiFor<{
|
|
@@ -12003,6 +12630,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12003
12630
|
date_to?: string | undefined;
|
|
12004
12631
|
updated_after?: string | undefined;
|
|
12005
12632
|
include_detailed_refunds?: "true" | "false" | undefined;
|
|
12633
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
12006
12634
|
} | undefined): import("../types/api").RequestData<{
|
|
12007
12635
|
id: string;
|
|
12008
12636
|
source_ref: {
|
|
@@ -12049,8 +12677,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12049
12677
|
created_on?: string | undefined;
|
|
12050
12678
|
last_updated_on?: string | undefined;
|
|
12051
12679
|
confirmed_on?: string | undefined;
|
|
12680
|
+
delivery_date?: string | undefined;
|
|
12052
12681
|
cancelled_on?: string | undefined;
|
|
12053
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
12682
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
12054
12683
|
discount_amount: number;
|
|
12055
12684
|
untaxed_amount_without_fees: number;
|
|
12056
12685
|
tax_amount_without_fees: number;
|
|
@@ -12074,6 +12703,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12074
12703
|
id: string;
|
|
12075
12704
|
sku?: string | undefined;
|
|
12076
12705
|
name: string;
|
|
12706
|
+
categories?: {
|
|
12707
|
+
id: string;
|
|
12708
|
+
name: string;
|
|
12709
|
+
}[] | undefined;
|
|
12077
12710
|
} | undefined;
|
|
12078
12711
|
quantity: number;
|
|
12079
12712
|
untaxed_amount: number;
|
|
@@ -12091,6 +12724,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12091
12724
|
tax_amount: number;
|
|
12092
12725
|
total: number;
|
|
12093
12726
|
}[] | undefined;
|
|
12727
|
+
transactions?: {
|
|
12728
|
+
id: string;
|
|
12729
|
+
payment_method_id?: string | undefined;
|
|
12730
|
+
payment_method_name?: string | undefined;
|
|
12731
|
+
amount: number;
|
|
12732
|
+
status: "failed" | "pending" | "success";
|
|
12733
|
+
}[] | undefined;
|
|
12094
12734
|
}[] | undefined;
|
|
12095
12735
|
currency: string;
|
|
12096
12736
|
note?: string | undefined;
|
|
@@ -12105,6 +12745,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12105
12745
|
id: string;
|
|
12106
12746
|
sku?: string | undefined;
|
|
12107
12747
|
name: string;
|
|
12748
|
+
categories?: {
|
|
12749
|
+
id: string;
|
|
12750
|
+
name: string;
|
|
12751
|
+
}[] | undefined;
|
|
12108
12752
|
} | undefined;
|
|
12109
12753
|
quantity: number;
|
|
12110
12754
|
unit_price: number;
|
|
@@ -12240,8 +12884,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12240
12884
|
created_on?: string | undefined;
|
|
12241
12885
|
last_updated_on?: string | undefined;
|
|
12242
12886
|
confirmed_on?: string | undefined;
|
|
12887
|
+
delivery_date?: string | undefined;
|
|
12243
12888
|
cancelled_on?: string | undefined;
|
|
12244
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
12889
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
12245
12890
|
discount_amount: number;
|
|
12246
12891
|
untaxed_amount_without_fees: number;
|
|
12247
12892
|
tax_amount_without_fees: number;
|
|
@@ -12265,6 +12910,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12265
12910
|
id: string;
|
|
12266
12911
|
sku?: string | undefined;
|
|
12267
12912
|
name: string;
|
|
12913
|
+
categories?: {
|
|
12914
|
+
id: string;
|
|
12915
|
+
name: string;
|
|
12916
|
+
}[] | undefined;
|
|
12268
12917
|
} | undefined;
|
|
12269
12918
|
quantity: number;
|
|
12270
12919
|
untaxed_amount: number;
|
|
@@ -12282,6 +12931,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12282
12931
|
tax_amount: number;
|
|
12283
12932
|
total: number;
|
|
12284
12933
|
}[] | undefined;
|
|
12934
|
+
transactions?: {
|
|
12935
|
+
id: string;
|
|
12936
|
+
payment_method_id?: string | undefined;
|
|
12937
|
+
payment_method_name?: string | undefined;
|
|
12938
|
+
amount: number;
|
|
12939
|
+
status: "failed" | "pending" | "success";
|
|
12940
|
+
}[] | undefined;
|
|
12285
12941
|
}[] | undefined;
|
|
12286
12942
|
currency: string;
|
|
12287
12943
|
note?: string | undefined;
|
|
@@ -12296,6 +12952,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12296
12952
|
id: string;
|
|
12297
12953
|
sku?: string | undefined;
|
|
12298
12954
|
name: string;
|
|
12955
|
+
categories?: {
|
|
12956
|
+
id: string;
|
|
12957
|
+
name: string;
|
|
12958
|
+
}[] | undefined;
|
|
12299
12959
|
} | undefined;
|
|
12300
12960
|
quantity: number;
|
|
12301
12961
|
unit_price: number;
|
|
@@ -12390,8 +13050,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12390
13050
|
created_on?: string | undefined;
|
|
12391
13051
|
last_updated_on?: string | undefined;
|
|
12392
13052
|
confirmed_on?: string | undefined;
|
|
13053
|
+
delivery_date?: string | undefined;
|
|
12393
13054
|
cancelled_on?: string | undefined;
|
|
12394
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
13055
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
12395
13056
|
discount_amount: number;
|
|
12396
13057
|
untaxed_amount_without_fees: number;
|
|
12397
13058
|
tax_amount_without_fees: number;
|
|
@@ -12415,6 +13076,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12415
13076
|
id: string;
|
|
12416
13077
|
sku?: string | undefined;
|
|
12417
13078
|
name: string;
|
|
13079
|
+
categories?: {
|
|
13080
|
+
id: string;
|
|
13081
|
+
name: string;
|
|
13082
|
+
}[] | undefined;
|
|
12418
13083
|
} | undefined;
|
|
12419
13084
|
quantity: number;
|
|
12420
13085
|
untaxed_amount: number;
|
|
@@ -12432,6 +13097,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12432
13097
|
tax_amount: number;
|
|
12433
13098
|
total: number;
|
|
12434
13099
|
}[] | undefined;
|
|
13100
|
+
transactions?: {
|
|
13101
|
+
id: string;
|
|
13102
|
+
payment_method_id?: string | undefined;
|
|
13103
|
+
payment_method_name?: string | undefined;
|
|
13104
|
+
amount: number;
|
|
13105
|
+
status: "failed" | "pending" | "success";
|
|
13106
|
+
}[] | undefined;
|
|
12435
13107
|
}[] | undefined;
|
|
12436
13108
|
currency: string;
|
|
12437
13109
|
note?: string | undefined;
|
|
@@ -12446,6 +13118,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12446
13118
|
id: string;
|
|
12447
13119
|
sku?: string | undefined;
|
|
12448
13120
|
name: string;
|
|
13121
|
+
categories?: {
|
|
13122
|
+
id: string;
|
|
13123
|
+
name: string;
|
|
13124
|
+
}[] | undefined;
|
|
12449
13125
|
} | undefined;
|
|
12450
13126
|
quantity: number;
|
|
12451
13127
|
unit_price: number;
|
|
@@ -12707,6 +13383,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12707
13383
|
total_discount?: number | undefined;
|
|
12708
13384
|
total_refund?: number | undefined;
|
|
12709
13385
|
total_tip?: number | undefined;
|
|
13386
|
+
currency?: string | undefined;
|
|
13387
|
+
country?: string | undefined;
|
|
13388
|
+
loyalty?: number | undefined;
|
|
13389
|
+
customer_id?: string | undefined;
|
|
13390
|
+
location_id?: string | undefined;
|
|
13391
|
+
taxes?: {
|
|
13392
|
+
tax_rate: number;
|
|
13393
|
+
tax_amount: number;
|
|
13394
|
+
total: number;
|
|
13395
|
+
}[] | undefined;
|
|
13396
|
+
payments: {
|
|
13397
|
+
id?: string | undefined;
|
|
13398
|
+
payment_method_id?: string | undefined;
|
|
13399
|
+
payment_method_name?: string | undefined;
|
|
13400
|
+
total: number;
|
|
13401
|
+
tip?: number | undefined;
|
|
13402
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
13403
|
+
currency?: string | undefined;
|
|
13404
|
+
date?: string | undefined;
|
|
13405
|
+
}[];
|
|
12710
13406
|
items: {
|
|
12711
13407
|
id: string;
|
|
12712
13408
|
quantity: number;
|
|
@@ -12722,26 +13418,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12722
13418
|
product_id?: string | undefined;
|
|
12723
13419
|
accounting_category_id?: string | undefined;
|
|
12724
13420
|
}[];
|
|
12725
|
-
payments: {
|
|
12726
|
-
id?: string | undefined;
|
|
12727
|
-
payment_method_id?: string | undefined;
|
|
12728
|
-
payment_method_name?: string | undefined;
|
|
12729
|
-
total: number;
|
|
12730
|
-
tip?: number | undefined;
|
|
12731
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
12732
|
-
currency?: string | undefined;
|
|
12733
|
-
date?: string | undefined;
|
|
12734
|
-
}[];
|
|
12735
|
-
currency?: string | undefined;
|
|
12736
|
-
country?: string | undefined;
|
|
12737
|
-
loyalty?: number | undefined;
|
|
12738
|
-
customer_id?: string | undefined;
|
|
12739
|
-
location_id?: string | undefined;
|
|
12740
|
-
taxes?: {
|
|
12741
|
-
tax_rate: number;
|
|
12742
|
-
tax_amount: number;
|
|
12743
|
-
total: number;
|
|
12744
|
-
}[] | undefined;
|
|
12745
13421
|
}[]>;
|
|
12746
13422
|
getCustomers(params?: {
|
|
12747
13423
|
search?: string | undefined;
|
|
@@ -12780,6 +13456,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12780
13456
|
total_discount?: number | undefined;
|
|
12781
13457
|
total_refund?: number | undefined;
|
|
12782
13458
|
total_tip?: number | undefined;
|
|
13459
|
+
currency?: string | undefined;
|
|
13460
|
+
country?: string | undefined;
|
|
13461
|
+
loyalty?: number | undefined;
|
|
13462
|
+
customer_id?: string | undefined;
|
|
13463
|
+
location_id?: string | undefined;
|
|
13464
|
+
taxes?: {
|
|
13465
|
+
tax_rate: number;
|
|
13466
|
+
tax_amount: number;
|
|
13467
|
+
total: number;
|
|
13468
|
+
}[] | undefined;
|
|
13469
|
+
payments: {
|
|
13470
|
+
id?: string | undefined;
|
|
13471
|
+
payment_method_id?: string | undefined;
|
|
13472
|
+
payment_method_name?: string | undefined;
|
|
13473
|
+
total: number;
|
|
13474
|
+
tip?: number | undefined;
|
|
13475
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
13476
|
+
currency?: string | undefined;
|
|
13477
|
+
date?: string | undefined;
|
|
13478
|
+
}[];
|
|
12783
13479
|
items: {
|
|
12784
13480
|
id: string;
|
|
12785
13481
|
quantity: number;
|
|
@@ -12795,26 +13491,6 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12795
13491
|
product_id?: string | undefined;
|
|
12796
13492
|
accounting_category_id?: string | undefined;
|
|
12797
13493
|
}[];
|
|
12798
|
-
payments: {
|
|
12799
|
-
id?: string | undefined;
|
|
12800
|
-
payment_method_id?: string | undefined;
|
|
12801
|
-
payment_method_name?: string | undefined;
|
|
12802
|
-
total: number;
|
|
12803
|
-
tip?: number | undefined;
|
|
12804
|
-
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
12805
|
-
currency?: string | undefined;
|
|
12806
|
-
date?: string | undefined;
|
|
12807
|
-
}[];
|
|
12808
|
-
currency?: string | undefined;
|
|
12809
|
-
country?: string | undefined;
|
|
12810
|
-
loyalty?: number | undefined;
|
|
12811
|
-
customer_id?: string | undefined;
|
|
12812
|
-
location_id?: string | undefined;
|
|
12813
|
-
taxes?: {
|
|
12814
|
-
tax_rate: number;
|
|
12815
|
-
tax_amount: number;
|
|
12816
|
-
total: number;
|
|
12817
|
-
}[] | undefined;
|
|
12818
13494
|
}>;
|
|
12819
13495
|
getCustomer(customerId: string): import("../types/api").RequestData<{
|
|
12820
13496
|
id: string;
|
|
@@ -12950,6 +13626,26 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12950
13626
|
total_discount?: number | undefined;
|
|
12951
13627
|
total_refund?: number | undefined;
|
|
12952
13628
|
total_tip?: number | undefined;
|
|
13629
|
+
currency?: string | undefined;
|
|
13630
|
+
country?: string | undefined;
|
|
13631
|
+
loyalty?: number | undefined;
|
|
13632
|
+
customer_id?: string | undefined;
|
|
13633
|
+
location_id?: string | undefined;
|
|
13634
|
+
taxes?: {
|
|
13635
|
+
tax_rate: number;
|
|
13636
|
+
tax_amount: number;
|
|
13637
|
+
total: number;
|
|
13638
|
+
}[] | undefined;
|
|
13639
|
+
payments: {
|
|
13640
|
+
id?: string | undefined;
|
|
13641
|
+
payment_method_id?: string | undefined;
|
|
13642
|
+
payment_method_name?: string | undefined;
|
|
13643
|
+
total: number;
|
|
13644
|
+
tip?: number | undefined;
|
|
13645
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
13646
|
+
currency?: string | undefined;
|
|
13647
|
+
date?: string | undefined;
|
|
13648
|
+
}[];
|
|
12953
13649
|
items: {
|
|
12954
13650
|
id: string;
|
|
12955
13651
|
quantity: number;
|
|
@@ -12965,16 +13661,53 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12965
13661
|
product_id?: string | undefined;
|
|
12966
13662
|
accounting_category_id?: string | undefined;
|
|
12967
13663
|
}[];
|
|
12968
|
-
|
|
13664
|
+
}>;
|
|
13665
|
+
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
13666
|
+
id: string;
|
|
13667
|
+
name: string;
|
|
13668
|
+
id_parent?: string | undefined;
|
|
13669
|
+
code?: string | undefined;
|
|
13670
|
+
ledger_account_code?: string | undefined;
|
|
13671
|
+
posting_account_code?: string | undefined;
|
|
13672
|
+
}[]>;
|
|
13673
|
+
}>;
|
|
13674
|
+
pms: import("../types/api").ApiFor<{
|
|
13675
|
+
getLocations(): import("../types/api").RequestData<{
|
|
13676
|
+
id: string;
|
|
13677
|
+
name: string;
|
|
13678
|
+
timezone?: string | undefined;
|
|
13679
|
+
address?: {
|
|
13680
|
+
address_type?: string | undefined;
|
|
13681
|
+
name?: string | undefined;
|
|
13682
|
+
street?: string | undefined;
|
|
13683
|
+
number?: string | undefined;
|
|
13684
|
+
box?: string | undefined;
|
|
13685
|
+
city?: string | undefined;
|
|
13686
|
+
postal_code?: string | undefined;
|
|
13687
|
+
country?: string | undefined;
|
|
13688
|
+
} | undefined;
|
|
13689
|
+
}[]>;
|
|
13690
|
+
getOrders(params: {
|
|
13691
|
+
date_from: string;
|
|
13692
|
+
date_to: string;
|
|
13693
|
+
location_id?: string | undefined;
|
|
13694
|
+
state?: "closed" | "consumed" | undefined;
|
|
13695
|
+
}): import("../types/api").RequestData<{
|
|
13696
|
+
id: string;
|
|
13697
|
+
source_ref: {
|
|
12969
13698
|
id?: string | undefined;
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
|
|
12974
|
-
|
|
12975
|
-
|
|
12976
|
-
|
|
12977
|
-
|
|
13699
|
+
model?: string | undefined;
|
|
13700
|
+
};
|
|
13701
|
+
order_number?: string | undefined;
|
|
13702
|
+
creation_date: string;
|
|
13703
|
+
closing_date?: string | undefined;
|
|
13704
|
+
service_date?: string | undefined;
|
|
13705
|
+
device_id?: string | undefined;
|
|
13706
|
+
total: number;
|
|
13707
|
+
tax_amount: number;
|
|
13708
|
+
total_discount?: number | undefined;
|
|
13709
|
+
total_refund?: number | undefined;
|
|
13710
|
+
total_tip?: number | undefined;
|
|
12978
13711
|
currency?: string | undefined;
|
|
12979
13712
|
country?: string | undefined;
|
|
12980
13713
|
loyalty?: number | undefined;
|
|
@@ -12985,9 +13718,68 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
12985
13718
|
tax_amount: number;
|
|
12986
13719
|
total: number;
|
|
12987
13720
|
}[] | undefined;
|
|
13721
|
+
items: {
|
|
13722
|
+
id: string;
|
|
13723
|
+
source_ref: {
|
|
13724
|
+
id?: string | undefined;
|
|
13725
|
+
model?: string | undefined;
|
|
13726
|
+
};
|
|
13727
|
+
quantity: number;
|
|
13728
|
+
unit_price: number;
|
|
13729
|
+
total: number;
|
|
13730
|
+
tax_amount: number;
|
|
13731
|
+
tax_rate?: number | undefined;
|
|
13732
|
+
description?: string | undefined;
|
|
13733
|
+
discounts?: {
|
|
13734
|
+
name?: string | undefined;
|
|
13735
|
+
total: number;
|
|
13736
|
+
}[] | undefined;
|
|
13737
|
+
product_id?: string | undefined;
|
|
13738
|
+
accounting_category_id?: string | undefined;
|
|
13739
|
+
}[];
|
|
13740
|
+
service_id?: string | undefined;
|
|
13741
|
+
}[]>;
|
|
13742
|
+
getPaymentMethods(params?: {
|
|
13743
|
+
location_id?: string | undefined;
|
|
13744
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13745
|
+
id: string;
|
|
13746
|
+
source_ref: {
|
|
13747
|
+
id?: string | undefined;
|
|
13748
|
+
model?: string | undefined;
|
|
13749
|
+
};
|
|
13750
|
+
name: string;
|
|
13751
|
+
extra?: string | undefined;
|
|
13752
|
+
ledger_account_code?: string | undefined;
|
|
13753
|
+
}[]>;
|
|
13754
|
+
getClosure(date: string, params?: {
|
|
13755
|
+
location_id?: string | undefined;
|
|
13756
|
+
} | undefined): import("../types/api").RequestData<{
|
|
13757
|
+
date: string;
|
|
13758
|
+
status: "open" | "closed";
|
|
12988
13759
|
}>;
|
|
13760
|
+
getPayments(params: {
|
|
13761
|
+
date_from: string;
|
|
13762
|
+
date_to: string;
|
|
13763
|
+
}): import("../types/api").RequestData<{
|
|
13764
|
+
id?: string | undefined;
|
|
13765
|
+
source_ref: {
|
|
13766
|
+
id?: string | undefined;
|
|
13767
|
+
model?: string | undefined;
|
|
13768
|
+
};
|
|
13769
|
+
payment_method_id?: string | undefined;
|
|
13770
|
+
payment_method_name?: string | undefined;
|
|
13771
|
+
total: number;
|
|
13772
|
+
tip?: number | undefined;
|
|
13773
|
+
status?: "Pending" | "Completed" | "Canceled" | "Failed" | "Unknown" | "Authorised" | undefined;
|
|
13774
|
+
currency?: string | undefined;
|
|
13775
|
+
date?: string | undefined;
|
|
13776
|
+
}[]>;
|
|
12989
13777
|
getAccountingCategories(params?: {} | undefined): import("../types/api").RequestData<{
|
|
12990
13778
|
id: string;
|
|
13779
|
+
source_ref: {
|
|
13780
|
+
id?: string | undefined;
|
|
13781
|
+
model?: string | undefined;
|
|
13782
|
+
};
|
|
12991
13783
|
name: string;
|
|
12992
13784
|
id_parent?: string | undefined;
|
|
12993
13785
|
code?: string | undefined;
|
|
@@ -13472,6 +14264,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13472
14264
|
iban: string;
|
|
13473
14265
|
};
|
|
13474
14266
|
} | undefined;
|
|
14267
|
+
shipping_country?: string | undefined;
|
|
13475
14268
|
lines: {
|
|
13476
14269
|
line_number?: number | undefined;
|
|
13477
14270
|
description: string;
|
|
@@ -13568,6 +14361,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
13568
14361
|
iban: string;
|
|
13569
14362
|
};
|
|
13570
14363
|
} | undefined;
|
|
14364
|
+
shipping_country?: string | undefined;
|
|
13571
14365
|
lines: {
|
|
13572
14366
|
line_number?: number | undefined;
|
|
13573
14367
|
description: string;
|
|
@@ -14429,6 +15223,8 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
14429
15223
|
id: string;
|
|
14430
15224
|
name: string;
|
|
14431
15225
|
selected?: boolean | undefined;
|
|
15226
|
+
vat?: string | undefined;
|
|
15227
|
+
company_number?: string | undefined;
|
|
14432
15228
|
}[]>;
|
|
14433
15229
|
}>;
|
|
14434
15230
|
invoicing: import("../types/api").ApiFor<{
|
|
@@ -15158,6 +15954,7 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15158
15954
|
date_to?: string | undefined;
|
|
15159
15955
|
updated_after?: string | undefined;
|
|
15160
15956
|
include_detailed_refunds?: "true" | "false" | undefined;
|
|
15957
|
+
include_product_categories?: "true" | "false" | undefined;
|
|
15161
15958
|
} | undefined): import("../types/api").RequestData<{
|
|
15162
15959
|
id: string;
|
|
15163
15960
|
source_ref: {
|
|
@@ -15204,8 +16001,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15204
16001
|
created_on?: string | undefined;
|
|
15205
16002
|
last_updated_on?: string | undefined;
|
|
15206
16003
|
confirmed_on?: string | undefined;
|
|
16004
|
+
delivery_date?: string | undefined;
|
|
15207
16005
|
cancelled_on?: string | undefined;
|
|
15208
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
16006
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
15209
16007
|
discount_amount: number;
|
|
15210
16008
|
untaxed_amount_without_fees: number;
|
|
15211
16009
|
tax_amount_without_fees: number;
|
|
@@ -15229,6 +16027,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15229
16027
|
id: string;
|
|
15230
16028
|
sku?: string | undefined;
|
|
15231
16029
|
name: string;
|
|
16030
|
+
categories?: {
|
|
16031
|
+
id: string;
|
|
16032
|
+
name: string;
|
|
16033
|
+
}[] | undefined;
|
|
15232
16034
|
} | undefined;
|
|
15233
16035
|
quantity: number;
|
|
15234
16036
|
untaxed_amount: number;
|
|
@@ -15246,6 +16048,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15246
16048
|
tax_amount: number;
|
|
15247
16049
|
total: number;
|
|
15248
16050
|
}[] | undefined;
|
|
16051
|
+
transactions?: {
|
|
16052
|
+
id: string;
|
|
16053
|
+
payment_method_id?: string | undefined;
|
|
16054
|
+
payment_method_name?: string | undefined;
|
|
16055
|
+
amount: number;
|
|
16056
|
+
status: "failed" | "pending" | "success";
|
|
16057
|
+
}[] | undefined;
|
|
15249
16058
|
}[] | undefined;
|
|
15250
16059
|
currency: string;
|
|
15251
16060
|
note?: string | undefined;
|
|
@@ -15260,6 +16069,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15260
16069
|
id: string;
|
|
15261
16070
|
sku?: string | undefined;
|
|
15262
16071
|
name: string;
|
|
16072
|
+
categories?: {
|
|
16073
|
+
id: string;
|
|
16074
|
+
name: string;
|
|
16075
|
+
}[] | undefined;
|
|
15263
16076
|
} | undefined;
|
|
15264
16077
|
quantity: number;
|
|
15265
16078
|
unit_price: number;
|
|
@@ -15395,8 +16208,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15395
16208
|
created_on?: string | undefined;
|
|
15396
16209
|
last_updated_on?: string | undefined;
|
|
15397
16210
|
confirmed_on?: string | undefined;
|
|
16211
|
+
delivery_date?: string | undefined;
|
|
15398
16212
|
cancelled_on?: string | undefined;
|
|
15399
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
16213
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
15400
16214
|
discount_amount: number;
|
|
15401
16215
|
untaxed_amount_without_fees: number;
|
|
15402
16216
|
tax_amount_without_fees: number;
|
|
@@ -15420,6 +16234,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15420
16234
|
id: string;
|
|
15421
16235
|
sku?: string | undefined;
|
|
15422
16236
|
name: string;
|
|
16237
|
+
categories?: {
|
|
16238
|
+
id: string;
|
|
16239
|
+
name: string;
|
|
16240
|
+
}[] | undefined;
|
|
15423
16241
|
} | undefined;
|
|
15424
16242
|
quantity: number;
|
|
15425
16243
|
untaxed_amount: number;
|
|
@@ -15437,6 +16255,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15437
16255
|
tax_amount: number;
|
|
15438
16256
|
total: number;
|
|
15439
16257
|
}[] | undefined;
|
|
16258
|
+
transactions?: {
|
|
16259
|
+
id: string;
|
|
16260
|
+
payment_method_id?: string | undefined;
|
|
16261
|
+
payment_method_name?: string | undefined;
|
|
16262
|
+
amount: number;
|
|
16263
|
+
status: "failed" | "pending" | "success";
|
|
16264
|
+
}[] | undefined;
|
|
15440
16265
|
}[] | undefined;
|
|
15441
16266
|
currency: string;
|
|
15442
16267
|
note?: string | undefined;
|
|
@@ -15451,6 +16276,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15451
16276
|
id: string;
|
|
15452
16277
|
sku?: string | undefined;
|
|
15453
16278
|
name: string;
|
|
16279
|
+
categories?: {
|
|
16280
|
+
id: string;
|
|
16281
|
+
name: string;
|
|
16282
|
+
}[] | undefined;
|
|
15454
16283
|
} | undefined;
|
|
15455
16284
|
quantity: number;
|
|
15456
16285
|
unit_price: number;
|
|
@@ -15545,8 +16374,9 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15545
16374
|
created_on?: string | undefined;
|
|
15546
16375
|
last_updated_on?: string | undefined;
|
|
15547
16376
|
confirmed_on?: string | undefined;
|
|
16377
|
+
delivery_date?: string | undefined;
|
|
15548
16378
|
cancelled_on?: string | undefined;
|
|
15549
|
-
status: "cancelled" | "draft" | "confirmed" | "shipped" | "refunded";
|
|
16379
|
+
status: "cancelled" | "draft" | "cancelled_unpaid" | "confirmed" | "shipped" | "refunded";
|
|
15550
16380
|
discount_amount: number;
|
|
15551
16381
|
untaxed_amount_without_fees: number;
|
|
15552
16382
|
tax_amount_without_fees: number;
|
|
@@ -15570,6 +16400,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15570
16400
|
id: string;
|
|
15571
16401
|
sku?: string | undefined;
|
|
15572
16402
|
name: string;
|
|
16403
|
+
categories?: {
|
|
16404
|
+
id: string;
|
|
16405
|
+
name: string;
|
|
16406
|
+
}[] | undefined;
|
|
15573
16407
|
} | undefined;
|
|
15574
16408
|
quantity: number;
|
|
15575
16409
|
untaxed_amount: number;
|
|
@@ -15587,6 +16421,13 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15587
16421
|
tax_amount: number;
|
|
15588
16422
|
total: number;
|
|
15589
16423
|
}[] | undefined;
|
|
16424
|
+
transactions?: {
|
|
16425
|
+
id: string;
|
|
16426
|
+
payment_method_id?: string | undefined;
|
|
16427
|
+
payment_method_name?: string | undefined;
|
|
16428
|
+
amount: number;
|
|
16429
|
+
status: "failed" | "pending" | "success";
|
|
16430
|
+
}[] | undefined;
|
|
15590
16431
|
}[] | undefined;
|
|
15591
16432
|
currency: string;
|
|
15592
16433
|
note?: string | undefined;
|
|
@@ -15601,6 +16442,10 @@ declare const Consumers: (internalApi: InternalAPI) => {
|
|
|
15601
16442
|
id: string;
|
|
15602
16443
|
sku?: string | undefined;
|
|
15603
16444
|
name: string;
|
|
16445
|
+
categories?: {
|
|
16446
|
+
id: string;
|
|
16447
|
+
name: string;
|
|
16448
|
+
}[] | undefined;
|
|
15604
16449
|
} | undefined;
|
|
15605
16450
|
quantity: number;
|
|
15606
16451
|
unit_price: number;
|