meemup-library 1.0.89 → 1.0.91
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.
|
@@ -3,13 +3,13 @@ import ICategory from "./ICategory";
|
|
|
3
3
|
import IExtra from "./IExtra";
|
|
4
4
|
import ISetting from "./ISetting";
|
|
5
5
|
import IGeneralInformation from "./IGeneralInformation";
|
|
6
|
-
import ICustomer from "./ICustomer";
|
|
7
6
|
import ITextValue from "./ITextValue";
|
|
8
7
|
import ICheckoutOption from "./ICheckoutOption";
|
|
9
8
|
import IGeneralItems from "./IGeneralItems";
|
|
10
9
|
import IPrintTemplate from "./IPrintTemplate";
|
|
11
10
|
import IOrderState from "./IOrderState";
|
|
12
11
|
import IStarMicronicPrinter from "./IStarMicronicPrinter";
|
|
12
|
+
import IBaseCustomer from "./IBaseCustomer";
|
|
13
13
|
interface IApiShop {
|
|
14
14
|
ok: boolean;
|
|
15
15
|
products: IProduct[];
|
|
@@ -17,7 +17,7 @@ interface IApiShop {
|
|
|
17
17
|
extras: IExtra[];
|
|
18
18
|
setting: ISetting;
|
|
19
19
|
generalInformation: IGeneralInformation;
|
|
20
|
-
customers:
|
|
20
|
+
customers: IBaseCustomer[];
|
|
21
21
|
printTemplates: IPrintTemplate[];
|
|
22
22
|
terminals: ITextValue[];
|
|
23
23
|
checkoutOption: ICheckoutOption;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import EnumOrderType from "../enums/EnumOrderType";
|
|
2
|
+
import EnumPaymentState from "../enums/EnumPaymentState";
|
|
2
3
|
import EnumPaymentType from "../enums/EnumPaymentType";
|
|
3
4
|
import EnumPrintCommand from "../enums/EnumPrintCommand";
|
|
4
5
|
export const initSetting = {
|
|
@@ -7,6 +8,7 @@ export const initSetting = {
|
|
|
7
8
|
autoPrintOnNewOrder: false,
|
|
8
9
|
autoPrintOnNewOrderWhen: 1,
|
|
9
10
|
defaultPaymentMethod: EnumPaymentType.cash,
|
|
11
|
+
defaultPaymentState: EnumPaymentState.NOT_PAID,
|
|
10
12
|
defaultOrderType: EnumOrderType.dining,
|
|
11
13
|
customerMandatory: false,
|
|
12
14
|
checkDeliveryCoverageArea: false,
|