globalpayments-api 3.7.0 → 3.8.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 (311) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/LICENSE.md +257 -257
  3. package/README.md +141 -141
  4. package/lib/src/Builders/BaseBuilder/Validations.js +1 -1
  5. package/lib/src/Builders/BaseBuilder/Validations.js.map +1 -1
  6. package/lib/src/Builders/ManagementBuilder.d.ts +26 -6
  7. package/lib/src/Builders/ManagementBuilder.js +66 -34
  8. package/lib/src/Builders/ManagementBuilder.js.map +1 -1
  9. package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js +19 -0
  10. package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js.map +1 -1
  11. package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.d.ts +2 -0
  12. package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js +86 -0
  13. package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js.map +1 -1
  14. package/lib/src/Builders/TransactionReportBuilder.d.ts +5 -2
  15. package/lib/src/Builders/TransactionReportBuilder.js +19 -0
  16. package/lib/src/Builders/TransactionReportBuilder.js.map +1 -1
  17. package/lib/src/Entities/AdditionalTaxDetails.d.ts +5 -0
  18. package/lib/src/Entities/AdditionalTaxDetails.js +10 -0
  19. package/lib/src/Entities/AdditionalTaxDetails.js.map +1 -0
  20. package/lib/src/Entities/CommercialData.d.ts +26 -0
  21. package/lib/src/Entities/CommercialData.js +36 -0
  22. package/lib/src/Entities/CommercialData.js.map +1 -0
  23. package/lib/src/Entities/CommercialLineItem.d.ts +21 -0
  24. package/lib/src/Entities/CommercialLineItem.js +24 -0
  25. package/lib/src/Entities/CommercialLineItem.js.map +1 -0
  26. package/lib/src/Entities/DiscountDetails.d.ts +8 -0
  27. package/lib/src/Entities/DiscountDetails.js +13 -0
  28. package/lib/src/Entities/DiscountDetails.js.map +1 -0
  29. package/lib/src/Entities/DisputeDocument.d.ts +5 -0
  30. package/lib/src/Entities/DisputeDocument.js +10 -0
  31. package/lib/src/Entities/DisputeDocument.js.map +1 -0
  32. package/lib/src/Entities/Document.d.ts +10 -0
  33. package/lib/src/Entities/Document.js +13 -0
  34. package/lib/src/Entities/Document.js.map +1 -0
  35. package/lib/src/Entities/Enums/DisputeSortProperty.d.ts +12 -0
  36. package/lib/src/Entities/Enums/DisputeSortProperty.js +17 -0
  37. package/lib/src/Entities/Enums/DisputeSortProperty.js.map +1 -0
  38. package/lib/src/Entities/Enums/DisputeStage.d.ts +11 -0
  39. package/lib/src/Entities/Enums/DisputeStage.js +16 -0
  40. package/lib/src/Entities/Enums/DisputeStage.js.map +1 -0
  41. package/lib/src/Entities/Enums/DisputeStatus.d.ts +7 -0
  42. package/lib/src/Entities/Enums/DisputeStatus.js +12 -0
  43. package/lib/src/Entities/Enums/DisputeStatus.js.map +1 -0
  44. package/lib/src/Entities/Enums/DocumentCategory.d.ts +5 -0
  45. package/lib/src/Entities/Enums/DocumentCategory.js +10 -0
  46. package/lib/src/Entities/Enums/DocumentCategory.js.map +1 -0
  47. package/lib/src/Entities/Enums/FileType.d.ts +11 -0
  48. package/lib/src/Entities/Enums/FileType.js +16 -0
  49. package/lib/src/Entities/Enums/FileType.js.map +1 -0
  50. package/lib/src/Entities/Enums.d.ts +17 -1
  51. package/lib/src/Entities/Enums.js +20 -2
  52. package/lib/src/Entities/Enums.js.map +1 -1
  53. package/lib/src/Entities/HostedPaymentData.d.ts +3 -0
  54. package/lib/src/Entities/HostedPaymentData.js +3 -0
  55. package/lib/src/Entities/HostedPaymentData.js.map +1 -1
  56. package/lib/src/Entities/Reporting/DisputeSummary.d.ts +53 -0
  57. package/lib/src/Entities/Reporting/DisputeSummary.js +64 -0
  58. package/lib/src/Entities/Reporting/DisputeSummary.js.map +1 -0
  59. package/lib/src/Entities/Reporting/SearchCriteriaBuilder.d.ts +4 -2
  60. package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js +2 -0
  61. package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js.map +1 -1
  62. package/lib/src/Entities/Reporting/index.d.ts +1 -0
  63. package/lib/src/Entities/Reporting/index.js +1 -0
  64. package/lib/src/Entities/Reporting/index.js.map +1 -1
  65. package/lib/src/Entities/Transaction.js +3 -0
  66. package/lib/src/Entities/Transaction.js.map +1 -1
  67. package/lib/src/Entities/TransactionSummary.d.ts +1 -0
  68. package/lib/src/Entities/TransactionSummary.js +1 -0
  69. package/lib/src/Entities/TransactionSummary.js.map +1 -1
  70. package/lib/src/Entities/index.d.ts +7 -0
  71. package/lib/src/Entities/index.js +7 -0
  72. package/lib/src/Entities/index.js.map +1 -1
  73. package/lib/src/Gateways/GpApiConnector.js +3 -0
  74. package/lib/src/Gateways/GpApiConnector.js.map +1 -1
  75. package/lib/src/Gateways/GpEcomConnector.js +9 -0
  76. package/lib/src/Gateways/GpEcomConnector.js.map +1 -1
  77. package/lib/src/Gateways/PayPlanConnector.d.ts +1 -1
  78. package/lib/src/Gateways/PorticoConnector.d.ts +3 -3
  79. package/lib/src/Gateways/PorticoConnector.js +117 -4
  80. package/lib/src/Gateways/PorticoConnector.js.map +1 -1
  81. package/lib/src/Mapping/GpApiMapping.d.ts +2 -1
  82. package/lib/src/Mapping/GpApiMapping.js +75 -2
  83. package/lib/src/Mapping/GpApiMapping.js.map +1 -1
  84. package/lib/src/Services/ReportingService.d.ts +6 -1
  85. package/lib/src/Services/ReportingService.js +15 -0
  86. package/lib/src/Services/ReportingService.js.map +1 -1
  87. package/lib/test/Integration/Gateways/GpApiConnector/{3DS2Test.js → 3DS2.test.js} +338 -341
  88. package/lib/test/Integration/Gateways/GpApiConnector/3DS2.test.js.map +1 -0
  89. package/lib/test/Integration/Gateways/GpApiConnector/{3DSecureTest.js → 3DSecure.test.js} +167 -173
  90. package/lib/test/Integration/Gateways/GpApiConnector/3DSecure.test.js.map +1 -0
  91. package/lib/test/Integration/Gateways/GpApiConnector/AccessToken.test.js +130 -0
  92. package/lib/test/Integration/Gateways/GpApiConnector/AccessToken.test.js.map +1 -0
  93. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresent.test.js +1070 -0
  94. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresent.test.js.map +1 -0
  95. package/lib/test/Integration/Gateways/GpApiConnector/{DebitCardTest.js → DebitCard.test.js} +27 -33
  96. package/lib/test/Integration/Gateways/GpApiConnector/DebitCard.test.js.map +1 -0
  97. package/lib/test/Integration/Gateways/GpApiConnector/{GpApiCertificationTest.js → GpApiCertification.test.js} +211 -208
  98. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertification.test.js.map +1 -0
  99. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagement.test.js +151 -0
  100. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagement.test.js.map +1 -0
  101. package/lib/test/Integration/Gateways/GpApiConnector/{ReportingDepositsTest.js → ReportingDeposits.test.js} +103 -103
  102. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDeposits.test.js.map +1 -0
  103. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDisputes.test.js +571 -0
  104. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDisputes.test.js.map +1 -0
  105. package/lib/test/Integration/Gateways/GpApiConnector/{ReportingSettlementTransactionsTest.js → ReportingSettlementTransactions.test.js} +104 -108
  106. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactions.test.js.map +1 -0
  107. package/lib/test/Integration/Gateways/GpApiConnector/{ReportingStoredPaymentMethodsTest.js → ReportingStoredPaymentMethods.test.js} +75 -76
  108. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethods.test.js.map +1 -0
  109. package/lib/test/Integration/Gateways/GpApiConnector/{ReportingTransactionsTest.js → ReportingTransactions.test.js} +97 -95
  110. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactions.test.js.map +1 -0
  111. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{AuthTest.js → Auth.test.js} +441 -461
  112. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Auth.test.js.map +1 -0
  113. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{AvsTest.js → Avs.test.js} +274 -218
  114. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Avs.test.js.map +1 -0
  115. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{CreditTest.js → Credit.test.js} +317 -321
  116. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Credit.test.js.map +1 -0
  117. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{HoldTest.js → Hold.test.js} +290 -257
  118. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Hold.test.js.map +1 -0
  119. package/lib/test/Integration/Gateways/GpEcomConnector/{CreditTest.js → Credit.test.js} +76 -84
  120. package/lib/test/Integration/Gateways/GpEcomConnector/Credit.test.js.map +1 -0
  121. package/lib/test/Integration/Gateways/GpEcomConnector/Hpp.test.js +137 -0
  122. package/lib/test/Integration/Gateways/GpEcomConnector/Hpp.test.js.map +1 -0
  123. package/lib/test/Integration/Gateways/GpEcomConnector/Recurring.test.js +124 -0
  124. package/lib/test/Integration/Gateways/GpEcomConnector/Recurring.test.js.map +1 -0
  125. package/lib/test/Integration/Gateways/PorticoConnector/Ach.test.js +54 -0
  126. package/lib/test/Integration/Gateways/PorticoConnector/Ach.test.js.map +1 -0
  127. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Check.test.js +357 -0
  128. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Check.test.js.map +1 -0
  129. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{EcommerceTest.js → Ecommerce.test.js} +403 -459
  130. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Ecommerce.test.js.map +1 -0
  131. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{EcommerceCheckTest.js → EcommerceCheck.test.js} +17 -23
  132. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheck.test.js.map +1 -0
  133. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{MotoTest.js → Moto.test.js} +377 -650
  134. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Moto.test.js.map +1 -0
  135. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{MotoCheckTest.js → MotoCheck.test.js} +16 -22
  136. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheck.test.js.map +1 -0
  137. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Recurring.test.js +393 -0
  138. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Recurring.test.js.map +1 -0
  139. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{RetailTest.js → Retail.test.js} +481 -600
  140. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Retail.test.js.map +1 -0
  141. package/lib/test/Integration/Gateways/PorticoConnector/Credit.test.js +433 -0
  142. package/lib/test/Integration/Gateways/PorticoConnector/Credit.test.js.map +1 -0
  143. package/lib/test/Integration/Gateways/PorticoConnector/{DebitTest.js → Debit.test.js} +32 -37
  144. package/lib/test/Integration/Gateways/PorticoConnector/Debit.test.js.map +1 -0
  145. package/lib/test/Integration/Gateways/PorticoConnector/{EbtTest.js → Ebt.test.js} +30 -39
  146. package/lib/test/Integration/Gateways/PorticoConnector/Ebt.test.js.map +1 -0
  147. package/lib/test/Integration/Gateways/PorticoConnector/{EcommerceTest.js → Ecommerce.test.js} +38 -45
  148. package/lib/test/Integration/Gateways/PorticoConnector/Ecommerce.test.js.map +1 -0
  149. package/lib/test/Integration/Gateways/PorticoConnector/Gift.test.js +121 -0
  150. package/lib/test/Integration/Gateways/PorticoConnector/Gift.test.js.map +1 -0
  151. package/lib/test/Integration/Gateways/PorticoConnector/{PorticoManagementTokenTest.js → PorticoManagementToken.test.js} +8 -16
  152. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementToken.test.js.map +1 -0
  153. package/lib/test/Integration/Gateways/PorticoConnector/Recurring.test.js +87 -0
  154. package/lib/test/Integration/Gateways/PorticoConnector/Recurring.test.js.map +1 -0
  155. package/lib/test/Integration/Gateways/PorticoConnector/{ReportingTest.js → Reporting.test.js} +12 -18
  156. package/lib/test/Integration/Gateways/PorticoConnector/Reporting.test.js.map +1 -0
  157. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{GetInformationCertificationTest.js → GetInformationCertification.test.js} +12 -18
  158. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertification.test.js.map +1 -0
  159. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{ProPayAccountCertificationTest.js → ProPayAccountCertification.test.js} +49 -64
  160. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertification.test.js.map +1 -0
  161. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{ProPayFundCertificationTest.js → ProPayFundCertification.test.js} +14 -22
  162. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertification.test.js.map +1 -0
  163. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{ProPayInNetworkTransactionCertificationTest.js → ProPayInNetworkTransactionCertification.test.js} +18 -26
  164. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertification.test.js.map +1 -0
  165. package/lib/test/Integration/Gateways/ProPayConnector/{GetInformationTest.js → GetInformation.test.js} +11 -18
  166. package/lib/test/Integration/Gateways/ProPayConnector/GetInformation.test.js.map +1 -0
  167. package/lib/test/Integration/Gateways/ProPayConnector/{ProPayAccountTest.js → ProPayAccount.test.js} +63 -83
  168. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccount.test.js.map +1 -0
  169. package/lib/test/Integration/Gateways/ProPayConnector/{ProPayFundsTest.js → ProPayFunds.test.js} +15 -22
  170. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFunds.test.js.map +1 -0
  171. package/lib/test/Integration/Gateways/ProPayConnector/{ProPayInNetworkTransactionTest.js → ProPayInNetworkTransaction.test.js} +17 -25
  172. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransaction.test.js.map +1 -0
  173. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMic.test.js +165 -0
  174. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMic.test.js.map +1 -0
  175. package/lib/test/Integration/Services/{CheckServiceTest.js → CheckService.test.js} +11 -18
  176. package/lib/test/Integration/Services/CheckService.test.js.map +1 -0
  177. package/lib/test/Integration/Services/{CreditServiceTest.js → CreditService.test.js} +48 -64
  178. package/lib/test/Integration/Services/CreditService.test.js.map +1 -0
  179. package/lib/test/Integration/Services/{DebitServiceTest.js → DebitService.test.js} +28 -32
  180. package/lib/test/Integration/Services/DebitService.test.js.map +1 -0
  181. package/lib/test/Integration/Services/{EBTServiceTest.js → EBTService.test.js} +16 -26
  182. package/lib/test/Integration/Services/EBTService.test.js.map +1 -0
  183. package/lib/test/Unit/Builders/AuthorizationBuilder/Validation.test.js +122 -0
  184. package/lib/test/Unit/Builders/AuthorizationBuilder/Validation.test.js.map +1 -0
  185. package/lib/test/Unit/Builders/ReportBuilder/Validation.test.js +66 -0
  186. package/lib/test/Unit/Builders/ReportBuilder/Validation.test.js.map +1 -0
  187. package/lib/test/Unit/Gateways/GpEcomConnector/{CreditTest.js → Credit.test.js} +13 -15
  188. package/lib/test/Unit/Gateways/GpEcomConnector/Credit.test.js.map +1 -0
  189. package/lib/test/Unit/Gateways/PorticoConnector/InputValidation.test.js +128 -0
  190. package/lib/test/Unit/Gateways/PorticoConnector/InputValidation.test.js.map +1 -0
  191. package/package.json +7 -17
  192. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js.map +0 -1
  193. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js.map +0 -1
  194. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +0 -109
  195. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +0 -1
  196. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +0 -1025
  197. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +0 -1
  198. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +0 -439
  199. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +0 -1
  200. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +0 -1
  201. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertificationTest.js.map +0 -1
  202. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagementTest.js +0 -149
  203. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagementTest.js.map +0 -1
  204. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDepositsTest.js.map +0 -1
  205. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +0 -1
  206. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +0 -1
  207. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +0 -1
  208. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +0 -1
  209. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +0 -1
  210. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +0 -1
  211. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +0 -1
  212. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
  213. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +0 -99
  214. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +0 -1
  215. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +0 -133
  216. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +0 -1
  217. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -59
  218. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +0 -1
  219. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -378
  220. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +0 -1
  221. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +0 -1
  222. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +0 -1
  223. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +0 -1
  224. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +0 -1
  225. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -420
  226. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +0 -1
  227. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +0 -1
  228. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -392
  229. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +0 -1
  230. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +0 -1
  231. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +0 -1
  232. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +0 -1
  233. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -147
  234. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +0 -1
  235. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.js.map +0 -1
  236. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -101
  237. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +0 -1
  238. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +0 -1
  239. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +0 -1
  240. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +0 -1
  241. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +0 -1
  242. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +0 -1
  243. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +0 -1
  244. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +0 -1
  245. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +0 -1
  246. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +0 -1
  247. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +0 -149
  248. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +0 -1
  249. package/lib/test/Integration/Services/CheckServiceTest.js.map +0 -1
  250. package/lib/test/Integration/Services/CreditServiceTest.js.map +0 -1
  251. package/lib/test/Integration/Services/DebitServiceTest.js.map +0 -1
  252. package/lib/test/Integration/Services/EBTServiceTest.js.map +0 -1
  253. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -111
  254. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +0 -1
  255. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -62
  256. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +0 -1
  257. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
  258. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -125
  259. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +0 -1
  260. /package/lib/test/Integration/Gateways/GpApiConnector/{3DS2Test.d.ts → 3DS2.test.d.ts} +0 -0
  261. /package/lib/test/Integration/Gateways/GpApiConnector/{3DSecureTest.d.ts → 3DSecure.test.d.ts} +0 -0
  262. /package/lib/test/Integration/Gateways/GpApiConnector/{AccessTokenTest.d.ts → AccessToken.test.d.ts} +0 -0
  263. /package/lib/test/Integration/Gateways/GpApiConnector/{CreditCardNotPresentTest.d.ts → CreditCardNotPresent.test.d.ts} +0 -0
  264. /package/lib/test/Integration/Gateways/GpApiConnector/{CreditCardPresentTest.d.ts → DebitCard.test.d.ts} +0 -0
  265. /package/lib/test/Integration/Gateways/GpApiConnector/{DebitCardTest.d.ts → GpApiCertification.test.d.ts} +0 -0
  266. /package/lib/test/Integration/Gateways/GpApiConnector/{GpApiCertificationTest.d.ts → GpApiTokenManagement.test.d.ts} +0 -0
  267. /package/lib/test/Integration/Gateways/GpApiConnector/{GpApiTokenManagementTest.d.ts → ReportingDeposits.test.d.ts} +0 -0
  268. /package/lib/test/Integration/Gateways/GpApiConnector/{ReportingDepositsTest.d.ts → ReportingDisputes.test.d.ts} +0 -0
  269. /package/lib/test/Integration/Gateways/GpApiConnector/{ReportingSettlementTransactionsTest.d.ts → ReportingSettlementTransactions.test.d.ts} +0 -0
  270. /package/lib/test/Integration/Gateways/GpApiConnector/{ReportingStoredPaymentMethodsTest.d.ts → ReportingStoredPaymentMethods.test.d.ts} +0 -0
  271. /package/lib/test/Integration/Gateways/GpApiConnector/{ReportingTransactionsTest.d.ts → ReportingTransactions.test.d.ts} +0 -0
  272. /package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{AuthTest.d.ts → Auth.test.d.ts} +0 -0
  273. /package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{AvsTest.d.ts → Avs.test.d.ts} +0 -0
  274. /package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{CreditTest.d.ts → Credit.test.d.ts} +0 -0
  275. /package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{HoldTest.d.ts → Hold.test.d.ts} +0 -0
  276. /package/lib/test/Integration/Gateways/GpEcomConnector/{CreditTest.d.ts → Credit.test.d.ts} +0 -0
  277. /package/lib/test/Integration/Gateways/GpEcomConnector/{HppTest.d.ts → Hpp.test.d.ts} +0 -0
  278. /package/lib/test/Integration/Gateways/GpEcomConnector/{RecurringTest.d.ts → Recurring.test.d.ts} +0 -0
  279. /package/lib/test/Integration/Gateways/PorticoConnector/{AchTest.d.ts → Ach.test.d.ts} +0 -0
  280. /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{CheckTest.d.ts → Check.test.d.ts} +0 -0
  281. /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{EcommerceCheckTest.d.ts → Ecommerce.test.d.ts} +0 -0
  282. /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{EcommerceTest.d.ts → EcommerceCheck.test.d.ts} +0 -0
  283. /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{MotoCheckTest.d.ts → Moto.test.d.ts} +0 -0
  284. /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{MotoTest.d.ts → MotoCheck.test.d.ts} +0 -0
  285. /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{RecurringTest.d.ts → Recurring.test.d.ts} +0 -0
  286. /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{RetailTest.d.ts → Retail.test.d.ts} +0 -0
  287. /package/lib/test/Integration/Gateways/PorticoConnector/{CreditTest.d.ts → Credit.test.d.ts} +0 -0
  288. /package/lib/test/Integration/Gateways/PorticoConnector/{DebitTest.d.ts → Debit.test.d.ts} +0 -0
  289. /package/lib/test/Integration/Gateways/PorticoConnector/{EbtTest.d.ts → Ebt.test.d.ts} +0 -0
  290. /package/lib/test/Integration/Gateways/PorticoConnector/{EcommerceTest.d.ts → Ecommerce.test.d.ts} +0 -0
  291. /package/lib/test/Integration/Gateways/PorticoConnector/{GiftTest.d.ts → Gift.test.d.ts} +0 -0
  292. /package/lib/test/Integration/Gateways/PorticoConnector/{PorticoManagementTokenTest.d.ts → PorticoManagementToken.test.d.ts} +0 -0
  293. /package/lib/test/Integration/Gateways/PorticoConnector/{RecurringTest.d.ts → Recurring.test.d.ts} +0 -0
  294. /package/lib/test/Integration/Gateways/PorticoConnector/{ReportingTest.d.ts → Reporting.test.d.ts} +0 -0
  295. /package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{GetInformationCertificationTest.d.ts → GetInformationCertification.test.d.ts} +0 -0
  296. /package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{ProPayAccountCertificationTest.d.ts → ProPayAccountCertification.test.d.ts} +0 -0
  297. /package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{ProPayFundCertificationTest.d.ts → ProPayFundCertification.test.d.ts} +0 -0
  298. /package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{ProPayInNetworkTransactionCertificationTest.d.ts → ProPayInNetworkTransactionCertification.test.d.ts} +0 -0
  299. /package/lib/test/Integration/Gateways/ProPayConnector/{GetInformationTest.d.ts → GetInformation.test.d.ts} +0 -0
  300. /package/lib/test/Integration/Gateways/ProPayConnector/{ProPayAccountTest.d.ts → ProPayAccount.test.d.ts} +0 -0
  301. /package/lib/test/Integration/Gateways/ProPayConnector/{ProPayFundsTest.d.ts → ProPayFunds.test.d.ts} +0 -0
  302. /package/lib/test/Integration/Gateways/ProPayConnector/{ProPayInNetworkTransactionTest.d.ts → ProPayInNetworkTransaction.test.d.ts} +0 -0
  303. /package/lib/test/Integration/Gateways/Terminals/UPA/{UpaMicTest.d.ts → UpaMic.test.d.ts} +0 -0
  304. /package/lib/test/Integration/Services/{CheckServiceTest.d.ts → CheckService.test.d.ts} +0 -0
  305. /package/lib/test/Integration/Services/{CreditServiceTest.d.ts → CreditService.test.d.ts} +0 -0
  306. /package/lib/test/Integration/Services/{DebitServiceTest.d.ts → DebitService.test.d.ts} +0 -0
  307. /package/lib/test/Integration/Services/{EBTServiceTest.d.ts → EBTService.test.d.ts} +0 -0
  308. /package/lib/test/Unit/Builders/AuthorizationBuilder/{ValidationTest.d.ts → Validation.test.d.ts} +0 -0
  309. /package/lib/test/Unit/Builders/ReportBuilder/{ValidationTest.d.ts → Validation.test.d.ts} +0 -0
  310. /package/lib/test/Unit/Gateways/GpEcomConnector/{CreditTest.d.ts → Credit.test.d.ts} +0 -0
  311. /package/lib/test/Unit/Gateways/PorticoConnector/{InputValidationTest.d.ts → InputValidation.test.d.ts} +0 -0
