globalpayments-api 3.5.3 → 3.6.2-fix

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 (275) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +1 -0
  3. package/lib/src/Builders/BaseBuilder/ValidationClause.js +25 -1
  4. package/lib/src/Builders/BaseBuilder/ValidationClause.js.map +1 -1
  5. package/lib/src/Builders/RequestBuilder/GpApi/GpApiSecureRequestBuilder.d.ts +20 -0
  6. package/lib/src/Builders/RequestBuilder/GpApi/GpApiSecureRequestBuilder.js +413 -0
  7. package/lib/src/Builders/RequestBuilder/GpApi/GpApiSecureRequestBuilder.js.map +1 -0
  8. package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +2 -2
  9. package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +2 -0
  10. package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +1 -1
  11. package/lib/src/Builders/Secure3dBuilder.d.ts +90 -0
  12. package/lib/src/Builders/Secure3dBuilder.js +423 -0
  13. package/lib/src/Builders/Secure3dBuilder.js.map +1 -0
  14. package/lib/src/Builders/SecureBuilder.d.ts +446 -0
  15. package/lib/src/Builders/SecureBuilder.js +729 -0
  16. package/lib/src/Builders/SecureBuilder.js.map +1 -0
  17. package/lib/src/Builders/index.d.ts +2 -0
  18. package/lib/src/Builders/index.js +2 -0
  19. package/lib/src/Builders/index.js.map +1 -1
  20. package/lib/src/ConfiguredServices.d.ts +5 -1
  21. package/lib/src/ConfiguredServices.js +20 -0
  22. package/lib/src/ConfiguredServices.js.map +1 -1
  23. package/lib/src/Entities/BrowserData.d.ts +13 -0
  24. package/lib/src/Entities/BrowserData.js +18 -0
  25. package/lib/src/Entities/BrowserData.js.map +1 -0
  26. package/lib/src/Entities/Enums/IsoCountries.d.ts +9 -0
  27. package/lib/src/Entities/Enums/IsoCountries.js +1941 -0
  28. package/lib/src/Entities/Enums/IsoCountries.js.map +1 -0
  29. package/lib/src/Entities/Enums.d.ts +149 -0
  30. package/lib/src/Entities/Enums.js +173 -2
  31. package/lib/src/Entities/Enums.js.map +1 -1
  32. package/lib/src/Entities/IRequestBuilder.d.ts +3 -3
  33. package/lib/src/Entities/MerchantDataCollection.d.ts +16 -0
  34. package/lib/src/Entities/MerchantDataCollection.js +102 -0
  35. package/lib/src/Entities/MerchantDataCollection.js.map +1 -0
  36. package/lib/src/Entities/MerchantKVP.d.ts +11 -0
  37. package/lib/src/Entities/MerchantKVP.js +28 -0
  38. package/lib/src/Entities/MerchantKVP.js.map +1 -0
  39. package/lib/src/Entities/MessageExtension.d.ts +6 -0
  40. package/lib/src/Entities/MessageExtension.js +11 -0
  41. package/lib/src/Entities/MessageExtension.js.map +1 -0
  42. package/lib/src/Entities/MobileData.d.ts +11 -0
  43. package/lib/src/Entities/MobileData.js +15 -0
  44. package/lib/src/Entities/MobileData.js.map +1 -0
  45. package/lib/src/Entities/ThreeDSecure.d.ts +66 -0
  46. package/lib/src/Entities/ThreeDSecure.js +162 -0
  47. package/lib/src/Entities/ThreeDSecure.js.map +1 -0
  48. package/lib/src/Entities/Transaction.d.ts +2 -1
  49. package/lib/src/Entities/Transaction.js +1 -0
  50. package/lib/src/Entities/Transaction.js.map +1 -1
  51. package/lib/src/Entities/index.d.ts +7 -0
  52. package/lib/src/Entities/index.js +7 -0
  53. package/lib/src/Entities/index.js.map +1 -1
  54. package/lib/src/Gateways/GpApiConnector.d.ts +2 -1
  55. package/lib/src/Gateways/GpApiConnector.js +7 -0
  56. package/lib/src/Gateways/GpApiConnector.js.map +1 -1
  57. package/lib/src/Gateways/PayPlanConnector.d.ts +1 -1
  58. package/lib/src/Gateways/PorticoConnector.d.ts +5 -5
  59. package/lib/src/Gateways/PorticoConnector.js +25 -0
  60. package/lib/src/Gateways/PorticoConnector.js.map +1 -1
  61. package/lib/src/Mapping/EnumMapping.d.ts +3 -1
  62. package/lib/src/Mapping/EnumMapping.js +26 -0
  63. package/lib/src/Mapping/EnumMapping.js.map +1 -1
  64. package/lib/src/Mapping/GpApiMapping.d.ts +1 -0
  65. package/lib/src/Mapping/GpApiMapping.js +96 -0
  66. package/lib/src/Mapping/GpApiMapping.js.map +1 -1
  67. package/lib/src/Mapping/GpEcomMapping.d.ts +1 -1
  68. package/lib/src/PaymentMethods/Credit.d.ts +2 -2
  69. package/lib/src/PaymentMethods/Credit.js +1 -1
  70. package/lib/src/PaymentMethods/Credit.js.map +1 -1
  71. package/lib/src/PaymentMethods/Interfaces.d.ts +4 -0
  72. package/lib/src/PaymentMethods/PaymentMethod.d.ts +2 -0
  73. package/lib/src/PaymentMethods/PaymentMethod.js +6 -0
  74. package/lib/src/PaymentMethods/PaymentMethod.js.map +1 -1
  75. package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js +2 -0
  76. package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js.map +1 -1
  77. package/lib/src/Services/Secure3dService.d.ts +8 -0
  78. package/lib/src/Services/Secure3dService.js +21 -0
  79. package/lib/src/Services/Secure3dService.js.map +1 -0
  80. package/lib/src/Services/index.d.ts +1 -0
  81. package/lib/src/Services/index.js +1 -0
  82. package/lib/src/Services/index.js.map +1 -1
  83. package/lib/src/ServicesContainer.d.ts +2 -1
  84. package/lib/src/ServicesContainer.js +15 -0
  85. package/lib/src/ServicesContainer.js.map +1 -1
  86. package/lib/src/Utils/CountryUtils.d.ts +9 -0
  87. package/lib/src/Utils/CountryUtils.js +131 -0
  88. package/lib/src/Utils/CountryUtils.js.map +1 -0
  89. package/lib/src/Utils/StringUtils.d.ts +2 -0
  90. package/lib/src/Utils/StringUtils.js +15 -0
  91. package/lib/src/Utils/StringUtils.js.map +1 -1
  92. package/lib/src/Utils/index.d.ts +1 -0
  93. package/lib/src/Utils/index.js +1 -0
  94. package/lib/src/Utils/index.js.map +1 -1
  95. package/lib/test/Data/BaseGpApiTestConfig.d.ts +14 -0
  96. package/lib/test/Data/BaseGpApiTestConfig.js +50 -0
  97. package/lib/test/Data/BaseGpApiTestConfig.js.map +1 -0
  98. package/lib/test/Data/GpApi3DSTestCards.d.ts +17 -0
  99. package/lib/test/Data/GpApi3DSTestCards.js +22 -0
  100. package/lib/test/Data/GpApi3DSTestCards.js.map +1 -0
  101. package/lib/test/Data/TestCards.d.ts +24 -0
  102. package/lib/test/Data/TestCards.js +220 -0
  103. package/lib/test/Data/TestCards.js.map +1 -0
  104. package/lib/test/Data/TestChecks.d.ts +4 -0
  105. package/lib/test/Data/TestChecks.js +27 -0
  106. package/lib/test/Data/TestChecks.js.map +1 -0
  107. package/lib/test/Data/index.d.ts +4 -0
  108. package/lib/test/Data/index.js +21 -0
  109. package/lib/test/Data/index.js.map +1 -0
  110. package/lib/test/Integration/Gateways/AcsResponse.d.ts +12 -0
  111. package/lib/test/Integration/Gateways/AcsResponse.js +33 -0
  112. package/lib/test/Integration/Gateways/AcsResponse.js.map +1 -0
  113. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.d.ts +1 -0
  114. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js +1029 -0
  115. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js.map +1 -0
  116. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.d.ts +1 -0
  117. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js +649 -0
  118. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js.map +1 -0
  119. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +1 -0
  120. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +109 -0
  121. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +1 -0
  122. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +1 -0
  123. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +1023 -0
  124. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +1 -0
  125. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +1 -0
  126. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +439 -0
  127. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +1 -0
  128. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +1 -0
  129. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +143 -0
  130. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +1 -0
  131. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +1 -0
  132. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +434 -0
  133. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +1 -0
  134. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +1 -0
  135. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +217 -0
  136. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +1 -0
  137. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.d.ts +1 -0
  138. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +337 -0
  139. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +1 -0
  140. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +1 -0
  141. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +2446 -0
  142. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +1 -0
  143. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +1 -0
  144. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +506 -0
  145. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +1 -0
  146. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +1 -0
  147. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +1296 -0
  148. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +1 -0
  149. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +1 -0
  150. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +847 -0
  151. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +1 -0
  152. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
  153. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +215 -0
  154. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
  155. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +1 -0
  156. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +99 -0
  157. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +1 -0
  158. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +1 -0
  159. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +133 -0
  160. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +1 -0
  161. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +1 -0
  162. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +59 -0
  163. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +1 -0
  164. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +1 -0
  165. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +378 -0
  166. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +1 -0
  167. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +1 -0
  168. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +86 -0
  169. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +1 -0
  170. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +1 -0
  171. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +1723 -0
  172. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +1 -0
  173. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +1 -0
  174. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +86 -0
  175. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +1 -0
  176. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +1 -0
  177. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +1760 -0
  178. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +1 -0
  179. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +1 -0
  180. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +420 -0
  181. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +1 -0
  182. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +1 -0
  183. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +2221 -0
  184. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +1 -0
  185. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +1 -0
  186. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +392 -0
  187. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +1 -0
  188. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +1 -0
  189. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +88 -0
  190. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +1 -0
  191. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +1 -0
  192. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +72 -0
  193. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +1 -0
  194. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +1 -0
  195. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +111 -0
  196. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +1 -0
  197. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +1 -0
  198. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +147 -0
  199. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +1 -0
  200. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.d.ts +1 -0
  201. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.js +48 -0
  202. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.js.map +1 -0
  203. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +1 -0
  204. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +101 -0
  205. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +1 -0
  206. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +1 -0
  207. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +50 -0
  208. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +1 -0
  209. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +1 -0
  210. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +44 -0
  211. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +1 -0
  212. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +1 -0
  213. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +221 -0
  214. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +1 -0
  215. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +1 -0
  216. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +60 -0
  217. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +1 -0
  218. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +1 -0
  219. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +80 -0
  220. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +1 -0
  221. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +39 -0
  222. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +393 -0
  223. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +1 -0
  224. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +1 -0
  225. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +44 -0
  226. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +1 -0
  227. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +1 -0
  228. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +330 -0
  229. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +1 -0
  230. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +1 -0
  231. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +60 -0
  232. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +1 -0
  233. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +1 -0
  234. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +80 -0
  235. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +1 -0
  236. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +34 -0
  237. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +322 -0
  238. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +1 -0
  239. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +4 -0
  240. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +28 -0
  241. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +1 -0
  242. package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.d.ts +4 -0
  243. package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +10 -0
  244. package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +1 -0
  245. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +1 -0
  246. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +149 -0
  247. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +1 -0
  248. package/lib/test/Integration/Gateways/ThreeDSecureAsClient.d.ts +16 -0
  249. package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js +212 -0
  250. package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js.map +1 -0
  251. package/lib/test/Integration/Services/CheckServiceTest.d.ts +1 -0
  252. package/lib/test/Integration/Services/CheckServiceTest.js +45 -0
  253. package/lib/test/Integration/Services/CheckServiceTest.js.map +1 -0
  254. package/lib/test/Integration/Services/CreditServiceTest.d.ts +1 -0
  255. package/lib/test/Integration/Services/CreditServiceTest.js +174 -0
  256. package/lib/test/Integration/Services/CreditServiceTest.js.map +1 -0
  257. package/lib/test/Integration/Services/DebitServiceTest.d.ts +1 -0
  258. package/lib/test/Integration/Services/DebitServiceTest.js +81 -0
  259. package/lib/test/Integration/Services/DebitServiceTest.js.map +1 -0
  260. package/lib/test/Integration/Services/EBTServiceTest.d.ts +1 -0
  261. package/lib/test/Integration/Services/EBTServiceTest.js +64 -0
  262. package/lib/test/Integration/Services/EBTServiceTest.js.map +1 -0
  263. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +1 -0
  264. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +111 -0
  265. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +1 -0
  266. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +1 -0
  267. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +62 -0
  268. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +1 -0
  269. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
  270. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +34 -0
  271. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
  272. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +1 -0
  273. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +125 -0
  274. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +1 -0
  275. package/package.json +2 -1
