meemup-library 1.2.36 → 1.2.38

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.
@@ -7,6 +7,9 @@ declare enum EnumPaymentType {
7
7
  googlePay = 5,
8
8
  wallet = 6,
9
9
  giftCards = 7,
10
- terminal = 8
10
+ terminal = 8,
11
+ tapToPay = 9,
12
+ debitMachine = 10,
13
+ splitPayments = 11
11
14
  }
12
15
  export default EnumPaymentType;
@@ -9,5 +9,8 @@ var EnumPaymentType;
9
9
  EnumPaymentType[EnumPaymentType["wallet"] = 6] = "wallet";
10
10
  EnumPaymentType[EnumPaymentType["giftCards"] = 7] = "giftCards";
11
11
  EnumPaymentType[EnumPaymentType["terminal"] = 8] = "terminal";
12
+ EnumPaymentType[EnumPaymentType["tapToPay"] = 9] = "tapToPay";
13
+ EnumPaymentType[EnumPaymentType["debitMachine"] = 10] = "debitMachine";
14
+ EnumPaymentType[EnumPaymentType["splitPayments"] = 11] = "splitPayments";
12
15
  })(EnumPaymentType || (EnumPaymentType = {}));
13
16
  export default EnumPaymentType;
@@ -1,6 +1,9 @@
1
1
  import EnumPaymentType from "../../enums/EnumPaymentType";
2
2
  export default interface IOrderPayment {
3
+ id: number;
4
+ dateTime: string;
5
+ paymentType: EnumPaymentType;
3
6
  amount: number;
4
- type: EnumPaymentType;
5
- done: boolean;
7
+ refunded: number;
8
+ remaining: number;
6
9
  }
@@ -13,6 +13,8 @@ import ITextValue from "../ITextValue";
13
13
  import IZone from "../IZone";
14
14
  import IPointOfSaleRole from "./IPointOfSaleRole";
15
15
  import IPointOfSaleTeamMember from "./IPointOfSaleTeamMember";
16
+ import IPointOfSaleLocalSetting from "../IPointOfSaleLocalSetting";
17
+ import IPointOfSaleRestaurantTable from "./IPointOfSaleRestaurantTable";
16
18
  interface IPointOfSaleApiShop {
17
19
  ok: boolean;
18
20
  products: IProduct[];
@@ -31,6 +33,8 @@ interface IPointOfSaleApiShop {
31
33
  members: IPointOfSaleTeamMember[];
32
34
  roles: IPointOfSaleRole[];
33
35
  discounts: IPointOfSaleDiscount[];
36
+ localSetting: IPointOfSaleLocalSetting;
37
+ restaurantTables: IPointOfSaleRestaurantTable[];
34
38
  }
35
39
  export default IPointOfSaleApiShop;
36
40
  export declare const initApiShop: IPointOfSaleApiShop;
@@ -1,6 +1,7 @@
1
1
  import { initGeneralInformation } from "../IGeneralInformation";
2
2
  import { initGeneralItems } from "../IGeneralItems";
3
3
  import { initPointOfSaleSetting } from "../IPointOfSaleSetting";
4
+ import { initPointOfSaleLocalSetting } from "../IPointOfSaleLocalSetting";
4
5
  export const initApiShop = {
5
6
  ok: false,
6
7
  extras: [],
@@ -18,5 +19,7 @@ export const initApiShop = {
18
19
  orderStates: [],
19
20
  members: [],
20
21
  roles: [],
21
- discounts: []
22
+ discounts: [],
23
+ localSetting: initPointOfSaleLocalSetting,
24
+ restaurantTables: []
22
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.2.36",
3
+ "version": "1.2.38",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",