meemup-library 1.2.34 → 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.
@@ -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;
@@ -9,6 +9,7 @@ import EnumPaymentState from "../../enums/EnumPaymentState";
9
9
  import ICalculateFeeResult from "../ICalculateFeeResult";
10
10
  import IOrderDetails from "../print/IOrderDetails";
11
11
  import EnumPickupInstruction from "../../enums/EnumPickupInstruction";
12
+ import IOrderPayment from "./IOrderPayment";
12
13
  interface IOrder {
13
14
  id: number;
14
15
  number: number;
@@ -36,6 +37,7 @@ interface IOrder {
36
37
  longitude: number;
37
38
  latitude: number;
38
39
  tableNo: string;
40
+ tableId: number | null;
39
41
  products: IOrderItem[];
40
42
  tipType: EnumTipType;
41
43
  tip: number;
@@ -80,6 +82,7 @@ interface IOrder {
80
82
  openOrder: boolean;
81
83
  draftOrder: boolean;
82
84
  points: number;
85
+ paymentTransactions: IOrderPayment[];
83
86
  }
84
87
  export default IOrder;
85
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
@@ -85,5 +86,6 @@ export const initOrder = {
85
86
  pickupInstructions: "",
86
87
  openOrder: false,
87
88
  draftOrder: false,
88
- points: 0
89
+ points: 0,
90
+ paymentTransactions: []
89
91
  };
@@ -0,0 +1,6 @@
1
+ import EnumPaymentType from "../../enums/EnumPaymentType";
2
+ export default interface IOrderPayment {
3
+ amount: number;
4
+ type: EnumPaymentType;
5
+ done: boolean;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -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,11 @@
1
+ export default interface IPointOfSaleSaveOrderAnswer {
2
+ orderId: number;
3
+ fullName: string;
4
+ orderCode: number;
5
+ email: string;
6
+ orderType: number;
7
+ orderTypeTitle: string;
8
+ orderDatetime: string;
9
+ paymentToken: string;
10
+ message: string;
11
+ }
@@ -0,0 +1,9 @@
1
+ import EnumGender from "../../enums/EnumGender";
2
+ export default interface IPointOfSaleSaveOrderCustomer {
3
+ id: number | null;
4
+ firstName: string;
5
+ lastName: string;
6
+ email: string;
7
+ phoneNumber: string;
8
+ gender: EnumGender;
9
+ }
@@ -0,0 +1,6 @@
1
+ export default interface IPointOfSaleSaveOrderDiscount {
2
+ type: number;
3
+ amount: number;
4
+ percentage: number;
5
+ description: string;
6
+ }
@@ -0,0 +1,7 @@
1
+ import IPointOfSaleSaveOrderProductExtra from "./IPointOfSaleSaveOrderProductExtra";
2
+ export default interface IPointOfSaleSaveOrderProduct {
3
+ productId: number;
4
+ quantity: number;
5
+ note: string;
6
+ extraItems: IPointOfSaleSaveOrderProductExtra[];
7
+ }
@@ -0,0 +1,7 @@
1
+ export default interface IPointOfSaleSaveOrderProductExtra {
2
+ id: number;
3
+ quantity: number;
4
+ pizzaSide: number;
5
+ priority: number;
6
+ extraItemOptionId: number;
7
+ }
@@ -0,0 +1,9 @@
1
+ export default interface IPointOfSaleRestaurantTable {
2
+ id: number;
3
+ title: string;
4
+ description: string;
5
+ locationType: number;
6
+ enabled: boolean;
7
+ imageName: string;
8
+ capacity: number;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.2.34",
3
+ "version": "1.2.36",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",