meemup-library 1.3.12 → 1.3.14

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.
@@ -0,0 +1,8 @@
1
+ declare enum EnumElavonTenderType {
2
+ AllCardTypes = "0",
3
+ Debit = "1",
4
+ Credit = "2",
5
+ Gift = "3",
6
+ Cash = "7"
7
+ }
8
+ export default EnumElavonTenderType;
@@ -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;
@@ -11,7 +11,6 @@ import IOrderDetails from "../print/IOrderDetails";
11
11
  import EnumPickupInstruction from "../../enums/EnumPickupInstruction";
12
12
  import IOrderPayment from "./IOrderPayment";
13
13
  import IPointOfSaleElavonTerminalDevice from "../pos/IPointOfSaleElavonTerminalDevice";
14
- import IElavonDevicePaymentResponse from "../elavon-device/IElavonDevicePaymentResponse";
15
14
  interface IOrder {
16
15
  id: number;
17
16
  number: number;
@@ -86,7 +85,7 @@ interface IOrder {
86
85
  points: number;
87
86
  paymentTransactions: IOrderPayment[];
88
87
  elavonDevice: IPointOfSaleElavonTerminalDevice;
89
- elavonTransaction: IElavonDevicePaymentResponse | null;
88
+ elavonTransaction: object | null;
90
89
  }
91
90
  export default IOrder;
92
91
  export declare const initOrder: IOrder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.3.12",
3
+ "version": "1.3.14",
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.12 \" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.3.14 \" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"