@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.
Files changed (163) hide show
  1. package/android/src/main/java/com/aptos/scp/paymentterminal/adyen/AdyenPaymentTerminal.java +69 -0
  2. package/ios/AurusEnterpriseSDK.framework/AurusEnterpriseSDK +0 -0
  3. package/ios/AurusEnterpriseSDK.framework/Headers/AurusEnterpriseSDK.h +97 -95
  4. package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit +0 -0
  5. package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/Info.plist +0 -0
  6. package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/VersionInfo.plist +0 -0
  7. package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.2.mom +0 -0
  8. package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.3.mom +0 -0
  9. package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.4.mom +0 -0
  10. package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.4.omo +0 -0
  11. package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.10.mom +0 -0
  12. package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.8.6.mom +0 -0
  13. package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit v1.9.mom +0 -0
  14. package/ios/Frameworks/Adyen/AdyenToolkit.framework/AdyenToolkit.bundle/adyentoolkit.momd/adyentoolkit.mom +0 -0
  15. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAccountData.h +26 -0
  16. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAdditionalDataRequest.h +38 -0
  17. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAmount.h +16 -0
  18. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYAppData.h +26 -0
  19. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYBalance.h +13 -0
  20. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYCashTransactionRequest.h +35 -0
  21. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYConstants.h +688 -0
  22. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYCurrency.h +33 -0
  23. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDevice.h +308 -0
  24. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDeviceData.h +52 -0
  25. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDeviceManagerDelegate.h +66 -0
  26. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDeviceRegistry.h +125 -0
  27. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYDynamicCurrencyConversionData.h +22 -0
  28. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYErrors.h +153 -0
  29. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCard.h +41 -0
  30. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardBalanceRequest.h +50 -0
  31. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardBalanceResponse.h +38 -0
  32. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardLoadRequest.h +78 -0
  33. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardLoadRequestDelegate.h +25 -0
  34. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardLoadResponse.h +31 -0
  35. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardMask.h +31 -0
  36. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYGiftCardRequest.h +13 -0
  37. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYLocationManager.h +14 -0
  38. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYLoginDelegate.h +80 -0
  39. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYPrintReceiptRequest.h +57 -0
  40. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYReceipt.h +33 -0
  41. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYReceiptLine.h +92 -0
  42. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYReferralRequest.h +16 -0
  43. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYRefundData.h +54 -0
  44. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYServerSynchronization.h +18 -0
  45. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYSignatureRequest.h +117 -0
  46. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYSpecialTransactionRequest.h +63 -0
  47. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYToneGenerator.h +45 -0
  48. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionData.h +416 -0
  49. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionDetails.h +45 -0
  50. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionProcessorDelegate.h +279 -0
  51. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYTransactionRequest.h +108 -0
  52. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/ADYUIKit.h +30 -0
  53. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/Adyen.h +591 -0
  54. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/AdyenToolkit-umbrella.h +59 -0
  55. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/AdyenToolkit.h +79 -0
  56. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/NSData+ADY.h +31 -0
  57. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/NSString+ADY.h +19 -0
  58. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Headers/adylog.h +176 -0
  59. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Info.plist +0 -0
  60. package/ios/Frameworks/Adyen/AdyenToolkit.framework/Modules/module.modulemap +6 -0
  61. package/ios/SCPRNDeviceServices/Adyen/AdyenConstants.h +40 -0
  62. package/ios/SCPRNDeviceServices/Adyen/AdyenConstants.m +28 -0
  63. package/ios/SCPRNDeviceServices/Adyen/AdyenDelegate.h +23 -0
  64. package/ios/SCPRNDeviceServices/Adyen/AdyenDelegate.m +15 -0
  65. package/ios/SCPRNDeviceServices/Adyen/AdyenDeviceManagerDelegate.h +19 -0
  66. package/ios/SCPRNDeviceServices/Adyen/AdyenDeviceManagerDelegate.m +31 -0
  67. package/ios/SCPRNDeviceServices/Adyen/AdyenLoginDelegate.h +19 -0
  68. package/ios/SCPRNDeviceServices/Adyen/AdyenLoginDelegate.m +26 -0
  69. package/ios/SCPRNDeviceServices/Adyen/AdyenTransactionProcessorDelegate.h +26 -0
  70. package/ios/SCPRNDeviceServices/Adyen/AdyenTransactionProcessorDelegate.m +148 -0
  71. package/ios/SCPRNDeviceServices/AdyenPaymentTerminal.h +19 -0
  72. package/ios/SCPRNDeviceServices/AdyenPaymentTerminal.m +457 -22
  73. package/ios/SCPRNDeviceServices/AurusPaymentTerminal.m +96 -11
  74. package/ios/SCPRNDeviceServices/VendorPaymentTerminal.m +1 -1
  75. package/ios/SCPRNDeviceServices.xcodeproj/project.pbxproj +56 -0
  76. package/lib/AdyenDevice/AdyenDevice.d.ts +56 -0
  77. package/lib/AdyenDevice/AdyenDevice.js +349 -0
  78. package/lib/AdyenDevice/AdyenDevice.js.map +1 -0
  79. package/lib/AdyenDevice/constants.d.ts +12 -0
  80. package/lib/AdyenDevice/constants.js +228 -0
  81. package/lib/AdyenDevice/constants.js.map +1 -0
  82. package/lib/AdyenDevice/index.d.ts +1 -0
  83. package/lib/AdyenDevice/index.js +7 -0
  84. package/lib/AdyenDevice/index.js.map +1 -0
  85. package/lib/AdyenDevice/interfaces.d.ts +175 -0
  86. package/lib/AdyenDevice/interfaces.js +3 -0
  87. package/lib/AdyenDevice/interfaces.js.map +1 -0
  88. package/lib/AurusDevice/AurusDevice.d.ts +102 -0
  89. package/lib/AurusDevice/AurusDevice.js +730 -0
  90. package/lib/AurusDevice/AurusDevice.js.map +1 -0
  91. package/lib/AurusDevice/constants.d.ts +85 -33
  92. package/lib/AurusDevice/constants.js +115 -37
  93. package/lib/AurusDevice/constants.js.map +1 -1
  94. package/lib/AurusDevice/index.d.ts +1 -1
  95. package/lib/AurusDevice/index.js +1 -1
  96. package/lib/AurusDevice/index.js.map +1 -1
  97. package/lib/AurusDevice/sdk-interface/AESDKRegistration.d.ts +10 -9
  98. package/lib/AurusDevice/sdk-interface/AESDKRegistration.js +0 -6
  99. package/lib/AurusDevice/sdk-interface/AESDKRegistration.js.map +1 -1
  100. package/lib/AurusDevice/sdk-interface/AurusPaymentSupport.d.ts +5 -5
  101. package/lib/AurusDevice/sdk-interface/AurusPaymentSupport.js +143 -107
  102. package/lib/AurusDevice/sdk-interface/AurusPaymentSupport.js.map +1 -1
  103. package/lib/AurusDevice/sdk-interface/Barcode.d.ts +16 -0
  104. package/lib/AurusDevice/sdk-interface/Barcode.js +3 -0
  105. package/lib/AurusDevice/sdk-interface/Barcode.js.map +1 -0
  106. package/lib/AurusDevice/sdk-interface/ByPassScreen.d.ts +25 -0
  107. package/lib/AurusDevice/sdk-interface/ByPassScreen.js +9 -0
  108. package/lib/AurusDevice/sdk-interface/ByPassScreen.js.map +1 -0
  109. package/lib/AurusDevice/sdk-interface/CancelTransaction.d.ts +11 -10
  110. package/lib/AurusDevice/sdk-interface/CancelTransaction.js +0 -6
  111. package/lib/AurusDevice/sdk-interface/CancelTransaction.js.map +1 -1
  112. package/lib/AurusDevice/sdk-interface/GetCardBinRequest.d.ts +14 -12
  113. package/lib/AurusDevice/sdk-interface/PLCCApplication.d.ts +12 -11
  114. package/lib/AurusDevice/sdk-interface/PLCCApplication.js +0 -6
  115. package/lib/AurusDevice/sdk-interface/PLCCApplication.js.map +1 -1
  116. package/lib/AurusDevice/sdk-interface/TransactionRequest.d.ts +44 -48
  117. package/lib/AurusDevice/sdk-interface/TransactionRequest.js +0 -6
  118. package/lib/AurusDevice/sdk-interface/TransactionRequest.js.map +1 -1
  119. package/lib/AurusDevice/sdk-interface/Upgrade.d.ts +23 -0
  120. package/lib/AurusDevice/sdk-interface/Upgrade.js +9 -0
  121. package/lib/AurusDevice/sdk-interface/Upgrade.js.map +1 -0
  122. package/lib/AurusDevice/sdk-interface/XmlElementString.d.ts +3 -0
  123. package/lib/AurusDevice/sdk-interface/XmlElementString.js +3 -0
  124. package/lib/AurusDevice/sdk-interface/XmlElementString.js.map +1 -0
  125. package/lib/AurusDevice/sdk-interface/index.d.ts +3 -0
  126. package/lib/PaymentDeviceFactory.d.ts +5 -5
  127. package/lib/PaymentDeviceFactory.js +16 -22
  128. package/lib/PaymentDeviceFactory.js.map +1 -1
  129. package/lib/PaymentDeviceService.d.ts +13 -12
  130. package/lib/PaymentDeviceService.js +114 -71
  131. package/lib/PaymentDeviceService.js.map +1 -1
  132. package/lib/ScannerDeviceFactory.d.ts +11 -0
  133. package/lib/ScannerDeviceFactory.js +27 -0
  134. package/lib/ScannerDeviceFactory.js.map +1 -0
  135. package/lib/ScannerDeviceService.d.ts +13 -0
  136. package/lib/ScannerDeviceService.js +110 -0
  137. package/lib/ScannerDeviceService.js.map +1 -0
  138. package/lib/configs/inversify/inversify.config.d.ts +3 -0
  139. package/lib/configs/inversify/inversify.config.js +15 -0
  140. package/lib/configs/inversify/inversify.config.js.map +1 -0
  141. package/lib/constants/constants.d.ts +62 -38
  142. package/lib/constants/constants.js +64 -42
  143. package/lib/constants/constants.js.map +1 -1
  144. package/lib/index.d.ts +1 -0
  145. package/lib/index.js +1 -0
  146. package/lib/index.js.map +1 -1
  147. package/lib/interfaces/IDeviceStatus.d.ts +1 -0
  148. package/lib/interfaces/index.d.ts +1 -0
  149. package/lib/interfaces/payment/IPayment.d.ts +17 -18
  150. package/lib/interfaces/payment/messages/requests.d.ts +2 -3
  151. package/lib/interfaces/payment/messages/responses.d.ts +13 -6
  152. package/lib/interfaces/scanner/IScanner.d.ts +23 -0
  153. package/lib/interfaces/scanner/IScanner.js +3 -0
  154. package/lib/interfaces/scanner/IScanner.js.map +1 -0
  155. package/lib/interfaces/scanner/index.d.ts +1 -0
  156. package/lib/interfaces/scanner/index.js +3 -0
  157. package/lib/interfaces/scanner/index.js.map +1 -0
  158. package/package.json +11 -9
  159. package/types/react-native-xml2js/index.d.ts +5 -0
  160. package/lib/AurusDevice/AurusPaymentDevice.d.ts +0 -77
  161. package/lib/AurusDevice/AurusPaymentDevice.js +0 -473
  162. package/lib/AurusDevice/AurusPaymentDevice.js.map +0 -1
  163. package/types/money-works/index.d.ts +0 -49
