globalpayments-api 1.4.9 → 2.0.0

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 (295) hide show
  1. package/CHANGELOG.md +7 -3
  2. package/package.json +3 -4
  3. package/lib/src/Builders/AuthorizationBuilder.d.ts +0 -325
  4. package/lib/src/Builders/AuthorizationBuilder.js +0 -599
  5. package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +0 -14
  6. package/lib/src/Builders/BaseBuilder/ValidationClause.js +0 -61
  7. package/lib/src/Builders/BaseBuilder/ValidationTarget.d.ts +0 -16
  8. package/lib/src/Builders/BaseBuilder/ValidationTarget.js +0 -28
  9. package/lib/src/Builders/BaseBuilder/Validations.d.ts +0 -11
  10. package/lib/src/Builders/BaseBuilder/Validations.js +0 -56
  11. package/lib/src/Builders/BaseBuilder.d.ts +0 -11
  12. package/lib/src/Builders/BaseBuilder.js +0 -16
  13. package/lib/src/Builders/ManagementBuilder.d.ts +0 -103
  14. package/lib/src/Builders/ManagementBuilder.js +0 -227
  15. package/lib/src/Builders/PayFacBuilder.d.ts +0 -96
  16. package/lib/src/Builders/PayFacBuilder.js +0 -184
  17. package/lib/src/Builders/RecurringBuilder.d.ts +0 -13
  18. package/lib/src/Builders/RecurringBuilder.js +0 -47
  19. package/lib/src/Builders/ReportBuilder.d.ts +0 -8
  20. package/lib/src/Builders/ReportBuilder.js +0 -36
  21. package/lib/src/Builders/TransactionBuilder.d.ts +0 -10
  22. package/lib/src/Builders/TransactionBuilder.js +0 -46
  23. package/lib/src/Builders/TransactionReportBuilder.d.ts +0 -15
  24. package/lib/src/Builders/TransactionReportBuilder.js +0 -79
  25. package/lib/src/Builders/index.d.ts +0 -7
  26. package/lib/src/Builders/index.js +0 -19
  27. package/lib/src/Entities/Address.d.ts +0 -13
  28. package/lib/src/Entities/Address.js +0 -19
  29. package/lib/src/Entities/BatchSummary.d.ts +0 -6
  30. package/lib/src/Entities/BatchSummary.js +0 -9
  31. package/lib/src/Entities/Customer.d.ts +0 -64
  32. package/lib/src/Entities/Customer.js +0 -47
  33. package/lib/src/Entities/DocumentUploadData.d.ts +0 -13
  34. package/lib/src/Entities/DocumentUploadData.js +0 -48
  35. package/lib/src/Entities/EcommerceInfo.d.ts +0 -12
  36. package/lib/src/Entities/EcommerceInfo.js +0 -14
  37. package/lib/src/Entities/EncryptionData.d.ts +0 -6
  38. package/lib/src/Entities/EncryptionData.js +0 -9
  39. package/lib/src/Entities/Enums.d.ts +0 -273
  40. package/lib/src/Entities/Enums.js +0 -385
  41. package/lib/src/Entities/Errors.d.ts +0 -23
  42. package/lib/src/Entities/Errors.js +0 -106
  43. package/lib/src/Entities/HostedPaymentData.d.ts +0 -10
  44. package/lib/src/Entities/HostedPaymentData.js +0 -10
  45. package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +0 -7
  46. package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +0 -9
  47. package/lib/src/Entities/ProFac/AccountPermissions.d.ts +0 -15
  48. package/lib/src/Entities/ProFac/AccountPermissions.js +0 -9
  49. package/lib/src/Entities/ProFac/BankAccountData.d.ts +0 -10
  50. package/lib/src/Entities/ProFac/BankAccountData.js +0 -9
  51. package/lib/src/Entities/ProFac/BankAccountOwnershipData.d.ts +0 -8
  52. package/lib/src/Entities/ProFac/BankAccountOwnershipData.js +0 -11
  53. package/lib/src/Entities/ProFac/BeneficialOwnerData.d.ts +0 -6
  54. package/lib/src/Entities/ProFac/BeneficialOwnerData.js +0 -10
  55. package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.d.ts +0 -5
  56. package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js +0 -9
  57. package/lib/src/Entities/ProFac/BusinessData.d.ts +0 -14
  58. package/lib/src/Entities/ProFac/BusinessData.js +0 -11
  59. package/lib/src/Entities/ProFac/DeviceAttributeInfo.d.ts +0 -4
  60. package/lib/src/Entities/ProFac/DeviceAttributeInfo.js +0 -9
  61. package/lib/src/Entities/ProFac/DeviceData.d.ts +0 -5
  62. package/lib/src/Entities/ProFac/DeviceData.js +0 -10
  63. package/lib/src/Entities/ProFac/DeviceInfo.d.ts +0 -6
  64. package/lib/src/Entities/ProFac/DeviceInfo.js +0 -9
  65. package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.d.ts +0 -7
  66. package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js +0 -13
  67. package/lib/src/Entities/ProFac/GrossBillingInformation.d.ts +0 -8
  68. package/lib/src/Entities/ProFac/GrossBillingInformation.js +0 -9
  69. package/lib/src/Entities/ProFac/OrderDevice.d.ts +0 -18
  70. package/lib/src/Entities/ProFac/OrderDevice.js +0 -9
  71. package/lib/src/Entities/ProFac/OwnersData.d.ts +0 -12
  72. package/lib/src/Entities/ProFac/OwnersData.js +0 -11
  73. package/lib/src/Entities/ProFac/PayFacResponseData.d.ts +0 -55
  74. package/lib/src/Entities/ProFac/PayFacResponseData.js +0 -9
  75. package/lib/src/Entities/ProFac/RenewAccountData.d.ts +0 -10
  76. package/lib/src/Entities/ProFac/RenewAccountData.js +0 -11
  77. package/lib/src/Entities/ProFac/SignificantOwnerData.d.ts +0 -8
  78. package/lib/src/Entities/ProFac/SignificantOwnerData.js +0 -11
  79. package/lib/src/Entities/ProFac/ThreatRiskData.d.ts +0 -5
  80. package/lib/src/Entities/ProFac/ThreatRiskData.js +0 -9
  81. package/lib/src/Entities/ProFac/UserPersonalData.d.ts +0 -26
  82. package/lib/src/Entities/ProFac/UserPersonalData.js +0 -14
  83. package/lib/src/Entities/RecurringEntity.d.ts +0 -14
  84. package/lib/src/Entities/RecurringEntity.js +0 -86
  85. package/lib/src/Entities/SSORequestData.d.ts +0 -5
  86. package/lib/src/Entities/SSORequestData.js +0 -9
  87. package/lib/src/Entities/Schedule.d.ts +0 -47
  88. package/lib/src/Entities/Schedule.js +0 -253
  89. package/lib/src/Entities/Transaction.d.ts +0 -78
  90. package/lib/src/Entities/Transaction.js +0 -108
  91. package/lib/src/Entities/TransactionSummary.d.ts +0 -61
  92. package/lib/src/Entities/TransactionSummary.js +0 -9
  93. package/lib/src/Entities/index.d.ts +0 -12
  94. package/lib/src/Entities/index.js +0 -24
  95. package/lib/src/Gateways/Gateway.d.ts +0 -10
  96. package/lib/src/Gateways/Gateway.js +0 -42
  97. package/lib/src/Gateways/IPayFacProvider.d.ts +0 -5
  98. package/lib/src/Gateways/IPayFacProvider.js +0 -2
  99. package/lib/src/Gateways/IPaymentGateway.d.ts +0 -8
  100. package/lib/src/Gateways/IPaymentGateway.js +0 -2
  101. package/lib/src/Gateways/IRecurringService.d.ts +0 -6
  102. package/lib/src/Gateways/IRecurringService.js +0 -2
  103. package/lib/src/Gateways/PayPlanConnector.d.ts +0 -43
  104. package/lib/src/Gateways/PayPlanConnector.js +0 -564
  105. package/lib/src/Gateways/PorticoConnector.d.ts +0 -44
  106. package/lib/src/Gateways/PorticoConnector.js +0 -1017
  107. package/lib/src/Gateways/ProPayConnector.d.ts +0 -41
  108. package/lib/src/Gateways/ProPayConnector.js +0 -698
  109. package/lib/src/Gateways/RealexConnector.d.ts +0 -30
  110. package/lib/src/Gateways/RealexConnector.js +0 -523
  111. package/lib/src/Gateways/RestGateway.d.ts +0 -6
  112. package/lib/src/Gateways/RestGateway.js +0 -31
  113. package/lib/src/Gateways/XmlGateway.d.ts +0 -6
  114. package/lib/src/Gateways/XmlGateway.js +0 -39
  115. package/lib/src/Gateways/https-wrapper.d.ts +0 -3
  116. package/lib/src/Gateways/https-wrapper.js +0 -35
  117. package/lib/src/Gateways/index.d.ts +0 -7
  118. package/lib/src/Gateways/index.js +0 -19
  119. package/lib/src/HostedPaymentConfig.d.ts +0 -12
  120. package/lib/src/HostedPaymentConfig.js +0 -9
  121. package/lib/src/PaymentMethods/Cash.d.ts +0 -8
  122. package/lib/src/PaymentMethods/Cash.js +0 -36
  123. package/lib/src/PaymentMethods/Credit.d.ts +0 -85
  124. package/lib/src/PaymentMethods/Credit.js +0 -106
  125. package/lib/src/PaymentMethods/CreditCardData.d.ts +0 -20
  126. package/lib/src/PaymentMethods/CreditCardData.js +0 -57
  127. package/lib/src/PaymentMethods/CreditTrackData.d.ts +0 -7
  128. package/lib/src/PaymentMethods/CreditTrackData.js +0 -27
  129. package/lib/src/PaymentMethods/Debit.d.ts +0 -40
  130. package/lib/src/PaymentMethods/Debit.js +0 -70
  131. package/lib/src/PaymentMethods/DebitTrackData.d.ts +0 -7
  132. package/lib/src/PaymentMethods/DebitTrackData.js +0 -27
  133. package/lib/src/PaymentMethods/EBT.d.ts +0 -48
  134. package/lib/src/PaymentMethods/EBT.js +0 -88
  135. package/lib/src/PaymentMethods/EBTCardData.d.ts +0 -16
  136. package/lib/src/PaymentMethods/EBTCardData.js +0 -32
  137. package/lib/src/PaymentMethods/EBTTrackData.d.ts +0 -8
  138. package/lib/src/PaymentMethods/EBTTrackData.js +0 -27
  139. package/lib/src/PaymentMethods/ECheck.d.ts +0 -32
  140. package/lib/src/PaymentMethods/ECheck.js +0 -40
  141. package/lib/src/PaymentMethods/GiftCard.d.ts +0 -131
  142. package/lib/src/PaymentMethods/GiftCard.js +0 -205
  143. package/lib/src/PaymentMethods/Interfaces.d.ts +0 -55
  144. package/lib/src/PaymentMethods/Interfaces.js +0 -2
  145. package/lib/src/PaymentMethods/PaymentMethod.d.ts +0 -19
  146. package/lib/src/PaymentMethods/PaymentMethod.js +0 -114
  147. package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +0 -23
  148. package/lib/src/PaymentMethods/RecurringPaymentMethod.js +0 -77
  149. package/lib/src/PaymentMethods/TransactionReference.d.ts +0 -10
  150. package/lib/src/PaymentMethods/TransactionReference.js +0 -12
  151. package/lib/src/PaymentMethods/index.d.ts +0 -15
  152. package/lib/src/PaymentMethods/index.js +0 -27
  153. package/lib/src/Services/BatchService.d.ts +0 -4
  154. package/lib/src/Services/BatchService.js +0 -17
  155. package/lib/src/Services/CheckService.d.ts +0 -6
  156. package/lib/src/Services/CheckService.js +0 -20
  157. package/lib/src/Services/CreditService.d.ts +0 -12
  158. package/lib/src/Services/CreditService.js +0 -54
  159. package/lib/src/Services/DebitService.d.ts +0 -7
  160. package/lib/src/Services/DebitService.js +0 -28
  161. package/lib/src/Services/EBTService.d.ts +0 -8
  162. package/lib/src/Services/EBTService.js +0 -32
  163. package/lib/src/Services/GiftService.d.ts +0 -16
  164. package/lib/src/Services/GiftService.js +0 -54
  165. package/lib/src/Services/HostedService.d.ts +0 -9
  166. package/lib/src/Services/HostedService.js +0 -59
  167. package/lib/src/Services/PayFacService.d.ts +0 -26
  168. package/lib/src/Services/PayFacService.js +0 -77
  169. package/lib/src/Services/RecurringService.d.ts +0 -8
  170. package/lib/src/Services/RecurringService.js +0 -27
  171. package/lib/src/Services/ReportingService.d.ts +0 -6
  172. package/lib/src/Services/ReportingService.js +0 -19
  173. package/lib/src/Services/index.d.ts +0 -9
  174. package/lib/src/Services/index.js +0 -21
  175. package/lib/src/ServicesConfig.d.ts +0 -27
  176. package/lib/src/ServicesConfig.js +0 -50
  177. package/lib/src/ServicesContainer.d.ts +0 -14
  178. package/lib/src/ServicesContainer.js +0 -87
  179. package/lib/src/Utils/GenerationUtils.d.ts +0 -5
  180. package/lib/src/Utils/GenerationUtils.js +0 -36
  181. package/lib/src/Utils/InputValidation.d.ts +0 -12
  182. package/lib/src/Utils/InputValidation.js +0 -72
  183. package/lib/src/Utils/Sha1.d.ts +0 -6
  184. package/lib/src/Utils/Sha1.js +0 -225
  185. package/lib/src/Utils/StringUtils.d.ts +0 -6
  186. package/lib/src/Utils/StringUtils.js +0 -53
  187. package/lib/src/Utils/index.d.ts +0 -2
  188. package/lib/src/Utils/index.js +0 -14
  189. package/lib/src/index.d.ts +0 -11
  190. package/lib/src/index.js +0 -27
  191. package/lib/test/Data/TestCards.d.ts +0 -24
  192. package/lib/test/Data/TestCards.js +0 -232
  193. package/lib/test/Data/TestChecks.d.ts +0 -4
  194. package/lib/test/Data/TestChecks.js +0 -32
  195. package/lib/test/Data/index.d.ts +0 -2
  196. package/lib/test/Data/index.js +0 -14
  197. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
  198. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -112
  199. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
  200. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -483
  201. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
  202. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -83
  203. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
  204. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1720
  205. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
  206. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -83
  207. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
  208. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1757
  209. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
  210. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -682
  211. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
  212. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2218
  213. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
  214. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -707
  215. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
  216. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -151
  217. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
  218. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -171
  219. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
  220. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -192
  221. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
  222. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -377
  223. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
  224. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -196
  225. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
  226. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -47
  227. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.d.ts +0 -1
  228. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.js +0 -100
  229. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.d.ts +0 -1
  230. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.js +0 -352
  231. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.d.ts +0 -1
  232. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js +0 -123
  233. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.d.ts +0 -1
  234. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.js +0 -146
  235. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +0 -39
  236. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +0 -371
  237. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.d.ts +0 -1
  238. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.js +0 -100
  239. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.d.ts +0 -1
  240. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.js +0 -535
  241. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.d.ts +0 -1
  242. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.js +0 -124
  243. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.d.ts +0 -1
  244. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.js +0 -144
  245. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +0 -33
  246. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +0 -268
  247. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +0 -4
  248. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +0 -30
  249. package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.d.ts +0 -1
  250. package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js +0 -4373
  251. package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.d.ts +0 -1
  252. package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js +0 -758
  253. package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.d.ts +0 -1
  254. package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js +0 -2399
  255. package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.d.ts +0 -1
  256. package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js +0 -1656
  257. package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.d.ts +0 -1
  258. package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js +0 -5650
  259. package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.d.ts +0 -1
  260. package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js +0 -1985
  261. package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.d.ts +0 -1
  262. package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js +0 -2369
  263. package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.d.ts +0 -1
  264. package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js +0 -1703
  265. package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.d.ts +0 -1
  266. package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js +0 -2053
  267. package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.d.ts +0 -1
  268. package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js +0 -2469
  269. package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.d.ts +0 -1
  270. package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js +0 -3116
  271. package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.d.ts +0 -1
  272. package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js +0 -2031
  273. package/lib/test/Integration/Gateways/RealexConnector/CreditTest.d.ts +0 -1
  274. package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js +0 -322
  275. package/lib/test/Integration/Gateways/RealexConnector/HppTest.d.ts +0 -1
  276. package/lib/test/Integration/Gateways/RealexConnector/HppTest.js +0 -98
  277. package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.d.ts +0 -1
  278. package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js +0 -263
  279. package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
  280. package/lib/test/Integration/Services/CheckServiceTest.js +0 -98
  281. package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
  282. package/lib/test/Integration/Services/CreditServiceTest.js +0 -313
  283. package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
  284. package/lib/test/Integration/Services/DebitServiceTest.js +0 -154
  285. package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
  286. package/lib/test/Integration/Services/EBTServiceTest.js +0 -135
  287. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
  288. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -161
  289. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
  290. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -139
  291. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
  292. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -202
  293. package/lib/test/Unit/Gateways/RealexConnector/CreditTest.d.ts +0 -1
  294. package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js +0 -29
  295. package/logger.txt +0 -483
