globalpayments-api 1.4.9 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/CHANGELOG.md +7 -3
  2. package/package.json +3 -4
  3. package/lib/src/Builders/AuthorizationBuilder.d.ts +0 -325
  4. package/lib/src/Builders/AuthorizationBuilder.js +0 -599
  5. package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +0 -14
  6. package/lib/src/Builders/BaseBuilder/ValidationClause.js +0 -61
  7. package/lib/src/Builders/BaseBuilder/ValidationTarget.d.ts +0 -16
  8. package/lib/src/Builders/BaseBuilder/ValidationTarget.js +0 -28
  9. package/lib/src/Builders/BaseBuilder/Validations.d.ts +0 -11
  10. package/lib/src/Builders/BaseBuilder/Validations.js +0 -56
  11. package/lib/src/Builders/BaseBuilder.d.ts +0 -11
  12. package/lib/src/Builders/BaseBuilder.js +0 -16
  13. package/lib/src/Builders/ManagementBuilder.d.ts +0 -103
  14. package/lib/src/Builders/ManagementBuilder.js +0 -227
  15. package/lib/src/Builders/PayFacBuilder.d.ts +0 -96
  16. package/lib/src/Builders/PayFacBuilder.js +0 -184
  17. package/lib/src/Builders/RecurringBuilder.d.ts +0 -13
  18. package/lib/src/Builders/RecurringBuilder.js +0 -47
  19. package/lib/src/Builders/ReportBuilder.d.ts +0 -8
  20. package/lib/src/Builders/ReportBuilder.js +0 -36
  21. package/lib/src/Builders/TransactionBuilder.d.ts +0 -10
  22. package/lib/src/Builders/TransactionBuilder.js +0 -46
  23. package/lib/src/Builders/TransactionReportBuilder.d.ts +0 -15
  24. package/lib/src/Builders/TransactionReportBuilder.js +0 -79
  25. package/lib/src/Builders/index.d.ts +0 -7
  26. package/lib/src/Builders/index.js +0 -19
  27. package/lib/src/Entities/Address.d.ts +0 -13
  28. package/lib/src/Entities/Address.js +0 -19
  29. package/lib/src/Entities/BatchSummary.d.ts +0 -6
  30. package/lib/src/Entities/BatchSummary.js +0 -9
  31. package/lib/src/Entities/Customer.d.ts +0 -64
  32. package/lib/src/Entities/Customer.js +0 -47
  33. package/lib/src/Entities/DocumentUploadData.d.ts +0 -13
  34. package/lib/src/Entities/DocumentUploadData.js +0 -48
  35. package/lib/src/Entities/EcommerceInfo.d.ts +0 -12
  36. package/lib/src/Entities/EcommerceInfo.js +0 -14
  37. package/lib/src/Entities/EncryptionData.d.ts +0 -6
  38. package/lib/src/Entities/EncryptionData.js +0 -9
  39. package/lib/src/Entities/Enums.d.ts +0 -273
  40. package/lib/src/Entities/Enums.js +0 -385
  41. package/lib/src/Entities/Errors.d.ts +0 -23
  42. package/lib/src/Entities/Errors.js +0 -106
  43. package/lib/src/Entities/HostedPaymentData.d.ts +0 -10
  44. package/lib/src/Entities/HostedPaymentData.js +0 -10
  45. package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +0 -7
  46. package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +0 -9
  47. package/lib/src/Entities/ProFac/AccountPermissions.d.ts +0 -15
  48. package/lib/src/Entities/ProFac/AccountPermissions.js +0 -9
  49. package/lib/src/Entities/ProFac/BankAccountData.d.ts +0 -10
  50. package/lib/src/Entities/ProFac/BankAccountData.js +0 -9
  51. package/lib/src/Entities/ProFac/BankAccountOwnershipData.d.ts +0 -8
  52. package/lib/src/Entities/ProFac/BankAccountOwnershipData.js +0 -11
  53. package/lib/src/Entities/ProFac/BeneficialOwnerData.d.ts +0 -6
  54. package/lib/src/Entities/ProFac/BeneficialOwnerData.js +0 -10
  55. package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.d.ts +0 -5
  56. package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js +0 -9
  57. package/lib/src/Entities/ProFac/BusinessData.d.ts +0 -14
  58. package/lib/src/Entities/ProFac/BusinessData.js +0 -11
  59. package/lib/src/Entities/ProFac/DeviceAttributeInfo.d.ts +0 -4
  60. package/lib/src/Entities/ProFac/DeviceAttributeInfo.js +0 -9
  61. package/lib/src/Entities/ProFac/DeviceData.d.ts +0 -5
  62. package/lib/src/Entities/ProFac/DeviceData.js +0 -10
  63. package/lib/src/Entities/ProFac/DeviceInfo.d.ts +0 -6
  64. package/lib/src/Entities/ProFac/DeviceInfo.js +0 -9
  65. package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.d.ts +0 -7
  66. package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js +0 -13
  67. package/lib/src/Entities/ProFac/GrossBillingInformation.d.ts +0 -8
  68. package/lib/src/Entities/ProFac/GrossBillingInformation.js +0 -9
  69. package/lib/src/Entities/ProFac/OrderDevice.d.ts +0 -18
  70. package/lib/src/Entities/ProFac/OrderDevice.js +0 -9
  71. package/lib/src/Entities/ProFac/OwnersData.d.ts +0 -12
  72. package/lib/src/Entities/ProFac/OwnersData.js +0 -11
  73. package/lib/src/Entities/ProFac/PayFacResponseData.d.ts +0 -55
  74. package/lib/src/Entities/ProFac/PayFacResponseData.js +0 -9
  75. package/lib/src/Entities/ProFac/RenewAccountData.d.ts +0 -10
  76. package/lib/src/Entities/ProFac/RenewAccountData.js +0 -11
  77. package/lib/src/Entities/ProFac/SignificantOwnerData.d.ts +0 -8
  78. package/lib/src/Entities/ProFac/SignificantOwnerData.js +0 -11
  79. package/lib/src/Entities/ProFac/ThreatRiskData.d.ts +0 -5
  80. package/lib/src/Entities/ProFac/ThreatRiskData.js +0 -9
  81. package/lib/src/Entities/ProFac/UserPersonalData.d.ts +0 -26
  82. package/lib/src/Entities/ProFac/UserPersonalData.js +0 -14
  83. package/lib/src/Entities/RecurringEntity.d.ts +0 -14
  84. package/lib/src/Entities/RecurringEntity.js +0 -86
  85. package/lib/src/Entities/SSORequestData.d.ts +0 -5
  86. package/lib/src/Entities/SSORequestData.js +0 -9
  87. package/lib/src/Entities/Schedule.d.ts +0 -47
  88. package/lib/src/Entities/Schedule.js +0 -253
  89. package/lib/src/Entities/Transaction.d.ts +0 -78
  90. package/lib/src/Entities/Transaction.js +0 -108
  91. package/lib/src/Entities/TransactionSummary.d.ts +0 -61
  92. package/lib/src/Entities/TransactionSummary.js +0 -9
  93. package/lib/src/Entities/index.d.ts +0 -12
  94. package/lib/src/Entities/index.js +0 -24
  95. package/lib/src/Gateways/Gateway.d.ts +0 -10
  96. package/lib/src/Gateways/Gateway.js +0 -42
  97. package/lib/src/Gateways/IPayFacProvider.d.ts +0 -5
  98. package/lib/src/Gateways/IPayFacProvider.js +0 -2
  99. package/lib/src/Gateways/IPaymentGateway.d.ts +0 -8
  100. package/lib/src/Gateways/IPaymentGateway.js +0 -2
  101. package/lib/src/Gateways/IRecurringService.d.ts +0 -6
  102. package/lib/src/Gateways/IRecurringService.js +0 -2
  103. package/lib/src/Gateways/PayPlanConnector.d.ts +0 -43
  104. package/lib/src/Gateways/PayPlanConnector.js +0 -564
  105. package/lib/src/Gateways/PorticoConnector.d.ts +0 -44
  106. package/lib/src/Gateways/PorticoConnector.js +0 -1017
  107. package/lib/src/Gateways/ProPayConnector.d.ts +0 -41
  108. package/lib/src/Gateways/ProPayConnector.js +0 -698
  109. package/lib/src/Gateways/RealexConnector.d.ts +0 -30
  110. package/lib/src/Gateways/RealexConnector.js +0 -523
  111. package/lib/src/Gateways/RestGateway.d.ts +0 -6
  112. package/lib/src/Gateways/RestGateway.js +0 -31
  113. package/lib/src/Gateways/XmlGateway.d.ts +0 -6
  114. package/lib/src/Gateways/XmlGateway.js +0 -39
  115. package/lib/src/Gateways/https-wrapper.d.ts +0 -3
  116. package/lib/src/Gateways/https-wrapper.js +0 -35
  117. package/lib/src/Gateways/index.d.ts +0 -7
  118. package/lib/src/Gateways/index.js +0 -19
  119. package/lib/src/HostedPaymentConfig.d.ts +0 -12
  120. package/lib/src/HostedPaymentConfig.js +0 -9
  121. package/lib/src/PaymentMethods/Cash.d.ts +0 -8
  122. package/lib/src/PaymentMethods/Cash.js +0 -36
  123. package/lib/src/PaymentMethods/Credit.d.ts +0 -85
  124. package/lib/src/PaymentMethods/Credit.js +0 -106
  125. package/lib/src/PaymentMethods/CreditCardData.d.ts +0 -20
  126. package/lib/src/PaymentMethods/CreditCardData.js +0 -57
  127. package/lib/src/PaymentMethods/CreditTrackData.d.ts +0 -7
  128. package/lib/src/PaymentMethods/CreditTrackData.js +0 -27
  129. package/lib/src/PaymentMethods/Debit.d.ts +0 -40
  130. package/lib/src/PaymentMethods/Debit.js +0 -70
  131. package/lib/src/PaymentMethods/DebitTrackData.d.ts +0 -7
  132. package/lib/src/PaymentMethods/DebitTrackData.js +0 -27
  133. package/lib/src/PaymentMethods/EBT.d.ts +0 -48
  134. package/lib/src/PaymentMethods/EBT.js +0 -88
  135. package/lib/src/PaymentMethods/EBTCardData.d.ts +0 -16
  136. package/lib/src/PaymentMethods/EBTCardData.js +0 -32
  137. package/lib/src/PaymentMethods/EBTTrackData.d.ts +0 -8
  138. package/lib/src/PaymentMethods/EBTTrackData.js +0 -27
  139. package/lib/src/PaymentMethods/ECheck.d.ts +0 -32
  140. package/lib/src/PaymentMethods/ECheck.js +0 -40
  141. package/lib/src/PaymentMethods/GiftCard.d.ts +0 -131
  142. package/lib/src/PaymentMethods/GiftCard.js +0 -205
  143. package/lib/src/PaymentMethods/Interfaces.d.ts +0 -55
  144. package/lib/src/PaymentMethods/Interfaces.js +0 -2
  145. package/lib/src/PaymentMethods/PaymentMethod.d.ts +0 -19
  146. package/lib/src/PaymentMethods/PaymentMethod.js +0 -114
  147. package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +0 -23
  148. package/lib/src/PaymentMethods/RecurringPaymentMethod.js +0 -77
  149. package/lib/src/PaymentMethods/TransactionReference.d.ts +0 -10
  150. package/lib/src/PaymentMethods/TransactionReference.js +0 -12
  151. package/lib/src/PaymentMethods/index.d.ts +0 -15
  152. package/lib/src/PaymentMethods/index.js +0 -27
  153. package/lib/src/Services/BatchService.d.ts +0 -4
  154. package/lib/src/Services/BatchService.js +0 -17
  155. package/lib/src/Services/CheckService.d.ts +0 -6
  156. package/lib/src/Services/CheckService.js +0 -20
  157. package/lib/src/Services/CreditService.d.ts +0 -12
  158. package/lib/src/Services/CreditService.js +0 -54
  159. package/lib/src/Services/DebitService.d.ts +0 -7
  160. package/lib/src/Services/DebitService.js +0 -28
  161. package/lib/src/Services/EBTService.d.ts +0 -8
  162. package/lib/src/Services/EBTService.js +0 -32
  163. package/lib/src/Services/GiftService.d.ts +0 -16
  164. package/lib/src/Services/GiftService.js +0 -54
  165. package/lib/src/Services/HostedService.d.ts +0 -9
  166. package/lib/src/Services/HostedService.js +0 -59
  167. package/lib/src/Services/PayFacService.d.ts +0 -26
  168. package/lib/src/Services/PayFacService.js +0 -77
  169. package/lib/src/Services/RecurringService.d.ts +0 -8
  170. package/lib/src/Services/RecurringService.js +0 -27
  171. package/lib/src/Services/ReportingService.d.ts +0 -6
  172. package/lib/src/Services/ReportingService.js +0 -19
  173. package/lib/src/Services/index.d.ts +0 -9
  174. package/lib/src/Services/index.js +0 -21
  175. package/lib/src/ServicesConfig.d.ts +0 -27
  176. package/lib/src/ServicesConfig.js +0 -50
  177. package/lib/src/ServicesContainer.d.ts +0 -14
  178. package/lib/src/ServicesContainer.js +0 -87
  179. package/lib/src/Utils/GenerationUtils.d.ts +0 -5
  180. package/lib/src/Utils/GenerationUtils.js +0 -36
  181. package/lib/src/Utils/InputValidation.d.ts +0 -12
  182. package/lib/src/Utils/InputValidation.js +0 -72
  183. package/lib/src/Utils/Sha1.d.ts +0 -6
  184. package/lib/src/Utils/Sha1.js +0 -225
  185. package/lib/src/Utils/StringUtils.d.ts +0 -6
  186. package/lib/src/Utils/StringUtils.js +0 -53
  187. package/lib/src/Utils/index.d.ts +0 -2
  188. package/lib/src/Utils/index.js +0 -14
  189. package/lib/src/index.d.ts +0 -11
  190. package/lib/src/index.js +0 -27
  191. package/lib/test/Data/TestCards.d.ts +0 -24
  192. package/lib/test/Data/TestCards.js +0 -232
  193. package/lib/test/Data/TestChecks.d.ts +0 -4
  194. package/lib/test/Data/TestChecks.js +0 -32
  195. package/lib/test/Data/index.d.ts +0 -2
  196. package/lib/test/Data/index.js +0 -14
  197. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
  198. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -112
  199. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
  200. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -483
  201. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
  202. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -83
  203. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
  204. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1720
  205. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
  206. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -83
  207. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
  208. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1757
  209. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
  210. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -682
  211. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
  212. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2218
  213. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
  214. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -707
  215. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
  216. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -151
  217. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
  218. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -171
  219. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
  220. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -192
  221. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
  222. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -377
  223. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
  224. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -196
  225. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
  226. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -47
  227. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.d.ts +0 -1
  228. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.js +0 -100
  229. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.d.ts +0 -1
  230. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.js +0 -352
  231. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.d.ts +0 -1
  232. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js +0 -123
  233. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.d.ts +0 -1
  234. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.js +0 -146
  235. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +0 -39
  236. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +0 -371
  237. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.d.ts +0 -1
  238. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.js +0 -100
  239. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.d.ts +0 -1
  240. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.js +0 -535
  241. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.d.ts +0 -1
  242. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.js +0 -124
  243. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.d.ts +0 -1
  244. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.js +0 -144
  245. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +0 -33
  246. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +0 -268
  247. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +0 -4
  248. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +0 -30
  249. package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.d.ts +0 -1
  250. package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js +0 -4373
  251. package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.d.ts +0 -1
  252. package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js +0 -758
  253. package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.d.ts +0 -1
  254. package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js +0 -2399
  255. package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.d.ts +0 -1
  256. package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js +0 -1656
  257. package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.d.ts +0 -1
  258. package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js +0 -5650
  259. package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.d.ts +0 -1
  260. package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js +0 -1985
  261. package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.d.ts +0 -1
  262. package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js +0 -2369
  263. package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.d.ts +0 -1
  264. package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js +0 -1703
  265. package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.d.ts +0 -1
  266. package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js +0 -2053
  267. package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.d.ts +0 -1
  268. package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js +0 -2469
  269. package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.d.ts +0 -1
  270. package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js +0 -3116
  271. package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.d.ts +0 -1
  272. package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js +0 -2031
  273. package/lib/test/Integration/Gateways/RealexConnector/CreditTest.d.ts +0 -1
  274. package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js +0 -322
  275. package/lib/test/Integration/Gateways/RealexConnector/HppTest.d.ts +0 -1
  276. package/lib/test/Integration/Gateways/RealexConnector/HppTest.js +0 -98
  277. package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.d.ts +0 -1
  278. package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js +0 -263
  279. package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
  280. package/lib/test/Integration/Services/CheckServiceTest.js +0 -98
  281. package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
  282. package/lib/test/Integration/Services/CreditServiceTest.js +0 -313
  283. package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
  284. package/lib/test/Integration/Services/DebitServiceTest.js +0 -154
  285. package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
  286. package/lib/test/Integration/Services/EBTServiceTest.js +0 -135
  287. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
  288. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -161
  289. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
  290. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -139
  291. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
  292. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -202
  293. package/lib/test/Unit/Gateways/RealexConnector/CreditTest.d.ts +0 -1
  294. package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js +0 -29
  295. package/logger.txt +0 -483
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.request = void 0;
4
- var https = require("https");
5
- var Errors_1 = require("../Entities/Errors");
6
- var request = function (data, options) {
7
- return new Promise(function (resolve, reject) {
8
- if (options === undefined) {
9
- options = {};
10
- }
11
- var req = https.request(options, function (res) {
12
- var responseData = "";
13
- res.on("data", function (d) { return (responseData += d); });
14
- res.on("end", function () {
15
- if (res.statusCode !== 200) {
16
- reject(new Errors_1.GatewayError("Unexpected HTTP status code [" + res.statusCode + "]"));
17
- }
18
- resolve(responseData);
19
- });
20
- res.on("error", reject);
21
- });
22
- req.on("socket", function (socket) {
23
- socket.on("timeout", function () {
24
- req.abort();
25
- reject(new Errors_1.ApiError("Socket timeout occurred."));
26
- });
27
- });
28
- req.on("error", reject);
29
- if (data !== undefined) {
30
- req.write(data);
31
- }
32
- req.end();
33
- });
34
- };
35
- exports.request = request;
@@ -1,7 +0,0 @@
1
- export * from "./Gateway";
2
- export * from "./IPaymentGateway";
3
- export * from "./IRecurringService";
4
- export * from "./PayPlanConnector";
5
- export * from "./PorticoConnector";
6
- export * from "./RealexConnector";
7
- export * from "./XmlGateway";
@@ -1,19 +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
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./Gateway"), exports);
14
- __exportStar(require("./IPaymentGateway"), exports);
15
- __exportStar(require("./IRecurringService"), exports);
16
- __exportStar(require("./PayPlanConnector"), exports);
17
- __exportStar(require("./PorticoConnector"), exports);
18
- __exportStar(require("./RealexConnector"), exports);
19
- __exportStar(require("./XmlGateway"), exports);
@@ -1,12 +0,0 @@
1
- import { FraudFilterMode, HppVersion } from "./";
2
- export declare class HostedPaymentConfig {
3
- cardStorageEnabled: boolean;
4
- directCurrencyConversionEnabled: boolean;
5
- displaySavedCards: boolean;
6
- fraudFilterMode: FraudFilterMode;
7
- language: string;
8
- paymentButtonText: string;
9
- responseUrl: string;
10
- requestTransactionStabilityScore: string;
11
- version: HppVersion;
12
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HostedPaymentConfig = void 0;
4
- var HostedPaymentConfig = /** @class */ (function () {
5
- function HostedPaymentConfig() {
6
- }
7
- return HostedPaymentConfig;
8
- }());
9
- exports.HostedPaymentConfig = HostedPaymentConfig;
@@ -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(_amount?: string | number): AuthorizationBuilder;
7
- refund(_amount?: string | number): AuthorizationBuilder;
8
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.Cash = void 0;
19
- var __1 = require("../");
20
- var PaymentMethod_1 = require("./PaymentMethod");
21
- var Cash = /** @class */ (function (_super) {
22
- __extends(Cash, _super);
23
- function Cash() {
24
- var _this = _super !== null && _super.apply(this, arguments) || this;
25
- _this.paymentMethodType = __1.PaymentMethodType.Cash;
26
- return _this;
27
- }
28
- Cash.prototype.charge = function (_amount) {
29
- throw new __1.NotImplementedError();
30
- };
31
- Cash.prototype.refund = function (_amount) {
32
- throw new __1.NotImplementedError();
33
- };
34
- return Cash;
35
- }(PaymentMethod_1.PaymentMethod));
36
- exports.Cash = Cash;
@@ -1,85 +0,0 @@
1
- import { AuthorizationBuilder, EncryptionData, InquiryType, PaymentMethodType } 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(): AuthorizationBuilder;
85
- }
@@ -1,106 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.Credit = void 0;
19
- var __1 = require("../");
20
- var PaymentMethod_1 = require("./PaymentMethod");
21
- var Credit = /** @class */ (function (_super) {
22
- __extends(Credit, _super);
23
- function Credit() {
24
- var _this = _super !== null && _super.apply(this, arguments) || this;
25
- _this.paymentMethodType = __1.PaymentMethodType.Credit;
26
- return _this;
27
- }
28
- /**
29
- * Authorizes the payment method
30
- *
31
- * @param string|number amount Amount to authorize
32
- *
33
- * @return AuthorizationBuilder
34
- */
35
- Credit.prototype.authorize = function (amount) {
36
- return new __1.AuthorizationBuilder(__1.TransactionType.Auth, this).withAmount(amount);
37
- };
38
- /**
39
- * Authorizes the payment method and captures the entire authorized amount
40
- *
41
- * @param string|number amount Amount to authorize
42
- *
43
- * @return AuthorizationBuilder
44
- */
45
- Credit.prototype.charge = function (amount) {
46
- return new __1.AuthorizationBuilder(__1.TransactionType.Sale, this).withAmount(amount);
47
- };
48
- /**
49
- * Adds value to the payment method
50
- *
51
- * @param string|number amount Amount to add
52
- *
53
- * @return AuthorizationBuilder
54
- */
55
- Credit.prototype.addValue = function (amount) {
56
- return new __1.AuthorizationBuilder(__1.TransactionType.AddValue, this).withAmount(amount);
57
- };
58
- /**
59
- * Inquires the balance of the payment method
60
- *
61
- * @param InquiryType inquiry Type of inquiry
62
- *
63
- * @return AuthorizationBuilder
64
- */
65
- Credit.prototype.balanceInquiry = function (inquiry) {
66
- return new __1.AuthorizationBuilder(__1.TransactionType.Balance, this).withBalanceInquiryType(inquiry);
67
- };
68
- /**
69
- * Refunds the payment method
70
- *
71
- * @param string|number amount Amount to refund
72
- *
73
- * @return AuthorizationBuilder
74
- */
75
- Credit.prototype.refund = function (amount) {
76
- return new __1.AuthorizationBuilder(__1.TransactionType.Refund, this).withAmount(amount);
77
- };
78
- /**
79
- * Reverses the payment method
80
- *
81
- * @param string|number amount Amount to reverse
82
- *
83
- * @return AuthorizationBuilder
84
- */
85
- Credit.prototype.reverse = function (amount) {
86
- return new __1.AuthorizationBuilder(__1.TransactionType.Reversal, this).withAmount(amount);
87
- };
88
- /**
89
- * Verifies the payment method
90
- *
91
- * @return AuthorizationBuilder
92
- */
93
- Credit.prototype.verify = function () {
94
- return new __1.AuthorizationBuilder(__1.TransactionType.Verify, this);
95
- };
96
- /**
97
- * Tokenizes the payment method
98
- *
99
- * @return AuthorizationBuilder
100
- */
101
- Credit.prototype.tokenize = function () {
102
- return this.verify().withRequestMultiUseToken(true);
103
- };
104
- return Credit;
105
- }(PaymentMethod_1.PaymentMethod));
106
- exports.Credit = Credit;
@@ -1,20 +0,0 @@
1
- import { CvnPresenceIndicator } from "../";
2
- import { Credit } from "./Credit";
3
- import { ICardData } from "./Interfaces";
4
- export declare class CreditCardData extends Credit implements ICardData {
5
- static cardTypes: {
6
- name: string;
7
- regex: RegExp;
8
- }[];
9
- number: string;
10
- expMonth: string;
11
- expYear: string;
12
- cvn: string;
13
- cvnPresenceIndicator: CvnPresenceIndicator;
14
- cardHolderName: string;
15
- cardPresent: boolean;
16
- readerPresent: boolean;
17
- constructor();
18
- getCardType(): string;
19
- getShortExpiry(): string;
20
- }
@@ -1,57 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.CreditCardData = void 0;
19
- var __1 = require("../");
20
- var Credit_1 = require("./Credit");
21
- var CreditCardData = /** @class */ (function (_super) {
22
- __extends(CreditCardData, _super);
23
- function CreditCardData() {
24
- var _this = _super.call(this) || this;
25
- _this.cardPresent = false;
26
- _this.readerPresent = false;
27
- _this.cvnPresenceIndicator = __1.CvnPresenceIndicator.NotRequested;
28
- return _this;
29
- }
30
- CreditCardData.prototype.getCardType = function () {
31
- var number = this.number.replace(" ", "").replace("-", "");
32
- for (var _i = 0, _a = CreditCardData.cardTypes; _i < _a.length; _i++) {
33
- var type = _a[_i];
34
- if (type.regex.test(number)) {
35
- return type.name;
36
- }
37
- }
38
- return "Unknown";
39
- };
40
- CreditCardData.prototype.getShortExpiry = function () {
41
- if (this.expMonth != null && this.expYear != null) {
42
- return this.expMonth + this.expYear.slice(-2);
43
- }
44
- return '';
45
- };
46
- CreditCardData.cardTypes = [
47
- { name: "Visa", regex: /^4/ },
48
- { name: "MC", regex: /^(5[1-5]|2[2-7])/ },
49
- { name: "Amex", regex: /^3[47]/ },
50
- { name: "Diners", regex: /^3[0689]/ },
51
- { name: "EnRoute", regex: /^2(014|149)/ },
52
- { name: "Discover", regex: /^6([045]|22)/ },
53
- { name: "Jcb", regex: /^35/ },
54
- ];
55
- return CreditCardData;
56
- }(Credit_1.Credit));
57
- exports.CreditCardData = CreditCardData;
@@ -1,7 +0,0 @@
1
- import { EntryMethod } from "../";
2
- import { Credit } from "./Credit";
3
- import { ITrackData } from "./Interfaces";
4
- export declare class CreditTrackData extends Credit implements ITrackData {
5
- entryMethod: EntryMethod;
6
- value: string;
7
- }
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.CreditTrackData = void 0;
19
- var Credit_1 = require("./Credit");
20
- var CreditTrackData = /** @class */ (function (_super) {
21
- __extends(CreditTrackData, _super);
22
- function CreditTrackData() {
23
- return _super !== null && _super.apply(this, arguments) || this;
24
- }
25
- return CreditTrackData;
26
- }(Credit_1.Credit));
27
- exports.CreditTrackData = CreditTrackData;
@@ -1,40 +0,0 @@
1
- import { AuthorizationBuilder, EncryptionData, PaymentMethodType } from "../";
2
- import { IChargable, IEncryptable, IPinProtected, IPrePayable, IRefundable, IReversable } from "./Interfaces";
3
- import { PaymentMethod } from "./PaymentMethod";
4
- export declare abstract class Debit extends PaymentMethod implements IChargable, IEncryptable, IRefundable, IReversable, IPrePayable, IPinProtected {
5
- encryptionData: EncryptionData;
6
- paymentMethodType: PaymentMethodType;
7
- pinBlock: string;
8
- /**
9
- * Authorizes the payment method and captures the entire authorized amount
10
- *
11
- * @param string|number amount Amount to authorize
12
- *
13
- * @return AuthorizationBuilder
14
- */
15
- charge(amount?: string | number): AuthorizationBuilder;
16
- /**
17
- * Adds value to the payment method
18
- *
19
- * @param string|number amount Amount to add
20
- *
21
- * @return AuthorizationBuilder
22
- */
23
- addValue(amount?: string | number): AuthorizationBuilder;
24
- /**
25
- * Refunds the payment method
26
- *
27
- * @param string|number amount Amount to refund
28
- *
29
- * @return AuthorizationBuilder
30
- */
31
- refund(amount?: string | number): AuthorizationBuilder;
32
- /**
33
- * Reverses the payment method
34
- *
35
- * @param string|number amount Amount to reverse
36
- *
37
- * @return AuthorizationBuilder
38
- */
39
- reverse(amount?: string | number): AuthorizationBuilder;
40
- }
@@ -1,70 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.Debit = void 0;
19
- var __1 = require("../");
20
- var PaymentMethod_1 = require("./PaymentMethod");
21
- var Debit = /** @class */ (function (_super) {
22
- __extends(Debit, _super);
23
- function Debit() {
24
- var _this = _super !== null && _super.apply(this, arguments) || this;
25
- _this.paymentMethodType = __1.PaymentMethodType.Debit;
26
- return _this;
27
- }
28
- /**
29
- * Authorizes the payment method and captures the entire authorized amount
30
- *
31
- * @param string|number amount Amount to authorize
32
- *
33
- * @return AuthorizationBuilder
34
- */
35
- Debit.prototype.charge = function (amount) {
36
- return new __1.AuthorizationBuilder(__1.TransactionType.Sale, this).withAmount(amount);
37
- };
38
- /**
39
- * Adds value to the payment method
40
- *
41
- * @param string|number amount Amount to add
42
- *
43
- * @return AuthorizationBuilder
44
- */
45
- Debit.prototype.addValue = function (amount) {
46
- return new __1.AuthorizationBuilder(__1.TransactionType.AddValue, this).withAmount(amount);
47
- };
48
- /**
49
- * Refunds the payment method
50
- *
51
- * @param string|number amount Amount to refund
52
- *
53
- * @return AuthorizationBuilder
54
- */
55
- Debit.prototype.refund = function (amount) {
56
- return new __1.AuthorizationBuilder(__1.TransactionType.Refund, this).withAmount(amount);
57
- };
58
- /**
59
- * Reverses the payment method
60
- *
61
- * @param string|number amount Amount to reverse
62
- *
63
- * @return AuthorizationBuilder
64
- */
65
- Debit.prototype.reverse = function (amount) {
66
- return new __1.AuthorizationBuilder(__1.TransactionType.Reversal, this).withAmount(amount);
67
- };
68
- return Debit;
69
- }(PaymentMethod_1.PaymentMethod));
70
- exports.Debit = Debit;
@@ -1,7 +0,0 @@
1
- import { EntryMethod } from "../";
2
- import { Debit } from "./Debit";
3
- import { ITrackData } from "./Interfaces";
4
- export declare class DebitTrackData extends Debit implements ITrackData {
5
- entryMethod: EntryMethod;
6
- value: string;
7
- }
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.DebitTrackData = void 0;
19
- var Debit_1 = require("./Debit");
20
- var DebitTrackData = /** @class */ (function (_super) {
21
- __extends(DebitTrackData, _super);
22
- function DebitTrackData() {
23
- return _super !== null && _super.apply(this, arguments) || this;
24
- }
25
- return DebitTrackData;
26
- }(Debit_1.Debit));
27
- exports.DebitTrackData = DebitTrackData;
@@ -1,48 +0,0 @@
1
- import { AuthorizationBuilder, InquiryType, PaymentMethodType } from "../";
2
- import { IBalanceable, IChargable, IPinProtected, IPrePayable, IRefundable, IReversable } from "./Interfaces";
3
- import { PaymentMethod } from "./PaymentMethod";
4
- export declare abstract class EBT extends PaymentMethod implements IBalanceable, IChargable, IRefundable, IReversable, IPrePayable, IPinProtected {
5
- paymentMethodType: PaymentMethodType;
6
- pinBlock: string;
7
- /**
8
- * Authorizes the payment method and captures the entire authorized amount
9
- *
10
- * @param string|number amount Amount to authorize
11
- *
12
- * @return AuthorizationBuilder
13
- */
14
- charge(amount?: string | number): AuthorizationBuilder;
15
- /**
16
- * Adds value to the payment method
17
- *
18
- * @param string|number amount Amount to add
19
- *
20
- * @return AuthorizationBuilder
21
- */
22
- addValue(amount?: string | number): AuthorizationBuilder;
23
- /**
24
- * Inquires the balance of the payment method
25
- *
26
- * @param InquiryType inquiry Type of inquiry
27
- *
28
- * @return AuthorizationBuilder
29
- */
30
- balanceInquiry(inquiry?: InquiryType): AuthorizationBuilder;
31
- benefitWithdrawal(amount?: number | string): AuthorizationBuilder;
32
- /**
33
- * Refunds the payment method
34
- *
35
- * @param string|number amount Amount to refund
36
- *
37
- * @return AuthorizationBuilder
38
- */
39
- refund(amount?: string | number): AuthorizationBuilder;
40
- /**
41
- * Reverses the payment method
42
- *
43
- * @param string|number amount Amount to reverse
44
- *
45
- * @return AuthorizationBuilder
46
- */
47
- reverse(_amount?: string | number): AuthorizationBuilder;
48
- }