globalpayments-api 2.0.0 → 2.0.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.
Files changed (502) hide show
  1. package/lib/src/Builders/AuthorizationBuilder.d.ts +325 -0
  2. package/lib/src/Builders/AuthorizationBuilder.js +601 -0
  3. package/lib/src/Builders/AuthorizationBuilder.js.map +1 -0
  4. package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +14 -0
  5. package/lib/src/Builders/BaseBuilder/ValidationClause.js +62 -0
  6. package/lib/src/Builders/BaseBuilder/ValidationClause.js.map +1 -0
  7. package/lib/src/Builders/BaseBuilder/ValidationTarget.d.ts +16 -0
  8. package/lib/src/Builders/BaseBuilder/ValidationTarget.js +29 -0
  9. package/lib/src/Builders/BaseBuilder/ValidationTarget.js.map +1 -0
  10. package/lib/src/Builders/BaseBuilder/Validations.d.ts +11 -0
  11. package/lib/src/Builders/BaseBuilder/Validations.js +57 -0
  12. package/lib/src/Builders/BaseBuilder/Validations.js.map +1 -0
  13. package/lib/src/Builders/BaseBuilder.d.ts +11 -0
  14. package/lib/src/Builders/BaseBuilder.js +17 -0
  15. package/lib/src/Builders/BaseBuilder.js.map +1 -0
  16. package/lib/src/Builders/ManagementBuilder.d.ts +103 -0
  17. package/lib/src/Builders/ManagementBuilder.js +228 -0
  18. package/lib/src/Builders/ManagementBuilder.js.map +1 -0
  19. package/lib/src/Builders/PayFacBuilder.d.ts +96 -0
  20. package/lib/src/Builders/PayFacBuilder.js +185 -0
  21. package/lib/src/Builders/PayFacBuilder.js.map +1 -0
  22. package/lib/src/Builders/RecurringBuilder.d.ts +13 -0
  23. package/lib/src/Builders/RecurringBuilder.js +48 -0
  24. package/lib/src/Builders/RecurringBuilder.js.map +1 -0
  25. package/lib/src/Builders/ReportBuilder.d.ts +8 -0
  26. package/lib/src/Builders/ReportBuilder.js +37 -0
  27. package/lib/src/Builders/ReportBuilder.js.map +1 -0
  28. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.d.ts +22 -0
  29. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js +160 -0
  30. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js.map +1 -0
  31. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.d.ts +6 -0
  32. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js +24 -0
  33. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js.map +1 -0
  34. package/lib/src/Builders/RequestBuilder/GpEcom/index.d.ts +2 -0
  35. package/lib/src/Builders/RequestBuilder/GpEcom/index.js +15 -0
  36. package/lib/src/Builders/RequestBuilder/GpEcom/index.js.map +1 -0
  37. package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +6 -0
  38. package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +30 -0
  39. package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +1 -0
  40. package/lib/src/Builders/RequestBuilder/index.d.ts +2 -0
  41. package/lib/src/Builders/RequestBuilder/index.js +15 -0
  42. package/lib/src/Builders/RequestBuilder/index.js.map +1 -0
  43. package/lib/src/Builders/TransactionBuilder.d.ts +10 -0
  44. package/lib/src/Builders/TransactionBuilder.js +47 -0
  45. package/lib/src/Builders/TransactionBuilder.js.map +1 -0
  46. package/lib/src/Builders/TransactionReportBuilder.d.ts +15 -0
  47. package/lib/src/Builders/TransactionReportBuilder.js +80 -0
  48. package/lib/src/Builders/TransactionReportBuilder.js.map +1 -0
  49. package/lib/src/Builders/index.d.ts +8 -0
  50. package/lib/src/Builders/index.js +21 -0
  51. package/lib/src/Builders/index.js.map +1 -0
  52. package/lib/src/ConfiguredServices.d.ts +22 -0
  53. package/lib/src/ConfiguredServices.js +57 -0
  54. package/lib/src/ConfiguredServices.js.map +1 -0
  55. package/lib/src/Entities/Address.d.ts +13 -0
  56. package/lib/src/Entities/Address.js +20 -0
  57. package/lib/src/Entities/Address.js.map +1 -0
  58. package/lib/src/Entities/BatchSummary.d.ts +6 -0
  59. package/lib/src/Entities/BatchSummary.js +10 -0
  60. package/lib/src/Entities/BatchSummary.js.map +1 -0
  61. package/lib/src/Entities/Customer.d.ts +64 -0
  62. package/lib/src/Entities/Customer.js +48 -0
  63. package/lib/src/Entities/Customer.js.map +1 -0
  64. package/lib/src/Entities/DocumentUploadData.d.ts +13 -0
  65. package/lib/src/Entities/DocumentUploadData.js +49 -0
  66. package/lib/src/Entities/DocumentUploadData.js.map +1 -0
  67. package/lib/src/Entities/EcommerceInfo.d.ts +12 -0
  68. package/lib/src/Entities/EcommerceInfo.js +15 -0
  69. package/lib/src/Entities/EcommerceInfo.js.map +1 -0
  70. package/lib/src/Entities/EncryptionData.d.ts +6 -0
  71. package/lib/src/Entities/EncryptionData.js +10 -0
  72. package/lib/src/Entities/EncryptionData.js.map +1 -0
  73. package/lib/src/Entities/Enums.d.ts +373 -0
  74. package/lib/src/Entities/Enums.js +498 -0
  75. package/lib/src/Entities/Enums.js.map +1 -0
  76. package/lib/src/Entities/Errors.d.ts +23 -0
  77. package/lib/src/Entities/Errors.js +107 -0
  78. package/lib/src/Entities/Errors.js.map +1 -0
  79. package/lib/src/Entities/HostedPaymentData.d.ts +10 -0
  80. package/lib/src/Entities/HostedPaymentData.js +11 -0
  81. package/lib/src/Entities/HostedPaymentData.js.map +1 -0
  82. package/lib/src/Entities/IRequestBuilder.d.ts +7 -0
  83. package/lib/src/Entities/IRequestBuilder.js +3 -0
  84. package/lib/src/Entities/IRequestBuilder.js.map +1 -0
  85. package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +7 -0
  86. package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +10 -0
  87. package/lib/src/Entities/ProFac/AccountBalanceResponseData.js.map +1 -0
  88. package/lib/src/Entities/ProFac/AccountPermissions.d.ts +15 -0
  89. package/lib/src/Entities/ProFac/AccountPermissions.js +10 -0
  90. package/lib/src/Entities/ProFac/AccountPermissions.js.map +1 -0
  91. package/lib/src/Entities/ProFac/BankAccountData.d.ts +10 -0
  92. package/lib/src/Entities/ProFac/BankAccountData.js +10 -0
  93. package/lib/src/Entities/ProFac/BankAccountData.js.map +1 -0
  94. package/lib/src/Entities/ProFac/BankAccountOwnershipData.d.ts +8 -0
  95. package/lib/src/Entities/ProFac/BankAccountOwnershipData.js +12 -0
  96. package/lib/src/Entities/ProFac/BankAccountOwnershipData.js.map +1 -0
  97. package/lib/src/Entities/ProFac/BeneficialOwnerData.d.ts +6 -0
  98. package/lib/src/Entities/ProFac/BeneficialOwnerData.js +11 -0
  99. package/lib/src/Entities/ProFac/BeneficialOwnerData.js.map +1 -0
  100. package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.d.ts +5 -0
  101. package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js +10 -0
  102. package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js.map +1 -0
  103. package/lib/src/Entities/ProFac/BusinessData.d.ts +14 -0
  104. package/lib/src/Entities/ProFac/BusinessData.js +12 -0
  105. package/lib/src/Entities/ProFac/BusinessData.js.map +1 -0
  106. package/lib/src/Entities/ProFac/DeviceAttributeInfo.d.ts +4 -0
  107. package/lib/src/Entities/ProFac/DeviceAttributeInfo.js +10 -0
  108. package/lib/src/Entities/ProFac/DeviceAttributeInfo.js.map +1 -0
  109. package/lib/src/Entities/ProFac/DeviceData.d.ts +5 -0
  110. package/lib/src/Entities/ProFac/DeviceData.js +11 -0
  111. package/lib/src/Entities/ProFac/DeviceData.js.map +1 -0
  112. package/lib/src/Entities/ProFac/DeviceInfo.d.ts +6 -0
  113. package/lib/src/Entities/ProFac/DeviceInfo.js +10 -0
  114. package/lib/src/Entities/ProFac/DeviceInfo.js.map +1 -0
  115. package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.d.ts +7 -0
  116. package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js +14 -0
  117. package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js.map +1 -0
  118. package/lib/src/Entities/ProFac/GrossBillingInformation.d.ts +8 -0
  119. package/lib/src/Entities/ProFac/GrossBillingInformation.js +10 -0
  120. package/lib/src/Entities/ProFac/GrossBillingInformation.js.map +1 -0
  121. package/lib/src/Entities/ProFac/OrderDevice.d.ts +18 -0
  122. package/lib/src/Entities/ProFac/OrderDevice.js +10 -0
  123. package/lib/src/Entities/ProFac/OrderDevice.js.map +1 -0
  124. package/lib/src/Entities/ProFac/OwnersData.d.ts +12 -0
  125. package/lib/src/Entities/ProFac/OwnersData.js +12 -0
  126. package/lib/src/Entities/ProFac/OwnersData.js.map +1 -0
  127. package/lib/src/Entities/ProFac/PayFacResponseData.d.ts +55 -0
  128. package/lib/src/Entities/ProFac/PayFacResponseData.js +10 -0
  129. package/lib/src/Entities/ProFac/PayFacResponseData.js.map +1 -0
  130. package/lib/src/Entities/ProFac/RenewAccountData.d.ts +10 -0
  131. package/lib/src/Entities/ProFac/RenewAccountData.js +12 -0
  132. package/lib/src/Entities/ProFac/RenewAccountData.js.map +1 -0
  133. package/lib/src/Entities/ProFac/SignificantOwnerData.d.ts +8 -0
  134. package/lib/src/Entities/ProFac/SignificantOwnerData.js +12 -0
  135. package/lib/src/Entities/ProFac/SignificantOwnerData.js.map +1 -0
  136. package/lib/src/Entities/ProFac/ThreatRiskData.d.ts +5 -0
  137. package/lib/src/Entities/ProFac/ThreatRiskData.js +10 -0
  138. package/lib/src/Entities/ProFac/ThreatRiskData.js.map +1 -0
  139. package/lib/src/Entities/ProFac/UserPersonalData.d.ts +26 -0
  140. package/lib/src/Entities/ProFac/UserPersonalData.js +15 -0
  141. package/lib/src/Entities/ProFac/UserPersonalData.js.map +1 -0
  142. package/lib/src/Entities/RecurringEntity.d.ts +14 -0
  143. package/lib/src/Entities/RecurringEntity.js +87 -0
  144. package/lib/src/Entities/RecurringEntity.js.map +1 -0
  145. package/lib/src/Entities/Request.d.ts +9 -0
  146. package/lib/src/Entities/Request.js +15 -0
  147. package/lib/src/Entities/Request.js.map +1 -0
  148. package/lib/src/Entities/SSORequestData.d.ts +5 -0
  149. package/lib/src/Entities/SSORequestData.js +10 -0
  150. package/lib/src/Entities/SSORequestData.js.map +1 -0
  151. package/lib/src/Entities/Schedule.d.ts +47 -0
  152. package/lib/src/Entities/Schedule.js +254 -0
  153. package/lib/src/Entities/Schedule.js.map +1 -0
  154. package/lib/src/Entities/ServiceEndpoints.d.ts +4 -0
  155. package/lib/src/Entities/ServiceEndpoints.js +9 -0
  156. package/lib/src/Entities/ServiceEndpoints.js.map +1 -0
  157. package/lib/src/Entities/Transaction.d.ts +78 -0
  158. package/lib/src/Entities/Transaction.js +109 -0
  159. package/lib/src/Entities/Transaction.js.map +1 -0
  160. package/lib/src/Entities/TransactionSummary.d.ts +61 -0
  161. package/lib/src/Entities/TransactionSummary.js +10 -0
  162. package/lib/src/Entities/TransactionSummary.js.map +1 -0
  163. package/lib/src/Entities/index.d.ts +15 -0
  164. package/lib/src/Entities/index.js +28 -0
  165. package/lib/src/Entities/index.js.map +1 -0
  166. package/lib/src/Gateways/Gateway.d.ts +10 -0
  167. package/lib/src/Gateways/Gateway.js +43 -0
  168. package/lib/src/Gateways/Gateway.js.map +1 -0
  169. package/lib/src/Gateways/GpEcomConnector.d.ts +36 -0
  170. package/lib/src/Gateways/GpEcomConnector.js +557 -0
  171. package/lib/src/Gateways/GpEcomConnector.js.map +1 -0
  172. package/lib/src/Gateways/IPayFacProvider.d.ts +5 -0
  173. package/lib/src/Gateways/IPayFacProvider.js +3 -0
  174. package/lib/src/Gateways/IPayFacProvider.js.map +1 -0
  175. package/lib/src/Gateways/IPaymentGateway.d.ts +8 -0
  176. package/lib/src/Gateways/IPaymentGateway.js +3 -0
  177. package/lib/src/Gateways/IPaymentGateway.js.map +1 -0
  178. package/lib/src/Gateways/IRecurringService.d.ts +6 -0
  179. package/lib/src/Gateways/IRecurringService.js +3 -0
  180. package/lib/src/Gateways/IRecurringService.js.map +1 -0
  181. package/lib/src/Gateways/PayPlanConnector.d.ts +42 -0
  182. package/lib/src/Gateways/PayPlanConnector.js +553 -0
  183. package/lib/src/Gateways/PayPlanConnector.js.map +1 -0
  184. package/lib/src/Gateways/PorticoConnector.d.ts +44 -0
  185. package/lib/src/Gateways/PorticoConnector.js +1018 -0
  186. package/lib/src/Gateways/PorticoConnector.js.map +1 -0
  187. package/lib/src/Gateways/ProPayConnector.d.ts +41 -0
  188. package/lib/src/Gateways/ProPayConnector.js +695 -0
  189. package/lib/src/Gateways/ProPayConnector.js.map +1 -0
  190. package/lib/src/Gateways/RealexConnector.d.ts +30 -0
  191. package/lib/src/Gateways/RealexConnector.js +524 -0
  192. package/lib/src/Gateways/RealexConnector.js.map +1 -0
  193. package/lib/src/Gateways/RestGateway.d.ts +6 -0
  194. package/lib/src/Gateways/RestGateway.js +32 -0
  195. package/lib/src/Gateways/RestGateway.js.map +1 -0
  196. package/lib/src/Gateways/XmlGateway.d.ts +6 -0
  197. package/lib/src/Gateways/XmlGateway.js +38 -0
  198. package/lib/src/Gateways/XmlGateway.js.map +1 -0
  199. package/lib/src/Gateways/https-wrapper.d.ts +3 -0
  200. package/lib/src/Gateways/https-wrapper.js +36 -0
  201. package/lib/src/Gateways/https-wrapper.js.map +1 -0
  202. package/lib/src/Gateways/index.d.ts +8 -0
  203. package/lib/src/Gateways/index.js +21 -0
  204. package/lib/src/Gateways/index.js.map +1 -0
  205. package/lib/src/HostedPaymentConfig.d.ts +12 -0
  206. package/lib/src/HostedPaymentConfig.js +10 -0
  207. package/lib/src/HostedPaymentConfig.js.map +1 -0
  208. package/lib/src/Mapping/GpEcomMapping.d.ts +9 -0
  209. package/lib/src/Mapping/GpEcomMapping.js +74 -0
  210. package/lib/src/Mapping/GpEcomMapping.js.map +1 -0
  211. package/lib/src/Mapping/index.d.ts +1 -0
  212. package/lib/src/Mapping/index.js +14 -0
  213. package/lib/src/Mapping/index.js.map +1 -0
  214. package/lib/src/PaymentMethods/Cash.d.ts +8 -0
  215. package/lib/src/PaymentMethods/Cash.js +37 -0
  216. package/lib/src/PaymentMethods/Cash.js.map +1 -0
  217. package/lib/src/PaymentMethods/Credit.d.ts +85 -0
  218. package/lib/src/PaymentMethods/Credit.js +107 -0
  219. package/lib/src/PaymentMethods/Credit.js.map +1 -0
  220. package/lib/src/PaymentMethods/CreditCardData.d.ts +20 -0
  221. package/lib/src/PaymentMethods/CreditCardData.js +58 -0
  222. package/lib/src/PaymentMethods/CreditCardData.js.map +1 -0
  223. package/lib/src/PaymentMethods/CreditTrackData.d.ts +7 -0
  224. package/lib/src/PaymentMethods/CreditTrackData.js +28 -0
  225. package/lib/src/PaymentMethods/CreditTrackData.js.map +1 -0
  226. package/lib/src/PaymentMethods/Debit.d.ts +40 -0
  227. package/lib/src/PaymentMethods/Debit.js +71 -0
  228. package/lib/src/PaymentMethods/Debit.js.map +1 -0
  229. package/lib/src/PaymentMethods/DebitTrackData.d.ts +7 -0
  230. package/lib/src/PaymentMethods/DebitTrackData.js +28 -0
  231. package/lib/src/PaymentMethods/DebitTrackData.js.map +1 -0
  232. package/lib/src/PaymentMethods/EBT.d.ts +48 -0
  233. package/lib/src/PaymentMethods/EBT.js +89 -0
  234. package/lib/src/PaymentMethods/EBT.js.map +1 -0
  235. package/lib/src/PaymentMethods/EBTCardData.d.ts +16 -0
  236. package/lib/src/PaymentMethods/EBTCardData.js +33 -0
  237. package/lib/src/PaymentMethods/EBTCardData.js.map +1 -0
  238. package/lib/src/PaymentMethods/EBTTrackData.d.ts +8 -0
  239. package/lib/src/PaymentMethods/EBTTrackData.js +28 -0
  240. package/lib/src/PaymentMethods/EBTTrackData.js.map +1 -0
  241. package/lib/src/PaymentMethods/ECheck.d.ts +32 -0
  242. package/lib/src/PaymentMethods/ECheck.js +41 -0
  243. package/lib/src/PaymentMethods/ECheck.js.map +1 -0
  244. package/lib/src/PaymentMethods/GiftCard.d.ts +131 -0
  245. package/lib/src/PaymentMethods/GiftCard.js +206 -0
  246. package/lib/src/PaymentMethods/GiftCard.js.map +1 -0
  247. package/lib/src/PaymentMethods/Interfaces.d.ts +55 -0
  248. package/lib/src/PaymentMethods/Interfaces.js +3 -0
  249. package/lib/src/PaymentMethods/Interfaces.js.map +1 -0
  250. package/lib/src/PaymentMethods/PaymentMethod.d.ts +19 -0
  251. package/lib/src/PaymentMethods/PaymentMethod.js +115 -0
  252. package/lib/src/PaymentMethods/PaymentMethod.js.map +1 -0
  253. package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +23 -0
  254. package/lib/src/PaymentMethods/RecurringPaymentMethod.js +78 -0
  255. package/lib/src/PaymentMethods/RecurringPaymentMethod.js.map +1 -0
  256. package/lib/src/PaymentMethods/TransactionReference.d.ts +10 -0
  257. package/lib/src/PaymentMethods/TransactionReference.js +13 -0
  258. package/lib/src/PaymentMethods/TransactionReference.js.map +1 -0
  259. package/lib/src/PaymentMethods/index.d.ts +15 -0
  260. package/lib/src/PaymentMethods/index.js +28 -0
  261. package/lib/src/PaymentMethods/index.js.map +1 -0
  262. package/lib/src/ServiceConfigs/AcceptorConfig.d.ts +41 -0
  263. package/lib/src/ServiceConfigs/AcceptorConfig.js +30 -0
  264. package/lib/src/ServiceConfigs/AcceptorConfig.js.map +1 -0
  265. package/lib/src/ServiceConfigs/Configuration.d.ts +15 -0
  266. package/lib/src/ServiceConfigs/Configuration.js +16 -0
  267. package/lib/src/ServiceConfigs/Configuration.js.map +1 -0
  268. package/lib/src/ServiceConfigs/Gateways/GatewayConfig.d.ts +14 -0
  269. package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js +46 -0
  270. package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js.map +1 -0
  271. package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.d.ts +27 -0
  272. package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js +61 -0
  273. package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js.map +1 -0
  274. package/lib/src/ServiceConfigs/Gateways/index.d.ts +2 -0
  275. package/lib/src/ServiceConfigs/Gateways/index.js +15 -0
  276. package/lib/src/ServiceConfigs/Gateways/index.js.map +1 -0
  277. package/lib/src/ServiceConfigs/ServicesConfig.d.ts +27 -0
  278. package/lib/src/ServiceConfigs/ServicesConfig.js +51 -0
  279. package/lib/src/ServiceConfigs/ServicesConfig.js.map +1 -0
  280. package/lib/src/ServiceConfigs/ServicesConfigsAdded.d.ts +10 -0
  281. package/lib/src/ServiceConfigs/ServicesConfigsAdded.js +27 -0
  282. package/lib/src/ServiceConfigs/ServicesConfigsAdded.js.map +1 -0
  283. package/lib/src/ServiceConfigs/index.d.ts +5 -0
  284. package/lib/src/ServiceConfigs/index.js +18 -0
  285. package/lib/src/ServiceConfigs/index.js.map +1 -0
  286. package/lib/src/Services/BatchService.d.ts +4 -0
  287. package/lib/src/Services/BatchService.js +18 -0
  288. package/lib/src/Services/BatchService.js.map +1 -0
  289. package/lib/src/Services/CheckService.d.ts +6 -0
  290. package/lib/src/Services/CheckService.js +21 -0
  291. package/lib/src/Services/CheckService.js.map +1 -0
  292. package/lib/src/Services/CreditService.d.ts +12 -0
  293. package/lib/src/Services/CreditService.js +55 -0
  294. package/lib/src/Services/CreditService.js.map +1 -0
  295. package/lib/src/Services/DebitService.d.ts +7 -0
  296. package/lib/src/Services/DebitService.js +29 -0
  297. package/lib/src/Services/DebitService.js.map +1 -0
  298. package/lib/src/Services/EBTService.d.ts +8 -0
  299. package/lib/src/Services/EBTService.js +33 -0
  300. package/lib/src/Services/EBTService.js.map +1 -0
  301. package/lib/src/Services/GiftService.d.ts +16 -0
  302. package/lib/src/Services/GiftService.js +55 -0
  303. package/lib/src/Services/GiftService.js.map +1 -0
  304. package/lib/src/Services/HostedService.d.ts +9 -0
  305. package/lib/src/Services/HostedService.js +60 -0
  306. package/lib/src/Services/HostedService.js.map +1 -0
  307. package/lib/src/Services/PayFacService.d.ts +26 -0
  308. package/lib/src/Services/PayFacService.js +78 -0
  309. package/lib/src/Services/PayFacService.js.map +1 -0
  310. package/lib/src/Services/RecurringService.d.ts +8 -0
  311. package/lib/src/Services/RecurringService.js +28 -0
  312. package/lib/src/Services/RecurringService.js.map +1 -0
  313. package/lib/src/Services/ReportingService.d.ts +6 -0
  314. package/lib/src/Services/ReportingService.js +20 -0
  315. package/lib/src/Services/ReportingService.js.map +1 -0
  316. package/lib/src/Services/index.d.ts +9 -0
  317. package/lib/src/Services/index.js +22 -0
  318. package/lib/src/Services/index.js.map +1 -0
  319. package/lib/src/ServicesConfig.d.ts +27 -0
  320. package/lib/src/ServicesConfig.js +51 -0
  321. package/lib/src/ServicesConfig.js.map +1 -0
  322. package/lib/src/ServicesContainer.d.ts +26 -0
  323. package/lib/src/ServicesContainer.js +140 -0
  324. package/lib/src/ServicesContainer.js.map +1 -0
  325. package/lib/src/Utils/GenerationUtils.d.ts +5 -0
  326. package/lib/src/Utils/GenerationUtils.js +37 -0
  327. package/lib/src/Utils/GenerationUtils.js.map +1 -0
  328. package/lib/src/Utils/InputValidation.d.ts +12 -0
  329. package/lib/src/Utils/InputValidation.js +73 -0
  330. package/lib/src/Utils/InputValidation.js.map +1 -0
  331. package/lib/src/Utils/Sha1.d.ts +6 -0
  332. package/lib/src/Utils/Sha1.js +226 -0
  333. package/lib/src/Utils/Sha1.js.map +1 -0
  334. package/lib/src/Utils/StringUtils.d.ts +6 -0
  335. package/lib/src/Utils/StringUtils.js +54 -0
  336. package/lib/src/Utils/StringUtils.js.map +1 -0
  337. package/lib/src/Utils/index.d.ts +2 -0
  338. package/lib/src/Utils/index.js +15 -0
  339. package/lib/src/Utils/index.js.map +1 -0
  340. package/lib/src/index.d.ts +12 -0
  341. package/lib/src/index.js +29 -0
  342. package/lib/src/index.js.map +1 -0
  343. package/lib/test/Data/TestCards.d.ts +24 -0
  344. package/lib/test/Data/TestCards.js +233 -0
  345. package/lib/test/Data/TestCards.js.map +1 -0
  346. package/lib/test/Data/TestChecks.d.ts +4 -0
  347. package/lib/test/Data/TestChecks.js +33 -0
  348. package/lib/test/Data/TestChecks.js.map +1 -0
  349. package/lib/test/Data/index.d.ts +2 -0
  350. package/lib/test/Data/index.js +15 -0
  351. package/lib/test/Data/index.js.map +1 -0
  352. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +1 -0
  353. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +113 -0
  354. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +1 -0
  355. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +1 -0
  356. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +484 -0
  357. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +1 -0
  358. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +1 -0
  359. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +84 -0
  360. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +1 -0
  361. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +1 -0
  362. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +1721 -0
  363. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +1 -0
  364. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +1 -0
  365. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +84 -0
  366. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +1 -0
  367. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +1 -0
  368. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +1758 -0
  369. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +1 -0
  370. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +1 -0
  371. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +683 -0
  372. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +1 -0
  373. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +1 -0
  374. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +2219 -0
  375. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +1 -0
  376. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +1 -0
  377. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +708 -0
  378. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +1 -0
  379. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +1 -0
  380. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +152 -0
  381. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +1 -0
  382. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +1 -0
  383. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +172 -0
  384. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +1 -0
  385. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +1 -0
  386. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +193 -0
  387. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +1 -0
  388. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +1 -0
  389. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +378 -0
  390. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +1 -0
  391. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +1 -0
  392. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +197 -0
  393. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +1 -0
  394. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +1 -0
  395. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +48 -0
  396. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +1 -0
  397. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.d.ts +1 -0
  398. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.js +101 -0
  399. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.js.map +1 -0
  400. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.d.ts +1 -0
  401. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.js +353 -0
  402. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.js.map +1 -0
  403. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.d.ts +1 -0
  404. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js +124 -0
  405. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js.map +1 -0
  406. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.d.ts +1 -0
  407. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.js +143 -0
  408. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.js.map +1 -0
  409. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +39 -0
  410. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +372 -0
  411. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +1 -0
  412. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.d.ts +1 -0
  413. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.js +101 -0
  414. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.js.map +1 -0
  415. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.d.ts +1 -0
  416. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.js +536 -0
  417. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.js.map +1 -0
  418. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.d.ts +1 -0
  419. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.js +125 -0
  420. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.js.map +1 -0
  421. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.d.ts +1 -0
  422. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.js +145 -0
  423. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.js.map +1 -0
  424. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +33 -0
  425. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +269 -0
  426. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +1 -0
  427. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +4 -0
  428. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +31 -0
  429. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +1 -0
  430. package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.d.ts +1 -0
  431. package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js +4374 -0
  432. package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js.map +1 -0
  433. package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.d.ts +1 -0
  434. package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js +759 -0
  435. package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js.map +1 -0
  436. package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.d.ts +1 -0
  437. package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js +2400 -0
  438. package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js.map +1 -0
  439. package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.d.ts +1 -0
  440. package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js +1657 -0
  441. package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js.map +1 -0
  442. package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.d.ts +1 -0
  443. package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js +5651 -0
  444. package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js.map +1 -0
  445. package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.d.ts +1 -0
  446. package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js +1986 -0
  447. package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js.map +1 -0
  448. package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.d.ts +1 -0
  449. package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js +2370 -0
  450. package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js.map +1 -0
  451. package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.d.ts +1 -0
  452. package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js +1704 -0
  453. package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js.map +1 -0
  454. package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.d.ts +1 -0
  455. package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js +2054 -0
  456. package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js.map +1 -0
  457. package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.d.ts +1 -0
  458. package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js +2470 -0
  459. package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js.map +1 -0
  460. package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.d.ts +1 -0
  461. package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js +3117 -0
  462. package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js.map +1 -0
  463. package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.d.ts +1 -0
  464. package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js +2032 -0
  465. package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js.map +1 -0
  466. package/lib/test/Integration/Gateways/RealexConnector/CreditTest.d.ts +1 -0
  467. package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js +323 -0
  468. package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js.map +1 -0
  469. package/lib/test/Integration/Gateways/RealexConnector/HppTest.d.ts +1 -0
  470. package/lib/test/Integration/Gateways/RealexConnector/HppTest.js +99 -0
  471. package/lib/test/Integration/Gateways/RealexConnector/HppTest.js.map +1 -0
  472. package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.d.ts +1 -0
  473. package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js +264 -0
  474. package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js.map +1 -0
  475. package/lib/test/Integration/Services/CheckServiceTest.d.ts +1 -0
  476. package/lib/test/Integration/Services/CheckServiceTest.js +99 -0
  477. package/lib/test/Integration/Services/CheckServiceTest.js.map +1 -0
  478. package/lib/test/Integration/Services/CreditServiceTest.d.ts +1 -0
  479. package/lib/test/Integration/Services/CreditServiceTest.js +314 -0
  480. package/lib/test/Integration/Services/CreditServiceTest.js.map +1 -0
  481. package/lib/test/Integration/Services/DebitServiceTest.d.ts +1 -0
  482. package/lib/test/Integration/Services/DebitServiceTest.js +155 -0
  483. package/lib/test/Integration/Services/DebitServiceTest.js.map +1 -0
  484. package/lib/test/Integration/Services/EBTServiceTest.d.ts +1 -0
  485. package/lib/test/Integration/Services/EBTServiceTest.js +136 -0
  486. package/lib/test/Integration/Services/EBTServiceTest.js.map +1 -0
  487. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +1 -0
  488. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +162 -0
  489. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +1 -0
  490. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +1 -0
  491. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +140 -0
  492. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +1 -0
  493. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
  494. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +73 -0
  495. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
  496. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +1 -0
  497. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +203 -0
  498. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +1 -0
  499. package/lib/test/Unit/Gateways/RealexConnector/CreditTest.d.ts +1 -0
  500. package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js +71 -0
  501. package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js.map +1 -0
  502. package/package.json +2 -2