@@ -48,6 +48,75 @@ public class AdyenPaymentTerminal extends VendorPaymentTerminal {
48
48
  final Map<String, Object> constants = new HashMap<>();
49
49
  constants.put(native_exampleResponse1_name, native_exampleResponse1);
50
50
  constants.put(native_exampleResponse2_name, native_exampleResponse2);
51
+
52
+ final Map<String, Object> adyenConstants = new HashMap<>();
53
+ final Map<String, Object> device = new HashMap<>();
54
+ device.put("Initializing", 0);
55
+ device.put("Initialized", 0);
56
+ device.put("NotBoarded", 0);
57
+ device.put("Error", 0);
58
+ device.put("Stopped", 0);
59
+ device.put("Gone", 0);
60
+
61
+ final Map<String, Object> login = new HashMap<>();
62
+ login.put("LoggedIn", 0);
63
+ login.put("LoggedOut", 0);
64
+ login.put("LoggingIn", 0);
65
+ login.put("LoggingOut", 0);
66
+
67
+ final Map<String, Object> retrieveDevice = new HashMap<>();
68
+ retrieveDevice.put("Failure", 0);
69
+ retrieveDevice.put("Success", 0);
70
+
71
+ final Map<String, Object> status = new HashMap<>();
72
+ status.put("Device", device);
73
+ status.put("Login", login);
74
+ status.put("RetrieveDevice", retrieveDevice);
75
+
76
+ adyenConstants.put("Status", status);
77
+
78
+ final Map<String, Object> transactionTypes = new HashMap<>();
79
+ transactionTypes.put("GoodsServices", 0);
80
+ transactionTypes.put("Refund", 0);
81
+ transactionTypes.put("Cash", 0);
82
+
83
+ adyenConstants.put("TransactionTypes", transactionTypes);
84
+
85
+ final Map<String, Object> finalTenderStates = new HashMap<>();
86
+ finalTenderStates.put("NotFinal", 0);
87
+ finalTenderStates.put("Approved", 0);
88
+ finalTenderStates.put("Declined", 0);
89
+ finalTenderStates.put("Cancelled", 0);
90
+ finalTenderStates.put("Error", 0);
91
+ finalTenderStates.put("Unknown", 0);
92
+
93
+ adyenConstants.put("FinalTenderStates", finalTenderStates);
94
+
95
+ final Map<String, Object> cardScheme = new HashMap<>();
96
+ cardScheme.put("Error", 0);
97
+ cardScheme.put("VisaVisa", 0);
98
+ cardScheme.put("VisaElectron", 0);
99
+ cardScheme.put("VisaVPay", 0);
100
+ cardScheme.put("VisaPlus", 0);
101
+ cardScheme.put("VisaDankort", 0);
102
+ cardScheme.put("MasterCardDebit", 0);
103
+ cardScheme.put("MasterCardMaestro", 0);
104
+ cardScheme.put("MasterCardMaestroUK", 0);
105
+ cardScheme.put("MasterCardMasterCard", 0);
106
+ cardScheme.put("AmericanExpress", 0);
107
+ cardScheme.put("JCB", 0);
108
+ cardScheme.put("DinersClub", 0);
109
+ cardScheme.put("Dankort", 0);
110
+ cardScheme.put("Discover", 0);
111
+ cardScheme.put("Laser", 0);
112
+ cardScheme.put("BCMC", 0);
113
+ cardScheme.put("Solo", 0);
114
+ cardScheme.put("Bijenkorf", 0);
115
+ cardScheme.put("CUP", 0);
116
+
117
+ adyenConstants.put("CardScheme", cardScheme);
118
+ constants.put("AdyenConstants", adyenConstants);
119
+
51
120
  return constants;
52
121
  }
