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,90 @@
1
+ import { Address, AuthenticationRequestType, ChallengeRequestIndicator, MerchantDataCollection, MessageCategory, MessageVersion, MethodUrlCompletion, SdkInterface, SdkUiType, Secure3dVersion, StoredCredential, ThreeDSecure, TransactionModifier, TransactionType } from "../Entities";
2
+ import { SecureBuilder } from "./SecureBuilder";
3
+ import { MobileData, PaymentMethod, Transaction } from "../";
4
+ export declare class Secure3dBuilder extends SecureBuilder<Transaction | ThreeDSecure> {
5
+ private _transactionType;
6
+ applicationId: string;
7
+ authenticationRequestType: AuthenticationRequestType;
8
+ challengeRequestIndicator: ChallengeRequestIndicator;
9
+ customerEmail: string;
10
+ decoupledFlowRequest: boolean;
11
+ decoupledFlowTimeout: number;
12
+ decoupledNotificationUrl: string;
13
+ encodedData: string;
14
+ ephemeralPublicKey: string;
15
+ maximumTimeout: number;
16
+ merchantData: MerchantDataCollection;
17
+ messageCategory: MessageCategory;
18
+ merchantInitiatedRequestType: AuthenticationRequestType;
19
+ messageVersion: MessageVersion;
20
+ methodUrlCompletion: MethodUrlCompletion;
21
+ payerAuthenticationResponse: string;
22
+ sdkInterface: SdkInterface;
23
+ sdkTransactionId: string;
24
+ sdkUiTypes: SdkUiType[];
25
+ threeDSecure: ThreeDSecure;
26
+ transactionModifier: TransactionModifier;
27
+ whitelistStatus: string;
28
+ enableExemptionOptimization: boolean;
29
+ mobileData: MobileData;
30
+ storedCredential: StoredCredential;
31
+ constructor(_transactionType: TransactionType);
32
+ get transactionType(): TransactionType;
33
+ getApplicationId(): string;
34
+ getAuthenticationRequestType(): AuthenticationRequestType;
35
+ getBillingAddress(): Address;
36
+ getChallengeRequestIndicator(): ChallengeRequestIndicator;
37
+ getCustomerEmail(): string;
38
+ getEncodedData(): string;
39
+ getEphemeralPublicKey(): string;
40
+ getMaximumTimeout(): number;
41
+ getMerchantData(): MerchantDataCollection;
42
+ getMessageCategory(): MessageCategory;
43
+ getMerchantInitiatedRequestType(): AuthenticationRequestType;
44
+ getMessageVersion(): MessageVersion;
45
+ getMethodUrlCompletion(): MethodUrlCompletion;
46
+ getPayerAuthenticationResponse(): string;
47
+ getSdkInterface(): SdkInterface;
48
+ getSdkTransactionId(): string;
49
+ getSdkUiTypes(): SdkUiType[];
50
+ getServerTransactionId(): string | null;
51
+ getThreeDSecure(): ThreeDSecure;
52
+ getTransactionType(): TransactionType;
53
+ getVersion(): Secure3dVersion | null;
54
+ getDecoupledFlowRequest(): boolean;
55
+ getDecoupledFlowTimeout(): number;
56
+ getDecoupledNotificationUrl(): string;
57
+ getWhitelistStatus(): string;
58
+ hasMobileFields(): boolean;
59
+ hasPriorAuthenticationData(): boolean;
60
+ hasRecurringAuthData(): boolean;
61
+ hasPayerLoginData(): boolean;
62
+ withApplicationId(applicationId: string): this;
63
+ withAuthenticationRequestType(value: AuthenticationRequestType): this;
64
+ withChallengeRequestIndicator(challengeRequestIndicator: ChallengeRequestIndicator): this;
65
+ withCustomerEmail(value: string): this;
66
+ withDecoupledFlowRequest(decoupledFlowRequest: boolean): this;
67
+ withDecoupledFlowTimeout(decoupledFlowTimeout: number): this;
68
+ withDecoupledNotificationUrl(decoupledNotificationUrl: string): this;
69
+ withEncodedData(encodedData: string): this;
70
+ withEphemeralPublicKey(ephemeralPublicKey: string): this;
71
+ withMaximumTimeout(maximumTimeout: number): this;
72
+ withMerchantData(value: MerchantDataCollection): this;
73
+ withMessageCategory(value: MessageCategory): this;
74
+ withMerchantInitiatedRequestType(merchantInitiatedRequestType: AuthenticationRequestType): this;
75
+ withMessageVersion(value: MessageVersion): this;
76
+ withMethodUrlCompletion(value: MethodUrlCompletion): this;
77
+ withPayerAuthenticationResponse(value: string): this;
78
+ withSdkInterface(sdkInterface: SdkInterface): this;
79
+ withSdkTransactionId(sdkTransactionId: string): this;
80
+ withSdkUiTypes(sdkUiTypes: SdkUiType[]): this;
81
+ withServerTransactionId(value: string): this;
82
+ withThreeDSecure(threeDSecure: ThreeDSecure): this;
83
+ withWhitelistStatus(whitelistStatus: boolean): this;
84
+ withStoredCredential(storedCredential: StoredCredential): this;
85
+ withEnableExemptionOptimization(value: boolean): this;
86
+ withMobileData(value: MobileData): this;
87
+ withPaymentMethod(value: PaymentMethod | null): this;
88
+ execute(configName?: string, version?: Secure3dVersion): Promise<ThreeDSecure>;
89
+ setupValidations(): void;
90
+ }
@@ -0,0 +1,423 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Secure3dBuilder = void 0;
4
+ const Entities_1 = require("../Entities");
5
+ const SecureBuilder_1 = require("./SecureBuilder");
6
+ const __1 = require("../");
7
+ class Secure3dBuilder extends SecureBuilder_1.SecureBuilder {
8
+ _transactionType;
9
+ applicationId;
10
+ authenticationRequestType;
11
+ challengeRequestIndicator;
12
+ customerEmail;
13
+ decoupledFlowRequest;
14
+ decoupledFlowTimeout;
15
+ decoupledNotificationUrl;
16
+ encodedData;
17
+ ephemeralPublicKey;
18
+ maximumTimeout;
19
+ merchantData;
20
+ messageCategory;
21
+ merchantInitiatedRequestType;
22
+ messageVersion;
23
+ methodUrlCompletion;
24
+ payerAuthenticationResponse;
25
+ sdkInterface;
26
+ sdkTransactionId;
27
+ sdkUiTypes;
28
+ threeDSecure;
29
+ transactionModifier = Entities_1.TransactionModifier.None;
30
+ whitelistStatus;
31
+ enableExemptionOptimization;
32
+ mobileData;
33
+ storedCredential;
34
+ constructor(_transactionType) {
35
+ super();
36
+ this._transactionType = _transactionType;
37
+ this.authenticationSource = Entities_1.AuthenticationSource.Browser;
38
+ this.authenticationRequestType =
39
+ Entities_1.AuthenticationRequestType.PaymentTransaction;
40
+ this.messageCategory = Entities_1.MessageCategory.PaymentAuthentication;
41
+ this._transactionType = _transactionType;
42
+ }
43
+ get transactionType() {
44
+ return this._transactionType;
45
+ }
46
+ getApplicationId() {
47
+ return this.applicationId;
48
+ }
49
+ getAuthenticationRequestType() {
50
+ return this.authenticationRequestType;
51
+ }
52
+ getBillingAddress() {
53
+ return this.billingAddress;
54
+ }
55
+ getChallengeRequestIndicator() {
56
+ return this.challengeRequestIndicator;
57
+ }
58
+ getCustomerEmail() {
59
+ return this.customerEmail;
60
+ }
61
+ getEncodedData() {
62
+ return this.encodedData;
63
+ }
64
+ getEphemeralPublicKey() {
65
+ return this.ephemeralPublicKey;
66
+ }
67
+ getMaximumTimeout() {
68
+ return this.maximumTimeout;
69
+ }
70
+ getMerchantData() {
71
+ return this.merchantData;
72
+ }
73
+ getMessageCategory() {
74
+ return this.messageCategory;
75
+ }
76
+ getMerchantInitiatedRequestType() {
77
+ return this.merchantInitiatedRequestType;
78
+ }
79
+ getMessageVersion() {
80
+ return this.messageVersion;
81
+ }
82
+ getMethodUrlCompletion() {
83
+ return this.methodUrlCompletion;
84
+ }
85
+ getPayerAuthenticationResponse() {
86
+ return this.payerAuthenticationResponse;
87
+ }
88
+ getSdkInterface() {
89
+ return this.sdkInterface;
90
+ }
91
+ getSdkTransactionId() {
92
+ return this.sdkTransactionId;
93
+ }
94
+ getSdkUiTypes() {
95
+ return this.sdkUiTypes;
96
+ }
97
+ getServerTransactionId() {
98
+ return this.threeDSecure?.serverTransactionId || null;
99
+ }
100
+ getThreeDSecure() {
101
+ return this.threeDSecure;
102
+ }
103
+ getTransactionType() {
104
+ return this._transactionType;
105
+ }
106
+ getVersion() {
107
+ return this.threeDSecure?.getVersion() || null;
108
+ }
109
+ getDecoupledFlowRequest() {
110
+ return this.decoupledFlowRequest;
111
+ }
112
+ getDecoupledFlowTimeout() {
113
+ return this.decoupledFlowTimeout;
114
+ }
115
+ getDecoupledNotificationUrl() {
116
+ return this.decoupledNotificationUrl;
117
+ }
118
+ getWhitelistStatus() {
119
+ return this.whitelistStatus;
120
+ }
121
+ hasMobileFields() {
122
+ return (this.applicationId !== "" ||
123
+ this.ephemeralPublicKey !== "" ||
124
+ this.maximumTimeout !== 0 ||
125
+ this.sdkTransactionId !== "" ||
126
+ this.encodedData !== "" ||
127
+ this.sdkInterface !== null ||
128
+ this.sdkUiTypes !== null);
129
+ }
130
+ hasPriorAuthenticationData() {
131
+ return (this.getPriorAuthenticationMethod() !== null ||
132
+ this.getPriorAuthenticationTransactionId() !== "" ||
133
+ this.getPriorAuthenticationTimestamp() !== null ||
134
+ this.getPriorAuthenticationData() !== "");
135
+ }
136
+ hasRecurringAuthData() {
137
+ return (this.getMaxNumberOfInstallments() !== null ||
138
+ this.getRecurringAuthorizationFrequency() !== null ||
139
+ this.getRecurringAuthorizationExpiryDate() !== null);
140
+ }
141
+ hasPayerLoginData() {
142
+ return (this.getCustomerAuthenticationData() !== "" ||
143
+ this.getCustomerAuthenticationTimestamp() !== null ||
144
+ this.getCustomerAuthenticationMethod() !== null);
145
+ }
146
+ withApplicationId(applicationId) {
147
+ this.applicationId = applicationId;
148
+ return this;
149
+ }
150
+ withAuthenticationRequestType(value) {
151
+ this.authenticationRequestType = value;
152
+ return this;
153
+ }
154
+ withChallengeRequestIndicator(challengeRequestIndicator) {
155
+ this.challengeRequestIndicator = challengeRequestIndicator;
156
+ return this;
157
+ }
158
+ withCustomerEmail(value) {
159
+ this.customerEmail = value;
160
+ return this;
161
+ }
162
+ withDecoupledFlowRequest(decoupledFlowRequest) {
163
+ this.decoupledFlowRequest = decoupledFlowRequest;
164
+ return this;
165
+ }
166
+ withDecoupledFlowTimeout(decoupledFlowTimeout) {
167
+ this.decoupledFlowTimeout = decoupledFlowTimeout;
168
+ return this;
169
+ }
170
+ withDecoupledNotificationUrl(decoupledNotificationUrl) {
171
+ this.decoupledNotificationUrl = decoupledNotificationUrl;
172
+ return this;
173
+ }
174
+ withEncodedData(encodedData) {
175
+ this.encodedData = encodedData;
176
+ return this;
177
+ }
178
+ withEphemeralPublicKey(ephemeralPublicKey) {
179
+ this.ephemeralPublicKey = ephemeralPublicKey;
180
+ return this;
181
+ }
182
+ withMaximumTimeout(maximumTimeout) {
183
+ this.maximumTimeout = maximumTimeout;
184
+ return this;
185
+ }
186
+ withMerchantData(value) {
187
+ this.merchantData = value;
188
+ if (this.merchantData !== null) {
189
+ if (this.threeDSecure === null) {
190
+ this.threeDSecure = new Entities_1.ThreeDSecure();
191
+ }
192
+ this.threeDSecure.setMerchantData(value);
193
+ }
194
+ return this;
195
+ }
196
+ withMessageCategory(value) {
197
+ this.messageCategory = value;
198
+ return this;
199
+ }
200
+ withMerchantInitiatedRequestType(merchantInitiatedRequestType) {
201
+ this.merchantInitiatedRequestType = merchantInitiatedRequestType;
202
+ return this;
203
+ }
204
+ withMessageVersion(value) {
205
+ this.messageVersion = value;
206
+ return this;
207
+ }
208
+ withMethodUrlCompletion(value) {
209
+ this.methodUrlCompletion = value;
210
+ return this;
211
+ }
212
+ withPayerAuthenticationResponse(value) {
213
+ this.payerAuthenticationResponse = value;
214
+ return this;
215
+ }
216
+ withSdkInterface(sdkInterface) {
217
+ this.sdkInterface = sdkInterface;
218
+ return this;
219
+ }
220
+ withSdkTransactionId(sdkTransactionId) {
221
+ this.sdkTransactionId = sdkTransactionId;
222
+ return this;
223
+ }
224
+ withSdkUiTypes(sdkUiTypes) {
225
+ this.sdkUiTypes = sdkUiTypes;
226
+ return this;
227
+ }
228
+ withServerTransactionId(value) {
229
+ if (!this.threeDSecure) {
230
+ this.threeDSecure = new Entities_1.ThreeDSecure();
231
+ }
232
+ this.threeDSecure.serverTransactionId = value;
233
+ return this;
234
+ }
235
+ withThreeDSecure(threeDSecure) {
236
+ this.threeDSecure = threeDSecure;
237
+ return this;
238
+ }
239
+ withWhitelistStatus(whitelistStatus) {
240
+ this.whitelistStatus = whitelistStatus == true ? "TRUE" : "FALSE";
241
+ return this;
242
+ }
243
+ withStoredCredential(storedCredential) {
244
+ this.storedCredential = storedCredential;
245
+ return this;
246
+ }
247
+ withEnableExemptionOptimization(value) {
248
+ this.enableExemptionOptimization = value;
249
+ return this;
250
+ }
251
+ withMobileData(value) {
252
+ this.mobileData = value;
253
+ return this;
254
+ }
255
+ withPaymentMethod(value) {
256
+ this.paymentMethod = value;
257
+ if (this.paymentMethod?.isSecure3d) {
258
+ const secureEcom = this.paymentMethod.threeDSecure;
259
+ if (secureEcom !== null) {
260
+ this.threeDSecure = secureEcom;
261
+ }
262
+ }
263
+ return this;
264
+ }
265
+ async execute(configName = "default", version = Entities_1.Secure3dVersion.ANY) {
266
+ // TODO: Implement validations
267
+ // parent::execute();
268
+ super.execute();
269
+ // Setup return object
270
+ let rvalue = this.threeDSecure;
271
+ if (!rvalue) {
272
+ rvalue = new Entities_1.ThreeDSecure();
273
+ rvalue.setVersion(version);
274
+ }
275
+ // Working version
276
+ if (rvalue.getVersion()) {
277
+ version = rvalue.getVersion();
278
+ }
279
+ // Get the provider
280
+ const provider = __1.ServicesContainer.instance().getSecure3d(configName, version);
281
+ if (version === Entities_1.Secure3dVersion.ONE &&
282
+ (provider instanceof __1.GpApiConnector ||
283
+ provider instanceof __1.GpEcomConnector)) {
284
+ throw new Entities_1.BuilderError(`3D Secure ${version} is no longer supported!`);
285
+ }
286
+ if (provider) {
287
+ let canDowngrade = false;
288
+ if (provider.getVersion() === Entities_1.Secure3dVersion.TWO &&
289
+ version === Entities_1.Secure3dVersion.ANY &&
290
+ !(provider instanceof __1.GpEcomConnector ||
291
+ provider instanceof __1.GpApiConnector)) {
292
+ try {
293
+ const oneProvider = __1.ServicesContainer.instance().getSecure3d(configName, Entities_1.Secure3dVersion.ONE);
294
+ canDowngrade = !!oneProvider;
295
+ }
296
+ catch (exc) {
297
+ // NOT CONFIGURED
298
+ }
299
+ }
300
+ // Process the request, capture any exceptions which might have been thrown
301
+ let response = null;
302
+ try {
303
+ response = await provider.processSecure3d(this);
304
+ if (!response && canDowngrade) {
305
+ return await this.execute(configName, Entities_1.Secure3dVersion.ONE);
306
+ }
307
+ }
308
+ catch (exc) {
309
+ // Check for not enrolled
310
+ if (exc.responseCode !== null) {
311
+ if (exc.responseCode === "110" &&
312
+ provider.getVersion() === Entities_1.Secure3dVersion.ONE) {
313
+ return rvalue;
314
+ }
315
+ if (provider instanceof __1.GpApiConnector) {
316
+ throw exc;
317
+ }
318
+ }
319
+ else if (canDowngrade &&
320
+ this._transactionType === Entities_1.TransactionType.VerifyEnrolled) {
321
+ return await this.execute(configName, Entities_1.Secure3dVersion.ONE);
322
+ }
323
+ else {
324
+ // Throw exception
325
+ throw exc;
326
+ }
327
+ }
328
+ // Check the response
329
+ if (response) {
330
+ switch (this._transactionType) {
331
+ case Entities_1.TransactionType.VerifyEnrolled:
332
+ if (response.threeDSecure) {
333
+ rvalue = response.threeDSecure;
334
+ if (["True", "Y", true].includes(rvalue.enrolled)) {
335
+ rvalue.setAmount(this.getAmount());
336
+ rvalue.setCurrency(this.getCurrency());
337
+ rvalue.setOrderId(response.orderId);
338
+ rvalue.setVersion(provider.getVersion());
339
+ }
340
+ else if (canDowngrade) {
341
+ return this.execute(configName, Entities_1.Secure3dVersion.ONE);
342
+ }
343
+ }
344
+ else if (canDowngrade) {
345
+ return this.execute(configName, Entities_1.Secure3dVersion.ONE);
346
+ }
347
+ break;
348
+ case Entities_1.TransactionType.InitiateAuthentication:
349
+ case Entities_1.TransactionType.VerifySignature:
350
+ rvalue.merge(response.threeDSecure);
351
+ break;
352
+ }
353
+ }
354
+ }
355
+ return rvalue;
356
+ }
357
+ setupValidations() {
358
+ this.validations
359
+ .of("transactionType", Entities_1.TransactionType.VerifyEnrolled)
360
+ .check("paymentMethod")
361
+ .isNotNull();
362
+ this.validations
363
+ .of("transactionType", Entities_1.TransactionType.VerifyEnrolled)
364
+ .when("paymentMethod")
365
+ .isNotNull()
366
+ .check("paymentMethod")
367
+ .isInstanceOf("Secure3d");
368
+ this.validations
369
+ .of("transactionType", Entities_1.TransactionType.VerifySignature)
370
+ .with("version", Entities_1.Secure3dVersion.ONE)
371
+ .check("threeDSecure")
372
+ .isNotNull()
373
+ .with("version", Entities_1.Secure3dVersion.ONE)
374
+ .check("payerAuthenticationResponse")
375
+ .isNotNull();
376
+ this.validations
377
+ .of("transactionType", Entities_1.TransactionType.VerifySignature)
378
+ .when("version")
379
+ .isEqualTo(Entities_1.Secure3dVersion.TWO)
380
+ .check("threeDSecure.serverTransactionId")
381
+ .isNotNull();
382
+ this.validations
383
+ .of("transactionType", Entities_1.TransactionType.InitiateAuthentication)
384
+ .check("threeDSecure")
385
+ .isNotNull();
386
+ this.validations
387
+ .of("transactionType", Entities_1.TransactionType.InitiateAuthentication)
388
+ .when("paymentMethod")
389
+ .isNotNull()
390
+ .check("paymentMethod")
391
+ .isInstanceOf("Secure3d");
392
+ this.validations
393
+ .of("transactionType", Entities_1.TransactionType.InitiateAuthentication)
394
+ .when("merchantInitiatedRequestType")
395
+ .isNotNull()
396
+ .check("merchantInitiatedRequestType")
397
+ .isNotEqualTo(Entities_1.AuthenticationRequestType.PaymentTransaction);
398
+ this.validations
399
+ .of("transactionType", Entities_1.TransactionType.InitiateAuthentication)
400
+ .when("accountAgeIndicator")
401
+ .isNotNull()
402
+ .check("accountAgeIndicator")
403
+ .isNotEqualTo(Entities_1.AgeIndicator.NoAccount);
404
+ this.validations
405
+ .of("transactionType", Entities_1.TransactionType.InitiateAuthentication)
406
+ .when("passwordChangeIndicator")
407
+ .isNotNull()
408
+ .check("passwordChangeIndicator")
409
+ .isNotEqualTo(Entities_1.AgeIndicator.NoAccount);
410
+ this.validations
411
+ .of("transactionType", Entities_1.TransactionType.InitiateAuthentication)
412
+ .when("shippingAddressUsageIndicator")
413
+ .isNotNull()
414
+ .check("shippingAddressUsageIndicator")
415
+ .isNotEqualTo(Entities_1.AgeIndicator.NoAccount)
416
+ .when("shippingAddressUsageIndicator")
417
+ .isNotNull()
418
+ .check("shippingAddressUsageIndicator")
419
+ .isNotEqualTo(Entities_1.AgeIndicator.NoAccount);
420
+ }
421
+ }
422
+ exports.Secure3dBuilder = Secure3dBuilder;
423
+ //# sourceMappingURL=Secure3dBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Secure3dBuilder.js","sourceRoot":"","sources":["../../../src/Builders/Secure3dBuilder.ts"],"names":[],"mappings":";;;AAAA,0CAkBqB;AACrB,mDAAgD;AAChD,2BAOa;AAEb,MAAa,eAAgB,SAAQ,6BAAyC;IA2BxD;IA1Bb,aAAa,CAAS;IACtB,yBAAyB,CAA4B;IACrD,yBAAyB,CAA4B;IACrD,aAAa,CAAS;IACtB,oBAAoB,CAAU;IAC9B,oBAAoB,CAAS;IAC7B,wBAAwB,CAAS;IACjC,WAAW,CAAS;IACpB,kBAAkB,CAAS;IAC3B,cAAc,CAAS;IACvB,YAAY,CAAyB;IACrC,eAAe,CAAkB;IACjC,4BAA4B,CAA4B;IACxD,cAAc,CAAiB;IAC/B,mBAAmB,CAAsB;IACzC,2BAA2B,CAAS;IACpC,YAAY,CAA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