@@ -0,0 +1,446 @@
1
+ import { PaymentMethod } from "src/PaymentMethods";
2
+ import { Address, AddressType, AgeIndicator, AuthenticationSource, CustomerAuthenticationMethod, DeliveryTimeFrame, OrderTransactionType, PhoneNumberType, PreOrderIndicator, PriorAuthenticationMethod, ReorderIndicator, ShippingMethod, TransactionType } from "../../src/Entities";
3
+ import { BaseBuilder } from "./BaseBuilder";
4
+ import { BrowserData } from "src/Entities/BrowserData";
5
+ export declare abstract class SecureBuilder<T> extends BaseBuilder<T> {
6
+ private amount;
7
+ private currency;
8
+ private orderCreateDate;
9
+ private orderTransactionType;
10
+ private orderId;
11
+ private referenceNumber;
12
+ private addressMatchIndicator;
13
+ private shippingAddress;
14
+ private shippingMethod;
15
+ private shippingNameMatchesCardHolderName;
16
+ private shippingAddressCreateDate;
17
+ shippingAddressUsageIndicator: AgeIndicator;
18
+ private giftCardAmount;
19
+ private giftCardCount;
20
+ private giftCardCurrency;
21
+ private deliveryEmail;
22
+ private deliveryTimeframe;
23
+ private preOrderAvailabilityDate;
24
+ private preOrderIndicator;
25
+ private reorderIndicator;
26
+ private customerAccountId;
27
+ private accountAgeIndicator;
28
+ private accountChangeDate;
29
+ private accountCreateDate;
30
+ private accountChangeIndicator;
31
+ private passwordChangeDate;
32
+ private passwordChangeIndicator;
33
+ private phoneList;
34
+ private homeCountryCode;
35
+ private homeNumber;
36
+ private workCountryCode;
37
+ private workNumber;
38
+ private mobileCountryCode;
39
+ private mobileNumber;
40
+ private paymentAccountCreateDate;
41
+ private paymentAgeIndicator;
42
+ private previousSuspiciousActivity;
43
+ private numberOfPurchasesInLastSixMonths;
44
+ private numberOfTransactionsInLast24Hours;
45
+ private numberOfAddCardAttemptsInLast24Hours;
46
+ private numberOfTransactionsInLastYear;
47
+ private browserData;
48
+ private priorAuthenticationData;
49
+ private priorAuthenticationMethod;
50
+ private priorAuthenticationTransactionId;
51
+ private priorAuthenticationTimestamp;
52
+ private maxNumberOfInstallments;
53
+ private recurringAuthorizationExpiryDate;
54
+ private recurringAuthorizationFrequency;
55
+ private customerAuthenticationData;
56
+ private customerAuthenticationMethod;
57
+ private customerAuthenticationTimestamp;
58
+ idempotencyKey: string;
59
+ protected authenticationSource: AuthenticationSource;
60
+ paymentMethod: PaymentMethod | null;
61
+ billingAddress: Address;
62
+ /**************************************GETTERS**************************************/
63
+ /** @returns string|number */
64
+ getAmount(): string | number;
65
+ /** @returns string */
66
+ getCurrency(): string;
67
+ /** @returns AuthenticationSource */
68
+ getAuthenticationSource(): AuthenticationSource;
69
+ /** @returns Date */
70
+ getOrderCreateDate(): string;
71
+ /** @returns string */
72
+ getOrderId(): string;
73
+ /** @returns OrderTransactionType */
74
+ getOrderTransactionType(): OrderTransactionType;
75
+ /** @returns string */
76
+ getReferenceNumber(): string;
77
+ /** @returns boolean */
78
+ isAddressMatchIndicator(): boolean;
79
+ /** @returns Address */
80
+ getShippingAddress(): Address;
81
+ /** @returns ShippingMethod */
82
+ getShippingMethod(): ShippingMethod;
83
+ /** @returns boolean */
84
+ getShippingNameMatchesCardHolderName(): boolean;
85
+ /** @returns Date */
86
+ getShippingAddressCreateDate(): Date;
87
+ /** @returns AgeIndicator */
88
+ getShippingAddressUsageIndicator(): AgeIndicator;
89
+ /** @returns number */
90
+ getGiftCardCount(): number;
91
+ /** @returns string */
92
+ getGiftCardCurrency(): string;
93
+ /** @returns number */
94
+ getGiftCardAmount(): number;
95
+ /** @returns string */
96
+ getDeliveryEmail(): string;
97
+ /** @returns DeliveryTimeFrame */
98
+ getDeliveryTimeframe(): DeliveryTimeFrame;
99
+ /** @returns Date */
100
+ getPreOrderAvailabilityDate(): Date;
101
+ /** @returns PreOrderIndicator */
102
+ getPreOrderIndicator(): PreOrderIndicator;
103
+ /** @returns ReorderIndicator */
104
+ getReorderIndicator(): ReorderIndicator;
105
+ /** @returns string */
106
+ getCustomerAccountId(): string;
107
+ /** @returns AgeIndicator */
108
+ getAccountAgeIndicator(): AgeIndicator;
109
+ /** @returns Date */
110
+ getAccountChangeDate(): Date;
111
+ /** @returns Date */
112
+ getAccountCreateDate(): Date;
113
+ /** @returns AgeIndicator */
114
+ getAccountChangeIndicator(): AgeIndicator;
115
+ /** @returns Date */
116
+ getPasswordChangeDate(): Date;
117
+ /** @returns AgeIndicator */
118
+ getPasswordChangeIndicator(): AgeIndicator;
119
+ /** @returns string */
120
+ getHomeCountryCode(): string;
121
+ /** @returns string */
122
+ getHomeNumber(): string;
123
+ /** @returns string */
124
+ getWorkCountryCode(): string;
125
+ /** @returns string */
126
+ getWorkNumber(): string;
127
+ /** @returns string */
128
+ getMobileCountryCode(): string;
129
+ /** @returns string */
130
+ getMobileNumber(): string;
131
+ /** @returns Date */
132
+ getPaymentAccountCreateDate(): Date;
133
+ /** @returns AgeIndicator */
134
+ getPaymentAgeIndicator(): AgeIndicator;
135
+ /** @returns boolean */
136
+ getPreviousSuspiciousActivity(): boolean;
137
+ /** @returns number */
138
+ getNumberOfPurchasesInLastSixMonths(): number;
139
+ /** @returns number */
140
+ getNumberOfTransactionsInLast24Hours(): number;
141
+ /** @returns number */
142
+ getNumberOfAddCardAttemptsInLast24Hours(): number;
143
+ /** @returns number */
144
+ getNumberOfTransactionsInLastYear(): number;
145
+ /** @returns BrowserData */
146
+ getBrowserData(): BrowserData;
147
+ /** @returns string */
148
+ getPriorAuthenticationData(): string;
149
+ /** @returns PriorAuthenticationMethod */
150
+ getPriorAuthenticationMethod(): PriorAuthenticationMethod;
151
+ /** @returns string */
152
+ getPriorAuthenticationTransactionId(): string;
153
+ /** @returns Date */
154
+ getPriorAuthenticationTimestamp(): Date;
155
+ /** @returns number */
156
+ getMaxNumberOfInstallments(): number;
157
+ /** @returns Date */
158
+ getRecurringAuthorizationExpiryDate(): Date;
159
+ /** @returns number */
160
+ getRecurringAuthorizationFrequency(): number;
161
+ /** @returns string */
162
+ getCustomerAuthenticationData(): string;
163
+ /** @returns CustomerAuthenticationMethod */
164
+ getCustomerAuthenticationMethod(): CustomerAuthenticationMethod;
165
+ /** @returns Date */
166
+ getCustomerAuthenticationTimestamp(): Date;
167
+ /************************************************SETTERS****************************/
168
+ /**
169
+ * @param {IPaymentMethod} value
170
+ * @returns {this}
171
+ */
172
+ abstract withPaymentMethod(value: PaymentMethod): this;
173
+ /**
174
+ * @param {TransactionType} transactionType
175
+ * @returns {this}
176
+ */
177
+ withTransactionType(transactionType: TransactionType): this;
178
+ /**
179
+ * @param {string | number} value
180
+ * @returns {this}
181
+ */
182
+ withAmount(value: string | number): this;
183
+ /**
184
+ * @param {string} value
185
+ * @returns {this}
186
+ */
187
+ withCurrency(value: string): this;
188
+ /**
189
+ * @param {AuthenticationSource} value
190
+ * @returns {this}
191
+ */
192
+ withAuthenticationSource(value: AuthenticationSource): this;
193
+ /**
194
+ * @param {string} value
195
+ * @returns {this}
196
+ */
197
+ withOrderCreateDate(value: string): this;
198
+ /**
199
+ * @param {string} referenceNumber
200
+ * @returns {this}
201
+ */
202
+ withReferenceNumber(referenceNumber: string): this;
203
+ /**
204
+ * @param {boolean} value
205
+ * @returns {this}
206
+ */
207
+ withAddressMatchIndicator(value: boolean): this;
208
+ /**
209
+ * @param {Address} address
210
+ * @param {string} type
211
+ * @returns {this}
212
+ */
213
+ withAddress(address: Address, type?: AddressType): this;
214
+ /**
215
+ * @param {number} giftCardAmount
216
+ * @returns {this}
217
+ */
218
+ withGiftCardAmount(giftCardAmount: number): this;
219
+ /**
220
+ * @param {number} giftCardCount
221
+ * @returns {this}
222
+ */
223
+ withGiftCardCount(giftCardCount: number): this;
224
+ /**
225
+ * @param {string} giftCardCurrency
226
+ * @returns {this}
227
+ */
228
+ withGiftCardCurrency(giftCardCurrency: string): this;
229
+ /**
230
+ * @param {string} deliveryEmail
231
+ * @returns {this}
232
+ */
233
+ withDeliveryEmail(deliveryEmail: string): this;
234
+ /**
235
+ * @param {DeliveryTimeFrame} deliveryTimeframe
236
+ * @returns {this}
237
+ */
238
+ withDeliveryTimeFrame(deliveryTimeframe: DeliveryTimeFrame): this;
239
+ /**
240
+ * @param {ShippingMethod} shippingMethod
241
+ * @returns {this}
242
+ */
243
+ withShippingMethod(shippingMethod: ShippingMethod): this;
244
+ /**
245
+ * @param {boolean} shippingNameMatchesCardHolderName
246
+ * @returns {this}
247
+ */
248
+ withShippingNameMatchesCardHolderName(shippingNameMatchesCardHolderName: boolean): this;
249
+ /**
250
+ * @param {Date} shippingAddressCreateDate
251
+ * @returns {this}
252
+ */
253
+ withShippingAddressCreateDate(shippingAddressCreateDate: Date): this;
254
+ /**
255
+ * @param {any} shippingAddressUsageIndicator
256
+ * @returns {this}
257
+ */
258
+ withShippingAddressUsageIndicator(shippingAddressUsageIndicator: any): this;
259
+ /**
260
+ * @param {any} preOrderAvailabilityDate
261
+ * @returns {this}
262
+ */
263
+ withPreOrderAvailabilityDate(preOrderAvailabilityDate: any): this;
264
+ /**
265
+ * @param {any} preOrderIndicator
266
+ * @returns {this}
267
+ */
268
+ withPreOrderIndicator(preOrderIndicator: any): this;
269
+ /**
270
+ * @param {ReorderIndicator} reorderIndicator
271
+ * @returns {this}
272
+ */
273
+ withReorderIndicator(reorderIndicator: ReorderIndicator): this;
274
+ /**
275
+ * @param {OrderTransactionType} orderTransactionType
276
+ * @returns {this}
277
+ */
278
+ withOrderTransactionType(orderTransactionType: OrderTransactionType): this;
279
+ /**
280
+ * @param {string} value
281
+ * @returns {this}
282
+ */
283
+ withOrderId(value: string): this;
284
+ /**
285
+ * @param {string} customerAccountId
286
+ * @returns {this}
287
+ */
288
+ withCustomerAccountId(customerAccountId: string): this;
289
+ /**
290
+ * @param {AgeIndicator} ageIndicator
291
+ * @returns {this}
292
+ */
293
+ withAccountAgeIndicator(ageIndicator: AgeIndicator): this;
294
+ /**
295
+ * @param {Date} accountChangeDate
296
+ * @returns {this}
297
+ */
298
+ withAccountChangeDate(accountChangeDate: Date): this;
299
+ /**
300
+ * @param {Date} accountCreateDate
301
+ * @returns {this}
302
+ */
303
+ withAccountCreateDate(accountCreateDate: Date): this;
304
+ /**
305
+ * @param {AgeIndicator} accountChangeIndicator
306
+ * @returns {this}
307
+ */
308
+ withAccountChangeIndicator(accountChangeIndicator: AgeIndicator): this;
309
+ /**
310
+ * @param {Date} passwordChangeDate
311
+ * @returns {this}
312
+ */
313
+ withPasswordChangeDate(passwordChangeDate: Date): this;
314
+ /**
315
+ * @param {AgeIndicator} passwordChangeIndicator
316
+ * @returns {this}
317
+ */
318
+ withPasswordChangeIndicator(passwordChangeIndicator: AgeIndicator): this;
319
+ /**
320
+ * @param {string} phoneCountryCode
321
+ * @param {string} number
322
+ * @param {PhoneNumberType} type
323
+ *
324
+ * @returns {this}
325
+ */
326
+ withPhoneNumber(phoneCountryCode: string, number: string, type: PhoneNumberType): this;
327
+ /**
328
+ * @deprecated Will be replaced with method withPhoneNumber($phoneCountryCode, $number, $type)
329
+ * @param {string} countryCode
330
+ * @param {string} number
331
+ *
332
+ * @returns {this}
333
+ */
334
+ withHomeNumber(countryCode: string, number: string): this;
335
+ /**
336
+ * @deprecated Will be replaced with method withPhoneNumber($phoneCountryCode, $number, $type)
337
+ *
338
+ * @param {string} countryCode
339
+ * @param {string} number
340
+ * @returns {this}
341
+ */
342
+ withWorkNumber(countryCode: string, number: string): this;
343
+ /**
344
+ * @deprecated Will be replaced with method withPhoneNumber($phoneCountryCode, $number, $type)
345
+ *
346
+ * @param {string} countryCode
347
+ * @param {string} number
348
+ * @returns {this}
349
+ */
350
+ withMobileNumber(countryCode: string, number: string): this;
351
+ /**
352
+ * @param {Date} paymentAccountCreateDate
353
+ * @returns {this}
354
+ */
355
+ withPaymentAccountCreateDate(paymentAccountCreateDate: Date): this;
356
+ /**
357
+ * @param {AgeIndicator} paymentAgeIndicator
358
+ * @returns {this}
359
+ */
360
+ withPaymentAccountAgeIndicator(paymentAgeIndicator: AgeIndicator): this;
361
+ /**
362
+ * @param {any} previousSuspiciousActivity
363
+ * @returns {this}
364
+ */
365
+ withPreviousSuspiciousActivity(previousSuspiciousActivity: any): this;
366
+ /**
367
+ * @param {string} numberOfPurchasesInLastSixMonths
368
+ * @returns {this}
369
+ */
370
+ withNumberOfPurchasesInLastSixMonths(numberOfPurchasesInLastSixMonths: number): this;
371
+ /**
372
+ * @param {number} numberOfTransactionsInLast24Hours
373
+ * @returns {this}
374
+ */
375
+ withNumberOfTransactionsInLast24Hours(numberOfTransactionsInLast24Hours: number): this;
376
+ /**
377
+ * @param {number} numberOfAddCardAttemptsInLast24Hours
378
+ * @returns {this}
379
+ */
380
+ withNumberOfAddCardAttemptsInLast24Hours(numberOfAddCardAttemptsInLast24Hours: number): this;
381
+ /**
382
+ * @param {number} numberOfTransactionsInLastYear
383
+ * @returns {this}
384
+ */
385
+ withNumberOfTransactionsInLastYear(numberOfTransactionsInLastYear: number): this;
386
+ /**
387
+ * @param {BrowserData} value
388
+ * @returns {this}
389
+ */
390
+ withBrowserData(value: BrowserData): this;
391
+ /**
392
+ * @param {string} priorAuthenticationData
393
+ * @returns {this}
394
+ */
395
+ withPriorAuthenticationData(priorAuthenticationData: string): this;
396
+ /**
397
+ * @param {PriorAuthenticationMethod} priorAuthenticationMethod
398
+ * @returns {this}
399
+ */
400
+ withPriorAuthenticationMethod(priorAuthenticationMethod: PriorAuthenticationMethod): this;
401
+ /**
402
+ * @param {string} priorAuthenticationTransactionId
403
+ * @returns {this}
404
+ */
405
+ withPriorAuthenticationTransactionId(priorAuthenticationTransactionId: string): this;
406
+ /**
407
+ * @param {Date} priorAuthenticationTimestamp
408
+ * @returns {this}
409
+ */
410
+ withPriorAuthenticationTimestamp(priorAuthenticationTimestamp: Date): this;
411
+ /**
412
+ * @param {number} maxNumberOfInstallments
413
+ * @returns {this}
414
+ */
415
+ withMaxNumberOfInstallments(maxNumberOfInstallments: number): this;
416
+ /**
417
+ * @param {Date} recurringAuthorizationExpiryDate
418
+ * @returns {this}
419
+ */
420
+ withRecurringAuthorizationExpiryDate(recurringAuthorizationExpiryDate: Date): this;
421
+ /**
422
+ * @param {number} recurringAuthorizationFrequency
423
+ * @returns {this}
424
+ */
425
+ withRecurringAuthorizationFrequency(recurringAuthorizationFrequency: number): this;
426
+ /**
427
+ * @param {string} customerAuthenticationData
428
+ * @returns {this}
429
+ */
430
+ withCustomerAuthenticationData(customerAuthenticationData: string): this;
431
+ /**
432
+ * @param {CustomerAuthenticationMethod} customerAuthenticationMethod
433
+ * @returns {this}
434
+ */
435
+ withCustomerAuthenticationMethod(customerAuthenticationMethod: CustomerAuthenticationMethod): this;
436
+ /**
437
+ * @param {Date} customerAuthenticationTimestamp
438
+ * @returns {this}
439
+ */
440
+ withCustomerAuthenticationTimestamp(customerAuthenticationTimestamp: Date): this;
441
+ /**
442
+ * @param {string} value
443
+ * @returns {SecureBuilder}
444
+ */
445
+ withIdempotencyKey(value: string): this;
446
+ }