globalpayments-api 3.7.0 → 3.8.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 (220) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/lib/src/Builders/BaseBuilder/Validations.js +1 -1
  3. package/lib/src/Builders/BaseBuilder/Validations.js.map +1 -1
  4. package/lib/src/Builders/ManagementBuilder.d.ts +17 -1
  5. package/lib/src/Builders/ManagementBuilder.js +22 -0
  6. package/lib/src/Builders/ManagementBuilder.js.map +1 -1
  7. package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js +19 -0
  8. package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js.map +1 -1
  9. package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.d.ts +2 -0
  10. package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js +86 -0
  11. package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js.map +1 -1
  12. package/lib/src/Builders/TransactionReportBuilder.d.ts +5 -2
  13. package/lib/src/Builders/TransactionReportBuilder.js +19 -0
  14. package/lib/src/Builders/TransactionReportBuilder.js.map +1 -1
  15. package/lib/src/Entities/DisputeDocument.d.ts +5 -0
  16. package/lib/src/Entities/DisputeDocument.js +10 -0
  17. package/lib/src/Entities/DisputeDocument.js.map +1 -0
  18. package/lib/src/Entities/Document.d.ts +10 -0
  19. package/lib/src/Entities/Document.js +13 -0
  20. package/lib/src/Entities/Document.js.map +1 -0
  21. package/lib/src/Entities/Enums/DisputeSortProperty.d.ts +12 -0
  22. package/lib/src/Entities/Enums/DisputeSortProperty.js +17 -0
  23. package/lib/src/Entities/Enums/DisputeSortProperty.js.map +1 -0
  24. package/lib/src/Entities/Enums/DisputeStage.d.ts +11 -0
  25. package/lib/src/Entities/Enums/DisputeStage.js +16 -0
  26. package/lib/src/Entities/Enums/DisputeStage.js.map +1 -0
  27. package/lib/src/Entities/Enums/DisputeStatus.d.ts +7 -0
  28. package/lib/src/Entities/Enums/DisputeStatus.js +12 -0
  29. package/lib/src/Entities/Enums/DisputeStatus.js.map +1 -0
  30. package/lib/src/Entities/Enums/DocumentCategory.d.ts +5 -0
  31. package/lib/src/Entities/Enums/DocumentCategory.js +10 -0
  32. package/lib/src/Entities/Enums/DocumentCategory.js.map +1 -0
  33. package/lib/src/Entities/Enums/FileType.d.ts +11 -0
  34. package/lib/src/Entities/Enums/FileType.js +16 -0
  35. package/lib/src/Entities/Enums/FileType.js.map +1 -0
  36. package/lib/src/Entities/Enums.d.ts +7 -0
  37. package/lib/src/Entities/Enums.js +7 -0
  38. package/lib/src/Entities/Enums.js.map +1 -1
  39. package/lib/src/Entities/HostedPaymentData.d.ts +3 -0
  40. package/lib/src/Entities/HostedPaymentData.js +3 -0
  41. package/lib/src/Entities/HostedPaymentData.js.map +1 -1
  42. package/lib/src/Entities/Reporting/DisputeSummary.d.ts +53 -0
  43. package/lib/src/Entities/Reporting/DisputeSummary.js +64 -0
  44. package/lib/src/Entities/Reporting/DisputeSummary.js.map +1 -0
  45. package/lib/src/Entities/Reporting/SearchCriteriaBuilder.d.ts +4 -2
  46. package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js +2 -0
  47. package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js.map +1 -1
  48. package/lib/src/Entities/Reporting/index.d.ts +1 -0
  49. package/lib/src/Entities/Reporting/index.js +1 -0
  50. package/lib/src/Entities/Reporting/index.js.map +1 -1
  51. package/lib/src/Entities/index.d.ts +7 -0
  52. package/lib/src/Entities/index.js +7 -0
  53. package/lib/src/Entities/index.js.map +1 -1
  54. package/lib/src/Gateways/GpApiConnector.js +3 -0
  55. package/lib/src/Gateways/GpApiConnector.js.map +1 -1
  56. package/lib/src/Gateways/GpEcomConnector.js +9 -0
  57. package/lib/src/Gateways/GpEcomConnector.js.map +1 -1
  58. package/lib/src/Mapping/GpApiMapping.d.ts +2 -1
  59. package/lib/src/Mapping/GpApiMapping.js +75 -2
  60. package/lib/src/Mapping/GpApiMapping.js.map +1 -1
  61. package/lib/src/Services/ReportingService.d.ts +6 -1
  62. package/lib/src/Services/ReportingService.js +15 -0
  63. package/lib/src/Services/ReportingService.js.map +1 -1
  64. package/lib/test/Integration/Gateways/GpApiConnector/3DS2.test.d.ts +1 -0
  65. package/lib/test/Integration/Gateways/GpApiConnector/3DS2.test.js +1026 -0
  66. package/lib/test/Integration/Gateways/GpApiConnector/3DS2.test.js.map +1 -0
  67. package/lib/test/Integration/Gateways/GpApiConnector/3DSecure.test.d.ts +1 -0
  68. package/lib/test/Integration/Gateways/GpApiConnector/3DSecure.test.js +643 -0
  69. package/lib/test/Integration/Gateways/GpApiConnector/3DSecure.test.js.map +1 -0
  70. package/lib/test/Integration/Gateways/GpApiConnector/AccessToken.test.d.ts +1 -0
  71. package/lib/test/Integration/Gateways/GpApiConnector/AccessToken.test.js +130 -0
  72. package/lib/test/Integration/Gateways/GpApiConnector/AccessToken.test.js.map +1 -0
  73. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresent.test.d.ts +1 -0
  74. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresent.test.js +1070 -0
  75. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresent.test.js.map +1 -0
  76. package/lib/test/Integration/Gateways/GpApiConnector/DebitCard.test.d.ts +1 -0
  77. package/lib/test/Integration/Gateways/GpApiConnector/DebitCard.test.js +137 -0
  78. package/lib/test/Integration/Gateways/GpApiConnector/DebitCard.test.js.map +1 -0
  79. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertification.test.d.ts +1 -0
  80. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertification.test.js +642 -0
  81. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertification.test.js.map +1 -0
  82. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagement.test.d.ts +1 -0
  83. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagement.test.js +151 -0
  84. package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagement.test.js.map +1 -0
  85. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDeposits.test.d.ts +1 -0
  86. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDeposits.test.js +226 -0
  87. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDeposits.test.js.map +1 -0
  88. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDisputes.test.d.ts +1 -0
  89. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDisputes.test.js +571 -0
  90. package/lib/test/Integration/Gateways/GpApiConnector/ReportingDisputes.test.js.map +1 -0
  91. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactions.test.d.ts +1 -0
  92. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactions.test.js +430 -0
  93. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactions.test.js.map +1 -0
  94. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethods.test.d.ts +1 -0
  95. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethods.test.js +216 -0
  96. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethods.test.js.map +1 -0
  97. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactions.test.d.ts +1 -0
  98. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactions.test.js +340 -0
  99. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactions.test.js.map +1 -0
  100. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Auth.test.d.ts +1 -0
  101. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Auth.test.js +2426 -0
  102. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Auth.test.js.map +1 -0
  103. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Avs.test.d.ts +1 -0
  104. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Avs.test.js +562 -0
  105. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Avs.test.js.map +1 -0
  106. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Credit.test.d.ts +1 -0
  107. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Credit.test.js +1292 -0
  108. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Credit.test.js.map +1 -0
  109. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Hold.test.d.ts +1 -0
  110. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Hold.test.js +880 -0
  111. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Hold.test.js.map +1 -0
  112. package/lib/test/Integration/Gateways/GpEcomConnector/Credit.test.d.ts +1 -0
  113. package/lib/test/Integration/Gateways/GpEcomConnector/Credit.test.js +207 -0
  114. package/lib/test/Integration/Gateways/GpEcomConnector/Credit.test.js.map +1 -0
  115. package/lib/test/Integration/Gateways/GpEcomConnector/Hpp.test.d.ts +1 -0
  116. package/lib/test/Integration/Gateways/GpEcomConnector/Hpp.test.js +137 -0
  117. package/lib/test/Integration/Gateways/GpEcomConnector/Hpp.test.js.map +1 -0
  118. package/lib/test/Integration/Gateways/GpEcomConnector/Recurring.test.d.ts +1 -0
  119. package/lib/test/Integration/Gateways/GpEcomConnector/Recurring.test.js +124 -0
  120. package/lib/test/Integration/Gateways/GpEcomConnector/Recurring.test.js.map +1 -0
  121. package/lib/test/Integration/Gateways/PorticoConnector/Ach.test.d.ts +1 -0
  122. package/lib/test/Integration/Gateways/PorticoConnector/Ach.test.js +54 -0
  123. package/lib/test/Integration/Gateways/PorticoConnector/Ach.test.js.map +1 -0
  124. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Check.test.d.ts +1 -0
  125. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Check.test.js +357 -0
  126. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Check.test.js.map +1 -0
  127. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Ecommerce.test.d.ts +1 -0
  128. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Ecommerce.test.js +1667 -0
  129. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Ecommerce.test.js.map +1 -0
  130. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheck.test.d.ts +1 -0
  131. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheck.test.js +80 -0
  132. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheck.test.js.map +1 -0
  133. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Moto.test.d.ts +1 -0
  134. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Moto.test.js +1487 -0
  135. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Moto.test.js.map +1 -0
  136. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheck.test.d.ts +1 -0
  137. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheck.test.js +80 -0
  138. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheck.test.js.map +1 -0
  139. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Recurring.test.d.ts +1 -0
  140. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Recurring.test.js +393 -0
  141. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Recurring.test.js.map +1 -0
  142. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Retail.test.d.ts +1 -0
  143. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Retail.test.js +2102 -0
  144. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Retail.test.js.map +1 -0
  145. package/lib/test/Integration/Gateways/PorticoConnector/Credit.test.d.ts +1 -0
  146. package/lib/test/Integration/Gateways/PorticoConnector/Credit.test.js +367 -0
  147. package/lib/test/Integration/Gateways/PorticoConnector/Credit.test.js.map +1 -0
  148. package/lib/test/Integration/Gateways/PorticoConnector/Debit.test.d.ts +1 -0
  149. package/lib/test/Integration/Gateways/PorticoConnector/Debit.test.js +83 -0
  150. package/lib/test/Integration/Gateways/PorticoConnector/Debit.test.js.map +1 -0
  151. package/lib/test/Integration/Gateways/PorticoConnector/Ebt.test.d.ts +1 -0
  152. package/lib/test/Integration/Gateways/PorticoConnector/Ebt.test.js +63 -0
  153. package/lib/test/Integration/Gateways/PorticoConnector/Ebt.test.js.map +1 -0
  154. package/lib/test/Integration/Gateways/PorticoConnector/Ecommerce.test.d.ts +1 -0
  155. package/lib/test/Integration/Gateways/PorticoConnector/Ecommerce.test.js +136 -0
  156. package/lib/test/Integration/Gateways/PorticoConnector/Ecommerce.test.js.map +1 -0
  157. package/lib/test/Integration/Gateways/PorticoConnector/Gift.test.d.ts +1 -0
  158. package/lib/test/Integration/Gateways/PorticoConnector/Gift.test.js +121 -0
  159. package/lib/test/Integration/Gateways/PorticoConnector/Gift.test.js.map +1 -0
  160. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementToken.test.d.ts +1 -0
  161. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementToken.test.js +40 -0
  162. package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementToken.test.js.map +1 -0
  163. package/lib/test/Integration/Gateways/PorticoConnector/Recurring.test.d.ts +1 -0
  164. package/lib/test/Integration/Gateways/PorticoConnector/Recurring.test.js +87 -0
  165. package/lib/test/Integration/Gateways/PorticoConnector/Recurring.test.js.map +1 -0
  166. package/lib/test/Integration/Gateways/PorticoConnector/Reporting.test.d.ts +1 -0
  167. package/lib/test/Integration/Gateways/PorticoConnector/Reporting.test.js +44 -0
  168. package/lib/test/Integration/Gateways/PorticoConnector/Reporting.test.js.map +1 -0
  169. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertification.test.d.ts +1 -0
  170. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertification.test.js +38 -0
  171. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertification.test.js.map +1 -0
  172. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertification.test.d.ts +1 -0
  173. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertification.test.js +206 -0
  174. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertification.test.js.map +1 -0
  175. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertification.test.d.ts +1 -0
  176. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertification.test.js +52 -0
  177. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertification.test.js.map +1 -0
  178. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertification.test.d.ts +1 -0
  179. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertification.test.js +72 -0
  180. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertification.test.js.map +1 -0
  181. package/lib/test/Integration/Gateways/ProPayConnector/GetInformation.test.d.ts +1 -0
  182. package/lib/test/Integration/Gateways/ProPayConnector/GetInformation.test.js +37 -0
  183. package/lib/test/Integration/Gateways/ProPayConnector/GetInformation.test.js.map +1 -0
  184. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccount.test.d.ts +1 -0
  185. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccount.test.js +310 -0
  186. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccount.test.js.map +1 -0
  187. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFunds.test.d.ts +1 -0
  188. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFunds.test.js +53 -0
  189. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFunds.test.js.map +1 -0
  190. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransaction.test.d.ts +1 -0
  191. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransaction.test.js +72 -0
  192. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransaction.test.js.map +1 -0
  193. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMic.test.d.ts +1 -0
  194. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMic.test.js +165 -0
  195. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMic.test.js.map +1 -0
  196. package/lib/test/Integration/Services/CheckService.test.d.ts +1 -0
  197. package/lib/test/Integration/Services/CheckService.test.js +38 -0
  198. package/lib/test/Integration/Services/CheckService.test.js.map +1 -0
  199. package/lib/test/Integration/Services/CreditService.test.d.ts +1 -0
  200. package/lib/test/Integration/Services/CreditService.test.js +158 -0
  201. package/lib/test/Integration/Services/CreditService.test.js.map +1 -0
  202. package/lib/test/Integration/Services/DebitService.test.d.ts +1 -0
  203. package/lib/test/Integration/Services/DebitService.test.js +77 -0
  204. package/lib/test/Integration/Services/DebitService.test.js.map +1 -0
  205. package/lib/test/Integration/Services/EBTService.test.d.ts +1 -0
  206. package/lib/test/Integration/Services/EBTService.test.js +54 -0
  207. package/lib/test/Integration/Services/EBTService.test.js.map +1 -0
  208. package/lib/test/Unit/Builders/AuthorizationBuilder/Validation.test.d.ts +1 -0
  209. package/lib/test/Unit/Builders/AuthorizationBuilder/Validation.test.js +122 -0
  210. package/lib/test/Unit/Builders/AuthorizationBuilder/Validation.test.js.map +1 -0
  211. package/lib/test/Unit/Builders/ReportBuilder/Validation.test.d.ts +1 -0
  212. package/lib/test/Unit/Builders/ReportBuilder/Validation.test.js +66 -0
  213. package/lib/test/Unit/Builders/ReportBuilder/Validation.test.js.map +1 -0
  214. package/lib/test/Unit/Gateways/GpEcomConnector/Credit.test.d.ts +1 -0
  215. package/lib/test/Unit/Gateways/GpEcomConnector/Credit.test.js +32 -0
  216. package/lib/test/Unit/Gateways/GpEcomConnector/Credit.test.js.map +1 -0
  217. package/lib/test/Unit/Gateways/PorticoConnector/InputValidation.test.d.ts +1 -0
  218. package/lib/test/Unit/Gateways/PorticoConnector/InputValidation.test.js +128 -0
  219. package/lib/test/Unit/Gateways/PorticoConnector/InputValidation.test.js.map +1 -0
  220. package/package.json +7 -17
