@aptos-scp/scp-component-rn-device-services 0.0.4-hm → 0.1.1
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 +0 -69
- package/ios/AurusEnterpriseSDK.framework/AurusEnterpriseSDK +0 -0
- package/ios/AurusEnterpriseSDK.framework/Headers/AurusEnterpriseSDK.h +95 -97
- package/ios/SCPRNDeviceServices/AdyenPaymentTerminal.h +0 -19
- package/ios/SCPRNDeviceServices/AdyenPaymentTerminal.m +22 -457
- package/ios/SCPRNDeviceServices/AurusPaymentTerminal.m +29 -83
- package/ios/SCPRNDeviceServices/VendorPaymentTerminal.m +1 -1
- package/ios/SCPRNDeviceServices.xcodeproj/project.pbxproj +0 -56
- package/lib/AurusDevice/AurusDevice.d.ts +26 -34
- package/lib/AurusDevice/AurusDevice.js +251 -379
- package/lib/AurusDevice/AurusDevice.js.map +1 -1
- package/lib/AurusDevice/constants.d.ts +33 -84
- package/lib/AurusDevice/constants.js +37 -114
- package/lib/AurusDevice/constants.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/AESDKRegistration.d.ts +9 -10
- package/lib/AurusDevice/sdk-interface/AESDKRegistration.js +6 -0
- 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 +70 -88
- package/lib/AurusDevice/sdk-interface/AurusPaymentSupport.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/Barcode.d.ts +4 -5
- package/lib/AurusDevice/sdk-interface/Barcode.js +6 -0
- package/lib/AurusDevice/sdk-interface/Barcode.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/CancelTransaction.d.ts +10 -11
- package/lib/AurusDevice/sdk-interface/CancelTransaction.js +6 -0
- package/lib/AurusDevice/sdk-interface/CancelTransaction.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/GetCardBinRequest.d.ts +12 -14
- package/lib/AurusDevice/sdk-interface/PLCCApplication.d.ts +11 -12
- package/lib/AurusDevice/sdk-interface/PLCCApplication.js +6 -0
- package/lib/AurusDevice/sdk-interface/PLCCApplication.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/TransactionRequest.d.ts +46 -42
- package/lib/AurusDevice/sdk-interface/TransactionRequest.js +6 -0
- package/lib/AurusDevice/sdk-interface/TransactionRequest.js.map +1 -1
- package/lib/AurusDevice/sdk-interface/index.d.ts +0 -2
- package/lib/PaymentDeviceFactory.d.ts +5 -5
- package/lib/PaymentDeviceFactory.js +4 -4
- package/lib/PaymentDeviceFactory.js.map +1 -1
- package/lib/PaymentDeviceService.d.ts +3 -4
- package/lib/PaymentDeviceService.js +33 -47
- package/lib/PaymentDeviceService.js.map +1 -1
- package/lib/ScannerDeviceFactory.d.ts +5 -5
- package/lib/ScannerDeviceFactory.js +5 -5
- package/lib/ScannerDeviceFactory.js.map +1 -1
- package/lib/ScannerDeviceService.d.ts +2 -2
- package/lib/ScannerDeviceService.js +6 -6
- package/lib/ScannerDeviceService.js.map +1 -1
- package/lib/configs/inversify/inversify.config.js +7 -4
- package/lib/configs/inversify/inversify.config.js.map +1 -1
- package/lib/constants/constants.d.ts +38 -61
- package/lib/constants/constants.js +41 -62
- package/lib/constants/constants.js.map +1 -1
- package/lib/interfaces/IDeviceStatus.d.ts +0 -1
- package/lib/interfaces/payment/IPayment.d.ts +9 -4
- package/lib/interfaces/payment/messages/requests.d.ts +3 -2
- package/lib/interfaces/payment/messages/responses.d.ts +6 -13
- package/lib/interfaces/scanner/IScanner.d.ts +8 -2
- package/package.json +9 -11
- package/types/es-symbol/index.d.ts +4 -0
- package/types/money-works/index.d.ts +49 -0
- 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 +0 -26
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAdditionalDataRequest.h +0 -38
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAmount.h +0 -16
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAppData.h +0 -26
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYBalance.h +0 -13
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYCashTransactionRequest.h +0 -35
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYConstants.h +0 -688
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYCurrency.h +0 -33
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDevice.h +0 -308
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDeviceData.h +0 -52
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDeviceManagerDelegate.h +0 -66
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDeviceRegistry.h +0 -125
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDynamicCurrencyConversionData.h +0 -22
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYErrors.h +0 -153
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCard.h +0 -41
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardBalanceRequest.h +0 -50
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardBalanceResponse.h +0 -38
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardLoadRequest.h +0 -78
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardLoadRequestDelegate.h +0 -25
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardLoadResponse.h +0 -31
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardMask.h +0 -31
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardRequest.h +0 -13
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYLocationManager.h +0 -14
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYLoginDelegate.h +0 -80
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYPrintReceiptRequest.h +0 -57
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYReceipt.h +0 -33
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYReceiptLine.h +0 -92
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYReferralRequest.h +0 -16
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYRefundData.h +0 -54
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYServerSynchronization.h +0 -18
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYSignatureRequest.h +0 -117
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYSpecialTransactionRequest.h +0 -63
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYToneGenerator.h +0 -45
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionData.h +0 -416
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionDetails.h +0 -45
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionProcessorDelegate.h +0 -279
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionRequest.h +0 -108
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYUIKit.h +0 -30
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/Adyen.h +0 -591
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/AdyenToolkit-umbrella.h +0 -59
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/AdyenToolkit.h +0 -79
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/NSData+ADY.h +0 -31
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/NSString+ADY.h +0 -19
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/adylog.h +0 -176
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Info.plist +0 -0
- package/ios/Frameworks/Adyen/AdyenToolkit.framework/Modules/module.modulemap +0 -6
- package/ios/SCPRNDeviceServices/Adyen/AdyenConstants.h +0 -40
- package/ios/SCPRNDeviceServices/Adyen/AdyenConstants.m +0 -28
- package/ios/SCPRNDeviceServices/Adyen/AdyenDelegate.h +0 -23
- package/ios/SCPRNDeviceServices/Adyen/AdyenDelegate.m +0 -15
- package/ios/SCPRNDeviceServices/Adyen/AdyenDeviceManagerDelegate.h +0 -19
- package/ios/SCPRNDeviceServices/Adyen/AdyenDeviceManagerDelegate.m +0 -31
- package/ios/SCPRNDeviceServices/Adyen/AdyenLoginDelegate.h +0 -19
- package/ios/SCPRNDeviceServices/Adyen/AdyenLoginDelegate.m +0 -26
- package/ios/SCPRNDeviceServices/Adyen/AdyenTransactionProcessorDelegate.h +0 -26
- package/ios/SCPRNDeviceServices/Adyen/AdyenTransactionProcessorDelegate.m +0 -148
- package/lib/AdyenDevice/AdyenDevice.d.ts +0 -56
- package/lib/AdyenDevice/AdyenDevice.js +0 -349
- package/lib/AdyenDevice/AdyenDevice.js.map +0 -1
- package/lib/AdyenDevice/constants.d.ts +0 -12
- package/lib/AdyenDevice/constants.js +0 -228
- package/lib/AdyenDevice/constants.js.map +0 -1
- package/lib/AdyenDevice/index.d.ts +0 -1
- package/lib/AdyenDevice/index.js +0 -7
- package/lib/AdyenDevice/index.js.map +0 -1
- package/lib/AdyenDevice/interfaces.d.ts +0 -175
- package/lib/AdyenDevice/interfaces.js +0 -3
- package/lib/AdyenDevice/interfaces.js.map +0 -1
- package/lib/AurusDevice/sdk-interface/ByPassScreen.d.ts +0 -25
- package/lib/AurusDevice/sdk-interface/ByPassScreen.js +0 -9
- package/lib/AurusDevice/sdk-interface/ByPassScreen.js.map +0 -1
- package/lib/AurusDevice/sdk-interface/Upgrade.d.ts +0 -23
- package/lib/AurusDevice/sdk-interface/Upgrade.js +0 -9
- package/lib/AurusDevice/sdk-interface/Upgrade.js.map +0 -1
- package/lib/AurusDevice/sdk-interface/XmlElementString.d.ts +0 -3
- package/lib/AurusDevice/sdk-interface/XmlElementString.js +0 -3
- package/lib/AurusDevice/sdk-interface/XmlElementString.js.map +0 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DI_TYPES = {
|
|
4
|
+
AurusPaymentDevice: "AurusPaymentDevice",
|
|
5
|
+
AurusScannerDevice: "AurusScannerDevice"
|
|
6
|
+
};
|
|
3
7
|
exports.EventResponseTypes = {
|
|
4
8
|
Authorization: "AuthorizationResponse",
|
|
5
9
|
PaymentDeviceStatus: "PaymentDeviceStatus",
|
|
@@ -7,80 +11,55 @@ exports.EventResponseTypes = {
|
|
|
7
11
|
};
|
|
8
12
|
var CardType;
|
|
9
13
|
(function (CardType) {
|
|
10
|
-
CardType["Unknown"] = "Unknown";
|
|
11
|
-
CardType["Visa"] = "Visa";
|
|
12
|
-
CardType["MasterCard"] = "MasterCard";
|
|
13
|
-
CardType["AmericanExpress"] = "AmericanExpress";
|
|
14
|
-
CardType["DinersClub"] = "DinersClub";
|
|
15
|
-
CardType["Discover"] = "Discover";
|
|
16
|
-
CardType["JCB"] = "JCB";
|
|
17
|
-
CardType["PrivateLabel"] = "PrivateLabel";
|
|
18
|
-
CardType["Debit"] = "Debit";
|
|
19
|
-
CardType["Gift"] = "Gift";
|
|
14
|
+
CardType[CardType["Unknown"] = 0] = "Unknown";
|
|
15
|
+
CardType[CardType["Visa"] = 1] = "Visa";
|
|
16
|
+
CardType[CardType["MasterCard"] = 2] = "MasterCard";
|
|
17
|
+
CardType[CardType["AmericanExpress"] = 3] = "AmericanExpress";
|
|
18
|
+
CardType[CardType["DinersClub"] = 4] = "DinersClub";
|
|
19
|
+
CardType[CardType["Discover"] = 5] = "Discover";
|
|
20
|
+
CardType[CardType["JCB"] = 6] = "JCB";
|
|
21
|
+
CardType[CardType["PrivateLabel"] = 7] = "PrivateLabel";
|
|
22
|
+
CardType[CardType["Debit"] = 8] = "Debit";
|
|
23
|
+
CardType[CardType["Gift"] = 9] = "Gift";
|
|
20
24
|
})(CardType = exports.CardType || (exports.CardType = {}));
|
|
25
|
+
;
|
|
21
26
|
var PaymentRequestType;
|
|
22
27
|
(function (PaymentRequestType) {
|
|
23
|
-
PaymentRequestType["Sale"] = "Sale";
|
|
24
|
-
PaymentRequestType["Refund"] = "Refund";
|
|
25
|
-
PaymentRequestType["Void"] = "Void";
|
|
26
|
-
PaymentRequestType["GiftCardActivate"] = "GiftCardActivate";
|
|
27
|
-
PaymentRequestType["GiftCardBalanceInquiry"] = "GiftCardBalanceInquiry";
|
|
28
|
-
PaymentRequestType["GiftCardIssue"] = "GiftCardIssue";
|
|
29
|
-
PaymentRequestType["GiftCardRedeem"] = "GiftCardRedeem";
|
|
30
|
-
PaymentRequestType["PLCCAccountInquiry"] = "PLCCAccountInquiry";
|
|
31
|
-
PaymentRequestType["PLCCAccountPayment"] = "PLCCAccountPayment";
|
|
32
|
-
PaymentRequestType["PLCCApplication"] = "PLCCApplication";
|
|
28
|
+
PaymentRequestType[PaymentRequestType["Sale"] = 0] = "Sale";
|
|
29
|
+
PaymentRequestType[PaymentRequestType["Refund"] = 1] = "Refund";
|
|
30
|
+
PaymentRequestType[PaymentRequestType["Void"] = 2] = "Void";
|
|
31
|
+
PaymentRequestType[PaymentRequestType["GiftCardActivate"] = 3] = "GiftCardActivate";
|
|
32
|
+
PaymentRequestType[PaymentRequestType["GiftCardBalanceInquiry"] = 4] = "GiftCardBalanceInquiry";
|
|
33
|
+
PaymentRequestType[PaymentRequestType["GiftCardIssue"] = 5] = "GiftCardIssue";
|
|
34
|
+
PaymentRequestType[PaymentRequestType["GiftCardRedeem"] = 6] = "GiftCardRedeem";
|
|
35
|
+
PaymentRequestType[PaymentRequestType["PLCCAccountInquiry"] = 7] = "PLCCAccountInquiry";
|
|
36
|
+
PaymentRequestType[PaymentRequestType["PLCCAccountPayment"] = 8] = "PLCCAccountPayment";
|
|
37
|
+
PaymentRequestType[PaymentRequestType["PLCCApplication"] = 9] = "PLCCApplication";
|
|
33
38
|
})(PaymentRequestType = exports.PaymentRequestType || (exports.PaymentRequestType = {}));
|
|
39
|
+
;
|
|
34
40
|
var ResponseCodes;
|
|
35
41
|
(function (ResponseCodes) {
|
|
36
|
-
ResponseCodes["Approved"] = "Approved";
|
|
37
|
-
ResponseCodes["Error"] = "Error";
|
|
38
|
-
ResponseCodes["Decline"] = "Decline";
|
|
39
|
-
ResponseCodes["Timeout"] = "Timeout";
|
|
42
|
+
ResponseCodes[ResponseCodes["Approved"] = 0] = "Approved";
|
|
43
|
+
ResponseCodes[ResponseCodes["Error"] = 1] = "Error";
|
|
44
|
+
ResponseCodes[ResponseCodes["Decline"] = 2] = "Decline";
|
|
45
|
+
ResponseCodes[ResponseCodes["Timeout"] = 3] = "Timeout";
|
|
40
46
|
})(ResponseCodes = exports.ResponseCodes || (exports.ResponseCodes = {}));
|
|
47
|
+
;
|
|
41
48
|
var StatusCode;
|
|
42
49
|
(function (StatusCode) {
|
|
43
|
-
StatusCode["
|
|
44
|
-
StatusCode["
|
|
45
|
-
StatusCode["
|
|
46
|
-
StatusCode["
|
|
47
|
-
StatusCode["PaymentComplete"] = "PaymentComplete";
|
|
48
|
-
StatusCode["PaymentInProgress"] = "PaymentInProgress";
|
|
50
|
+
StatusCode[StatusCode["InitializationComplete"] = 0] = "InitializationComplete";
|
|
51
|
+
StatusCode[StatusCode["InitializationInProgress"] = 1] = "InitializationInProgress";
|
|
52
|
+
StatusCode[StatusCode["PaymentComplete"] = 2] = "PaymentComplete";
|
|
53
|
+
StatusCode[StatusCode["PaymentInProgress"] = 3] = "PaymentInProgress";
|
|
49
54
|
})(StatusCode = exports.StatusCode || (exports.StatusCode = {}));
|
|
50
55
|
var TenderType;
|
|
51
56
|
(function (TenderType) {
|
|
52
|
-
TenderType["Unknown"] = "Unknown";
|
|
53
|
-
TenderType["Cash"] = "Cash";
|
|
54
|
-
TenderType["PaymentDevice"] = "PaymentDevice";
|
|
55
|
-
TenderType["Credit"] = "Credit";
|
|
56
|
-
TenderType["Debit"] = "Debit";
|
|
57
|
-
TenderType["Gift"] = "Gift";
|
|
57
|
+
TenderType[TenderType["Unknown"] = 0] = "Unknown";
|
|
58
|
+
TenderType[TenderType["Cash"] = 1] = "Cash";
|
|
59
|
+
TenderType[TenderType["PaymentDevice"] = 2] = "PaymentDevice";
|
|
60
|
+
TenderType[TenderType["Credit"] = 3] = "Credit";
|
|
61
|
+
TenderType[TenderType["Debit"] = 4] = "Debit";
|
|
62
|
+
TenderType[TenderType["Gift"] = 5] = "Gift";
|
|
58
63
|
})(TenderType = exports.TenderType || (exports.TenderType = {}));
|
|
59
|
-
var EntryMethod;
|
|
60
|
-
(function (EntryMethod) {
|
|
61
|
-
EntryMethod["Insert"] = "Insert";
|
|
62
|
-
EntryMethod["Swipe"] = "Swipe";
|
|
63
|
-
EntryMethod["Keyed"] = "Keyed";
|
|
64
|
-
EntryMethod["Fallback"] = "Fallback";
|
|
65
|
-
EntryMethod["KeyFallback"] = "KeyFallback";
|
|
66
|
-
EntryMethod["Tap"] = "Tap";
|
|
67
|
-
EntryMethod["Mobile"] = "Mobile";
|
|
68
|
-
EntryMethod["Unknown"] = "Unknown";
|
|
69
|
-
})(EntryMethod = exports.EntryMethod || (exports.EntryMethod = {}));
|
|
70
64
|
;
|
|
71
|
-
exports.BarcodeEncoding = {
|
|
72
|
-
Code128: "Code128",
|
|
73
|
-
Code39: "Code39",
|
|
74
|
-
Code93: "Code93",
|
|
75
|
-
EAN_128: "EAN-128",
|
|
76
|
-
EAN_13: "EAN-13",
|
|
77
|
-
EAN_8: "EAN-8",
|
|
78
|
-
Interleaved_2_of_5: "Interleaved-2-of-5",
|
|
79
|
-
Maxicode: "Maxicode",
|
|
80
|
-
QRCode: "QRCode",
|
|
81
|
-
Standard_2_of_5: "Standard-2-of-5",
|
|
82
|
-
UPC_A: "UPC-A",
|
|
83
|
-
UPC_E: "UPC-E",
|
|
84
|
-
Unsupported: "Unsupported"
|
|
85
|
-
};
|
|
86
65
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants/constants.ts"],"names":[],"mappings":";;AAAa,QAAA,kBAAkB,GAAG;IAChC,aAAa,EAAE,uBAAuB;IACtC,mBAAmB,EAAE,qBAAqB;IAC1C,IAAI,EAAE,UAAU;CACjB,CAAC;AAEF,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants/constants.ts"],"names":[],"mappings":";;AAAa,QAAA,QAAQ,GAAG;IACtB,kBAAkB,EAAE,oBAAoB;IACxC,kBAAkB,EAAE,oBAAoB;CACzC,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,aAAa,EAAE,uBAAuB;IACtC,mBAAmB,EAAE,qBAAqB;IAC1C,IAAI,EAAE,UAAU;CACjB,CAAC;AAEF,IAAY,QAWX;AAXD,WAAY,QAAQ;IAClB,6CAAO,CAAA;IACP,uCAAI,CAAA;IACJ,mDAAU,CAAA;IACV,6DAAe,CAAA;IACf,mDAAU,CAAA;IACV,+CAAQ,CAAA;IACR,qCAAG,CAAA;IACH,uDAAY,CAAA;IACZ,yCAAK,CAAA;IACL,uCAAI,CAAA;AACN,CAAC,EAXW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAWnB;AAAA,CAAC;AAEF,IAAY,kBAWX;AAXD,WAAY,kBAAkB;IAC5B,2DAAI,CAAA;IACJ,+DAAM,CAAA;IACN,2DAAI,CAAA;IACJ,mFAAgB,CAAA;IAChB,+FAAsB,CAAA;IACtB,6EAAa,CAAA;IACb,+EAAc,CAAA;IACd,uFAAkB,CAAA;IAClB,uFAAkB,CAAA;IAClB,iFAAe,CAAA;AACjB,CAAC,EAXW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAW7B;AAAA,CAAC;AAEF,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,yDAAQ,CAAA;IACR,mDAAK,CAAA;IACL,uDAAO,CAAA;IACP,uDAAO,CAAA;AACT,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAAA,CAAC;AAEF,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,+EAAsB,CAAA;IACtB,mFAAwB,CAAA;IACxB,iEAAe,CAAA;IACf,qEAAiB,CAAA;AACnB,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB;AAED,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,iDAAO,CAAA;IACP,2CAAI,CAAA;IACJ,6DAAa,CAAA;IACb,+CAAM,CAAA;IACN,6CAAK,CAAA;IACL,2CAAI,CAAA;AACN,CAAC,EAPW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAOrB;AAAA,CAAC"}
|
|
@@ -3,21 +3,26 @@ import { IBankCardRequest, IGiftCardRequest } from "./messages/requests";
|
|
|
3
3
|
export interface IPaymentDeviceCommon {
|
|
4
4
|
captureSale(authRequest: IBankCardRequest): Promise<void>;
|
|
5
5
|
captureRefund(authRequest: IBankCardRequest): Promise<void>;
|
|
6
|
-
captureVoid(authRequest: IBankCardRequest): Promise<void>;
|
|
7
6
|
giftcardActivate(authRequest: IGiftCardRequest): Promise<void>;
|
|
8
7
|
giftcardBalance(authRequest: IGiftCardRequest): Promise<void>;
|
|
9
8
|
giftcardIssue(authRequest: IGiftCardRequest): Promise<void>;
|
|
10
9
|
giftcardRedeem(authRequest: IGiftCardRequest): Promise<void>;
|
|
11
|
-
|
|
10
|
+
void(authRequest: IBankCardRequest): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export interface IPaymentDeviceConfiguration {
|
|
13
|
+
deviceProvider: string;
|
|
14
|
+
productionEnv?: boolean;
|
|
15
|
+
storeNumber?: string;
|
|
16
|
+
terminalNumber?: string;
|
|
12
17
|
}
|
|
13
18
|
export interface IPaymentDeviceService extends IPaymentDeviceCommon {
|
|
14
|
-
initialize(emitter: EventEmitter, configs:
|
|
19
|
+
initialize(emitter: EventEmitter, configs: IPaymentDeviceConfiguration[]): Promise<void>;
|
|
15
20
|
start(): Promise<void>;
|
|
16
21
|
stop(): Promise<void>;
|
|
17
22
|
tearDown(): Promise<void>;
|
|
18
23
|
}
|
|
19
24
|
export interface IVendorPaymentDevice extends IPaymentDeviceCommon {
|
|
20
|
-
configurePaymentDevice(emitter: EventEmitter, config:
|
|
25
|
+
configurePaymentDevice(emitter: EventEmitter, config: IPaymentDeviceConfiguration): Promise<void>;
|
|
21
26
|
startPaymentDevice(): Promise<void>;
|
|
22
27
|
stopPaymentDevice(): Promise<void>;
|
|
23
28
|
tearDownPaymentDevice(): Promise<void>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="money-works" />
|
|
2
|
+
import Money = require("money-works");
|
|
2
3
|
import { CardType, PaymentRequestType, TenderType } from "../../../constants/constants";
|
|
3
4
|
export interface ICoreRequest {
|
|
4
5
|
amount?: Money;
|
|
5
6
|
cardNumber?: string;
|
|
6
7
|
cardType?: CardType;
|
|
7
8
|
keyedEntry?: boolean;
|
|
8
|
-
requestType?: PaymentRequestType;
|
|
9
|
+
requestType?: PaymentRequestType | string;
|
|
9
10
|
storeNumber?: string;
|
|
10
11
|
terminalNumber?: string;
|
|
11
12
|
transactionNumber?: number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="money-works" />
|
|
2
|
+
import Money = require("money-works");
|
|
2
3
|
import { IPLCCData } from "../../";
|
|
3
|
-
import { CardType,
|
|
4
|
+
import { CardType, PaymentRequestType, ResponseCodes, TenderType } from "../../../constants/constants";
|
|
4
5
|
export interface IEMVData {
|
|
5
6
|
AID?: string;
|
|
6
|
-
ARC?: string;
|
|
7
7
|
CEM?: string;
|
|
8
8
|
CVM?: string;
|
|
9
9
|
TVR?: string;
|
|
@@ -13,11 +13,6 @@ export interface IEMVData {
|
|
|
13
13
|
appLabel?: string;
|
|
14
14
|
tranCert?: string;
|
|
15
15
|
additionalData?: string;
|
|
16
|
-
merchantId?: string;
|
|
17
|
-
terminalId?: string;
|
|
18
|
-
respDate?: string;
|
|
19
|
-
respTime?: string;
|
|
20
|
-
receiptData?: string[];
|
|
21
16
|
}
|
|
22
17
|
export interface IDCCData {
|
|
23
18
|
foreignAmount?: string;
|
|
@@ -27,12 +22,11 @@ export interface IDCCData {
|
|
|
27
22
|
}
|
|
28
23
|
export interface ICoreResponse {
|
|
29
24
|
cardNumber?: string;
|
|
30
|
-
paymentEnvironment?: string;
|
|
31
25
|
responseCode?: ResponseCodes;
|
|
32
26
|
status?: string;
|
|
33
27
|
}
|
|
34
28
|
export interface IGiftCardResponse extends ICoreResponse {
|
|
35
|
-
balance?:
|
|
29
|
+
balance?: string;
|
|
36
30
|
}
|
|
37
31
|
export interface IBankCardResponse extends ICoreResponse {
|
|
38
32
|
amount?: Money;
|
|
@@ -41,13 +35,12 @@ export interface IBankCardResponse extends ICoreResponse {
|
|
|
41
35
|
cardType?: CardType;
|
|
42
36
|
cardUsage?: string;
|
|
43
37
|
customerName?: string;
|
|
44
|
-
entryMethod?:
|
|
38
|
+
entryMethod?: string;
|
|
45
39
|
offlineToken?: string;
|
|
46
|
-
pinCaptured?: boolean;
|
|
47
40
|
plccData?: IPLCCData;
|
|
48
41
|
rawResponseData?: string;
|
|
49
42
|
receiptData?: string[];
|
|
50
|
-
requestType?: PaymentRequestType;
|
|
43
|
+
requestType?: PaymentRequestType | string;
|
|
51
44
|
signatureData?: string;
|
|
52
45
|
signatureRequired?: boolean;
|
|
53
46
|
tenderType?: TenderType;
|
|
@@ -5,8 +5,14 @@ export interface IScanDataNotification {
|
|
|
5
5
|
}
|
|
6
6
|
export interface IScannerDeviceCommon {
|
|
7
7
|
}
|
|
8
|
+
export interface IScannerDeviceConfiguration {
|
|
9
|
+
deviceProvider: string;
|
|
10
|
+
encoding?: string;
|
|
11
|
+
useExternalScanner?: boolean;
|
|
12
|
+
treatScannerAsKeyboard?: boolean;
|
|
13
|
+
}
|
|
8
14
|
export interface IScannerDeviceService extends IScannerDeviceCommon {
|
|
9
|
-
initialize(emitter: EventEmitter, configs:
|
|
15
|
+
initialize(emitter: EventEmitter, configs: IScannerDeviceConfiguration[]): Promise<void>;
|
|
10
16
|
start(): Promise<void>;
|
|
11
17
|
stop(): Promise<void>;
|
|
12
18
|
tearDown(): Promise<void>;
|
|
@@ -14,7 +20,7 @@ export interface IScannerDeviceService extends IScannerDeviceCommon {
|
|
|
14
20
|
disable(): Promise<void>;
|
|
15
21
|
}
|
|
16
22
|
export interface IVendorScannerDevice extends IScannerDeviceCommon {
|
|
17
|
-
configureScannerDevice(emitter: EventEmitter, config:
|
|
23
|
+
configureScannerDevice(emitter: EventEmitter, config: IScannerDeviceConfiguration): Promise<void>;
|
|
18
24
|
startScannerDevice(): Promise<void>;
|
|
19
25
|
stopScannerDevice(): Promise<void>;
|
|
20
26
|
tearDownScannerDevice(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptos-scp/scp-component-rn-device-services",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A react-native component for integrating with devices.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -46,19 +46,14 @@
|
|
|
46
46
|
},
|
|
47
47
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
48
48
|
"dependencies": {
|
|
49
|
+
"@aptos-scp/scp-component-logging": "^0.3.1",
|
|
49
50
|
"@types/big.js": "0.0.31",
|
|
50
51
|
"fbemitter": "2.1.1",
|
|
51
52
|
"inversify": "4.1.1",
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
"peerDependencies": {
|
|
55
|
-
"@aptos-scp/scp-component-business-core": ">=0.3.x <0.4.0",
|
|
56
|
-
"@aptos-scp/scp-component-logging": ">=0.4.x <0.5.0",
|
|
57
|
-
"react-native": ">=0.40.x <=0.44.x"
|
|
53
|
+
"money-works": "1.5.2",
|
|
54
|
+
"react-native-xml2js": "1.0.3"
|
|
58
55
|
},
|
|
59
56
|
"devDependencies": {
|
|
60
|
-
"@aptos-scp/scp-component-business-core": "~0.3.0",
|
|
61
|
-
"@aptos-scp/scp-component-logging": "~0.4.5",
|
|
62
57
|
"@types/chai": "3.5.2",
|
|
63
58
|
"@types/chai-as-promised": "0.0.30",
|
|
64
59
|
"@types/fbemitter": "2.0.32",
|
|
@@ -76,12 +71,15 @@
|
|
|
76
71
|
"react": "16.0.0-alpha.6",
|
|
77
72
|
"react-native": "0.44.2",
|
|
78
73
|
"react-native-mock": "0.3.1",
|
|
79
|
-
"remap-istanbul": "0.9.
|
|
74
|
+
"remap-istanbul": "0.9.5",
|
|
80
75
|
"rimraf": "2.6.1",
|
|
81
76
|
"sinon": "2.3.6",
|
|
82
77
|
"sinon-chai": "2.11.0",
|
|
83
78
|
"source-map-support": "0.4.15",
|
|
84
79
|
"tslint": "^4.4.2",
|
|
85
|
-
"typescript": "2.
|
|
80
|
+
"typescript": "2.3.0"
|
|
81
|
+
},
|
|
82
|
+
"peerDependencies": {
|
|
83
|
+
"react-native": ">=0.40.x <=0.44.x"
|
|
86
84
|
}
|
|
87
85
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// Type definitions for money-works
|
|
2
|
+
// Created by Wesley Anderson <Aptos.com>
|
|
3
|
+
|
|
4
|
+
import * as BigJsLibrary from "big.js";
|
|
5
|
+
|
|
6
|
+
export = Money;
|
|
7
|
+
|
|
8
|
+
/*~ Write your module's methods and properties in this class */
|
|
9
|
+
declare class Money {
|
|
10
|
+
/**
|
|
11
|
+
* Constructor for Money. Instances are immutable.
|
|
12
|
+
*
|
|
13
|
+
* @param amount An amount expressed as a string (optionally containing the currency after a space), an object with an
|
|
14
|
+
* amount and currency properties (like Money or from JSON), a number or a Big value.
|
|
15
|
+
* @param currency The ISO-4217 string identifying the currency.
|
|
16
|
+
*/
|
|
17
|
+
constructor(amount: (string| Money | Object | BigJsLibrary.BigNumberInputType), currency?: string);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Foreign exchange service function. The function returns the exchange rate to convert between the two currencies.
|
|
21
|
+
*/
|
|
22
|
+
public static forexService: (fromCurrency: string, toCurrency: string) => BigJsLibrary.BigNumberInputType;
|
|
23
|
+
|
|
24
|
+
public amount: number;
|
|
25
|
+
public currency: Object;
|
|
26
|
+
|
|
27
|
+
public precision(): number;
|
|
28
|
+
public plus(that: Money): Money;
|
|
29
|
+
public minus(that: Money): Money;
|
|
30
|
+
public times(that: number): Money;
|
|
31
|
+
public allocate(ratios: number[], precision: number): Money[];
|
|
32
|
+
public round(precision: number): Money;
|
|
33
|
+
public toString(): string;
|
|
34
|
+
//TODO: Double-check the type of the locale parameter on toLocaleString.
|
|
35
|
+
public toLocaleString(locale: string, options: Object): string;
|
|
36
|
+
//TODO: Double-check the return type on compare.
|
|
37
|
+
public compare(that: Money): number;
|
|
38
|
+
public eq(that: Money): boolean;
|
|
39
|
+
public ne(that: Money): boolean;
|
|
40
|
+
public lt(that: Money): boolean;
|
|
41
|
+
public lte(that: Money): boolean;
|
|
42
|
+
public gt(that: Money): boolean;
|
|
43
|
+
public gte(that: Money): boolean;
|
|
44
|
+
public isZero(): boolean;
|
|
45
|
+
public isNotZero(): boolean;
|
|
46
|
+
public isPositive(): boolean;
|
|
47
|
+
public isNegative(): boolean;
|
|
48
|
+
public to(currency: string): Money;
|
|
49
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ADYAccountData.h
|
|
3
|
-
// AdyenPOSLib
|
|
4
|
-
//
|
|
5
|
-
// Created by Jeroen Koops on 5/14/13.
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Class holding data about the account that is currently logged in.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
@interface ADYAccountData : NSObject
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The merchant currently logged in.
|
|
19
|
-
*/
|
|
20
|
-
@property (nonatomic, readonly) NSString* merchant;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The username currently logged in.
|
|
24
|
-
*/
|
|
25
|
-
@property (nonatomic, readonly) NSString* username;
|
|
26
|
-
@end
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ADYAdditionalDataRequest.h
|
|
3
|
-
// AdyenPOSLib
|
|
4
|
-
//
|
|
5
|
-
// Created by Jeroen Koops on 4/11/13.
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
@class ADYTransactionProcessor;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Request-object used to inform the ADYTransactionProcessorDelegate that
|
|
15
|
-
* additional data is available.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
@interface ADYAdditionalDataRequest : NSObject
|
|
19
|
-
|
|
20
|
-
/** Merchant specific additional data. */
|
|
21
|
-
@property (readonly) NSDictionary *additionalData;
|
|
22
|
-
|
|
23
|
-
/** The original transaction amount, in minor currency units (e.g. cents). */
|
|
24
|
-
@property (readonly) NSNumber *transactionAmount;
|
|
25
|
-
|
|
26
|
-
/** The transaction currency. */
|
|
27
|
-
@property (readonly) NSString *transactionCurrency;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
Continue transaction-processing, either was an updated amount, or with the same amount.
|
|
31
|
-
|
|
32
|
-
@param amount The amount to continue the transaction with. May be `nil`, to continue with the current amount,
|
|
33
|
-
or an amount in minor currency units (e.g. cents) to continue with an updated amount.
|
|
34
|
-
*/
|
|
35
|
-
- (void)continueWithUpdatedAmount:(NSNumber *)amount;
|
|
36
|
-
- (void)continueWithUpdatedAmount:(NSNumber *)amount additionalData:(NSDictionary *)additionalData;
|
|
37
|
-
|
|
38
|
-
@end
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Created by Sam on 8/2/12.
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
#import <Foundation/Foundation.h>
|
|
8
|
-
|
|
9
|
-
@interface ADYAmount : NSObject
|
|
10
|
-
|
|
11
|
-
@property(nonatomic, copy) NSString *currency;
|
|
12
|
-
@property(nonatomic, copy) NSString *value;
|
|
13
|
-
|
|
14
|
-
- (instancetype)initWithCurrency:(NSString *)currency value:(NSString *)value;
|
|
15
|
-
|
|
16
|
-
@end
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ADYAppData.h
|
|
3
|
-
// AdyenToolkit
|
|
4
|
-
//
|
|
5
|
-
// Created by Jeroen Koops on 4/10/13.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
|
|
10
|
-
/** Class containing data about the app.
|
|
11
|
-
*/
|
|
12
|
-
@interface ADYAppData : NSObject
|
|
13
|
-
|
|
14
|
-
@property (nonatomic, strong, readonly) NSString *libImplementation;
|
|
15
|
-
@property (nonatomic, strong, readonly) NSString *devicePlatform;
|
|
16
|
-
@property (nonatomic, strong, readonly) NSString *deviceName;
|
|
17
|
-
@property (nonatomic, strong, readonly) NSString *deviceVersion;
|
|
18
|
-
@property (nonatomic, strong, readonly) NSString *applicationName;
|
|
19
|
-
@property (nonatomic, strong, readonly) NSString *AdyenLibraryVersion;
|
|
20
|
-
@property (nonatomic, strong, readonly) NSString *integratorName;
|
|
21
|
-
|
|
22
|
-
+ (ADYAppData *)shared;
|
|
23
|
-
|
|
24
|
-
- (NSDictionary *)dictionaryRepresentation;
|
|
25
|
-
|
|
26
|
-
@end
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ADYCashTransactionRequest.h
|
|
3
|
-
// Pods
|
|
4
|
-
//
|
|
5
|
-
// Created by Oleg Lutsenko on 3/15/16.
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
@class ADYTransactionData;
|
|
12
|
-
|
|
13
|
-
@interface ADYCashTransactionRequest : NSObject
|
|
14
|
-
|
|
15
|
-
/** The currency to use on the transaction. */
|
|
16
|
-
@property (nonatomic, strong) NSString *currency;
|
|
17
|
-
|
|
18
|
-
/** The amount to process on the transaction in minor units (cents). */
|
|
19
|
-
@property (nonatomic, strong) NSNumber *amount;
|
|
20
|
-
|
|
21
|
-
/** The (merchant) reference for the transacion */
|
|
22
|
-
@property (nonatomic, strong) NSString *reference;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Starts the Cash transaction asynchronous request and invokes the `completion` block when finished.
|
|
26
|
-
*
|
|
27
|
-
* If something went wrong during the request, the error object will contain the details.
|
|
28
|
-
*
|
|
29
|
-
* If the `result` object is not nil, the request was successfull. The `finalState` will indicate
|
|
30
|
-
* whether the transaction was APPROVED, DECLINED or ERROR. Check the `declineInfo` and `errorInfo` properties
|
|
31
|
-
* for more info.
|
|
32
|
-
*/
|
|
33
|
-
- (void)startWithCompletion:(void (^)(ADYTransactionData *result, NSError *error))completion;
|
|
34
|
-
|
|
35
|
-
@end
|