globalpayments-api 3.4.0 → 3.5.1-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 (752) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/package.json +1 -4
  3. package/lib/src/Builders/AuthorizationBuilder.d.ts +0 -340
  4. package/lib/src/Builders/AuthorizationBuilder.js +0 -645
  5. package/lib/src/Builders/AuthorizationBuilder.js.map +0 -1
  6. package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +0 -16
  7. package/lib/src/Builders/BaseBuilder/ValidationClause.js +0 -92
  8. package/lib/src/Builders/BaseBuilder/ValidationClause.js.map +0 -1
  9. package/lib/src/Builders/BaseBuilder/ValidationTarget.d.ts +0 -16
  10. package/lib/src/Builders/BaseBuilder/ValidationTarget.js +0 -36
  11. package/lib/src/Builders/BaseBuilder/ValidationTarget.js.map +0 -1
  12. package/lib/src/Builders/BaseBuilder/Validations.d.ts +0 -11
  13. package/lib/src/Builders/BaseBuilder/Validations.js +0 -55
  14. package/lib/src/Builders/BaseBuilder/Validations.js.map +0 -1
  15. package/lib/src/Builders/BaseBuilder.d.ts +0 -11
  16. package/lib/src/Builders/BaseBuilder.js +0 -17
  17. package/lib/src/Builders/BaseBuilder.js.map +0 -1
  18. package/lib/src/Builders/ManagementBuilder.d.ts +0 -118
  19. package/lib/src/Builders/ManagementBuilder.js +0 -229
  20. package/lib/src/Builders/ManagementBuilder.js.map +0 -1
  21. package/lib/src/Builders/PayFacBuilder.d.ts +0 -97
  22. package/lib/src/Builders/PayFacBuilder.js +0 -233
  23. package/lib/src/Builders/PayFacBuilder.js.map +0 -1
  24. package/lib/src/Builders/RecurringBuilder.d.ts +0 -13
  25. package/lib/src/Builders/RecurringBuilder.js +0 -34
  26. package/lib/src/Builders/RecurringBuilder.js.map +0 -1
  27. package/lib/src/Builders/ReportBuilder.d.ts +0 -10
  28. package/lib/src/Builders/ReportBuilder.js +0 -27
  29. package/lib/src/Builders/ReportBuilder.js.map +0 -1
  30. package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.d.ts +0 -11
  31. package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.js +0 -23
  32. package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.js.map +0 -1
  33. package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.d.ts +0 -34
  34. package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js +0 -409
  35. package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js.map +0 -1
  36. package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.d.ts +0 -7
  37. package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js +0 -71
  38. package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js.map +0 -1
  39. package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.d.ts +0 -16
  40. package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.js +0 -34
  41. package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.js.map +0 -1
  42. package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.d.ts +0 -10
  43. package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js +0 -89
  44. package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js.map +0 -1
  45. package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.d.ts +0 -6
  46. package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js +0 -49
  47. package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js.map +0 -1
  48. package/lib/src/Builders/RequestBuilder/GpApi/index.d.ts +0 -4
  49. package/lib/src/Builders/RequestBuilder/GpApi/index.js +0 -21
  50. package/lib/src/Builders/RequestBuilder/GpApi/index.js.map +0 -1
  51. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.d.ts +0 -18
  52. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js +0 -125
  53. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js.map +0 -1
  54. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.d.ts +0 -11
  55. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.js +0 -83
  56. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.js.map +0 -1
  57. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.d.ts +0 -9
  58. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js +0 -66
  59. package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js.map +0 -1
  60. package/lib/src/Builders/RequestBuilder/GpEcom/index.d.ts +0 -3
  61. package/lib/src/Builders/RequestBuilder/GpEcom/index.js +0 -20
  62. package/lib/src/Builders/RequestBuilder/GpEcom/index.js.map +0 -1
  63. package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +0 -8
  64. package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +0 -39
  65. package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +0 -1
  66. package/lib/src/Builders/RequestBuilder/index.d.ts +0 -3
  67. package/lib/src/Builders/RequestBuilder/index.js +0 -20
  68. package/lib/src/Builders/RequestBuilder/index.js.map +0 -1
  69. package/lib/src/Builders/TransactionBuilder.d.ts +0 -12
  70. package/lib/src/Builders/TransactionBuilder.js +0 -43
  71. package/lib/src/Builders/TransactionBuilder.js.map +0 -1
  72. package/lib/src/Builders/TransactionReportBuilder.d.ts +0 -19
  73. package/lib/src/Builders/TransactionReportBuilder.js +0 -87
  74. package/lib/src/Builders/TransactionReportBuilder.js.map +0 -1
  75. package/lib/src/Builders/index.d.ts +0 -8
  76. package/lib/src/Builders/index.js +0 -25
  77. package/lib/src/Builders/index.js.map +0 -1
  78. package/lib/src/ConfiguredServices.d.ts +0 -24
  79. package/lib/src/ConfiguredServices.js +0 -33
  80. package/lib/src/ConfiguredServices.js.map +0 -1
  81. package/lib/src/Entities/Address.d.ts +0 -14
  82. package/lib/src/Entities/Address.js +0 -23
  83. package/lib/src/Entities/Address.js.map +0 -1
  84. package/lib/src/Entities/BatchSummary.d.ts +0 -6
  85. package/lib/src/Entities/BatchSummary.js +0 -11
  86. package/lib/src/Entities/BatchSummary.js.map +0 -1
  87. package/lib/src/Entities/Card.d.ts +0 -36
  88. package/lib/src/Entities/Card.js +0 -41
  89. package/lib/src/Entities/Card.js.map +0 -1
  90. package/lib/src/Entities/CardIssuerResponse.d.ts +0 -22
  91. package/lib/src/Entities/CardIssuerResponse.js +0 -27
  92. package/lib/src/Entities/CardIssuerResponse.js.map +0 -1
  93. package/lib/src/Entities/Customer.d.ts +0 -74
  94. package/lib/src/Entities/Customer.js +0 -94
  95. package/lib/src/Entities/Customer.js.map +0 -1
  96. package/lib/src/Entities/CustomerDocument.d.ts +0 -8
  97. package/lib/src/Entities/CustomerDocument.js +0 -16
  98. package/lib/src/Entities/CustomerDocument.js.map +0 -1
  99. package/lib/src/Entities/DocumentUploadData.d.ts +0 -13
  100. package/lib/src/Entities/DocumentUploadData.js +0 -81
  101. package/lib/src/Entities/DocumentUploadData.js.map +0 -1
  102. package/lib/src/Entities/EcommerceInfo.d.ts +0 -12
  103. package/lib/src/Entities/EcommerceInfo.js +0 -22
  104. package/lib/src/Entities/EcommerceInfo.js.map +0 -1
  105. package/lib/src/Entities/EncryptionData.d.ts +0 -6
  106. package/lib/src/Entities/EncryptionData.js +0 -11
  107. package/lib/src/Entities/EncryptionData.js.map +0 -1
  108. package/lib/src/Entities/Enums/AcquisitionType.d.ts +0 -10
  109. package/lib/src/Entities/Enums/AcquisitionType.js +0 -15
  110. package/lib/src/Entities/Enums/AcquisitionType.js.map +0 -1
  111. package/lib/src/Entities/Enums/CardTypeFilter.d.ts +0 -7
  112. package/lib/src/Entities/Enums/CardTypeFilter.js +0 -12
  113. package/lib/src/Entities/Enums/CardTypeFilter.js.map +0 -1
  114. package/lib/src/Entities/Enums.d.ts +0 -587
  115. package/lib/src/Entities/Enums.js +0 -769
  116. package/lib/src/Entities/Enums.js.map +0 -1
  117. package/lib/src/Entities/Errors.d.ts +0 -23
  118. package/lib/src/Entities/Errors.js +0 -72
  119. package/lib/src/Entities/Errors.js.map +0 -1
  120. package/lib/src/Entities/FraudRule.d.ts +0 -8
  121. package/lib/src/Entities/FraudRule.js +0 -17
  122. package/lib/src/Entities/FraudRule.js.map +0 -1
  123. package/lib/src/Entities/GpApi/AccessTokenInfo.d.ts +0 -16
  124. package/lib/src/Entities/GpApi/AccessTokenInfo.js +0 -21
  125. package/lib/src/Entities/GpApi/AccessTokenInfo.js.map +0 -1
  126. package/lib/src/Entities/GpApi/DTO/Card.d.ts +0 -16
  127. package/lib/src/Entities/GpApi/DTO/Card.js +0 -21
  128. package/lib/src/Entities/GpApi/DTO/Card.js.map +0 -1
  129. package/lib/src/Entities/GpApi/DTO/PaymentMethod.d.ts +0 -17
  130. package/lib/src/Entities/GpApi/DTO/PaymentMethod.js +0 -21
  131. package/lib/src/Entities/GpApi/DTO/PaymentMethod.js.map +0 -1
  132. package/lib/src/Entities/GpApi/DTO/index.d.ts +0 -2
  133. package/lib/src/Entities/GpApi/DTO/index.js +0 -19
  134. package/lib/src/Entities/GpApi/DTO/index.js.map +0 -1
  135. package/lib/src/Entities/GpApi/GpApiAccount.d.ts +0 -5
  136. package/lib/src/Entities/GpApi/GpApiAccount.js +0 -13
  137. package/lib/src/Entities/GpApi/GpApiAccount.js.map +0 -1
  138. package/lib/src/Entities/GpApi/GpApiRequest.d.ts +0 -21
  139. package/lib/src/Entities/GpApi/GpApiRequest.js +0 -26
  140. package/lib/src/Entities/GpApi/GpApiRequest.js.map +0 -1
  141. package/lib/src/Entities/GpApi/GpApiTokenResponse.d.ts +0 -52
  142. package/lib/src/Entities/GpApi/GpApiTokenResponse.js +0 -115
  143. package/lib/src/Entities/GpApi/GpApiTokenResponse.js.map +0 -1
  144. package/lib/src/Entities/GpApi/PageResult.d.ts +0 -8
  145. package/lib/src/Entities/GpApi/PageResult.js +0 -13
  146. package/lib/src/Entities/GpApi/PageResult.js.map +0 -1
  147. package/lib/src/Entities/GpApi/index.d.ts +0 -5
  148. package/lib/src/Entities/GpApi/index.js +0 -22
  149. package/lib/src/Entities/GpApi/index.js.map +0 -1
  150. package/lib/src/Entities/HostedPaymentData.d.ts +0 -10
  151. package/lib/src/Entities/HostedPaymentData.js +0 -17
  152. package/lib/src/Entities/HostedPaymentData.js.map +0 -1
  153. package/lib/src/Entities/IRequestBuilder.d.ts +0 -6
  154. package/lib/src/Entities/IRequestBuilder.js +0 -3
  155. package/lib/src/Entities/IRequestBuilder.js.map +0 -1
  156. package/lib/src/Entities/IRequestLogger.d.ts +0 -8
  157. package/lib/src/Entities/IRequestLogger.js +0 -3
  158. package/lib/src/Entities/IRequestLogger.js.map +0 -1
  159. package/lib/src/Entities/MaskedValueCollection.d.ts +0 -12
  160. package/lib/src/Entities/MaskedValueCollection.js +0 -53
  161. package/lib/src/Entities/MaskedValueCollection.js.map +0 -1
  162. package/lib/src/Entities/PayerDetails.d.ts +0 -8
  163. package/lib/src/Entities/PayerDetails.js +0 -12
  164. package/lib/src/Entities/PayerDetails.js.map +0 -1
  165. package/lib/src/Entities/PhoneNumber.d.ts +0 -6
  166. package/lib/src/Entities/PhoneNumber.js +0 -15
  167. package/lib/src/Entities/PhoneNumber.js.map +0 -1
  168. package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +0 -7
  169. package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +0 -12
  170. package/lib/src/Entities/ProFac/AccountBalanceResponseData.js.map +0 -1
  171. package/lib/src/Entities/ProFac/AccountPermissions.d.ts +0 -15
  172. package/lib/src/Entities/ProFac/AccountPermissions.js +0 -19
  173. package/lib/src/Entities/ProFac/AccountPermissions.js.map +0 -1
  174. package/lib/src/Entities/ProFac/BankAccountData.d.ts +0 -10
  175. package/lib/src/Entities/ProFac/BankAccountData.js +0 -42
  176. package/lib/src/Entities/ProFac/BankAccountData.js.map +0 -1
  177. package/lib/src/Entities/ProFac/BankAccountOwnershipData.d.ts +0 -8
  178. package/lib/src/Entities/ProFac/BankAccountOwnershipData.js +0 -15
  179. package/lib/src/Entities/ProFac/BankAccountOwnershipData.js.map +0 -1
  180. package/lib/src/Entities/ProFac/BeneficialOwnerData.d.ts +0 -6
  181. package/lib/src/Entities/ProFac/BeneficialOwnerData.js +0 -12
  182. package/lib/src/Entities/ProFac/BeneficialOwnerData.js.map +0 -1
  183. package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.d.ts +0 -5
  184. package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js +0 -10
  185. package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js.map +0 -1
  186. package/lib/src/Entities/ProFac/BusinessData.d.ts +0 -15
  187. package/lib/src/Entities/ProFac/BusinessData.js +0 -50
  188. package/lib/src/Entities/ProFac/BusinessData.js.map +0 -1
  189. package/lib/src/Entities/ProFac/DeviceAttributeInfo.d.ts +0 -4
  190. package/lib/src/Entities/ProFac/DeviceAttributeInfo.js +0 -17
  191. package/lib/src/Entities/ProFac/DeviceAttributeInfo.js.map +0 -1
  192. package/lib/src/Entities/ProFac/DeviceData.d.ts +0 -5
  193. package/lib/src/Entities/ProFac/DeviceData.js +0 -11
  194. package/lib/src/Entities/ProFac/DeviceData.js.map +0 -1
  195. package/lib/src/Entities/ProFac/DeviceInfo.d.ts +0 -6
  196. package/lib/src/Entities/ProFac/DeviceInfo.js +0 -19
  197. package/lib/src/Entities/ProFac/DeviceInfo.js.map +0 -1
  198. package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.d.ts +0 -7
  199. package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js +0 -15
  200. package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js.map +0 -1
  201. package/lib/src/Entities/ProFac/GrossBillingInformation.d.ts +0 -8
  202. package/lib/src/Entities/ProFac/GrossBillingInformation.js +0 -10
  203. package/lib/src/Entities/ProFac/GrossBillingInformation.js.map +0 -1
  204. package/lib/src/Entities/ProFac/OrderDevice.d.ts +0 -18
  205. package/lib/src/Entities/ProFac/OrderDevice.js +0 -23
  206. package/lib/src/Entities/ProFac/OrderDevice.js.map +0 -1
  207. package/lib/src/Entities/ProFac/OwnersData.d.ts +0 -12
  208. package/lib/src/Entities/ProFac/OwnersData.js +0 -43
  209. package/lib/src/Entities/ProFac/OwnersData.js.map +0 -1
  210. package/lib/src/Entities/ProFac/PayFacResponseData.d.ts +0 -55
  211. package/lib/src/Entities/ProFac/PayFacResponseData.js +0 -62
  212. package/lib/src/Entities/ProFac/PayFacResponseData.js.map +0 -1
  213. package/lib/src/Entities/ProFac/RenewAccountData.d.ts +0 -10
  214. package/lib/src/Entities/ProFac/RenewAccountData.js +0 -38
  215. package/lib/src/Entities/ProFac/RenewAccountData.js.map +0 -1
  216. package/lib/src/Entities/ProFac/SignificantOwnerData.d.ts +0 -8
  217. package/lib/src/Entities/ProFac/SignificantOwnerData.js +0 -27
  218. package/lib/src/Entities/ProFac/SignificantOwnerData.js.map +0 -1
  219. package/lib/src/Entities/ProFac/ThreatRiskData.d.ts +0 -5
  220. package/lib/src/Entities/ProFac/ThreatRiskData.js +0 -19
  221. package/lib/src/Entities/ProFac/ThreatRiskData.js.map +0 -1
  222. package/lib/src/Entities/ProFac/UserPersonalData.d.ts +0 -26
  223. package/lib/src/Entities/ProFac/UserPersonalData.js +0 -82
  224. package/lib/src/Entities/ProFac/UserPersonalData.js.map +0 -1
  225. package/lib/src/Entities/RecurringEntity.d.ts +0 -14
  226. package/lib/src/Entities/RecurringEntity.js +0 -92
  227. package/lib/src/Entities/RecurringEntity.js.map +0 -1
  228. package/lib/src/Entities/Reporting/SearchCriteriaBuilder.d.ts +0 -105
  229. package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js +0 -122
  230. package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js.map +0 -1
  231. package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.d.ts +0 -11
  232. package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.js +0 -16
  233. package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.js.map +0 -1
  234. package/lib/src/Entities/Reporting/index.d.ts +0 -2
  235. package/lib/src/Entities/Reporting/index.js +0 -19
  236. package/lib/src/Entities/Reporting/index.js.map +0 -1
  237. package/lib/src/Entities/Request.d.ts +0 -10
  238. package/lib/src/Entities/Request.js +0 -18
  239. package/lib/src/Entities/Request.js.map +0 -1
  240. package/lib/src/Entities/SSORequestData.d.ts +0 -5
  241. package/lib/src/Entities/SSORequestData.js +0 -19
  242. package/lib/src/Entities/SSORequestData.js.map +0 -1
  243. package/lib/src/Entities/Schedule.d.ts +0 -47
  244. package/lib/src/Entities/Schedule.js +0 -325
  245. package/lib/src/Entities/Schedule.js.map +0 -1
  246. package/lib/src/Entities/ServiceEndpoints.d.ts +0 -12
  247. package/lib/src/Entities/ServiceEndpoints.js +0 -17
  248. package/lib/src/Entities/ServiceEndpoints.js.map +0 -1
  249. package/lib/src/Entities/Transaction.d.ts +0 -84
  250. package/lib/src/Entities/Transaction.js +0 -133
  251. package/lib/src/Entities/Transaction.js.map +0 -1
  252. package/lib/src/Entities/TransactionStatus.d.ts +0 -13
  253. package/lib/src/Entities/TransactionStatus.js +0 -29
  254. package/lib/src/Entities/TransactionStatus.js.map +0 -1
  255. package/lib/src/Entities/TransactionSummary.d.ts +0 -61
  256. package/lib/src/Entities/TransactionSummary.js +0 -66
  257. package/lib/src/Entities/TransactionSummary.js.map +0 -1
  258. package/lib/src/Entities/UPA/ProcessIndicator.d.ts +0 -7
  259. package/lib/src/Entities/UPA/ProcessIndicator.js +0 -11
  260. package/lib/src/Entities/UPA/ProcessIndicator.js.map +0 -1
  261. package/lib/src/Entities/UPA/UpaParam.d.ts +0 -10
  262. package/lib/src/Entities/UPA/UpaParam.js +0 -14
  263. package/lib/src/Entities/UPA/UpaParam.js.map +0 -1
  264. package/lib/src/Entities/UPA/UpaTransactionData.d.ts +0 -8
  265. package/lib/src/Entities/UPA/UpaTransactionData.js +0 -12
  266. package/lib/src/Entities/UPA/UpaTransactionData.js.map +0 -1
  267. package/lib/src/Entities/UPA/index.d.ts +0 -3
  268. package/lib/src/Entities/UPA/index.js +0 -20
  269. package/lib/src/Entities/UPA/index.js.map +0 -1
  270. package/lib/src/Entities/index.d.ts +0 -27
  271. package/lib/src/Entities/index.js +0 -44
  272. package/lib/src/Entities/index.js.map +0 -1
  273. package/lib/src/Gateways/Gateway.d.ts +0 -16
  274. package/lib/src/Gateways/Gateway.js +0 -94
  275. package/lib/src/Gateways/Gateway.js.map +0 -1
  276. package/lib/src/Gateways/GatewayResponse.d.ts +0 -8
  277. package/lib/src/Gateways/GatewayResponse.js +0 -15
  278. package/lib/src/Gateways/GatewayResponse.js.map +0 -1
  279. package/lib/src/Gateways/GpApiConnector.d.ts +0 -42
  280. package/lib/src/Gateways/GpApiConnector.js +0 -232
  281. package/lib/src/Gateways/GpApiConnector.js.map +0 -1
  282. package/lib/src/Gateways/GpEcomConnector.d.ts +0 -36
  283. package/lib/src/Gateways/GpEcomConnector.js +0 -468
  284. package/lib/src/Gateways/GpEcomConnector.js.map +0 -1
  285. package/lib/src/Gateways/IPayFacProvider.d.ts +0 -5
  286. package/lib/src/Gateways/IPayFacProvider.js +0 -3
  287. package/lib/src/Gateways/IPayFacProvider.js.map +0 -1
  288. package/lib/src/Gateways/IPaymentGateway.d.ts +0 -8
  289. package/lib/src/Gateways/IPaymentGateway.js +0 -3
  290. package/lib/src/Gateways/IPaymentGateway.js.map +0 -1
  291. package/lib/src/Gateways/IRecurringService.d.ts +0 -6
  292. package/lib/src/Gateways/IRecurringService.js +0 -3
  293. package/lib/src/Gateways/IRecurringService.js.map +0 -1
  294. package/lib/src/Gateways/PayPlanConnector.d.ts +0 -42
  295. package/lib/src/Gateways/PayPlanConnector.js +0 -545
  296. package/lib/src/Gateways/PayPlanConnector.js.map +0 -1
  297. package/lib/src/Gateways/PorticoConnector.d.ts +0 -48
  298. package/lib/src/Gateways/PorticoConnector.js +0 -1013
  299. package/lib/src/Gateways/PorticoConnector.js.map +0 -1
  300. package/lib/src/Gateways/ProPayConnector.d.ts +0 -45
  301. package/lib/src/Gateways/ProPayConnector.js +0 -801
  302. package/lib/src/Gateways/ProPayConnector.js.map +0 -1
  303. package/lib/src/Gateways/RestGateway.d.ts +0 -9
  304. package/lib/src/Gateways/RestGateway.js +0 -77
  305. package/lib/src/Gateways/RestGateway.js.map +0 -1
  306. package/lib/src/Gateways/XmlGateway.d.ts +0 -6
  307. package/lib/src/Gateways/XmlGateway.js +0 -54
  308. package/lib/src/Gateways/XmlGateway.js.map +0 -1
  309. package/lib/src/Gateways/https-wrapper.d.ts +0 -3
  310. package/lib/src/Gateways/https-wrapper.js +0 -81
  311. package/lib/src/Gateways/https-wrapper.js.map +0 -1
  312. package/lib/src/Gateways/index.d.ts +0 -9
  313. package/lib/src/Gateways/index.js +0 -26
  314. package/lib/src/Gateways/index.js.map +0 -1
  315. package/lib/src/HostedPaymentConfig.d.ts +0 -12
  316. package/lib/src/HostedPaymentConfig.js +0 -16
  317. package/lib/src/HostedPaymentConfig.js.map +0 -1
  318. package/lib/src/Mapping/EnumMapping.d.ts +0 -8
  319. package/lib/src/Mapping/EnumMapping.js +0 -84
  320. package/lib/src/Mapping/EnumMapping.js.map +0 -1
  321. package/lib/src/Mapping/GpApiMapping.d.ts +0 -11
  322. package/lib/src/Mapping/GpApiMapping.js +0 -190
  323. package/lib/src/Mapping/GpApiMapping.js.map +0 -1
  324. package/lib/src/Mapping/GpEcomMapping.d.ts +0 -9
  325. package/lib/src/Mapping/GpEcomMapping.js +0 -85
  326. package/lib/src/Mapping/GpEcomMapping.js.map +0 -1
  327. package/lib/src/Mapping/index.d.ts +0 -3
  328. package/lib/src/Mapping/index.js +0 -20
  329. package/lib/src/Mapping/index.js.map +0 -1
  330. package/lib/src/PaymentMethods/AlternativePaymentMethod.d.ts +0 -22
  331. package/lib/src/PaymentMethods/AlternativePaymentMethod.js +0 -47
  332. package/lib/src/PaymentMethods/AlternativePaymentMethod.js.map +0 -1
  333. package/lib/src/PaymentMethods/Cash.d.ts +0 -8
  334. package/lib/src/PaymentMethods/Cash.js +0 -16
  335. package/lib/src/PaymentMethods/Cash.js.map +0 -1
  336. package/lib/src/PaymentMethods/Credit.d.ts +0 -109
  337. package/lib/src/PaymentMethods/Credit.js +0 -161
  338. package/lib/src/PaymentMethods/Credit.js.map +0 -1
  339. package/lib/src/PaymentMethods/CreditCardData.d.ts +0 -20
  340. package/lib/src/PaymentMethods/CreditCardData.js +0 -47
  341. package/lib/src/PaymentMethods/CreditCardData.js.map +0 -1
  342. package/lib/src/PaymentMethods/CreditTrackData.d.ts +0 -7
  343. package/lib/src/PaymentMethods/CreditTrackData.js +0 -10
  344. package/lib/src/PaymentMethods/CreditTrackData.js.map +0 -1
  345. package/lib/src/PaymentMethods/Debit.d.ts +0 -40
  346. package/lib/src/PaymentMethods/Debit.js +0 -52
  347. package/lib/src/PaymentMethods/Debit.js.map +0 -1
  348. package/lib/src/PaymentMethods/DebitTrackData.d.ts +0 -7
  349. package/lib/src/PaymentMethods/DebitTrackData.js +0 -10
  350. package/lib/src/PaymentMethods/DebitTrackData.js.map +0 -1
  351. package/lib/src/PaymentMethods/EBT.d.ts +0 -48
  352. package/lib/src/PaymentMethods/EBT.js +0 -68
  353. package/lib/src/PaymentMethods/EBT.js.map +0 -1
  354. package/lib/src/PaymentMethods/EBTCardData.d.ts +0 -16
  355. package/lib/src/PaymentMethods/EBTCardData.js +0 -25
  356. package/lib/src/PaymentMethods/EBTCardData.js.map +0 -1
  357. package/lib/src/PaymentMethods/EBTTrackData.d.ts +0 -8
  358. package/lib/src/PaymentMethods/EBTTrackData.js +0 -11
  359. package/lib/src/PaymentMethods/EBTTrackData.js.map +0 -1
  360. package/lib/src/PaymentMethods/ECheck.d.ts +0 -32
  361. package/lib/src/PaymentMethods/ECheck.js +0 -38
  362. package/lib/src/PaymentMethods/ECheck.js.map +0 -1
  363. package/lib/src/PaymentMethods/GiftCard.d.ts +0 -131
  364. package/lib/src/PaymentMethods/GiftCard.js +0 -189
  365. package/lib/src/PaymentMethods/GiftCard.js.map +0 -1
  366. package/lib/src/PaymentMethods/Interfaces.d.ts +0 -59
  367. package/lib/src/PaymentMethods/Interfaces.js +0 -3
  368. package/lib/src/PaymentMethods/Interfaces.js.map +0 -1
  369. package/lib/src/PaymentMethods/PaymentMethod.d.ts +0 -19
  370. package/lib/src/PaymentMethods/PaymentMethod.js +0 -57
  371. package/lib/src/PaymentMethods/PaymentMethod.js.map +0 -1
  372. package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +0 -25
  373. package/lib/src/PaymentMethods/RecurringPaymentMethod.js +0 -69
  374. package/lib/src/PaymentMethods/RecurringPaymentMethod.js.map +0 -1
  375. package/lib/src/PaymentMethods/TransactionReference.d.ts +0 -10
  376. package/lib/src/PaymentMethods/TransactionReference.js +0 -17
  377. package/lib/src/PaymentMethods/TransactionReference.js.map +0 -1
  378. package/lib/src/PaymentMethods/index.d.ts +0 -17
  379. package/lib/src/PaymentMethods/index.js +0 -34
  380. package/lib/src/PaymentMethods/index.js.map +0 -1
  381. package/lib/src/ServiceConfigs/AcceptorConfig.d.ts +0 -29
  382. package/lib/src/ServiceConfigs/AcceptorConfig.js +0 -43
  383. package/lib/src/ServiceConfigs/AcceptorConfig.js.map +0 -1
  384. package/lib/src/ServiceConfigs/Configuration.d.ts +0 -15
  385. package/lib/src/ServiceConfigs/Configuration.js +0 -20
  386. package/lib/src/ServiceConfigs/Configuration.js.map +0 -1
  387. package/lib/src/ServiceConfigs/Gateways/GatewayConfig.d.ts +0 -14
  388. package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js +0 -30
  389. package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js.map +0 -1
  390. package/lib/src/ServiceConfigs/Gateways/GpApiConfig.d.ts +0 -21
  391. package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js +0 -45
  392. package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js.map +0 -1
  393. package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.d.ts +0 -21
  394. package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js +0 -51
  395. package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js.map +0 -1
  396. package/lib/src/ServiceConfigs/Gateways/PorticoConfig.d.ts +0 -22
  397. package/lib/src/ServiceConfigs/Gateways/PorticoConfig.js +0 -117
  398. package/lib/src/ServiceConfigs/Gateways/PorticoConfig.js.map +0 -1
  399. package/lib/src/ServiceConfigs/Gateways/index.d.ts +0 -4
  400. package/lib/src/ServiceConfigs/Gateways/index.js +0 -21
  401. package/lib/src/ServiceConfigs/Gateways/index.js.map +0 -1
  402. package/lib/src/ServiceConfigs/ServicesConfigs.d.ts +0 -8
  403. package/lib/src/ServiceConfigs/ServicesConfigs.js +0 -15
  404. package/lib/src/ServiceConfigs/ServicesConfigs.js.map +0 -1
  405. package/lib/src/ServiceConfigs/index.d.ts +0 -4
  406. package/lib/src/ServiceConfigs/index.js +0 -21
  407. package/lib/src/ServiceConfigs/index.js.map +0 -1
  408. package/lib/src/Services/BatchService.d.ts +0 -4
  409. package/lib/src/Services/BatchService.js +0 -15
  410. package/lib/src/Services/BatchService.js.map +0 -1
  411. package/lib/src/Services/CheckService.d.ts +0 -7
  412. package/lib/src/Services/CheckService.js +0 -20
  413. package/lib/src/Services/CheckService.js.map +0 -1
  414. package/lib/src/Services/CreditService.d.ts +0 -13
  415. package/lib/src/Services/CreditService.js +0 -54
  416. package/lib/src/Services/CreditService.js.map +0 -1
  417. package/lib/src/Services/DebitService.d.ts +0 -8
  418. package/lib/src/Services/DebitService.js +0 -28
  419. package/lib/src/Services/DebitService.js.map +0 -1
  420. package/lib/src/Services/DeviceService.d.ts +0 -5
  421. package/lib/src/Services/DeviceService.js +0 -19
  422. package/lib/src/Services/DeviceService.js.map +0 -1
  423. package/lib/src/Services/EBTService.d.ts +0 -9
  424. package/lib/src/Services/EBTService.js +0 -31
  425. package/lib/src/Services/EBTService.js.map +0 -1
  426. package/lib/src/Services/GiftService.d.ts +0 -17
  427. package/lib/src/Services/GiftService.js +0 -54
  428. package/lib/src/Services/GiftService.js.map +0 -1
  429. package/lib/src/Services/GpApiServices.d.ts +0 -4
  430. package/lib/src/Services/GpApiServices.js +0 -44
  431. package/lib/src/Services/GpApiServices.js.map +0 -1
  432. package/lib/src/Services/HostedService.d.ts +0 -10
  433. package/lib/src/Services/HostedService.js +0 -59
  434. package/lib/src/Services/HostedService.js.map +0 -1
  435. package/lib/src/Services/PayFacService.d.ts +0 -26
  436. package/lib/src/Services/PayFacService.js +0 -76
  437. package/lib/src/Services/PayFacService.js.map +0 -1
  438. package/lib/src/Services/RecurringService.d.ts +0 -8
  439. package/lib/src/Services/RecurringService.js +0 -24
  440. package/lib/src/Services/RecurringService.js.map +0 -1
  441. package/lib/src/Services/ReportingService.d.ts +0 -8
  442. package/lib/src/Services/ReportingService.js +0 -24
  443. package/lib/src/Services/ReportingService.js.map +0 -1
  444. package/lib/src/Services/index.d.ts +0 -10
  445. package/lib/src/Services/index.js +0 -27
  446. package/lib/src/Services/index.js.map +0 -1
  447. package/lib/src/ServicesContainer.d.ts +0 -19
  448. package/lib/src/ServicesContainer.js +0 -64
  449. package/lib/src/ServicesContainer.js.map +0 -1
  450. package/lib/src/Terminals/Abstractions/IDeviceCommInterface.d.ts +0 -6
  451. package/lib/src/Terminals/Abstractions/IDeviceCommInterface.js +0 -3
  452. package/lib/src/Terminals/Abstractions/IDeviceCommInterface.js.map +0 -1
  453. package/lib/src/Terminals/Abstractions/IDeviceInterface.d.ts +0 -13
  454. package/lib/src/Terminals/Abstractions/IDeviceInterface.js +0 -3
  455. package/lib/src/Terminals/Abstractions/IDeviceInterface.js.map +0 -1
  456. package/lib/src/Terminals/Abstractions/IDeviceMessage.d.ts +0 -4
  457. package/lib/src/Terminals/Abstractions/IDeviceMessage.js +0 -3
  458. package/lib/src/Terminals/Abstractions/IDeviceMessage.js.map +0 -1
  459. package/lib/src/Terminals/Abstractions/IDeviceResponse.d.ts +0 -52
  460. package/lib/src/Terminals/Abstractions/IDeviceResponse.js +0 -3
  461. package/lib/src/Terminals/Abstractions/IDeviceResponse.js.map +0 -1
  462. package/lib/src/Terminals/Abstractions/IRequestIdProvider.d.ts +0 -3
  463. package/lib/src/Terminals/Abstractions/IRequestIdProvider.js +0 -3
  464. package/lib/src/Terminals/Abstractions/IRequestIdProvider.js.map +0 -1
  465. package/lib/src/Terminals/Abstractions/IRequestSubGroup.d.ts +0 -3
  466. package/lib/src/Terminals/Abstractions/IRequestSubGroup.js +0 -3
  467. package/lib/src/Terminals/Abstractions/IRequestSubGroup.js.map +0 -1
  468. package/lib/src/Terminals/Abstractions/ITerminalConfiguration.d.ts +0 -16
  469. package/lib/src/Terminals/Abstractions/ITerminalConfiguration.js +0 -3
  470. package/lib/src/Terminals/Abstractions/ITerminalConfiguration.js.map +0 -1
  471. package/lib/src/Terminals/Abstractions/index.d.ts +0 -7
  472. package/lib/src/Terminals/Abstractions/index.js +0 -24
  473. package/lib/src/Terminals/Abstractions/index.js.map +0 -1
  474. package/lib/src/Terminals/Builders/TerminalAuthBuilder.d.ts +0 -65
  475. package/lib/src/Terminals/Builders/TerminalAuthBuilder.js +0 -172
  476. package/lib/src/Terminals/Builders/TerminalAuthBuilder.js.map +0 -1
  477. package/lib/src/Terminals/Builders/TerminalBuilder.d.ts +0 -12
  478. package/lib/src/Terminals/Builders/TerminalBuilder.js +0 -32
  479. package/lib/src/Terminals/Builders/TerminalBuilder.js.map +0 -1
  480. package/lib/src/Terminals/Builders/TerminalManageBuilder.d.ts +0 -30
  481. package/lib/src/Terminals/Builders/TerminalManageBuilder.js +0 -95
  482. package/lib/src/Terminals/Builders/TerminalManageBuilder.js.map +0 -1
  483. package/lib/src/Terminals/Builders/index.d.ts +0 -2
  484. package/lib/src/Terminals/Builders/index.js +0 -19
  485. package/lib/src/Terminals/Builders/index.js.map +0 -1
  486. package/lib/src/Terminals/ConnectionConfig.d.ts +0 -20
  487. package/lib/src/Terminals/ConnectionConfig.js +0 -49
  488. package/lib/src/Terminals/ConnectionConfig.js.map +0 -1
  489. package/lib/src/Terminals/DeviceController.d.ts +0 -23
  490. package/lib/src/Terminals/DeviceController.js +0 -42
  491. package/lib/src/Terminals/DeviceController.js.map +0 -1
  492. package/lib/src/Terminals/DeviceInterface.d.ts +0 -21
  493. package/lib/src/Terminals/DeviceInterface.js +0 -50
  494. package/lib/src/Terminals/DeviceInterface.js.map +0 -1
  495. package/lib/src/Terminals/DeviceMessage.d.ts +0 -15
  496. package/lib/src/Terminals/DeviceMessage.js +0 -42
  497. package/lib/src/Terminals/DeviceMessage.js.map +0 -1
  498. package/lib/src/Terminals/DeviceResponse.d.ts +0 -10
  499. package/lib/src/Terminals/DeviceResponse.js +0 -16
  500. package/lib/src/Terminals/DeviceResponse.js.map +0 -1
  501. package/lib/src/Terminals/Enums/ControlCodes.d.ts +0 -5
  502. package/lib/src/Terminals/Enums/ControlCodes.js +0 -10
  503. package/lib/src/Terminals/Enums/ControlCodes.js.map +0 -1
  504. package/lib/src/Terminals/Enums/index.d.ts +0 -1
  505. package/lib/src/Terminals/Enums/index.js +0 -18
  506. package/lib/src/Terminals/Enums/index.js.map +0 -1
  507. package/lib/src/Terminals/Enums.d.ts +0 -12
  508. package/lib/src/Terminals/Enums.js +0 -18
  509. package/lib/src/Terminals/Enums.js.map +0 -1
  510. package/lib/src/Terminals/SummaryResponse.d.ts +0 -28
  511. package/lib/src/Terminals/SummaryResponse.js +0 -33
  512. package/lib/src/Terminals/SummaryResponse.js.map +0 -1
  513. package/lib/src/Terminals/TerminalResponse.d.ts +0 -42
  514. package/lib/src/Terminals/TerminalResponse.js +0 -49
  515. package/lib/src/Terminals/TerminalResponse.js.map +0 -1
  516. package/lib/src/Terminals/TerminalUtils.d.ts +0 -4
  517. package/lib/src/Terminals/TerminalUtils.js +0 -24
  518. package/lib/src/Terminals/TerminalUtils.js.map +0 -1
  519. package/lib/src/Terminals/UPA/Entities/UpaMessageId.d.ts +0 -20
  520. package/lib/src/Terminals/UPA/Entities/UpaMessageId.js +0 -25
  521. package/lib/src/Terminals/UPA/Entities/UpaMessageId.js.map +0 -1
  522. package/lib/src/Terminals/UPA/Entities/index.d.ts +0 -1
  523. package/lib/src/Terminals/UPA/Entities/index.js +0 -18
  524. package/lib/src/Terminals/UPA/Entities/index.js.map +0 -1
  525. package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.d.ts +0 -12
  526. package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.js +0 -76
  527. package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.js.map +0 -1
  528. package/lib/src/Terminals/UPA/Interfaces/index.d.ts +0 -1
  529. package/lib/src/Terminals/UPA/Interfaces/index.js +0 -18
  530. package/lib/src/Terminals/UPA/Interfaces/index.js.map +0 -1
  531. package/lib/src/Terminals/UPA/Reponses/TransactionResponse.d.ts +0 -53
  532. package/lib/src/Terminals/UPA/Reponses/TransactionResponse.js +0 -70
  533. package/lib/src/Terminals/UPA/Reponses/TransactionResponse.js.map +0 -1
  534. package/lib/src/Terminals/UPA/Reponses/index.d.ts +0 -1
  535. package/lib/src/Terminals/UPA/Reponses/index.js +0 -18
  536. package/lib/src/Terminals/UPA/Reponses/index.js.map +0 -1
  537. package/lib/src/Terminals/UPA/Request/BaseRequest.d.ts +0 -7
  538. package/lib/src/Terminals/UPA/Request/BaseRequest.js +0 -11
  539. package/lib/src/Terminals/UPA/Request/BaseRequest.js.map +0 -1
  540. package/lib/src/Terminals/UPA/Request/GroupRequest.d.ts +0 -5
  541. package/lib/src/Terminals/UPA/Request/GroupRequest.js +0 -9
  542. package/lib/src/Terminals/UPA/Request/GroupRequest.js.map +0 -1
  543. package/lib/src/Terminals/UPA/Request/RequestParams.d.ts +0 -9
  544. package/lib/src/Terminals/UPA/Request/RequestParams.js +0 -14
  545. package/lib/src/Terminals/UPA/Request/RequestParams.js.map +0 -1
  546. package/lib/src/Terminals/UPA/Request/RootRequest.d.ts +0 -5
  547. package/lib/src/Terminals/UPA/Request/RootRequest.js +0 -9
  548. package/lib/src/Terminals/UPA/Request/RootRequest.js.map +0 -1
  549. package/lib/src/Terminals/UPA/Request/TransactionRequest.d.ts +0 -10
  550. package/lib/src/Terminals/UPA/Request/TransactionRequest.js +0 -15
  551. package/lib/src/Terminals/UPA/Request/TransactionRequest.js.map +0 -1
  552. package/lib/src/Terminals/UPA/Request/index.d.ts +0 -5
  553. package/lib/src/Terminals/UPA/Request/index.js +0 -22
  554. package/lib/src/Terminals/UPA/Request/index.js.map +0 -1
  555. package/lib/src/Terminals/UPA/UpaController.d.ts +0 -16
  556. package/lib/src/Terminals/UPA/UpaController.js +0 -213
  557. package/lib/src/Terminals/UPA/UpaController.js.map +0 -1
  558. package/lib/src/Terminals/UPA/UpaInterface.d.ts +0 -10
  559. package/lib/src/Terminals/UPA/UpaInterface.js +0 -44
  560. package/lib/src/Terminals/UPA/UpaInterface.js.map +0 -1
  561. package/lib/src/Terminals/UPA/UpaMessageType.d.ts +0 -8
  562. package/lib/src/Terminals/UPA/UpaMessageType.js +0 -13
  563. package/lib/src/Terminals/UPA/UpaMessageType.js.map +0 -1
  564. package/lib/src/Terminals/UPA/index.d.ts +0 -7
  565. package/lib/src/Terminals/UPA/index.js +0 -24
  566. package/lib/src/Terminals/UPA/index.js.map +0 -1
  567. package/lib/src/Terminals/index.d.ts +0 -8
  568. package/lib/src/Terminals/index.js +0 -25
  569. package/lib/src/Terminals/index.js.map +0 -1
  570. package/lib/src/Utils/GenerationUtils.d.ts +0 -6
  571. package/lib/src/Utils/GenerationUtils.js +0 -79
  572. package/lib/src/Utils/GenerationUtils.js.map +0 -1
  573. package/lib/src/Utils/IRawRequestBuilder.d.ts +0 -3
  574. package/lib/src/Utils/IRawRequestBuilder.js +0 -3
  575. package/lib/src/Utils/IRawRequestBuilder.js.map +0 -1
  576. package/lib/src/Utils/InputValidation.d.ts +0 -12
  577. package/lib/src/Utils/InputValidation.js +0 -71
  578. package/lib/src/Utils/InputValidation.js.map +0 -1
  579. package/lib/src/Utils/Logging/Logger.d.ts +0 -32
  580. package/lib/src/Utils/Logging/Logger.js +0 -209
  581. package/lib/src/Utils/Logging/Logger.js.map +0 -1
  582. package/lib/src/Utils/Logging/ProtectSensitiveData.d.ts +0 -11
  583. package/lib/src/Utils/Logging/ProtectSensitiveData.js +0 -23
  584. package/lib/src/Utils/Logging/ProtectSensitiveData.js.map +0 -1
  585. package/lib/src/Utils/Logging/SampleRequestLogger.d.ts +0 -12
  586. package/lib/src/Utils/Logging/SampleRequestLogger.js +0 -38
  587. package/lib/src/Utils/Logging/SampleRequestLogger.js.map +0 -1
  588. package/lib/src/Utils/Logging/index.d.ts +0 -3
  589. package/lib/src/Utils/Logging/index.js +0 -20
  590. package/lib/src/Utils/Logging/index.js.map +0 -1
  591. package/lib/src/Utils/Sha1.d.ts +0 -6
  592. package/lib/src/Utils/Sha1.js +0 -231
  593. package/lib/src/Utils/Sha1.js.map +0 -1
  594. package/lib/src/Utils/StringUtils.d.ts +0 -15
  595. package/lib/src/Utils/StringUtils.js +0 -80
  596. package/lib/src/Utils/StringUtils.js.map +0 -1
  597. package/lib/src/Utils/index.d.ts +0 -4
  598. package/lib/src/Utils/index.js +0 -21
  599. package/lib/src/Utils/index.js.map +0 -1
  600. package/lib/src/index.d.ts +0 -13
  601. package/lib/src/index.js +0 -34
  602. package/lib/src/index.js.map +0 -1
  603. package/lib/test/Data/BaseGpApiTestConfig.d.ts +0 -14
  604. package/lib/test/Data/BaseGpApiTestConfig.js +0 -50
  605. package/lib/test/Data/BaseGpApiTestConfig.js.map +0 -1
  606. package/lib/test/Data/TestCards.d.ts +0 -24
  607. package/lib/test/Data/TestCards.js +0 -220
  608. package/lib/test/Data/TestCards.js.map +0 -1
  609. package/lib/test/Data/TestChecks.d.ts +0 -4
  610. package/lib/test/Data/TestChecks.js +0 -27
  611. package/lib/test/Data/TestChecks.js.map +0 -1
  612. package/lib/test/Data/index.d.ts +0 -2
  613. package/lib/test/Data/index.js +0 -19
  614. package/lib/test/Data/index.js.map +0 -1
  615. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +0 -1
  616. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +0 -109
  617. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +0 -1
  618. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +0 -1
  619. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +0 -360
  620. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +0 -1
  621. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +0 -1
  622. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +0 -217
  623. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +0 -1
  624. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +0 -1
  625. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +0 -2446
  626. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +0 -1
  627. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +0 -1
  628. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +0 -506
  629. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +0 -1
  630. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +0 -1
  631. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +0 -1296
  632. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +0 -1
  633. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +0 -1
  634. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +0 -847
  635. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +0 -1
  636. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
  637. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +0 -215
  638. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
  639. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +0 -1
  640. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +0 -99
  641. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +0 -1
  642. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +0 -1
  643. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +0 -133
  644. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +0 -1
  645. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
  646. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -59
  647. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +0 -1
  648. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
  649. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -378
  650. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +0 -1
  651. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
  652. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -86
  653. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +0 -1
  654. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
  655. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1723
  656. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +0 -1
  657. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
  658. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -86
  659. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +0 -1
  660. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
  661. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1760
  662. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +0 -1
  663. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
  664. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -420
  665. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +0 -1
  666. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
  667. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2221
  668. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +0 -1
  669. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
  670. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -392
  671. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +0 -1
  672. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
  673. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -82
  674. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +0 -1
  675. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
  676. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -72
  677. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +0 -1
  678. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
  679. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -111
  680. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +0 -1
  681. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
  682. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -147
  683. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +0 -1
  684. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
  685. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -101
  686. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +0 -1
  687. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
  688. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -50
  689. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +0 -1
  690. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +0 -1
  691. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +0 -44
  692. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +0 -1
  693. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +0 -1
  694. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +0 -221
  695. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +0 -1
  696. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +0 -1
  697. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +0 -60
  698. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +0 -1
  699. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +0 -1
  700. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +0 -80
  701. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +0 -1
  702. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +0 -39
  703. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +0 -393
  704. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +0 -1
  705. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +0 -1
  706. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +0 -44
  707. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +0 -1
  708. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +0 -1
  709. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +0 -330
  710. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +0 -1
  711. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +0 -1
  712. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +0 -60
  713. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +0 -1
  714. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +0 -1
  715. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +0 -80
  716. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +0 -1
  717. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +0 -34
  718. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +0 -322
  719. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +0 -1
  720. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +0 -4
  721. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +0 -28
  722. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +0 -1
  723. package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.d.ts +0 -4
  724. package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +0 -10
  725. package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +0 -1
  726. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +0 -1
  727. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +0 -149
  728. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +0 -1
  729. package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
  730. package/lib/test/Integration/Services/CheckServiceTest.js +0 -45
  731. package/lib/test/Integration/Services/CheckServiceTest.js.map +0 -1
  732. package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
  733. package/lib/test/Integration/Services/CreditServiceTest.js +0 -174
  734. package/lib/test/Integration/Services/CreditServiceTest.js.map +0 -1
  735. package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
  736. package/lib/test/Integration/Services/DebitServiceTest.js +0 -81
  737. package/lib/test/Integration/Services/DebitServiceTest.js.map +0 -1
  738. package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
  739. package/lib/test/Integration/Services/EBTServiceTest.js +0 -64
  740. package/lib/test/Integration/Services/EBTServiceTest.js.map +0 -1
  741. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
  742. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -111
  743. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +0 -1
  744. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
  745. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -62
  746. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +0 -1
  747. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
  748. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +0 -34
  749. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
  750. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
  751. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -125
  752. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +0 -1
