meemup-library 1.2.35 → 1.2.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interfaces/IApiShop.d.ts +4 -0
- package/dist/interfaces/IApiShop.js +4 -1
- package/dist/interfaces/ISaveOrder.d.ts +2 -0
- package/dist/interfaces/order/IOrder.d.ts +2 -1
- package/dist/interfaces/order/IOrder.js +2 -1
- package/dist/interfaces/order/IPointOfSaleSaveOrder.d.ts +48 -0
- package/dist/interfaces/order/IPointOfSaleSaveOrder.js +1 -0
- package/dist/interfaces/order/IPointOfSaleSaveOrderAnswer.d.ts +11 -0
- package/dist/interfaces/order/IPointOfSaleSaveOrderAnswer.js +1 -0
- package/dist/interfaces/order/IPointOfSaleSaveOrderCustomer.d.ts +9 -0
- package/dist/interfaces/order/IPointOfSaleSaveOrderCustomer.js +1 -0
- package/dist/interfaces/order/IPointOfSaleSaveOrderDiscount.d.ts +6 -0
- package/dist/interfaces/order/IPointOfSaleSaveOrderDiscount.js +1 -0
- package/dist/interfaces/order/IPointOfSaleSaveOrderProduct.d.ts +7 -0
- package/dist/interfaces/order/IPointOfSaleSaveOrderProduct.js +1 -0
- package/dist/interfaces/order/IPointOfSaleSaveOrderProductExtra.d.ts +7 -0
- package/dist/interfaces/order/IPointOfSaleSaveOrderProductExtra.js +1 -0
- package/dist/interfaces/pos/IPointOfSaleRestaurantTable.d.ts +9 -0
- package/dist/interfaces/pos/IPointOfSaleRestaurantTable.js +1 -0
- package/package.json +1 -1
|
@@ -10,6 +10,8 @@ import IOrderState from "./IOrderState";
|
|
|
10
10
|
import IStarMicronicPrinter from "./IStarMicronicPrinter";
|
|
11
11
|
import IBaseCustomer from "./IBaseCustomer";
|
|
12
12
|
import IPointOfSaleSetting from "./IPointOfSaleSetting";
|
|
13
|
+
import IPointOfSaleLocalSetting from "./IPointOfSaleLocalSetting";
|
|
14
|
+
import IPointOfSaleRestaurantTable from "./pos/IPointOfSaleRestaurantTable";
|
|
13
15
|
interface IApiShop {
|
|
14
16
|
ok: boolean;
|
|
15
17
|
products: IProduct[];
|
|
@@ -25,6 +27,8 @@ interface IApiShop {
|
|
|
25
27
|
starMicronicPrinters: IStarMicronicPrinter[];
|
|
26
28
|
driversNames: ITextValue[];
|
|
27
29
|
orderStates: IOrderState[];
|
|
30
|
+
localSetting: IPointOfSaleLocalSetting;
|
|
31
|
+
restaurantTables: IPointOfSaleRestaurantTable[];
|
|
28
32
|
}
|
|
29
33
|
export default IApiShop;
|
|
30
34
|
export declare const initApiShop: IApiShop;
|
|
@@ -2,6 +2,7 @@ import { initGeneralInformation } from "./IGeneralInformation";
|
|
|
2
2
|
import { initCheckoutOption } from "./ICheckoutOption";
|
|
3
3
|
import { initGeneralItems } from "./IGeneralItems";
|
|
4
4
|
import { initPointOfSaleSetting } from "./IPointOfSaleSetting";
|
|
5
|
+
import { initPointOfSaleLocalSetting } from "./IPointOfSaleLocalSetting";
|
|
5
6
|
export const initApiShop = {
|
|
6
7
|
ok: false,
|
|
7
8
|
extras: [],
|
|
@@ -16,5 +17,7 @@ export const initApiShop = {
|
|
|
16
17
|
generalItems: initGeneralItems,
|
|
17
18
|
starMicronicPrinters: [],
|
|
18
19
|
driversNames: [],
|
|
19
|
-
orderStates: []
|
|
20
|
+
orderStates: [],
|
|
21
|
+
localSetting: initPointOfSaleLocalSetting,
|
|
22
|
+
restaurantTables: []
|
|
20
23
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import EnumGender from "../enums/EnumGender";
|
|
2
2
|
import ICalculateFeeResult from "./ICalculateFeeResult";
|
|
3
|
+
import IOrderPayment from "./order/IOrderPayment";
|
|
3
4
|
export interface ISaveOrder {
|
|
4
5
|
id?: number;
|
|
5
6
|
number: number;
|
|
@@ -40,6 +41,7 @@ export interface ISaveOrder {
|
|
|
40
41
|
openOrder: boolean;
|
|
41
42
|
draftOrder: boolean;
|
|
42
43
|
points: number;
|
|
44
|
+
paymentTransactions: null | IOrderPayment[];
|
|
43
45
|
}
|
|
44
46
|
export interface ISaveOrderAnswer {
|
|
45
47
|
orderId: number;
|
|
@@ -37,6 +37,7 @@ interface IOrder {
|
|
|
37
37
|
longitude: number;
|
|
38
38
|
latitude: number;
|
|
39
39
|
tableNo: string;
|
|
40
|
+
tableId: number | null;
|
|
40
41
|
products: IOrderItem[];
|
|
41
42
|
tipType: EnumTipType;
|
|
42
43
|
tip: number;
|
|
@@ -81,7 +82,7 @@ interface IOrder {
|
|
|
81
82
|
openOrder: boolean;
|
|
82
83
|
draftOrder: boolean;
|
|
83
84
|
points: number;
|
|
84
|
-
|
|
85
|
+
paymentTransactions: IOrderPayment[];
|
|
85
86
|
}
|
|
86
87
|
export default IOrder;
|
|
87
88
|
export declare const initOrder: IOrder;
|
|
@@ -36,6 +36,7 @@ export const initOrder = {
|
|
|
36
36
|
longitude: 0,
|
|
37
37
|
latitude: 0,
|
|
38
38
|
tableNo: "",
|
|
39
|
+
tableId: null,
|
|
39
40
|
//items
|
|
40
41
|
products: [],
|
|
41
42
|
//tip
|
|
@@ -86,5 +87,5 @@ export const initOrder = {
|
|
|
86
87
|
openOrder: false,
|
|
87
88
|
draftOrder: false,
|
|
88
89
|
points: 0,
|
|
89
|
-
|
|
90
|
+
paymentTransactions: []
|
|
90
91
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import ICalculateFeeResult from "../ICalculateFeeResult";
|
|
2
|
+
import IOrderPayment from "./IOrderPayment";
|
|
3
|
+
import IPointOfSaleSaveOrderCustomer from "./IPointOfSaleSaveOrderCustomer";
|
|
4
|
+
import IPointOfSaleSaveOrderDiscount from "./IPointOfSaleSaveOrderDiscount";
|
|
5
|
+
import IPointOfSaleSaveOrderProduct from "./IPointOfSaleSaveOrderProduct";
|
|
6
|
+
export default interface IPointOfSaleSaveOrder {
|
|
7
|
+
id?: number;
|
|
8
|
+
number: number;
|
|
9
|
+
customer: IPointOfSaleSaveOrderCustomer;
|
|
10
|
+
items: IPointOfSaleSaveOrderProduct[];
|
|
11
|
+
discount: IPointOfSaleSaveOrderDiscount | null;
|
|
12
|
+
orderType: number;
|
|
13
|
+
time: string | null;
|
|
14
|
+
date: string | null;
|
|
15
|
+
asSoonAsPossible: boolean;
|
|
16
|
+
paymentType: number;
|
|
17
|
+
paymentState: number;
|
|
18
|
+
address: string;
|
|
19
|
+
location: any | null;
|
|
20
|
+
remark: string;
|
|
21
|
+
tableNo: string;
|
|
22
|
+
tableId: number | null;
|
|
23
|
+
distance: number;
|
|
24
|
+
duration: number;
|
|
25
|
+
tipAmount: number;
|
|
26
|
+
deliveryCost: number;
|
|
27
|
+
companyFee: number;
|
|
28
|
+
serviceFee: number;
|
|
29
|
+
additionalItems: ICalculateFeeResult[];
|
|
30
|
+
city: string;
|
|
31
|
+
buzzer: string;
|
|
32
|
+
postalCode: string;
|
|
33
|
+
apartment: string;
|
|
34
|
+
houseNo: string;
|
|
35
|
+
roundCashAmount: number;
|
|
36
|
+
paymentStateString: string;
|
|
37
|
+
displayOnKitchenDisplay: boolean;
|
|
38
|
+
skipTipping: boolean;
|
|
39
|
+
driverId: number | null;
|
|
40
|
+
deviceId: string | null;
|
|
41
|
+
zoneId: number | null;
|
|
42
|
+
referenceId: string;
|
|
43
|
+
pickupInstructions: string;
|
|
44
|
+
openOrder: boolean;
|
|
45
|
+
draftOrder: boolean;
|
|
46
|
+
points: number;
|
|
47
|
+
paymentTransactions: null | IOrderPayment[];
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|