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,184 +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.PayFacBuilder = void 0;
19
- var _1 = require("./");
20
- var __1 = require("../");
21
- var PayFacBuilder = /** @class */ (function (_super) {
22
- __extends(PayFacBuilder, _super);
23
- function PayFacBuilder(type, modifer) {
24
- if (modifer === void 0) { modifer = __1.TransactionModifier.None; }
25
- var _this = _super.call(this) || this;
26
- _this.transactionType = type;
27
- _this.transactionModifier = modifer;
28
- return _this;
29
- }
30
- PayFacBuilder.prototype.setupValidations = function () { };
31
- PayFacBuilder.prototype.execute = function () {
32
- _super.prototype.execute.call(this);
33
- return __1.ServicesContainer.instance().getXmlClient().processPayFac(this);
34
- };
35
- PayFacBuilder.prototype.withBankAccountData = function (bankAccountData) {
36
- this.bankAccountData = bankAccountData;
37
- return this;
38
- };
39
- PayFacBuilder.prototype.withBeneficialOwnerData = function (beneficialOwnerData) {
40
- this.beneficialOwnerData = beneficialOwnerData;
41
- return this;
42
- };
43
- PayFacBuilder.prototype.withDeviceData = function (deviceData) {
44
- this.deviceData = deviceData;
45
- return this;
46
- };
47
- /// <summary>
48
- /// Required for partners ordering Portico devices. Valid values: [ UTC, PT, MST, MT, CT, ET, HST, AT, AST, AKST, ACT, EET, EAT, MET, NET, PLT, IST, BST, VST, CTT, JST, ACT, AET, SST, NST, MIT, CNT, AGT, CAT ]
49
- /// </summary>
50
- PayFacBuilder.prototype.withTimeZone = function (timezone) {
51
- this.timeZone = timezone;
52
- return this;
53
- };
54
- PayFacBuilder.prototype.withBusinessData = function (businessData) {
55
- this.businessData = businessData;
56
- return this;
57
- };
58
- PayFacBuilder.prototype.withSignificantOwnerData = function (significantOwnerData) {
59
- this.significantOwnerData = significantOwnerData;
60
- return this;
61
- };
62
- PayFacBuilder.prototype.withThreatRiskData = function (threatRiskData) {
63
- this.threatRiskData = threatRiskData;
64
- return this;
65
- };
66
- PayFacBuilder.prototype.withUserPersonalData = function (userPersonalData) {
67
- this.userPersonalData = userPersonalData;
68
- return this;
69
- };
70
- PayFacBuilder.prototype.withCreditCardData = function (creditCardInformation) {
71
- this.creditCardInformation = creditCardInformation;
72
- return this;
73
- };
74
- PayFacBuilder.prototype.withACHData = function (achInformation) {
75
- this.aCHInformation = achInformation;
76
- return this;
77
- };
78
- PayFacBuilder.prototype.withMailingAddress = function (mailingAddressInformation) {
79
- this.mailingAddressInformation = mailingAddressInformation;
80
- return this;
81
- };
82
- PayFacBuilder.prototype.withSecondaryBankAccountData = function (secondaryBankInformation) {
83
- this.secondaryBankInformation = secondaryBankInformation;
84
- return this;
85
- };
86
- PayFacBuilder.prototype.withGrossBillingSettleData = function (grossBillingInformation) {
87
- this.grossBillingInformation = grossBillingInformation;
88
- return this;
89
- };
90
- PayFacBuilder.prototype.withAccountNumber = function (accountNumber) {
91
- this.accountNumber = accountNumber;
92
- return this;
93
- };
94
- PayFacBuilder.prototype.withPassword = function (password) {
95
- this.password = password;
96
- return this;
97
- };
98
- PayFacBuilder.prototype.withAccountPermissions = function (accountPermissions) {
99
- this.accountPermissions = accountPermissions;
100
- return this;
101
- };
102
- PayFacBuilder.prototype.withPrimaryBankAccountOwner = function (primaryBankAccountOwner) {
103
- this.primaryBankAccountOwner = primaryBankAccountOwner;
104
- return this;
105
- };
106
- PayFacBuilder.prototype.withSecondaryBankAccountOwner = function (secondaryBankAccountOwner) {
107
- this.secondaryBankAccountOwner = secondaryBankAccountOwner;
108
- return this;
109
- };
110
- PayFacBuilder.prototype.withDocumentUploadData = function (docUploadData) {
111
- this.documentUploadData = docUploadData;
112
- return this;
113
- };
114
- PayFacBuilder.prototype.withSSORequestData = function (ssoRequestData) {
115
- this.sSORequestData = ssoRequestData;
116
- return this;
117
- };
118
- PayFacBuilder.prototype.withNegativeLimit = function (negativeLimit) {
119
- this.negativeLimit = negativeLimit;
120
- return this;
121
- };
122
- PayFacBuilder.prototype.withRenewalAccountData = function (renewalAccountData) {
123
- this.renewalAccountData = renewalAccountData;
124
- return this;
125
- };
126
- PayFacBuilder.prototype.withAmount = function (amount) {
127
- this.amount = amount;
128
- return this;
129
- };
130
- PayFacBuilder.prototype.withFlashFundsPaymentCardData = function (cardData) {
131
- this.FlashFundsPaymentCardData = cardData;
132
- return this;
133
- };
134
- PayFacBuilder.prototype.withReceivingAccountNumber = function (receivingAccountNumber) {
135
- this.receivingAccountNumber = receivingAccountNumber;
136
- return this;
137
- };
138
- PayFacBuilder.prototype.withAllowPending = function (allowPending) {
139
- this.allowPending = allowPending;
140
- return this;
141
- };
142
- PayFacBuilder.prototype.withCCAmount = function (ccAmount) {
143
- this.cCAmount = ccAmount;
144
- return this;
145
- };
146
- PayFacBuilder.prototype.withRequireCCRefund = function (requireCCRefund) {
147
- this.requireCCRefund = requireCCRefund;
148
- return this;
149
- };
150
- PayFacBuilder.prototype.withTransNum = function (transNum) {
151
- this.transNum = transNum;
152
- return this;
153
- };
154
- PayFacBuilder.prototype.withGatewayTransactionId = function (gatewayTransactionId) {
155
- this.gatewayTransactionId = gatewayTransactionId;
156
- return this;
157
- };
158
- PayFacBuilder.prototype.withCardBrandTransactionId = function (cardBrandTransactionId) {
159
- this.cardBrandTransactionId = cardBrandTransactionId;
160
- return this;
161
- };
162
- PayFacBuilder.prototype.withGlobaltransId = function (globaltransId) {
163
- this.globaltransId = globaltransId;
164
- return this;
165
- };
166
- PayFacBuilder.prototype.withGlobalTransSource = function (globalTransSource) {
167
- this.globalTransSource = globalTransSource;
168
- return this;
169
- };
170
- PayFacBuilder.prototype.withExternalID = function (externalId) {
171
- this.externalID = externalId;
172
- return this;
173
- };
174
- PayFacBuilder.prototype.withSourceEmail = function (sourceEmail) {
175
- this.sourceEmail = sourceEmail;
176
- return this;
177
- };
178
- PayFacBuilder.prototype.withOrderDevice = function (orderDevice) {
179
- this.orderDevice = orderDevice;
180
- return this;
181
- };
182
- return PayFacBuilder;
183
- }(_1.BaseBuilder));
184
- exports.PayFacBuilder = PayFacBuilder;
@@ -1,13 +0,0 @@
1
- import { IRecurringEntity, TransactionType } from "../";
2
- import { TransactionBuilder } from "./TransactionBuilder";
3
- import { IDictionary } from "./BaseBuilder";
4
- export declare class RecurringBuilder<T extends IRecurringEntity> extends TransactionBuilder<T> {
5
- key: string;
6
- orderId: string;
7
- entity: IRecurringEntity | Function;
8
- searchCriteria: IDictionary<string>;
9
- constructor(type: TransactionType, entity?: IRecurringEntity | Function);
10
- addSearchCriteria(key: string, value: string): this;
11
- execute(): Promise<T>;
12
- setupValidations(): void;
13
- }
@@ -1,47 +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.RecurringBuilder = void 0;
19
- var __1 = require("../");
20
- var TransactionBuilder_1 = require("./TransactionBuilder");
21
- var RecurringBuilder = /** @class */ (function (_super) {
22
- __extends(RecurringBuilder, _super);
23
- function RecurringBuilder(type, entity) {
24
- var _this = _super.call(this, type) || this;
25
- _this.searchCriteria = {};
26
- if (entity) {
27
- _this.entity = entity;
28
- _this.key = entity.key;
29
- }
30
- return _this;
31
- }
32
- RecurringBuilder.prototype.addSearchCriteria = function (key, value) {
33
- this.searchCriteria[key] = value;
34
- return this;
35
- };
36
- RecurringBuilder.prototype.execute = function () {
37
- _super.prototype.execute.call(this);
38
- return __1.ServicesContainer.instance()
39
- .getRecurringClient()
40
- .processRecurring(this);
41
- };
42
- RecurringBuilder.prototype.setupValidations = function () {
43
- // todo
44
- };
45
- return RecurringBuilder;
46
- }(TransactionBuilder_1.TransactionBuilder));
47
- exports.RecurringBuilder = RecurringBuilder;
@@ -1,8 +0,0 @@
1
- import { ReportType, TimeZoneConversion } from "../";
2
- import { BaseBuilder } from "./BaseBuilder";
3
- export declare abstract class ReportBuilder<T> extends BaseBuilder<T> {
4
- reportType: ReportType;
5
- timeZoneConversion: TimeZoneConversion;
6
- constructor(type: ReportType);
7
- execute(): Promise<T>;
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.ReportBuilder = void 0;
19
- var __1 = require("../");
20
- var BaseBuilder_1 = require("./BaseBuilder");
21
- var ReportBuilder = /** @class */ (function (_super) {
22
- __extends(ReportBuilder, _super);
23
- function ReportBuilder(type) {
24
- var _this = _super.call(this) || this;
25
- _this.reportType = type;
26
- return _this;
27
- }
28
- ReportBuilder.prototype.execute = function () {
29
- _super.prototype.execute.call(this);
30
- return __1.ServicesContainer.instance()
31
- .getClient()
32
- .processReport(this);
33
- };
34
- return ReportBuilder;
35
- }(BaseBuilder_1.BaseBuilder));
36
- exports.ReportBuilder = ReportBuilder;
@@ -1,10 +0,0 @@
1
- import { IPaymentMethod, PaymentMethod, TransactionModifier, TransactionType } from "../";
2
- import { BaseBuilder } from "./BaseBuilder";
3
- export declare abstract class TransactionBuilder<T> extends BaseBuilder<T> {
4
- paymentMethod: PaymentMethod;
5
- transactionType: TransactionType;
6
- transactionModifier: TransactionModifier;
7
- constructor(type: TransactionType, paymentMethod?: IPaymentMethod);
8
- withModifier(modifier?: TransactionModifier): this;
9
- withPaymentMethod(paymentMethod?: IPaymentMethod): this;
10
- }
@@ -1,46 +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.TransactionBuilder = void 0;
19
- var __1 = require("../");
20
- var BaseBuilder_1 = require("./BaseBuilder");
21
- var TransactionBuilder = /** @class */ (function (_super) {
22
- __extends(TransactionBuilder, _super);
23
- function TransactionBuilder(type, paymentMethod) {
24
- var _this = _super.call(this) || this;
25
- _this.transactionModifier = __1.TransactionModifier.None;
26
- _this.transactionType = type;
27
- if (paymentMethod) {
28
- _this.paymentMethod = paymentMethod;
29
- }
30
- return _this;
31
- }
32
- TransactionBuilder.prototype.withModifier = function (modifier) {
33
- if (modifier !== undefined) {
34
- this.transactionModifier = modifier;
35
- }
36
- return this;
37
- };
38
- TransactionBuilder.prototype.withPaymentMethod = function (paymentMethod) {
39
- if (paymentMethod !== undefined) {
40
- this.paymentMethod = paymentMethod;
41
- }
42
- return this;
43
- };
44
- return TransactionBuilder;
45
- }(BaseBuilder_1.BaseBuilder));
46
- exports.TransactionBuilder = TransactionBuilder;
@@ -1,15 +0,0 @@
1
- import { ReportBuilder } from "./ReportBuilder";
2
- import { IDictionary } from "./BaseBuilder";
3
- export declare class TransactionReportBuilder<T> extends ReportBuilder<T> {
4
- deviceId: string;
5
- endDate: Date;
6
- startDate: Date;
7
- transactionId: string;
8
- searchCriteria: IDictionary<string>;
9
- setupValidations(): void;
10
- withDeviceId(deviceId?: string): this;
11
- withEndDate(endDate?: Date): this;
12
- withStartDate(startDate?: Date): this;
13
- withTransactionId(transactionId?: string): this;
14
- where(criteria: string, value: string): this;
15
- }
@@ -1,79 +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.TransactionReportBuilder = void 0;
19
- var __1 = require("../");
20
- var ReportBuilder_1 = require("./ReportBuilder");
21
- var TransactionReportBuilder = /** @class */ (function (_super) {
22
- __extends(TransactionReportBuilder, _super);
23
- function TransactionReportBuilder() {
24
- return _super !== null && _super.apply(this, arguments) || this;
25
- }
26
- TransactionReportBuilder.prototype.setupValidations = function () {
27
- this.validations
28
- .of("reportType", __1.ReportType.TransactionDetail)
29
- .check("transactionId")
30
- .isNotNull()
31
- .check("transactionId")
32
- .isNotEmpty()
33
- .check("deviceId")
34
- .isNull()
35
- .check("startDate")
36
- .isNull()
37
- .check("endDate")
38
- .isNull();
39
- this.validations
40
- .of("reportType", __1.ReportType.Activity)
41
- .check("transactionId")
42
- .isNull();
43
- };
44
- TransactionReportBuilder.prototype.withDeviceId = function (deviceId) {
45
- if (deviceId !== undefined) {
46
- this.deviceId = deviceId;
47
- }
48
- return this;
49
- };
50
- TransactionReportBuilder.prototype.withEndDate = function (endDate) {
51
- if (endDate !== undefined) {
52
- this.endDate = endDate;
53
- }
54
- return this;
55
- };
56
- TransactionReportBuilder.prototype.withStartDate = function (startDate) {
57
- if (startDate !== undefined) {
58
- this.startDate = startDate;
59
- }
60
- return this;
61
- };
62
- TransactionReportBuilder.prototype.withTransactionId = function (transactionId) {
63
- if (transactionId !== undefined) {
64
- this.transactionId = transactionId;
65
- }
66
- return this;
67
- };
68
- TransactionReportBuilder.prototype.where = function (criteria, value) {
69
- if (criteria !== undefined && value !== undefined) {
70
- if (this.searchCriteria == undefined) {
71
- this.searchCriteria = {};
72
- }
73
- this.searchCriteria[criteria] = value;
74
- }
75
- return this;
76
- };
77
- return TransactionReportBuilder;
78
- }(ReportBuilder_1.ReportBuilder));
79
- exports.TransactionReportBuilder = TransactionReportBuilder;
@@ -1,7 +0,0 @@
1
- export * from "./BaseBuilder";
2
- export * from "./AuthorizationBuilder";
3
- export * from "./ManagementBuilder";
4
- export * from "./RecurringBuilder";
5
- export * from "./ReportBuilder";
6
- export * from "./TransactionBuilder";
7
- export * from "./TransactionReportBuilder";
@@ -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("./BaseBuilder"), exports);
14
- __exportStar(require("./AuthorizationBuilder"), exports);
15
- __exportStar(require("./ManagementBuilder"), exports);
16
- __exportStar(require("./RecurringBuilder"), exports);
17
- __exportStar(require("./ReportBuilder"), exports);
18
- __exportStar(require("./TransactionBuilder"), exports);
19
- __exportStar(require("./TransactionReportBuilder"), exports);
@@ -1,13 +0,0 @@
1
- import { AddressType } from "../Entities";
2
- export declare class Address {
3
- type: AddressType;
4
- streetAddress1: string;
5
- streetAddress2: string;
6
- streetAddress3: string;
7
- city: string;
8
- province: string;
9
- postalCode: string;
10
- country: string;
11
- get state(): string;
12
- set state(value: string);
13
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Address = void 0;
4
- var Address = /** @class */ (function () {
5
- function Address() {
6
- }
7
- Object.defineProperty(Address.prototype, "state", {
8
- get: function () {
9
- return this.province;
10
- },
11
- set: function (value) {
12
- this.province = value;
13
- },
14
- enumerable: false,
15
- configurable: true
16
- });
17
- return Address;
18
- }());
19
- exports.Address = Address;
@@ -1,6 +0,0 @@
1
- export declare class BatchSummary {
2
- id: string;
3
- transactionCount: number;
4
- totalAmount: string;
5
- sequenceNumber: string;
6
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BatchSummary = void 0;
4
- var BatchSummary = /** @class */ (function () {
5
- function BatchSummary() {
6
- }
7
- return BatchSummary;
8
- }());
9
- exports.BatchSummary = BatchSummary;
@@ -1,64 +0,0 @@
1
- import { Address, IPaymentMethod, RecurringPaymentMethod } from "../";
2
- import { RecurringEntity } from "./RecurringEntity";
3
- export declare class Customer extends RecurringEntity<Customer> {
4
- /**
5
- * Customer's title
6
- */
7
- title: string;
8
- /**
9
- * Customer's first name
10
- */
11
- firstName: string;
12
- /**
13
- * Customer's last name
14
- */
15
- lastName: string;
16
- /**
17
- * Customer's company
18
- */
19
- company: string;
20
- /**
21
- * Customer's address
22
- */
23
- address: Address;
24
- /**
25
- * Customer's home phone number
26
- */
27
- homePhone: string;
28
- /**
29
- * Customer's work phone number
30
- */
31
- workPhone: string;
32
- /**
33
- * Customer's fax phone number
34
- */
35
- fax: string;
36
- /**
37
- * Customer's mobile phone number
38
- */
39
- mobilePhone: string;
40
- /**
41
- * Customer's email address
42
- */
43
- email: string;
44
- /**
45
- * Customer comments
46
- */
47
- comments: string;
48
- /**
49
- * Customer's department within its organization
50
- */
51
- department: string;
52
- /**
53
- * Customer resource's status
54
- */
55
- status: string;
56
- /**
57
- * Adds a payment method to the customer
58
- *
59
- * @param paymentId An application derived ID for the payment method
60
- * @param paymentMethod The payment method
61
- * @returns RecurringPaymentMethod
62
- */
63
- addPaymentMethod(paymentId: string, paymentMethod: IPaymentMethod): RecurringPaymentMethod;
64
- }
@@ -1,47 +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.Customer = void 0;
19
- var __1 = require("../");
20
- var RecurringEntity_1 = require("./RecurringEntity");
21
- var Customer = /** @class */ (function (_super) {
22
- __extends(Customer, _super);
23
- function Customer() {
24
- return _super !== null && _super.apply(this, arguments) || this;
25
- }
26
- /**
27
- * Adds a payment method to the customer
28
- *
29
- * @param paymentId An application derived ID for the payment method
30
- * @param paymentMethod The payment method
31
- * @returns RecurringPaymentMethod
32
- */
33
- Customer.prototype.addPaymentMethod = function (paymentId, paymentMethod) {
34
- var nameOnAccount = this.firstName + " " + this.lastName;
35
- if (!this.firstName && !this.lastName) {
36
- nameOnAccount = this.company;
37
- }
38
- var result = new __1.RecurringPaymentMethod(paymentMethod);
39
- result.address = this.address;
40
- result.customerKey = this.key;
41
- result.id = paymentId;
42
- result.nameOnAccount = nameOnAccount;
43
- return result;
44
- };
45
- return Customer;
46
- }(RecurringEntity_1.RecurringEntity));
47
- exports.Customer = Customer;
@@ -1,13 +0,0 @@
1
- export declare class DocumentUploadData {
2
- documentName: string;
3
- transactionReference: string;
4
- docType: string;
5
- get DocType(): string;
6
- set DocType(value: string);
7
- document: string;
8
- docCategory: string;
9
- documentPath: string;
10
- DocumentPath(value: string): void;
11
- private getByteArray;
12
- _validDocTypes: Array<string>;
13
- }