@@ -0,0 +1,2426 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const src_1 = require("../../../../../src");
4
+ const ServiceConfigs_1 = require("../../../../../src/ServiceConfigs");
5
+ const throttle = (i) => new Promise((resolve) => setTimeout(resolve, i * 1500));
6
+ const config = new ServiceConfigs_1.GpEcomConfig();
7
+ config.merchantId = "heartlandgpsandbox";
8
+ config.accountId = "api";
9
+ config.sharedSecret = "secret";
10
+ config.refundPassword = "refund";
11
+ config.rebatePassword = "rebate";
12
+ config.timeout = 20000;
13
+ // const test = ava.serial;
14
+ beforeAll(() => {
15
+ src_1.ServicesContainer.configureService(config);
16
+ });
17
+ let i = 0;
18
+ beforeEach(async () => {
19
+ await throttle(i);
20
+ i += 0.1;
21
+ });
22
+ // test("JAVA_Auth_006a", async (t) => {
23
+ // t.plan(2);
24
+ // // create card
25
+ // const card = new CreditCardData();
26
+ // card.number = "4263970000005262";
27
+ // card.expMonth = "12";
28
+ // card.expYear = "2029";
29
+ // card.cvn = "123";
30
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
31
+ // card.cardHolderName = "James Mason";
32
+ // // request
33
+ // const response = await card
34
+ // .charge(100.01)
35
+ // .withCurrency("GBP")
36
+ // .withDescription("JAVA-Auth-006a")
37
+ // .execute();
38
+ // t.truthy(response);
39
+ // t.is("00", response.responseCode);
40
+ // });
41
+ // test("JAVA_Auth_006b", async (t) => {
42
+ // t.plan(2);
43
+ // // create card
44
+ // const card = new CreditCardData();
45
+ // card.number = "4263970000005262";
46
+ // card.expMonth = "12";
47
+ // card.expYear = "2029";
48
+ // card.cvn = "123";
49
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
50
+ // card.cardHolderName = "James Mason";
51
+ // // request
52
+ // const response = await card
53
+ // .charge(100.01)
54
+ // .withCurrency("EUR")
55
+ // .withDescription("JAVA-Auth-006b")
56
+ // .execute();
57
+ // t.truthy(response);
58
+ // t.is("00", response.responseCode);
59
+ // });
60
+ // test("JAVA_Auth_006c", async (t) => {
61
+ // t.plan(2);
62
+ // // create card
63
+ // const card = new CreditCardData();
64
+ // card.number = "4263970000005262";
65
+ // card.expMonth = "12";
66
+ // card.expYear = "2029";
67
+ // card.cvn = "123";
68
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
69
+ // card.cardHolderName = "James Mason";
70
+ // // request
71
+ // const response = await card
72
+ // .charge(100.01)
73
+ // .withCurrency("USD")
74
+ // .withDescription("JAVA-Auth-006c")
75
+ // .execute();
76
+ // t.truthy(response);
77
+ // t.is("00", response.responseCode);
78
+ // });
79
+ // test("JAVA_Auth_006d", async (t) => {
80
+ // t.plan(2);
81
+ // // create card
82
+ // const card = new CreditCardData();
83
+ // card.number = "4263970000005262";
84
+ // card.expMonth = "12";
85
+ // card.expYear = "2029";
86
+ // card.cvn = "123";
87
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
88
+ // card.cardHolderName = "James Mason";
89
+ // // request
90
+ // const response = await card
91
+ // .charge(100.01)
92
+ // .withCurrency("GBP")
93
+ // .withDescription("JAVA-Auth-006d")
94
+ // .execute();
95
+ // t.truthy(response);
96
+ // t.is("00", response.responseCode);
97
+ // });
98
+ // test("JAVA_Auth_006e", async (t) => {
99
+ // t.plan(2);
100
+ // // create card
101
+ // const card = new CreditCardData();
102
+ // card.number = "4263970000005262";
103
+ // card.expMonth = "12";
104
+ // card.expYear = "2029";
105
+ // card.cvn = "123";
106
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
107
+ // card.cardHolderName = "James Mason";
108
+ // // request
109
+ // const response = await card
110
+ // .charge(100.01)
111
+ // .withCurrency("EUR")
112
+ // .withDescription("JAVA-Auth-006e")
113
+ // .execute();
114
+ // t.truthy(response);
115
+ // t.is("00", response.responseCode);
116
+ // });
117
+ // test("JAVA_Auth_006f", async (t) => {
118
+ // t.plan(2);
119
+ // // create card
120
+ // const card = new CreditCardData();
121
+ // card.number = "4263970000005262";
122
+ // card.expMonth = "12";
123
+ // card.expYear = "2029";
124
+ // card.cvn = "123";
125
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
126
+ // card.cardHolderName = "James Mason";
127
+ // // request
128
+ // const response = await card
129
+ // .charge(100.01)
130
+ // .withCurrency("USD")
131
+ // .withDescription("JAVA-Auth-006f")
132
+ // .execute();
133
+ // t.truthy(response);
134
+ // t.is("00", response.responseCode);
135
+ // });
136
+ // test("JAVA_Auth_006g", async (t) => {
137
+ // t.plan(2);
138
+ // // create card
139
+ // const card = new CreditCardData();
140
+ // card.number = "4263970000005262";
141
+ // card.expMonth = "12";
142
+ // card.expYear = "2029";
143
+ // card.cvn = "123";
144
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
145
+ // card.cardHolderName = "James Mason";
146
+ // // request
147
+ // const response = await card
148
+ // .charge(100.01)
149
+ // .withCurrency("GBP")
150
+ // .withDescription("JAVA-Auth-006g")
151
+ // .execute();
152
+ // t.truthy(response);
153
+ // t.is("00", response.responseCode);
154
+ // });
155
+ // test("JAVA_Auth_006h", async (t) => {
156
+ // t.plan(2);
157
+ // // create card
158
+ // const card = new CreditCardData();
159
+ // card.number = "4263970000005262";
160
+ // card.expMonth = "12";
161
+ // card.expYear = "2029";
162
+ // card.cvn = "123";
163
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
164
+ // card.cardHolderName = "James Mason";
165
+ // // request
166
+ // const response = await card
167
+ // .charge(100.01)
168
+ // .withCurrency("EUR")
169
+ // .withDescription("JAVA-Auth-006h")
170
+ // .execute();
171
+ // t.truthy(response);
172
+ // t.is("00", response.responseCode);
173
+ // });
174
+ // test("JAVA_Auth_006i", async (t) => {
175
+ // t.plan(2);
176
+ // // create card
177
+ // const card = new CreditCardData();
178
+ // card.number = "4263970000005262";
179
+ // card.expMonth = "12";
180
+ // card.expYear = "2029";
181
+ // card.cvn = "123";
182
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
183
+ // card.cardHolderName = "James Mason";
184
+ // // request
185
+ // const response = await card
186
+ // .charge(100.01)
187
+ // .withCurrency("USD")
188
+ // .withDescription("JAVA-Auth-006i")
189
+ // .execute();
190
+ // t.truthy(response);
191
+ // t.is("00", response.responseCode);
192
+ // });
193
+ // test("JAVA_Auth_006j", async (t) => {
194
+ // t.plan(2);
195
+ // // create card
196
+ // const card = new CreditCardData();
197
+ // card.number = "4263970000005262";
198
+ // card.expMonth = "12";
199
+ // card.expYear = "2029";
200
+ // card.cvn = "123";
201
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
202
+ // card.cardHolderName = "James Mason";
203
+ // // request
204
+ // const response = await card
205
+ // .charge(100.01)
206
+ // .withCurrency("GBP")
207
+ // .withDescription("JAVA-Auth-006j")
208
+ // .execute();
209
+ // t.truthy(response);
210
+ // t.is("00", response.responseCode);
211
+ // });
212
+ // test("JAVA_Auth_006k", async (t) => {
213
+ // t.plan(2);
214
+ // // create card
215
+ // const card = new CreditCardData();
216
+ // card.number = "4263970000005262";
217
+ // card.expMonth = "12";
218
+ // card.expYear = "2029";
219
+ // card.cvn = "123";
220
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
221
+ // card.cardHolderName = "James Mason";
222
+ // // request
223
+ // const response = await card
224
+ // .charge(100.01)
225
+ // .withCurrency("EUR")
226
+ // .withDescription("JAVA-Auth-006k")
227
+ // .execute();
228
+ // t.truthy(response);
229
+ // t.is("00", response.responseCode);
230
+ // });
231
+ // test("JAVA_Auth_007a", async (t) => {
232
+ // t.plan(2);
233
+ // // create card
234
+ // const card = new CreditCardData();
235
+ // card.number = "4263970000005262";
236
+ // card.expMonth = "12";
237
+ // card.expYear = "2029";
238
+ // card.cvn = "123";
239
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
240
+ // card.cardHolderName = "James Mason";
241
+ // // request
242
+ // const response = await card
243
+ // .charge(100.01)
244
+ // .withCurrency("GBP")
245
+ // .withDescription("JAVA-Auth-007a")
246
+ // .execute();
247
+ // t.truthy(response);
248
+ // t.is("00", response.responseCode);
249
+ // });
250
+ // test("JAVA_Auth_007b", async (t) => {
251
+ // t.plan(2);
252
+ // // create card
253
+ // const card = new CreditCardData();
254
+ // card.number = "4263970000005262";
255
+ // card.expMonth = "12";
256
+ // card.expYear = "2029";
257
+ // card.cvn = "123";
258
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
259
+ // card.cardHolderName = "James Mason";
260
+ // // request
261
+ // const response = await card
262
+ // .charge(100.01)
263
+ // .withCurrency("EUR")
264
+ // .withDescription("JAVA-Auth-007b")
265
+ // .execute();
266
+ // t.truthy(response);
267
+ // t.is("00", response.responseCode);
268
+ // });
269
+ // test("JAVA_Auth_007c", async (t) => {
270
+ // t.plan(2);
271
+ // // create card
272
+ // const card = new CreditCardData();
273
+ // card.number = "4263970000005262";
274
+ // card.expMonth = "12";
275
+ // card.expYear = "2029";
276
+ // card.cvn = "123";
277
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
278
+ // card.cardHolderName = "James Mason";
279
+ // // request
280
+ // const response = await card
281
+ // .charge(100.01)
282
+ // .withCurrency("USD")
283
+ // .withDescription("JAVA-Auth-007c")
284
+ // .execute();
285
+ // t.truthy(response);
286
+ // t.is("00", response.responseCode);
287
+ // });
288
+ // test("JAVA_Auth_007d", async (t) => {
289
+ // t.plan(2);
290
+ // // create card
291
+ // const card = new CreditCardData();
292
+ // card.number = "4263970000005262";
293
+ // card.expMonth = "12";
294
+ // card.expYear = "2029";
295
+ // card.cvn = "123";
296
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
297
+ // card.cardHolderName = "James Mason";
298
+ // // request
299
+ // const response = await card
300
+ // .charge(100.01)
301
+ // .withCurrency("GBP")
302
+ // .withDescription("JAVA-Auth-007d")
303
+ // .execute();
304
+ // t.truthy(response);
305
+ // t.is("00", response.responseCode);
306
+ // });
307
+ // test("JAVA_Auth_007e", async (t) => {
308
+ // t.plan(2);
309
+ // // create card
310
+ // const card = new CreditCardData();
311
+ // card.number = "4263970000005262";
312
+ // card.expMonth = "12";
313
+ // card.expYear = "2029";
314
+ // card.cvn = "123";
315
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
316
+ // card.cardHolderName = "James Mason";
317
+ // // request
318
+ // const response = await card
319
+ // .charge(100.01)
320
+ // .withCurrency("EUR")
321
+ // .withDescription("JAVA-Auth-007e")
322
+ // .execute();
323
+ // t.truthy(response);
324
+ // t.is("00", response.responseCode);
325
+ // });
326
+ // test("JAVA_Auth_008a", async (t) => {
327
+ // t.plan(2);
328
+ // // create card
329
+ // const card = new CreditCardData();
330
+ // card.number = "4263970000005262";
331
+ // card.expMonth = "12";
332
+ // card.expYear = "2029";
333
+ // card.cvn = "123";
334
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
335
+ // card.cardHolderName = "James Mason";
336
+ // // request
337
+ // const response = await card
338
+ // .charge(100.01)
339
+ // .withCurrency("USD")
340
+ // .withDescription("JAVA-Auth-008a")
341
+ // .execute();
342
+ // t.truthy(response);
343
+ // t.is("00", response.responseCode);
344
+ // });
345
+ // test("JAVA_Auth_008b", async (t) => {
346
+ // t.plan(2);
347
+ // // create card
348
+ // const card = new CreditCardData();
349
+ // card.number = "4263970000005262";
350
+ // card.expMonth = "12";
351
+ // card.expYear = "2029";
352
+ // card.cvn = "123";
353
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
354
+ // card.cardHolderName = "James Mason";
355
+ // // request
356
+ // const response = await card
357
+ // .charge(100.01)
358
+ // .withCurrency("GBP")
359
+ // .withDescription("JAVA-Auth-008b")
360
+ // .execute();
361
+ // t.truthy(response);
362
+ // t.is("00", response.responseCode);
363
+ // });
364
+ // test("JAVA_Auth_008c", async (t) => {
365
+ // t.plan(2);
366
+ // // create card
367
+ // const card = new CreditCardData();
368
+ // card.number = "4263970000005262";
369
+ // card.expMonth = "12";
370
+ // card.expYear = "2029";
371
+ // card.cvn = "123";
372
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
373
+ // card.cardHolderName = "James Mason";
374
+ // // request
375
+ // const response = await card
376
+ // .charge(100.01)
377
+ // .withCurrency("EUR")
378
+ // .withDescription("JAVA-Auth-008c")
379
+ // .execute();
380
+ // t.truthy(response);
381
+ // t.is("00", response.responseCode);
382
+ // });
383
+ // test("JAVA_Auth_008d", async (t) => {
384
+ // t.plan(2);
385
+ // // create card
386
+ // const card = new CreditCardData();
387
+ // card.number = "4263970000005262";
388
+ // card.expMonth = "12";
389
+ // card.expYear = "2029";
390
+ // card.cvn = "123";
391
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
392
+ // card.cardHolderName = "James Mason";
393
+ // // request
394
+ // const response = await card
395
+ // .charge(100.01)
396
+ // .withCurrency("USD")
397
+ // .withDescription("JAVA-Auth-008d")
398
+ // .execute();
399
+ // t.truthy(response);
400
+ // t.is("00", response.responseCode);
401
+ // });
402
+ // test("JAVA_Auth_008e", async (t) => {
403
+ // t.plan(2);
404
+ // // create card
405
+ // const card = new CreditCardData();
406
+ // card.number = "4263970000005262";
407
+ // card.expMonth = "12";
408
+ // card.expYear = "2029";
409
+ // card.cvn = "123";
410
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
411
+ // card.cardHolderName = "James Mason";
412
+ // // request
413
+ // const response = await card
414
+ // .charge(100.01)
415
+ // .withCurrency("GBP")
416
+ // .withDescription("JAVA-Auth-008e")
417
+ // .execute();
418
+ // t.truthy(response);
419
+ // t.is("00", response.responseCode);
420
+ // });
421
+ // test("JAVA_Auth_009a", async (t) => {
422
+ // t.plan(2);
423
+ // const config = new GpEcomConfig();
424
+ // config.merchantId = "heartlandgpsandbox";
425
+ // config.accountId = "api";
426
+ // config.sharedSecret = "secret";
427
+ // config.refundPassword = "refund";
428
+ // config.rebatePassword = "rebate";
429
+ // config.timeout = 20000;
430
+ // config.channel = "ECOM";
431
+ // ServicesContainer.configureService(config, "withChannelEcom");
432
+ // // create card
433
+ // const card = new CreditCardData();
434
+ // card.number = "4263970000005262";
435
+ // card.expMonth = "12";
436
+ // card.expYear = "2029";
437
+ // card.cvn = "123";
438
+ // card.cvnPresenceIndicator = CvnPresenceIndicator.Present;
439
+ // card.cardHolderName = "James Mason";
440
+ // // request
441
+ // const response = await card
442
+ // .charge(100.01)
443
+ // .withCurrency("EUR")
444
+ // .withDescription("JAVA-Auth-009a")
445
+ // .execute("withChannelEcom");
446
+ // t.truthy(response);
447
+ // t.is("00", response.responseCode);
448
+ // });
449
+ test("JAVA_Auth_009b", async () => {
450
+ const config = new ServiceConfigs_1.GpEcomConfig();
451
+ config.merchantId = "heartlandgpsandbox";
452
+ config.accountId = "api";
453
+ config.sharedSecret = "secret";
454
+ config.refundPassword = "refund";
455
+ config.rebatePassword = "rebate";
456
+ config.timeout = 20000;
457
+ config.channel = "ECOM";
458
+ src_1.ServicesContainer.configureService(config, "withAnotherChannelEcom");
459
+ // create card
460
+ const card = new src_1.CreditCardData();
461
+ card.number = "4263970000005262";
462
+ card.expMonth = "12";
463
+ card.expYear = "2020";
464
+ card.cvn = "123";
465
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
466
+ card.cardHolderName = "James Mason";
467
+ // request
468
+ try {
469
+ await card
470
+ .charge(100.01)
471
+ .withCurrency("USD")
472
+ .withDescription("JAVA-Auth-009b")
473
+ .execute("withAnotherChannelEcom");
474
+ }
475
+ catch (error) {
476
+ expect(error?.message).toBeTruthy();
477
+ expect(error instanceof src_1.GatewayError).toBe(true);
478
+ }
479
+ });
480
+ test("JAVA_Auth_009c", async () => {
481
+ const config = new ServiceConfigs_1.GpEcomConfig();
482
+ config.merchantId = "heartlandgpsandbox";
483
+ config.accountId = "api";
484
+ config.sharedSecret = "secret";
485
+ config.refundPassword = "refund";
486
+ config.rebatePassword = "rebate";
487
+ config.timeout = 20000;
488
+ config.channel = "ECOM";
489
+ src_1.ServicesContainer.configureService(config, "with3rdChannelEcom");
490
+ // create card
491
+ const card = new src_1.CreditCardData();
492
+ card.number = "4263970000005262";
493
+ card.expMonth = "12";
494
+ card.expYear = "2029";
495
+ card.cvn = "123";
496
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
497
+ card.cardHolderName = "James Mason";
498
+ // request
499
+ const res = await card
500
+ .charge(100.01)
501
+ .withCurrency("GBP")
502
+ .withDescription("JAVA-Auth-009c")
503
+ .execute("with3rdChannelEcom");
504
+ expect(res).toBeTruthy();
505
+ expect("00").toBe(res.responseCode);
506
+ });
507
+ test("JAVA_Auth_009d", async () => {
508
+ // create card
509
+ const card = new src_1.CreditCardData();
510
+ card.number = "4263970000005262";
511
+ card.expMonth = "12";
512
+ card.expYear = "2029";
513
+ card.cvn = "123";
514
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
515
+ card.cardHolderName = "James Mason";
516
+ // request
517
+ const response = await card
518
+ .charge(100.01)
519
+ .withCurrency("GBP")
520
+ .withDescription("JAVA-Auth-009d")
521
+ .execute();
522
+ expect(response).toBeTruthy();
523
+ expect("00").toBe(response.responseCode);
524
+ });
525
+ test("JAVA_Auth_010a", async () => {
526
+ // create card
527
+ const card = new src_1.CreditCardData();
528
+ card.number = "4263970000005262";
529
+ card.expMonth = "12";
530
+ card.expYear = "2029";
531
+ card.cvn = "123";
532
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
533
+ card.cardHolderName = "James Mason";
534
+ // request
535
+ const response = await card
536
+ .charge(100.01)
537
+ .withCurrency("USD")
538
+ .withDescription("JAVA-Auth-010a")
539
+ .execute();
540
+ expect(response).toBeTruthy();
541
+ expect("00").toBe(response.responseCode);
542
+ });
543
+ test("JAVA_Auth_010b", async () => {
544
+ // create card
545
+ const card = new src_1.CreditCardData();
546
+ card.number = "4263970000005262";
547
+ card.expMonth = "12";
548
+ card.expYear = "2029";
549
+ card.cvn = "123";
550
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
551
+ card.cardHolderName = "James Mason";
552
+ // request
553
+ const response = await card
554
+ .charge(100.01)
555
+ .withCurrency("GBP")
556
+ .withDescription("JAVA-Auth-010b")
557
+ .execute();
558
+ expect(response).toBeTruthy();
559
+ expect("00").toBe(response.responseCode);
560
+ });
561
+ test("JAVA_Auth_010c", async () => {
562
+ // create card
563
+ const card = new src_1.CreditCardData();
564
+ card.number = "4263970000005262";
565
+ card.expMonth = "12";
566
+ card.expYear = "2029";
567
+ card.cvn = "123";
568
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
569
+ card.cardHolderName = "James Mason";
570
+ // request
571
+ const response = await card
572
+ .charge(100.01)
573
+ .withCurrency("EUR")
574
+ .withDescription("JAVA-Auth-010c")
575
+ .execute();
576
+ expect(response).toBeTruthy();
577
+ expect("00").toBe(response.responseCode);
578
+ });
579
+ test("JAVA_Auth_010d", async () => {
580
+ // create card
581
+ const card = new src_1.CreditCardData();
582
+ card.number = "4263970000005262";
583
+ card.expMonth = "12";
584
+ card.expYear = "2029";
585
+ card.cvn = "123";
586
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
587
+ card.cardHolderName = "James Mason";
588
+ // request
589
+ const response = await card
590
+ .charge(100.01)
591
+ .withCurrency("USD")
592
+ .withDescription("JAVA-Auth-010d")
593
+ .execute();
594
+ expect(response).toBeTruthy();
595
+ expect("00").toBe(response.responseCode);
596
+ });
597
+ test("JAVA_Auth_010e", async () => {
598
+ // create card
599
+ const card = new src_1.CreditCardData();
600
+ card.number = "4263970000005262";
601
+ card.expMonth = "12";
602
+ card.expYear = "2029";
603
+ card.cvn = "123";
604
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
605
+ card.cardHolderName = "James Mason";
606
+ // request
607
+ const response = await card
608
+ .charge(100.01)
609
+ .withCurrency("GBP")
610
+ .withDescription("JAVA-Auth-010e")
611
+ .execute();
612
+ expect(response).toBeTruthy();
613
+ expect("00").toBe(response.responseCode);
614
+ });
615
+ test("JAVA_Auth_011a", async () => {
616
+ // create card
617
+ const card = new src_1.CreditCardData();
618
+ card.number = "4263970000005262";
619
+ card.expMonth = "12";
620
+ card.expYear = "2029";
621
+ card.cvn = "123";
622
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
623
+ card.cardHolderName = "James Mason";
624
+ // request
625
+ const response = await card
626
+ .charge(100.01)
627
+ .withCurrency("EUR")
628
+ .withDescription("JAVA-Auth-011a")
629
+ .execute();
630
+ expect(response).toBeTruthy();
631
+ expect("00").toBe(response.responseCode);
632
+ });
633
+ test("JAVA_Auth_011b", async () => {
634
+ // create card
635
+ const card = new src_1.CreditCardData();
636
+ card.number = "4263970000005262";
637
+ card.expMonth = "12";
638
+ card.expYear = "2029";
639
+ card.cvn = "123";
640
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
641
+ card.cardHolderName = "James Mason";
642
+ // request
643
+ const response = await card
644
+ .charge(100.01)
645
+ .withCurrency("USD")
646
+ .withDescription("JAVA-Auth-011b")
647
+ .execute();
648
+ expect(response).toBeTruthy();
649
+ expect("00").toBe(response.responseCode);
650
+ });
651
+ test("JAVA_Auth_011c", async () => {
652
+ // create card
653
+ const card = new src_1.CreditCardData();
654
+ card.number = "4263970000005262";
655
+ card.expMonth = "12";
656
+ card.expYear = "2029";
657
+ card.cvn = "123";
658
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
659
+ card.cardHolderName = "James Mason";
660
+ // request
661
+ const response = await card
662
+ .charge(100.01)
663
+ .withCurrency("GBP")
664
+ .withDescription("JAVA-Auth-011c")
665
+ .execute();
666
+ expect(response).toBeTruthy();
667
+ expect("00").toBe(response.responseCode);
668
+ });
669
+ test("JAVA_Auth_011d", async () => {
670
+ // create card
671
+ const card = new src_1.CreditCardData();
672
+ card.number = "4263970000005262";
673
+ card.expMonth = "12";
674
+ card.expYear = "2029";
675
+ card.cvn = "123";
676
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
677
+ card.cardHolderName = "James Mason";
678
+ // request
679
+ try {
680
+ await card
681
+ .charge()
682
+ .withCurrency("EUR")
683
+ .withDescription("JAVA-Auth-011d")
684
+ .execute();
685
+ }
686
+ catch (error) {
687
+ expect(error?.message).toBeTruthy();
688
+ expect(error instanceof src_1.GatewayError).toBe(true);
689
+ }
690
+ });
691
+ test("JAVA_Auth_012a", async () => {
692
+ // create card
693
+ const card = new src_1.CreditCardData();
694
+ card.number = "4263970000005262";
695
+ card.expMonth = "12";
696
+ card.expYear = "2029";
697
+ card.cvn = "123";
698
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
699
+ card.cardHolderName = "James Mason";
700
+ // request
701
+ const response = await card
702
+ .charge(100.01)
703
+ .withCurrency("USD")
704
+ .withDescription("JAVA-Auth-012a")
705
+ .execute();
706
+ expect(response).toBeTruthy();
707
+ expect("00").toBe(response.responseCode);
708
+ });
709
+ test("JAVA_Auth_012b", async () => {
710
+ // create card
711
+ const card = new src_1.CreditCardData();
712
+ card.number = "4263970000005262";
713
+ card.expMonth = "12";
714
+ card.expYear = "2029";
715
+ card.cvn = "123";
716
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
717
+ card.cardHolderName = "James Mason";
718
+ // request
719
+ try {
720
+ await card
721
+ .charge(100.01)
722
+ .withCurrency("EURO")
723
+ .withDescription("JAVA-Auth-012b")
724
+ .execute();
725
+ }
726
+ catch (error) {
727
+ expect(error?.message).toBeTruthy();
728
+ expect(error instanceof src_1.GatewayError).toBe(true);
729
+ }
730
+ });
731
+ test("JAVA_Auth_012c", async () => {
732
+ // create card
733
+ const card = new src_1.CreditCardData();
734
+ card.number = "4263970000005262";
735
+ card.expMonth = "12";
736
+ card.expYear = "2019";
737
+ card.cvn = "123";
738
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
739
+ card.cardHolderName = "James Mason";
740
+ // request
741
+ try {
742
+ await card
743
+ .charge(100.01)
744
+ .withCurrency("EUR")
745
+ .withDescription("JAVA-Auth-012c")
746
+ .execute();
747
+ }
748
+ catch (error) {
749
+ expect(error?.message).toBeTruthy();
750
+ expect(error instanceof src_1.GatewayError).toBe(true);
751
+ }
752
+ });
753
+ test("JAVA_Auth_012d", async () => {
754
+ // create card
755
+ const card = new src_1.CreditCardData();
756
+ card.number = "4263970000005262";
757
+ card.expMonth = "12";
758
+ card.expYear = "2029";
759
+ card.cvn = "123";
760
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
761
+ card.cardHolderName = "James Mason";
762
+ // request
763
+ try {
764
+ await card.charge(100.01).withDescription("JAVA-Auth-012d").execute();
765
+ }
766
+ catch (error) {
767
+ expect(error?.message).toBeTruthy();
768
+ expect(error instanceof src_1.GatewayError).toBe(true);
769
+ }
770
+ });
771
+ test("JAVA_Auth_013a", async () => {
772
+ // create card
773
+ const card = new src_1.CreditCardData();
774
+ card.number = "4263970000005262";
775
+ card.expMonth = "12";
776
+ card.expYear = "2029";
777
+ card.cvn = "123";
778
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
779
+ card.cardHolderName = "James Mason";
780
+ // request
781
+ const response = await card
782
+ .charge(100.01)
783
+ .withCurrency("GBP")
784
+ .withDescription("JAVA-Auth-013a")
785
+ .execute();
786
+ expect(response).toBeTruthy();
787
+ expect("00").toBe(response.responseCode);
788
+ });
789
+ test("JAVA_Auth_013b1", async () => {
790
+ // create card
791
+ const card = new src_1.CreditCardData();
792
+ card.number = "424242000000000000000";
793
+ card.expMonth = "12";
794
+ card.expYear = "2029";
795
+ card.cvn = "123";
796
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
797
+ card.cardHolderName = "James Mason";
798
+ // request
799
+ try {
800
+ await card
801
+ .charge(100.01)
802
+ .withCurrency("EUR")
803
+ .withDescription("JAVA-Auth-013b1")
804
+ .execute();
805
+ }
806
+ catch (error) {
807
+ expect(error?.message).toBeTruthy();
808
+ expect(error instanceof src_1.GatewayError).toBe(true);
809
+ }
810
+ });
811
+ test("JAVA_Auth_013b2", async () => {
812
+ // create card
813
+ const card = new src_1.CreditCardData();
814
+ card.number = "42424242424";
815
+ card.expMonth = "12";
816
+ card.expYear = "2029";
817
+ card.cvn = "123";
818
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
819
+ card.cardHolderName = "James Mason";
820
+ // request
821
+ try {
822
+ await card
823
+ .charge(100.01)
824
+ .withCurrency("USD")
825
+ .withDescription("JAVA-Auth-013b2")
826
+ .execute();
827
+ }
828
+ catch (error) {
829
+ expect(error?.message).toBeTruthy();
830
+ expect(error instanceof src_1.GatewayError).toBe(true);
831
+ }
832
+ });
833
+ test("JAVA_Auth_013c", async () => {
834
+ // create card
835
+ const card = new src_1.CreditCardData();
836
+ card.number = "4263970000005262#";
837
+ card.expMonth = "12";
838
+ card.expYear = "2029";
839
+ card.cvn = "123";
840
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
841
+ card.cardHolderName = "James Mason";
842
+ // request
843
+ try {
844
+ await card
845
+ .charge(100.01)
846
+ .withCurrency("GBP")
847
+ .withDescription("JAVA-Auth-013c")
848
+ .execute();
849
+ }
850
+ catch (error) {
851
+ expect(error?.message).toBeTruthy();
852
+ expect(error instanceof src_1.GatewayError).toBe(true);
853
+ }
854
+ });
855
+ test("JAVA_Auth_014a", async () => {
856
+ // create card
857
+ const card = new src_1.CreditCardData();
858
+ card.number = "4263970000005262";
859
+ card.expMonth = "12";
860
+ card.expYear = "2029";
861
+ card.cvn = "123";
862
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
863
+ card.cardHolderName = "James Mason";
864
+ // request
865
+ const response = await card
866
+ .charge(100.01)
867
+ .withCurrency("EUR")
868
+ .withDescription("JAVA-Auth-014a")
869
+ .execute();
870
+ expect(response).toBeTruthy();
871
+ expect("00").toBe(response.responseCode);
872
+ });
873
+ test("JAVA_Auth_014b", async () => {
874
+ // create card
875
+ const card = new src_1.CreditCardData();
876
+ card.number = "4263970000005262";
877
+ card.expMonth = "12";
878
+ card.expYear = "2029";
879
+ card.cvn = "123";
880
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
881
+ // request
882
+ try {
883
+ await card
884
+ .charge(100.01)
885
+ .withCurrency("USD")
886
+ .withDescription("JAVA-Auth-014b")
887
+ .execute();
888
+ }
889
+ catch (error) {
890
+ expect(error?.message).toBeTruthy();
891
+ expect(error instanceof src_1.GatewayError).toBe(true);
892
+ }
893
+ });
894
+ test("JAVA_Auth_014c", async () => {
895
+ // create card
896
+ const card = new src_1.CreditCardData();
897
+ card.number = "4263970000005262";
898
+ card.expMonth = "12";
899
+ card.expYear = "2029";
900
+ card.cvn = "123";
901
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
902
+ card.cardHolderName =
903
+ "3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep";
904
+ // request
905
+ try {
906
+ await card
907
+ .charge(100.01)
908
+ .withCurrency("GBP")
909
+ .withDescription("JAVA-Auth-014c")
910
+ .execute();
911
+ }
912
+ catch (error) {
913
+ expect(error?.message).toBeTruthy();
914
+ expect(error instanceof src_1.GatewayError).toBe(true);
915
+ }
916
+ });
917
+ test("JAVA_Auth_014d", async () => {
918
+ // create card
919
+ const card = new src_1.CreditCardData();
920
+ card.number = "4263970000005262";
921
+ card.expMonth = "12";
922
+ card.expYear = "2029";
923
+ card.cvn = "123";
924
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
925
+ card.cardHolderName = "James~Mason";
926
+ // request
927
+ const response = await card
928
+ .charge(100.01)
929
+ .withCurrency("EUR")
930
+ .withDescription("JAVA-Auth-014d")
931
+ .execute();
932
+ expect(response).toBeTruthy();
933
+ expect("00").toBe(response.responseCode);
934
+ });
935
+ test("JAVA_Auth_015a", async () => {
936
+ expect.assertions(2);
937
+ // create card
938
+ const card = new src_1.CreditCardData();
939
+ card.number = "4263970000005262";
940
+ card.expMonth = "12";
941
+ card.expYear = "2029";
942
+ card.cvn = "123";
943
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
944
+ card.cardHolderName = "James Mason";
945
+ // request
946
+ const response = await card
947
+ .charge(100.01)
948
+ .withCurrency("USD")
949
+ .withDescription("JAVA-Auth-015a")
950
+ .execute();
951
+ expect(response).toBeTruthy();
952
+ expect("00").toBe(response.responseCode);
953
+ });
954
+ test("JAVA_Auth_015b", async () => {
955
+ // create card
956
+ const card = new src_1.CreditCardData();
957
+ card.number = "4263970000005262";
958
+ card.expMonth = "12";
959
+ card.expYear = "2029";
960
+ card.cvn = "123";
961
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
962
+ card.cardHolderName = "James Mason";
963
+ // request
964
+ const response = await card
965
+ .charge(100.01)
966
+ .withCurrency("GBP")
967
+ .withDescription("JAVA-Auth-015b")
968
+ .execute();
969
+ expect(response).toBeTruthy();
970
+ expect("00").toBe(response.responseCode);
971
+ });
972
+ test("JAVA_Auth_015c", async () => {
973
+ // create card
974
+ const card = new src_1.CreditCardData();
975
+ card.number = "4263970000005262";
976
+ card.expMonth = "20";
977
+ card.expYear = "2012";
978
+ card.cvn = "123";
979
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
980
+ card.cardHolderName = "James Mason";
981
+ // request
982
+ try {
983
+ await card
984
+ .charge(100.01)
985
+ .withCurrency("EUR")
986
+ .withDescription("JAVA-Auth-015c")
987
+ .execute();
988
+ }
989
+ catch (error) {
990
+ expect(error?.message).toBeTruthy();
991
+ expect(error instanceof src_1.GatewayError).toBe(true);
992
+ }
993
+ });
994
+ test("JAVA_Auth_015d", async () => {
995
+ // create card
996
+ const card = new src_1.CreditCardData();
997
+ card.number = "4263970000005262";
998
+ card.cvn = "123";
999
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1000
+ card.cardHolderName = "James Mason";
1001
+ // request
1002
+ try {
1003
+ await card
1004
+ .charge(100.01)
1005
+ .withCurrency("USD")
1006
+ .withDescription("JAVA-Auth-015d")
1007
+ .execute();
1008
+ }
1009
+ catch (error) {
1010
+ expect(error?.message).toBeTruthy();
1011
+ expect(error instanceof src_1.GatewayError).toBe(true);
1012
+ }
1013
+ });
1014
+ test("JAVA_Auth_016a", async () => {
1015
+ // create card
1016
+ const card = new src_1.CreditCardData();
1017
+ card.number = "4263970000005262";
1018
+ card.expMonth = "12";
1019
+ card.expYear = "2029";
1020
+ card.cvn = "123";
1021
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1022
+ card.cardHolderName = "James Mason";
1023
+ // request
1024
+ const response = await card
1025
+ .charge(100.01)
1026
+ .withCurrency("GBP")
1027
+ .withDescription("JAVA-Auth-016a")
1028
+ .execute();
1029
+ expect(response).toBeTruthy();
1030
+ expect("00").toBe(response.responseCode);
1031
+ });
1032
+ test("JAVA_Auth_016b", async () => {
1033
+ expect.assertions(2);
1034
+ // create card
1035
+ const card = new src_1.CreditCardData();
1036
+ card.number = "4263970000005262";
1037
+ card.expMonth = "12";
1038
+ card.expYear = "2029";
1039
+ card.cvn = "123";
1040
+ card.cardHolderName = "James Mason";
1041
+ // request
1042
+ const response = await card
1043
+ .charge(100.01)
1044
+ .withCurrency("EUR")
1045
+ .withDescription("JAVA-Auth-016b")
1046
+ .execute();
1047
+ expect(response).toBeTruthy();
1048
+ expect("00").toBe(response.responseCode);
1049
+ });
1050
+ test("JAVA_Auth_016c", async () => {
1051
+ // create card
1052
+ const card = new src_1.CreditCardData();
1053
+ card.number = "4263970000005262";
1054
+ card.expMonth = "12";
1055
+ card.expYear = "2029";
1056
+ card.cvn = "123";
1057
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1058
+ card.cardHolderName = "James Mason";
1059
+ // request
1060
+ const response = await card
1061
+ .charge(100.01)
1062
+ .withCurrency("USD")
1063
+ .withDescription("JAVA-Auth-016c")
1064
+ .execute();
1065
+ expect(response).toBeTruthy();
1066
+ expect("00").toBe(response.responseCode);
1067
+ });
1068
+ test("JAVA_Auth_017a", async () => {
1069
+ expect.assertions(2);
1070
+ // create card
1071
+ const card = new src_1.CreditCardData();
1072
+ card.number = "4263970000005262";
1073
+ card.expMonth = "12";
1074
+ card.expYear = "2029";
1075
+ card.cvn = "123";
1076
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1077
+ card.cardHolderName = "James Mason";
1078
+ // request
1079
+ const response = await card
1080
+ .charge(100.01)
1081
+ .withCurrency("GBP")
1082
+ .withDescription("JAVA-Auth-017a")
1083
+ .execute();
1084
+ expect(response).toBeTruthy();
1085
+ expect("00").toBe(response.responseCode);
1086
+ });
1087
+ test("JAVA_Auth_018a", async () => {
1088
+ expect.assertions(2);
1089
+ // create card
1090
+ const card = new src_1.CreditCardData();
1091
+ card.number = "4263970000005262";
1092
+ card.expMonth = "12";
1093
+ card.expYear = "2029";
1094
+ card.cvn = "123";
1095
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1096
+ card.cardHolderName = "James Mason";
1097
+ // request
1098
+ const response = await card
1099
+ .charge(100.01)
1100
+ .withCurrency("EUR")
1101
+ .withDescription("JAVA-Auth-018a")
1102
+ .execute();
1103
+ expect(response).toBeTruthy();
1104
+ expect("00").toBe(response.responseCode);
1105
+ });
1106
+ test("JAVA_Auth_019a", async () => {
1107
+ // create card
1108
+ const card = new src_1.CreditCardData();
1109
+ card.number = "4263970000005262";
1110
+ card.expMonth = "12";
1111
+ card.expYear = "2029";
1112
+ card.cvn = "123";
1113
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1114
+ card.cardHolderName = "James Mason";
1115
+ // request
1116
+ const response = await card
1117
+ .charge(100.01)
1118
+ .withCurrency("USD")
1119
+ .withDescription("JAVA-Auth-019a")
1120
+ .execute();
1121
+ expect(response).toBeTruthy();
1122
+ expect("00").toBe(response.responseCode);
1123
+ });
1124
+ test("JAVA_Auth_019b1", async () => {
1125
+ // create card
1126
+ const card = new src_1.CreditCardData();
1127
+ card.number = "4263970000005262";
1128
+ card.expMonth = "12";
1129
+ card.expYear = "2029";
1130
+ card.cvn = "1234";
1131
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1132
+ card.cardHolderName = "James Mason";
1133
+ // request
1134
+ try {
1135
+ await card
1136
+ .charge(100.01)
1137
+ .withCurrency("GBP")
1138
+ .withDescription("JAVA-Auth-019b1")
1139
+ .execute();
1140
+ }
1141
+ catch (error) {
1142
+ expect(error?.message).toBeTruthy();
1143
+ expect(error instanceof src_1.GatewayError).toBe(true);
1144
+ }
1145
+ });
1146
+ test("JAVA_Auth_019b2", async () => {
1147
+ // create card
1148
+ const card = new src_1.CreditCardData();
1149
+ card.number = "4263970000005262";
1150
+ card.expMonth = "12";
1151
+ card.expYear = "2029";
1152
+ card.cvn = "123";
1153
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1154
+ card.cardHolderName = "James Mason";
1155
+ // request
1156
+ const response = await card
1157
+ .charge(100.01)
1158
+ .withCurrency("GBP")
1159
+ .withDescription("JAVA-Auth-019b2")
1160
+ .execute();
1161
+ expect(response).toBeTruthy();
1162
+ expect("00").toBe(response.responseCode);
1163
+ });
1164
+ test("JAVA_Auth_019c", async () => {
1165
+ // create card
1166
+ const card = new src_1.CreditCardData();
1167
+ card.number = "4263970000005262";
1168
+ card.expMonth = "12";
1169
+ card.expYear = "2029";
1170
+ card.cvn = "12345";
1171
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1172
+ card.cardHolderName = "James Mason";
1173
+ // request
1174
+ try {
1175
+ await card
1176
+ .charge(100.01)
1177
+ .withCurrency("EUR")
1178
+ .withDescription("JAVA-Auth-019c")
1179
+ .execute();
1180
+ }
1181
+ catch (error) {
1182
+ expect(error?.message).toBeTruthy();
1183
+ expect(error instanceof src_1.GatewayError).toBe(true);
1184
+ }
1185
+ });
1186
+ test("JAVA_Auth_019d", async () => {
1187
+ // create card
1188
+ const card = new src_1.CreditCardData();
1189
+ card.number = "374101000000608";
1190
+ card.expMonth = "12";
1191
+ card.expYear = "2029";
1192
+ card.cvn = "1234";
1193
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1194
+ card.cardHolderName = "James Mason";
1195
+ // request
1196
+ const response = await card
1197
+ .charge(100.01)
1198
+ .withCurrency("USD")
1199
+ .withDescription("JAVA-Auth-019d")
1200
+ .execute();
1201
+ expect(response).toBeTruthy();
1202
+ expect("00").toBe(response.responseCode);
1203
+ });
1204
+ test("JAVA_Auth_020a1", async () => {
1205
+ // create card
1206
+ const card = new src_1.CreditCardData();
1207
+ card.number = "4263970000005262";
1208
+ card.expMonth = "12";
1209
+ card.expYear = "2029";
1210
+ card.cvn = "123";
1211
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1212
+ card.cardHolderName = "James Mason";
1213
+ // request
1214
+ const response = await card
1215
+ .charge(100.01)
1216
+ .withCurrency("GBP")
1217
+ .withDescription("JAVA-Auth-020a1")
1218
+ .execute();
1219
+ expect(response).toBeTruthy();
1220
+ expect("00").toBe(response.responseCode);
1221
+ });
1222
+ test("JAVA_Auth_020a2", async () => {
1223
+ // create card
1224
+ const card = new src_1.CreditCardData();
1225
+ card.number = "4263970000005262";
1226
+ card.expMonth = "12";
1227
+ card.expYear = "2029";
1228
+ card.cvn = "";
1229
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Illegible;
1230
+ card.cardHolderName = "James Mason";
1231
+ // request
1232
+ const response = await card
1233
+ .charge(100.01)
1234
+ .withCurrency("EUR")
1235
+ .withDescription("JAVA-Auth-020a2")
1236
+ .execute();
1237
+ expect(response).toBeTruthy();
1238
+ expect("00").toBe(response.responseCode);
1239
+ });
1240
+ test("JAVA_Auth_020a3", async () => {
1241
+ // create card
1242
+ const card = new src_1.CreditCardData();
1243
+ card.number = "4263970000005262";
1244
+ card.expMonth = "12";
1245
+ card.expYear = "2029";
1246
+ card.cvn = "";
1247
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.NotOnCard;
1248
+ card.cardHolderName = "James Mason";
1249
+ // request
1250
+ const response = await card
1251
+ .charge(100.01)
1252
+ .withCurrency("USD")
1253
+ .withDescription("JAVA-Auth-020a3")
1254
+ .execute();
1255
+ expect(response).toBeTruthy();
1256
+ expect("00").toBe(response.responseCode);
1257
+ });
1258
+ test("JAVA_Auth_020a4", async () => {
1259
+ // create card
1260
+ const card = new src_1.CreditCardData();
1261
+ card.number = "4263970000005262";
1262
+ card.expMonth = "12";
1263
+ card.expYear = "2029";
1264
+ card.cvn = "";
1265
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.NotRequested;
1266
+ card.cardHolderName = "James Mason";
1267
+ // request
1268
+ const response = await card
1269
+ .charge(100.01)
1270
+ .withCurrency("GBP")
1271
+ .withDescription("JAVA-Auth-020a4")
1272
+ .execute();
1273
+ expect(response).toBeTruthy();
1274
+ expect("00").toBe(response.responseCode);
1275
+ });
1276
+ test("JAVA_Auth_020b", async () => {
1277
+ // create card
1278
+ const card = new src_1.CreditCardData();
1279
+ card.number = "4263970000005262";
1280
+ card.expMonth = "12";
1281
+ card.expYear = "2029";
1282
+ card.cvn = "123";
1283
+ card.cvnPresenceIndicator = 5;
1284
+ card.cardHolderName = "James Mason";
1285
+ // request
1286
+ await card
1287
+ .charge(100.01)
1288
+ .withCurrency("EUR")
1289
+ .withDescription("JAVA-Auth-020b")
1290
+ .execute();
1291
+ try {
1292
+ await card
1293
+ .charge(100.01)
1294
+ .withCurrency("EUR")
1295
+ .withDescription("JAVA-Auth-020b")
1296
+ .execute();
1297
+ }
1298
+ catch (error) {
1299
+ expect(error?.message).toBeTruthy();
1300
+ expect(error instanceof src_1.GatewayError).toBe(true);
1301
+ }
1302
+ });
1303
+ test("JAVA_Auth_020c", async () => {
1304
+ // create card
1305
+ const card = new src_1.CreditCardData();
1306
+ card.number = "4263970000005262";
1307
+ card.expMonth = "12";
1308
+ card.expYear = "2029";
1309
+ card.cvn = "123";
1310
+ card.cvnPresenceIndicator = 0;
1311
+ card.cardHolderName = "James Mason";
1312
+ // request
1313
+ const response = await card
1314
+ .charge(100.01)
1315
+ .withCurrency("USD")
1316
+ .withDescription("JAVA-Auth-020c")
1317
+ .execute();
1318
+ expect(response).toBeTruthy();
1319
+ expect("00").toBe(response.responseCode);
1320
+ });
1321
+ test("JAVA_Auth_021a1", async () => {
1322
+ // create card
1323
+ const card = new src_1.CreditCardData();
1324
+ card.number = "4263970000005262";
1325
+ card.expMonth = "12";
1326
+ card.expYear = "2029";
1327
+ card.cvn = "123";
1328
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1329
+ card.cardHolderName = "James Mason";
1330
+ // request
1331
+ const response = await card
1332
+ .charge(100.01)
1333
+ .withCurrency("GBP")
1334
+ .withDescription("JAVA-Auth-021a1")
1335
+ .execute();
1336
+ expect(response).toBeTruthy();
1337
+ expect("00").toBe(response.responseCode);
1338
+ });
1339
+ test("JAVA_Auth_021a2", async () => {
1340
+ // create card
1341
+ const card = new src_1.CreditCardData();
1342
+ card.number = "4263970000005262";
1343
+ card.expMonth = "12";
1344
+ card.expYear = "2029";
1345
+ card.cvn = "123";
1346
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1347
+ card.cardHolderName = "James Mason";
1348
+ // request
1349
+ const response = await card
1350
+ .authorize(100.01)
1351
+ .withCurrency("EUR")
1352
+ .withDescription("JAVA-Auth-021a2")
1353
+ .execute();
1354
+ expect(response).toBeTruthy();
1355
+ expect("00").toBe(response.responseCode);
1356
+ });
1357
+ test("JAVA_Auth_021a3", async () => {
1358
+ // create card
1359
+ const card = new src_1.CreditCardData();
1360
+ card.number = "4263970000005262";
1361
+ card.expMonth = "12";
1362
+ card.expYear = "2029";
1363
+ card.cvn = "123";
1364
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1365
+ card.cardHolderName = "James Mason";
1366
+ // request
1367
+ const response = await card
1368
+ .authorize(100.01)
1369
+ .withCurrency("USD")
1370
+ .withDescription("JAVA-Auth-021a3")
1371
+ .execute();
1372
+ expect(response).toBeTruthy();
1373
+ expect("00").toBe(response.responseCode);
1374
+ });
1375
+ test("JAVA_Auth_021b", async () => {
1376
+ // create card
1377
+ const card = new src_1.CreditCardData();
1378
+ card.number = "4263970000005262";
1379
+ card.expMonth = "12";
1380
+ card.expYear = "2029";
1381
+ card.cvn = "123";
1382
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1383
+ card.cardHolderName = "James Mason";
1384
+ // request
1385
+ const response = await card
1386
+ .authorize(100.01)
1387
+ .withCurrency("EUR")
1388
+ .withDescription("JAVA-Auth-021b")
1389
+ .execute();
1390
+ expect(response).toBeTruthy();
1391
+ expect("00").toBe(response.responseCode);
1392
+ });
1393
+ test("JAVA_Auth_021c", async () => {
1394
+ // create card
1395
+ const card = new src_1.CreditCardData();
1396
+ card.number = "4263970000005262";
1397
+ card.expMonth = "12";
1398
+ card.expYear = "2029";
1399
+ card.cvn = "123";
1400
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1401
+ card.cardHolderName = "James Mason";
1402
+ // request
1403
+ const response = await card
1404
+ .authorize(100.01)
1405
+ .withCurrency("USD")
1406
+ .withDescription("JAVA-Auth-021c")
1407
+ .execute();
1408
+ expect(response).toBeTruthy();
1409
+ expect("00").toBe(response.responseCode);
1410
+ });
1411
+ test("JAVA_Auth_022a", async () => {
1412
+ // create card
1413
+ const card = new src_1.CreditCardData();
1414
+ card.number = "4263970000005262";
1415
+ card.expMonth = "12";
1416
+ card.expYear = "2029";
1417
+ card.cvn = "123";
1418
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1419
+ card.cardHolderName = "James Mason";
1420
+ // request
1421
+ const response = await card
1422
+ .charge(100.01)
1423
+ .withCurrency("GBP")
1424
+ .withDescription("JAVA-Auth-022a")
1425
+ .execute();
1426
+ expect(response).toBeTruthy();
1427
+ expect("00").toBe(response.responseCode);
1428
+ });
1429
+ test("JAVA_Auth_022b", async () => {
1430
+ // create card
1431
+ const card = new src_1.CreditCardData();
1432
+ card.number = "4263970000005262";
1433
+ card.expMonth = "12";
1434
+ card.expYear = "2029";
1435
+ card.cvn = "123";
1436
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1437
+ card.cardHolderName = "James Mason";
1438
+ // request
1439
+ const response = await card
1440
+ .charge(100.01)
1441
+ .withCurrency("GBP")
1442
+ .withDescription("JAVA-Auth-022b")
1443
+ .execute();
1444
+ expect(response).toBeTruthy();
1445
+ expect("00").toBe(response.responseCode);
1446
+ });
1447
+ test("JAVA_Auth_022c", async () => {
1448
+ // create card
1449
+ const card = new src_1.CreditCardData();
1450
+ card.number = "4263970000005262";
1451
+ card.expMonth = "12";
1452
+ card.expYear = "2029";
1453
+ card.cvn = "123";
1454
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1455
+ card.cardHolderName = "James Mason";
1456
+ // request
1457
+ const response = await card
1458
+ .charge(100.01)
1459
+ .withCurrency("GBP")
1460
+ .withDescription("JAVA-Auth-022c")
1461
+ .execute();
1462
+ expect(response).toBeTruthy();
1463
+ expect("00").toBe(response.responseCode);
1464
+ });
1465
+ test("JAVA_Auth_022d", async () => {
1466
+ // create card
1467
+ const card = new src_1.CreditCardData();
1468
+ card.number = "4263970000005262";
1469
+ card.expMonth = "12";
1470
+ card.expYear = "2029";
1471
+ card.cvn = "123";
1472
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1473
+ card.cardHolderName = "James Mason";
1474
+ // request
1475
+ const response = await card
1476
+ .charge(100.01)
1477
+ .withCurrency("GBP")
1478
+ .withDescription("JAVA-Auth-022d")
1479
+ .execute();
1480
+ expect(response).toBeTruthy();
1481
+ expect("00").toBe(response.responseCode);
1482
+ });
1483
+ test("JAVA_Auth_022e", async () => {
1484
+ // create card
1485
+ const card = new src_1.CreditCardData();
1486
+ card.number = "4263970000005262";
1487
+ card.expMonth = "12";
1488
+ card.expYear = "2029";
1489
+ card.cvn = "123";
1490
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1491
+ card.cardHolderName = "James Mason";
1492
+ // request
1493
+ const response = await card
1494
+ .charge(100.01)
1495
+ .withCurrency("GBP")
1496
+ .withDescription("JAVA-Auth-022e")
1497
+ .execute();
1498
+ expect(response).toBeTruthy();
1499
+ expect("00").toBe(response.responseCode);
1500
+ });
1501
+ test("JAVA_Auth_023a1", async () => {
1502
+ // create card
1503
+ const card = new src_1.CreditCardData();
1504
+ card.number = "4263970000005262";
1505
+ card.expMonth = "12";
1506
+ card.expYear = "2029";
1507
+ card.cvn = "123";
1508
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1509
+ card.cardHolderName = "James Mason";
1510
+ // request
1511
+ const response = await card
1512
+ .charge(100.01)
1513
+ .withCurrency("EUR")
1514
+ .withDescription("JAVA-Auth-023a1")
1515
+ .execute();
1516
+ expect(response).toBeTruthy();
1517
+ expect("00").toBe(response.responseCode);
1518
+ });
1519
+ test("JAVA_Auth_023a2", async () => {
1520
+ // create card
1521
+ const card = new src_1.CreditCardData();
1522
+ card.number = "4263970000005262";
1523
+ card.expMonth = "12";
1524
+ card.expYear = "2029";
1525
+ card.cvn = "123";
1526
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1527
+ card.cardHolderName = "James Mason";
1528
+ // request
1529
+ const response = await card
1530
+ .charge(100.01)
1531
+ .withCurrency("USD")
1532
+ .withDescription("JAVA-Auth-023a2")
1533
+ .execute();
1534
+ expect(response).toBeTruthy();
1535
+ expect("00").toBe(response.responseCode);
1536
+ });
1537
+ test("JAVA_Auth_023b1", async () => {
1538
+ // create card
1539
+ const card = new src_1.CreditCardData();
1540
+ card.number = "4263970000005262";
1541
+ card.expMonth = "12";
1542
+ card.expYear = "2029";
1543
+ card.cvn = "123";
1544
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1545
+ card.cardHolderName = "James Mason";
1546
+ // request
1547
+ const response = await card
1548
+ .charge(100.01)
1549
+ .withCurrency("GBP")
1550
+ .withDescription("JAVA-Auth-023b1")
1551
+ .execute();
1552
+ expect(response).toBeTruthy();
1553
+ expect("00").toBe(response.responseCode);
1554
+ });
1555
+ test("JAVA_Auth_023c", async () => {
1556
+ // create card
1557
+ const card = new src_1.CreditCardData();
1558
+ card.number = "4263970000005262";
1559
+ card.expMonth = "12";
1560
+ card.expYear = "2029";
1561
+ card.cvn = "123";
1562
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1563
+ card.cardHolderName = "James Mason";
1564
+ // request
1565
+ const response = await card
1566
+ .charge(100.01)
1567
+ .withCurrency("GBP")
1568
+ .withDescription("JAVA-Auth-023c")
1569
+ .execute();
1570
+ expect(response).toBeTruthy();
1571
+ expect("00").toBe(response.responseCode);
1572
+ });
1573
+ test("JAVA_Auth_024a1", async () => {
1574
+ // create card
1575
+ const card = new src_1.CreditCardData();
1576
+ card.number = "4263970000005262";
1577
+ card.expMonth = "12";
1578
+ card.expYear = "2029";
1579
+ card.cvn = "123";
1580
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1581
+ card.cardHolderName = "James Mason";
1582
+ // request
1583
+ const response = await card
1584
+ .charge(100.01)
1585
+ .withCurrency("EUR")
1586
+ .withDescription("JAVA-Auth-024a1")
1587
+ .execute();
1588
+ expect(response).toBeTruthy();
1589
+ expect("00").toBe(response.responseCode);
1590
+ });
1591
+ test("JAVA_Auth_024a2", async () => {
1592
+ // create card
1593
+ const card = new src_1.CreditCardData();
1594
+ card.number = "4263970000005262";
1595
+ card.expMonth = "12";
1596
+ card.expYear = "2029";
1597
+ card.cvn = "123";
1598
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1599
+ card.cardHolderName = "James Mason";
1600
+ // request
1601
+ const response = await card
1602
+ .charge(100.01)
1603
+ .withCurrency("USD")
1604
+ .withDescription("JAVA-Auth-024a2")
1605
+ .execute();
1606
+ expect(response).toBeTruthy();
1607
+ expect("00").toBe(response.responseCode);
1608
+ });
1609
+ test("JAVA_Auth_024a3", async () => {
1610
+ // create card
1611
+ const card = new src_1.CreditCardData();
1612
+ card.number = "4263970000005262";
1613
+ card.expMonth = "12";
1614
+ card.expYear = "2029";
1615
+ card.cvn = "123";
1616
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1617
+ card.cardHolderName = "James Mason";
1618
+ // request
1619
+ const response = await card
1620
+ .charge(100.01)
1621
+ .withCurrency("GBP")
1622
+ .withDescription("JAVA-Auth-024a3")
1623
+ .execute();
1624
+ expect(response).toBeTruthy();
1625
+ expect("00").toBe(response.responseCode);
1626
+ });
1627
+ test("JAVA_Auth_024b", async () => {
1628
+ // create card
1629
+ const card = new src_1.CreditCardData();
1630
+ card.number = "4263970000005262";
1631
+ card.expMonth = "12";
1632
+ card.expYear = "2029";
1633
+ card.cvn = "123";
1634
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1635
+ card.cardHolderName = "James Mason";
1636
+ // request
1637
+ const response = await card
1638
+ .charge(100.01)
1639
+ .withCurrency("EUR")
1640
+ .withDescription("JAVA-Auth-024b")
1641
+ .execute();
1642
+ expect(response).toBeTruthy();
1643
+ expect("00").toBe(response.responseCode);
1644
+ });
1645
+ test("JAVA_Auth_024c", async () => {
1646
+ // create card
1647
+ const card = new src_1.CreditCardData();
1648
+ card.number = "4263970000005262";
1649
+ card.expMonth = "12";
1650
+ card.expYear = "2029";
1651
+ card.cvn = "123";
1652
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1653
+ card.cardHolderName = "James Mason";
1654
+ // request
1655
+ const response = await card
1656
+ .charge(100.01)
1657
+ .withCurrency("USD")
1658
+ .withDescription("JAVA-Auth-024c")
1659
+ .execute();
1660
+ expect(response).toBeTruthy();
1661
+ expect("00").toBe(response.responseCode);
1662
+ });
1663
+ test("JAVA_Auth_025", async () => {
1664
+ // create card
1665
+ const card = new src_1.CreditCardData();
1666
+ card.number = "4263970000005262";
1667
+ card.expMonth = "12";
1668
+ card.expYear = "2029";
1669
+ card.cvn = "123";
1670
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1671
+ card.cardHolderName = "James Mason";
1672
+ // request
1673
+ const response = await card
1674
+ .charge(100.01)
1675
+ .withCurrency("GBP")
1676
+ .withDescription("JAVA-Auth-025")
1677
+ .execute();
1678
+ expect(response).toBeTruthy();
1679
+ expect("00").toBe(response.responseCode);
1680
+ });
1681
+ test("JAVA_Auth_026a1", async () => {
1682
+ // create card
1683
+ const card = new src_1.CreditCardData();
1684
+ card.number = "4263970000005262";
1685
+ card.expMonth = "12";
1686
+ card.expYear = "2029";
1687
+ card.cvn = "123";
1688
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1689
+ card.cardHolderName = "James Mason";
1690
+ // request
1691
+ const response = await card
1692
+ .charge(100.01)
1693
+ .withCurrency("EUR")
1694
+ .withDescription("JAVA-Auth-026a1")
1695
+ .execute();
1696
+ expect(response).toBeTruthy();
1697
+ expect("00").toBe(response.responseCode);
1698
+ });
1699
+ test("JAVA_Auth_026a2", async () => {
1700
+ // create card
1701
+ const card = new src_1.CreditCardData();
1702
+ card.number = "4263970000005262";
1703
+ card.expMonth = "12";
1704
+ card.expYear = "2029";
1705
+ card.cvn = "123";
1706
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1707
+ card.cardHolderName = "James Mason";
1708
+ // request
1709
+ const response = await card.charge(100.01).withCurrency("EUR").execute();
1710
+ expect(response).toBeTruthy();
1711
+ expect("00").toBe(response.responseCode);
1712
+ });
1713
+ test("JAVA_Auth_026b", async () => {
1714
+ // create card
1715
+ const card = new src_1.CreditCardData();
1716
+ card.number = "4263970000005262";
1717
+ card.expMonth = "12";
1718
+ card.expYear = "2029";
1719
+ card.cvn = "123";
1720
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1721
+ card.cardHolderName = "James Mason";
1722
+ // request
1723
+ const response = await card.charge(100.01).withCurrency("USD").execute();
1724
+ expect(response).toBeTruthy();
1725
+ expect("00").toBe(response.responseCode);
1726
+ });
1727
+ test("JAVA_Auth_026c1", async () => {
1728
+ // create card
1729
+ const card = new src_1.CreditCardData();
1730
+ card.number = "4263970000005262";
1731
+ card.expMonth = "12";
1732
+ card.expYear = "2029";
1733
+ card.cvn = "123";
1734
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1735
+ card.cardHolderName = "James Mason";
1736
+ // request
1737
+ const response = await card
1738
+ .charge(100.01)
1739
+ .withCurrency("GBP")
1740
+ /* eslint-disable */
1741
+ .withDescription("3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIep3uviSnW9XEB3a4wpIW9XEB3a")
1742
+ /* eslint-enable */
1743
+ .execute();
1744
+ expect(response).toBeTruthy();
1745
+ expect("00").toBe(response.responseCode);
1746
+ });
1747
+ test("JAVA_Auth_026c2", async () => {
1748
+ // create card
1749
+ const card = new src_1.CreditCardData();
1750
+ card.number = "4263970000005262";
1751
+ card.expMonth = "12";
1752
+ card.expYear = "2029";
1753
+ card.cvn = "123";
1754
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1755
+ card.cardHolderName = "James Mason";
1756
+ // request
1757
+ const response = await card
1758
+ .charge(100.01)
1759
+ .withCurrency("EUR")
1760
+ .withDescription("JAVA-Auth-026c2")
1761
+ .execute();
1762
+ expect(response).toBeTruthy();
1763
+ expect("00").toBe(response.responseCode);
1764
+ });
1765
+ test("JAVA_Auth_027a", async () => {
1766
+ // create card
1767
+ const card = new src_1.CreditCardData();
1768
+ card.number = "4263970000005262";
1769
+ card.expMonth = "12";
1770
+ card.expYear = "2029";
1771
+ card.cvn = "123";
1772
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1773
+ card.cardHolderName = "James Mason";
1774
+ // request
1775
+ const response = await card
1776
+ .charge(100.01)
1777
+ .withCurrency("USD")
1778
+ .withCustomerId("123456")
1779
+ .withDescription("JAVA-Auth-027a")
1780
+ .execute();
1781
+ expect(response).toBeTruthy();
1782
+ expect("00").toBe(response.responseCode);
1783
+ });
1784
+ test("JAVA_Auth_028a", async () => {
1785
+ // create card
1786
+ const card = new src_1.CreditCardData();
1787
+ card.number = "4263970000005262";
1788
+ card.expMonth = "12";
1789
+ card.expYear = "2029";
1790
+ card.cvn = "123";
1791
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1792
+ card.cardHolderName = "James Mason";
1793
+ // request
1794
+ const response = await card
1795
+ .charge(100.01)
1796
+ .withCurrency("GBP")
1797
+ .withCustomerId("123456")
1798
+ .withDescription("JAVA-Auth-028a")
1799
+ .execute();
1800
+ expect(response).toBeTruthy();
1801
+ expect("00").toBe(response.responseCode);
1802
+ });
1803
+ test("JAVA_Auth_028b", async () => {
1804
+ // create card
1805
+ const card = new src_1.CreditCardData();
1806
+ card.number = "4263970000005262";
1807
+ card.expMonth = "12";
1808
+ card.expYear = "2029";
1809
+ card.cvn = "123";
1810
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1811
+ card.cardHolderName = "James Mason";
1812
+ // request
1813
+ const response = await card
1814
+ .charge(100.01)
1815
+ .withCurrency("EUR")
1816
+ .withDescription("JAVA-Auth-028b")
1817
+ .execute();
1818
+ expect(response).toBeTruthy();
1819
+ expect("00").toBe(response.responseCode);
1820
+ });
1821
+ test("JAVA_Auth_028c", async () => {
1822
+ // create card
1823
+ const card = new src_1.CreditCardData();
1824
+ card.number = "4263970000005262";
1825
+ card.expMonth = "12";
1826
+ card.expYear = "2029";
1827
+ card.cvn = "123";
1828
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1829
+ card.cardHolderName = "James Mason";
1830
+ // request
1831
+ const res = await card
1832
+ .charge(100.01)
1833
+ .withCurrency("USD")
1834
+ // tslint:disable:max-line-length
1835
+ .withCustomerId("3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep33a4wpQQQQQQQQQ1")
1836
+ // tslint:enable:max-line-length
1837
+ .withDescription("JAVA-Auth-028c")
1838
+ .execute();
1839
+ expect(res).toBeTruthy();
1840
+ expect("00").toBe(res.responseCode);
1841
+ });
1842
+ test("JAVA_Auth_028d", async () => {
1843
+ // create card
1844
+ const card = new src_1.CreditCardData();
1845
+ card.number = "4263970000005262";
1846
+ card.expMonth = "12";
1847
+ card.expYear = "2029";
1848
+ card.cvn = "123";
1849
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1850
+ card.cardHolderName = "James Mason";
1851
+ // request
1852
+ const res = await card
1853
+ .charge(100.01)
1854
+ .withCurrency("GBP")
1855
+ .withCustomerId("123456~")
1856
+ .withDescription("JAVA-Auth-028d")
1857
+ .execute();
1858
+ expect(res).toBeTruthy();
1859
+ expect("00").toBe(res.responseCode);
1860
+ });
1861
+ test("JAVA_Auth_029a", async () => {
1862
+ // create card
1863
+ const card = new src_1.CreditCardData();
1864
+ card.number = "4263970000005262";
1865
+ card.expMonth = "12";
1866
+ card.expYear = "2029";
1867
+ card.cvn = "123";
1868
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1869
+ card.cardHolderName = "James Mason";
1870
+ // request
1871
+ const response = await card
1872
+ .charge(100.01)
1873
+ .withCurrency("EUR")
1874
+ .withProductId("123456")
1875
+ .withDescription("JAVA-Auth-029a")
1876
+ .execute();
1877
+ expect(response).toBeTruthy();
1878
+ expect("00").toBe(response.responseCode);
1879
+ });
1880
+ test("JAVA_Auth_029b", async () => {
1881
+ // create card
1882
+ const card = new src_1.CreditCardData();
1883
+ card.number = "4263970000005262";
1884
+ card.expMonth = "12";
1885
+ card.expYear = "2029";
1886
+ card.cvn = "123";
1887
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1888
+ card.cardHolderName = "James Mason";
1889
+ // request
1890
+ const response = await card
1891
+ .charge(100.01)
1892
+ .withCurrency("USD")
1893
+ .withDescription("JAVA-Auth-029b")
1894
+ .execute();
1895
+ expect(response).toBeTruthy();
1896
+ expect("00").toBe(response.responseCode);
1897
+ });
1898
+ test("JAVA_Auth_029c", async () => {
1899
+ // create card
1900
+ const card = new src_1.CreditCardData();
1901
+ card.number = "4263970000005262";
1902
+ card.expMonth = "12";
1903
+ card.expYear = "2029";
1904
+ card.cvn = "123";
1905
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1906
+ card.cardHolderName = "James Mason";
1907
+ // request
1908
+ const res = await card
1909
+ .charge(100.01)
1910
+ .withCurrency("GBP")
1911
+ // tslint:disable:max-line-length
1912
+ .withProductId("3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep33a4wpQQQQQQQQQ1")
1913
+ // tslint:enable:max-line-length
1914
+ .withDescription("JAVA-Auth-029c")
1915
+ .execute();
1916
+ expect(res).toBeTruthy();
1917
+ expect("00").toBe(res.responseCode);
1918
+ });
1919
+ test("JAVA_Auth_029d", async () => {
1920
+ // create card
1921
+ const card = new src_1.CreditCardData();
1922
+ card.number = "4263970000005262";
1923
+ card.expMonth = "12";
1924
+ card.expYear = "2029";
1925
+ card.cvn = "123";
1926
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1927
+ card.cardHolderName = "James Mason";
1928
+ // request
1929
+ const res = await card
1930
+ .charge(100.01)
1931
+ .withCurrency("EUR")
1932
+ .withProductId("123456~")
1933
+ .withDescription("JAVA-Auth-029d")
1934
+ .execute();
1935
+ expect(res).toBeTruthy();
1936
+ expect("00").toBe(res.responseCode);
1937
+ });
1938
+ test("JAVA_Auth_030a", async () => {
1939
+ // create card
1940
+ const card = new src_1.CreditCardData();
1941
+ card.number = "4263970000005262";
1942
+ card.expMonth = "12";
1943
+ card.expYear = "2029";
1944
+ card.cvn = "123";
1945
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1946
+ card.cardHolderName = "James Mason";
1947
+ // request
1948
+ const response = await card
1949
+ .charge(100.01)
1950
+ .withCurrency("USD")
1951
+ .withClientTransactionId("123456")
1952
+ .withDescription("JAVA-Auth-030a")
1953
+ .execute();
1954
+ expect(response).toBeTruthy();
1955
+ expect("00").toBe(response.responseCode);
1956
+ });
1957
+ test("JAVA_Auth_030b", async () => {
1958
+ // create card
1959
+ const card = new src_1.CreditCardData();
1960
+ card.number = "4263970000005262";
1961
+ card.expMonth = "12";
1962
+ card.expYear = "2029";
1963
+ card.cvn = "123";
1964
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1965
+ card.cardHolderName = "James Mason";
1966
+ // request
1967
+ const response = await card
1968
+ .charge(100.01)
1969
+ .withCurrency("GBP")
1970
+ .withDescription("JAVA-Auth-030b")
1971
+ .execute();
1972
+ expect(response).toBeTruthy();
1973
+ expect("00").toBe(response.responseCode);
1974
+ });
1975
+ test("JAVA_Auth_030c", async () => {
1976
+ // create card
1977
+ const card = new src_1.CreditCardData();
1978
+ card.number = "4263970000005262";
1979
+ card.expMonth = "12";
1980
+ card.expYear = "2029";
1981
+ card.cvn = "123";
1982
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
1983
+ card.cardHolderName = "James Mason";
1984
+ // request
1985
+ const res = await card
1986
+ .charge(100.01)
1987
+ .withCurrency("EUR")
1988
+ // tslint:disable:max-line-length
1989
+ .withClientTransactionId("3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep33a4wpQQQQQQQQQ1")
1990
+ // tslint:enable:max-line-length
1991
+ .withDescription("JAVA-Auth-030c")
1992
+ .execute();
1993
+ expect(res).toBeTruthy();
1994
+ expect("00").toBe(res.responseCode);
1995
+ });
1996
+ test("JAVA_Auth_030d", async () => {
1997
+ // create card
1998
+ const card = new src_1.CreditCardData();
1999
+ card.number = "4263970000005262";
2000
+ card.expMonth = "12";
2001
+ card.expYear = "2029";
2002
+ card.cvn = "123";
2003
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2004
+ card.cardHolderName = "James Mason";
2005
+ // request
2006
+ const res = await card
2007
+ .charge(100.01)
2008
+ .withCurrency("USD")
2009
+ .withClientTransactionId("123456~")
2010
+ .withDescription("JAVA-Auth-030d")
2011
+ .execute();
2012
+ expect(res).toBeTruthy();
2013
+ expect("00").toBe(res.responseCode);
2014
+ });
2015
+ test("JAVA_Auth_031a", async () => {
2016
+ // create card
2017
+ const card = new src_1.CreditCardData();
2018
+ card.number = "4263970000005262";
2019
+ card.expMonth = "12";
2020
+ card.expYear = "2029";
2021
+ card.cvn = "123";
2022
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2023
+ card.cardHolderName = "James Mason";
2024
+ // request
2025
+ const response = await card
2026
+ .charge(100.01)
2027
+ .withCurrency("GBP")
2028
+ .withCustomerIpAddress("123.123.123.123")
2029
+ .withDescription("JAVA-Auth-031a")
2030
+ .execute();
2031
+ expect(response).toBeTruthy();
2032
+ expect("00").toBe(response.responseCode);
2033
+ });
2034
+ test("JAVA_Auth_031b", async () => {
2035
+ // create card
2036
+ const card = new src_1.CreditCardData();
2037
+ card.number = "4263970000005262";
2038
+ card.expMonth = "12";
2039
+ card.expYear = "2029";
2040
+ card.cvn = "123";
2041
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2042
+ card.cardHolderName = "James Mason";
2043
+ // request
2044
+ const response = await card
2045
+ .charge(100.01)
2046
+ .withCurrency("EUR")
2047
+ .withDescription("JAVA-Auth-031b")
2048
+ .execute();
2049
+ expect(response).toBeTruthy();
2050
+ expect("00").toBe(response.responseCode);
2051
+ });
2052
+ test("JAVA_Auth_031c1", async () => {
2053
+ // create card
2054
+ const card = new src_1.CreditCardData();
2055
+ card.number = "4263970000005262";
2056
+ card.expMonth = "12";
2057
+ card.expYear = "2029";
2058
+ card.cvn = "123";
2059
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2060
+ card.cardHolderName = "James Mason";
2061
+ // request
2062
+ const response = await card
2063
+ .charge(100.01)
2064
+ .withCurrency("USD")
2065
+ .withCustomerIpAddress("123.123.123.123")
2066
+ .withDescription("JAVA-Auth-031c1")
2067
+ .execute();
2068
+ expect(response).toBeTruthy();
2069
+ expect("00").toBe(response.responseCode);
2070
+ });
2071
+ test("JAVA_Auth_031c2", async () => {
2072
+ // create card
2073
+ const card = new src_1.CreditCardData();
2074
+ card.number = "4263970000005262";
2075
+ card.expMonth = "12";
2076
+ card.expYear = "2029";
2077
+ card.cvn = "123";
2078
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2079
+ card.cardHolderName = "James Mason";
2080
+ // request
2081
+ const response = await card
2082
+ .charge(100.01)
2083
+ .withCurrency("GBP")
2084
+ .withCustomerIpAddress("123.123.123.123")
2085
+ .withDescription("JAVA-Auth-031c2")
2086
+ .execute();
2087
+ expect(response).toBeTruthy();
2088
+ expect("00").toBe(response.responseCode);
2089
+ });
2090
+ test("JAVA_Auth_032a", async () => {
2091
+ // billing address
2092
+ const billingAddress = new src_1.Address();
2093
+ billingAddress.postalCode = "E77 4QJ";
2094
+ billingAddress.country = "United Kingdom";
2095
+ // shipping address
2096
+ const shippingAddress = new src_1.Address();
2097
+ shippingAddress.postalCode = "Z76 PO9";
2098
+ shippingAddress.country = "France";
2099
+ // create card
2100
+ const card = new src_1.CreditCardData();
2101
+ card.number = "4263970000005262";
2102
+ card.expMonth = "12";
2103
+ card.expYear = "2029";
2104
+ card.cvn = "123";
2105
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2106
+ card.cardHolderName = "James Mason";
2107
+ // request
2108
+ const response = await card
2109
+ .charge(100.01)
2110
+ .withCurrency("EUR")
2111
+ .withAddress(billingAddress)
2112
+ .withAddress(shippingAddress, src_1.AddressType.Shipping)
2113
+ .withDescription("JAVA-Auth-032a")
2114
+ .execute();
2115
+ expect(response).toBeTruthy();
2116
+ expect("00").toBe(response.responseCode);
2117
+ });
2118
+ test("JAVA_Auth_033a", async () => {
2119
+ // billing address
2120
+ const billingAddress = new src_1.Address();
2121
+ billingAddress.postalCode = "774|10";
2122
+ // shipping address
2123
+ const shippingAddress = new src_1.Address();
2124
+ shippingAddress.postalCode = "769|52";
2125
+ // create card
2126
+ const card = new src_1.CreditCardData();
2127
+ card.number = "4263970000005262";
2128
+ card.expMonth = "12";
2129
+ card.expYear = "2029";
2130
+ card.cvn = "123";
2131
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2132
+ card.cardHolderName = "James Mason";
2133
+ // request
2134
+ const response = await card
2135
+ .charge(100.01)
2136
+ .withCurrency("USD")
2137
+ .withAddress(billingAddress)
2138
+ .withAddress(shippingAddress, src_1.AddressType.Shipping)
2139
+ .withDescription("JAVA-Auth-033a")
2140
+ .execute();
2141
+ expect(response).toBeTruthy();
2142
+ expect("00").toBe(response.responseCode);
2143
+ });
2144
+ test("JAVA_Auth_033b1", async () => {
2145
+ // billing address
2146
+ const billingAddress = new src_1.Address();
2147
+ billingAddress.postalCode = "774|10";
2148
+ // create card
2149
+ const card = new src_1.CreditCardData();
2150
+ card.number = "4263970000005262";
2151
+ card.expMonth = "12";
2152
+ card.expYear = "2029";
2153
+ card.cvn = "123";
2154
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2155
+ card.cardHolderName = "James Mason";
2156
+ // request
2157
+ const response = await card
2158
+ .charge(100.01)
2159
+ .withCurrency("USD")
2160
+ .withAddress(billingAddress)
2161
+ .withDescription("JAVA-Auth-033b1")
2162
+ .execute();
2163
+ expect(response).toBeTruthy();
2164
+ expect("00").toBe(response.responseCode);
2165
+ });
2166
+ test("JAVA_Auth_033b2", async () => {
2167
+ // shipping address
2168
+ const shippingAddress = new src_1.Address();
2169
+ shippingAddress.postalCode = "769|52";
2170
+ // create card
2171
+ const card = new src_1.CreditCardData();
2172
+ card.number = "4263970000005262";
2173
+ card.expMonth = "12";
2174
+ card.expYear = "2029";
2175
+ card.cvn = "123";
2176
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2177
+ card.cardHolderName = "James Mason";
2178
+ // request
2179
+ const response = await card
2180
+ .charge(100.01)
2181
+ .withCurrency("USD")
2182
+ .withAddress(shippingAddress, src_1.AddressType.Shipping)
2183
+ .withDescription("JAVA-Auth-033b2")
2184
+ .execute();
2185
+ expect(response).toBeTruthy();
2186
+ expect("00").toBe(response.responseCode);
2187
+ });
2188
+ test("JAVA_Auth_033c1", async () => {
2189
+ // billing address
2190
+ const billingAddress = new src_1.Address();
2191
+ billingAddress.postalCode = "774|10";
2192
+ // create card
2193
+ const card = new src_1.CreditCardData();
2194
+ card.number = "4263970000005262";
2195
+ card.expMonth = "12";
2196
+ card.expYear = "2029";
2197
+ card.cvn = "123";
2198
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2199
+ card.cardHolderName = "James Mason";
2200
+ // request
2201
+ const response = await card
2202
+ .charge(100.01)
2203
+ .withCurrency("USD")
2204
+ .withAddress(billingAddress)
2205
+ .withDescription("JAVA-Auth-033c1")
2206
+ .execute();
2207
+ expect(response).toBeTruthy();
2208
+ expect("00").toBe(response.responseCode);
2209
+ });
2210
+ test("JAVA_Auth_033c2", async () => {
2211
+ // shipping address
2212
+ const shippingAddress = new src_1.Address();
2213
+ shippingAddress.postalCode =
2214
+ "3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwep4wpIwep3u111";
2215
+ // create card
2216
+ const card = new src_1.CreditCardData();
2217
+ card.number = "4263970000005262";
2218
+ card.expMonth = "12";
2219
+ card.expYear = "2029";
2220
+ card.cvn = "123";
2221
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2222
+ card.cardHolderName = "James Mason";
2223
+ // request
2224
+ const response = await card
2225
+ .charge(100.01)
2226
+ .withCurrency("GBP")
2227
+ .withAddress(shippingAddress, src_1.AddressType.Shipping)
2228
+ .withDescription("JAVA-Auth-033c2")
2229
+ .execute();
2230
+ expect(response).toBeTruthy();
2231
+ expect("00").toBe(response.responseCode);
2232
+ });
2233
+ test("JAVA_Auth_034a", async () => {
2234
+ // billing address
2235
+ const billingAddress = new src_1.Address();
2236
+ billingAddress.country = "GB";
2237
+ // shipping address
2238
+ const shippingAddress = new src_1.Address();
2239
+ shippingAddress.country = "FR";
2240
+ // create card
2241
+ const card = new src_1.CreditCardData();
2242
+ card.number = "4263970000005262";
2243
+ card.expMonth = "12";
2244
+ card.expYear = "2029";
2245
+ card.cvn = "123";
2246
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2247
+ card.cardHolderName = "James Mason";
2248
+ // request
2249
+ const response = await card
2250
+ .charge(100.01)
2251
+ .withCurrency("EUR")
2252
+ .withAddress(billingAddress)
2253
+ .withAddress(shippingAddress, src_1.AddressType.Shipping)
2254
+ .withDescription("JAVA-Auth-034a")
2255
+ .execute();
2256
+ expect(response).toBeTruthy();
2257
+ expect("00").toBe(response.responseCode);
2258
+ });
2259
+ test("JAVA_Auth_034b1", async () => {
2260
+ // shipping address
2261
+ const shippingAddress = new src_1.Address();
2262
+ shippingAddress.country = "GB";
2263
+ // create card
2264
+ const card = new src_1.CreditCardData();
2265
+ card.number = "4263970000005262";
2266
+ card.expMonth = "12";
2267
+ card.expYear = "2029";
2268
+ card.cvn = "123";
2269
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2270
+ card.cardHolderName = "James Mason";
2271
+ // request
2272
+ const response = await card
2273
+ .charge(100.01)
2274
+ .withCurrency("USD")
2275
+ .withAddress(shippingAddress, src_1.AddressType.Shipping)
2276
+ .withDescription("JAVA-Auth-034b1")
2277
+ .execute();
2278
+ expect(response).toBeTruthy();
2279
+ expect("00").toBe(response.responseCode);
2280
+ });
2281
+ test("JAVA_Auth_034b2", async () => {
2282
+ // billing address
2283
+ const billingAddress = new src_1.Address();
2284
+ billingAddress.country = "GB";
2285
+ // create card
2286
+ const card = new src_1.CreditCardData();
2287
+ card.number = "4263970000005262";
2288
+ card.expMonth = "12";
2289
+ card.expYear = "2029";
2290
+ card.cvn = "123";
2291
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2292
+ card.cardHolderName = "James Mason";
2293
+ // request
2294
+ const response = await card
2295
+ .charge(100.01)
2296
+ .withCurrency("GBP")
2297
+ .withAddress(billingAddress)
2298
+ .withDescription("JAVA-Auth-034b2")
2299
+ .execute();
2300
+ expect(response).toBeTruthy();
2301
+ expect("00").toBe(response.responseCode);
2302
+ });
2303
+ test("JAVA_Auth_034c1", async () => {
2304
+ // billing address
2305
+ const billingAddress = new src_1.Address();
2306
+ billingAddress.country =
2307
+ "3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwep4wpIwep3u111";
2308
+ // create card
2309
+ const card = new src_1.CreditCardData();
2310
+ card.number = "4263970000005262";
2311
+ card.expMonth = "12";
2312
+ card.expYear = "2029";
2313
+ card.cvn = "123";
2314
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2315
+ card.cardHolderName = "James Mason";
2316
+ // request
2317
+ const response = await card
2318
+ .charge(100.01)
2319
+ .withCurrency("EUR")
2320
+ .withAddress(billingAddress)
2321
+ .withDescription("JAVA-Auth-034c1")
2322
+ .execute();
2323
+ expect(response).toBeTruthy();
2324
+ expect("00").toBe(response.responseCode);
2325
+ });
2326
+ test("JAVA_Auth_034c2", async () => {
2327
+ // shipping address
2328
+ const shippingAddress = new src_1.Address();
2329
+ shippingAddress.country =
2330
+ "3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwep4wpIwep3u111";
2331
+ // create card
2332
+ const card = new src_1.CreditCardData();
2333
+ card.number = "4263970000005262";
2334
+ card.expMonth = "12";
2335
+ card.expYear = "2029";
2336
+ card.cvn = "123";
2337
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2338
+ card.cardHolderName = "James Mason";
2339
+ // request
2340
+ const response = await card
2341
+ .charge(100.01)
2342
+ .withCurrency("USD")
2343
+ .withAddress(shippingAddress, src_1.AddressType.Shipping)
2344
+ .withDescription("JAVA-Auth-034c2")
2345
+ .execute();
2346
+ expect(response).toBeTruthy();
2347
+ expect("00").toBe(response.responseCode);
2348
+ });
2349
+ test("JAVA_Auth_035a", async () => {
2350
+ // create card
2351
+ const card = new src_1.CreditCardData();
2352
+ card.number = "4263970000005262";
2353
+ card.expMonth = "12";
2354
+ card.expYear = "2029";
2355
+ card.cvn = "123";
2356
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2357
+ card.cardHolderName = "James Mason";
2358
+ // request
2359
+ const response = await card
2360
+ .charge(100.01)
2361
+ .withCurrency("GBP")
2362
+ .withDescription("JAVA-Auth-035a")
2363
+ .execute();
2364
+ expect(response).toBeTruthy();
2365
+ expect("00").toBe(response.responseCode);
2366
+ });
2367
+ test("JAVA_Auth_035b", async () => {
2368
+ // create card
2369
+ const card = new src_1.CreditCardData();
2370
+ card.number = "4263970000005262";
2371
+ card.expMonth = "12";
2372
+ card.expYear = "2029";
2373
+ card.cvn = "123";
2374
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2375
+ card.cardHolderName = "James Mason";
2376
+ // request
2377
+ const response = await card
2378
+ .charge(100.01)
2379
+ .withCurrency("EUR")
2380
+ .withDescription("JAVA-Auth-035b")
2381
+ .execute();
2382
+ expect(response).toBeTruthy();
2383
+ expect("00").toBe(response.responseCode);
2384
+ });
2385
+ test("JAVA_Auth_055a", async () => {
2386
+ const config = new ServiceConfigs_1.GpEcomConfig();
2387
+ config.merchantId = "heartlandgpsandbox";
2388
+ config.accountId = "api";
2389
+ config.sharedSecret = "secret";
2390
+ config.refundPassword = "refund";
2391
+ config.rebatePassword = "rebate";
2392
+ config.timeout = 20000;
2393
+ config.channel = "ECOM";
2394
+ src_1.ServicesContainer.configureService(config, "with4thChannelEcom");
2395
+ // billing address
2396
+ const billingAddress = new src_1.Address();
2397
+ billingAddress.postalCode = "774|10";
2398
+ billingAddress.country = "GB";
2399
+ // shipping address
2400
+ const shippingAddress = new src_1.Address();
2401
+ shippingAddress.postalCode = "769|52";
2402
+ shippingAddress.country = "FR";
2403
+ // create card
2404
+ const card = new src_1.CreditCardData();
2405
+ card.number = "4263970000005262";
2406
+ card.expMonth = "12";
2407
+ card.expYear = "2029";
2408
+ card.cvn = "123";
2409
+ card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
2410
+ card.cardHolderName = "James Mason";
2411
+ // request
2412
+ const response = await card
2413
+ .charge(100.01)
2414
+ .withCurrency("EUR")
2415
+ .withCustomerId("12345")
2416
+ .withProductId("654321")
2417
+ .withClientTransactionId("987654")
2418
+ .withCustomerIpAddress("123.123.123.123")
2419
+ .withAddress(billingAddress)
2420
+ .withAddress(shippingAddress, src_1.AddressType.Shipping)
2421
+ .withDescription("JAVA-Auth-055a")
2422
+ .execute("with4thChannelEcom");
2423
+ expect(response).toBeTruthy();
2424
+ expect("00").toBe(response.responseCode);
2425
+ });
2426
+ //# sourceMappingURL=Auth.test.js.map