meemup-library 1.3.11 → 1.3.13
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/EnumElavonTenderType.d.ts +8 -0
- package/dist/enums/EnumElavonTenderType.js +9 -0
- package/dist/enums/EnumElavonTransactionCardType.d.ts +14 -0
- package/dist/enums/EnumElavonTransactionCardType.js +15 -0
- package/dist/enums/EnumElavonTransactionStatus.d.ts +18 -0
- package/dist/enums/EnumElavonTransactionStatus.js +23 -0
- package/dist/enums/EnumElavonTransactionType.d.ts +46 -0
- package/dist/enums/EnumElavonTransactionType.js +47 -0
- package/dist/enums/{EnumExtraAvailabeOptions.d.ts → EnumExtraAvailableOptions.d.ts} +2 -2
- 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 +1 -1
- package/dist/options/ExtraAvailabeOptions.js +6 -6
- package/package.json +2 -2
- package/dist/enums/EnumExtraAvailabeOptions.js +0 -8
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var EnumElavonTenderType;
|
|
2
|
+
(function (EnumElavonTenderType) {
|
|
3
|
+
EnumElavonTenderType["AllCardTypes"] = "0";
|
|
4
|
+
EnumElavonTenderType["Debit"] = "1";
|
|
5
|
+
EnumElavonTenderType["Credit"] = "2";
|
|
6
|
+
EnumElavonTenderType["Gift"] = "3";
|
|
7
|
+
EnumElavonTenderType["Cash"] = "7"; // Cash
|
|
8
|
+
})(EnumElavonTenderType || (EnumElavonTenderType = {}));
|
|
9
|
+
export default EnumElavonTenderType;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare enum EnumElavonTransactionCardType {
|
|
2
|
+
Debit = "00",
|
|
3
|
+
Visa = "01",
|
|
4
|
+
MasterCard = "02",
|
|
5
|
+
Amex = "03",
|
|
6
|
+
DinersClub = "04",
|
|
7
|
+
DiscoverCard = "05",
|
|
8
|
+
JCB = "06",
|
|
9
|
+
UnionPay = "07",
|
|
10
|
+
OtherCreditCard = "08",
|
|
11
|
+
GiftCard = "09",
|
|
12
|
+
Cash = "10"
|
|
13
|
+
}
|
|
14
|
+
export default EnumElavonTransactionCardType;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var EnumElavonTransactionCardType;
|
|
2
|
+
(function (EnumElavonTransactionCardType) {
|
|
3
|
+
EnumElavonTransactionCardType["Debit"] = "00";
|
|
4
|
+
EnumElavonTransactionCardType["Visa"] = "01";
|
|
5
|
+
EnumElavonTransactionCardType["MasterCard"] = "02";
|
|
6
|
+
EnumElavonTransactionCardType["Amex"] = "03";
|
|
7
|
+
EnumElavonTransactionCardType["DinersClub"] = "04";
|
|
8
|
+
EnumElavonTransactionCardType["DiscoverCard"] = "05";
|
|
9
|
+
EnumElavonTransactionCardType["JCB"] = "06";
|
|
10
|
+
EnumElavonTransactionCardType["UnionPay"] = "07";
|
|
11
|
+
EnumElavonTransactionCardType["OtherCreditCard"] = "08";
|
|
12
|
+
EnumElavonTransactionCardType["GiftCard"] = "09";
|
|
13
|
+
EnumElavonTransactionCardType["Cash"] = "10"; // Cash
|
|
14
|
+
})(EnumElavonTransactionCardType || (EnumElavonTransactionCardType = {}));
|
|
15
|
+
export default EnumElavonTransactionCardType;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare enum EnumElavonTransactionStatus {
|
|
2
|
+
Approved = "00",
|
|
3
|
+
PartialApproved = "01",
|
|
4
|
+
Declined = "10",
|
|
5
|
+
CommunicationError = "11",
|
|
6
|
+
CancelledByUser = "12",
|
|
7
|
+
TimedOutOnUserInput = "13",
|
|
8
|
+
TransactionNotCompleted = "14",
|
|
9
|
+
BatchEmpty = "15",
|
|
10
|
+
DeclinedByMerchant = "16",
|
|
11
|
+
RecordNotFound = "17",
|
|
12
|
+
TransactionAlreadyVoided = "18",
|
|
13
|
+
InvalidECRParameter = "30",
|
|
14
|
+
BatteryLow = "31",
|
|
15
|
+
CashDrawerSuccess = "40",
|
|
16
|
+
CashDrawerFailed = "41"
|
|
17
|
+
}
|
|
18
|
+
export default EnumElavonTransactionStatus;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var EnumElavonTransactionStatus;
|
|
2
|
+
(function (EnumElavonTransactionStatus) {
|
|
3
|
+
// Approved or Partial Approved
|
|
4
|
+
EnumElavonTransactionStatus["Approved"] = "00";
|
|
5
|
+
EnumElavonTransactionStatus["PartialApproved"] = "01";
|
|
6
|
+
// Declined or Not Completed
|
|
7
|
+
EnumElavonTransactionStatus["Declined"] = "10";
|
|
8
|
+
EnumElavonTransactionStatus["CommunicationError"] = "11";
|
|
9
|
+
EnumElavonTransactionStatus["CancelledByUser"] = "12";
|
|
10
|
+
EnumElavonTransactionStatus["TimedOutOnUserInput"] = "13";
|
|
11
|
+
EnumElavonTransactionStatus["TransactionNotCompleted"] = "14";
|
|
12
|
+
EnumElavonTransactionStatus["BatchEmpty"] = "15";
|
|
13
|
+
EnumElavonTransactionStatus["DeclinedByMerchant"] = "16";
|
|
14
|
+
EnumElavonTransactionStatus["RecordNotFound"] = "17";
|
|
15
|
+
EnumElavonTransactionStatus["TransactionAlreadyVoided"] = "18";
|
|
16
|
+
// ECR Request Rejected by Terminal
|
|
17
|
+
EnumElavonTransactionStatus["InvalidECRParameter"] = "30";
|
|
18
|
+
EnumElavonTransactionStatus["BatteryLow"] = "31";
|
|
19
|
+
// Cash Drawer Transaction Status
|
|
20
|
+
EnumElavonTransactionStatus["CashDrawerSuccess"] = "40";
|
|
21
|
+
EnumElavonTransactionStatus["CashDrawerFailed"] = "41"; // Failed
|
|
22
|
+
})(EnumElavonTransactionStatus || (EnumElavonTransactionStatus = {}));
|
|
23
|
+
export default EnumElavonTransactionStatus;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare enum EnumElavonTransactionType {
|
|
2
|
+
Sale = "00",
|
|
3
|
+
PreAuth = "01",
|
|
4
|
+
PreAuthCompletion = "02",
|
|
5
|
+
Refund = "03",
|
|
6
|
+
Force = "04",
|
|
7
|
+
Void = "05",
|
|
8
|
+
CardBalanceInquiry = "06",
|
|
9
|
+
AuthOnly = "07",
|
|
10
|
+
IncrementalAuth = "08",
|
|
11
|
+
ForcePreAuth = "09",
|
|
12
|
+
Settlement = "20",
|
|
13
|
+
AutoSettlement = "21",
|
|
14
|
+
ReprintReceipt = "22",
|
|
15
|
+
DetailReport = "30",
|
|
16
|
+
SummaryReport = "31",
|
|
17
|
+
EMVLastTransactionReport = "32",
|
|
18
|
+
ClerkSummaryReport = "33",
|
|
19
|
+
ParametersReport = "34",
|
|
20
|
+
OpenPreAuth = "35",
|
|
21
|
+
RecentError = "36",
|
|
22
|
+
ActivityReport = "37",
|
|
23
|
+
ClerkIDList = "38",
|
|
24
|
+
EMVParameters = "39",
|
|
25
|
+
EMVStatistic = "40",
|
|
26
|
+
EMVPublicKey = "41",
|
|
27
|
+
TerminalInfo = "42",
|
|
28
|
+
Issuance = "50",
|
|
29
|
+
Activation = "51",
|
|
30
|
+
BlockActivation = "52",
|
|
31
|
+
Redemption = "53",
|
|
32
|
+
AddTip = "54",
|
|
33
|
+
ForceIssuance = "55",
|
|
34
|
+
ForceActivation = "56",
|
|
35
|
+
ForceRedemption = "57",
|
|
36
|
+
Deactivation = "58",
|
|
37
|
+
BlockDeactivation = "59",
|
|
38
|
+
Reactivation = "60",
|
|
39
|
+
ZeroGiftCardBalance = "61",
|
|
40
|
+
BlockReactivation = "63",
|
|
41
|
+
CDStatus = "70",
|
|
42
|
+
CDOpen = "71",
|
|
43
|
+
CDCapability = "72",
|
|
44
|
+
PrintReceipt = "99"
|
|
45
|
+
}
|
|
46
|
+
export default EnumElavonTransactionType;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var EnumElavonTransactionType;
|
|
2
|
+
(function (EnumElavonTransactionType) {
|
|
3
|
+
EnumElavonTransactionType["Sale"] = "00";
|
|
4
|
+
EnumElavonTransactionType["PreAuth"] = "01";
|
|
5
|
+
EnumElavonTransactionType["PreAuthCompletion"] = "02";
|
|
6
|
+
EnumElavonTransactionType["Refund"] = "03";
|
|
7
|
+
EnumElavonTransactionType["Force"] = "04";
|
|
8
|
+
EnumElavonTransactionType["Void"] = "05";
|
|
9
|
+
EnumElavonTransactionType["CardBalanceInquiry"] = "06";
|
|
10
|
+
EnumElavonTransactionType["AuthOnly"] = "07";
|
|
11
|
+
EnumElavonTransactionType["IncrementalAuth"] = "08";
|
|
12
|
+
EnumElavonTransactionType["ForcePreAuth"] = "09";
|
|
13
|
+
EnumElavonTransactionType["Settlement"] = "20";
|
|
14
|
+
EnumElavonTransactionType["AutoSettlement"] = "21";
|
|
15
|
+
EnumElavonTransactionType["ReprintReceipt"] = "22";
|
|
16
|
+
EnumElavonTransactionType["DetailReport"] = "30";
|
|
17
|
+
EnumElavonTransactionType["SummaryReport"] = "31";
|
|
18
|
+
EnumElavonTransactionType["EMVLastTransactionReport"] = "32";
|
|
19
|
+
EnumElavonTransactionType["ClerkSummaryReport"] = "33";
|
|
20
|
+
EnumElavonTransactionType["ParametersReport"] = "34";
|
|
21
|
+
EnumElavonTransactionType["OpenPreAuth"] = "35";
|
|
22
|
+
EnumElavonTransactionType["RecentError"] = "36";
|
|
23
|
+
EnumElavonTransactionType["ActivityReport"] = "37";
|
|
24
|
+
EnumElavonTransactionType["ClerkIDList"] = "38";
|
|
25
|
+
EnumElavonTransactionType["EMVParameters"] = "39";
|
|
26
|
+
EnumElavonTransactionType["EMVStatistic"] = "40";
|
|
27
|
+
EnumElavonTransactionType["EMVPublicKey"] = "41";
|
|
28
|
+
EnumElavonTransactionType["TerminalInfo"] = "42";
|
|
29
|
+
EnumElavonTransactionType["Issuance"] = "50";
|
|
30
|
+
EnumElavonTransactionType["Activation"] = "51";
|
|
31
|
+
EnumElavonTransactionType["BlockActivation"] = "52";
|
|
32
|
+
EnumElavonTransactionType["Redemption"] = "53";
|
|
33
|
+
EnumElavonTransactionType["AddTip"] = "54";
|
|
34
|
+
EnumElavonTransactionType["ForceIssuance"] = "55";
|
|
35
|
+
EnumElavonTransactionType["ForceActivation"] = "56";
|
|
36
|
+
EnumElavonTransactionType["ForceRedemption"] = "57";
|
|
37
|
+
EnumElavonTransactionType["Deactivation"] = "58";
|
|
38
|
+
EnumElavonTransactionType["BlockDeactivation"] = "59";
|
|
39
|
+
EnumElavonTransactionType["Reactivation"] = "60";
|
|
40
|
+
EnumElavonTransactionType["ZeroGiftCardBalance"] = "61";
|
|
41
|
+
EnumElavonTransactionType["BlockReactivation"] = "63";
|
|
42
|
+
EnumElavonTransactionType["CDStatus"] = "70";
|
|
43
|
+
EnumElavonTransactionType["CDOpen"] = "71";
|
|
44
|
+
EnumElavonTransactionType["CDCapability"] = "72";
|
|
45
|
+
EnumElavonTransactionType["PrintReceipt"] = "99"; // Print Receipt
|
|
46
|
+
})(EnumElavonTransactionType || (EnumElavonTransactionType = {}));
|
|
47
|
+
export default EnumElavonTransactionType;
|
|
@@ -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
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import ITextValue from "../interfaces/ITextValue";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ExtraAvailableOptions: ITextValue[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
export const
|
|
3
|
-
{ text: "(don't show)", value:
|
|
4
|
-
{ text: "shop/app and POS", value:
|
|
5
|
-
{ text: "shop/app only", value:
|
|
6
|
-
{ text: "POS only", value:
|
|
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.
|
|
3
|
+
"version": "1.3.13",
|
|
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.13 \" && 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;
|