globalpayments-api 1.4.8 → 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 (223) hide show
  1. package/CHANGELOG.md +11 -1
  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/RecurringBuilder.d.ts +0 -13
  16. package/lib/src/Builders/RecurringBuilder.js +0 -47
  17. package/lib/src/Builders/ReportBuilder.d.ts +0 -8
  18. package/lib/src/Builders/ReportBuilder.js +0 -36
  19. package/lib/src/Builders/TransactionBuilder.d.ts +0 -10
  20. package/lib/src/Builders/TransactionBuilder.js +0 -46
  21. package/lib/src/Builders/TransactionReportBuilder.d.ts +0 -15
  22. package/lib/src/Builders/TransactionReportBuilder.js +0 -79
  23. package/lib/src/Builders/index.d.ts +0 -7
  24. package/lib/src/Builders/index.js +0 -19
  25. package/lib/src/Entities/Address.d.ts +0 -13
  26. package/lib/src/Entities/Address.js +0 -19
  27. package/lib/src/Entities/BatchSummary.d.ts +0 -6
  28. package/lib/src/Entities/BatchSummary.js +0 -9
  29. package/lib/src/Entities/Customer.d.ts +0 -64
  30. package/lib/src/Entities/Customer.js +0 -47
  31. package/lib/src/Entities/EcommerceInfo.d.ts +0 -12
  32. package/lib/src/Entities/EcommerceInfo.js +0 -14
  33. package/lib/src/Entities/EncryptionData.d.ts +0 -6
  34. package/lib/src/Entities/EncryptionData.js +0 -9
  35. package/lib/src/Entities/Enums.d.ts +0 -230
  36. package/lib/src/Entities/Enums.js +0 -267
  37. package/lib/src/Entities/Errors.d.ts +0 -23
  38. package/lib/src/Entities/Errors.js +0 -106
  39. package/lib/src/Entities/HostedPaymentData.d.ts +0 -10
  40. package/lib/src/Entities/HostedPaymentData.js +0 -10
  41. package/lib/src/Entities/RecurringEntity.d.ts +0 -14
  42. package/lib/src/Entities/RecurringEntity.js +0 -86
  43. package/lib/src/Entities/Schedule.d.ts +0 -47
  44. package/lib/src/Entities/Schedule.js +0 -253
  45. package/lib/src/Entities/Transaction.d.ts +0 -76
  46. package/lib/src/Entities/Transaction.js +0 -108
  47. package/lib/src/Entities/TransactionSummary.d.ts +0 -61
  48. package/lib/src/Entities/TransactionSummary.js +0 -9
  49. package/lib/src/Entities/index.d.ts +0 -12
  50. package/lib/src/Entities/index.js +0 -24
  51. package/lib/src/Gateways/Gateway.d.ts +0 -10
  52. package/lib/src/Gateways/Gateway.js +0 -42
  53. package/lib/src/Gateways/IPaymentGateway.d.ts +0 -8
  54. package/lib/src/Gateways/IPaymentGateway.js +0 -2
  55. package/lib/src/Gateways/IRecurringService.d.ts +0 -6
  56. package/lib/src/Gateways/IRecurringService.js +0 -2
  57. package/lib/src/Gateways/PayPlanConnector.d.ts +0 -42
  58. package/lib/src/Gateways/PayPlanConnector.js +0 -552
  59. package/lib/src/Gateways/PorticoConnector.d.ts +0 -44
  60. package/lib/src/Gateways/PorticoConnector.js +0 -1018
  61. package/lib/src/Gateways/RealexConnector.d.ts +0 -30
  62. package/lib/src/Gateways/RealexConnector.js +0 -523
  63. package/lib/src/Gateways/RestGateway.d.ts +0 -6
  64. package/lib/src/Gateways/RestGateway.js +0 -31
  65. package/lib/src/Gateways/XmlGateway.d.ts +0 -6
  66. package/lib/src/Gateways/XmlGateway.js +0 -38
  67. package/lib/src/Gateways/https-wrapper.d.ts +0 -3
  68. package/lib/src/Gateways/https-wrapper.js +0 -35
  69. package/lib/src/Gateways/index.d.ts +0 -7
  70. package/lib/src/Gateways/index.js +0 -19
  71. package/lib/src/HostedPaymentConfig.d.ts +0 -12
  72. package/lib/src/HostedPaymentConfig.js +0 -9
  73. package/lib/src/PaymentMethods/Cash.d.ts +0 -8
  74. package/lib/src/PaymentMethods/Cash.js +0 -36
  75. package/lib/src/PaymentMethods/Credit.d.ts +0 -85
  76. package/lib/src/PaymentMethods/Credit.js +0 -106
  77. package/lib/src/PaymentMethods/CreditCardData.d.ts +0 -19
  78. package/lib/src/PaymentMethods/CreditCardData.js +0 -51
  79. package/lib/src/PaymentMethods/CreditTrackData.d.ts +0 -7
  80. package/lib/src/PaymentMethods/CreditTrackData.js +0 -27
  81. package/lib/src/PaymentMethods/Debit.d.ts +0 -40
  82. package/lib/src/PaymentMethods/Debit.js +0 -70
  83. package/lib/src/PaymentMethods/DebitTrackData.d.ts +0 -7
  84. package/lib/src/PaymentMethods/DebitTrackData.js +0 -27
  85. package/lib/src/PaymentMethods/EBT.d.ts +0 -48
  86. package/lib/src/PaymentMethods/EBT.js +0 -88
  87. package/lib/src/PaymentMethods/EBTCardData.d.ts +0 -16
  88. package/lib/src/PaymentMethods/EBTCardData.js +0 -32
  89. package/lib/src/PaymentMethods/EBTTrackData.d.ts +0 -8
  90. package/lib/src/PaymentMethods/EBTTrackData.js +0 -27
  91. package/lib/src/PaymentMethods/ECheck.d.ts +0 -32
  92. package/lib/src/PaymentMethods/ECheck.js +0 -40
  93. package/lib/src/PaymentMethods/GiftCard.d.ts +0 -131
  94. package/lib/src/PaymentMethods/GiftCard.js +0 -205
  95. package/lib/src/PaymentMethods/Interfaces.d.ts +0 -55
  96. package/lib/src/PaymentMethods/Interfaces.js +0 -2
  97. package/lib/src/PaymentMethods/PaymentMethod.d.ts +0 -19
  98. package/lib/src/PaymentMethods/PaymentMethod.js +0 -114
  99. package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +0 -23
  100. package/lib/src/PaymentMethods/RecurringPaymentMethod.js +0 -77
  101. package/lib/src/PaymentMethods/TransactionReference.d.ts +0 -10
  102. package/lib/src/PaymentMethods/TransactionReference.js +0 -12
  103. package/lib/src/PaymentMethods/index.d.ts +0 -15
  104. package/lib/src/PaymentMethods/index.js +0 -27
  105. package/lib/src/Services/BatchService.d.ts +0 -4
  106. package/lib/src/Services/BatchService.js +0 -17
  107. package/lib/src/Services/CheckService.d.ts +0 -6
  108. package/lib/src/Services/CheckService.js +0 -20
  109. package/lib/src/Services/CreditService.d.ts +0 -12
  110. package/lib/src/Services/CreditService.js +0 -54
  111. package/lib/src/Services/DebitService.d.ts +0 -7
  112. package/lib/src/Services/DebitService.js +0 -28
  113. package/lib/src/Services/EBTService.d.ts +0 -8
  114. package/lib/src/Services/EBTService.js +0 -32
  115. package/lib/src/Services/GiftService.d.ts +0 -16
  116. package/lib/src/Services/GiftService.js +0 -54
  117. package/lib/src/Services/HostedService.d.ts +0 -9
  118. package/lib/src/Services/HostedService.js +0 -59
  119. package/lib/src/Services/RecurringService.d.ts +0 -8
  120. package/lib/src/Services/RecurringService.js +0 -27
  121. package/lib/src/Services/ReportingService.d.ts +0 -6
  122. package/lib/src/Services/ReportingService.js +0 -19
  123. package/lib/src/Services/index.d.ts +0 -9
  124. package/lib/src/Services/index.js +0 -21
  125. package/lib/src/ServicesConfig.d.ts +0 -23
  126. package/lib/src/ServicesConfig.js +0 -50
  127. package/lib/src/ServicesContainer.d.ts +0 -11
  128. package/lib/src/ServicesContainer.js +0 -73
  129. package/lib/src/Utils/GenerationUtils.d.ts +0 -5
  130. package/lib/src/Utils/GenerationUtils.js +0 -36
  131. package/lib/src/Utils/InputValidation.d.ts +0 -12
  132. package/lib/src/Utils/InputValidation.js +0 -72
  133. package/lib/src/Utils/Sha1.d.ts +0 -6
  134. package/lib/src/Utils/Sha1.js +0 -225
  135. package/lib/src/Utils/StringUtils.d.ts +0 -6
  136. package/lib/src/Utils/StringUtils.js +0 -53
  137. package/lib/src/Utils/index.d.ts +0 -2
  138. package/lib/src/Utils/index.js +0 -14
  139. package/lib/src/index.d.ts +0 -11
  140. package/lib/src/index.js +0 -27
  141. package/lib/test/Data/TestCards.d.ts +0 -24
  142. package/lib/test/Data/TestCards.js +0 -232
  143. package/lib/test/Data/TestChecks.d.ts +0 -4
  144. package/lib/test/Data/TestChecks.js +0 -32
  145. package/lib/test/Data/index.d.ts +0 -2
  146. package/lib/test/Data/index.js +0 -14
  147. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
  148. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -112
  149. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
  150. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -483
  151. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
  152. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -83
  153. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
  154. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1720
  155. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
  156. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -83
  157. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
  158. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1757
  159. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
  160. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -682
  161. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
  162. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2218
  163. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
  164. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -708
  165. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
  166. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -151
  167. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
  168. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -171
  169. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
  170. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -192
  171. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
  172. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -377
  173. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
  174. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -196
  175. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
  176. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -47
  177. package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.d.ts +0 -1
  178. package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js +0 -4373
  179. package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.d.ts +0 -1
  180. package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js +0 -758
  181. package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.d.ts +0 -1
  182. package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js +0 -2399
  183. package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.d.ts +0 -1
  184. package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js +0 -1656
  185. package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.d.ts +0 -1
  186. package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js +0 -5650
  187. package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.d.ts +0 -1
  188. package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js +0 -1985
  189. package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.d.ts +0 -1
  190. package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js +0 -2369
  191. package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.d.ts +0 -1
  192. package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js +0 -1703
  193. package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.d.ts +0 -1
  194. package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js +0 -2053
  195. package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.d.ts +0 -1
  196. package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js +0 -2469
  197. package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.d.ts +0 -1
  198. package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js +0 -3116
  199. package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.d.ts +0 -1
  200. package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js +0 -2031
  201. package/lib/test/Integration/Gateways/RealexConnector/CreditTest.d.ts +0 -1
  202. package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js +0 -322
  203. package/lib/test/Integration/Gateways/RealexConnector/HppTest.d.ts +0 -1
  204. package/lib/test/Integration/Gateways/RealexConnector/HppTest.js +0 -98
  205. package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.d.ts +0 -1
  206. package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js +0 -263
  207. package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
  208. package/lib/test/Integration/Services/CheckServiceTest.js +0 -98
  209. package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
  210. package/lib/test/Integration/Services/CreditServiceTest.js +0 -313
  211. package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
  212. package/lib/test/Integration/Services/DebitServiceTest.js +0 -154
  213. package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
  214. package/lib/test/Integration/Services/EBTServiceTest.js +0 -135
  215. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
  216. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -161
  217. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
  218. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -139
  219. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
  220. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -202
  221. package/lib/test/Unit/Gateways/RealexConnector/CreditTest.d.ts +0 -1
  222. package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js +0 -29
  223. package/logger.txt +0 -4