53
122
  }
@@ -1,96 +1,98 @@
1
- //
2
- // AurusEnterpriseSDK.h
3
- //
4
- // Created by Vinay Kole on 18/3/16.
5
- // Copyright (c) 2016 Aurus. All rights reserved.
6
- //
7
-
8
- #import <Foundation/Foundation.h>
9
- //#import <UIKit/UIKit.h>
10
-
11
-
12
- @protocol AESDKProtocols <NSObject>
13
-
14
- -(void)onAESDKResponse:(NSString *)withResponse;
15
-
16
- @end
17
-
18
-
19
-
20
- @interface AurusEnterpriseSDK : NSObject
21
-
22
- -(void)OnAESDKProcessRequest:(NSString*)WithRequest;
23
- -(void)OnAESDKSetEncMessage:(NSString*)withMessage;
24
-
25
- @property(nonatomic,retain)id setAESDKDelegateRefference;
26
-
27
- #pragma mark- Utility Methods
28
-
29
- /**
30
- Get application unique ID
31
-
32
- @return NSString applicationUniqueID
33
- */
34
- -(NSString *)getApplicationUniqueID;
35
-
36
- /**
37
- Log file details
38
-
39
- @return NSMutableDictionary log file details
40
- */
41
- -(NSMutableDictionary *)getLogFileDetails;
42
-
43
-
44
- /**
45
- Initialize AurusEnterpriseSDK with blocking mode.
46
- This method should call only once.
47
-
48
- @param isBlockingMode set YES to executes pinpad commands on main thread.
49
- @return AurusEnterpriseSDK instance
50
-
51
- @code
52
- //To execute Pinpad commands in background thread.
53
- AurusEnterpriseSDK *aesdk = [[AurusEnterpriseSDK alloc] initWithPEDBlockingMode:NO];
54
- @endcode
55
-
56
- */
57
- -(id)initWithPEDBlockingMode:(BOOL)isBlockingMode;
58
-
59
-
60
-
61
- /**
62
- Pinpad logs are enabled or not
63
-
64
- @return BOOL YES when Pinpad logs are enabled otherwise returns NO.
65
- */
66
- -(BOOL)isPEDLogEnabled;
67
-
68
-
69
- typedef enum {
70
- EventProcessingRequest = 501,
71
- EventSwipeOrInsertOrTap,
72
- EventEnterManualCardEntry,
73
- EventProcessing,
74
- EventCardAuthorization,
75
- EventEnterPIN,
76
- EventEnterZIP,
77
- EventEnterSSN,
78
- EventEnterSIN,
79
- EventEnterAnnualDebitIncome,
80
- EventEnterMonthlyDebitIncome,
81
- EventEnterPhoneNumber,
82
- EventEnterPasscode,
83
- EventEnterExpiryDate,
84
- EventEnterCVV,
85
- EventEnterTIP,
86
- //EventConfirmProcessAsCredit, //Debit to Credit Confirmation.
87
- EventConfirmation,
88
- EventProcessingTransaction,
89
-
90
-
91
- EventNone = 0
92
-
93
- }NotificationEvent;
94
-
95
-
1
+ //
2
+ // AurusEnterpriseSDK.h
3
+ //
4
+ // Created by Aurus on 18/3/16.
5
+ // Copyright (c) 2016 Aurus. All rights reserved.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+
11
+ @protocol AESDKProtocols <NSObject>
12
+
13
+ -(void)onAESDKResponse:(NSString *)withResponse;
14
+
15
+ @optional
16
+ -(void)onAESDKLogResponse: (NSString *)withResponse;
17
+
18
+ @end
19
+
20
+
21
+ @interface AurusEnterpriseSDK : NSObject
22
+
23
+ typedef void(^onAESDKCompletionResponse)(NSString *xmlResponse);
24
+ @property (atomic,copy) void(^onAESDKCompletionResponse)(NSString *xmlResponse);
25
+
26
+ @property(nonatomic,retain)id setAESDKDelegateRefference;
27
+
28
+ //BY this Method Calling the Response of AESDK will get in onAESDKResponse Delegate Method
29
+ -(void)OnAESDKProcessRequest:(NSString *)xmlRequest;
30
+
31
+ //BY this Method Calling the Response of AESDK will get Completion Handler.
32
+ -(void)OnAESDKProcessRequest:(NSString *)xmlRequest onCompletion:(onAESDKCompletionResponse)completionBlock;
33
+
34
+
35
+ //BY this Method Calling the Response of AESDK will get in onAESDKLogResponse Delegate Method
36
+ -(void)OnAESDKLogProcessRequest;
37
+
38
+ ///
39
+
40
+
41
+ #pragma mark- Utility Methods
42
+
43
+
44
+ /**
45
+ Log file details
46
+
47
+ @return NSMutableDictionary log file details
48
+ */
49
+ -(NSMutableDictionary *)getLogFileDetails;
50
+
51
+ typedef enum {
52
+ EventSwipeOrInsertOrTap = 501, // Notify when insert/swipe prompt on swiper device.
53
+ EventEnterManualCardEntry, // Notify Manual entry prompt on swiper device.
54
+ EventProcessing, // Notify
55
+ EventEnterPIN, // Notify when Pin prompt appears on Swiper device
56
+ EventEnterZIP, // Notify when Zip prompt appears on Swiper device
57
+ EventEnterSSN, // Notify when SSN prompt appears on Swiper device
58
+ EventEnterDOB,
59
+ EventEnterAnnualIncome,
60
+ EventEnterExpiryDate, // Notify when ExpiryDate prompt appears on Swiper device
61
+ EventEnterCVV, // Notify when CVV prompt appears on Swiper device
62
+ EventEnterTIP, // Notify when TIP prompt appears on Swiper device
63
+ EventConfirmation, // Notify when Confirmation prompt appears on Swiper device
64
+ EventProcessingTransaction, // Notify when Processing Transaction Request
65
+
66
+ //E355 Device Events
67
+ EventBarcodeInformation, // Notify when device reads barcode data
68
+ EventDeviceNotConnected, // Notify when device not connected
69
+ EventDeviceConnecting, // Notify when device is in connecting state but not connected yet
70
+ EventDeviceConnected, // Notify when device is connected
71
+ EventDeviceConfigurationStarted, // Notify when EMV Configuration started
72
+ EventDeviceConfigurationCompleted, // Notify when EMV Configuration Completed
73
+ EventDeviceConfigurationFailed, // Notify when EMV Configuration failed
74
+ EventDeviceAlreadyConfigured, // Notify when EMV Configuration already configured.
75
+ EventFileDownloadProgress, // Notify when File downloading is in progress.
76
+ EventFileDownloadFailed, // Notify when File downloading Failed.
77
+ EventFileDownloadRetry, // Notify when File download retrying.
78
+ EventFileUploadProgress, // Notify when File uploading is in progress.
79
+ EventFileUploadFailed, // Notify when File uploading Failed.
80
+ EventFileUploadRetry, // Notify when File upload retrying.
81
+ EventPEDFileUpgrade, // Notify when File upgrade process running on PED device.
82
+ EventPEDFileUpgradeFailed, // Notify when File upgrades/pushed failed.
83
+ EventPEDFileUpgradeCompleted, // Notify when File upgrades/pushed Completed.
84
+ EventPEDFileTransferInfo, // Notify with transfer details.
85
+ EventPEDFileTransferProgress, // Notify with file transfer progress
86
+
87
+ EventCaptureSignatureOnPOS,
88
+ EventNone = 0
89
+
90
+ }NotificationEvent;
91
+
92
+
93
+ typedef enum {
94
+ POSEventSignatureDetails = 401
95
+
96
+ }POSNotificationEvent;
97
+
96
98
  @end
@@ -0,0 +1,26 @@
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
@@ -0,0 +1,38 @@
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
@@ -0,0 +1,16 @@
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
@@ -0,0 +1,26 @@
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
@@ -0,0 +1,13 @@
1
+ //
2
+ // ADYBalance.h
3
+ // Pods
4
+ //
5
+ // Created by Oleg Lutsenko on 3/1/17.
6
+ //
7
+ //
8
+
9
+ #import "ADYAmount.h"
10
+
11
+ @interface ADYBalance : ADYAmount
12
+
13
+ @end
@@ -0,0 +1,35 @@
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