@aptos-scp/scp-component-rn-device-services 0.0.2 → 0.0.4-hm
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/android/src/main/java/com/aptos/scp/paymentterminal/adyen/AdyenPaymentTerminal.java +69 -0
- package/ios/AurusEnterpriseSDK.framework/AurusEnterpriseSDK +0 -0
- package/ios/AurusEnterpriseSDK.framework/Headers/AurusEnterpriseSDK.h +97 -95
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/Info.plist +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/VersionInfo.plist +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.2.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.3.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.4.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.4.omo +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.8.6.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.9.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit.mom +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAccountData.h +26 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAdditionalDataRequest.h +38 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAmount.h +16 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAppData.h +26 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYBalance.h +13 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYCashTransactionRequest.h +35 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYConstants.h +688 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYCurrency.h +33 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDevice.h +308 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDeviceData.h +52 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDeviceManagerDelegate.h +66 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDeviceRegistry.h +125 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDynamicCurrencyConversionData.h +22 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYErrors.h +153 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCard.h +41 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardBalanceRequest.h +50 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardBalanceResponse.h +38 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardLoadRequest.h +78 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardLoadRequestDelegate.h +25 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardLoadResponse.h +31 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardMask.h +31 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardRequest.h +13 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYLocationManager.h +14 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYLoginDelegate.h +80 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYPrintReceiptRequest.h +57 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYReceipt.h +33 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYReceiptLine.h +92 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYReferralRequest.h +16 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYRefundData.h +54 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYServerSynchronization.h +18 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYSignatureRequest.h +117 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYSpecialTransactionRequest.h +63 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYToneGenerator.h +45 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionData.h +416 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionDetails.h +45 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionProcessorDelegate.h +279 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionRequest.h +108 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYUIKit.h +30 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/Adyen.h +591 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/AdyenToolkit-umbrella.h +59 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/AdyenToolkit.h +79 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/NSData+ADY.h +31 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/NSString+ADY.h +19 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/adylog.h +176 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Info.plist +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Modules/module.modulemap +6 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenConstants.h +40 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenConstants.m +28 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenDelegate.h +23 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenDelegate.m +15 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenDeviceManagerDelegate.h +19 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenDeviceManagerDelegate.m +31 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenLoginDelegate.h +19 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenLoginDelegate.m +26 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenTransactionProcessorDelegate.h +26 -0
- package/ios/SCPRNDeviceServices/Adyen/AdyenTransactionProcessorDelegate.m +148 -0
- package/ios/SCPRNDeviceServices/AdyenPaymentTerminal.h +19 -0
- package/ios/SCPRNDeviceServices/AdyenPaymentTerminal.m +457 -22
- package/ios/SCPRNDeviceServices/AurusPaymentTerminal.m +96 -11
- package/ios/SCPRNDeviceServices/VendorPaymentTerminal.m +1 -1
- package/ios/SCPRNDeviceServices.xcodeproj/project.pbxproj +56 -0
- package/lib/AdyenDevice/AdyenDevice.d.ts +56 -0
- package/lib/AdyenDevice/AdyenDevice.js +349 -0
- package/lib/AdyenDevice/AdyenDevice.js.map +1 -0
- package/lib/AdyenDevice/constants.d.ts +12 -0
- package/lib/AdyenDevice/constants.js +228 -0
- package/lib/AdyenDevice/constants.js.map +1 -0
- package/lib/AdyenDevice/index.d.ts +1 -0
- package/lib/AdyenDevice/index.js +7 -0
- package/lib/AdyenDevice/index.js.map +1 -0
- package/lib/AdyenDevice/interfaces.d.ts +175 -0
- package/lib/AdyenDevice/interfaces.js +3 -0
- package/lib/AdyenDevice/interfaces.js.map +1 -0
- package/lib/AurusDevice/AurusDevice.d.ts +102 -0
- package/lib/AurusDevice/AurusDevice.js +730 -0
- package/lib/AurusDevice/AurusDevice.js.map +1 -0
- package/lib/AurusDevice/constants.d.ts +85 -33
- package/lib/AurusDevice/constants.js +115 -37
- package/lib/AurusDevice/constants.js.map +1 -1
- package/lib/AurusDevice/index.d.ts +1 -1
- package/lib/AurusDevice/index.js +1 -1
- package/lib/AurusDevice/index.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/AESDKRegistration.d.ts +10 -9
- package/lib/AurusDevice/sdk-interface/AESDKRegistration.js +0 -6
- package/lib/AurusDevice/sdk-interface/AESDKRegistration.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/AurusPaymentSupport.d.ts +5 -5
- package/lib/AurusDevice/sdk-interface/AurusPaymentSupport.js +143 -107
- package/lib/AurusDevice/sdk-interface/AurusPaymentSupport.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/Barcode.d.ts +16 -0
- package/lib/AurusDevice/sdk-interface/Barcode.js +3 -0
- package/lib/AurusDevice/sdk-interface/Barcode.js.map +1 -0
- package/lib/AurusDevice/sdk-interface/ByPassScreen.d.ts +25 -0
- package/lib/AurusDevice/sdk-interface/ByPassScreen.js +9 -0
- package/lib/AurusDevice/sdk-interface/ByPassScreen.js.map +1 -0
- package/lib/AurusDevice/sdk-interface/CancelTransaction.d.ts +11 -10
- package/lib/AurusDevice/sdk-interface/CancelTransaction.js +0 -6
- package/lib/AurusDevice/sdk-interface/CancelTransaction.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/GetCardBinRequest.d.ts +14 -12
- package/lib/AurusDevice/sdk-interface/PLCCApplication.d.ts +12 -11
- package/lib/AurusDevice/sdk-interface/PLCCApplication.js +0 -6
- package/lib/AurusDevice/sdk-interface/PLCCApplication.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/TransactionRequest.d.ts +44 -48
- package/lib/AurusDevice/sdk-interface/TransactionRequest.js +0 -6
- package/lib/AurusDevice/sdk-interface/TransactionRequest.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/Upgrade.d.ts +23 -0
- package/lib/AurusDevice/sdk-interface/Upgrade.js +9 -0
- package/lib/AurusDevice/sdk-interface/Upgrade.js.map +1 -0
- package/lib/AurusDevice/sdk-interface/XmlElementString.d.ts +3 -0
- package/lib/AurusDevice/sdk-interface/XmlElementString.js +3 -0
- package/lib/AurusDevice/sdk-interface/XmlElementString.js.map +1 -0
- package/lib/AurusDevice/sdk-interface/index.d.ts +3 -0
- package/lib/PaymentDeviceFactory.d.ts +5 -5
- package/lib/PaymentDeviceFactory.js +16 -22
- package/lib/PaymentDeviceFactory.js.map +1 -1
- package/lib/PaymentDeviceService.d.ts +13 -12
- package/lib/PaymentDeviceService.js +114 -71
- package/lib/PaymentDeviceService.js.map +1 -1
- package/lib/ScannerDeviceFactory.d.ts +11 -0
- package/lib/ScannerDeviceFactory.js +27 -0
- package/lib/ScannerDeviceFactory.js.map +1 -0
- package/lib/ScannerDeviceService.d.ts +13 -0
- package/lib/ScannerDeviceService.js +110 -0
- package/lib/ScannerDeviceService.js.map +1 -0
- package/lib/configs/inversify/inversify.config.d.ts +3 -0
- package/lib/configs/inversify/inversify.config.js +15 -0
- package/lib/configs/inversify/inversify.config.js.map +1 -0
- package/lib/constants/constants.d.ts +62 -38
- package/lib/constants/constants.js +64 -42
- package/lib/constants/constants.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/interfaces/IDeviceStatus.d.ts +1 -0
- package/lib/interfaces/index.d.ts +1 -0
- package/lib/interfaces/payment/IPayment.d.ts +17 -18
- package/lib/interfaces/payment/messages/requests.d.ts +2 -3
- package/lib/interfaces/payment/messages/responses.d.ts +13 -6
- package/lib/interfaces/scanner/IScanner.d.ts +23 -0
- package/lib/interfaces/scanner/IScanner.js +3 -0
- package/lib/interfaces/scanner/IScanner.js.map +1 -0
- package/lib/interfaces/scanner/index.d.ts +1 -0
- package/lib/interfaces/scanner/index.js +3 -0
- package/lib/interfaces/scanner/index.js.map +1 -0
- package/package.json +11 -9
- package/types/react-native-xml2js/index.d.ts +5 -0
- package/lib/AurusDevice/AurusPaymentDevice.d.ts +0 -77
- package/lib/AurusDevice/AurusPaymentDevice.js +0 -473
- package/lib/AurusDevice/AurusPaymentDevice.js.map +0 -1
- package/types/money-works/index.d.ts +0 -49
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Please ensure this is followed going forward.
|
|
6
6
|
*/
|
|
7
|
+
import { XmlElementString } from "./XmlElementString";
|
|
7
8
|
export interface IPLCCApplication {
|
|
8
9
|
PLCCApplicationRequest?: IPLCCApplicationRequest;
|
|
9
10
|
IPLCCApplicationResponse?: IPLCCApplicationResponse;
|
|
@@ -50,15 +51,15 @@ export interface IPLCCApplicationRequest {
|
|
|
50
51
|
ClerkID?: string;
|
|
51
52
|
}
|
|
52
53
|
export interface IPLCCApplicationResponse {
|
|
53
|
-
POSID?:
|
|
54
|
-
APPID?:
|
|
55
|
-
CCTID?:
|
|
56
|
-
Header?:
|
|
57
|
-
ResponseCode?:
|
|
58
|
-
ResponseText?:
|
|
59
|
-
ReferenceNum?:
|
|
60
|
-
ApprovedCreditLimit?:
|
|
61
|
-
SecondaryCardValidatonResultCode?:
|
|
62
|
-
PLCCResultCode?:
|
|
63
|
-
PLCCResultMessage?:
|
|
54
|
+
POSID?: XmlElementString;
|
|
55
|
+
APPID?: XmlElementString;
|
|
56
|
+
CCTID?: XmlElementString;
|
|
57
|
+
Header?: XmlElementString;
|
|
58
|
+
ResponseCode?: XmlElementString;
|
|
59
|
+
ResponseText?: XmlElementString;
|
|
60
|
+
ReferenceNum?: XmlElementString;
|
|
61
|
+
ApprovedCreditLimit?: XmlElementString;
|
|
62
|
+
SecondaryCardValidatonResultCode?: XmlElementString;
|
|
63
|
+
PLCCResultCode?: XmlElementString;
|
|
64
|
+
PLCCResultMessage?: XmlElementString;
|
|
64
65
|
}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* In order to keep code clean, clear and expedite building request xmls for
|
|
4
|
-
* Aurus, all fields naming follow their documented api format.
|
|
5
|
-
*
|
|
6
|
-
* Please ensure this is followed going forward.
|
|
7
|
-
*/
|
|
8
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
3
|
//# sourceMappingURL=PLCCApplication.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PLCCApplication.js","sourceRoot":"","sources":["../../../src/AurusDevice/sdk-interface/PLCCApplication.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PLCCApplication.js","sourceRoot":"","sources":["../../../src/AurusDevice/sdk-interface/PLCCApplication.ts"],"names":[],"mappings":""}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Please ensure this is followed going forward.
|
|
6
6
|
*/
|
|
7
|
+
import { XmlElementString } from "./XmlElementString";
|
|
7
8
|
export interface ITransaction {
|
|
8
9
|
TransRequest?: ITranRequest;
|
|
9
10
|
TransResponse?: ITranResponse;
|
|
@@ -23,7 +24,6 @@ export interface ITranRequest {
|
|
|
23
24
|
KeyedEntryReasonCode?: string;
|
|
24
25
|
GiftPurchaseAuthIndicator?: string;
|
|
25
26
|
TransAmountDetails?: ITransAmountDetails;
|
|
26
|
-
GiftCardList?: IGiftCardList;
|
|
27
27
|
TransactionType?: string;
|
|
28
28
|
InvoiceNumber?: string;
|
|
29
29
|
ReceiptNumber?: string;
|
|
@@ -57,13 +57,8 @@ export interface ITranRequest {
|
|
|
57
57
|
PLCCPaymentMethod?: string;
|
|
58
58
|
Reserved1?: string;
|
|
59
59
|
Reserver2?: string;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
GiftCard?: IGiftCard[];
|
|
63
|
-
}
|
|
64
|
-
export interface IGiftCard {
|
|
65
|
-
GiftCardNumber?: string;
|
|
66
|
-
Amount?: string;
|
|
60
|
+
EnableNFCReader?: string;
|
|
61
|
+
ProcessingMode?: string;
|
|
67
62
|
}
|
|
68
63
|
export interface ITransAmountDetails {
|
|
69
64
|
ServicesTotalAmount?: string;
|
|
@@ -73,43 +68,44 @@ export interface ITransAmountDetails {
|
|
|
73
68
|
TransactionTotal?: string;
|
|
74
69
|
}
|
|
75
70
|
export interface ITransDetailsData {
|
|
76
|
-
TransDetailData?: ITransDetailData
|
|
71
|
+
TransDetailData?: ITransDetailData;
|
|
77
72
|
}
|
|
78
73
|
export interface ITransDetailData {
|
|
79
|
-
CardNumber?:
|
|
80
|
-
CardType?:
|
|
81
|
-
CardEntryMode?:
|
|
82
|
-
TransactionAmount?:
|
|
83
|
-
TipAmount?:
|
|
84
|
-
TransactionIdentifier?:
|
|
85
|
-
ResponseCode?:
|
|
86
|
-
TransactionResponseText?:
|
|
87
|
-
ApprovalCode?:
|
|
88
|
-
BalanceAmount?:
|
|
89
|
-
AuthAVSResult?:
|
|
90
|
-
TransactionSequenceNumber?:
|
|
91
|
-
CardExpiryDate?:
|
|
92
|
-
CustomerName?:
|
|
93
|
-
CustomerTokenNumber?:
|
|
94
|
-
SignatureReceiptFlag?:
|
|
74
|
+
CardNumber?: XmlElementString;
|
|
75
|
+
CardType?: XmlElementString;
|
|
76
|
+
CardEntryMode?: XmlElementString;
|
|
77
|
+
TransactionAmount?: XmlElementString;
|
|
78
|
+
TipAmount?: XmlElementString;
|
|
79
|
+
TransactionIdentifier?: XmlElementString;
|
|
80
|
+
ResponseCode?: XmlElementString;
|
|
81
|
+
TransactionResponseText?: XmlElementString;
|
|
82
|
+
ApprovalCode?: XmlElementString;
|
|
83
|
+
BalanceAmount?: XmlElementString;
|
|
84
|
+
AuthAVSResult?: XmlElementString;
|
|
85
|
+
TransactionSequenceNumber?: XmlElementString;
|
|
86
|
+
CardExpiryDate?: XmlElementString;
|
|
87
|
+
CustomerName?: XmlElementString;
|
|
88
|
+
CustomerTokenNumber?: XmlElementString;
|
|
89
|
+
SignatureReceiptFlag?: XmlElementString;
|
|
95
90
|
EMVFlag?: number;
|
|
96
|
-
EMVData?:
|
|
97
|
-
VoidData?:
|
|
91
|
+
EMVData?: XmlElementString;
|
|
92
|
+
VoidData?: XmlElementString;
|
|
98
93
|
LoyaltyInfo?: ILoyaltyInfo;
|
|
99
|
-
ReferralNUM?:
|
|
100
|
-
ReferralDialInformation?:
|
|
101
|
-
OpenToPayCash?:
|
|
102
|
-
OpenToBuy?:
|
|
103
|
-
ProcessorResponseCode?:
|
|
104
|
-
ProcessorMerchantId?:
|
|
105
|
-
IsFallback?:
|
|
106
|
-
Reserved1?:
|
|
94
|
+
ReferralNUM?: XmlElementString;
|
|
95
|
+
ReferralDialInformation?: XmlElementString;
|
|
96
|
+
OpenToPayCash?: XmlElementString;
|
|
97
|
+
OpenToBuy?: XmlElementString;
|
|
98
|
+
ProcessorResponseCode?: XmlElementString;
|
|
99
|
+
ProcessorMerchantId?: XmlElementString;
|
|
100
|
+
IsFallback?: XmlElementString;
|
|
101
|
+
Reserved1?: XmlElementString;
|
|
102
|
+
AdditionalReceiptInfo?: XmlElementString;
|
|
107
103
|
}
|
|
108
104
|
export interface ILoyaltyInfo {
|
|
109
|
-
Usepoints?:
|
|
110
|
-
BalancePoint?:
|
|
111
|
-
Expiry?:
|
|
112
|
-
LoyaltyLevel?:
|
|
105
|
+
Usepoints?: XmlElementString;
|
|
106
|
+
BalancePoint?: XmlElementString;
|
|
107
|
+
Expiry?: XmlElementString;
|
|
108
|
+
LoyaltyLevel?: XmlElementString;
|
|
113
109
|
}
|
|
114
110
|
export interface ICustomerInfoValidation {
|
|
115
111
|
ValidateEmail?: string;
|
|
@@ -119,15 +115,15 @@ export interface ICustomerInfoValidation {
|
|
|
119
115
|
Reserved2?: string;
|
|
120
116
|
}
|
|
121
117
|
export interface ITranResponse {
|
|
122
|
-
POSID?:
|
|
123
|
-
APPID?:
|
|
124
|
-
CCTID?:
|
|
125
|
-
TransDetailsData?: ITransDetailsData
|
|
126
|
-
BatchNumber?:
|
|
127
|
-
AurusPayTicketNum?:
|
|
128
|
-
FirmwareUpgradeAvailable?:
|
|
129
|
-
POSTID?:
|
|
130
|
-
IsFallback?:
|
|
118
|
+
POSID?: XmlElementString;
|
|
119
|
+
APPID?: XmlElementString;
|
|
120
|
+
CCTID?: XmlElementString;
|
|
121
|
+
TransDetailsData?: ITransDetailsData;
|
|
122
|
+
BatchNumber?: XmlElementString;
|
|
123
|
+
AurusPayTicketNum?: XmlElementString;
|
|
124
|
+
FirmwareUpgradeAvailable?: XmlElementString;
|
|
125
|
+
POSTID?: XmlElementString;
|
|
126
|
+
IsFallback?: XmlElementString;
|
|
131
127
|
}
|
|
132
128
|
export interface IBillingAddress {
|
|
133
129
|
BillingName?: string;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* In order to keep code clean, clear and expedite building request xmls for
|
|
4
|
-
* Aurus, all fields naming follow their documented api format.
|
|
5
|
-
*
|
|
6
|
-
* Please ensure this is followed going forward.
|
|
7
|
-
*/
|
|
8
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
3
|
//# sourceMappingURL=TransactionRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionRequest.js","sourceRoot":"","sources":["../../../src/AurusDevice/sdk-interface/TransactionRequest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TransactionRequest.js","sourceRoot":"","sources":["../../../src/AurusDevice/sdk-interface/TransactionRequest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* In order to keep code clean, clear and expedite building request xmls for
|
|
3
|
+
* Aurus, all fields naming follow their documented api format.
|
|
4
|
+
*
|
|
5
|
+
* Please ensure this is followed going forward.
|
|
6
|
+
*/
|
|
7
|
+
import { XmlElementString } from "./XmlElementString";
|
|
8
|
+
export interface IUpgrade {
|
|
9
|
+
UpgradeRequest?: IUpgradeRequest;
|
|
10
|
+
UpgradeResponse?: IUpgradeResponse;
|
|
11
|
+
}
|
|
12
|
+
export interface IUpgradeRequest {
|
|
13
|
+
POSID?: string;
|
|
14
|
+
APPID?: string;
|
|
15
|
+
UpgradeType?: string;
|
|
16
|
+
ClerkID?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IUpgradeResponse {
|
|
19
|
+
POSID?: XmlElementString;
|
|
20
|
+
APPID?: XmlElementString;
|
|
21
|
+
ResponseCode?: XmlElementString;
|
|
22
|
+
ResponseText?: XmlElementString;
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* In order to keep code clean, clear and expedite building request xmls for
|
|
4
|
+
* Aurus, all fields naming follow their documented api format.
|
|
5
|
+
*
|
|
6
|
+
* Please ensure this is followed going forward.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
//# sourceMappingURL=Upgrade.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Upgrade.js","sourceRoot":"","sources":["../../../src/AurusDevice/sdk-interface/Upgrade.ts"],"names":[],"mappings":";AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XmlElementString.js","sourceRoot":"","sources":["../../../src/AurusDevice/sdk-interface/XmlElementString.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./AESDKRegistration";
|
|
2
2
|
export * from "./AurusPaymentSupport";
|
|
3
|
+
export * from "./Barcode";
|
|
4
|
+
export * from "./ByPassScreen";
|
|
3
5
|
export * from "./CancelTransaction";
|
|
4
6
|
export * from "./GetCardBinRequest";
|
|
5
7
|
export * from "./PLCCApplication";
|
|
6
8
|
export * from "./TransactionRequest";
|
|
9
|
+
export * from "./Upgrade";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EventEmitter } from "fbemitter";
|
|
2
|
-
import {
|
|
2
|
+
import { IVendorPaymentDevice } from "./interfaces/payment/IPayment";
|
|
3
3
|
/**
|
|
4
|
-
* The create method is used to create an instance of
|
|
4
|
+
* The create method is used to create an instance of vendorClass matching IPaymentDeviceService. It hides the
|
|
5
5
|
* native component initialization from the caller.
|
|
6
6
|
*
|
|
7
7
|
* @param {EventEmitter} deviceNotificationEmitter
|
|
8
|
-
* @param {
|
|
9
|
-
* @return {
|
|
8
|
+
* @param {any} configuration
|
|
9
|
+
* @return {IVendorPaymentDevice}
|
|
10
10
|
*/
|
|
11
|
-
export declare function createPaymentDevice(deviceNotificationEmitter: EventEmitter,
|
|
11
|
+
export declare function createPaymentDevice(deviceNotificationEmitter: EventEmitter, configuration: any): IVendorPaymentDevice;
|
|
@@ -1,33 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// FIXME: Refactor this to a payment device service control class.
|
|
3
|
-
// We will want this to use a provider based on config rather than return one.
|
|
4
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
3
|
const scp_component_logging_1 = require("@aptos-scp/scp-component-logging");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const logger = scp_component_logging_1.LogManager.getLogger("com.aptos.deviceservices.PaymentDeviceServiceFactory");
|
|
4
|
+
const inversify_config_1 = require("./configs/inversify/inversify.config");
|
|
5
|
+
const logger = scp_component_logging_1.LogManager.getLogger("com.aptos.deviceservices.PaymentDeviceFactory");
|
|
9
6
|
/**
|
|
10
|
-
* The create method is used to create an instance of
|
|
7
|
+
* The create method is used to create an instance of vendorClass matching IPaymentDeviceService. It hides the
|
|
11
8
|
* native component initialization from the caller.
|
|
12
9
|
*
|
|
13
10
|
* @param {EventEmitter} deviceNotificationEmitter
|
|
14
|
-
* @param {
|
|
15
|
-
* @return {
|
|
11
|
+
* @param {any} configuration
|
|
12
|
+
* @return {IVendorPaymentDevice}
|
|
16
13
|
*/
|
|
17
|
-
function createPaymentDevice(deviceNotificationEmitter,
|
|
18
|
-
const entryMessage = logger.traceEntry("createPaymentDeviceService", deviceNotificationEmitter,
|
|
19
|
-
let
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
throw logger.throwing(new Error(`Unrecognized device provider: ${deviceProvider}`), entryMessage);
|
|
29
|
-
}
|
|
30
|
-
return paymentDevice;
|
|
14
|
+
function createPaymentDevice(deviceNotificationEmitter, configuration) {
|
|
15
|
+
const entryMessage = logger.traceEntry("createPaymentDeviceService", deviceNotificationEmitter, configuration);
|
|
16
|
+
let device = inversify_config_1.deviceServiceContainer.get(configuration.vendorClass);
|
|
17
|
+
device.configurePaymentDevice(deviceNotificationEmitter, configuration);
|
|
18
|
+
/**
|
|
19
|
+
* note: the starting of listeners and device initialization can happen here as well if desired.
|
|
20
|
+
* this will allow client to create and go without an initial 'start' call. the start is required before
|
|
21
|
+
* initialize because the listeners need to be ready for events sent regarding initialization status.
|
|
22
|
+
*/
|
|
23
|
+
logger.traceExit(entryMessage);
|
|
24
|
+
return device;
|
|
31
25
|
}
|
|
32
26
|
exports.createPaymentDevice = createPaymentDevice;
|
|
33
27
|
//# sourceMappingURL=PaymentDeviceFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentDeviceFactory.js","sourceRoot":"","sources":["../src/PaymentDeviceFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaymentDeviceFactory.js","sourceRoot":"","sources":["../src/PaymentDeviceFactory.ts"],"names":[],"mappings":";;AAAA,4EAAyF;AAEzF,2EAA8E;AAG9E,MAAM,MAAM,GAAY,kCAAU,CAAC,SAAS,CAAC,+CAA+C,CAAC,CAAC;AAE9F;;;;;;;GAOG;AACH,6BAAoC,yBAAuC,EAAE,aAAkB;IAC7F,MAAM,YAAY,GAChB,MAAM,CAAC,UAAU,CAAC,4BAA4B,EAAE,yBAAyB,EAAE,aAAa,CAAC,CAAC;IAE5F,IAAI,MAAM,GAAyB,yCAAsB,CAAC,GAAG,CAAuB,aAAa,CAAC,WAAW,CAAC,CAAC;IAC/G,MAAM,CAAC,sBAAsB,CAAC,yBAAyB,EAAE,aAAa,CAAC,CAAC;IACxE;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAC/B,MAAM,CAAC,MAAM,CAAC;AAChB,CAAC;AAbD,kDAaC"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { EventEmitter } from "fbemitter";
|
|
2
|
-
import {
|
|
2
|
+
import { IPaymentDeviceService } from "./interfaces/payment/IPayment";
|
|
3
3
|
import { IBankCardRequest, IGiftCardRequest } from "./interfaces/payment/messages/requests";
|
|
4
4
|
export declare class PaymentDeviceService implements IPaymentDeviceService {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
initialize(): Promise<void>;
|
|
5
|
+
private _map;
|
|
6
|
+
constructor();
|
|
7
|
+
initialize(emitter: EventEmitter, configs: any): Promise<void>;
|
|
9
8
|
start(): Promise<void>;
|
|
10
9
|
stop(): Promise<void>;
|
|
11
10
|
tearDown(): Promise<void>;
|
|
12
|
-
captureSale(request: IBankCardRequest): Promise<
|
|
13
|
-
captureRefund(request: IBankCardRequest): Promise<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
captureSale(request: IBankCardRequest): Promise<void>;
|
|
12
|
+
captureRefund(request: IBankCardRequest): Promise<void>;
|
|
13
|
+
captureVoid(request: IBankCardRequest): Promise<void>;
|
|
14
|
+
giftcardActivate(request: IGiftCardRequest): Promise<void>;
|
|
15
|
+
giftcardBalance(request: IGiftCardRequest): Promise<void>;
|
|
16
|
+
giftcardIssue(request: IGiftCardRequest): Promise<void>;
|
|
17
|
+
giftcardRedeem(request: IGiftCardRequest): Promise<void>;
|
|
18
|
+
giftcardVoid(request: IBankCardRequest): Promise<void>;
|
|
19
|
+
private reset();
|
|
19
20
|
}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
12
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
13
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -9,121 +18,155 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
18
|
};
|
|
10
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
20
|
const scp_component_logging_1 = require("@aptos-scp/scp-component-logging");
|
|
21
|
+
const inversify_1 = require("inversify");
|
|
12
22
|
const PaymentDeviceFactory_1 = require("./PaymentDeviceFactory");
|
|
13
23
|
const logger = scp_component_logging_1.LogManager.getLogger("com.aptos.deviceservices.PaymentDeviceService");
|
|
14
|
-
class PaymentDeviceService {
|
|
15
|
-
constructor(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
["stop", []],
|
|
20
|
-
["tearDown", []],
|
|
21
|
-
["captureSale", []],
|
|
22
|
-
["captureRefund", []],
|
|
23
|
-
["giftcardActivate", []],
|
|
24
|
-
["giftcardBalance", []],
|
|
25
|
-
["giftcardIssue", []],
|
|
26
|
-
["giftcardRedeem", []],
|
|
27
|
-
["void", []]
|
|
28
|
-
]);
|
|
29
|
-
this._devices = new Map();
|
|
30
|
-
/**
|
|
31
|
-
* There are multiple ways in which this can be accomplished. It largely
|
|
32
|
-
* depends on how the underlying devices will be utilized and in what way
|
|
33
|
-
* they will be configured.
|
|
34
|
-
*
|
|
35
|
-
* The initial primary idea is to have a mapping of request types and
|
|
36
|
-
* cooresponding provider (device) that command should be using.
|
|
37
|
-
*/
|
|
38
|
-
logger.trace("constructor of payment device service.");
|
|
39
|
-
let device = PaymentDeviceFactory_1.createPaymentDevice(deviceNotificationEmitter, configuration);
|
|
40
|
-
let name = configuration.deviceProvider;
|
|
41
|
-
this._devices.set(name, device);
|
|
42
|
-
this._methodMapper.get("initialize").push(name);
|
|
43
|
-
this._methodMapper.get("start").push(name);
|
|
44
|
-
this._methodMapper.get("stop").push(name);
|
|
45
|
-
this._methodMapper.get("tearDown").push(name);
|
|
46
|
-
this._methodMapper.get("captureSale").push(name);
|
|
47
|
-
this._methodMapper.get("captureRefund").push(name);
|
|
48
|
-
this._methodMapper.get("giftcardActivate").push(name);
|
|
49
|
-
this._methodMapper.get("giftcardBalance").push(name);
|
|
50
|
-
this._methodMapper.get("giftcardIssue").push(name);
|
|
51
|
-
this._methodMapper.get("giftcardRedeem").push(name);
|
|
52
|
-
this._methodMapper.get("void").push(name);
|
|
24
|
+
let PaymentDeviceService = class PaymentDeviceService {
|
|
25
|
+
constructor() {
|
|
26
|
+
const entryMessage = logger.traceEntry("constructor");
|
|
27
|
+
this.reset();
|
|
28
|
+
logger.traceExit(entryMessage);
|
|
53
29
|
}
|
|
54
|
-
initialize() {
|
|
30
|
+
initialize(emitter, configs) {
|
|
55
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
|
|
32
|
+
const entryMessage = logger.traceEntry("initialize", emitter, configs);
|
|
33
|
+
/**
|
|
34
|
+
* There are multiple ways in which this can be accomplished. It largely
|
|
35
|
+
* depends on how the underlying devices will be utilized and in what way
|
|
36
|
+
* they will be configured.
|
|
37
|
+
*
|
|
38
|
+
* The initial primary idea is to have a mapping of request types and
|
|
39
|
+
* cooresponding provider (device) that command should be using.
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* Update, apparently we can keep lists of object references. So instead of 2 maps, point the method mapper to the
|
|
43
|
+
* desired methods to be called. Then it could be matter of invoking the referenced function. Basically, map a
|
|
44
|
+
* in which all it does is (func) => {func();}
|
|
45
|
+
*/
|
|
46
|
+
this.reset();
|
|
47
|
+
configs.paymentType.definitions.map((definition) => {
|
|
48
|
+
const deviceConfig = Object.assign({
|
|
49
|
+
storeNumber: configs.storeNumber,
|
|
50
|
+
terminalNumber: configs.terminalNumber
|
|
51
|
+
}, configs.paymentType.defaultValues, definition);
|
|
52
|
+
const device = PaymentDeviceFactory_1.createPaymentDevice(emitter, deviceConfig);
|
|
53
|
+
this._map.get(8 /* StartPaymentDevice */).push(device);
|
|
54
|
+
this._map.get(9 /* StopPaymentDevice */).push(device);
|
|
55
|
+
this._map.get(10 /* TearDownPaymentDevice */).push(device);
|
|
56
|
+
if (definition.id === configs.paymentType.primaryDeviceId) {
|
|
57
|
+
this._map.get(0 /* CaptureSale */).push(device);
|
|
58
|
+
this._map.get(1 /* CaptureRefund */).push(device);
|
|
59
|
+
this._map.get(2 /* CaptureVoid */).push(device);
|
|
60
|
+
}
|
|
61
|
+
if (definition.id === configs.paymentType.giftCardDeviceId) {
|
|
62
|
+
this._map.get(3 /* GiftcardActivate */).push(device);
|
|
63
|
+
this._map.get(4 /* GiftcardBalance */).push(device);
|
|
64
|
+
this._map.get(5 /* GiftcardIssue */).push(device);
|
|
65
|
+
this._map.get(6 /* GiftcardRedeem */).push(device);
|
|
66
|
+
this._map.get(7 /* GiftcardVoid */).push(device);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
logger.traceExit(entryMessage);
|
|
57
70
|
});
|
|
58
71
|
}
|
|
59
|
-
;
|
|
60
72
|
start() {
|
|
61
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
-
|
|
74
|
+
const entryMessage = logger.traceEntry("start");
|
|
75
|
+
this._map.get(8 /* StartPaymentDevice */).map((device) => device.startPaymentDevice());
|
|
76
|
+
logger.traceExit(entryMessage);
|
|
63
77
|
});
|
|
64
78
|
}
|
|
65
|
-
;
|
|
66
79
|
stop() {
|
|
67
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
|
|
81
|
+
const entryMessage = logger.traceEntry("stop");
|
|
82
|
+
this._map.get(9 /* StopPaymentDevice */).map((device) => device.stopPaymentDevice());
|
|
83
|
+
logger.traceExit(entryMessage);
|
|
69
84
|
});
|
|
70
85
|
}
|
|
71
|
-
;
|
|
72
86
|
tearDown() {
|
|
73
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
|
|
88
|
+
const entryMessage = logger.traceEntry("tearDown");
|
|
89
|
+
this._map.get(10 /* TearDownPaymentDevice */).map((device) => device.tearDownPaymentDevice());
|
|
90
|
+
logger.traceExit(entryMessage);
|
|
75
91
|
});
|
|
76
92
|
}
|
|
77
|
-
;
|
|
78
93
|
captureSale(request) {
|
|
79
94
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
|
|
81
|
-
|
|
95
|
+
const entryMessage = logger.traceEntry("captureSale", request);
|
|
96
|
+
this._map.get(0 /* CaptureSale */).map((device) => device.captureSale(request));
|
|
97
|
+
logger.traceExit(entryMessage);
|
|
82
98
|
});
|
|
83
99
|
}
|
|
84
|
-
;
|
|
85
100
|
captureRefund(request) {
|
|
86
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
|
|
88
|
-
|
|
102
|
+
const entryMessage = logger.traceEntry("captureRefund", request);
|
|
103
|
+
this._map.get(1 /* CaptureRefund */).map((device) => device.captureRefund(request));
|
|
104
|
+
logger.traceExit(entryMessage);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
captureVoid(request) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
const entryMessage = logger.traceEntry("captureVoid", request);
|
|
110
|
+
this._map.get(2 /* CaptureVoid */).map((device) => device.captureVoid(request));
|
|
111
|
+
logger.traceExit(entryMessage);
|
|
89
112
|
});
|
|
90
113
|
}
|
|
91
|
-
;
|
|
92
114
|
giftcardActivate(request) {
|
|
93
115
|
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
-
|
|
95
|
-
|
|
116
|
+
const entryMessage = logger.traceEntry("giftcardActivate", request);
|
|
117
|
+
this._map.get(3 /* GiftcardActivate */).map((device) => device.giftcardActivate(request));
|
|
118
|
+
logger.traceExit(entryMessage);
|
|
96
119
|
});
|
|
97
120
|
}
|
|
98
|
-
;
|
|
99
121
|
giftcardBalance(request) {
|
|
100
122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
-
|
|
102
|
-
|
|
123
|
+
const entryMessage = logger.traceEntry("giftcardBalance", request);
|
|
124
|
+
this._map.get(4 /* GiftcardBalance */).map((device) => device.giftcardBalance(request));
|
|
125
|
+
logger.traceExit(entryMessage);
|
|
103
126
|
});
|
|
104
127
|
}
|
|
105
|
-
;
|
|
106
128
|
giftcardIssue(request) {
|
|
107
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
|
|
109
|
-
|
|
130
|
+
const entryMessage = logger.traceEntry("giftcardIssue", request);
|
|
131
|
+
this._map.get(5 /* GiftcardIssue */).map((device) => device.giftcardIssue(request));
|
|
132
|
+
logger.traceExit(entryMessage);
|
|
110
133
|
});
|
|
111
134
|
}
|
|
112
|
-
;
|
|
113
135
|
giftcardRedeem(request) {
|
|
114
136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
-
|
|
116
|
-
|
|
137
|
+
const entryMessage = logger.traceEntry("giftcardRedeem", request);
|
|
138
|
+
this._map.get(6 /* GiftcardRedeem */).map((device) => device.giftcardRedeem(request));
|
|
139
|
+
logger.traceExit(entryMessage);
|
|
117
140
|
});
|
|
118
141
|
}
|
|
119
|
-
|
|
120
|
-
void(request) {
|
|
142
|
+
giftcardVoid(request) {
|
|
121
143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
-
|
|
123
|
-
|
|
144
|
+
const entryMessage = logger.traceEntry("giftcardVoid", request);
|
|
145
|
+
this._map.get(7 /* GiftcardVoid */).map((device) => device.giftcardVoid(request));
|
|
146
|
+
logger.traceExit(entryMessage);
|
|
124
147
|
});
|
|
125
148
|
}
|
|
126
|
-
|
|
127
|
-
|
|
149
|
+
reset() {
|
|
150
|
+
const entryMessage = logger.traceEntry("reset");
|
|
151
|
+
this._map = new Map([
|
|
152
|
+
[0 /* CaptureSale */, []],
|
|
153
|
+
[1 /* CaptureRefund */, []],
|
|
154
|
+
[2 /* CaptureVoid */, []],
|
|
155
|
+
[3 /* GiftcardActivate */, []],
|
|
156
|
+
[4 /* GiftcardBalance */, []],
|
|
157
|
+
[5 /* GiftcardIssue */, []],
|
|
158
|
+
[6 /* GiftcardRedeem */, []],
|
|
159
|
+
[7 /* GiftcardVoid */, []],
|
|
160
|
+
[8 /* StartPaymentDevice */, []],
|
|
161
|
+
[9 /* StopPaymentDevice */, []],
|
|
162
|
+
[10 /* TearDownPaymentDevice */, []]
|
|
163
|
+
]);
|
|
164
|
+
logger.traceExit(entryMessage);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
PaymentDeviceService = __decorate([
|
|
168
|
+
inversify_1.injectable(),
|
|
169
|
+
__metadata("design:paramtypes", [])
|
|
170
|
+
], PaymentDeviceService);
|
|
128
171
|
exports.PaymentDeviceService = PaymentDeviceService;
|
|
129
172
|
//# sourceMappingURL=PaymentDeviceService.js.map
|