@@ -1,267 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentDataSourceType = exports.MobilePaymentMethodType = exports.TransactionType = exports.TransactionModifier = exports.TimeZoneConversion = exports.TaxType = exports.StoredCredentialInitiator = exports.SecCode = exports.ScheduleFrequency = exports.ReportType = exports.RecurringType = exports.RecurringSequence = exports.ReasonCode = exports.PaymentSchedule = exports.PaymentMethodType = exports.InquiryType = exports.HppVersion = exports.GiftEntryMethod = exports.FraudFilterMode = exports.ExceptionCodes = exports.EntryMethod = exports.EmailReceipt = exports.EcommerceChannel = exports.CvnPresenceIndicator = exports.CurrencyType = exports.CheckType = exports.AliasAction = exports.AddressType = exports.AccountType = void 0;
4
- var AccountType;
5
- (function (AccountType) {
6
- AccountType["Checking"] = "CHECKING";
7
- AccountType["Savings"] = "SAVINGS";
8
- })(AccountType = exports.AccountType || (exports.AccountType = {}));
9
- var AddressType;
10
- (function (AddressType) {
11
- AddressType[AddressType["Billing"] = 0] = "Billing";
12
- AddressType[AddressType["Shipping"] = 1] = "Shipping";
13
- })(AddressType = exports.AddressType || (exports.AddressType = {}));
14
- var AliasAction;
15
- (function (AliasAction) {
16
- AliasAction["Create"] = "CREATE";
17
- AliasAction["Add"] = "ADD";
18
- AliasAction["Delete"] = "DELETE";
19
- })(AliasAction = exports.AliasAction || (exports.AliasAction = {}));
20
- var CheckType;
21
- (function (CheckType) {
22
- CheckType["Personal"] = "PERSONAL";
23
- CheckType["Business"] = "BUSINESS";
24
- CheckType["Payroll"] = "PAYROLL";
25
- })(CheckType = exports.CheckType || (exports.CheckType = {}));
26
- var CurrencyType;
27
- (function (CurrencyType) {
28
- CurrencyType[CurrencyType["CURRENCY"] = 0] = "CURRENCY";
29
- CurrencyType[CurrencyType["POINTS"] = 1] = "POINTS";
30
- })(CurrencyType = exports.CurrencyType || (exports.CurrencyType = {}));
31
- var CvnPresenceIndicator;
32
- (function (CvnPresenceIndicator) {
33
- CvnPresenceIndicator[CvnPresenceIndicator["Present"] = 1] = "Present";
34
- CvnPresenceIndicator[CvnPresenceIndicator["Illegible"] = 2] = "Illegible";
35
- CvnPresenceIndicator[CvnPresenceIndicator["NotOnCard"] = 3] = "NotOnCard";
36
- CvnPresenceIndicator[CvnPresenceIndicator["NotRequested"] = 4] = "NotRequested";
37
- })(CvnPresenceIndicator = exports.CvnPresenceIndicator || (exports.CvnPresenceIndicator = {}));
38
- var EcommerceChannel;
39
- (function (EcommerceChannel) {
40
- EcommerceChannel["Ecom"] = "ECOM";
41
- EcommerceChannel["Moto"] = "MOTO";
42
- })(EcommerceChannel = exports.EcommerceChannel || (exports.EcommerceChannel = {}));
43
- var EmailReceipt;
44
- (function (EmailReceipt) {
45
- EmailReceipt["Never"] = "Never";
46
- EmailReceipt["All"] = "All";
47
- EmailReceipt["Approvals"] = "Approvals";
48
- EmailReceipt["Declines"] = "Declines";
49
- })(EmailReceipt = exports.EmailReceipt || (exports.EmailReceipt = {}));
50
- var EntryMethod;
51
- (function (EntryMethod) {
52
- EntryMethod["Swipe"] = "SWIPE";
53
- EntryMethod["Proximity"] = "PROXIMITY";
54
- EntryMethod["Manual"] = "MANUAL";
55
- })(EntryMethod = exports.EntryMethod || (exports.EntryMethod = {}));
56
- var ExceptionCodes;
57
- (function (ExceptionCodes) {
58
- // general codes
59
- ExceptionCodes[ExceptionCodes["AuthenticationError"] = 0] = "AuthenticationError";
60
- ExceptionCodes[ExceptionCodes["InvalidConfiguration"] = 1] = "InvalidConfiguration";
61
- // input codes
62
- ExceptionCodes[ExceptionCodes["InvalidAmount"] = 2] = "InvalidAmount";
63
- ExceptionCodes[ExceptionCodes["MissingCurrency"] = 3] = "MissingCurrency";
64
- ExceptionCodes[ExceptionCodes["InvalidCurrency"] = 4] = "InvalidCurrency";
65
- ExceptionCodes[ExceptionCodes["InvalidDate"] = 5] = "InvalidDate";
66
- ExceptionCodes[ExceptionCodes["MissingCheckName"] = 6] = "MissingCheckName";
67
- ExceptionCodes[ExceptionCodes["InvalidPhoneNumber"] = 7] = "InvalidPhoneNumber";
68
- ExceptionCodes[ExceptionCodes["InvalidZipCode"] = 8] = "InvalidZipCode";
69
- ExceptionCodes[ExceptionCodes["InvalidEmailAddress"] = 9] = "InvalidEmailAddress";
70
- ExceptionCodes[ExceptionCodes["InvalidInputLength"] = 10] = "InvalidInputLength";
71
- // gateway codes
72
- ExceptionCodes[ExceptionCodes["UnknownGatewayError"] = 11] = "UnknownGatewayError";
73
- ExceptionCodes[ExceptionCodes["InvalidOriginalTransaction"] = 12] = "InvalidOriginalTransaction";
74
- ExceptionCodes[ExceptionCodes["NoOpenBatch"] = 13] = "NoOpenBatch";
75
- ExceptionCodes[ExceptionCodes["InvalidCpcData"] = 14] = "InvalidCpcData";
76
- ExceptionCodes[ExceptionCodes["InvalidCardData"] = 15] = "InvalidCardData";
77
- ExceptionCodes[ExceptionCodes["InvalidNumber"] = 16] = "InvalidNumber";
78
- ExceptionCodes[ExceptionCodes["GatewayTimeout"] = 17] = "GatewayTimeout";
79
- ExceptionCodes[ExceptionCodes["UnexpectedGatewayResponse"] = 18] = "UnexpectedGatewayResponse";
80
- ExceptionCodes[ExceptionCodes["GatewayTimeoutReversalError"] = 19] = "GatewayTimeoutReversalError";
81
- ExceptionCodes[ExceptionCodes["GatewayError"] = 20] = "GatewayError";
82
- ExceptionCodes[ExceptionCodes["UnexpectedGatewayError"] = 21] = "UnexpectedGatewayError";
83
- // credit issuer codes
84
- ExceptionCodes[ExceptionCodes["IncorrectNumber"] = 22] = "IncorrectNumber";
85
- ExceptionCodes[ExceptionCodes["ExpiredCard"] = 23] = "ExpiredCard";
86
- ExceptionCodes[ExceptionCodes["InvalidPin"] = 24] = "InvalidPin";
87
- ExceptionCodes[ExceptionCodes["PinEntriesExceeded"] = 25] = "PinEntriesExceeded";
88
- ExceptionCodes[ExceptionCodes["InvalidExpiry"] = 26] = "InvalidExpiry";
89
- ExceptionCodes[ExceptionCodes["PinVerification"] = 27] = "PinVerification";
90
- ExceptionCodes[ExceptionCodes["IssuerTimeout"] = 28] = "IssuerTimeout";
91
- ExceptionCodes[ExceptionCodes["IncorrectCvc"] = 29] = "IncorrectCvc";
92
- ExceptionCodes[ExceptionCodes["CardDeclined"] = 30] = "CardDeclined";
93
- ExceptionCodes[ExceptionCodes["ProcessingError"] = 31] = "ProcessingError";
94
- ExceptionCodes[ExceptionCodes["IssuerTimeoutReversalError"] = 32] = "IssuerTimeoutReversalError";
95
- ExceptionCodes[ExceptionCodes["UnknownCreditError"] = 33] = "UnknownCreditError";
96
- ExceptionCodes[ExceptionCodes["PossibleFraudDetected"] = 34] = "PossibleFraudDetected";
97
- // gift codes
98
- ExceptionCodes[ExceptionCodes["UnknownGiftError"] = 35] = "UnknownGiftError";
99
- ExceptionCodes[ExceptionCodes["PartialApproval"] = 36] = "PartialApproval";
100
- })(ExceptionCodes = exports.ExceptionCodes || (exports.ExceptionCodes = {}));
101
- var FraudFilterMode;
102
- (function (FraudFilterMode) {
103
- FraudFilterMode["None"] = "NONE";
104
- FraudFilterMode["Off"] = "OFF";
105
- FraudFilterMode["Active"] = "ACTIVE";
106
- FraudFilterMode["Passive"] = "PASSIVE";
107
- })(FraudFilterMode = exports.FraudFilterMode || (exports.FraudFilterMode = {}));
108
- var GiftEntryMethod;
109
- (function (GiftEntryMethod) {
110
- GiftEntryMethod[GiftEntryMethod["Swipe"] = 0] = "Swipe";
111
- GiftEntryMethod[GiftEntryMethod["Alias"] = 1] = "Alias";
112
- GiftEntryMethod[GiftEntryMethod["Manual"] = 2] = "Manual";
113
- })(GiftEntryMethod = exports.GiftEntryMethod || (exports.GiftEntryMethod = {}));
114
- var HppVersion;
115
- (function (HppVersion) {
116
- HppVersion["Version1"] = "1";
117
- HppVersion["Version2"] = "2";
118
- })(HppVersion = exports.HppVersion || (exports.HppVersion = {}));
119
- var InquiryType;
120
- (function (InquiryType) {
121
- InquiryType["Standard"] = "STANDARD";
122
- InquiryType["Foodstamp"] = "FOODSTAMP";
123
- InquiryType["Cash"] = "CASH";
124
- InquiryType["Points"] = "POINTS";
125
- })(InquiryType = exports.InquiryType || (exports.InquiryType = {}));
126
- var PaymentMethodType;
127
- (function (PaymentMethodType) {
128
- PaymentMethodType[PaymentMethodType["Reference"] = 1] = "Reference";
129
- PaymentMethodType[PaymentMethodType["Credit"] = 2] = "Credit";
130
- PaymentMethodType[PaymentMethodType["Debit"] = 4] = "Debit";
131
- PaymentMethodType[PaymentMethodType["EBT"] = 8] = "EBT";
132
- PaymentMethodType[PaymentMethodType["Cash"] = 16] = "Cash";
133
- PaymentMethodType[PaymentMethodType["ACH"] = 32] = "ACH";
134
- PaymentMethodType[PaymentMethodType["Gift"] = 64] = "Gift";
135
- PaymentMethodType[PaymentMethodType["Recurring"] = 128] = "Recurring";
136
- })(PaymentMethodType = exports.PaymentMethodType || (exports.PaymentMethodType = {}));
137
- var PaymentSchedule;
138
- (function (PaymentSchedule) {
139
- PaymentSchedule[PaymentSchedule["Dynamic"] = 0] = "Dynamic";
140
- PaymentSchedule[PaymentSchedule["FirstDayOfTheMonth"] = 1] = "FirstDayOfTheMonth";
141
- PaymentSchedule[PaymentSchedule["LastDayOfTheMonth"] = 2] = "LastDayOfTheMonth";
142
- })(PaymentSchedule = exports.PaymentSchedule || (exports.PaymentSchedule = {}));
143
- var ReasonCode;
144
- (function (ReasonCode) {
145
- ReasonCode["Fraud"] = "FRAUD";
146
- ReasonCode["FalsePositive"] = "FALSEPOSITIVE";
147
- ReasonCode["OutOfStock"] = "OUTOFSTOCK";
148
- ReasonCode["InStock"] = "INSTOCK";
149
- ReasonCode["Other"] = "OTHER";
150
- ReasonCode["NotGiven"] = "NOTGIVEN";
151
- })(ReasonCode = exports.ReasonCode || (exports.ReasonCode = {}));
152
- var RecurringSequence;
153
- (function (RecurringSequence) {
154
- RecurringSequence[RecurringSequence["First"] = 0] = "First";
155
- RecurringSequence[RecurringSequence["Subsequent"] = 1] = "Subsequent";
156
- RecurringSequence[RecurringSequence["Last"] = 2] = "Last";
157
- })(RecurringSequence = exports.RecurringSequence || (exports.RecurringSequence = {}));
158
- var RecurringType;
159
- (function (RecurringType) {
160
- RecurringType[RecurringType["Fixed"] = 0] = "Fixed";
161
- RecurringType[RecurringType["Variable"] = 1] = "Variable";
162
- })(RecurringType = exports.RecurringType || (exports.RecurringType = {}));
163
- var ReportType;
164
- (function (ReportType) {
165
- ReportType[ReportType["FindTransactions"] = 1] = "FindTransactions";
166
- ReportType[ReportType["Activity"] = 2] = "Activity";
167
- ReportType[ReportType["BatchDetail"] = 4] = "BatchDetail";
168
- ReportType[ReportType["BatchHistory"] = 8] = "BatchHistory";
169
- ReportType[ReportType["BatchSummary"] = 16] = "BatchSummary";
170
- ReportType[ReportType["OpenAuths"] = 32] = "OpenAuths";
171
- ReportType[ReportType["Search"] = 64] = "Search";
172
- ReportType[ReportType["TransactionDetail"] = 128] = "TransactionDetail";
173
- })(ReportType = exports.ReportType || (exports.ReportType = {}));
174
- var ScheduleFrequency;
175
- (function (ScheduleFrequency) {
176
- ScheduleFrequency["Weekly"] = "Weekly";
177
- ScheduleFrequency["BiWeekly"] = "Bi-Weekly";
178
- ScheduleFrequency["BiMonthly"] = "Bi-Monthly";
179
- ScheduleFrequency["SemiMonthly"] = "Semi-Monthly";
180
- ScheduleFrequency["Monthly"] = "Monthly";
181
- ScheduleFrequency["Quarterly"] = "Quarterly";
182
- ScheduleFrequency["SemiAnnually"] = "Semi-Annually";
183
- ScheduleFrequency["Annually"] = "Annually";
184
- })(ScheduleFrequency = exports.ScheduleFrequency || (exports.ScheduleFrequency = {}));
185
- var SecCode;
186
- (function (SecCode) {
187
- SecCode["PPD"] = "PPD";
188
- SecCode["CCD"] = "CCD";
189
- SecCode["POP"] = "POP";
190
- SecCode["WEB"] = "WEB";
191
- SecCode["TEL"] = "TEL";
192
- SecCode["EBronze"] = "EBronze";
193
- })(SecCode = exports.SecCode || (exports.SecCode = {}));
194
- var StoredCredentialInitiator;
195
- (function (StoredCredentialInitiator) {
196
- StoredCredentialInitiator["CardHolder"] = "C";
197
- StoredCredentialInitiator["Merchant"] = "M";
198
- })(StoredCredentialInitiator = exports.StoredCredentialInitiator || (exports.StoredCredentialInitiator = {}));
199
- var TaxType;
200
- (function (TaxType) {
201
- TaxType[TaxType["NotUsed"] = 0] = "NotUsed";
202
- TaxType[TaxType["SalesTax"] = 1] = "SalesTax";
203
- TaxType[TaxType["TaxExempt"] = 2] = "TaxExempt";
204
- })(TaxType = exports.TaxType || (exports.TaxType = {}));
205
- var TimeZoneConversion;
206
- (function (TimeZoneConversion) {
207
- TimeZoneConversion[TimeZoneConversion["UTC"] = 0] = "UTC";
208
- TimeZoneConversion[TimeZoneConversion["Merchant"] = 1] = "Merchant";
209
- TimeZoneConversion[TimeZoneConversion["Datacenter"] = 2] = "Datacenter";
210
- })(TimeZoneConversion = exports.TimeZoneConversion || (exports.TimeZoneConversion = {}));
211
- var TransactionModifier;
212
- (function (TransactionModifier) {
213
- TransactionModifier[TransactionModifier["None"] = 1] = "None";
214
- TransactionModifier[TransactionModifier["Incremental"] = 2] = "Incremental";
215
- TransactionModifier[TransactionModifier["Additional"] = 4] = "Additional";
216
- TransactionModifier[TransactionModifier["Offline"] = 8] = "Offline";
217
- TransactionModifier[TransactionModifier["LevelII"] = 16] = "LevelII";
218
- TransactionModifier[TransactionModifier["FraudDecline"] = 32] = "FraudDecline";
219
- TransactionModifier[TransactionModifier["ChipDecline"] = 64] = "ChipDecline";
220
- TransactionModifier[TransactionModifier["CashBack"] = 128] = "CashBack";
221
- TransactionModifier[TransactionModifier["Voucher"] = 256] = "Voucher";
222
- TransactionModifier[TransactionModifier["Secure3D"] = 512] = "Secure3D";
223
- TransactionModifier[TransactionModifier["HostedRequest"] = 1024] = "HostedRequest";
224
- TransactionModifier[TransactionModifier["Recurring"] = 2048] = "Recurring";
225
- TransactionModifier[TransactionModifier["EncryptedMobile"] = 4096] = "EncryptedMobile";
226
- })(TransactionModifier = exports.TransactionModifier || (exports.TransactionModifier = {}));
227
- var TransactionType;
228
- (function (TransactionType) {
229
- TransactionType[TransactionType["Decline"] = 1] = "Decline";
230
- TransactionType[TransactionType["Verify"] = 2] = "Verify";
231
- TransactionType[TransactionType["Capture"] = 4] = "Capture";
232
- TransactionType[TransactionType["Auth"] = 8] = "Auth";
233
- TransactionType[TransactionType["Refund"] = 16] = "Refund";
234
- TransactionType[TransactionType["Reversal"] = 32] = "Reversal";
235
- TransactionType[TransactionType["Sale"] = 64] = "Sale";
236
- TransactionType[TransactionType["Edit"] = 128] = "Edit";
237
- TransactionType[TransactionType["Void"] = 256] = "Void";
238
- TransactionType[TransactionType["AddValue"] = 512] = "AddValue";
239
- TransactionType[TransactionType["Balance"] = 1024] = "Balance";
240
- TransactionType[TransactionType["Activate"] = 2048] = "Activate";
241
- TransactionType[TransactionType["Alias"] = 4096] = "Alias";
242
- TransactionType[TransactionType["Replace"] = 8192] = "Replace";
243
- TransactionType[TransactionType["Reward"] = 16384] = "Reward";
244
- TransactionType[TransactionType["Deactivate"] = 32768] = "Deactivate";
245
- TransactionType[TransactionType["BatchClose"] = 65536] = "BatchClose";
246
- TransactionType[TransactionType["Create"] = 131072] = "Create";
247
- TransactionType[TransactionType["Delete"] = 262144] = "Delete";
248
- TransactionType[TransactionType["BenefitWithDrawal"] = 524288] = "BenefitWithDrawal";
249
- TransactionType[TransactionType["Fetch"] = 1048576] = "Fetch";
250
- TransactionType[TransactionType["Search"] = 2097152] = "Search";
251
- TransactionType[TransactionType["Hold"] = 4194304] = "Hold";
252
- TransactionType[TransactionType["Release"] = 8388608] = "Release";
253
- })(TransactionType = exports.TransactionType || (exports.TransactionType = {}));
254
- var MobilePaymentMethodType;
255
- (function (MobilePaymentMethodType) {
256
- MobilePaymentMethodType["APPLEPAY"] = "apple-pay";
257
- MobilePaymentMethodType["GOOGLEPAY"] = "pay-with-google";
258
- })(MobilePaymentMethodType = exports.MobilePaymentMethodType || (exports.MobilePaymentMethodType = {}));
259
- var PaymentDataSourceType;
260
- (function (PaymentDataSourceType) {
261
- PaymentDataSourceType["APPLEPAY"] = "ApplePay";
262
- PaymentDataSourceType["APPLEPAYAPP"] = "ApplePayApp";
263
- PaymentDataSourceType["APPLEPAYWEB"] = "ApplePayWeb";
264
- PaymentDataSourceType["GOOGLEPAYAPP"] = "GooglePayApp";
265
- PaymentDataSourceType["GOOGLEPAYWEB"] = "GooglePayWeb";
266
- PaymentDataSourceType["DISCOVER3DSECURE"] = "Discover 3DSecure";
267
- })(PaymentDataSourceType = exports.PaymentDataSourceType || (exports.PaymentDataSourceType = {}));
@@ -1,23 +0,0 @@
1
- export declare class ApiError extends Error {
2
- constructor(m?: string);
3
- }
4
- export declare class ArgumentError extends ApiError {
5
- constructor(m?: string);
6
- }
7
- export declare class BuilderError extends ApiError {
8
- constructor(m?: string);
9
- }
10
- export declare class ConfigurationError extends ApiError {
11
- constructor(m?: string);
12
- }
13
- export declare class GatewayError extends ApiError {
14
- responseCode: string;
15
- responseMessage: string;
16
- constructor(m?: string, code?: string, message?: string);
17
- }
18
- export declare class NotImplementedError extends ApiError {
19
- constructor(m?: string);
20
- }
21
- export declare class UnsupportedTransactionError extends ApiError {
22
- constructor(m?: string);
23
- }
@@ -1,106 +0,0 @@
1
- "use strict";
2
- // tslint:disable:max-classes-per-file
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.UnsupportedTransactionError = exports.NotImplementedError = exports.GatewayError = exports.ConfigurationError = exports.BuilderError = exports.ArgumentError = exports.ApiError = void 0;
20
- var ApiError = /** @class */ (function (_super) {
21
- __extends(ApiError, _super);
22
- function ApiError(m) {
23
- var _this = _super.call(this, m) || this;
24
- Object.setPrototypeOf(_this, ApiError.prototype);
25
- _this.name = _this.constructor.name;
26
- return _this;
27
- }
28
- return ApiError;
29
- }(Error));
30
- exports.ApiError = ApiError;
31
- var ArgumentError = /** @class */ (function (_super) {
32
- __extends(ArgumentError, _super);
33
- function ArgumentError(m) {
34
- var _this = _super.call(this, m) || this;
35
- Object.setPrototypeOf(_this, ArgumentError.prototype);
36
- _this.name = _this.constructor.name;
37
- return _this;
38
- }
39
- return ArgumentError;
40
- }(ApiError));
41
- exports.ArgumentError = ArgumentError;
42
- var BuilderError = /** @class */ (function (_super) {
43
- __extends(BuilderError, _super);
44
- function BuilderError(m) {
45
- var _this = _super.call(this, m) || this;
46
- Object.setPrototypeOf(_this, BuilderError.prototype);
47
- _this.name = _this.constructor.name;
48
- return _this;
49
- }
50
- return BuilderError;
51
- }(ApiError));
52
- exports.BuilderError = BuilderError;
53
- var ConfigurationError = /** @class */ (function (_super) {
54
- __extends(ConfigurationError, _super);
55
- function ConfigurationError(m) {
56
- var _this = _super.call(this, m) || this;
57
- Object.setPrototypeOf(_this, ConfigurationError.prototype);
58
- _this.name = _this.constructor.name;
59
- return _this;
60
- }
61
- return ConfigurationError;
62
- }(ApiError));
63
- exports.ConfigurationError = ConfigurationError;
64
- var GatewayError = /** @class */ (function (_super) {
65
- __extends(GatewayError, _super);
66
- function GatewayError(m, code, message) {
67
- var _this = _super.call(this, m) || this;
68
- Object.setPrototypeOf(_this, GatewayError.prototype);
69
- _this.name = _this.constructor.name;
70
- if (code) {
71
- _this.responseCode = code;
72
- }
73
- if (message) {
74
- _this.responseMessage = message;
75
- }
76
- return _this;
77
- }
78
- return GatewayError;
79
- }(ApiError));
80
- exports.GatewayError = GatewayError;
81
- var NotImplementedError = /** @class */ (function (_super) {
82
- __extends(NotImplementedError, _super);
83
- function NotImplementedError(m) {
84
- var _this = _super.call(this, m) || this;
85
- Object.setPrototypeOf(_this, NotImplementedError.prototype);
86
- _this.name = _this.constructor.name;
87
- return _this;
88
- }
89
- return NotImplementedError;
90
- }(ApiError));
91
- exports.NotImplementedError = NotImplementedError;
92
- var UnsupportedTransactionError = /** @class */ (function (_super) {
93
- __extends(UnsupportedTransactionError, _super);
94
- function UnsupportedTransactionError(m) {
95
- var _this = this;
96
- if (!m) {
97
- m = "Transaction type not supported for this payment method.";
98
- }
99
- _this = _super.call(this, m) || this;
100
- Object.setPrototypeOf(_this, UnsupportedTransactionError.prototype);
101
- _this.name = _this.constructor.name;
102
- return _this;
103
- }
104
- return UnsupportedTransactionError;
105
- }(ApiError));
106
- exports.UnsupportedTransactionError = UnsupportedTransactionError;
@@ -1,10 +0,0 @@
1
- export declare class HostedPaymentData {
2
- customerExists: boolean;
3
- customerKey: string;
4
- customerNumber: string;
5
- offerToSaveCard: boolean;
6
- paymentKey: string;
7
- productId: string;
8
- supplementaryData: object;
9
- constructor();
10
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HostedPaymentData = void 0;
4
- var HostedPaymentData = /** @class */ (function () {
5
- function HostedPaymentData() {
6
- this.supplementaryData = {};
7
- }
8
- return HostedPaymentData;
9
- }());
10
- exports.HostedPaymentData = HostedPaymentData;
@@ -1,14 +0,0 @@
1
- export interface IRecurringEntity {
2
- id: string;
3
- key: string;
4
- }
5
- export declare class RecurringEntity<TResult extends IRecurringEntity> implements IRecurringEntity {
6
- id: string;
7
- key: string;
8
- static find<TResult extends IRecurringEntity>(id: string): Promise<TResult | undefined>;
9
- static findAll<TResult extends IRecurringEntity>(): Promise<TResult>;
10
- private static getIdentifierName;
11
- create(): Promise<TResult>;
12
- delete(force?: boolean): Promise<TResult>;
13
- saveChanges(): Promise<TResult>;
14
- }
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RecurringEntity = void 0;
4
- var __1 = require("../");
5
- var RecurringEntity = /** @class */ (function () {
6
- function RecurringEntity() {
7
- }
8
- /// <summary>
9
- /// Searches for a specific record by `id`.
10
- /// </summary>
11
- /// <param name="id">The ID of the record to find</summary>
12
- /// <returns>`TResult` or `null` if the record cannot be found.</returns>
13
- /// <exception cref="UnsupportedTransactionError">
14
- /// Thrown when gateway does not support retrieving recurring records.
15
- /// </exception>
16
- RecurringEntity.find = function (id) {
17
- var client = __1.ServicesContainer.instance().getRecurringClient();
18
- if (!client.supportsRetrieval) {
19
- throw new __1.UnsupportedTransactionError();
20
- }
21
- var identifier = RecurringEntity.getIdentifierName(this);
22
- return __1.RecurringService.search(this)
23
- .addSearchCriteria(identifier, id)
24
- .execute()
25
- .then(function (response) {
26
- if (!response) {
27
- return;
28
- }
29
- var entity = response[0] || response;
30
- if (entity) {
31
- return __1.RecurringService.get(entity);
32
- }
33
- return;
34
- });
35
- };
36
- /// <summary>
37
- /// Lists all records of type `TResult`.
38
- /// </summary>
39
- /// <exception cref="UnsupportedTransactionError">
40
- /// Thrown when gateway does not support retrieving recurring records.
41
- /// </exception>
42
- RecurringEntity.findAll = function () {
43
- var client = __1.ServicesContainer.instance().getRecurringClient();
44
- if (client.supportsRetrieval) {
45
- return __1.RecurringService.search(this).execute();
46
- }
47
- throw new __1.UnsupportedTransactionError();
48
- };
49
- RecurringEntity.getIdentifierName = function (fn) {
50
- if (fn.name === 'Customer') {
51
- return "customerIdentifier";
52
- }
53
- else if (fn.name === 'RecurringPaymentMethod') {
54
- return "paymentMethodIdentifier";
55
- }
56
- return "scheduleIdentifier";
57
- };
58
- /// <summary>
59
- /// Creates a resource
60
- /// </summary>
61
- /// <returns>TResult</returns>
62
- RecurringEntity.prototype.create = function () {
63
- return __1.RecurringService.create(this);
64
- };
65
- /// <summary>
66
- /// Delete a record from the gateway.
67
- /// </summary>
68
- /// <param name="force">Indicates if the deletion should be forced</summary>
69
- /// <exception cref="ApiException">Thrown when the record cannot be deleted.</exception>
70
- RecurringEntity.prototype.delete = function (force) {
71
- if (force === void 0) { force = false; }
72
- return __1.RecurringService.delete(this, force);
73
- };
74
- /// <summary>
75
- /// The current record should be updated.
76
- /// </summary>
77
- /// <remarks>
78
- /// Any modified properties will be persisted with the gateway.
79
- /// </remarks>
80
- /// <exception cref="ApiException">Thrown when the record cannot be updated.</exception>
81
- RecurringEntity.prototype.saveChanges = function () {
82
- return __1.RecurringService.edit(this);
83
- };
84
- return RecurringEntity;
85
- }());
86
- exports.RecurringEntity = RecurringEntity;
@@ -1,47 +0,0 @@
1
- import { EmailReceipt, PaymentSchedule, ScheduleFrequency } from "../";
2
- import { RecurringEntity } from "./";
3
- export declare class Schedule extends RecurringEntity<Schedule> {
4
- amount: number | string;
5
- cancellationDate: Date;
6
- currency: string;
7
- customerKey: string;
8
- description: string;
9
- deviceId: number | string;
10
- emailNotification: boolean;
11
- emailReceipt: EmailReceipt;
12
- endDate: Date;
13
- frequency: ScheduleFrequency;
14
- hasStarted: boolean;
15
- invoiceNumber: string;
16
- name: string;
17
- nextProcessingDate: Date;
18
- numberOfPayments: number | string;
19
- poNumber: string;
20
- paymentKey: string;
21
- paymentSchedule: PaymentSchedule;
22
- reprocessingCount: number | string;
23
- startDate: Date;
24
- status: string;
25
- taxAmount: number | string;
26
- get totalAmount(): number;
27
- constructor(customerKey?: string, paymentKey?: string);
28
- withAmount(value?: number | string): this;
29
- withCurrency(value?: string): this;
30
- withCustomerKey(value?: string): this;
31
- withDescription(value?: string): this;
32
- withDeviceId(value?: number | string): this;
33
- withEmailNotification(value?: boolean): this;
34
- withEmailReceipt(value?: EmailReceipt): this;
35
- withEndDate(value?: Date): this;
36
- withFrequency(value?: ScheduleFrequency): this;
37
- withInvoiceNumber(value?: string): this;
38
- withName(value?: string): this;
39
- withNumberOfPayments(value?: number | string): this;
40
- withPoNumber(value?: string): this;
41
- withPaymentKey(value?: string): this;
42
- withPaymentSchedule(value?: PaymentSchedule): this;
43
- withReprocessingCount(value?: number | string): this;
44
- withStartDate(value?: Date): this;
45
- withStatus(value?: string): this;
46
- withTaxAmount(value?: number | string): this;
47
- }