@@ -0,0 +1,1986 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ var ava_1 = require("ava");
40
+ var src_1 = require("../../../../../src/");
41
+ var throttle = function () { return new Promise(function (resolve) { return setTimeout(resolve, 1500); }); };
42
+ ava_1.default.beforeEach(function () { return __awaiter(void 0, void 0, void 0, function () {
43
+ return __generator(this, function (_a) {
44
+ switch (_a.label) {
45
+ case 0: return [4 /*yield*/, throttle()];
46
+ case 1:
47
+ _a.sent();
48
+ return [2 /*return*/];
49
+ }
50
+ });
51
+ }); });
52
+ ava_1.default("JAVA_OTB_Sample", function (t) { return __awaiter(void 0, void 0, void 0, function () {
53
+ var config, card, response;
54
+ return __generator(this, function (_a) {
55
+ switch (_a.label) {
56
+ case 0:
57
+ t.plan(2);
58
+ config = new src_1.ServicesConfig();
59
+ config.merchantId = "heartlandgpsandbox";
60
+ config.accountId = "api";
61
+ config.sharedSecret = "secret";
62
+ config.refundPassword = "refund";
63
+ config.rebatePassword = "rebate";
64
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
65
+ config.timeout = 5000;
66
+ config.channel = "ECOM";
67
+ src_1.ServicesContainer.configure(config);
68
+ card = new src_1.CreditCardData();
69
+ card.number = "4263970000005262";
70
+ card.expMonth = "12";
71
+ card.expYear = "2018";
72
+ card.cvn = "123";
73
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
74
+ card.cardHolderName = "Peter Watermelon";
75
+ return [4 /*yield*/, card
76
+ .verify()
77
+ .withCurrency("EUR")
78
+ .withDescription("JAVA-OTB")
79
+ .execute()];
80
+ case 1:
81
+ response = _a.sent();
82
+ t.truthy(response);
83
+ t.is("00", response.responseCode);
84
+ return [2 /*return*/];
85
+ }
86
+ });
87
+ }); });
88
+ ava_1.default("JAVA_OTB_006a", function (t) { return __awaiter(void 0, void 0, void 0, function () {
89
+ var config, card, response;
90
+ return __generator(this, function (_a) {
91
+ switch (_a.label) {
92
+ case 0:
93
+ t.plan(2);
94
+ config = new src_1.ServicesConfig();
95
+ config.merchantId = "heartlandgpsandbox";
96
+ config.accountId = "api";
97
+ config.sharedSecret = "secret";
98
+ config.refundPassword = "refund";
99
+ config.rebatePassword = "rebate";
100
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
101
+ config.timeout = 5000;
102
+ config.channel = "ECOM";
103
+ src_1.ServicesContainer.configure(config);
104
+ card = new src_1.CreditCardData();
105
+ card.number = "4263970000005262";
106
+ card.expMonth = "12";
107
+ card.expYear = "2018";
108
+ card.cvn = "123";
109
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
110
+ card.cardHolderName = "Peter Watermelon";
111
+ return [4 /*yield*/, card
112
+ .verify()
113
+ .withCurrency("EUR")
114
+ .withDescription("JAVA-OTB")
115
+ .execute()];
116
+ case 1:
117
+ response = _a.sent();
118
+ t.truthy(response);
119
+ t.is("00", response.responseCode);
120
+ return [2 /*return*/];
121
+ }
122
+ });
123
+ }); });
124
+ ava_1.default("JAVA_OTB_006b", function (t) { return __awaiter(void 0, void 0, void 0, function () {
125
+ var config, card, response;
126
+ return __generator(this, function (_a) {
127
+ switch (_a.label) {
128
+ case 0:
129
+ t.plan(2);
130
+ config = new src_1.ServicesConfig();
131
+ config.merchantId = "heartlandgpsandbox";
132
+ config.accountId = "api";
133
+ config.sharedSecret = "secret";
134
+ config.refundPassword = "refund";
135
+ config.rebatePassword = "rebate";
136
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
137
+ config.timeout = 5000;
138
+ config.channel = "ECOM";
139
+ src_1.ServicesContainer.configure(config);
140
+ card = new src_1.CreditCardData();
141
+ card.number = "4263970000005262";
142
+ card.expMonth = "12";
143
+ card.expYear = "2018";
144
+ card.cvn = "123";
145
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
146
+ card.cardHolderName = "Peter Watermelon";
147
+ return [4 /*yield*/, card
148
+ .verify()
149
+ .withCurrency("EUR")
150
+ .withDescription("JAVA-OTB")
151
+ .execute()];
152
+ case 1:
153
+ response = _a.sent();
154
+ t.truthy(response);
155
+ t.is("00", response.responseCode);
156
+ return [2 /*return*/];
157
+ }
158
+ });
159
+ }); });
160
+ ava_1.default("JAVA_OTB_006c", function (t) { return __awaiter(void 0, void 0, void 0, function () {
161
+ var config, card, response;
162
+ return __generator(this, function (_a) {
163
+ switch (_a.label) {
164
+ case 0:
165
+ t.plan(2);
166
+ config = new src_1.ServicesConfig();
167
+ config.merchantId = "heartlandgpsandbox";
168
+ config.accountId = "api";
169
+ config.sharedSecret = "secret";
170
+ config.refundPassword = "refund";
171
+ config.rebatePassword = "rebate";
172
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
173
+ config.timeout = 5000;
174
+ config.channel = "ECOM";
175
+ src_1.ServicesContainer.configure(config);
176
+ card = new src_1.CreditCardData();
177
+ card.number = "4263970000005262";
178
+ card.expMonth = "12";
179
+ card.expYear = "2018";
180
+ card.cvn = "123";
181
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
182
+ card.cardHolderName = "Peter Watermelon";
183
+ return [4 /*yield*/, card
184
+ .verify()
185
+ .withCurrency("EUR")
186
+ .withDescription("JAVA-OTB")
187
+ .execute()];
188
+ case 1:
189
+ response = _a.sent();
190
+ t.truthy(response);
191
+ t.is("00", response.responseCode);
192
+ return [2 /*return*/];
193
+ }
194
+ });
195
+ }); });
196
+ ava_1.default("JAVA_OTB_006d", function (t) { return __awaiter(void 0, void 0, void 0, function () {
197
+ var config, card, response;
198
+ return __generator(this, function (_a) {
199
+ switch (_a.label) {
200
+ case 0:
201
+ t.plan(2);
202
+ config = new src_1.ServicesConfig();
203
+ config.merchantId = "heartlandgpsandbox";
204
+ config.accountId = "api";
205
+ config.sharedSecret = "secret";
206
+ config.refundPassword = "refund";
207
+ config.rebatePassword = "rebate";
208
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
209
+ config.timeout = 5000;
210
+ config.channel = "ECOM";
211
+ src_1.ServicesContainer.configure(config);
212
+ card = new src_1.CreditCardData();
213
+ card.number = "4263970000005262";
214
+ card.expMonth = "12";
215
+ card.expYear = "2018";
216
+ card.cvn = "123";
217
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
218
+ card.cardHolderName = "Peter Watermelon";
219
+ return [4 /*yield*/, card
220
+ .verify()
221
+ .withCurrency("EUR")
222
+ .withDescription("JAVA-OTB")
223
+ .execute()];
224
+ case 1:
225
+ response = _a.sent();
226
+ t.truthy(response);
227
+ t.is("00", response.responseCode);
228
+ return [2 /*return*/];
229
+ }
230
+ });
231
+ }); });
232
+ ava_1.default("JAVA_OTB_006e", function (t) { return __awaiter(void 0, void 0, void 0, function () {
233
+ var config, card, response;
234
+ return __generator(this, function (_a) {
235
+ switch (_a.label) {
236
+ case 0:
237
+ t.plan(2);
238
+ config = new src_1.ServicesConfig();
239
+ config.merchantId = "heartlandgpsandbox";
240
+ config.accountId = "api";
241
+ config.sharedSecret = "secret";
242
+ config.refundPassword = "refund";
243
+ config.rebatePassword = "rebate";
244
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
245
+ config.timeout = 5000;
246
+ config.channel = "ECOM";
247
+ src_1.ServicesContainer.configure(config);
248
+ card = new src_1.CreditCardData();
249
+ card.number = "4263970000005262";
250
+ card.expMonth = "12";
251
+ card.expYear = "2018";
252
+ card.cvn = "123";
253
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
254
+ card.cardHolderName = "Peter Watermelon";
255
+ return [4 /*yield*/, card
256
+ .verify()
257
+ .withCurrency("EUR")
258
+ .withDescription("JAVA-OTB")
259
+ .execute()];
260
+ case 1:
261
+ response = _a.sent();
262
+ t.truthy(response);
263
+ t.is("00", response.responseCode);
264
+ return [2 /*return*/];
265
+ }
266
+ });
267
+ }); });
268
+ ava_1.default("JAVA_OTB_006f", function (t) { return __awaiter(void 0, void 0, void 0, function () {
269
+ var config, card, response;
270
+ return __generator(this, function (_a) {
271
+ switch (_a.label) {
272
+ case 0:
273
+ t.plan(2);
274
+ config = new src_1.ServicesConfig();
275
+ config.merchantId = "heartlandgpsandbox";
276
+ config.accountId = "api";
277
+ config.sharedSecret = "secret";
278
+ config.refundPassword = "refund";
279
+ config.rebatePassword = "rebate";
280
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
281
+ config.timeout = 5000;
282
+ config.channel = "ECOM";
283
+ src_1.ServicesContainer.configure(config);
284
+ card = new src_1.CreditCardData();
285
+ card.number = "4263970000005262";
286
+ card.expMonth = "12";
287
+ card.expYear = "2018";
288
+ card.cvn = "123";
289
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
290
+ card.cardHolderName = "Peter Watermelon";
291
+ return [4 /*yield*/, card
292
+ .verify()
293
+ .withCurrency("EUR")
294
+ .withDescription("JAVA-OTB")
295
+ .execute()];
296
+ case 1:
297
+ response = _a.sent();
298
+ t.truthy(response);
299
+ t.is("00", response.responseCode);
300
+ return [2 /*return*/];
301
+ }
302
+ });
303
+ }); });
304
+ ava_1.default("JAVA_OTB_006g", function (t) { return __awaiter(void 0, void 0, void 0, function () {
305
+ var config, card, response;
306
+ return __generator(this, function (_a) {
307
+ switch (_a.label) {
308
+ case 0:
309
+ t.plan(2);
310
+ config = new src_1.ServicesConfig();
311
+ config.merchantId = "heartlandgpsandbox";
312
+ config.accountId = "api";
313
+ config.sharedSecret = "secret";
314
+ config.refundPassword = "refund";
315
+ config.rebatePassword = "rebate";
316
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
317
+ config.timeout = 5000;
318
+ config.channel = "ECOM";
319
+ src_1.ServicesContainer.configure(config);
320
+ card = new src_1.CreditCardData();
321
+ card.number = "4263970000005262";
322
+ card.expMonth = "12";
323
+ card.expYear = "2018";
324
+ card.cvn = "123";
325
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
326
+ card.cardHolderName = "Peter Watermelon";
327
+ return [4 /*yield*/, card
328
+ .verify()
329
+ .withCurrency("EUR")
330
+ .withDescription("JAVA-OTB")
331
+ .execute()];
332
+ case 1:
333
+ response = _a.sent();
334
+ t.truthy(response);
335
+ t.is("00", response.responseCode);
336
+ return [2 /*return*/];
337
+ }
338
+ });
339
+ }); });
340
+ ava_1.default("JAVA_OTB_006h", function (t) { return __awaiter(void 0, void 0, void 0, function () {
341
+ var config, card, response;
342
+ return __generator(this, function (_a) {
343
+ switch (_a.label) {
344
+ case 0:
345
+ t.plan(2);
346
+ config = new src_1.ServicesConfig();
347
+ config.merchantId = "heartlandgpsandbox";
348
+ config.accountId = "api";
349
+ config.sharedSecret = "secret";
350
+ config.refundPassword = "refund";
351
+ config.rebatePassword = "rebate";
352
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
353
+ config.timeout = 5000;
354
+ config.channel = "ECOM";
355
+ src_1.ServicesContainer.configure(config);
356
+ card = new src_1.CreditCardData();
357
+ card.number = "4263970000005262";
358
+ card.expMonth = "12";
359
+ card.expYear = "2018";
360
+ card.cvn = "123";
361
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
362
+ card.cardHolderName = "Peter Watermelon";
363
+ return [4 /*yield*/, card
364
+ .verify()
365
+ .withCurrency("EUR")
366
+ .withDescription("JAVA-OTB")
367
+ .execute()];
368
+ case 1:
369
+ response = _a.sent();
370
+ t.truthy(response);
371
+ t.is("00", response.responseCode);
372
+ return [2 /*return*/];
373
+ }
374
+ });
375
+ }); });
376
+ ava_1.default("JAVA_OTB_006i", function (t) { return __awaiter(void 0, void 0, void 0, function () {
377
+ var config, card, response;
378
+ return __generator(this, function (_a) {
379
+ switch (_a.label) {
380
+ case 0:
381
+ t.plan(2);
382
+ config = new src_1.ServicesConfig();
383
+ config.merchantId = "heartlandgpsandbox";
384
+ config.accountId = "api";
385
+ config.sharedSecret = "secret";
386
+ config.refundPassword = "refund";
387
+ config.rebatePassword = "rebate";
388
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
389
+ config.timeout = 5000;
390
+ config.channel = "ECOM";
391
+ src_1.ServicesContainer.configure(config);
392
+ card = new src_1.CreditCardData();
393
+ card.number = "4263970000005262";
394
+ card.expMonth = "12";
395
+ card.expYear = "2018";
396
+ card.cvn = "123";
397
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
398
+ card.cardHolderName = "Peter Watermelon";
399
+ return [4 /*yield*/, card
400
+ .verify()
401
+ .withCurrency("EUR")
402
+ .withDescription("JAVA-OTB")
403
+ .execute()];
404
+ case 1:
405
+ response = _a.sent();
406
+ t.truthy(response);
407
+ t.is("00", response.responseCode);
408
+ return [2 /*return*/];
409
+ }
410
+ });
411
+ }); });
412
+ ava_1.default("JAVA_OTB_006k", function (t) { return __awaiter(void 0, void 0, void 0, function () {
413
+ var config, card, response;
414
+ return __generator(this, function (_a) {
415
+ switch (_a.label) {
416
+ case 0:
417
+ t.plan(2);
418
+ config = new src_1.ServicesConfig();
419
+ config.merchantId = "heartlandgpsandbox";
420
+ config.accountId = "api";
421
+ config.sharedSecret = "secret";
422
+ config.refundPassword = "refund";
423
+ config.rebatePassword = "rebate";
424
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
425
+ config.timeout = 5000;
426
+ config.channel = "ECOM";
427
+ src_1.ServicesContainer.configure(config);
428
+ card = new src_1.CreditCardData();
429
+ card.number = "4263970000005262";
430
+ card.expMonth = "12";
431
+ card.expYear = "2018";
432
+ card.cvn = "123";
433
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
434
+ card.cardHolderName = "Peter Watermelon";
435
+ return [4 /*yield*/, card
436
+ .charge(1)
437
+ .withCurrency("EUR")
438
+ .withDescription("JAVA-OTB")
439
+ .execute()];
440
+ case 1:
441
+ response = _a.sent();
442
+ t.truthy(response);
443
+ t.is("00", response.responseCode);
444
+ return [2 /*return*/];
445
+ }
446
+ });
447
+ }); });
448
+ ava_1.default("JAVA_OTB_006l", function (t) { return __awaiter(void 0, void 0, void 0, function () {
449
+ var config, card, response;
450
+ return __generator(this, function (_a) {
451
+ switch (_a.label) {
452
+ case 0:
453
+ t.plan(2);
454
+ config = new src_1.ServicesConfig();
455
+ config.merchantId = "heartlandgpsandbox";
456
+ config.accountId = "api";
457
+ config.sharedSecret = "secret";
458
+ config.refundPassword = "refund";
459
+ config.rebatePassword = "rebate";
460
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
461
+ config.timeout = 5000;
462
+ config.channel = "ECOM";
463
+ src_1.ServicesContainer.configure(config);
464
+ card = new src_1.CreditCardData();
465
+ card.number = "4263970000005262";
466
+ card.expMonth = "12";
467
+ card.expYear = "2018";
468
+ card.cvn = "123";
469
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
470
+ card.cardHolderName = "Peter Watermelon";
471
+ return [4 /*yield*/, card
472
+ .verify()
473
+ .withCurrency("EUR")
474
+ .withDescription("JAVA-OTB")
475
+ .execute()];
476
+ case 1:
477
+ response = _a.sent();
478
+ t.truthy(response);
479
+ t.is("00", response.responseCode);
480
+ return [2 /*return*/];
481
+ }
482
+ });
483
+ }); });
484
+ ava_1.default("JAVA_OTB_007a", function (t) { return __awaiter(void 0, void 0, void 0, function () {
485
+ var config, card, response;
486
+ return __generator(this, function (_a) {
487
+ switch (_a.label) {
488
+ case 0:
489
+ t.plan(2);
490
+ config = new src_1.ServicesConfig();
491
+ config.merchantId = "heartlandgpsandbox";
492
+ config.accountId = "api";
493
+ config.sharedSecret = "secret";
494
+ config.refundPassword = "refund";
495
+ config.rebatePassword = "rebate";
496
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
497
+ config.timeout = 5000;
498
+ config.channel = "ECOM";
499
+ src_1.ServicesContainer.configure(config);
500
+ card = new src_1.CreditCardData();
501
+ card.number = "4263970000005262";
502
+ card.expMonth = "12";
503
+ card.expYear = "2018";
504
+ card.cvn = "123";
505
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
506
+ card.cardHolderName = "Peter Watermelon";
507
+ return [4 /*yield*/, card
508
+ .verify()
509
+ .withCurrency("EUR")
510
+ .withDescription("JAVA-OTB")
511
+ .execute()];
512
+ case 1:
513
+ response = _a.sent();
514
+ t.truthy(response);
515
+ t.is("00", response.responseCode);
516
+ return [2 /*return*/];
517
+ }
518
+ });
519
+ }); });
520
+ ava_1.default("JAVA_OTB_007b", function (t) { return __awaiter(void 0, void 0, void 0, function () {
521
+ var config, card, response;
522
+ return __generator(this, function (_a) {
523
+ switch (_a.label) {
524
+ case 0:
525
+ t.plan(2);
526
+ config = new src_1.ServicesConfig();
527
+ config.merchantId = "heartlandgpsandbox";
528
+ config.accountId = "api";
529
+ config.sharedSecret = "secret";
530
+ config.refundPassword = "refund";
531
+ config.rebatePassword = "rebate";
532
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
533
+ config.timeout = 5000;
534
+ config.channel = "ECOM";
535
+ src_1.ServicesContainer.configure(config);
536
+ card = new src_1.CreditCardData();
537
+ card.number = "4263970000005262";
538
+ card.expMonth = "12";
539
+ card.expYear = "2018";
540
+ card.cvn = "123";
541
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
542
+ card.cardHolderName = "Peter Watermelon";
543
+ return [4 /*yield*/, card
544
+ .verify()
545
+ .withCurrency("EUR")
546
+ .withDescription("JAVA-OTB")
547
+ .execute()];
548
+ case 1:
549
+ response = _a.sent();
550
+ t.truthy(response);
551
+ t.is("00", response.responseCode);
552
+ return [2 /*return*/];
553
+ }
554
+ });
555
+ }); });
556
+ ava_1.default("JAVA_OTB_007c", function (t) { return __awaiter(void 0, void 0, void 0, function () {
557
+ var config, card, response;
558
+ return __generator(this, function (_a) {
559
+ switch (_a.label) {
560
+ case 0:
561
+ t.plan(2);
562
+ config = new src_1.ServicesConfig();
563
+ config.merchantId = "heartlandgpsandbox";
564
+ config.accountId = "api";
565
+ config.sharedSecret = "secret";
566
+ config.refundPassword = "refund";
567
+ config.rebatePassword = "rebate";
568
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
569
+ config.timeout = 5000;
570
+ config.channel = "ECOM";
571
+ src_1.ServicesContainer.configure(config);
572
+ card = new src_1.CreditCardData();
573
+ card.number = "4263970000005262";
574
+ card.expMonth = "12";
575
+ card.expYear = "2018";
576
+ card.cvn = "123";
577
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
578
+ card.cardHolderName = "Peter Watermelon";
579
+ return [4 /*yield*/, card
580
+ .verify()
581
+ .withCurrency("EUR")
582
+ .withDescription("JAVA-OTB")
583
+ .execute()];
584
+ case 1:
585
+ response = _a.sent();
586
+ t.truthy(response);
587
+ t.is("00", response.responseCode);
588
+ return [2 /*return*/];
589
+ }
590
+ });
591
+ }); });
592
+ ava_1.default("JAVA_OTB_007d", function (t) { return __awaiter(void 0, void 0, void 0, function () {
593
+ var config, card, response;
594
+ return __generator(this, function (_a) {
595
+ switch (_a.label) {
596
+ case 0:
597
+ t.plan(2);
598
+ config = new src_1.ServicesConfig();
599
+ config.merchantId = "heartlandgpsandbox";
600
+ config.accountId = "api";
601
+ config.sharedSecret = "secret";
602
+ config.refundPassword = "refund";
603
+ config.rebatePassword = "rebate";
604
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
605
+ config.timeout = 5000;
606
+ config.channel = "ECOM";
607
+ src_1.ServicesContainer.configure(config);
608
+ card = new src_1.CreditCardData();
609
+ card.number = "4263970000005262";
610
+ card.expMonth = "12";
611
+ card.expYear = "2018";
612
+ card.cvn = "123";
613
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
614
+ card.cardHolderName = "Peter Watermelon";
615
+ return [4 /*yield*/, card
616
+ .verify()
617
+ .withCurrency("EUR")
618
+ .withDescription("JAVA-OTB")
619
+ .execute()];
620
+ case 1:
621
+ response = _a.sent();
622
+ t.truthy(response);
623
+ t.is("00", response.responseCode);
624
+ return [2 /*return*/];
625
+ }
626
+ });
627
+ }); });
628
+ ava_1.default("JAVA_OTB_007e", function (t) { return __awaiter(void 0, void 0, void 0, function () {
629
+ var config, card, response;
630
+ return __generator(this, function (_a) {
631
+ switch (_a.label) {
632
+ case 0:
633
+ t.plan(2);
634
+ config = new src_1.ServicesConfig();
635
+ config.merchantId = "heartlandgpsandbox";
636
+ config.accountId = "api";
637
+ config.sharedSecret = "secret";
638
+ config.refundPassword = "refund";
639
+ config.rebatePassword = "rebate";
640
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
641
+ config.timeout = 5000;
642
+ config.channel = "ECOM";
643
+ src_1.ServicesContainer.configure(config);
644
+ card = new src_1.CreditCardData();
645
+ card.number = "4263970000005262";
646
+ card.expMonth = "12";
647
+ card.expYear = "2018";
648
+ card.cvn = "123";
649
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
650
+ card.cardHolderName = "Peter Watermelon";
651
+ return [4 /*yield*/, card
652
+ .verify()
653
+ .withCurrency("EUR")
654
+ .withDescription("JAVA-OTB")
655
+ .execute()];
656
+ case 1:
657
+ response = _a.sent();
658
+ t.truthy(response);
659
+ t.is("00", response.responseCode);
660
+ return [2 /*return*/];
661
+ }
662
+ });
663
+ }); });
664
+ ava_1.default("JAVA_OTB_008a", function (t) { return __awaiter(void 0, void 0, void 0, function () {
665
+ var config, card, response;
666
+ return __generator(this, function (_a) {
667
+ switch (_a.label) {
668
+ case 0:
669
+ t.plan(2);
670
+ config = new src_1.ServicesConfig();
671
+ config.merchantId = "heartlandgpsandbox";
672
+ config.accountId = "api";
673
+ config.sharedSecret = "secret";
674
+ config.refundPassword = "refund";
675
+ config.rebatePassword = "rebate";
676
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
677
+ config.timeout = 5000;
678
+ config.channel = "ECOM";
679
+ src_1.ServicesContainer.configure(config);
680
+ card = new src_1.CreditCardData();
681
+ card.number = "4263970000005262";
682
+ card.expMonth = "12";
683
+ card.expYear = "2018";
684
+ card.cvn = "123";
685
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
686
+ card.cardHolderName = "Peter Watermelon";
687
+ return [4 /*yield*/, card
688
+ .verify()
689
+ .withCurrency("EUR")
690
+ .withDescription("JAVA-OTB")
691
+ .execute()];
692
+ case 1:
693
+ response = _a.sent();
694
+ t.truthy(response);
695
+ t.is("00", response.responseCode);
696
+ return [2 /*return*/];
697
+ }
698
+ });
699
+ }); });
700
+ ava_1.default("JAVA_OTB_008b", function (t) { return __awaiter(void 0, void 0, void 0, function () {
701
+ var config, card, response;
702
+ return __generator(this, function (_a) {
703
+ switch (_a.label) {
704
+ case 0:
705
+ t.plan(2);
706
+ config = new src_1.ServicesConfig();
707
+ config.merchantId = "heartlandgpsandbox";
708
+ config.accountId = "api";
709
+ config.sharedSecret = "secret";
710
+ config.refundPassword = "refund";
711
+ config.rebatePassword = "rebate";
712
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
713
+ config.timeout = 5000;
714
+ config.channel = "ECOM";
715
+ src_1.ServicesContainer.configure(config);
716
+ card = new src_1.CreditCardData();
717
+ card.number = "4263970000005262";
718
+ card.expMonth = "12";
719
+ card.expYear = "2018";
720
+ card.cvn = "123";
721
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
722
+ card.cardHolderName = "Peter Watermelon";
723
+ return [4 /*yield*/, card
724
+ .verify()
725
+ .withCurrency("EUR")
726
+ .withDescription("JAVA-OTB")
727
+ .execute()];
728
+ case 1:
729
+ response = _a.sent();
730
+ t.truthy(response);
731
+ t.is("00", response.responseCode);
732
+ return [2 /*return*/];
733
+ }
734
+ });
735
+ }); });
736
+ ava_1.default("JAVA_OTB_008c", function (t) { return __awaiter(void 0, void 0, void 0, function () {
737
+ var config, card, response;
738
+ return __generator(this, function (_a) {
739
+ switch (_a.label) {
740
+ case 0:
741
+ t.plan(2);
742
+ config = new src_1.ServicesConfig();
743
+ config.merchantId = "heartlandgpsandbox";
744
+ config.accountId = "api";
745
+ config.sharedSecret = "secret";
746
+ config.refundPassword = "refund";
747
+ config.rebatePassword = "rebate";
748
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
749
+ config.timeout = 5000;
750
+ config.channel = "ECOM";
751
+ src_1.ServicesContainer.configure(config);
752
+ card = new src_1.CreditCardData();
753
+ card.number = "4263970000005262";
754
+ card.expMonth = "12";
755
+ card.expYear = "2018";
756
+ card.cvn = "123";
757
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
758
+ card.cardHolderName = "Peter Watermelon";
759
+ return [4 /*yield*/, card
760
+ .verify()
761
+ .withCurrency("EUR")
762
+ .withDescription("JAVA-OTB")
763
+ .execute()];
764
+ case 1:
765
+ response = _a.sent();
766
+ t.truthy(response);
767
+ t.is("00", response.responseCode);
768
+ return [2 /*return*/];
769
+ }
770
+ });
771
+ }); });
772
+ ava_1.default("JAVA_OTB_008d", function (t) { return __awaiter(void 0, void 0, void 0, function () {
773
+ var config, card, response;
774
+ return __generator(this, function (_a) {
775
+ switch (_a.label) {
776
+ case 0:
777
+ t.plan(2);
778
+ config = new src_1.ServicesConfig();
779
+ config.merchantId = "heartlandgpsandbox";
780
+ config.accountId = "api";
781
+ config.sharedSecret = "secret";
782
+ config.refundPassword = "refund";
783
+ config.rebatePassword = "rebate";
784
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
785
+ config.timeout = 5000;
786
+ config.channel = "ECOM";
787
+ src_1.ServicesContainer.configure(config);
788
+ card = new src_1.CreditCardData();
789
+ card.number = "4263970000005262";
790
+ card.expMonth = "12";
791
+ card.expYear = "2018";
792
+ card.cvn = "123";
793
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
794
+ card.cardHolderName = "Peter Watermelon";
795
+ return [4 /*yield*/, card
796
+ .verify()
797
+ .withCurrency("EUR")
798
+ .withDescription("JAVA-OTB")
799
+ .execute()];
800
+ case 1:
801
+ response = _a.sent();
802
+ t.truthy(response);
803
+ t.is("00", response.responseCode);
804
+ return [2 /*return*/];
805
+ }
806
+ });
807
+ }); });
808
+ ava_1.default("JAVA_OTB_008e", function (t) { return __awaiter(void 0, void 0, void 0, function () {
809
+ var config, card, response;
810
+ return __generator(this, function (_a) {
811
+ switch (_a.label) {
812
+ case 0:
813
+ t.plan(2);
814
+ config = new src_1.ServicesConfig();
815
+ config.merchantId = "heartlandgpsandbox";
816
+ config.accountId = "api";
817
+ config.sharedSecret = "secret";
818
+ config.refundPassword = "refund";
819
+ config.rebatePassword = "rebate";
820
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
821
+ config.timeout = 5000;
822
+ config.channel = "ECOM";
823
+ src_1.ServicesContainer.configure(config);
824
+ card = new src_1.CreditCardData();
825
+ card.number = "4263970000005262";
826
+ card.expMonth = "12";
827
+ card.expYear = "2018";
828
+ card.cvn = "123";
829
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
830
+ card.cardHolderName = "Peter Watermelon";
831
+ return [4 /*yield*/, card
832
+ .verify()
833
+ .withCurrency("EUR")
834
+ .withDescription("JAVA-OTB")
835
+ .execute()];
836
+ case 1:
837
+ response = _a.sent();
838
+ t.truthy(response);
839
+ t.is("00", response.responseCode);
840
+ return [2 /*return*/];
841
+ }
842
+ });
843
+ }); });
844
+ ava_1.default("JAVA_OTB_009a", function (t) { return __awaiter(void 0, void 0, void 0, function () {
845
+ var config, card, response;
846
+ return __generator(this, function (_a) {
847
+ switch (_a.label) {
848
+ case 0:
849
+ t.plan(2);
850
+ config = new src_1.ServicesConfig();
851
+ config.merchantId = "heartlandgpsandbox";
852
+ config.accountId = "api";
853
+ config.sharedSecret = "secret";
854
+ config.refundPassword = "refund";
855
+ config.rebatePassword = "rebate";
856
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
857
+ config.timeout = 5000;
858
+ config.channel = "ECOM";
859
+ src_1.ServicesContainer.configure(config);
860
+ card = new src_1.CreditCardData();
861
+ card.number = "4263970000005262";
862
+ card.expMonth = "12";
863
+ card.expYear = "2018";
864
+ card.cvn = "123";
865
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
866
+ card.cardHolderName = "Peter Watermelon";
867
+ return [4 /*yield*/, card
868
+ .verify()
869
+ .withCurrency("EUR")
870
+ .withDescription("JAVA-OTB")
871
+ .execute()];
872
+ case 1:
873
+ response = _a.sent();
874
+ t.truthy(response);
875
+ t.is("00", response.responseCode);
876
+ return [2 /*return*/];
877
+ }
878
+ });
879
+ }); });
880
+ ava_1.default("JAVA_OTB_009b", function (t) { return __awaiter(void 0, void 0, void 0, function () {
881
+ var config, card, response;
882
+ return __generator(this, function (_a) {
883
+ switch (_a.label) {
884
+ case 0:
885
+ t.plan(2);
886
+ config = new src_1.ServicesConfig();
887
+ config.merchantId = "heartlandgpsandbox";
888
+ config.accountId = "api";
889
+ config.sharedSecret = "secret";
890
+ config.refundPassword = "refund";
891
+ config.rebatePassword = "rebate";
892
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
893
+ config.timeout = 5000;
894
+ config.channel = "EC";
895
+ src_1.ServicesContainer.configure(config);
896
+ card = new src_1.CreditCardData();
897
+ card.number = "4263970000005262";
898
+ card.expMonth = "12";
899
+ card.expYear = "2018";
900
+ card.cvn = "123";
901
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
902
+ card.cardHolderName = "Peter Watermelon";
903
+ return [4 /*yield*/, card
904
+ .verify()
905
+ .withCurrency("EUR")
906
+ .withDescription("JAVA-OTB")
907
+ .execute()];
908
+ case 1:
909
+ response = _a.sent();
910
+ t.truthy(response);
911
+ t.is("00", response.responseCode);
912
+ return [2 /*return*/];
913
+ }
914
+ });
915
+ }); });
916
+ ava_1.default("JAVA_OTB_009c", function (t) { return __awaiter(void 0, void 0, void 0, function () {
917
+ var config, card, response;
918
+ return __generator(this, function (_a) {
919
+ switch (_a.label) {
920
+ case 0:
921
+ t.plan(2);
922
+ config = new src_1.ServicesConfig();
923
+ config.merchantId = "heartlandgpsandbox";
924
+ config.accountId = "api";
925
+ config.sharedSecret = "secret";
926
+ config.refundPassword = "refund";
927
+ config.rebatePassword = "rebate";
928
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
929
+ config.timeout = 5000;
930
+ config.channel = "ECOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOM";
931
+ src_1.ServicesContainer.configure(config);
932
+ card = new src_1.CreditCardData();
933
+ card.number = "4263970000005262";
934
+ card.expMonth = "12";
935
+ card.expYear = "2018";
936
+ card.cvn = "123";
937
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
938
+ card.cardHolderName = "Peter Watermelon";
939
+ return [4 /*yield*/, card
940
+ .verify()
941
+ .withCurrency("EUR")
942
+ .withDescription("JAVA-OTB")
943
+ .execute()];
944
+ case 1:
945
+ response = _a.sent();
946
+ t.truthy(response);
947
+ t.is("00", response.responseCode);
948
+ return [2 /*return*/];
949
+ }
950
+ });
951
+ }); });
952
+ ava_1.default("JAVA_OTB_009d", function (t) { return __awaiter(void 0, void 0, void 0, function () {
953
+ var config, card, response;
954
+ return __generator(this, function (_a) {
955
+ switch (_a.label) {
956
+ case 0:
957
+ t.plan(2);
958
+ config = new src_1.ServicesConfig();
959
+ config.merchantId = "heartlandgpsandbox";
960
+ config.accountId = "api";
961
+ config.sharedSecret = "secret";
962
+ config.refundPassword = "refund";
963
+ config.rebatePassword = "rebate";
964
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
965
+ config.timeout = 5000;
966
+ config.channel = "ECOM";
967
+ src_1.ServicesContainer.configure(config);
968
+ card = new src_1.CreditCardData();
969
+ card.number = "4263970000005262";
970
+ card.expMonth = "12";
971
+ card.expYear = "2018";
972
+ card.cvn = "123";
973
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
974
+ card.cardHolderName = "Peter Watermelon";
975
+ return [4 /*yield*/, card
976
+ .verify()
977
+ .withCurrency("EUR")
978
+ .withDescription("JAVA-OTB")
979
+ .execute()];
980
+ case 1:
981
+ response = _a.sent();
982
+ t.truthy(response);
983
+ t.is("00", response.responseCode);
984
+ return [2 /*return*/];
985
+ }
986
+ });
987
+ }); });
988
+ ava_1.default("JAVA_OTB_010c", function (t) { return __awaiter(void 0, void 0, void 0, function () {
989
+ var config, card, response;
990
+ return __generator(this, function (_a) {
991
+ switch (_a.label) {
992
+ case 0:
993
+ t.plan(2);
994
+ config = new src_1.ServicesConfig();
995
+ config.merchantId = "heartlandgpsandbox";
996
+ config.accountId = "api";
997
+ config.sharedSecret = "secret";
998
+ config.refundPassword = "refund";
999
+ config.rebatePassword = "rebate";
1000
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1001
+ config.timeout = 5000;
1002
+ config.channel = "ECOM";
1003
+ src_1.ServicesContainer.configure(config);
1004
+ card = new src_1.CreditCardData();
1005
+ card.number = "4263970000005262";
1006
+ card.expMonth = "12";
1007
+ card.expYear = "2018";
1008
+ card.cvn = "123";
1009
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1010
+ card.cardHolderName = "Peter Watermelon";
1011
+ return [4 /*yield*/, card
1012
+ .verify()
1013
+ .withCurrency("EUR")
1014
+ .withDescription("JAVA-OTB")
1015
+ .execute()];
1016
+ case 1:
1017
+ response = _a.sent();
1018
+ t.truthy(response);
1019
+ t.is("00", response.responseCode);
1020
+ return [2 /*return*/];
1021
+ }
1022
+ });
1023
+ }); });
1024
+ ava_1.default("JAVA_OTB_010d", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1025
+ var config, card, response;
1026
+ return __generator(this, function (_a) {
1027
+ switch (_a.label) {
1028
+ case 0:
1029
+ t.plan(2);
1030
+ config = new src_1.ServicesConfig();
1031
+ config.merchantId = "heartlandgpsandbox";
1032
+ config.accountId = "api";
1033
+ config.sharedSecret = "secret";
1034
+ config.refundPassword = "refund";
1035
+ config.rebatePassword = "rebate";
1036
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1037
+ config.timeout = 5000;
1038
+ config.channel = "ECOM";
1039
+ src_1.ServicesContainer.configure(config);
1040
+ card = new src_1.CreditCardData();
1041
+ card.number = "4263970000005262";
1042
+ card.expMonth = "12";
1043
+ card.expYear = "2018";
1044
+ card.cvn = "123";
1045
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1046
+ card.cardHolderName = "Peter Watermelon";
1047
+ return [4 /*yield*/, card
1048
+ .verify()
1049
+ .withCurrency("EUR")
1050
+ .withDescription("JAVA-OTB")
1051
+ .execute()];
1052
+ case 1:
1053
+ response = _a.sent();
1054
+ t.truthy(response);
1055
+ t.is("00", response.responseCode);
1056
+ return [2 /*return*/];
1057
+ }
1058
+ });
1059
+ }); });
1060
+ ava_1.default("JAVA_OTB_010e", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1061
+ var config, card, response;
1062
+ return __generator(this, function (_a) {
1063
+ switch (_a.label) {
1064
+ case 0:
1065
+ t.plan(2);
1066
+ config = new src_1.ServicesConfig();
1067
+ config.merchantId = "heartlandgpsandbox";
1068
+ config.accountId = "api";
1069
+ config.sharedSecret = "secret";
1070
+ config.refundPassword = "refund";
1071
+ config.rebatePassword = "rebate";
1072
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1073
+ config.timeout = 5000;
1074
+ config.channel = "ECOM";
1075
+ src_1.ServicesContainer.configure(config);
1076
+ card = new src_1.CreditCardData();
1077
+ card.number = "4263970000005262";
1078
+ card.expMonth = "12";
1079
+ card.expYear = "2018";
1080
+ card.cvn = "123";
1081
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1082
+ card.cardHolderName = "Peter Watermelon";
1083
+ return [4 /*yield*/, card
1084
+ .verify()
1085
+ .withCurrency("EUR")
1086
+ .withDescription("JAVA-OTB")
1087
+ .execute()];
1088
+ case 1:
1089
+ response = _a.sent();
1090
+ t.truthy(response);
1091
+ t.is("00", response.responseCode);
1092
+ return [2 /*return*/];
1093
+ }
1094
+ });
1095
+ }); });
1096
+ ava_1.default("JAVA_OTB_012a", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1097
+ var config, card, response;
1098
+ return __generator(this, function (_a) {
1099
+ switch (_a.label) {
1100
+ case 0:
1101
+ t.plan(2);
1102
+ config = new src_1.ServicesConfig();
1103
+ config.merchantId = "heartlandgpsandbox";
1104
+ config.accountId = "api";
1105
+ config.sharedSecret = "secret";
1106
+ config.refundPassword = "refund";
1107
+ config.rebatePassword = "rebate";
1108
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1109
+ config.timeout = 5000;
1110
+ config.channel = "ECOM";
1111
+ src_1.ServicesContainer.configure(config);
1112
+ card = new src_1.CreditCardData();
1113
+ card.number = "4263970000005262";
1114
+ card.expMonth = "12";
1115
+ card.expYear = "2018";
1116
+ card.cvn = "123";
1117
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1118
+ card.cardHolderName = "Peter Watermelon";
1119
+ return [4 /*yield*/, card
1120
+ .verify()
1121
+ .withCurrency("EUR")
1122
+ .withDescription("JAVA-OTB")
1123
+ .execute()];
1124
+ case 1:
1125
+ response = _a.sent();
1126
+ t.truthy(response);
1127
+ t.is("00", response.responseCode);
1128
+ return [2 /*return*/];
1129
+ }
1130
+ });
1131
+ }); });
1132
+ ava_1.default("JAVA_OTB_012b", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1133
+ var config, card, response;
1134
+ return __generator(this, function (_a) {
1135
+ switch (_a.label) {
1136
+ case 0:
1137
+ t.plan(2);
1138
+ config = new src_1.ServicesConfig();
1139
+ config.merchantId = "heartlandgpsandbox";
1140
+ config.accountId = "api";
1141
+ config.sharedSecret = "secret";
1142
+ config.refundPassword = "refund";
1143
+ config.rebatePassword = "rebate";
1144
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1145
+ config.timeout = 5000;
1146
+ config.channel = "ECOM";
1147
+ src_1.ServicesContainer.configure(config);
1148
+ card = new src_1.CreditCardData();
1149
+ card.number = "4263970000005262";
1150
+ card.expMonth = "12";
1151
+ card.expYear = "2018";
1152
+ card.cvn = "123";
1153
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1154
+ card.cardHolderName = "Peter Watermelon";
1155
+ return [4 /*yield*/, card
1156
+ .verify()
1157
+ .withCurrency("EUR")
1158
+ .withDescription("JAVA-OTB")
1159
+ .execute()];
1160
+ case 1:
1161
+ response = _a.sent();
1162
+ t.truthy(response);
1163
+ t.is("00", response.responseCode);
1164
+ return [2 /*return*/];
1165
+ }
1166
+ });
1167
+ }); });
1168
+ ava_1.default("JAVA_OTB_012c", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1169
+ var config, card, response;
1170
+ return __generator(this, function (_a) {
1171
+ switch (_a.label) {
1172
+ case 0:
1173
+ t.plan(2);
1174
+ config = new src_1.ServicesConfig();
1175
+ config.merchantId = "heartlandgpsandbox";
1176
+ config.accountId = "api";
1177
+ config.sharedSecret = "secret";
1178
+ config.refundPassword = "refund";
1179
+ config.rebatePassword = "rebate";
1180
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1181
+ config.timeout = 5000;
1182
+ config.channel = "ECOM";
1183
+ src_1.ServicesContainer.configure(config);
1184
+ card = new src_1.CreditCardData();
1185
+ card.number = "4263970000005262";
1186
+ card.expMonth = "12";
1187
+ card.expYear = "2018";
1188
+ card.cvn = "123";
1189
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1190
+ card.cardHolderName = "Peter Watermelon";
1191
+ return [4 /*yield*/, card
1192
+ .verify()
1193
+ .withCurrency("EUR")
1194
+ .withDescription("JAVA-OTB")
1195
+ .execute()];
1196
+ case 1:
1197
+ response = _a.sent();
1198
+ t.truthy(response);
1199
+ t.is("00", response.responseCode);
1200
+ return [2 /*return*/];
1201
+ }
1202
+ });
1203
+ }); });
1204
+ ava_1.default("JAVA_OTB_012d", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1205
+ var config, card, response;
1206
+ return __generator(this, function (_a) {
1207
+ switch (_a.label) {
1208
+ case 0:
1209
+ t.plan(2);
1210
+ config = new src_1.ServicesConfig();
1211
+ config.merchantId = "heartlandgpsandbox";
1212
+ config.accountId = "api";
1213
+ config.sharedSecret = "secret";
1214
+ config.refundPassword = "refund";
1215
+ config.rebatePassword = "rebate";
1216
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1217
+ config.timeout = 5000;
1218
+ config.channel = "ECOM";
1219
+ src_1.ServicesContainer.configure(config);
1220
+ card = new src_1.CreditCardData();
1221
+ card.number = "4263970000005262";
1222
+ card.expMonth = "12";
1223
+ card.expYear = "2018";
1224
+ card.cvn = "123";
1225
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1226
+ card.cardHolderName = "Peter Watermelon";
1227
+ return [4 /*yield*/, card
1228
+ .verify()
1229
+ .withCurrency("EUR")
1230
+ .withDescription("JAVA-OTB")
1231
+ .execute()];
1232
+ case 1:
1233
+ response = _a.sent();
1234
+ t.truthy(response);
1235
+ t.is("00", response.responseCode);
1236
+ return [2 /*return*/];
1237
+ }
1238
+ });
1239
+ }); });
1240
+ ava_1.default("JAVA_OTB_012e", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1241
+ var config, card, response;
1242
+ return __generator(this, function (_a) {
1243
+ switch (_a.label) {
1244
+ case 0:
1245
+ t.plan(2);
1246
+ config = new src_1.ServicesConfig();
1247
+ config.merchantId = "heartlandgpsandbox";
1248
+ config.accountId = "api";
1249
+ config.sharedSecret = "secret";
1250
+ config.refundPassword = "refund";
1251
+ config.rebatePassword = "rebate";
1252
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1253
+ config.timeout = 5000;
1254
+ config.channel = "ECOM";
1255
+ src_1.ServicesContainer.configure(config);
1256
+ card = new src_1.CreditCardData();
1257
+ card.number = "4263970000005262";
1258
+ card.expMonth = "12";
1259
+ card.expYear = "2018";
1260
+ card.cvn = "123";
1261
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1262
+ card.cardHolderName = "Peter Watermelon";
1263
+ return [4 /*yield*/, card
1264
+ .verify()
1265
+ .withCurrency("EUR")
1266
+ .withDescription("JAVA-OTB")
1267
+ .execute()];
1268
+ case 1:
1269
+ response = _a.sent();
1270
+ t.truthy(response);
1271
+ t.is("00", response.responseCode);
1272
+ return [2 /*return*/];
1273
+ }
1274
+ });
1275
+ }); });
1276
+ ava_1.default("JAVA_OTB_013a", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1277
+ var config, card, response;
1278
+ return __generator(this, function (_a) {
1279
+ switch (_a.label) {
1280
+ case 0:
1281
+ t.plan(2);
1282
+ config = new src_1.ServicesConfig();
1283
+ config.merchantId = "heartlandgpsandbox";
1284
+ config.accountId = "api";
1285
+ config.sharedSecret = "secret";
1286
+ config.refundPassword = "refund";
1287
+ config.rebatePassword = "rebate";
1288
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1289
+ config.timeout = 5000;
1290
+ config.channel = "ECOM";
1291
+ src_1.ServicesContainer.configure(config);
1292
+ card = new src_1.CreditCardData();
1293
+ card.number = "4263970000005262";
1294
+ card.expMonth = "12";
1295
+ card.expYear = "2018";
1296
+ card.cvn = "123";
1297
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1298
+ card.cardHolderName = "Peter Watermelon";
1299
+ return [4 /*yield*/, card
1300
+ .verify()
1301
+ .withCurrency("EUR")
1302
+ .withDescription("JAVA-OTB")
1303
+ .execute()];
1304
+ case 1:
1305
+ response = _a.sent();
1306
+ t.truthy(response);
1307
+ t.is("00", response.responseCode);
1308
+ return [2 /*return*/];
1309
+ }
1310
+ });
1311
+ }); });
1312
+ ava_1.default("JAVA_OTB_013b", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1313
+ var config, card, error;
1314
+ return __generator(this, function (_a) {
1315
+ switch (_a.label) {
1316
+ case 0:
1317
+ t.plan(2);
1318
+ config = new src_1.ServicesConfig();
1319
+ config.merchantId = "heartlandgpsandbox";
1320
+ config.accountId = "api";
1321
+ config.sharedSecret = "secret";
1322
+ config.refundPassword = "refund";
1323
+ config.rebatePassword = "rebate";
1324
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1325
+ config.timeout = 5000;
1326
+ config.channel = "ECOM";
1327
+ src_1.ServicesContainer.configure(config);
1328
+ card = new src_1.CreditCardData();
1329
+ card.number = "4263970000005262";
1330
+ card.expMonth = "12";
1331
+ card.expYear = "2018";
1332
+ card.cvn = "123";
1333
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1334
+ return [4 /*yield*/, t.throws(card
1335
+ .verify()
1336
+ .withCurrency("EUR")
1337
+ .withDescription("JAVA-OTB")
1338
+ .execute(), src_1.GatewayError)];
1339
+ case 1:
1340
+ error = _a.sent();
1341
+ t.truthy(error.message);
1342
+ return [2 /*return*/];
1343
+ }
1344
+ });
1345
+ }); });
1346
+ ava_1.default("JAVA_OTB_013c", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1347
+ var config, card, error;
1348
+ return __generator(this, function (_a) {
1349
+ switch (_a.label) {
1350
+ case 0:
1351
+ t.plan(2);
1352
+ config = new src_1.ServicesConfig();
1353
+ config.merchantId = "heartlandgpsandbox";
1354
+ config.accountId = "api";
1355
+ config.sharedSecret = "secret";
1356
+ config.refundPassword = "refund";
1357
+ config.rebatePassword = "rebate";
1358
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1359
+ config.timeout = 5000;
1360
+ config.channel = "ECOM";
1361
+ src_1.ServicesContainer.configure(config);
1362
+ card = new src_1.CreditCardData();
1363
+ card.number = "4263970000005262";
1364
+ card.expMonth = "12";
1365
+ card.expYear = "2018";
1366
+ card.cvn = "123";
1367
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1368
+ // tslint:disable:max-line-length
1369
+ card.cardHolderName =
1370
+ "Peter Watermeloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooon";
1371
+ return [4 /*yield*/, t.throws(card
1372
+ .verify()
1373
+ .withCurrency("EUR")
1374
+ .withDescription("JAVA-OTB")
1375
+ .execute(), src_1.GatewayError)];
1376
+ case 1:
1377
+ error = _a.sent();
1378
+ t.truthy(error.message);
1379
+ return [2 /*return*/];
1380
+ }
1381
+ });
1382
+ }); });
1383
+ ava_1.default("JAVA_OTB_013d", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1384
+ var config, card, response;
1385
+ return __generator(this, function (_a) {
1386
+ switch (_a.label) {
1387
+ case 0:
1388
+ t.plan(2);
1389
+ config = new src_1.ServicesConfig();
1390
+ config.merchantId = "heartlandgpsandbox";
1391
+ config.accountId = "api";
1392
+ config.sharedSecret = "secret";
1393
+ config.refundPassword = "refund";
1394
+ config.rebatePassword = "rebate";
1395
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1396
+ config.timeout = 5000;
1397
+ config.channel = "ECOM";
1398
+ src_1.ServicesContainer.configure(config);
1399
+ card = new src_1.CreditCardData();
1400
+ card.number = "4263970000005262";
1401
+ card.expMonth = "12";
1402
+ card.expYear = "2018";
1403
+ card.cvn = "123";
1404
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1405
+ card.cardHolderName = "Peter Watermelon";
1406
+ return [4 /*yield*/, card
1407
+ .verify()
1408
+ .withCurrency("EUR")
1409
+ .withDescription("JAVA-OTB")
1410
+ .execute()];
1411
+ case 1:
1412
+ response = _a.sent();
1413
+ t.truthy(response);
1414
+ t.is("00", response.responseCode);
1415
+ return [2 /*return*/];
1416
+ }
1417
+ });
1418
+ }); });
1419
+ ava_1.default("JAVA_OTB_014a", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1420
+ var config, card, response;
1421
+ return __generator(this, function (_a) {
1422
+ switch (_a.label) {
1423
+ case 0:
1424
+ t.plan(2);
1425
+ config = new src_1.ServicesConfig();
1426
+ config.merchantId = "heartlandgpsandbox";
1427
+ config.accountId = "api";
1428
+ config.sharedSecret = "secret";
1429
+ config.refundPassword = "refund";
1430
+ config.rebatePassword = "rebate";
1431
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1432
+ config.timeout = 5000;
1433
+ config.channel = "ECOM";
1434
+ src_1.ServicesContainer.configure(config);
1435
+ card = new src_1.CreditCardData();
1436
+ card.number = "4263970000005262";
1437
+ card.expMonth = "12";
1438
+ card.expYear = "2018";
1439
+ card.cvn = "123";
1440
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1441
+ card.cardHolderName = "Peter Watermelon";
1442
+ return [4 /*yield*/, card
1443
+ .verify()
1444
+ .withCurrency("EUR")
1445
+ .withDescription("JAVA-OTB")
1446
+ .execute()];
1447
+ case 1:
1448
+ response = _a.sent();
1449
+ t.truthy(response);
1450
+ t.is("00", response.responseCode);
1451
+ return [2 /*return*/];
1452
+ }
1453
+ });
1454
+ }); });
1455
+ ava_1.default("JAVA_OTB_014b", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1456
+ var config, card, response;
1457
+ return __generator(this, function (_a) {
1458
+ switch (_a.label) {
1459
+ case 0:
1460
+ t.plan(2);
1461
+ config = new src_1.ServicesConfig();
1462
+ config.merchantId = "heartlandgpsandbox";
1463
+ config.accountId = "api";
1464
+ config.sharedSecret = "secret";
1465
+ config.refundPassword = "refund";
1466
+ config.rebatePassword = "rebate";
1467
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1468
+ config.timeout = 5000;
1469
+ config.channel = "ECOM";
1470
+ src_1.ServicesContainer.configure(config);
1471
+ card = new src_1.CreditCardData();
1472
+ card.number = "4263970000005262";
1473
+ card.expMonth = "12";
1474
+ card.expYear = "2018";
1475
+ card.cvn = "123";
1476
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1477
+ card.cardHolderName = "Peter Watermelon";
1478
+ return [4 /*yield*/, card
1479
+ .verify()
1480
+ .withCurrency("EUR")
1481
+ .withDescription("JAVA-OTB")
1482
+ .execute()];
1483
+ case 1:
1484
+ response = _a.sent();
1485
+ t.truthy(response);
1486
+ t.is("00", response.responseCode);
1487
+ return [2 /*return*/];
1488
+ }
1489
+ });
1490
+ }); });
1491
+ ava_1.default("JAVA_OTB_014c", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1492
+ var config, card, error;
1493
+ return __generator(this, function (_a) {
1494
+ switch (_a.label) {
1495
+ case 0:
1496
+ t.plan(2);
1497
+ config = new src_1.ServicesConfig();
1498
+ config.merchantId = "heartlandgpsandbox";
1499
+ config.accountId = "api";
1500
+ config.sharedSecret = "secret";
1501
+ config.refundPassword = "refund";
1502
+ config.rebatePassword = "rebate";
1503
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1504
+ config.timeout = 5000;
1505
+ config.channel = "ECOM";
1506
+ src_1.ServicesContainer.configure(config);
1507
+ card = new src_1.CreditCardData();
1508
+ card.number = "4263970000005262";
1509
+ card.expMonth = "18";
1510
+ card.expYear = "2012";
1511
+ card.cvn = "123";
1512
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1513
+ card.cardHolderName = "Peter Watermelon";
1514
+ return [4 /*yield*/, t.throws(card
1515
+ .verify()
1516
+ .withCurrency("EUR")
1517
+ .withDescription("JAVA-OTB")
1518
+ .execute(), src_1.GatewayError)];
1519
+ case 1:
1520
+ error = _a.sent();
1521
+ t.truthy(error.message);
1522
+ return [2 /*return*/];
1523
+ }
1524
+ });
1525
+ }); });
1526
+ ava_1.default("JAVA_OTB_014d", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1527
+ var config, card, error;
1528
+ return __generator(this, function (_a) {
1529
+ switch (_a.label) {
1530
+ case 0:
1531
+ t.plan(2);
1532
+ config = new src_1.ServicesConfig();
1533
+ config.merchantId = "heartlandgpsandbox";
1534
+ config.accountId = "api";
1535
+ config.sharedSecret = "secret";
1536
+ config.refundPassword = "refund";
1537
+ config.rebatePassword = "rebate";
1538
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1539
+ config.timeout = 5000;
1540
+ config.channel = "ECOM";
1541
+ src_1.ServicesContainer.configure(config);
1542
+ card = new src_1.CreditCardData();
1543
+ card.number = "4263970000005262";
1544
+ card.cvn = "123";
1545
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1546
+ card.cardHolderName = "Peter Watermelon";
1547
+ return [4 /*yield*/, t.throws(card
1548
+ .verify()
1549
+ .withCurrency("EUR")
1550
+ .withDescription("JAVA-OTB")
1551
+ .execute(), src_1.GatewayError)];
1552
+ case 1:
1553
+ error = _a.sent();
1554
+ t.truthy(error.message);
1555
+ return [2 /*return*/];
1556
+ }
1557
+ });
1558
+ }); });
1559
+ ava_1.default("JAVA_OTB_015a", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1560
+ var config, card, response;
1561
+ return __generator(this, function (_a) {
1562
+ switch (_a.label) {
1563
+ case 0:
1564
+ t.plan(2);
1565
+ config = new src_1.ServicesConfig();
1566
+ config.merchantId = "heartlandgpsandbox";
1567
+ config.accountId = "api";
1568
+ config.sharedSecret = "secret";
1569
+ config.refundPassword = "refund";
1570
+ config.rebatePassword = "rebate";
1571
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1572
+ config.timeout = 5000;
1573
+ config.channel = "ECOM";
1574
+ src_1.ServicesContainer.configure(config);
1575
+ card = new src_1.CreditCardData();
1576
+ card.number = "4263970000005262";
1577
+ card.expMonth = "12";
1578
+ card.expYear = "2018";
1579
+ card.cvn = "123";
1580
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1581
+ card.cardHolderName = "Peter Watermelon";
1582
+ return [4 /*yield*/, card
1583
+ .verify()
1584
+ .withCurrency("EUR")
1585
+ .withDescription("JAVA-OTB")
1586
+ .execute()];
1587
+ case 1:
1588
+ response = _a.sent();
1589
+ t.truthy(response);
1590
+ t.is("00", response.responseCode);
1591
+ return [2 /*return*/];
1592
+ }
1593
+ });
1594
+ }); });
1595
+ ava_1.default("JAVA_OTB_015b", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1596
+ var config, card, response;
1597
+ return __generator(this, function (_a) {
1598
+ switch (_a.label) {
1599
+ case 0:
1600
+ t.plan(2);
1601
+ config = new src_1.ServicesConfig();
1602
+ config.merchantId = "heartlandgpsandbox";
1603
+ config.accountId = "api";
1604
+ config.sharedSecret = "secret";
1605
+ config.refundPassword = "refund";
1606
+ config.rebatePassword = "rebate";
1607
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1608
+ config.timeout = 5000;
1609
+ config.channel = "ECOM";
1610
+ src_1.ServicesContainer.configure(config);
1611
+ card = new src_1.CreditCardData();
1612
+ card.number = "4263970000005262";
1613
+ card.expMonth = "12";
1614
+ card.expYear = "2018";
1615
+ card.cvn = "123";
1616
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1617
+ card.cardHolderName = "Peter Watermelon";
1618
+ return [4 /*yield*/, card
1619
+ .verify()
1620
+ .withCurrency("EUR")
1621
+ .withDescription("JAVA-OTB")
1622
+ .execute()];
1623
+ case 1:
1624
+ response = _a.sent();
1625
+ t.truthy(response);
1626
+ t.is("00", response.responseCode);
1627
+ return [2 /*return*/];
1628
+ }
1629
+ });
1630
+ }); });
1631
+ ava_1.default("JAVA_OTB_015c", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1632
+ var config, card, response;
1633
+ return __generator(this, function (_a) {
1634
+ switch (_a.label) {
1635
+ case 0:
1636
+ t.plan(2);
1637
+ config = new src_1.ServicesConfig();
1638
+ config.merchantId = "heartlandgpsandbox";
1639
+ config.accountId = "api";
1640
+ config.sharedSecret = "secret";
1641
+ config.refundPassword = "refund";
1642
+ config.rebatePassword = "rebate";
1643
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1644
+ config.timeout = 5000;
1645
+ config.channel = "ECOM";
1646
+ src_1.ServicesContainer.configure(config);
1647
+ card = new src_1.CreditCardData();
1648
+ card.number = "4263970000005262";
1649
+ card.expMonth = "12";
1650
+ card.expYear = "2018";
1651
+ card.cvn = "123";
1652
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1653
+ card.cardHolderName = "Peter Watermelon";
1654
+ return [4 /*yield*/, card
1655
+ .verify()
1656
+ .withCurrency("EUR")
1657
+ .withDescription("JAVA-OTB")
1658
+ .execute()];
1659
+ case 1:
1660
+ response = _a.sent();
1661
+ t.truthy(response);
1662
+ t.is("00", response.responseCode);
1663
+ return [2 /*return*/];
1664
+ }
1665
+ });
1666
+ }); });
1667
+ ava_1.default("JAVA_OTB_016a", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1668
+ var config, card, response;
1669
+ return __generator(this, function (_a) {
1670
+ switch (_a.label) {
1671
+ case 0:
1672
+ t.plan(2);
1673
+ config = new src_1.ServicesConfig();
1674
+ config.merchantId = "heartlandgpsandbox";
1675
+ config.accountId = "api";
1676
+ config.sharedSecret = "secret";
1677
+ config.refundPassword = "refund";
1678
+ config.rebatePassword = "rebate";
1679
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1680
+ config.timeout = 5000;
1681
+ config.channel = "ECOM";
1682
+ src_1.ServicesContainer.configure(config);
1683
+ card = new src_1.CreditCardData();
1684
+ card.number = "4263970000005262";
1685
+ card.expMonth = "12";
1686
+ card.expYear = "2018";
1687
+ card.cvn = "123";
1688
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1689
+ card.cardHolderName = "Peter Watermelon";
1690
+ return [4 /*yield*/, card
1691
+ .verify()
1692
+ .withCurrency("EUR")
1693
+ .withDescription("JAVA-OTB")
1694
+ .execute()];
1695
+ case 1:
1696
+ response = _a.sent();
1697
+ t.truthy(response);
1698
+ t.is("00", response.responseCode);
1699
+ return [2 /*return*/];
1700
+ }
1701
+ });
1702
+ }); });
1703
+ ava_1.default("JAVA_OTB_017a", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1704
+ var config, card, response;
1705
+ return __generator(this, function (_a) {
1706
+ switch (_a.label) {
1707
+ case 0:
1708
+ t.plan(2);
1709
+ config = new src_1.ServicesConfig();
1710
+ config.merchantId = "heartlandgpsandbox";
1711
+ config.accountId = "api";
1712
+ config.sharedSecret = "secret";
1713
+ config.refundPassword = "refund";
1714
+ config.rebatePassword = "rebate";
1715
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1716
+ config.timeout = 5000;
1717
+ config.channel = "ECOM";
1718
+ src_1.ServicesContainer.configure(config);
1719
+ card = new src_1.CreditCardData();
1720
+ card.number = "4263970000005262";
1721
+ card.expMonth = "12";
1722
+ card.expYear = "2018";
1723
+ card.cvn = "123";
1724
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1725
+ card.cardHolderName = "Peter Watermelon";
1726
+ return [4 /*yield*/, card
1727
+ .verify()
1728
+ .withCurrency("EUR")
1729
+ .withDescription("JAVA-OTB")
1730
+ .execute()];
1731
+ case 1:
1732
+ response = _a.sent();
1733
+ t.truthy(response);
1734
+ t.is("00", response.responseCode);
1735
+ return [2 /*return*/];
1736
+ }
1737
+ });
1738
+ }); });
1739
+ ava_1.default("JAVA_OTB_017b", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1740
+ var config, card, error;
1741
+ return __generator(this, function (_a) {
1742
+ switch (_a.label) {
1743
+ case 0:
1744
+ t.plan(2);
1745
+ config = new src_1.ServicesConfig();
1746
+ config.merchantId = "heartlandgpsandbox";
1747
+ config.accountId = "api";
1748
+ config.sharedSecret = "secret";
1749
+ config.refundPassword = "refund";
1750
+ config.rebatePassword = "rebate";
1751
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1752
+ config.timeout = 5000;
1753
+ config.channel = "ECOM";
1754
+ src_1.ServicesContainer.configure(config);
1755
+ card = new src_1.CreditCardData();
1756
+ card.number = "4263970000005262";
1757
+ card.expMonth = "12";
1758
+ card.expYear = "2018";
1759
+ card.cvn = "1234";
1760
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1761
+ card.cardHolderName = "Peter Watermelon";
1762
+ return [4 /*yield*/, t.throws(card
1763
+ .verify()
1764
+ .withCurrency("EUR")
1765
+ .withDescription("JAVA-OTB")
1766
+ .execute(), src_1.GatewayError)];
1767
+ case 1:
1768
+ error = _a.sent();
1769
+ t.truthy(error.message);
1770
+ return [2 /*return*/];
1771
+ }
1772
+ });
1773
+ }); });
1774
+ ava_1.default("JAVA_OTB_017c", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1775
+ var config, card, error;
1776
+ return __generator(this, function (_a) {
1777
+ switch (_a.label) {
1778
+ case 0:
1779
+ t.plan(2);
1780
+ config = new src_1.ServicesConfig();
1781
+ config.merchantId = "heartlandgpsandbox";
1782
+ config.accountId = "api";
1783
+ config.sharedSecret = "secret";
1784
+ config.refundPassword = "refund";
1785
+ config.rebatePassword = "rebate";
1786
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1787
+ config.timeout = 5000;
1788
+ config.channel = "ECOM";
1789
+ src_1.ServicesContainer.configure(config);
1790
+ card = new src_1.CreditCardData();
1791
+ card.number = "4263970000005262";
1792
+ card.expMonth = "12";
1793
+ card.expYear = "2018";
1794
+ card.cvn = "1.23457E+18";
1795
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1796
+ card.cardHolderName = "Peter Watermelon";
1797
+ return [4 /*yield*/, t.throws(card
1798
+ .verify()
1799
+ .withCurrency("EUR")
1800
+ .withDescription("JAVA-OTB")
1801
+ .execute(), src_1.GatewayError)];
1802
+ case 1:
1803
+ error = _a.sent();
1804
+ t.truthy(error.message);
1805
+ return [2 /*return*/];
1806
+ }
1807
+ });
1808
+ }); });
1809
+ ava_1.default("JAVA_OTB_017d", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1810
+ var config, card, response;
1811
+ return __generator(this, function (_a) {
1812
+ switch (_a.label) {
1813
+ case 0:
1814
+ t.plan(2);
1815
+ config = new src_1.ServicesConfig();
1816
+ config.merchantId = "heartlandgpsandbox";
1817
+ config.accountId = "api";
1818
+ config.sharedSecret = "secret";
1819
+ config.refundPassword = "refund";
1820
+ config.rebatePassword = "rebate";
1821
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1822
+ config.timeout = 5000;
1823
+ config.channel = "ECOM";
1824
+ src_1.ServicesContainer.configure(config);
1825
+ card = new src_1.CreditCardData();
1826
+ card.number = "374101000000608";
1827
+ card.expMonth = "12";
1828
+ card.expYear = "2019";
1829
+ card.cvn = "1234";
1830
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1831
+ card.cardHolderName = "Peter Watermelon";
1832
+ return [4 /*yield*/, card
1833
+ .verify()
1834
+ .withCurrency("EUR")
1835
+ .withDescription("JAVA-OTB")
1836
+ .execute()];
1837
+ case 1:
1838
+ response = _a.sent();
1839
+ t.truthy(response);
1840
+ t.is("00", response.responseCode);
1841
+ return [2 /*return*/];
1842
+ }
1843
+ });
1844
+ }); });
1845
+ ava_1.default("JAVA_OTB_017f", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1846
+ var config, card, error;
1847
+ return __generator(this, function (_a) {
1848
+ switch (_a.label) {
1849
+ case 0:
1850
+ t.plan(2);
1851
+ config = new src_1.ServicesConfig();
1852
+ config.merchantId = "heartlandgpsandbox";
1853
+ config.accountId = "api";
1854
+ config.sharedSecret = "secret";
1855
+ config.refundPassword = "refund";
1856
+ config.rebatePassword = "rebate";
1857
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1858
+ config.timeout = 5000;
1859
+ config.channel = "ECOM";
1860
+ src_1.ServicesContainer.configure(config);
1861
+ card = new src_1.CreditCardData();
1862
+ card.number = "4263970000005262";
1863
+ card.expMonth = "12";
1864
+ card.expYear = "2018";
1865
+ card.cvn = "7";
1866
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1867
+ card.cardHolderName = "Peter Watermelon";
1868
+ return [4 /*yield*/, t.throws(card
1869
+ .verify()
1870
+ .withCurrency("EUR")
1871
+ .withDescription("JAVA-OTB")
1872
+ .execute(), src_1.GatewayError)];
1873
+ case 1:
1874
+ error = _a.sent();
1875
+ t.truthy(error.message);
1876
+ return [2 /*return*/];
1877
+ }
1878
+ });
1879
+ }); });
1880
+ ava_1.default("JAVA_OTB_017g", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1881
+ var config, card, error;
1882
+ return __generator(this, function (_a) {
1883
+ switch (_a.label) {
1884
+ case 0:
1885
+ t.plan(2);
1886
+ config = new src_1.ServicesConfig();
1887
+ config.merchantId = "heartlandgpsandbox";
1888
+ config.accountId = "api";
1889
+ config.sharedSecret = "secret";
1890
+ config.refundPassword = "refund";
1891
+ config.rebatePassword = "rebate";
1892
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1893
+ config.timeout = 5000;
1894
+ config.channel = "ECOM";
1895
+ src_1.ServicesContainer.configure(config);
1896
+ card = new src_1.CreditCardData();
1897
+ card.number = "4263970000005262";
1898
+ card.expMonth = "12";
1899
+ card.expYear = "2018";
1900
+ card.cvn = "7";
1901
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1902
+ card.cardHolderName = "Peter Watermelon";
1903
+ return [4 /*yield*/, t.throws(card
1904
+ .verify()
1905
+ .withCurrency("EUR")
1906
+ .withDescription("JAVA-OTB")
1907
+ .execute(), src_1.GatewayError)];
1908
+ case 1:
1909
+ error = _a.sent();
1910
+ t.truthy(error.message);
1911
+ return [2 /*return*/];
1912
+ }
1913
+ });
1914
+ }); });
1915
+ ava_1.default("JAVA_OTB_018a", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1916
+ var config, card, response;
1917
+ return __generator(this, function (_a) {
1918
+ switch (_a.label) {
1919
+ case 0:
1920
+ t.plan(2);
1921
+ config = new src_1.ServicesConfig();
1922
+ config.merchantId = "heartlandgpsandbox";
1923
+ config.accountId = "api";
1924
+ config.sharedSecret = "secret";
1925
+ config.refundPassword = "refund";
1926
+ config.rebatePassword = "rebate";
1927
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1928
+ config.timeout = 5000;
1929
+ config.channel = "ECOM";
1930
+ src_1.ServicesContainer.configure(config);
1931
+ card = new src_1.CreditCardData();
1932
+ card.number = "4263970000005262";
1933
+ card.expMonth = "12";
1934
+ card.expYear = "2018";
1935
+ card.cvn = "123";
1936
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1937
+ card.cardHolderName = "Peter Watermelon";
1938
+ return [4 /*yield*/, card
1939
+ .verify()
1940
+ .withCurrency("EUR")
1941
+ .withDescription("JAVA-OTB")
1942
+ .execute()];
1943
+ case 1:
1944
+ response = _a.sent();
1945
+ t.truthy(response);
1946
+ t.is("00", response.responseCode);
1947
+ return [2 /*return*/];
1948
+ }
1949
+ });
1950
+ }); });
1951
+ ava_1.default("JAVA_OTB_018b", function (t) { return __awaiter(void 0, void 0, void 0, function () {
1952
+ var config, card, error;
1953
+ return __generator(this, function (_a) {
1954
+ switch (_a.label) {
1955
+ case 0:
1956
+ t.plan(2);
1957
+ config = new src_1.ServicesConfig();
1958
+ config.merchantId = "heartlandgpsandbox";
1959
+ config.accountId = "api";
1960
+ config.sharedSecret = "secreto";
1961
+ config.refundPassword = "refund";
1962
+ config.rebatePassword = "rebate";
1963
+ config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
1964
+ config.timeout = 5000;
1965
+ config.channel = "ECOM";
1966
+ src_1.ServicesContainer.configure(config);
1967
+ card = new src_1.CreditCardData();
1968
+ card.number = "4263970000005262";
1969
+ card.expMonth = "12";
1970
+ card.expYear = "2018";
1971
+ card.cvn = "123";
1972
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1973
+ card.cardHolderName = "Peter Watermelon";
1974
+ return [4 /*yield*/, t.throws(card
1975
+ .verify()
1976
+ .withCurrency("EUR")
1977
+ .withDescription("JAVA-OTB")
1978
+ .execute(), src_1.GatewayError)];
1979
+ case 1:
1980
+ error = _a.sent();
1981
+ t.truthy(error.message);
1982
+ return [2 /*return*/];
1983
+ }
1984
+ });
1985
+ }); });
1986
+ //# sourceMappingURL=OtbTest.js.map