meemup-library 1.3.8 → 1.3.10

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,10 +1,33 @@
1
1
  export default interface IElavonDevicePaymentResponse {
2
- transactionStatus: string;
3
2
  transactionType: string;
4
- transactionAmount: number;
5
- tipAmount: number;
6
- invoiceNumber: string;
7
- hostResponseCode: string;
8
- hostResponseText?: string;
3
+ amount: string;
4
+ tipAmount: string;
5
+ date: string;
6
+ time: string;
7
+ transactionId: string;
8
+ terminalId: string;
9
+ additionalInfo: string;
10
+ transactionStatus: string;
11
+ cardType: string;
12
+ cardNumber: string;
13
+ merchantName: string;
14
+ approvalCode: string;
15
+ responseCode: string;
16
+ responseMessage: string;
17
+ traceNumber: string;
18
+ authTime: string;
19
+ merchantId: string;
20
+ accountId: string;
21
+ storeId: string;
22
+ companyName: string;
23
+ address: string;
24
+ cityState: string;
25
+ phone: string;
26
+ thankYouMessage: string;
27
+ cardholderAck: string;
28
+ serviceAck: string;
29
+ totalAck: string;
30
+ taxInfo: string;
31
+ encryptionInfo: string;
9
32
  }
10
33
  export declare const initElavonDevicePaymentResponse: IElavonDevicePaymentResponse;
@@ -1,9 +1,32 @@
1
1
  export const initElavonDevicePaymentResponse = {
2
- transactionStatus: "00",
3
- transactionType: "00",
4
- transactionAmount: 0,
5
- tipAmount: 0,
6
- invoiceNumber: "",
7
- hostResponseCode: "",
8
- hostResponseText: ""
2
+ transactionType: "",
3
+ amount: "",
4
+ tipAmount: "",
5
+ date: "",
6
+ time: "",
7
+ transactionId: "",
8
+ terminalId: "",
9
+ additionalInfo: "",
10
+ transactionStatus: "",
11
+ cardType: "",
12
+ cardNumber: "",
13
+ merchantName: "",
14
+ approvalCode: "",
15
+ responseCode: "",
16
+ responseMessage: "",
17
+ traceNumber: "",
18
+ authTime: "",
19
+ merchantId: "",
20
+ accountId: "",
21
+ storeId: "",
22
+ companyName: "",
23
+ address: "",
24
+ cityState: "",
25
+ phone: "",
26
+ thankYouMessage: "",
27
+ cardholderAck: "",
28
+ serviceAck: "",
29
+ totalAck: "",
30
+ taxInfo: "",
31
+ encryptionInfo: "",
9
32
  };
@@ -11,6 +11,7 @@ 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";
14
15
  interface IOrder {
15
16
  id: number;
16
17
  number: number;
@@ -85,6 +86,7 @@ interface IOrder {
85
86
  points: number;
86
87
  paymentTransactions: IOrderPayment[];
87
88
  elavonDevice: IPointOfSaleElavonTerminalDevice;
89
+ elavonTransaction: IElavonDevicePaymentResponse | null;
88
90
  }
89
91
  export default IOrder;
90
92
  export declare const initOrder: IOrder;
@@ -89,5 +89,6 @@ export const initOrder = {
89
89
  draftOrder: false,
90
90
  points: 0,
91
91
  paymentTransactions: [],
92
- elavonDevice: initPointOfSaleElavonTerminalDevice
92
+ elavonDevice: initPointOfSaleElavonTerminalDevice,
93
+ elavonTransaction: null
93
94
  };
@@ -1,3 +1,4 @@
1
+ import IElavonDevicePaymentResponse from "../elavon-device/IElavonDevicePaymentResponse";
1
2
  import ICalculateFeeResult from "../ICalculateFeeResult";
2
3
  import IOrderPayment from "./IOrderPayment";
3
4
  import IPointOfSaleSaveOrderCustomer from "./IPointOfSaleSaveOrderCustomer";
@@ -45,4 +46,5 @@ export default interface IPointOfSaleSaveOrder {
45
46
  draftOrder: boolean;
46
47
  points: number;
47
48
  paymentTransactions: null | IOrderPayment[];
49
+ elavonTransaction: IElavonDevicePaymentResponse | null;
48
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.3.8",
3
+ "version": "1.3.10",
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.8 \" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.3.10 \" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"