@@ -1,190 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GpApiMapping = void 0;
4
- const src_1 = require("../../src");
5
- const Entities_1 = require("../../src/Entities");
6
- const DTO_1 = require("../../src/Entities/GpApi/DTO");
7
- class GpApiMapping {
8
- static mapResponseAPM(response) {
9
- response;
10
- }
11
- static mapResponse(response) {
12
- const transaction = new Entities_1.Transaction();
13
- if (!response) {
14
- return transaction;
15
- }
16
- transaction.responseCode = response.action.result_code;
17
- transaction.responseMessage = response.status;
18
- transaction.clientTransactionId = response.reference || null;
19
- transaction.timestamp = response.time_created || "";
20
- transaction.referenceNumber = response.reference || null;
21
- transaction.balanceAmount = src_1.StringUtils.toAmount(response.amount);
22
- if (response.status === Entities_1.TransactionStatus.PREAUTHORIZED &&
23
- response.amount) {
24
- transaction.authorizedAmount = src_1.StringUtils.toAmount(response.amount);
25
- }
26
- transaction.multiCapture =
27
- response.capture_mode && response.capture_mode === Entities_1.CaptureMode.MULTIPLE;
28
- transaction.fingerprint = response.fingerprint || null;
29
- transaction.fingerprintIndicator =
30
- response.fingerprint_presence_indicator || null;
31
- transaction.token = response.id.startsWith(DTO_1.PaymentMethod.PAYMENT_METHOD_TOKEN_PREFIX)
32
- ? response.id
33
- : null;
34
- transaction.tokenUsageMode = response.usage_mode || null;
35
- if (response.payment_method) {
36
- GpApiMapping.mapPaymentMethodTransactionDetails(transaction, response.payment_method);
37
- GpApiMapping.mapPaymentMethodTransactionDetails(transaction, response.payment_method);
38
- }
39
- if (response.card) {
40
- const cardDetails = new Entities_1.Card();
41
- cardDetails.cardNumber = response.card.number || null;
42
- cardDetails.brand = response.card.brand || null;
43
- cardDetails.cardExpMonth = response.card.expiry_month || null;
44
- cardDetails.cardExpYear = response.card.expiry_year || null;
45
- transaction.cardDetails = cardDetails;
46
- transaction.cardType = response.card.brand || "";
47
- transaction.cvnResponseCode = response.card.cvv || null;
48
- transaction.cardBrandTransactionId =
49
- response.card.brand_reference || null;
50
- }
51
- transaction.multiCapture =
52
- response.capture_mode && response.capture_mode === Entities_1.CaptureMode.MULTIPLE;
53
- return transaction;
54
- }
55
- static mapPaymentMethodTransactionDetails(transaction, paymentMethodResponse) {
56
- transaction.authorizationCode = paymentMethodResponse.result ?? null;
57
- if (paymentMethodResponse.id) {
58
- transaction.token = paymentMethodResponse.id;
59
- }
60
- transaction.fingerprint = paymentMethodResponse.fingerprint ?? null;
61
- transaction.fingerprintIndicator =
62
- paymentMethodResponse.fingerprint_presence_indicator ?? null;
63
- if (paymentMethodResponse.card) {
64
- const card = paymentMethodResponse.card;
65
- const cardDetails = new Entities_1.Card();
66
- cardDetails.maskedNumberLast4 = card.masked_number_last4 ?? null;
67
- cardDetails.brand = card.brand ?? null;
68
- transaction.cardDetails = cardDetails;
69
- transaction.cardLast4 = card.masked_number_last4 ?? null;
70
- transaction.cardType = card.brand ?? null;
71
- transaction.cvnResponseCode = card.cvv ?? null;
72
- transaction.cvnResponseMessage = card.cvv_result ?? null;
73
- transaction.cardBrandTransactionId = card.brand_reference ?? null;
74
- transaction.avsResponseCode = card.avs_postal_code_result ?? null;
75
- transaction.avsAddressResponse = card.avs_address_result ?? null;
76
- transaction.avsResponseMessage = card.avs_action ?? null;
77
- if (card.provider) {
78
- GpApiMapping.mapCardIssuerResponse(transaction, card.provider);
79
- }
80
- }
81
- if (paymentMethodResponse.apm &&
82
- paymentMethodResponse.apm.provider ===
83
- Entities_1.PaymentProvider.OPEN_BANKING.toLowerCase()) {
84
- }
85
- else if (paymentMethodResponse.bank_transfer) {
86
- const bankTransfer = paymentMethodResponse.bank_transfer;
87
- transaction.accountNumberLast4 =
88
- bankTransfer.masked_account_number_last4 ?? null;
89
- transaction.accountType = bankTransfer.account_type ?? null;
90
- transaction.paymentMethodType = Entities_1.PaymentMethodType.ACH;
91
- }
92
- else if (paymentMethodResponse.apm) {
93
- transaction.paymentMethodType = Entities_1.PaymentMethodType.APM;
94
- }
95
- if (paymentMethodResponse.shipping_address || paymentMethodResponse.payer) {
96
- const payerDetails = new Entities_1.PayerDetails();
97
- payerDetails.email = paymentMethodResponse.payer?.email ?? null;
98
- if (paymentMethodResponse.payer?.billing_address) {
99
- const billingAddress = paymentMethodResponse.payer.billing_address;
100
- payerDetails.firstName = billingAddress.first_name ?? null;
101
- payerDetails.lastName = billingAddress.last_name ?? null;
102
- payerDetails.billingAddress = GpApiMapping.mapAddressObject(billingAddress, Entities_1.AddressType.Billing);
103
- }
104
- payerDetails.shippingAddress = GpApiMapping.mapAddressObject(paymentMethodResponse.shipping_address, Entities_1.AddressType.Shipping);
105
- transaction.payerDetails = payerDetails;
106
- }
107
- }
108
- static mapCardIssuerResponse(transaction, cardIssuerResponse) {
109
- transaction.cardIssuerResponse = new Entities_1.CardIssuerResponse();
110
- transaction.cardIssuerResponse.result = cardIssuerResponse.result ?? null;
111
- transaction.cardIssuerResponse.avsResult =
112
- cardIssuerResponse.avs_result ?? null;
113
- transaction.cardIssuerResponse.cvvResult =
114
- cardIssuerResponse.cvv_result ?? null;
115
- transaction.cardIssuerResponse.avsAddressResult =
116
- cardIssuerResponse.avs_address_result ?? null;
117
- transaction.cardIssuerResponse.avsPostalCodeResult =
118
- cardIssuerResponse.avs_postal_code_result ?? null;
119
- }
120
- static mapAddressObject(address, type = null) {
121
- if (!address) {
122
- return new Entities_1.Address();
123
- }
124
- const userAddress = new Entities_1.Address();
125
- userAddress.type = type;
126
- userAddress.streetAddress1 = address.line_1 ?? null;
127
- userAddress.streetAddress2 = address.line_2 ?? null;
128
- userAddress.streetAddress3 = address.line_3 ?? null;
129
- userAddress.city = address.city ?? null;
130
- userAddress.state = address.state ?? null;
131
- userAddress.postalCode = address.postal_code ?? null;
132
- userAddress.countryCode = address.country ?? null;
133
- userAddress.type = address.functions?.[0] ?? type;
134
- return userAddress;
135
- }
136
- static mapReportResponse(response, reportType) {
137
- let report;
138
- switch (reportType) {
139
- case Entities_1.ReportType.FindStoredPaymentMethodsPaged:
140
- report = this.setPagingInfo(response);
141
- response.payment_methods.forEach((spm) => {
142
- report.result.push(this.mapStoredPaymentMethodSummary(spm));
143
- });
144
- break;
145
- case Entities_1.ReportType.StoredPaymentMethodDetail:
146
- report = this.mapStoredPaymentMethodSummary(response);
147
- break;
148
- default:
149
- throw new Entities_1.ApiError("Report type not supported!");
150
- }
151
- return report;
152
- }
153
- static mapStoredPaymentMethodSummary(response) {
154
- const summary = new Entities_1.StoredPaymentMethodSummary();
155
- summary.paymentMethodId = response.id;
156
- if (response.time_created) {
157
- summary.timeCreated = new Date(response.time_created);
158
- }
159
- summary.status = !!response.status ? response.status : "";
160
- summary.reference = !!response.reference ? response.reference : "";
161
- summary.cardHolderName = !!response.name ? response.name : "";
162
- if (response.card) {
163
- const card = response.card;
164
- summary.cardType = !!card.brand ? card.brand : "";
165
- summary.cardNumberLastFour = !!card.number_last4 ? card.number_last4 : "";
166
- summary.cardExpMonth = !!card.expiry_month ? card.expiry_month : "";
167
- summary.cardExpYear = !!card.expiry_year ? card.expiry_year : "";
168
- }
169
- return summary;
170
- }
171
- static setPagingInfo(response) {
172
- const pageInfo = new Entities_1.PagedResult();
173
- pageInfo.totalRecordCount = !!response.total_count
174
- ? response.total_count
175
- : !!response.total_record_count
176
- ? response.total_record_count
177
- : null;
178
- pageInfo.pageSize = !!response.paging?.page_size
179
- ? response.paging.page_size
180
- : null;
181
- pageInfo.page = !!response.paging?.page ? response.paging.page : null;
182
- pageInfo.order = !!response.paging?.order ? response.paging.order : null;
183
- pageInfo.orderBy = !!response.paging?.order_by
184
- ? response.paging.order_by
185
- : null;
186
- return pageInfo;
187
- }
188
- }
189
- exports.GpApiMapping = GpApiMapping;
190
- //# sourceMappingURL=GpApiMapping.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GpApiMapping.js","sourceRoot":"","sources":["../../../src/Mapping/GpApiMapping.ts"],"names":[],"mappings":";;;AAAA,mCAAwC;AACxC,iDAgB4B;AAC5B,sDAA6D;AAE7D,MAAa,YAAY;IAChB,MAAM,CAAC,cAAc,CAAC,QAAgB;QAC3C,QAAQ,CAAC;IACX,CAAC;IAEM,MAAM,CAAC,WAAW,CAAC,QAAa;QACrC,MAAM,WAAW,GAAG,IAAI,sBAAW,EAAE,CAAC;QAEtC,IAAI,CAAC,QAAQ,EAAE;YACb,OAAO,WAAW,CAAC;SACpB;QAED,WAAW,CAAC,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC;QACvD,WAAW,CAAC,eAAe,GAAG,QAAQ,CAAC,MAAM,CAAC;QAE9C,WAAW,CAAC,mBAAmB,GAAG,QAAQ,CAAC,SAAS,IAAI,IAAI,CAAC;QAC7D,WAAW,CAAC,SAAS,GAAG,QAAQ,CAAC,YAAY,IAAI,EAAE,CAAC;QACpD,WAAW,CAAC,eAAe,GAAG,QAAQ,CAAC,SAAS,IAAI,IAAI,CAAC;QAEzD,WAAW,CAAC,aAAa,GAAG,iBAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAClE,IACE,QAAQ,CAAC,MAAM,KAAK,4BAAiB,CAAC,aAAa;YACnD,QAAQ,CAAC,MAAM,EACf;YACA,WAAW,CAAC,gBAAgB,GAAG,iBAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;SACtE;QAED,WAAW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CAAC;IAEO,MAAM,CAAC,aAAa,CAAC,QAAa;QACxC,MAAM,QAAQ,GAAG,IAAI,sBAAW,EAAE,CAAC;QACnC,QAAQ,CAAC,gBAAgB,GAAG,CAAC,CAAC,QAAQ,CAAC,WAAW;YAChD,CAAC,CAAC,QAAQ,CAAC,WAAW;YACtB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,kBAAkB;gBAC/B,CAAC,CAAC,QAAQ,CAAC,kBAAkB;gBAC7B,CAAC,CAAC,IAAI,CAAC;QACT,QAAQ,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS;YAC9C,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS;YAC3B,CAAC,CAAC,IAAI,CAAC;QACT,QAAQ,CAAC,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;QACtE,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QACzE,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ;YAC5C,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ;YAC1B,CAAC,CAAC,IAAI,CAAC;QAET,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAhPD,oCAgPC"}
@@ -1,9 +0,0 @@
1
- import { Element } from "@azz/elementtree";
2
- import { BaseBuilder, ManagementBuilder } from "../../src";
3
- import { Transaction } from "../../src/Entities";
4
- export declare class GpEcomMapping {
5
- static mapAuthRequestType(builder: BaseBuilder<Transaction>): string;
6
- static mapResponse(rawResponse: string, acceptedCodes: string[]): Transaction;
7
- protected static checkResponse(root: Element, acceptedCodes?: string[]): void;
8
- static mapManageRequestType(builder: ManagementBuilder): "settle" | "unknown" | "hold" | "rebate" | "release" | "void";
9
- }
@@ -1,85 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GpEcomMapping = void 0;
4
- const elementtree_1 = require("@azz/elementtree");
5
- const src_1 = require("../../src");
6
- const Entities_1 = require("../../src/Entities");
7
- class GpEcomMapping {
8
- static mapAuthRequestType(builder) {
9
- switch (builder.transactionType) {
10
- case Entities_1.TransactionType.Sale:
11
- case Entities_1.TransactionType.Auth:
12
- if (builder.paymentMethod.paymentMethodType === Entities_1.PaymentMethodType.Credit) {
13
- if (builder.transactionModifier === Entities_1.TransactionModifier.Offline) {
14
- return "offline";
15
- }
16
- if (builder.transactionModifier === Entities_1.TransactionModifier.EncryptedMobile) {
17
- return "auth-mobile";
18
- }
19
- return "auth";
20
- }
21
- return "receipt-in";
22
- case Entities_1.TransactionType.Capture:
23
- return "settle";
24
- case Entities_1.TransactionType.Verify:
25
- if (builder.paymentMethod.paymentMethodType === Entities_1.PaymentMethodType.Credit) {
26
- return "otb";
27
- }
28
- return "receipt-in-otb";
29
- case Entities_1.TransactionType.Refund:
30
- if (builder.paymentMethod.paymentMethodType === Entities_1.PaymentMethodType.Credit) {
31
- return "credit";
32
- }
33
- return "payment-out";
34
- case Entities_1.TransactionType.Reversal:
35
- throw new Entities_1.UnsupportedTransactionError("The selected gateway does not support this transaction type.");
36
- default:
37
- return "unknown";
38
- }
39
- }
40
- static mapResponse(rawResponse, acceptedCodes) {
41
- const result = new Entities_1.Transaction();
42
- const root = (0, elementtree_1.XML)(rawResponse);
43
- this.checkResponse(root, acceptedCodes);
44
- result.responseCode = root.findtext(".//result");
45
- result.responseMessage = root.findtext(".//message");
46
- result.cvnResponseCode = root.findtext(".//cvnresult");
47
- result.avsResponseCode = root.findtext(".//avspostcoderesponse");
48
- result.timestamp = root.findtext(".//timestamp");
49
- result.transactionReference = new src_1.TransactionReference();
50
- result.transactionReference.authCode = root.findtext(".//authcode");
51
- result.transactionReference.orderId = root.findtext(".//orderid");
52
- result.transactionReference.paymentMethodType = Entities_1.PaymentMethodType.Credit;
53
- result.transactionReference.transactionId = root.findtext(".//pasref");
54
- return result;
55
- }
56
- static checkResponse(root, acceptedCodes) {
57
- if (!acceptedCodes) {
58
- acceptedCodes = ["00"];
59
- }
60
- const responseCode = root.findtext(".//result");
61
- const responseMessage = root.findtext(".//message");
62
- if (acceptedCodes.indexOf(responseCode) === -1) {
63
- throw new Entities_1.GatewayError(`Unexpected Gateway Response: ${responseCode} - ${responseMessage}`, responseCode);
64
- }
65
- }
66
- static mapManageRequestType(builder) {
67
- switch (builder.transactionType) {
68
- case Entities_1.TransactionType.Capture:
69
- return "settle";
70
- case Entities_1.TransactionType.Hold:
71
- return "hold";
72
- case Entities_1.TransactionType.Refund:
73
- return "rebate";
74
- case Entities_1.TransactionType.Release:
75
- return "release";
76
- case Entities_1.TransactionType.Void:
77
- case Entities_1.TransactionType.Reversal:
78
- return "void";
79
- default:
80
- return "unknown";
81
- }
82
- }
83
- }
84
- exports.GpEcomMapping = GpEcomMapping;
85
- //# sourceMappingURL=GpEcomMapping.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GpEcomMapping.js","sourceRoot":"","sources":["../../../src/Mapping/GpEcomMapping.ts"],"names":[],"mappings":";;;AAAA,kDAAuD;AAEvD,mCAImB;AACnB,iDAO4B;AAE5B,MAAa,aAAa;IACjB,MAAM,CAAC,kBAAkB,CAAC,OAAiC;QAChE,QAAQ,OAAO,CAAC,eAAe,EAAE;YAC/B,KAAK,0BAAe,CAAC,IAAI,CAAC;YAC1B,KAAK,0BAAe,CAAC,IAAI;gBACvB,IACE,OAAO,CAAC,aAAa,CAAC,iBAAiB,KAAK,4BAAiB,CAAC,MAAM,EACpE;oBACA,IAAI,OAAO,CAAC,mBAAmB,KAAK,8BAAmB,CAAC,OAAO,EAAE;wBAC/D,OAAO,SAAS,CAAC;qBA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AAe,CAAC,IAAI,CAAC;YAC1B,KAAK,0BAAe,CAAC,QAAQ;gBAC3B,OAAO,MAAM,CAAC;YAChB;gBACE,OAAO,SAAS,CAAC;SACpB;IACH,CAAC;CACF;AAjGD,sCAiGC"}
@@ -1,3 +0,0 @@
1
- export * from "./EnumMapping";
2
- export * from "./GpApiMapping";
3
- export * from "./GpEcomMapping";
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./EnumMapping"), exports);
18
- __exportStar(require("./GpApiMapping"), exports);
19
- __exportStar(require("./GpEcomMapping"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Mapping/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,iDAA+B;AAC/B,kDAAgC"}
@@ -1,22 +0,0 @@
1
- import { AuthorizationBuilder, EncryptionData, PaymentMethodType } from "../../src";
2
- import { IChargable, IEncryptable, IPaymentMethod, IPinProtected, IPrePayable, IRefundable, IReversable } from ".";
3
- export declare class AlternativePaymentMethod implements IPaymentMethod, IPrePayable, IRefundable, IReversable, IChargable, IEncryptable, IPinProtected {
4
- paymentMethodType: PaymentMethodType;
5
- alternativePaymentMethodType: string;
6
- returnUrl: string;
7
- statusUpdateUrl: string;
8
- cancelUrl: string;
9
- descriptor: string;
10
- country: string;
11
- accountHolderName: string;
12
- providerReference: string;
13
- addressOverrideMode: string;
14
- pinBlock: string;
15
- encryptionData: EncryptionData;
16
- constructor(alternativePaymentMethodType: string);
17
- charge(amount: string | number): AuthorizationBuilder;
18
- authorize(amount: string | number): AuthorizationBuilder;
19
- addValue(amount: string | number): AuthorizationBuilder;
20
- refund(amount: string | number): AuthorizationBuilder;
21
- reverse(amount: string | number): AuthorizationBuilder;
22
- }
@@ -1,47 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AlternativePaymentMethod = void 0;
4
- const src_1 = require("../../src");
5
- /* eslint-disable indent */
6
- class AlternativePaymentMethod {
7
- paymentMethodType = src_1.PaymentMethodType.APM;
8
- alternativePaymentMethodType;
9
- returnUrl;
10
- statusUpdateUrl;
11
- cancelUrl;
12
- descriptor;
13
- country;
14
- accountHolderName;
15
- providerReference;
16
- addressOverrideMode;
17
- pinBlock;
18
- encryptionData;
19
- /* eslint-enable indent */
20
- constructor(alternativePaymentMethodType) {
21
- this.alternativePaymentMethodType = alternativePaymentMethodType;
22
- }
23
- charge(amount) {
24
- return new src_1.AuthorizationBuilder(src_1.TransactionType.Sale, this)
25
- .withModifier(src_1.TransactionModifier.AlternativePaymentMethod)
26
- .withAmount(amount);
27
- }
28
- authorize(amount) {
29
- return new src_1.AuthorizationBuilder(src_1.TransactionType.Auth, this)
30
- .withModifier(src_1.TransactionModifier.AlternativePaymentMethod)
31
- .withAmount(amount);
32
- }
33
- addValue(amount) {
34
- amount;
35
- throw new src_1.NotImplementedError();
36
- }
37
- refund(amount) {
38
- amount;
39
- throw new src_1.NotImplementedError();
40
- }
41
- reverse(amount) {
42
- amount;
43
- throw new src_1.NotImplementedError();
44
- }
45
- }
46
- exports.AlternativePaymentMethod = AlternativePaymentMethod;
47
- //# sourceMappingURL=AlternativePaymentMethod.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AlternativePaymentMethod.js","sourceRoot":"","sources":["../../../src/PaymentMethods/AlternativePaymentMethod.ts"],"names":[],"mappings":";;;AAAA,mCAOmB;AAWnB,2BAA2B;AAC3B,MAAa,wBAAwB;IAUnC,iBAAiB,GAAG,uBAAiB,CAAC,GAAG,CAAC;IAC1C,4BAA4B,CAAS;IACrC,SAAS,CAAS;IAClB,eAAe,CAAS;IACxB,SAAS,CAAS;IAClB,UAAU,CAAS;IACnB,OAAO,CAAS;IAChB,iBAAiB,CAAS;IAC1B,iBAAiB,CAAS;IAC1B,mBAAmB,CAAS;IAC5B,QAAQ,CAAS;IACjB,cAAc,CAAiB;IAC/B,0BAA0B;IAE1B,YAAY,4BAAoC;QAC9C,IAAI,CAAC,4BAA4B,GAAG,4BAA4B,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,MAAuB;QAC5B,OAAO,IAAI,0BAAoB,CAAC,qBAAe,CAAC,IAAI,EAAE,IAAI,CAAC;aACxD,YAAY,CAAC,yBAAmB,CAAC,wBAAwB,CAAC;aAC1D,UAAU,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IAED,SAAS,CAAC,MAAuB;QAC/B,OAAO,IAAI,0BAAoB,CAAC,qBAAe,CAAC,IAAI,EAAE,IAAI,CAAC;aACxD,YAAY,CAAC,yBAAmB,CAAC,wBAAwB,CAAC;aAC1D,UAAU,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IAED,QAAQ,CAAC,MAAuB;QAC9B,MAAM,CAAC;QACP,MAAM,IAAI,yBAAmB,EAAE,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,MAAuB;QAC5B,MAAM,CAAC;QACP,MAAM,IAAI,yBAAmB,EAAE,CAAC;IAClC,CAAC;IAED,OAAO,CAAC,MAAuB;QAC7B,MAAM,CAAC;QACP,MAAM,IAAI,yBAAmB,EAAE,CAAC;IAClC,CAAC;CACF;AAtDD,4DAsDC"}
@@ -1,8 +0,0 @@
1
- import { AuthorizationBuilder, PaymentMethodType } from "../";
2
- import { IChargable, IRefundable } from "./Interfaces";
3
- import { PaymentMethod } from "./PaymentMethod";
4
- export declare class Cash extends PaymentMethod implements IChargable, IRefundable {
5
- paymentMethodType: PaymentMethodType;
6
- charge(): AuthorizationBuilder;
7
- refund(): AuthorizationBuilder;
8
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Cash = void 0;
4
- const __1 = require("../");
5
- const PaymentMethod_1 = require("./PaymentMethod");
6
- class Cash extends PaymentMethod_1.PaymentMethod {
7
- paymentMethodType = __1.PaymentMethodType.Cash;
8
- charge() {
9
- throw new __1.NotImplementedError();
10
- }
11
- refund() {
12
- throw new __1.NotImplementedError();
13
- }
14
- }
15
- exports.Cash = Cash;
16
- //# sourceMappingURL=Cash.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Cash.js","sourceRoot":"","sources":["../../../src/PaymentMethods/Cash.ts"],"names":[],"mappings":";;;AAAA,2BAIa;AAEb,mDAAgD;AAEhD,MAAa,IAAK,SAAQ,6BAAa;IAC9B,iBAAiB,GAAG,qBAAiB,CAAC,IAAI,CAAC;IAE3C,MAAM;QACX,MAAM,IAAI,uBAAmB,EAAE,CAAC;IAClC,CAAC;IAEM,MAAM;QACX,MAAM,IAAI,uBAAmB,EAAE,CAAC;IAClC,CAAC;CACF;AAVD,oBAUC"}
@@ -1,109 +0,0 @@
1
- import { AuthorizationBuilder, EncryptionData, InquiryType, ManagementBuilder, PaymentMethodType, PaymentMethodUsageMode, Transaction } from "../";
2
- import { IAuthable, IBalanceable, IChargable, IEncryptable, IPrePayable, IRefundable, IReversable, ITokenizable, IVerifyable } from "./Interfaces";
3
- import { PaymentMethod } from "./PaymentMethod";
4
- export declare abstract class Credit extends PaymentMethod implements IEncryptable, ITokenizable, IChargable, IAuthable, IRefundable, IReversable, IVerifyable, IPrePayable, IBalanceable {
5
- encryptionData: EncryptionData;
6
- paymentMethodType: PaymentMethodType;
7
- /**
8
- * The token value representing the card.
9
- *
10
- * For `TransactionModifier.EncryptedMobile` transactions, this value is the
11
- * encrypted payload from the mobile payment scheme.
12
- */
13
- token: string;
14
- /**
15
- * The type of mobile device used in `Transaction.Modifier.EncryptedMobile`
16
- * transactions.
17
- */
18
- mobileType: string;
19
- /**
20
- * Payment Source is the API or source of the cryptogram for WalletData.
21
- */
22
- paymentSource: string;
23
- cryptogram: string;
24
- eci: string;
25
- /**
26
- * Authorizes the payment method
27
- *
28
- * @param string|number amount Amount to authorize
29
- *
30
- * @return AuthorizationBuilder
31
- */
32
- authorize(amount?: string | number): AuthorizationBuilder;
33
- /**
34
- * Authorizes the payment method and captures the entire authorized amount
35
- *
36
- * @param string|number amount Amount to authorize
37
- *
38
- * @return AuthorizationBuilder
39
- */
40
- charge(amount?: string | number): AuthorizationBuilder;
41
- /**
42
- * Adds value to the payment method
43
- *
44
- * @param string|number amount Amount to add
45
- *
46
- * @return AuthorizationBuilder
47
- */
48
- addValue(amount?: string | number): AuthorizationBuilder;
49
- /**
50
- * Inquires the balance of the payment method
51
- *
52
- * @param InquiryType inquiry Type of inquiry
53
- *
54
- * @return AuthorizationBuilder
55
- */
56
- balanceInquiry(inquiry?: InquiryType): AuthorizationBuilder;
57
- /**
58
- * Refunds the payment method
59
- *
60
- * @param string|number amount Amount to refund
61
- *
62
- * @return AuthorizationBuilder
63
- */
64
- refund(amount?: string | number): AuthorizationBuilder;
65
- /**
66
- * Reverses the payment method
67
- *
68
- * @param string|number amount Amount to reverse
69
- *
70
- * @return AuthorizationBuilder
71
- */
72
- reverse(amount?: string | number): AuthorizationBuilder;
73
- /**
74
- * Verifies the payment method
75
- *
76
- * @return AuthorizationBuilder
77
- */
78
- verify(): AuthorizationBuilder;
79
- /**
80
- * Tokenizes the payment method
81
- *
82
- * @return AuthorizationBuilder
83
- */
84
- tokenize(verifyCard?: boolean, usageMode?: PaymentMethodUsageMode): AuthorizationBuilder;
85
- /**
86
- * Updates the token expiry date with the values proced to the card object
87
- *
88
- * @returns boolean value indicating success/failure
89
- */
90
- updateTokenExpiry(): Promise<boolean>;
91
- /**
92
- * Updates the payment token
93
- *
94
- * @returns ManagementBuilder
95
- */
96
- updateToken(): ManagementBuilder;
97
- /**
98
- * Deletes the token associated with the current card object
99
- *
100
- * @returns boolean value indicating success/failure
101
- */
102
- deleteToken(): Promise<boolean>;
103
- /**
104
- * Detokenizes the payment method
105
- *
106
- * @returns result of the detokenization
107
- */
108
- detokenize(): Promise<Transaction>;
109
- }