@@ -1,14 +1,8 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const ava_1 = __importDefault(require("ava"));
7
- const src_1 = require("../../../../src/");
3
+ const src_1 = require("../../../../src");
8
4
  const config = new src_1.PorticoConfig();
9
5
  config.secretApiKey = "skapi_cert_MaePAQBr-1QAqjfckFC8FTbRTT120bVQUlfVOjgCBw";
10
- const runSerially = false;
11
- const test = runSerially ? ava_1.default.serial : ava_1.default;
12
6
  const track = new src_1.DebitTrackData();
13
7
  /* eslint-disable */
14
8
  track.value =
@@ -17,72 +11,73 @@ track.value =
17
11
  track.pinBlock = "32539F50C245A6A93D123412324000AA";
18
12
  track.encryptionData = new src_1.EncryptionData();
19
13
  track.encryptionData.version = "01";
20
- ava_1.default.before(() => {
14
+ beforeAll(() => {
21
15
  src_1.ServicesContainer.configureService(config);
22
16
  });
23
- test("debit sale", async (t) => {
24
- t.plan(2);
17
+ test("debit sale", async () => {
18
+ expect.assertions(2);
25
19
  const response = await track
26
20
  .charge(17.01)
27
21
  .withCurrency("USD")
28
22
  .withAllowDuplicates(true)
29
23
  .execute();
30
- t.truthy(response);
31
- t.is(response.responseCode, "00", response.responseMessage);
24
+ expect(response).toBeTruthy();
25
+ expect(response.responseCode).toBe("00");
32
26
  });
33
- test.failing("debit add value", async (t) => {
34
- t.plan(2);
27
+ test.failing("debit add value", async () => {
28
+ expect.assertions(2);
35
29
  const response = await track
36
30
  .addValue(15.01)
37
31
  .withCurrency("USD")
38
32
  .withAllowDuplicates(true)
39
33
  .execute();
40
- t.truthy(response);
41
- t.is(response.responseCode, "00", response.responseMessage);
34
+ expect(response).toBeTruthy();
35
+ expect(response.responseCode).toBe("00");
42
36
  });
43
- test("debit refund", async (t) => {
44
- t.plan(2);
37
+ test("debit refund", async () => {
38
+ expect.assertions(2);
45
39
  const response = await track
46
40
  .refund(16.01)
47
41
  .withCurrency("USD")
48
42
  .withAllowDuplicates(true)
49
43
  .execute();
50
- t.truthy(response);
51
- t.is(response.responseCode, "00", response.responseMessage);
44
+ expect(response).toBeTruthy();
45
+ expect(response.responseCode).toBe("00");
52
46
  });
53
- test("debit reverse", async (t) => {
54
- t.plan(2);
47
+ test("debit reverse", async () => {
48
+ expect.assertions(2);
55
49
  const response = await track
56
50
  .reverse(17.01)
57
51
  .withCurrency("USD")
58
52
  .withAllowDuplicates(true)
59
53
  .execute();
60
- t.truthy(response);
61
- t.is(response.responseCode, "00", response.responseMessage);
54
+ expect(response).toBeTruthy();
55
+ expect(response.responseCode).toBe("00");
62
56
  });
63
- test("debit cannot refund from transaction id only", (t) => {
64
- t.plan(2);
65
- const error = t.throws(() => {
66
- src_1.Transaction.fromId("1234567890", src_1.PaymentMethodType.Debit)
57
+ test("debit cannot refund from transaction id only", async () => {
58
+ try {
59
+ await src_1.Transaction.fromId("1234567890", src_1.PaymentMethodType.Debit)
67
60
  .refund()
68
61
  .withCurrency("USD")
69
62
  .execute();
70
- }, new src_1.UnsupportedTransactionError());
71
- t.truthy(error?.message);
63
+ }
64
+ catch (error) {
65
+ expect(error?.message).toBeTruthy();
66
+ expect(error).toBeInstanceOf(src_1.UnsupportedTransactionError);
67
+ }
72
68
  });
73
- test("Debit Reversal with fromId method", async (t) => {
74
- t.plan(2);
69
+ test("Debit Reversal with fromId method", async () => {
75
70
  const response = await track
76
71
  .charge(17.01)
77
72
  .withCurrency("USD")
78
73
  .withAllowDuplicates(true)
79
74
  .execute();
80
- t.truthy(response);
81
- t.is(response.responseCode, "00", response.responseMessage);
75
+ expect(response).toBeTruthy();
76
+ expect(response.responseCode).toBe("00");
82
77
  const reversalResponse = await src_1.Transaction.fromId(response.transactionId, src_1.PaymentMethodType.Debit)
83
78
  .reverse()
84
79
  .execute();
85
- t.truthy(reversalResponse);
86
- t.is(reversalResponse.responseCode, "00", reversalResponse.responseMessage);
80
+ expect(reversalResponse).toBeTruthy();
81
+ expect(reversalResponse.responseCode).toBe("00");
87
82
  });
88
- //# sourceMappingURL=DebitTest.js.map
83
+ //# sourceMappingURL=Debit.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Debit.test.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/PorticoConnector/Debit.test.ts"],"names":[],"mappings":";;AAAA,yCAQyB;AAEzB,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,YAAY,GAAG,uDAAuD,CAAC;AAE9E,MAAM,KAAK,GAAG,IAAI,oBAAc,EAAE,CAAC;AACnC,oBAAoB;AACpB,KAAK,CAAC,KAAK;IACT,0gBAA0gB,CAAC;AAC7gB,mBAAmB;AACnB,KAAK,CAAC,QAAQ,GAAG,kCAAkC,CAAC;AACpD,KAAK,CAAC,cAAc,GAAG,IAAI,oBAAc,EAAE,CAAC;AAC5C,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,IAAI,CAAC;AAEpC,SAAS,CAAC,GAAG,EAAE;IACb,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE;IAC5B,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAErB,MAAM,QAAQ,GAAG,MAAM,KAAK;SACzB,MAAM,CAAC,KAAK,CAAC;SACb,YAAY,CAAC,KAAK,CAAC;SACnB,mBAAmB,CAAC,IAAI,CAAC;SACzB,OAAO,EAAE,CAAC;IAEb,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,CAAC;IAC9B,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3C,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,OAAO,CAAC,iBAAiB,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A8C,EAAE,KAAK,IAAI,EAAE;IAC9D,IAAI;QACF,MAAM,iBAAW,CAAC,MAAM,CAAC,YAAY,EAAE,uBAAiB,CAAC,KAAK,CAAC;aAC5D,MAAM,EAAE;aACR,YAAY,CAAC,KAAK,CAAC;aACnB,OAAO,EAAE,CAAC;KACd;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,UAAU,EAAE,CAAC;QACpC,MAAM,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC,iCAA2B,CAAC,CAAC;KAC3D;AACH,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;IACnD,MAAM,QAAQ,GAAG,MAAM,KAAK;SACzB,MAAM,CAAC,KAAK,CAAC;SACb,YAAY,CAAC,KAAK,CAAC;SACnB,mBAAmB,CAAC,IAAI,CAAC;SACzB,OAAO,EAAE,CAAC;IAEb,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,CAAC;IAC9B,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEzC,MAAM,gBAAgB,GAAG,MAAM,iBAAW,CAAC,MAAM,CAC/C,QAAQ,CAAC,aAAa,EACtB,uBAAiB,CAAC,KAAK,CACxB;SACE,OAAO,EAAE;SACT,OAAO,EAAE,CAAC;IAEb,MAAM,CAAC,gBAAgB,CAAC,CAAC,UAAU,EAAE,CAAC;IACtC,MAAM,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACnD,CAAC,CAAC,CAAC"}
@@ -1,14 +1,7 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const ava_1 = __importDefault(require("ava"));
7
- const src_1 = require("../../../../src/");
3
+ const src_1 = require("../../../../src");
8
4
  const config = new src_1.PorticoConfig();
9
- config.secretApiKey = "skapi_cert_MaePAQBr-1QAqjfckFC8FTbRTT120bVQUlfVOjgCBw";
10
- const runSerially = false;
11
- const test = runSerially ? ava_1.default.serial : ava_1.default;
12
5
  const card = new src_1.EBTCardData();
13
6
  card.number = "4012002000060016";
14
7
  card.expMonth = "12";
@@ -21,52 +14,50 @@ track.value =
21
14
  track.pinBlock = "32539F50C245A6A93D123412324000AA";
22
15
  track.encryptionData = new src_1.EncryptionData();
23
16
  track.encryptionData.version = "01";
24
- ava_1.default.before(() => {
17
+ beforeAll(() => {
18
+ config.secretApiKey = "skapi_cert_MaePAQBr-1QAqjfckFC8FTbRTT120bVQUlfVOjgCBw";
25
19
  src_1.ServicesContainer.configureService(config);
26
20
  });
27
- test("ebt balance inquiry", async (t) => {
28
- t.plan(2);
21
+ test("ebt balance inquiry", async () => {
29
22
  const response = await card.balanceInquiry().execute();
30
- t.truthy(response);
31
- t.is(response.responseCode, "00", response.responseMessage);
23
+ expect(response).toBeTruthy();
24
+ expect(response.responseCode).toBe("00");
32
25
  });
33
- test("ebt sale", async (t) => {
34
- t.plan(2);
26
+ test("ebt sale", async () => {
35
27
  const response = await card.charge(10).withCurrency("USD").execute();
36
- t.truthy(response);
37
- t.is(response.responseCode, "00", response.responseMessage);
28
+ expect(response).toBeTruthy();
29
+ expect(response.responseCode).toBe("00");
38
30
  });
39
- test("ebt refund", async (t) => {
40
- t.plan(2);
31
+ test("ebt refund", async () => {
41
32
  const response = await card.refund(10).withCurrency("USD").execute();
42
- t.truthy(response);
43
- t.is(response.responseCode, "00", response.responseMessage);
33
+ expect(response).toBeTruthy();
34
+ expect(response.responseCode).toBe("00");
44
35
  });
45
- test("ebt track balance inquiry", async (t) => {
46
- t.plan(2);
36
+ test("ebt track balance inquiry", async () => {
37
+ expect.assertions(2);
47
38
  const response = await track.balanceInquiry().execute();
48
- t.truthy(response);
49
- t.is(response.responseCode, "00", response.responseMessage);
39
+ expect(response).toBeTruthy();
40
+ expect(response.responseCode).toBe("00");
50
41
  });
51
- test("ebt track sale", async (t) => {
52
- t.plan(2);
42
+ test("ebt track sale", async () => {
53
43
  const response = await track.charge(11).withCurrency("USD").execute();
54
- t.truthy(response);
55
- t.is(response.responseCode, "00", response.responseMessage);
44
+ expect(response).toBeTruthy();
45
+ expect(response.responseCode).toBe("00");
56
46
  });
57
- test("ebt track refund", async (t) => {
58
- t.plan(2);
47
+ test("ebt track refund", async () => {
59
48
  const response = await track.refund(11).withCurrency("USD").execute();
60
- t.truthy(response);
61
- t.is(response.responseCode, "00", response.responseMessage);
49
+ expect(response).toBeTruthy();
50
+ expect(response.responseCode).toBe("00");
62
51
  });
63
- test("ebt refund fails from transaction id only", async (t) => {
64
- t.plan(2);
65
- const error = await t.throwsAsync(async () => {
52
+ test("ebt refund fails from transaction id only", async () => {
53
+ try {
66
54
  await src_1.Transaction.fromId("1234567890", src_1.PaymentMethodType.EBT)
67
55
  .refund()
68
56
  .execute();
69
- }, { instanceOf: src_1.ApiError });
70
- t.truthy(error?.message);
57
+ }
58
+ catch (error) {
59
+ expect(error?.message).toBeTruthy();
60
+ expect(error).toBeInstanceOf(src_1.ApiError);
61
+ }
71
62
  });
72
- //# sourceMappingURL=EbtTest.js.map
63
+ //# sourceMappingURL=Ebt.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ebt.test.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/PorticoConnector/Ebt.test.ts"],"names":[],"mappings":";;AAAA,yCASyB;AAEzB,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AAEnC,MAAM,IAAI,GAAG,IAAI,iBAAW,EAAE,CAAC;AAC/B,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC;AACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;AACrB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;AACtB,IAAI,CAAC,GAAG,GAAG,KAAK,CAA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AI,EAAE;IAC3D,IAAI;QACF,MAAM,iBAAW,CAAC,MAAM,CAAC,YAAY,EAAE,uBAAiB,CAAC,GAAG,CAAC;aAC1D,MAAM,EAAE;aACR,OAAO,EAAE,CAAC;KACd;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,UAAU,EAAE,CAAC;QACpC,MAAM,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC,cAAQ,CAAC,CAAC;KACxC;AACH,CAAC,CAAC,CAAC"}
@@ -1,22 +1,15 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const ava_1 = __importDefault(require("ava"));
7
- const src_1 = require("../../../../src/");
3
+ const src_1 = require("../../../../src");
8
4
  const Data_1 = require("../../../Data");
9
- const config = new src_1.PorticoConfig();
10
- config.secretApiKey = "skapi_cert_MY5OAAAQrmIF_IZDKbr1ecycRr7n1Q1SxNkVgzDhwg";
11
- const runSerially = false;
12
- const test = runSerially ? ava_1.default.serial : ava_1.default;
13
5
  const card = Data_1.TestCards.visaManual();
14
6
  card.tokenize();
15
- ava_1.default.before(() => {
7
+ beforeEach(() => {
8
+ const config = new src_1.PorticoConfig();
9
+ config.secretApiKey = "skapi_cert_MXDMBQDwa3IAA4GV7NGMqQA_wFR3_TNeamFWoNUu_Q";
16
10
  src_1.ServicesContainer.configureService(config);
17
11
  });
18
- test("ecom with moto", async (t) => {
19
- t.plan(2);
12
+ test("ecom with moto", async () => {
20
13
  const ecom = new src_1.EcommerceInfo();
21
14
  ecom.channel = src_1.EcommerceChannel.Moto;
22
15
  const response = await card
@@ -25,11 +18,10 @@ test("ecom with moto", async (t) => {
25
18
  .withEcommerceInfo(ecom)
26
19
  .withAllowDuplicates(true)
27
20
  .execute();
28
- t.truthy(response);
29
- t.is(response.responseCode, "00");
21
+ expect(response).toBeTruthy();
22
+ expect(response.responseCode).toBe("00");
30
23
  });
31
- test("ecom with direct market ship date", async (t) => {
32
- t.plan(2);
24
+ test("ecom with direct market ship date", async () => {
33
25
  const ecom = new src_1.EcommerceInfo();
34
26
  ecom.shipDay = "25";
35
27
  ecom.shipMonth = "12";
@@ -39,11 +31,10 @@ test("ecom with direct market ship date", async (t) => {
39
31
  .withEcommerceInfo(ecom)
40
32
  .withAllowDuplicates(true)
41
33
  .execute();
42
- t.truthy(response);
43
- t.is(response.responseCode, "00");
34
+ expect(response).toBeTruthy();
35
+ expect(response.responseCode).toBe("00");
44
36
  });
45
- test("ecom with direct market invoice no ship date", async (t) => {
46
- t.plan(2);
37
+ test("ecom with direct market invoice no ship date", async () => {
47
38
  const response = await card
48
39
  .charge(9)
49
40
  .withCurrency("USD")
@@ -51,11 +42,10 @@ test("ecom with direct market invoice no ship date", async (t) => {
51
42
  .withInvoiceNumber("1234567890")
52
43
  .withAllowDuplicates(true)
53
44
  .execute();
54
- t.truthy(response);
55
- t.is(response.responseCode, "00");
45
+ expect(response).toBeTruthy();
46
+ expect(response.responseCode).toBe("00");
56
47
  });
57
- test("ecom with direct market invoice and ship date", async (t) => {
58
- t.plan(2);
48
+ test("ecom with direct market invoice and ship date", async () => {
59
49
  const ecom = new src_1.EcommerceInfo();
60
50
  ecom.channel = src_1.EcommerceChannel.Moto;
61
51
  ecom.shipDay = "25";
@@ -67,11 +57,10 @@ test("ecom with direct market invoice and ship date", async (t) => {
67
57
  .withInvoiceNumber("1234567890")
68
58
  .withAllowDuplicates(true)
69
59
  .execute();
70
- t.truthy(response);
71
- t.is(response.responseCode, "00");
60
+ expect(response).toBeTruthy();
61
+ expect(response.responseCode).toBe("00");
72
62
  });
73
- test("ecom with secure ecommerce", async (t) => {
74
- t.plan(2);
63
+ test("ecom with secure ecommerce", async () => {
75
64
  const ecom = new src_1.EcommerceInfo();
76
65
  ecom.paymentDataSource = "ApplePay";
77
66
  ecom.cavv = "XXXXf98AAajXbDRg3HSUMAACAAA=";
@@ -83,11 +72,10 @@ test("ecom with secure ecommerce", async (t) => {
83
72
  .withInvoiceNumber("1234567890")
84
73
  .withAllowDuplicates(true)
85
74
  .execute();
86
- t.truthy(response);
87
- t.is(response.responseCode, "00");
75
+ expect(response).toBeTruthy();
76
+ expect(response.responseCode).toBe("00");
88
77
  });
89
- test.skip("ecom with walletdata", async (t) => {
90
- t.plan(2);
78
+ test.skip("ecom with walletdata", async () => {
91
79
  card.mobileType = src_1.MobilePaymentMethodType.GOOGLEPAY;
92
80
  card.paymentSource = src_1.PaymentDataSourceType.GOOGLEPAYWEB;
93
81
  card.token = `{
@@ -105,8 +93,8 @@ test.skip("ecom with walletdata", async (t) => {
105
93
  .withInvoiceNumber("1234567890")
106
94
  .withAllowDuplicates(true)
107
95
  .execute();
108
- t.truthy(response);
109
- t.is(response.responseCode, "00");
96
+ expect(response).toBeTruthy();
97
+ expect(response.responseCode).toBe("00");
110
98
  });
111
99
  /**
112
100
  * This test demonstrates and tests behavior around requesting unique
@@ -117,27 +105,32 @@ test.skip("ecom with walletdata", async (t) => {
117
105
  * @throws InvalidArgumentException
118
106
  * @throws ExpectationFailedException
119
107
  */
120
- test("Should return a unique MUT token upon request", async (t) => {
121
- t.plan(8);
108
+ test("Should return a unique token upon request", async () => {
109
+ const card = new src_1.CreditCardData();
110
+ card.number = "4263970000005262";
111
+ card.expMonth = "10";
112
+ card.expYear = "2025";
113
+ card.cvn = "131";
114
+ card.tokenize();
122
115
  const response1 = await card
123
116
  .verify()
124
117
  .withRequestMultiUseToken(true)
125
118
  .execute();
126
- t.truthy(response1);
127
- t.truthy(response1.token);
119
+ expect(response1).toBeTruthy();
120
+ expect(response1.token).toBeTruthy();
128
121
  const response2 = await card
129
122
  .verify()
130
123
  .withRequestMultiUseToken(true)
131
124
  .execute();
132
- t.truthy(response2);
133
- t.truthy(response2.token);
134
- t.is(response1.token, response2.token);
125
+ expect(response2).toBeTruthy();
126
+ expect(response2.token).toBeTruthy();
127
+ expect(response1.token).toBe(response2.token);
135
128
  const response3 = await card
136
129
  .verify()
137
130
  .withRequestMultiUseToken(true, true)
138
131
  .execute();
139
- t.truthy(response3);
140
- t.truthy(response3.token);
141
- t.not(response1.token, response2.token);
132
+ expect(response3).toBeTruthy();
133
+ expect(response3.token).toBeTruthy();
134
+ expect(response1.token).not.toEqual(response3.token);
142
135
  });
143
- //# sourceMappingURL=EcommerceTest.js.map
136
+ //# sourceMappingURL=Ecommerce.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ecommerce.test.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/PorticoConnector/Ecommerce.test.ts"],"names":[],"mappings":";;AAAA,yCAQyB;AACzB,wCAA0C;AAE1C,MAAM,IAAI,GAAG,gBAAS,CAAC,UAAU,EAAE,CAAC;AACpC,IAAI,CAAC,QAAQ,EAAE,CAAC;AAEhB,UAAU,CAAC,GAAG,EAAE;IACd,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;IACnC,MAAM,CAAC,YAAY,GAAG,uDAAuD,CAAC;IAC9E,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;IAChC,MAAM,IAAI,GAAG,IAAI,mBAAa,EAAE,CAAC;IACjC,IAAI,CAAC,OAAO,GAAG,sBAAgB,CAAC,IAAI,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAI;SACxB,MAAM,CAAC,CAAC,CAAC;SACT,YAAY,CAAC,KAAK,CAAC;SACnB,iBAAiB,CAAC,IAAI,CAAC;SACvB,mBAAmB,CAAC,IAAI,CAAC;SACzB,OAAO,EAAE,CAAC;IAEb,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,CAAC;IAC9B,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3C,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C,MAAM,SAAS,GAAG,MAAM,IAAI;SACzB,MAAM,EAAE;SACR,wBAAwB,CAAC,IAAI,EAAE,IAAI,CAAC;SACpC,OAAO,EAAE,CAAC;IAEb,MAAM,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC;IAC/B,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;IACrC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC"}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const src_1 = require("../../../../src");
4
+ const config = new src_1.PorticoConfig();
5
+ const card = new src_1.GiftCard();
6
+ card.number = "5022440000000000007";
7
+ const track = new src_1.GiftCard();
8
+ track.trackData =
9
+ "%B5022440000000000098^^391200081613?;5022440000000000098=391200081613?";
10
+ beforeAll(() => {
11
+ config.secretApiKey = "skapi_cert_MaePAQBr-1QAqjfckFC8FTbRTT120bVQUlfVOjgCBw";
12
+ src_1.ServicesContainer.configureService(config);
13
+ });
14
+ test("gift create", async () => {
15
+ const newCard = await src_1.GiftCard.create("2145550199");
16
+ expect(newCard).toBeTruthy();
17
+ expect(newCard.number).toBeTruthy();
18
+ expect(newCard.alias).toBeTruthy();
19
+ expect(newCard.pin).toBeTruthy();
20
+ });
21
+ test("gift add alias", async () => {
22
+ const response = await card.addAlias("2145550199").execute();
23
+ expect(response).toBeTruthy();
24
+ expect(response.responseCode).toBe("00");
25
+ });
26
+ test("gift add value", async () => {
27
+ const response = await card.addValue(10).withCurrency("USD").execute();
28
+ expect(response).toBeTruthy();
29
+ expect(response.responseCode).toBe("00");
30
+ });
31
+ test("gift balance inquiry", async () => {
32
+ const response = await card.balanceInquiry().execute();
33
+ expect(response).toBeTruthy();
34
+ expect(response.responseCode).toBe("00");
35
+ });
36
+ test("gift sale", async () => {
37
+ const response = await card.charge(10).withCurrency("USD").execute();
38
+ expect(response).toBeTruthy();
39
+ expect(response.responseCode).toBe("00");
40
+ });
41
+ test("gift deactivate", async () => {
42
+ const response = await card.deactivate().execute();
43
+ expect(response).toBeTruthy();
44
+ expect(response.responseCode).toBe("00");
45
+ });
46
+ test("gift remove alias", async () => {
47
+ const response = await card.removeAlias("2145550199").execute();
48
+ expect(response).toBeTruthy();
49
+ expect(response.responseCode).toBe("00");
50
+ });
51
+ test("gift replace", async () => {
52
+ const response = await card.replaceWith(track).execute();
53
+ expect(response).toBeTruthy();
54
+ expect(response.responseCode).toBe("00");
55
+ });
56
+ test.skip("gift reverse", async () => {
57
+ const response = await card.reverse(10).execute();
58
+ expect(response).toBeTruthy();
59
+ expect(response.responseCode).toBe("00");
60
+ });
61
+ test("gift rewards", async () => {
62
+ const response = await card.rewards(10).execute();
63
+ expect(response).toBeTruthy();
64
+ expect(response.responseCode).toBe("00");
65
+ });
66
+ test("gift track add alias", async () => {
67
+ const response = await track.addAlias("2145550199").execute();
68
+ expect(response).toBeTruthy();
69
+ expect(response.responseCode).toBe("00");
70
+ });
71
+ test("gift track add value", async () => {
72
+ const response = await track.addValue(10).withCurrency("USD").execute();
73
+ expect(response).toBeTruthy();
74
+ expect(response.responseCode).toBe("00");
75
+ });
76
+ test("gift track balance inquiry", async () => {
77
+ const response = await track.balanceInquiry().execute();
78
+ expect(response).toBeTruthy();
79
+ expect(response.responseCode).toBe("00");
80
+ });
81
+ test("gift track sale", async () => {
82
+ const response = await track.charge(10).withCurrency("USD").execute();
83
+ expect(response).toBeTruthy();
84
+ expect(response.responseCode).toBe("00");
85
+ });
86
+ test("gift track deactivate", async () => {
87
+ const response = await track.deactivate().execute();
88
+ expect(response).toBeTruthy();
89
+ expect(response.responseCode).toBe("00");
90
+ });
91
+ test("gift track remove alias", async () => {
92
+ const response = await track.removeAlias("2145550199").execute();
93
+ expect(response).toBeTruthy();
94
+ expect(response.responseCode).toBe("00");
95
+ });
96
+ test.skip("gift track replace", async () => {
97
+ const response = await track.replaceWith(track).execute();
98
+ expect(response).toBeTruthy();
99
+ expect(response.responseCode).toBe("00");
100
+ });
101
+ test("gift track reverse", async () => {
102
+ const response = await track.reverse(10).execute();
103
+ expect(response).toBeTruthy();
104
+ expect(response.responseCode).toBe("00");
105
+ });
106
+ test("gift track rewards", async () => {
107
+ const response = await track.rewards(10).execute();
108
+ expect(response).toBeTruthy();
109
+ expect(response.responseCode).toBe("00");
110
+ });
111
+ test.skip("gift reverse with transaction id", async () => {
112
+ const response = await card.charge(10).withCurrency("USD").execute();
113
+ expect(response).toBeTruthy();
114
+ expect(response.responseCode).toBe("00");
115
+ const reverseResponse = await src_1.Transaction.fromId(response.transactionId, src_1.PaymentMethodType.Gift)
116
+ .reverse(10)
117
+ .execute();
118
+ expect(reverseResponse).toBeTruthy();
119
+ expect(reverseResponse.responseCode).toBe("00");
120
+ });
121
+ //# sourceMappingURL=Gift.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Gift.test.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/PorticoConnector/Gift.test.ts"],"names":[],"mappings":";;AAAA,yCAMyB;AAEzB,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AAEnC,MAAM,IAAI,GAAG,IAAI,cAAQ,EAAE,CAAC;AAC5B,IAAI,CAAC,MAAM,GAAG,qBAAqB,CAAC;AAEpC,MAAM,KAAK,GAAG,IAAI,cAAQ,EAAE,CAAC;AAC7B,KAAK,CAAC,SAAS;IACb,wEAAwE,CAAC;AAE3E,SAAS,CAAC,GAAG,EAAE;IACb,MAAM,CAAC,YAAY,GAAG,uDAAuD,CAAC;IAC9E,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE;IAC7B,MAAM,OAAO,GAAG,MAAM,cAAQ,CAAC,MAAM,CAAC,YAAY,CA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IAAI,CAAC,CAAC;IAEzC,MAAM,eAAe,GAAG,MAAM,iBAAW,CAAC,MAAM,CAC9C,QAAQ,CAAC,aAAa,EACtB,uBAAiB,CAAC,IAAI,CACvB;SACE,OAAO,CAAC,EAAE,CAAC;SACX,OAAO,EAAE,CAAC;IAEb,MAAM,CAAC,eAAe,CAAC,CAAC,UAAU,EAAE,CAAC;IACrC,MAAM,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC,CAAC,CAAC"}
@@ -1,19 +1,12 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const ava_1 = __importDefault(require("ava"));
7
- const src_1 = require("../../../../src/");
3
+ const src_1 = require("../../../../src");
8
4
  const config = new src_1.PorticoConfig();
9
- config.secretApiKey = "skapi_cert_MY5OAAAQrmIF_IZDKbr1ecycRr7n1Q1SxNkVgzDhwg";
10
- const runSerially = false;
11
- const test = runSerially ? ava_1.default.serial : ava_1.default;
12
- ava_1.default.before(() => {
5
+ beforeAll(() => {
6
+ config.secretApiKey = "skapi_cert_MXDMBQDwa3IAA4GV7NGMqQA_wFR3_TNeamFWoNUu_Q";
13
7
  src_1.ServicesContainer.configureService(config);
14
8
  });
15
- test("Should Update tokenized card expiry date", async (t) => {
16
- t.plan(1);
9
+ test("card tokenization then update expiry date", async () => {
17
10
  const card = new src_1.CreditCardData();
18
11
  card.number = "4263970000005262";
19
12
  card.expMonth = "10";
@@ -28,10 +21,9 @@ test("Should Update tokenized card expiry date", async (t) => {
28
21
  tokenizedCard.expMonth = (mdate.getMonth() + 2).toString().padStart(2, "0");
29
22
  tokenizedCard.expYear = (mdate.getFullYear() + 2).toString();
30
23
  const isTokenUpdated = await tokenizedCard.updateTokenExpiry();
31
- t.true(isTokenUpdated);
24
+ expect(isTokenUpdated).toBeTruthy();
32
25
  });
33
- test("Should delete tokenized card token", async (t) => {
34
- t.plan(1);
26
+ test("Should delete tokenized card token", async () => {
35
27
  const card = new src_1.CreditCardData();
36
28
  card.number = "4263970000005262";
37
29
  card.expMonth = "10";
@@ -43,6 +35,6 @@ test("Should delete tokenized card token", async (t) => {
43
35
  const tokenizedCard = new src_1.CreditCardData();
44
36
  tokenizedCard.token = tokenId;
45
37
  const isTokenDeleted = await tokenizedCard.deleteToken();
46
- t.true(isTokenDeleted);
38
+ expect(isTokenDeleted).toBe(true);
47
39
  });
48
- //# sourceMappingURL=PorticoManagementTokenTest.js.map
40
+ //# sourceMappingURL=PorticoManagementToken.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PorticoManagementToken.test.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/PorticoConnector/PorticoManagementToken.test.ts"],"names":[],"mappings":";;AAAA,yCAIyB;AAEzB,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AAEnC,SAAS,CAAC,GAAG,EAAE;IACb,MAAM,CAAC,YAAY,GAAG,uDAAuD,CAAC;IAC9E,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;IAC3D,MAAM,IAAI,GAAG,IAAI,oBAAc,EAAE,CAAC;IAClC,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC;IACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC;IACjB,IAAI,CAAC,cAAc,GAAG,UAAU,CAAC;IACjC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAC;IACjD,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC;IAE/B,MAAM,aAAa,GAAG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