meemup-library 1.3.11 → 1.3.12

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.
@@ -1,7 +1,7 @@
1
- declare enum EnumExtraAvailabeOptions {
1
+ declare enum EnumExtraAvailableOptions {
2
2
  ONLINE_STORE_AND_POS = 1,
3
3
  ONLINE_STORE_ONLY = 2,
4
4
  POS_ONLY = 3,
5
5
  DONT_SHOW = 4
6
6
  }
7
- export default EnumExtraAvailabeOptions;
7
+ export default EnumExtraAvailableOptions;
@@ -0,0 +1,8 @@
1
+ var EnumExtraAvailableOptions;
2
+ (function (EnumExtraAvailableOptions) {
3
+ EnumExtraAvailableOptions[EnumExtraAvailableOptions["ONLINE_STORE_AND_POS"] = 1] = "ONLINE_STORE_AND_POS";
4
+ EnumExtraAvailableOptions[EnumExtraAvailableOptions["ONLINE_STORE_ONLY"] = 2] = "ONLINE_STORE_ONLY";
5
+ EnumExtraAvailableOptions[EnumExtraAvailableOptions["POS_ONLY"] = 3] = "POS_ONLY";
6
+ EnumExtraAvailableOptions[EnumExtraAvailableOptions["DONT_SHOW"] = 4] = "DONT_SHOW";
7
+ })(EnumExtraAvailableOptions || (EnumExtraAvailableOptions = {}));
8
+ export default EnumExtraAvailableOptions;
@@ -1,4 +1,5 @@
1
1
  import EnumPaymentType from "../../enums/EnumPaymentType";
2
+ import IElavonDevicePaymentResponse from "../elavon-device/IElavonDevicePaymentResponse";
2
3
  export default interface IOrderPayment {
3
4
  id: number;
4
5
  dateTime: string;
@@ -9,6 +10,7 @@ export default interface IOrderPayment {
9
10
  done: boolean;
10
11
  payWithCashAmount: number;
11
12
  uuid: string;
13
+ data: IElavonDevicePaymentResponse | null;
12
14
  oldId?: number;
13
15
  refundAmount?: number;
14
16
  }
@@ -1,5 +1,5 @@
1
- import IElavonDevicePaymentResponse from "../elavon-device/IElavonDevicePaymentResponse";
2
1
  import ICalculateFeeResult from "../ICalculateFeeResult";
2
+ import ITextValue from "../ITextValue";
3
3
  import IOrderPayment from "./IOrderPayment";
4
4
  import IPointOfSaleSaveOrderCustomer from "./IPointOfSaleSaveOrderCustomer";
5
5
  import IPointOfSaleSaveOrderDiscount from "./IPointOfSaleSaveOrderDiscount";
@@ -45,6 +45,6 @@ export default interface IPointOfSaleSaveOrder {
45
45
  openOrder: boolean;
46
46
  draftOrder: boolean;
47
47
  points: number;
48
- paymentTransactions: null | IOrderPayment[];
49
- elavonTransaction: IElavonDevicePaymentResponse | null;
48
+ paymentTransactions: IOrderPayment[] | null;
49
+ paymentMetaData: ITextValue[];
50
50
  }
@@ -1,2 +1,2 @@
1
1
  import ITextValue from "../interfaces/ITextValue";
2
- export declare const ExtraAvailabeOptions: ITextValue[];
2
+ export declare const ExtraAvailableOptions: ITextValue[];
@@ -1,7 +1,7 @@
1
- import EnumExtraAvailabeOptions from "../enums/EnumExtraAvailabeOptions";
2
- export const ExtraAvailabeOptions = [
3
- { text: "(don't show)", value: EnumExtraAvailabeOptions.DONT_SHOW },
4
- { text: "shop/app and POS", value: EnumExtraAvailabeOptions.ONLINE_STORE_AND_POS },
5
- { text: "shop/app only", value: EnumExtraAvailabeOptions.ONLINE_STORE_ONLY },
6
- { text: "POS only", value: EnumExtraAvailabeOptions.POS_ONLY },
1
+ import EnumExtraAvailableOptions from "../enums/EnumExtraAvailableOptions";
2
+ export const ExtraAvailableOptions = [
3
+ { text: "(don't show)", value: EnumExtraAvailableOptions.DONT_SHOW },
4
+ { text: "shop/app and POS", value: EnumExtraAvailableOptions.ONLINE_STORE_AND_POS },
5
+ { text: "shop/app only", value: EnumExtraAvailableOptions.ONLINE_STORE_ONLY },
6
+ { text: "POS only", value: EnumExtraAvailableOptions.POS_ONLY },
7
7
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.3.11",
3
+ "version": "1.3.12",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "remove:one": "rimraf dist",
12
12
  "remove:two": "rimraf ./src/dist",
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "commit": "git add . && git commit -m \"version.1.3.11 \" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.3.12 \" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"
@@ -1,8 +0,0 @@
1
- var EnumExtraAvailabeOptions;
2
- (function (EnumExtraAvailabeOptions) {
3
- EnumExtraAvailabeOptions[EnumExtraAvailabeOptions["ONLINE_STORE_AND_POS"] = 1] = "ONLINE_STORE_AND_POS";
4
- EnumExtraAvailabeOptions[EnumExtraAvailabeOptions["ONLINE_STORE_ONLY"] = 2] = "ONLINE_STORE_ONLY";
5
- EnumExtraAvailabeOptions[EnumExtraAvailabeOptions["POS_ONLY"] = 3] = "POS_ONLY";
6
- EnumExtraAvailabeOptions[EnumExtraAvailabeOptions["DONT_SHOW"] = 4] = "DONT_SHOW";
7
- })(EnumExtraAvailabeOptions || (EnumExtraAvailabeOptions = {}));
8
- export default EnumExtraAvailabeOptions;