@@ -1,322 +0,0 @@
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 config = new src_1.ServicesConfig();
42
- config.merchantId = "heartlandgpsandbox";
43
- config.accountId = "api";
44
- config.sharedSecret = "secret";
45
- config.rebatePassword = "rebate";
46
- config.refundPassword = "refund";
47
- config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
48
- var card = new src_1.CreditCardData();
49
- card.number = "4111111111111111";
50
- card.expMonth = "12";
51
- card.expYear = "2025";
52
- card.cvn = "123";
53
- card.cardHolderName = "Joe Smith";
54
- ava_1.default.before(function (_t) {
55
- src_1.ServicesContainer.configure(config);
56
- });
57
- ava_1.default("credit authorization", function (t) { return __awaiter(void 0, void 0, void 0, function () {
58
- var authorization, capture;
59
- return __generator(this, function (_a) {
60
- switch (_a.label) {
61
- case 0:
62
- t.plan(4);
63
- return [4 /*yield*/, card
64
- .authorize("14")
65
- .withCurrency("USD")
66
- .withAllowDuplicates(true)
67
- .execute()];
68
- case 1:
69
- authorization = _a.sent();
70
- t.truthy(authorization);
71
- t.is(authorization.responseCode, "00", authorization.responseMessage);
72
- return [4 /*yield*/, authorization
73
- .capture("16")
74
- .withGratuity("2")
75
- .execute()];
76
- case 2:
77
- capture = _a.sent();
78
- t.truthy(capture);
79
- t.is(capture.responseCode, "00", capture.responseMessage);
80
- return [2 /*return*/];
81
- }
82
- });
83
- }); });
84
- ava_1.default("credit sale", function (t) { return __awaiter(void 0, void 0, void 0, function () {
85
- var response;
86
- return __generator(this, function (_a) {
87
- switch (_a.label) {
88
- case 0:
89
- t.plan(2);
90
- return [4 /*yield*/, card
91
- .charge(15)
92
- .withCurrency("USD")
93
- .withAllowDuplicates(true)
94
- .execute()];
95
- case 1:
96
- response = _a.sent();
97
- t.truthy(response);
98
- t.is(response.responseCode, "00", response.responseMessage);
99
- return [2 /*return*/];
100
- }
101
- });
102
- }); });
103
- ava_1.default("credit sale with recurring", function (t) { return __awaiter(void 0, void 0, void 0, function () {
104
- var response;
105
- return __generator(this, function (_a) {
106
- switch (_a.label) {
107
- case 0:
108
- t.plan(2);
109
- return [4 /*yield*/, card
110
- .charge(15)
111
- .withCurrency("USD")
112
- .withRecurringInfo(src_1.RecurringType.Fixed, src_1.RecurringSequence.First)
113
- .withAllowDuplicates(true)
114
- .execute()];
115
- case 1:
116
- response = _a.sent();
117
- t.truthy(response);
118
- t.is(response.responseCode, "00", response.responseMessage);
119
- return [2 /*return*/];
120
- }
121
- });
122
- }); });
123
- ava_1.default("credit refund", function (t) { return __awaiter(void 0, void 0, void 0, function () {
124
- var response;
125
- return __generator(this, function (_a) {
126
- switch (_a.label) {
127
- case 0:
128
- t.plan(2);
129
- return [4 /*yield*/, card
130
- .refund(16)
131
- .withCurrency("USD")
132
- .withAllowDuplicates(true)
133
- .execute()];
134
- case 1:
135
- response = _a.sent();
136
- t.truthy(response);
137
- t.is(response.responseCode, "00", response.responseMessage);
138
- return [2 /*return*/];
139
- }
140
- });
141
- }); });
142
- ava_1.default("credit rebate", function (t) { return __awaiter(void 0, void 0, void 0, function () {
143
- var response, rebate;
144
- return __generator(this, function (_a) {
145
- switch (_a.label) {
146
- case 0:
147
- t.plan(4);
148
- return [4 /*yield*/, card
149
- .charge(17)
150
- .withCurrency("USD")
151
- .withAllowDuplicates(true)
152
- .execute()];
153
- case 1:
154
- response = _a.sent();
155
- t.truthy(response);
156
- t.is(response.responseCode, "00", response.responseMessage);
157
- return [4 /*yield*/, response
158
- .refund(17)
159
- .withCurrency("USD")
160
- .execute()];
161
- case 2:
162
- rebate = _a.sent();
163
- t.truthy(rebate);
164
- t.is(rebate.responseCode, "00", rebate.responseMessage);
165
- return [2 /*return*/];
166
- }
167
- });
168
- }); });
169
- ava_1.default("credit void", function (t) { return __awaiter(void 0, void 0, void 0, function () {
170
- var response, voidResponse;
171
- return __generator(this, function (_a) {
172
- switch (_a.label) {
173
- case 0:
174
- t.plan(4);
175
- return [4 /*yield*/, card
176
- .charge(15)
177
- .withCurrency("USD")
178
- .withAllowDuplicates(true)
179
- .execute()];
180
- case 1:
181
- response = _a.sent();
182
- t.truthy(response);
183
- t.is(response.responseCode, "00", response.responseMessage);
184
- return [4 /*yield*/, response.void().execute()];
185
- case 2:
186
- voidResponse = _a.sent();
187
- t.truthy(voidResponse);
188
- t.is(voidResponse.responseCode, "00", voidResponse.responseMessage);
189
- return [2 /*return*/];
190
- }
191
- });
192
- }); });
193
- ava_1.default("credit verify", function (t) { return __awaiter(void 0, void 0, void 0, function () {
194
- var response;
195
- return __generator(this, function (_a) {
196
- switch (_a.label) {
197
- case 0:
198
- t.plan(2);
199
- return [4 /*yield*/, card
200
- .verify()
201
- .withAllowDuplicates(true)
202
- .execute()];
203
- case 1:
204
- response = _a.sent();
205
- t.truthy(response);
206
- t.is(response.responseCode, "00", response.responseMessage);
207
- return [2 /*return*/];
208
- }
209
- });
210
- }); });
211
- ava_1.default("credit auth mobile - apple pay", function (t) { return __awaiter(void 0, void 0, void 0, function () {
212
- var encryptedCard, incorrectHashError, cannotDecryptError;
213
- return __generator(this, function (_a) {
214
- switch (_a.label) {
215
- case 0:
216
- t.plan(6);
217
- encryptedCard = new src_1.CreditCardData();
218
- // tslint:disable-next-line:max-line-length
219
- encryptedCard.token = "{\"version\":\"EC_v1\",\"data\":\"Ft+dvMNzlcy6WNB+zerKtkh/RWW4RWW4yXIRgmM3WC/FYEC6Z+OJEzir2sDyzDkjIUJ0TFCQd/QAAAAAAAA==\",\"header\":{\"ephemeralPublicKey\":\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWdNhNAHy9kO2Kol33kIh7k6wh6E/lxriM46MR1FUrn7SHugprkaeFmWKZPgGpWgZ+telY/G1+YSoaCbR5YSoaCbR57bdGA==\",\"transactionId\":\"fd88874954acdb299c285f95a3202ad1f330d3fd4ebc22a864398684198644c3\",\"publicKeyHash\":\"h7WnNVz2gmpTSkHqETOWsskFPLSj31e3sPTS2cBxgrk=\"}}";
220
- encryptedCard.mobileType = "apple-pay";
221
- return [4 /*yield*/, t.throws(encryptedCard
222
- .authorize(10)
223
- .withCurrency("USD")
224
- .withModifier(src_1.TransactionModifier.EncryptedMobile)
225
- .withAllowDuplicates(true)
226
- .execute(), src_1.GatewayError)];
227
- case 1:
228
- incorrectHashError = _a.sent();
229
- t.truthy(incorrectHashError);
230
- t.is(incorrectHashError.responseCode, "505", incorrectHashError.responseMessage);
231
- return [4 /*yield*/, t.throws(encryptedCard
232
- .authorize()
233
- .withModifier(src_1.TransactionModifier.EncryptedMobile)
234
- .withAllowDuplicates(true)
235
- .execute(), src_1.GatewayError)];
236
- case 2:
237
- cannotDecryptError = _a.sent();
238
- t.truthy(cannotDecryptError);
239
- t.is(cannotDecryptError.responseCode, "515", cannotDecryptError.responseMessage);
240
- return [2 /*return*/];
241
- }
242
- });
243
- }); });
244
- ava_1.default("credit auth mobile - google pay", function (t) { return __awaiter(void 0, void 0, void 0, function () {
245
- var encryptedCard, missingAmountError, invalidTokenError;
246
- return __generator(this, function (_a) {
247
- switch (_a.label) {
248
- case 0:
249
- t.plan(6);
250
- encryptedCard = new src_1.CreditCardData();
251
- // tslint:disable-next-line:max-line-length
252
- encryptedCard.token = "{\"signature\":\"MEUCIQDapDDJyf9lH3ztEWksgAjNe...AXjW+ZM+Ut2BWoTExppDDPc1a9Z7U=\",\"protocolVersion\":\"ECv1\",\"signedMessage\":\"{\"encryptedMessage\":\"VkqwkFuMdXp...TZQxVMnkTeJjwyc4\\u003d\",\"ephemeralPublicKey\":\"BMglUoKZWxgB...YCiBNkLaMTD9G4sec\\u003d\",\"tag\":\"4VYypqW2Q5FN7UP87QNDGsLgc48vAe5+AcjR+BxQ2Zo\\u003d\"}\"}";
253
- encryptedCard.mobileType = "pay-with-google";
254
- return [4 /*yield*/, t.throws(encryptedCard
255
- .authorize()
256
- .withModifier(src_1.TransactionModifier.EncryptedMobile)
257
- .withAllowDuplicates(true)
258
- .execute(), src_1.GatewayError)];
259
- case 1:
260
- missingAmountError = _a.sent();
261
- t.truthy(missingAmountError);
262
- t.is(missingAmountError.responseCode, "502", missingAmountError.responseMessage);
263
- return [4 /*yield*/, t.throws(encryptedCard
264
- .authorize(10)
265
- .withCurrency("USD")
266
- .withModifier(src_1.TransactionModifier.EncryptedMobile)
267
- .withAllowDuplicates(true)
268
- .execute(), src_1.GatewayError)];
269
- case 2:
270
- invalidTokenError = _a.sent();
271
- t.truthy(invalidTokenError);
272
- t.is(invalidTokenError.responseCode, "509", invalidTokenError.responseMessage);
273
- return [2 /*return*/];
274
- }
275
- });
276
- }); });
277
- ava_1.default("implied decimal conversion", function (t) { return __awaiter(void 0, void 0, void 0, function () {
278
- var responseNumber1, responseNumber2, responseString1, responseString2;
279
- return __generator(this, function (_a) {
280
- switch (_a.label) {
281
- case 0:
282
- t.plan(8);
283
- return [4 /*yield*/, card
284
- .charge(78.68)
285
- .withCurrency("USD")
286
- .withAllowDuplicates(true)
287
- .execute()];
288
- case 1:
289
- responseNumber1 = _a.sent();
290
- t.truthy(responseNumber1);
291
- t.is(responseNumber1.responseCode, "00", responseNumber1.responseMessage);
292
- return [4 /*yield*/, card
293
- .charge(78.68000000000001)
294
- .withCurrency("USD")
295
- .withAllowDuplicates(true)
296
- .execute()];
297
- case 2:
298
- responseNumber2 = _a.sent();
299
- t.truthy(responseNumber2);
300
- t.is(responseNumber2.responseCode, "00", responseNumber2.responseMessage);
301
- return [4 /*yield*/, card
302
- .charge("78.68")
303
- .withCurrency("USD")
304
- .withAllowDuplicates(true)
305
- .execute()];
306
- case 3:
307
- responseString1 = _a.sent();
308
- t.truthy(responseString1);
309
- t.is(responseString1.responseCode, "00", responseString1.responseMessage);
310
- return [4 /*yield*/, card
311
- .charge("78.68000000000001")
312
- .withCurrency("USD")
313
- .withAllowDuplicates(true)
314
- .execute()];
315
- case 4:
316
- responseString2 = _a.sent();
317
- t.truthy(responseString2);
318
- t.is(responseString2.responseCode, "00", responseString2.responseMessage);
319
- return [2 /*return*/];
320
- }
321
- });
322
- }); });
@@ -1,98 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var ava_1 = require("ava");
4
- var src_1 = require("../../../../src/");
5
- var config = new src_1.ServicesConfig();
6
- config.merchantId = "heartlandgpsandbox";
7
- config.accountId = "api";
8
- config.sharedSecret = "secret";
9
- config.serviceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi";
10
- config.hostedPaymentConfig = new src_1.HostedPaymentConfig();
11
- config.hostedPaymentConfig.language = "GB";
12
- config.hostedPaymentConfig.responseUrl = "http://requestb.in/10q2bjb1";
13
- var test = ava_1.default.serial;
14
- var service = new src_1.HostedService(config);
15
- var address = new src_1.Address();
16
- address.postalCode = "123|56";
17
- address.country = "IRELAND";
18
- test("credit auth", function (t) {
19
- t.plan(1);
20
- var json = service
21
- .authorize(1)
22
- .withCurrency("EUR")
23
- .withCustomerId("123456")
24
- .withAddress(address)
25
- .serialize();
26
- t.truthy(json);
27
- });
28
- test("credit sale", function (t) {
29
- t.plan(1);
30
- var json = service
31
- .charge(1)
32
- .withCurrency("EUR")
33
- .withCustomerId("123456")
34
- .withAddress(address)
35
- .serialize();
36
- t.truthy(json);
37
- });
38
- test("credit verify", function (t) {
39
- t.plan(1);
40
- var json = service
41
- .verify(1)
42
- .withCurrency("EUR")
43
- .withCustomerId("123456")
44
- .withAddress(address)
45
- .serialize();
46
- t.truthy(json);
47
- });
48
- test("auth no amount", function (t) {
49
- t.plan(2);
50
- var error = t.throws(function () {
51
- service
52
- .authorize(undefined)
53
- .withCurrency("USD")
54
- .serialize();
55
- }, src_1.BuilderError);
56
- t.truthy(error.message);
57
- });
58
- test("auth no currency", function (t) {
59
- t.plan(2);
60
- var error = t.throws(function () {
61
- service.authorize(10).serialize();
62
- }, src_1.BuilderError);
63
- t.truthy(error.message);
64
- });
65
- test("sale no amount", function (t) {
66
- t.plan(2);
67
- var error = t.throws(function () {
68
- service
69
- .charge(undefined)
70
- .withCurrency("USD")
71
- .serialize();
72
- }, src_1.BuilderError);
73
- t.truthy(error.message);
74
- });
75
- test("sale no currency", function (t) {
76
- t.plan(2);
77
- var error = t.throws(function () {
78
- service.authorize(10).serialize();
79
- }, src_1.BuilderError);
80
- t.truthy(error.message);
81
- });
82
- test("verify no currency", function (t) {
83
- t.plan(2);
84
- var error = t.throws(function () {
85
- service.verify().serialize();
86
- }, src_1.BuilderError);
87
- t.truthy(error.message);
88
- });
89
- test("verify with amount", function (t) {
90
- t.plan(2);
91
- var error = t.throws(function () {
92
- service
93
- .verify()
94
- .withAmount(10)
95
- .serialize();
96
- }, src_1.BuilderError);
97
- t.truthy(error.message);
98
- });