meemup-library 1.2.71 → 1.2.72
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.
|
@@ -16,7 +16,7 @@ import IPointOfSaleOrderSummary from "../interfaces/pos/IPointOfSaleOrderSummary
|
|
|
16
16
|
import EnumCustomerMandatory from "../enums/EnumCustomerMandatory";
|
|
17
17
|
import IPointOfSaleSettingRewardProgram from "../interfaces/pos/IPointOfSaleSettingRewardProgram";
|
|
18
18
|
import ITextValue from "../interfaces/ITextValue";
|
|
19
|
-
|
|
19
|
+
declare class OrderToolController {
|
|
20
20
|
replaceItem(item: IOrderItem, items: IOrderItem[]): IOrderItem[];
|
|
21
21
|
paymentTypeText(order?: IOrder | IPointOfSaleOrderSummary): string;
|
|
22
22
|
getPaymentTypeText(paymentType: EnumPaymentType, orderType: EnumOrderType): string;
|
|
@@ -52,3 +52,5 @@ export default class OrderToolController {
|
|
|
52
52
|
isMandatory(orderType: EnumOrderType, value: EnumCustomerMandatory): boolean;
|
|
53
53
|
private round;
|
|
54
54
|
}
|
|
55
|
+
declare const _default: OrderToolController;
|
|
56
|
+
export default _default;
|
|
@@ -15,7 +15,7 @@ import PhoneController from "../controllers/PhoneController";
|
|
|
15
15
|
import EnumChannels from "../enums/EnumChannels";
|
|
16
16
|
import EnumCustomerMandatory from "../enums/EnumCustomerMandatory";
|
|
17
17
|
import EnumRewardPointType from "../enums/EnumRewardPointType";
|
|
18
|
-
|
|
18
|
+
class OrderToolController {
|
|
19
19
|
constructor() {
|
|
20
20
|
this.calcDeliveryCost = (displayTotalAmount, zone) => {
|
|
21
21
|
if (displayTotalAmount >= zone.freeFrom)
|
|
@@ -586,3 +586,4 @@ export default class OrderToolController {
|
|
|
586
586
|
return Math.round(num * 100) / 100;
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
+
export default new OrderToolController();
|