globalpayments-api 3.8.2 → 3.10.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 (243) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/LICENSE.md +257 -257
  3. package/README.md +141 -141
  4. package/lib/src/Builders/AuthorizationBuilder.d.ts +23 -1
  5. package/lib/src/Builders/AuthorizationBuilder.js +94 -0
  6. package/lib/src/Builders/AuthorizationBuilder.js.map +1 -1
  7. package/lib/src/Builders/ManagementBuilder.d.ts +18 -1
  8. package/lib/src/Builders/ManagementBuilder.js +23 -0
  9. package/lib/src/Builders/ManagementBuilder.js.map +1 -1
  10. package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.d.ts +3 -0
  11. package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js +163 -24
  12. package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js.map +1 -1
  13. package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.d.ts +4 -1
  14. package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js +38 -2
  15. package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js.map +1 -1
  16. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js.map +1 -1
  17. package/lib/src/Builders/TransactionBuilder.d.ts +2 -3
  18. package/lib/src/Builders/TransactionBuilder.js +0 -6
  19. package/lib/src/Builders/TransactionBuilder.js.map +1 -1
  20. package/lib/src/Entities/AlternativePaymentResponse.d.ts +66 -0
  21. package/lib/src/Entities/AlternativePaymentResponse.js +72 -0
  22. package/lib/src/Entities/AlternativePaymentResponse.js.map +1 -0
  23. package/lib/src/Entities/Customer.d.ts +3 -3
  24. package/lib/src/Entities/Customer.js.map +1 -1
  25. package/lib/src/Entities/DccRateData.d.ts +61 -0
  26. package/lib/src/Entities/DccRateData.js +64 -0
  27. package/lib/src/Entities/DccRateData.js.map +1 -0
  28. package/lib/src/Entities/Enums/DccProcessor.d.ts +4 -0
  29. package/lib/src/Entities/Enums/DccProcessor.js +9 -0
  30. package/lib/src/Entities/Enums/DccProcessor.js.map +1 -0
  31. package/lib/src/Entities/Enums/DccRateType.d.ts +4 -0
  32. package/lib/src/Entities/Enums/DccRateType.js +9 -0
  33. package/lib/src/Entities/Enums/DccRateType.js.map +1 -0
  34. package/lib/src/Entities/Enums/MerchantCategory.d.ts +9 -0
  35. package/lib/src/Entities/Enums/MerchantCategory.js +14 -0
  36. package/lib/src/Entities/Enums/MerchantCategory.js.map +1 -0
  37. package/lib/src/Entities/Enums.d.ts +138 -1
  38. package/lib/src/Entities/Enums.js +138 -1
  39. package/lib/src/Entities/Enums.js.map +1 -1
  40. package/lib/src/Entities/OrderDetails.d.ts +6 -0
  41. package/lib/src/Entities/OrderDetails.js +11 -0
  42. package/lib/src/Entities/OrderDetails.js.map +1 -0
  43. package/lib/src/Entities/Transaction.d.ts +5 -1
  44. package/lib/src/Entities/Transaction.js +18 -0
  45. package/lib/src/Entities/Transaction.js.map +1 -1
  46. package/lib/src/Entities/TransactionSummary.d.ts +2 -1
  47. package/lib/src/Entities/TransactionSummary.js +1 -0
  48. package/lib/src/Entities/TransactionSummary.js.map +1 -1
  49. package/lib/src/Entities/index.d.ts +6 -0
  50. package/lib/src/Entities/index.js +6 -0
  51. package/lib/src/Entities/index.js.map +1 -1
  52. package/lib/src/Gateways/GpApiConnector.js +12 -2
  53. package/lib/src/Gateways/GpApiConnector.js.map +1 -1
  54. package/lib/src/Gateways/GpEcomConnector.js.map +1 -1
  55. package/lib/src/Mapping/GpApiMapping.d.ts +3 -1
  56. package/lib/src/Mapping/GpApiMapping.js +111 -3
  57. package/lib/src/Mapping/GpApiMapping.js.map +1 -1
  58. package/lib/src/PaymentMethods/Credit.d.ts +2 -1
  59. package/lib/src/PaymentMethods/Credit.js +12 -0
  60. package/lib/src/PaymentMethods/Credit.js.map +1 -1
  61. package/lib/src/PaymentMethods/ECheck.d.ts +10 -1
  62. package/lib/src/PaymentMethods/ECheck.js +11 -0
  63. package/lib/src/PaymentMethods/ECheck.js.map +1 -1
  64. package/lib/src/PaymentMethods/TransactionReference.d.ts +3 -2
  65. package/lib/src/PaymentMethods/TransactionReference.js +1 -1
  66. package/lib/src/PaymentMethods/TransactionReference.js.map +1 -1
  67. package/lib/src/Utils/CardUtils.js +4 -5
  68. package/lib/src/Utils/CardUtils.js.map +1 -1
  69. package/lib/src/Utils/StringUtils.js +3 -0
  70. package/lib/src/Utils/StringUtils.js.map +1 -1
  71. package/lib/test/Data/BaseGpApiTestConfig.js +2 -0
  72. package/lib/test/Data/BaseGpApiTestConfig.js.map +1 -1
  73. package/lib/test/Data/TestCards.js +1 -0
  74. package/lib/test/Data/TestCards.js.map +1 -1
  75. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.d.ts +1 -0
  76. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js +1029 -0
  77. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js.map +1 -0
  78. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.d.ts +1 -0
  79. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js +649 -0
  80. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js.map +1 -0
  81. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +1 -0
  82. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +109 -0
  83. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +1 -0
  84. package/lib/test/Integration/Gateways/GpApiConnector/Ach.test.d.ts +1 -0
  85. package/lib/test/Integration/Gateways/GpApiConnector/Ach.test.js +120 -0
  86. package/lib/test/Integration/Gateways/GpApiConnector/Ach.test.js.map +1 -0
  87. package/lib/test/Integration/Gateways/GpApiConnector/Apm.test.d.ts +1 -0
  88. package/lib/test/Integration/Gateways/GpApiConnector/Apm.test.js +425 -0
  89. package/lib/test/Integration/Gateways/GpApiConnector/Apm.test.js.map +1 -0
  90. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +1 -0
  91. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +1025 -0
  92. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +1 -0
  93. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +1 -0
  94. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +439 -0
  95. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +1 -0
  96. package/lib/test/Integration/Gateways/GpApiConnector/DccCardNotPresent.test.d.ts +1 -0
  97. package/lib/test/Integration/Gateways/GpApiConnector/DccCardNotPresent.test.js +256 -0
  98. package/lib/test/Integration/Gateways/GpApiConnector/DccCardNotPresent.test.js.map +1 -0
  99. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +1 -0
  100. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +143 -0
  101. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +1 -0
  102. package/lib/test/Integration/Gateways/GpApiConnector/EbtCard.test.d.ts +1 -0
  103. package/lib/test/Integration/Gateways/GpApiConnector/EbtCard.test.js +88 -0
  104. package/lib/test/Integration/Gateways/GpApiConnector/EbtCard.test.js.map +1 -0
  105. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertificationTest.d.ts +1 -0
  106. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertificationTest.js +639 -0
  107. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertificationTest.js.map +1 -0
  108. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagementTest.d.ts +1 -0
  109. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagementTest.js +149 -0
  110. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagementTest.js.map +1 -0
  111. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDepositsTest.d.ts +1 -0
  112. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDepositsTest.js +226 -0
  113. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDepositsTest.js.map +1 -0
  114. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +1 -0
  115. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +434 -0
  116. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +1 -0
  117. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +1 -0
  118. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +217 -0
  119. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +1 -0
  120. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.d.ts +1 -0
  121. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +338 -0
  122. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +1 -0
  123. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +1 -0
  124. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +2446 -0
  125. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +1 -0
  126. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +1 -0
  127. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +506 -0
  128. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +1 -0
  129. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +1 -0
  130. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +1296 -0
  131. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +1 -0
  132. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +1 -0
  133. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +847 -0
  134. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +1 -0
  135. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
  136. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +215 -0
  137. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
  138. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +1 -0
  139. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +99 -0
  140. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +1 -0
  141. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +1 -0
  142. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +133 -0
  143. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +1 -0
  144. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +1 -0
  145. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +59 -0
  146. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +1 -0
  147. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +1 -0
  148. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +378 -0
  149. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +1 -0
  150. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +1 -0
  151. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +86 -0
  152. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +1 -0
  153. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +1 -0
  154. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +1723 -0
  155. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +1 -0
  156. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +1 -0
  157. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +86 -0
  158. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +1 -0
  159. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +1 -0
  160. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +1760 -0
  161. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +1 -0
  162. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +1 -0
  163. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +420 -0
  164. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +1 -0
  165. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +1 -0
  166. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +2221 -0
  167. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +1 -0
  168. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +1 -0
  169. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +392 -0
  170. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +1 -0
  171. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +1 -0
  172. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +88 -0
  173. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +1 -0
  174. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +1 -0
  175. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +72 -0
  176. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +1 -0
  177. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +1 -0
  178. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +143 -0
  179. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +1 -0
  180. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +1 -0
  181. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +147 -0
  182. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +1 -0
  183. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.d.ts +1 -0
  184. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.js +48 -0
  185. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.js.map +1 -0
  186. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +1 -0
  187. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +101 -0
  188. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +1 -0
  189. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +1 -0
  190. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +50 -0
  191. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +1 -0
  192. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +1 -0
  193. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +44 -0
  194. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +1 -0
  195. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +1 -0
  196. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +221 -0
  197. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +1 -0
  198. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +1 -0
  199. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +60 -0
  200. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +1 -0
  201. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +1 -0
  202. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +80 -0
  203. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +1 -0
  204. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +1 -0
  205. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +44 -0
  206. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +1 -0
  207. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +1 -0
  208. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +330 -0
  209. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +1 -0
  210. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +1 -0
  211. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +60 -0
  212. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +1 -0
  213. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +1 -0
  214. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +80 -0
  215. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +1 -0
  216. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +1 -0
  217. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +149 -0
  218. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +1 -0
  219. package/lib/test/Integration/Services/CheckServiceTest.d.ts +1 -0
  220. package/lib/test/Integration/Services/CheckServiceTest.js +45 -0
  221. package/lib/test/Integration/Services/CheckServiceTest.js.map +1 -0
  222. package/lib/test/Integration/Services/CreditServiceTest.d.ts +1 -0
  223. package/lib/test/Integration/Services/CreditServiceTest.js +174 -0
  224. package/lib/test/Integration/Services/CreditServiceTest.js.map +1 -0
  225. package/lib/test/Integration/Services/DebitServiceTest.d.ts +1 -0
  226. package/lib/test/Integration/Services/DebitServiceTest.js +81 -0
  227. package/lib/test/Integration/Services/DebitServiceTest.js.map +1 -0
  228. package/lib/test/Integration/Services/EBTServiceTest.d.ts +1 -0
  229. package/lib/test/Integration/Services/EBTServiceTest.js +64 -0
  230. package/lib/test/Integration/Services/EBTServiceTest.js.map +1 -0
  231. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +1 -0
  232. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +111 -0
  233. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +1 -0
  234. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +1 -0
  235. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +62 -0
  236. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +1 -0
  237. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
  238. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +34 -0
  239. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
  240. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +1 -0
  241. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +125 -0
  242. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +1 -0
  243. package/package.json +1 -1
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ava_1 = __importDefault(require("ava"));
7
+ const PayFacService_1 = require("../../../../src/Services/PayFacService");
8
+ const src_1 = require("../../../../src");
9
+ const config = new src_1.PorticoConfig();
10
+ config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
11
+ config.certificationStr = "5dbacb0fc504dd7bdc2eadeb7039dd";
12
+ config.terminalId = "7039dd";
13
+ const _service = new PayFacService_1.PayFacService();
14
+ ava_1.default.before(() => {
15
+ src_1.ServicesContainer.configureService(config);
16
+ });
17
+ (0, ava_1.default)("get account balance", async (t) => {
18
+ t.plan(2);
19
+ const response = await _service
20
+ .getAccountBalance()
21
+ .withAccountNumber("718135687")
22
+ .execute();
23
+ t.truthy(response);
24
+ t.is("00", response.responseCode);
25
+ });
26
+ (0, ava_1.default)("get account info", async (t) => {
27
+ t.plan(2);
28
+ const response = await _service
29
+ .getAccountDetails()
30
+ .withAccountNumber("718135687")
31
+ .execute();
32
+ t.truthy(response);
33
+ t.is("00", response.responseCode);
34
+ });
35
+ (0, ava_1.default)("get account info enchance", async (t) => {
36
+ t.plan(2);
37
+ const response = await _service
38
+ .getAccountDetailsEnhanced()
39
+ .withAccountNumber("718135687")
40
+ .execute();
41
+ t.truthy(response);
42
+ t.is("00", response.responseCode);
43
+ });
44
+ //# sourceMappingURL=GetInformationTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetInformationTest.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/ProPayConnector/GetInformationTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,0EAAuE;AACvE,yCAAmE;AAEnE,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;AACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC;AAC3D,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;AAC7B,MAAM,QAAQ,GAAG,IAAI,6BAAa,EAAE,CAA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C,CAAC;AACpC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,330 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ava_1 = __importDefault(require("ava"));
7
+ const PayFacService_1 = require("../../../../src/Services/PayFacService");
8
+ const src_1 = require("../../../../src");
9
+ const TestAccountData_1 = require("./TestData/TestAccountData");
10
+ const UserPersonalData_1 = require("../../../../src/Entities/ProFac/UserPersonalData");
11
+ const SSORequestData_1 = require("../../../../src/Entities/SSORequestData");
12
+ const BankAccountOwnershipData_1 = require("../../../../src/Entities/ProFac/BankAccountOwnershipData");
13
+ const DocumentUploadData_1 = require("../../../../src/Entities/DocumentUploadData");
14
+ const config = new src_1.PorticoConfig();
15
+ config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
16
+ config.certificationStr = "5dbacb0fc504dd7bdc2eadeb7039dd";
17
+ config.terminalId = "7039dd";
18
+ config.selfSignedCertLocation =
19
+ "test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
20
+ const _service = new PayFacService_1.PayFacService();
21
+ ava_1.default.before(() => {
22
+ src_1.ServicesContainer.configureService(config);
23
+ });
24
+ (0, ava_1.default)("create account", async (t) => {
25
+ t.plan(5);
26
+ const bankAccountInfo = TestAccountData_1.TestAccountData.GetBankAccountData();
27
+ const userBusinessInfo = TestAccountData_1.TestAccountData.GetBusinessData();
28
+ const accountPersonalInfo = TestAccountData_1.TestAccountData.GetUserPersonalData();
29
+ const threatRiskData = TestAccountData_1.TestAccountData.GetThreatRiskData();
30
+ const significantOwnerData = TestAccountData_1.TestAccountData.GetSignificantOwnerData();
31
+ const ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
32
+ const creditCardInfo = TestAccountData_1.TestAccountData.GetCreditCardData();
33
+ const achInfo = TestAccountData_1.TestAccountData.GetACHData();
34
+ const secondaryBankInformation = TestAccountData_1.TestAccountData.GetSecondaryBankAccountData();
35
+ const mailingAddressInfo = TestAccountData_1.TestAccountData.GetMailingAddress();
36
+ const deviceData = TestAccountData_1.TestAccountData.GetDeviceData(1, false);
37
+ const response = await _service
38
+ .createAccount()
39
+ .withBankAccountData(bankAccountInfo)
40
+ .withBusinessData(userBusinessInfo)
41
+ .withUserPersonalData(accountPersonalInfo)
42
+ .withThreatRiskData(threatRiskData)
43
+ .withSignificantOwnerData(significantOwnerData)
44
+ .withBeneficialOwnerData(ownersInfo)
45
+ .withCreditCardData(creditCardInfo)
46
+ .withACHData(achInfo)
47
+ .withMailingAddress(mailingAddressInfo)
48
+ .withSecondaryBankAccountData(secondaryBankInformation)
49
+ .withDeviceData(deviceData)
50
+ .withTimeZone("ET")
51
+ .execute();
52
+ t.truthy(response);
53
+ t.is("00", response.responseCode);
54
+ t.truthy(response.payFacData.accountNumber);
55
+ t.truthy(response.payFacData.password);
56
+ t.truthy(response.payFacData.sourceEmail);
57
+ });
58
+ (0, ava_1.default)("Order a new device", async (t) => {
59
+ t.plan(2);
60
+ const orderDeviceInfo = TestAccountData_1.TestAccountData.GetOrderNewDeviceData();
61
+ const deviceData = TestAccountData_1.TestAccountData.GetDeviceDataForOrderDevice(1, false);
62
+ const response = await _service
63
+ .orderDevice()
64
+ .withOrderDevice(orderDeviceInfo)
65
+ .withOrderDeviceData(deviceData)
66
+ .execute();
67
+ t.truthy(response);
68
+ t.is("00", response.responseCode);
69
+ });
70
+ (0, ava_1.default)("reset password", async (t) => {
71
+ const response = await _service
72
+ .resetPassword()
73
+ .withAccountNumber("718150930")
74
+ .withNegativeLimit("1")
75
+ .execute();
76
+ t.truthy(response);
77
+ });
78
+ /* Note : This method may be used to add new beneficial owner information when the original account boarding call included OwnerCount,
79
+ * but did not include all owner data
80
+ */
81
+ (0, ava_1.default)("update beneficial data", async (t) => {
82
+ //Owners count shoud not be excedded 6
83
+ const ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
84
+ const response = await _service
85
+ .updateBeneficialOwnershipInfo()
86
+ .withAccountNumber("718568507")
87
+ .withBeneficialOwnerData(ownersInfo)
88
+ .execute();
89
+ t.truthy(response);
90
+ });
91
+ //#region edit aacount
92
+ (0, ava_1.default)("edit account information", async (t) => {
93
+ t.plan(2);
94
+ const accountPersonalInfo = new UserPersonalData_1.UserPersonalData();
95
+ accountPersonalInfo.dayPhone = "4464464464";
96
+ accountPersonalInfo.eveningPhone = "4464464464";
97
+ accountPersonalInfo.externalID = String(getRandomInt(100000000, 999999999));
98
+ accountPersonalInfo.firstName = "John";
99
+ accountPersonalInfo.lastName = "Doe";
100
+ accountPersonalInfo.middleInitial = "A";
101
+ accountPersonalInfo.sourceEmail =
102
+ "user" + getRandomInt(1, 10000) + "@user.com";
103
+ accountPersonalInfo.sSN = "1234";
104
+ const response = await _service
105
+ .editAccount()
106
+ .withAccountNumber("718135662")
107
+ .withUserPersonalData(accountPersonalInfo)
108
+ .execute();
109
+ t.truthy(response);
110
+ t.is("00", response.responseCode);
111
+ });
112
+ (0, ava_1.default)("edit account password", async (t) => {
113
+ t.plan(2);
114
+ const response = await _service
115
+ .editAccount()
116
+ .withAccountNumber("718568506")
117
+ .withPassword("testPwd_" + getRandomInt(1, 100))
118
+ .execute();
119
+ t.truthy(response);
120
+ t.is("00", response.responseCode);
121
+ });
122
+ (0, ava_1.default)("edit account address", async (t) => {
123
+ t.plan(2);
124
+ const personalInfo = new UserPersonalData_1.UserPersonalData();
125
+ personalInfo.userAddress = new src_1.Address();
126
+ personalInfo.userAddress.streetAddress1 = "124 Main St.";
127
+ personalInfo.userAddress.city = "Downtown";
128
+ personalInfo.userAddress.state = "NJ";
129
+ personalInfo.userAddress.postalCode = "12345";
130
+ personalInfo.userAddress.country = "USA";
131
+ personalInfo.mailingAddress = new src_1.Address();
132
+ personalInfo.mailingAddress.streetAddress1 = "125 Main St.";
133
+ personalInfo.mailingAddress.city = "Downtown";
134
+ personalInfo.mailingAddress.state = "NJ";
135
+ personalInfo.mailingAddress.postalCode = "12345";
136
+ const response = await _service
137
+ .editAccount()
138
+ .withAccountNumber("718138433")
139
+ .withUserPersonalData(personalInfo)
140
+ .execute();
141
+ t.truthy(response);
142
+ t.is("00", response.responseCode);
143
+ });
144
+ (0, ava_1.default)("edit account permissions", async (t) => {
145
+ t.plan(2);
146
+ const response = await _service
147
+ .editAccount()
148
+ .withAccountNumber("718135662")
149
+ .withAccountPermissions(TestAccountData_1.TestAccountData.GetAccountPermissions())
150
+ .execute();
151
+ t.truthy(response);
152
+ t.is("00", response.responseCode);
153
+ });
154
+ //#endregion
155
+ //#region renew account
156
+ (0, ava_1.default)("renew account", async (t) => {
157
+ t.plan(2);
158
+ const response = await _service
159
+ .renewAccount()
160
+ .withRenewalAccountData(TestAccountData_1.TestAccountData.GetRenewAccountDetails())
161
+ .withAccountNumber("718568507")
162
+ .execute();
163
+ t.truthy(response);
164
+ t.is("00", response.responseCode);
165
+ });
166
+ (0, ava_1.default)("renew account by credit card", async (t) => {
167
+ t.plan(2);
168
+ const response = await _service
169
+ .renewAccount()
170
+ .withAccountNumber("718135662")
171
+ .withRenewalAccountData(TestAccountData_1.TestAccountData.GetRenewAccountDetails())
172
+ .execute();
173
+ t.truthy(response);
174
+ t.is("00", response.responseCode);
175
+ });
176
+ ava_1.default.skip("renew account by bank account", async (t) => {
177
+ t.plan(2);
178
+ const response = await _service
179
+ .renewAccount()
180
+ .withAccountNumber("718151055")
181
+ .withRenewalAccountData(TestAccountData_1.TestAccountData.GetRenewAccountDetails())
182
+ .execute();
183
+ t.truthy(response);
184
+ t.is("00", response.responseCode);
185
+ });
186
+ //#endregion
187
+ ava_1.default.skip("update account beneficial ownership", async (t) => {
188
+ t.plan(3);
189
+ const beneficialOwners = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
190
+ const response = await _service
191
+ .updateBeneficialOwnershipInfo()
192
+ .withAccountNumber("718134589") // This account must have been created with a beneficial owner count specified, but no owner details passed
193
+ .withBeneficialOwnerData(beneficialOwners)
194
+ .execute();
195
+ t.truthy(response);
196
+ t.is("00", response.responseCode);
197
+ t.truthy(response.payFacData.beneficialOwnerDataResults);
198
+ });
199
+ ava_1.default.skip("disown account", async (t) => {
200
+ t.plan(2);
201
+ const response = await _service
202
+ .disownAccount()
203
+ .withAccountNumber("718134204") // The account being "disowned" needs to have another affiliation set. Contact propayimplementations@tsys.com and they will set one if necessary
204
+ .execute();
205
+ t.truthy(response);
206
+ t.is("00", response.responseCode);
207
+ });
208
+ // Note : The transaction number of the chargeback you need to dispute. (can be verify at certification process)
209
+ (0, ava_1.default)("upload document chargeback", async (t) => {
210
+ t.plan(2);
211
+ const docUploadData = new DocumentUploadData_1.DocumentUploadData();
212
+ docUploadData.documentName = "TestDocCB_12345";
213
+ docUploadData.transactionReference = "123456789";
214
+ docUploadData.documentPath =
215
+ "test/Integration/Gateways/ProPayConnector/TestData/TestDocChargeback.docx";
216
+ docUploadData.DocumentPath(docUploadData.documentPath);
217
+ const response = await _service
218
+ .uploadDocumentChargeback()
219
+ .withAccountNumber("718567300")
220
+ .withDocumentUploadData(docUploadData)
221
+ .execute();
222
+ t.truthy(response);
223
+ t.is("00", response.responseCode);
224
+ });
225
+ (0, ava_1.default)("upload document", async (t) => {
226
+ t.plan(2);
227
+ const docUploadData = new DocumentUploadData_1.DocumentUploadData();
228
+ docUploadData.documentName = "TestDoc_12345";
229
+ docUploadData.docCategory = "Verification";
230
+ docUploadData.documentPath =
231
+ "test/Integration/Gateways/ProPayConnector/TestData/TestDoc.docx";
232
+ docUploadData.DocumentPath(docUploadData.documentPath);
233
+ const response = await _service
234
+ .uploadDocument()
235
+ .withAccountNumber("718134204")
236
+ .withDocumentUploadData(docUploadData)
237
+ .execute();
238
+ t.truthy(response);
239
+ t.is("00", response.responseCode);
240
+ });
241
+ (0, ava_1.default)("upload document chargeback by document string", async (t) => {
242
+ t.plan(2);
243
+ const docUploadData = new DocumentUploadData_1.DocumentUploadData();
244
+ docUploadData.documentName = "TestDocCB_12345";
245
+ docUploadData.transactionReference = "123456789";
246
+ docUploadData.document = TestAccountData_1.TestAccountData.GetDocumentBase64String("test/Integration/Gateways/ProPayConnector/TestData/TestDocChargeback.docx");
247
+ docUploadData.docType = "docx";
248
+ const response = await _service
249
+ .uploadDocumentChargeback()
250
+ .withAccountNumber("718134204")
251
+ .withDocumentUploadData(docUploadData)
252
+ .execute();
253
+ t.truthy(response);
254
+ t.is("00", response.responseCode);
255
+ });
256
+ (0, ava_1.default)("upload document by document string", async (t) => {
257
+ t.plan(2);
258
+ const docUploadData = new DocumentUploadData_1.DocumentUploadData();
259
+ docUploadData.documentName = "TestDoc_12345";
260
+ docUploadData.docCategory = "Verification";
261
+ docUploadData.document = TestAccountData_1.TestAccountData.GetDocumentBase64String("test/Integration/Gateways/ProPayConnector/TestData/TestDoc.docx");
262
+ docUploadData.docType = "docx";
263
+ const response = await _service
264
+ .uploadDocument()
265
+ .withAccountNumber("718134204")
266
+ .withDocumentUploadData(docUploadData)
267
+ .execute();
268
+ t.truthy(response);
269
+ t.is("00", response.responseCode);
270
+ });
271
+ (0, ava_1.default)("obtain sSO key", async (t) => {
272
+ t.plan(3);
273
+ const ssoRequestData = new SSORequestData_1.SSORequestData();
274
+ ssoRequestData.referrerURL = "https://www.globalpaymentsinc.com/";
275
+ ssoRequestData.iPAddress = "40.81.11.219";
276
+ ssoRequestData.iPSubnetMask = "255.255.255.0";
277
+ const response = await _service
278
+ .obtainSSOKey()
279
+ .withAccountNumber("718150930")
280
+ .withSSORequestData(ssoRequestData)
281
+ .execute();
282
+ t.truthy(response);
283
+ t.is("00", response.responseCode);
284
+ t.truthy(response.payFacData.authToken);
285
+ });
286
+ (0, ava_1.default)("update bank account ownership info", async (t) => {
287
+ t.plan(2);
288
+ config.selfSignedCertLocation =
289
+ "test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificateCAN.crt";
290
+ config.serviceUrl = "https://xmltestcanada.propay.com/API/PropayAPI.aspx";
291
+ config.certificationStr = "7c4ddcba7054a1d9e00bcac4743b98";
292
+ config.terminalId = "3b98";
293
+ src_1.ServicesContainer.configureService(config, "secondService");
294
+ const primaryOwner = new BankAccountOwnershipData_1.BankAccountOwnershipData();
295
+ primaryOwner.firstName = "Style";
296
+ primaryOwner.lastName = "Stallone";
297
+ primaryOwner.phoneNumber = "123456789";
298
+ const ownerAddress = new src_1.Address();
299
+ primaryOwner.ownerAddress = ownerAddress;
300
+ const secondaryOwner = new BankAccountOwnershipData_1.BankAccountOwnershipData();
301
+ secondaryOwner.firstName = "Thomas";
302
+ secondaryOwner.lastName = "Hanks";
303
+ secondaryOwner.phoneNumber = "123456789";
304
+ const secondaryOwnerAddress = new src_1.Address();
305
+ secondaryOwnerAddress.streetAddress1 = "1970 Diamond Blvd";
306
+ secondaryOwnerAddress.streetAddress2 = "1971 Diamond Blvd";
307
+ secondaryOwnerAddress.streetAddress3 = "1972 Diamond Blvd";
308
+ secondaryOwnerAddress.city = "Orlando";
309
+ secondaryOwnerAddress.state = "FL";
310
+ secondaryOwnerAddress.postalCode = "X0A 0H0";
311
+ secondaryOwnerAddress.country = "CAN";
312
+ secondaryOwner.ownerAddress = secondaryOwnerAddress;
313
+ const response = await _service
314
+ .updateBankAccountOwnershipInfo()
315
+ .withAccountNumber("716016890")
316
+ .withPrimaryBankAccountOwner(primaryOwner)
317
+ .withSecondaryBankAccountOwner(secondaryOwner)
318
+ .execute("secondService");
319
+ t.truthy(response);
320
+ t.is("00", response.responseCode);
321
+ });
322
+ function getRandomInt(min, max) {
323
+ const floatRandom = Math.random();
324
+ const difference = max - min;
325
+ // random between 0 and the difference
326
+ const random = Math.round(difference * floatRandom);
327
+ const randomWithinRange = random + min;
328
+ return randomWithinRange;
329
+ }
330
+ //# sourceMappingURL=ProPayAccountTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProPayAccountTest.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/ProPayConnector/ProPayAccountTest.ts"],"names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W,EAAE,GAAW;IAC5C,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;IAClC,MAAM,UAAU,GAAG,GAAG,GAAG,GAAG,CAAC;IAE7B,sCAAsC;IACtC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,WAAW,CAAC,CAAC;IACpD,MAAM,iBAAiB,GAAG,MAAM,GAAG,GAAG,CAAC;IAEvC,OAAO,iBAAiB,CAAC;AAC3B,CAAC"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ava_1 = __importDefault(require("ava"));
7
+ const PayFacService_1 = require("../../../../src/Services/PayFacService");
8
+ const src_1 = require("../../../../src");
9
+ const TestFundsData_1 = require("./TestData/TestFundsData");
10
+ const config = new src_1.PorticoConfig();
11
+ config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
12
+ config.certificationStr = "4ee64cbd706400fb4a34e65aab6f48";
13
+ config.terminalId = "ab6f48";
14
+ config.selfSignedCertLocation =
15
+ "test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
16
+ const _service = new PayFacService_1.PayFacService();
17
+ ava_1.default.before(() => {
18
+ src_1.ServicesContainer.configureService(config);
19
+ });
20
+ (0, ava_1.default)("add funds", async (t) => {
21
+ t.plan(2);
22
+ const response = await _service
23
+ .addFunds()
24
+ .withAccountNumber("718134204")
25
+ .withAmount("10")
26
+ .execute();
27
+ t.truthy(response);
28
+ t.is("00", response.responseCode);
29
+ });
30
+ (0, ava_1.default)("sweep funds", async (t) => {
31
+ t.plan(2);
32
+ const response = await _service
33
+ .sweepFunds()
34
+ .withAccountNumber("718570822")
35
+ .withAmount("10")
36
+ .execute();
37
+ t.truthy(response);
38
+ t.is("00", response.responseCode);
39
+ });
40
+ (0, ava_1.default)("add flash funds payment card", async (t) => {
41
+ t.plan(2);
42
+ const response = await _service
43
+ .addCardFlashFunds()
44
+ .withAccountNumber("718136438")
45
+ .withFlashFundsPaymentCardData(TestFundsData_1.TestFundsData.GetFlashFundsPaymentCardData())
46
+ .execute();
47
+ t.truthy(response);
48
+ t.is("00", response.responseCode);
49
+ });
50
+ ava_1.default.skip("push money to flash funds card", async (t) => {
51
+ t.plan(2);
52
+ const response = await _service
53
+ .pushMoneyToFlashFundsCard()
54
+ .withAccountNumber("718136438")
55
+ .withAmount("100")
56
+ .execute();
57
+ t.truthy(response);
58
+ t.is("00", response.responseCode);
59
+ });
60
+ //# sourceMappingURL=ProPayFundsTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProPayFundsTest.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/ProPayConnector/ProPayFundsTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,0EAAuE;AACvE,yCAAmE;AACnE,4DAAyD;AAEzD,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;AACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC;AAC3D,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;AAC7B,MAAM,CAAC,sBAAsB;IAC3B,8EAA8E,CAAC;AACjF,MAAM,QAAQ,GAAG,IAAI,6BAAa,EAAE,CAAC;AAErC,aAAI,CAAC,MAAM,CAAC,GAAG,EAAE;IACf,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,WAAW,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC5B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,QAAQ,EAAE;SACV,iBAAiB,CAAC,WAAW,CAAC;SAC9B,UAAU,CAAC,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AW,CAAC;SAC9B,UAAU,CAAC,KAAK,CAAC;SACjB,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const ava_1 = __importDefault(require("ava"));
7
+ const PayFacService_1 = require("../../../../src/Services/PayFacService");
8
+ const src_1 = require("../../../../src");
9
+ const config = new src_1.PorticoConfig();
10
+ config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
11
+ config.certificationStr = "5dbacb0fc504dd7bdc2eadeb7039dd"; // other transactions except disburment based
12
+ config.terminalId = "7039dd";
13
+ config.selfSignedCertLocation =
14
+ "test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
15
+ const _service = new PayFacService_1.PayFacService();
16
+ ava_1.default.before(() => {
17
+ src_1.ServicesContainer.configureService(config);
18
+ });
19
+ (0, ava_1.default)("disburse funds", async (t) => {
20
+ t.plan(2);
21
+ config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
22
+ config.certificationStr = "C7277D317D1840F5ADEBE600CF47B9"; // disburment of fund only
23
+ config.terminalId = "7039dd";
24
+ config.selfSignedCertLocation =
25
+ "test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
26
+ src_1.ServicesContainer.configureService(config);
27
+ const response = await _service
28
+ .disburseFunds()
29
+ .withReceivingAccountNumber("718136438")
30
+ .withAmount("100")
31
+ .execute();
32
+ t.truthy(response);
33
+ t.is("00", response.responseCode);
34
+ });
35
+ (0, ava_1.default)("spend back transaction", async (t) => {
36
+ t.plan(2);
37
+ const config = new src_1.PorticoConfig();
38
+ config.certificationStr = "5dbacb0fc504dd7bdc2eadeb7039dd";
39
+ const response = await _service
40
+ .spendBack()
41
+ .withAccountNumber("718136438")
42
+ .withReceivingAccountNumber("718567304")
43
+ .withAmount("100")
44
+ .withAllowPending(true)
45
+ .execute();
46
+ t.truthy(response);
47
+ t.is("00", response.responseCode);
48
+ });
49
+ /* before executing need to run Transaction Type 04 -> and from success response,
50
+ * the transNum value need to use here
51
+ */
52
+ (0, ava_1.default)("split funds", async (t) => {
53
+ t.plan(2);
54
+ const response = await _service
55
+ .splitFunds()
56
+ .withAccountNumber("718567304")
57
+ .withReceivingAccountNumber("718136438")
58
+ .withAmount("100")
59
+ .withTransNum("9")
60
+ .execute();
61
+ t.truthy(response);
62
+ t.is("00", response.responseCode);
63
+ });
64
+ (0, ava_1.default)("reverse split pay", async (t) => {
65
+ t.plan(5);
66
+ const response = await _service
67
+ .reverseSplitPay()
68
+ .withAccountNumber("718136438")
69
+ .withAmount("1")
70
+ .withCCAmount("10")
71
+ .withRequireCCRefund(true)
72
+ .withTransNum("49")
73
+ .execute();
74
+ t.truthy(response);
75
+ t.is("00", response.responseCode);
76
+ t.truthy(response.payFacData.amount);
77
+ t.truthy(response.payFacData.recAccountNum);
78
+ t.truthy(response.payFacData.transNum);
79
+ });
80
+ //# sourceMappingURL=ProPayInNetworkTransactionTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProPayInNetworkTransactionTest.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,0EAAuE;AACvE,yCAAmE;AAEnE,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;AACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC,CAAC,6CAA6C;AACzG,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;AAC7B,MAAM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