meemup-library 1.3.10 → 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.
- package/dist/enums/EnumExtraAvailableOptions.d.ts +7 -0
- package/dist/enums/EnumExtraAvailableOptions.js +8 -0
- package/dist/interfaces/order/IOrderPayment.d.ts +2 -0
- package/dist/interfaces/order/IPointOfSaleSaveOrder.d.ts +3 -3
- package/dist/options/ExtraAvailabeOptions.d.ts +2 -0
- package/dist/options/ExtraAvailabeOptions.js +7 -0
- package/package.json +2 -2
|
@@ -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:
|
|
49
|
-
|
|
48
|
+
paymentTransactions: IOrderPayment[] | null;
|
|
49
|
+
paymentMetaData: ITextValue[];
|
|
50
50
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.3.
|
|
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.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.3.12 \" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|