globalpayments-api 3.6.0 → 3.6.2

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 (182) hide show
  1. package/CHANGELOG.md +125 -113
  2. package/lib/src/Gateways/PorticoConnector.js +25 -0
  3. package/lib/src/Gateways/PorticoConnector.js.map +1 -1
  4. package/lib/src/PaymentMethods/Credit.js +1 -1
  5. package/package.json +71 -72
  6. package/lib/test/Data/BaseGpApiTestConfig.d.ts +0 -14
  7. package/lib/test/Data/BaseGpApiTestConfig.js +0 -50
  8. package/lib/test/Data/BaseGpApiTestConfig.js.map +0 -1
  9. package/lib/test/Data/GpApi3DSTestCards.d.ts +0 -17
  10. package/lib/test/Data/GpApi3DSTestCards.js +0 -22
  11. package/lib/test/Data/GpApi3DSTestCards.js.map +0 -1
  12. package/lib/test/Data/TestCards.d.ts +0 -24
  13. package/lib/test/Data/TestCards.js +0 -220
  14. package/lib/test/Data/TestCards.js.map +0 -1
  15. package/lib/test/Data/TestChecks.d.ts +0 -4
  16. package/lib/test/Data/TestChecks.js +0 -27
  17. package/lib/test/Data/TestChecks.js.map +0 -1
  18. package/lib/test/Data/index.d.ts +0 -4
  19. package/lib/test/Data/index.js +0 -21
  20. package/lib/test/Data/index.js.map +0 -1
  21. package/lib/test/Integration/Gateways/AcsResponse.d.ts +0 -12
  22. package/lib/test/Integration/Gateways/AcsResponse.js +0 -33
  23. package/lib/test/Integration/Gateways/AcsResponse.js.map +0 -1
  24. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.d.ts +0 -1
  25. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js +0 -1029
  26. package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js.map +0 -1
  27. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.d.ts +0 -1
  28. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js +0 -649
  29. package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js.map +0 -1
  30. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +0 -1
  31. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +0 -109
  32. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +0 -1
  33. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +0 -1
  34. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +0 -1023
  35. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +0 -1
  36. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +0 -1
  37. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +0 -439
  38. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +0 -1
  39. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +0 -1
  40. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +0 -143
  41. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +0 -1
  42. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +0 -1
  43. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +0 -434
  44. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +0 -1
  45. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +0 -1
  46. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +0 -217
  47. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +0 -1
  48. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.d.ts +0 -1
  49. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +0 -337
  50. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +0 -1
  51. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +0 -1
  52. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +0 -2446
  53. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +0 -1
  54. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +0 -1
  55. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +0 -506
  56. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +0 -1
  57. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +0 -1
  58. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +0 -1296
  59. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +0 -1
  60. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +0 -1
  61. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +0 -847
  62. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +0 -1
  63. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
  64. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +0 -215
  65. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
  66. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +0 -1
  67. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +0 -99
  68. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +0 -1
  69. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +0 -1
  70. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +0 -133
  71. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +0 -1
  72. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
  73. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -59
  74. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +0 -1
  75. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
  76. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -378
  77. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +0 -1
  78. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
  79. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -86
  80. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +0 -1
  81. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
  82. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1723
  83. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +0 -1
  84. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
  85. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -86
  86. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +0 -1
  87. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
  88. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1760
  89. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +0 -1
  90. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
  91. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -420
  92. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +0 -1
  93. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
  94. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2221
  95. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +0 -1
  96. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
  97. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -392
  98. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +0 -1
  99. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
  100. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -88
  101. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +0 -1
  102. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
  103. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -72
  104. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +0 -1
  105. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
  106. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -111
  107. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +0 -1
  108. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
  109. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -147
  110. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +0 -1
  111. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
  112. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -101
  113. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +0 -1
  114. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
  115. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -50
  116. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +0 -1
  117. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +0 -1
  118. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +0 -44
  119. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +0 -1
  120. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +0 -1
  121. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +0 -221
  122. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +0 -1
  123. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +0 -1
  124. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +0 -60
  125. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +0 -1
  126. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +0 -1
  127. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +0 -80
  128. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +0 -1
  129. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +0 -39
  130. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +0 -393
  131. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +0 -1
  132. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +0 -1
  133. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +0 -44
  134. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +0 -1
  135. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +0 -1
  136. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +0 -330
  137. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +0 -1
  138. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +0 -1
  139. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +0 -60
  140. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +0 -1
  141. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +0 -1
  142. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +0 -80
  143. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +0 -1
  144. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +0 -34
  145. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +0 -322
  146. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +0 -1
  147. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +0 -4
  148. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +0 -28
  149. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +0 -1
  150. package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.d.ts +0 -4
  151. package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +0 -10
  152. package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +0 -1
  153. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +0 -1
  154. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +0 -149
  155. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +0 -1
  156. package/lib/test/Integration/Gateways/ThreeDSecureAsClient.d.ts +0 -16
  157. package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js +0 -212
  158. package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js.map +0 -1
  159. package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
  160. package/lib/test/Integration/Services/CheckServiceTest.js +0 -45
  161. package/lib/test/Integration/Services/CheckServiceTest.js.map +0 -1
  162. package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
  163. package/lib/test/Integration/Services/CreditServiceTest.js +0 -174
  164. package/lib/test/Integration/Services/CreditServiceTest.js.map +0 -1
  165. package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
  166. package/lib/test/Integration/Services/DebitServiceTest.js +0 -81
  167. package/lib/test/Integration/Services/DebitServiceTest.js.map +0 -1
  168. package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
  169. package/lib/test/Integration/Services/EBTServiceTest.js +0 -64
  170. package/lib/test/Integration/Services/EBTServiceTest.js.map +0 -1
  171. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
  172. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -111
  173. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +0 -1
  174. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
  175. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -62
  176. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +0 -1
  177. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
  178. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +0 -34
  179. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
  180. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
  181. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -125
  182. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +0 -1
package/package.json CHANGED
@@ -1,72 +1,71 @@
1
- {
2
- "name": "globalpayments-api",
3
- "version" : "3.6.0",
4
- "description": "Global Payments SDK for NodeJS for Heartland and Global Payments eCommerce gateways",
5
- "author": "Heartland Payment Systems",
6
- "license": "GPL-2.0",
7
- "engines": {
8
- "node": ">=16.20.2"
9
- },
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/globalpayments/node-sdk.git"
13
- },
14
- "main": "./lib/src/index.js",
15
- "typings": "./lib/src/index",
16
- "scripts": {
17
- "build": "tsc",
18
- "build:netsuite": "webpack --env.GP_NETSUITE_BUILD --config config/webpack.netsuite.js && node bin/netsuite-post.js",
19
- "build:clean": "rimraf lib",
20
- "docs": "typedoc --mode file --name \"GlobalPayments.Api\" --project tsconfig.json --out docs src",
21
- "format": "prettier --write --config .prettierrc 'src/**/*.ts' 'test/**/*.ts' '*.md'",
22
- "prebuild": "npm-run-all test:lint",
23
- "prepublish": "npm-run-all build",
24
- "prepublishOnly": "npm-run-all build",
25
- "pretest": "npm-run-all build:clean test:lint build",
26
- "test:without-report": "npm-run-all build:clean test:lint build && ava",
27
- "test": "ava --tap | npx tap-nyan",
28
- "test:lint": "eslint \"src/**/*.ts*\" \"test/**/*.ts\" --fix"
29
- },
30
- "dependencies": {
31
- "@azz/elementtree": "^0.1.6",
32
- "es6-promise": "^4.2.8",
33
- "eslint-config-prettier": "^9.0.0",
34
- "sha1": "^1.1.1",
35
- "typedarray": "^0.0.6",
36
- "url": "^0.11.0"
37
- },
38
- "devDependencies": {
39
- "@hitc/netsuite-types": "^2017.2.32",
40
- "@types/node": "20.6.0",
41
- "@typescript-eslint/eslint-plugin": "^6.7.3",
42
- "@typescript-eslint/parser": "^6.7.3",
43
- "ava": "^5.3.1",
44
- "eslint": "^8.50.0",
45
- "eslint-plugin-prettier": "^5.0.0",
46
- "npm-run-all": "^4.1.5",
47
- "prettier": "3.0.3",
48
- "rimraf": "^2.6.3",
49
- "tslint": "^6.1.3",
50
- "typedoc": "0.25.1",
51
- "typescript": "5.2.2",
52
- "webpack": "^5.88.2"
53
- },
54
- "ava": {
55
- "concurrency": 1,
56
- "timeout": "5m",
57
- "failFast": false,
58
- "failWithoutAssertions": false,
59
- "files": [
60
- "lib/test/**/*Test.js"
61
- ],
62
- "source": [
63
- "lib/src/**/*.js"
64
- ]
65
- },
66
- "files": [
67
- "lib/src/**",
68
- "lib/test/**",
69
- "appsec.properties",
70
- "CHANGELOG.md"
71
- ]
72
- }
1
+ {
2
+ "name": "globalpayments-api",
3
+ "version" : "3.6.2",
4
+ "description": "Global Payments SDK for NodeJS for Heartland and Global Payments eCommerce gateways",
5
+ "author": "Heartland Payment Systems",
6
+ "license": "GPL-2.0",
7
+ "engines": {
8
+ "node": ">=16.20.2"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/globalpayments/node-sdk.git"
13
+ },
14
+ "main": "./lib/src/index.js",
15
+ "typings": "./lib/src/index",
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "build:netsuite": "webpack --env.GP_NETSUITE_BUILD --config config/webpack.netsuite.js && node bin/netsuite-post.js",
19
+ "build:clean": "rimraf lib",
20
+ "docs": "typedoc --mode file --name \"GlobalPayments.Api\" --project tsconfig.json --out docs src",
21
+ "format": "prettier --write --config .prettierrc 'src/**/*.ts' 'test/**/*.ts' '*.md'",
22
+ "prebuild": "npm-run-all test:lint",
23
+ "prepublish": "npm-run-all build",
24
+ "prepublishOnly": "npm-run-all build",
25
+ "pretest": "npm-run-all build:clean test:lint build",
26
+ "test:without-report": "npm-run-all build:clean test:lint build && ava",
27
+ "test": "ava --tap | npx tap-nyan",
28
+ "test:lint": "eslint \"src/**/*.ts*\" \"test/**/*.ts\" --fix"
29
+ },
30
+ "dependencies": {
31
+ "@azz/elementtree": "^0.1.6",
32
+ "es6-promise": "^4.2.8",
33
+ "eslint-config-prettier": "^9.0.0",
34
+ "sha1": "^1.1.1",
35
+ "typedarray": "^0.0.6",
36
+ "url": "^0.11.0"
37
+ },
38
+ "devDependencies": {
39
+ "@hitc/netsuite-types": "^2017.2.32",
40
+ "@types/node": "20.6.0",
41
+ "@typescript-eslint/eslint-plugin": "^6.7.3",
42
+ "@typescript-eslint/parser": "^6.7.3",
43
+ "ava": "^5.3.1",
44
+ "eslint": "^8.50.0",
45
+ "eslint-plugin-prettier": "^5.0.0",
46
+ "npm-run-all": "^4.1.5",
47
+ "prettier": "3.0.3",
48
+ "rimraf": "^2.6.3",
49
+ "tslint": "^6.1.3",
50
+ "typedoc": "0.25.1",
51
+ "typescript": "5.2.2",
52
+ "webpack": "^5.88.2"
53
+ },
54
+ "ava": {
55
+ "concurrency": 1,
56
+ "timeout": "5m",
57
+ "failFast": false,
58
+ "failWithoutAssertions": false,
59
+ "files": [
60
+ "lib/test/**/*Test.js"
61
+ ],
62
+ "source": [
63
+ "lib/src/**/*.js"
64
+ ]
65
+ },
66
+ "files": [
67
+ "lib/src/**",
68
+ "appsec.properties",
69
+ "CHANGELOG.md"
70
+ ]
71
+ }
@@ -1,14 +0,0 @@
1
- import { Channel, GpApiConfig } from "../../src";
2
- export declare class BaseGpApiTestConfig {
3
- static PARTNER_SOLUTION_APP_ID: string;
4
- static PARTNER_SOLUTION_APP_KEY: string;
5
- static appId: string;
6
- static appKey: string;
7
- static UPA_MIC_DEVICE_APP_ID: string;
8
- static UPA_MIC_DEVICE_APP_KEY: string;
9
- private static dynamicHeaderEnabled;
10
- private static permissionsEnabled;
11
- private static logEnabled;
12
- static gpApiSetupConfig(channel: Channel): GpApiConfig;
13
- static resetGpApiConfig(): void;
14
- }
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseGpApiTestConfig = void 0;
4
- const src_1 = require("../../src");
5
- class BaseGpApiTestConfig {
6
- static PARTNER_SOLUTION_APP_ID = "A1feRdMmEB6m0Y1aQ65H0bDi9ZeAEB2t";
7
- static PARTNER_SOLUTION_APP_KEY = "5jPt1OpB6LLitgi7";
8
- static appId = "4gPqnGBkppGYvoE5UX9EWQlotTxGUDbs";
9
- static appKey = "FQyJA5VuEQfcji2M";
10
- static UPA_MIC_DEVICE_APP_ID = "83cdNQ0YBmzxzkLpFHpDGn2ir0WKTW0N";
11
- static UPA_MIC_DEVICE_APP_KEY = "1ASrcQZb0AEqR6ZT";
12
- static dynamicHeaderEnabled = false;
13
- static permissionsEnabled = false;
14
- static logEnabled = true;
15
- static gpApiSetupConfig(channel) {
16
- const config = new src_1.GpApiConfig();
17
- config.appId = BaseGpApiTestConfig.appId;
18
- config.appKey = BaseGpApiTestConfig.appKey;
19
- config.environment = src_1.Environment.Test;
20
- config.channel = channel;
21
- config.country = "US";
22
- config.accessTokenInfo = new src_1.AccessTokenInfo();
23
- config.accessTokenInfo.transactionProcessingAccountName =
24
- "transaction_processing";
25
- config.accessTokenInfo.riskAssessmentAccountName = "EOS_RiskAssessment";
26
- config.challengeNotificationUrl = "https://ensi808o85za.x.pipedream.net/";
27
- config.methodNotificationUrl = "https://ensi808o85za.x.pipedream.net/";
28
- config.merchantContactUrl = "https://ensi808o85za.x.pipedream.net/";
29
- if (BaseGpApiTestConfig.dynamicHeaderEnabled) {
30
- config.dynamicHeaders = {
31
- "x-gp-platform": "prestashop;version=1.7.2",
32
- "x-gp-extension": "coccinet;version=2.4.1",
33
- };
34
- }
35
- if (BaseGpApiTestConfig.permissionsEnabled) {
36
- config.permissions = ["TRN_POST_Authorize"];
37
- }
38
- if (BaseGpApiTestConfig.logEnabled) {
39
- config.requestLogger = new src_1.SampleRequestLogger(new src_1.Logger("logs"));
40
- }
41
- return config;
42
- }
43
- static resetGpApiConfig() {
44
- src_1.ServicesContainer.removeConfiguration();
45
- BaseGpApiTestConfig.appId = BaseGpApiTestConfig.appId;
46
- BaseGpApiTestConfig.appKey = BaseGpApiTestConfig.appKey;
47
- }
48
- }
49
- exports.BaseGpApiTestConfig = BaseGpApiTestConfig;
50
- //# sourceMappingURL=BaseGpApiTestConfig.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BaseGpApiTestConfig.js","sourceRoot":"","sources":["../../../test/Data/BaseGpApiTestConfig.ts"],"names":[],"mappings":";;;AAAA,mCAQmB;AAEnB,MAAa,mBAAmB;IACvB,MAAM,CAAC,uBAAuB,GACnC,kCAAkC,CAAC;IAC9B,MAAM,CAAC,wBAAwB,GAAW,kBAAkB,CAAC;IAE7D,MAA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ED,IAAI,mBAAmB,CAAC,UAAU,EAAE;YAClC,MAAM,CAAC,aAAa,GAAG,IAAI,yBAAmB,CAAC,IAAI,YAAM,CAAC,MAAM,CAAC,CAAC,CAAC;SACpE;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,gBAAgB;QACrB,uBAAiB,CAAC,mBAAmB,EAAE,CAAC;QACxC,mBAAmB,CAAC,KAAK,GAAG,mBAAmB,CAAC,KAAK,CAAC;QACtD,mBAAmB,CAAC,MAAM,GAAG,mBAAmB,CAAC,MAAM,CAAC;IAC1D,CAAC;;AAvDH,kDAwDC"}
@@ -1,17 +0,0 @@
1
- export declare class GpApi3DSTestCards {
2
- static CARDHOLDER_ENROLLED_V1: string;
3
- static CARD_AUTH_SUCCESSFUL_V2_1: string;
4
- static CARD_AUTH_SUCCESSFUL_NO_METHOD_URL_V2_1: string;
5
- static CARD_AUTH_ATTEMPTED_BUT_NOT_SUCCESSFUL_V2_1: string;
6
- static CARD_AUTH_FAILED_V2_1: string;
7
- static CARD_AUTH_ISSUER_REJECTED_V2_1: string;
8
- static CARD_AUTH_COULD_NOT_BE_PREFORMED_V2_1: string;
9
- static CARD_CHALLENGE_REQUIRED_V2_1: string;
10
- static CARD_AUTH_SUCCESSFUL_V2_2: string;
11
- static CARD_AUTH_SUCCESSFUL_NO_METHOD_URL_V2_2: string;
12
- static CARD_AUTH_ATTEMPTED_BUT_NOT_SUCCESSFUL_V2_2: string;
13
- static CARD_AUTH_FAILED_V2_2: string;
14
- static CARD_AUTH_ISSUER_REJECTED_V2_2: string;
15
- static CARD_AUTH_COULD_NOT_BE_PREFORMED_V2_2: string;
16
- static CARD_CHALLENGE_REQUIRED_V2_2: string;
17
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GpApi3DSTestCards = void 0;
4
- class GpApi3DSTestCards {
5
- static CARDHOLDER_ENROLLED_V1 = "4012001037141112";
6
- static CARD_AUTH_SUCCESSFUL_V2_1 = "4263970000005262";
7
- static CARD_AUTH_SUCCESSFUL_NO_METHOD_URL_V2_1 = "4222000006724235";
8
- static CARD_AUTH_ATTEMPTED_BUT_NOT_SUCCESSFUL_V2_1 = "4012001037167778";
9
- static CARD_AUTH_FAILED_V2_1 = "4012001037461114";
10
- static CARD_AUTH_ISSUER_REJECTED_V2_1 = "4012001038443335";
11
- static CARD_AUTH_COULD_NOT_BE_PREFORMED_V2_1 = "4012001037484447";
12
- static CARD_CHALLENGE_REQUIRED_V2_1 = "4012001038488884";
13
- static CARD_AUTH_SUCCESSFUL_V2_2 = "4222000006285344";
14
- static CARD_AUTH_SUCCESSFUL_NO_METHOD_URL_V2_2 = "4222000009719489";
15
- static CARD_AUTH_ATTEMPTED_BUT_NOT_SUCCESSFUL_V2_2 = "4222000005218627";
16
- static CARD_AUTH_FAILED_V2_2 = "4222000002144131";
17
- static CARD_AUTH_ISSUER_REJECTED_V2_2 = "4222000007275799";
18
- static CARD_AUTH_COULD_NOT_BE_PREFORMED_V2_2 = "4222000008880910";
19
- static CARD_CHALLENGE_REQUIRED_V2_2 = "4222000001227408";
20
- }
21
- exports.GpApi3DSTestCards = GpApi3DSTestCards;
22
- //# sourceMappingURL=GpApi3DSTestCards.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GpApi3DSTestCards.js","sourceRoot":"","sources":["../../../test/Data/GpApi3DSTestCards.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;IAC5B,MAAM,CAAC,sBAAsB,GAAW,kBAAkB,CAAC;IAE3D,MAAM,CAAC,yBAAyB,GAAW,kBAAkB,CAAC;IAC9D,MAAM,CAAC,uCAAuC,GAAW,kBAAkB,CAAC;IAC5E,MAAM,CAAC,2CAA2C,GAChD,kBAAkB,CAAC;IACrB,MAAM,CAAC,qBAAqB,GAAW,kBAAkB,CAAC;IAC1D,MAAM,CAAC,8BAA8B,GAAW,kBAAkB,CAAC;IACnE,MAAM,CAAC,qCAAqC,GAAW,kBAAkB,CAAC;IAC1E,MAAM,CAAC,4BAA4B,GAAW,kBAAkB,CAAC;IAEjE,MAAM,CAAC,yBAAyB,GAAW,kBAAkB,CAAC;IAC9D,MAAM,CAAC,uCAAuC,GAAW,kBAAkB,CAAC;IAC5E,MAAM,CAAC,2CAA2C,GAChD,kBAAkB,CAAC;IACrB,MAAM,CAAC,qBAAqB,GAAW,kBAAkB,CAAC;IAC1D,MAAM,CAAC,8BAA8B,GAAW,kBAAkB,CAAC;IACnE,MAAM,CAAC,qCAAqC,GAAW,kBAAkB,CAAC;IAC1E,MAAM,CAAC,4BAA4B,GAAW,kBAAkB,CAAC;;AAnBnE,8CAoBC"}
@@ -1,24 +0,0 @@
1
- import { CreditCardData, CreditTrackData, DebitTrackData, EBTCardData, EBTTrackData, EntryMethod, GiftCard } from "../../src";
2
- export declare class TestCards {
3
- static asDebit(card: CreditTrackData, pinBlock: string): DebitTrackData;
4
- static asEBTTrack(card: CreditTrackData, pinBlock: string): EBTTrackData;
5
- static asEBTManual(card: CreditCardData, pinBlock: string): EBTCardData;
6
- static visaManual(cardPresent?: boolean, readerPresent?: boolean): CreditCardData;
7
- static visaSwipe(entryMethod?: EntryMethod): CreditTrackData;
8
- static visaSwipeEncrypted(entryMethod?: EntryMethod): CreditTrackData;
9
- static masterCardManual(cardPresent?: boolean, readerPresent?: boolean): CreditCardData;
10
- static masterCardSwipe(entryMethod?: EntryMethod): CreditTrackData;
11
- static masterCard24Swipe(entryMethod?: EntryMethod): CreditTrackData;
12
- static masterCard25Swipe(entryMethod?: EntryMethod): CreditTrackData;
13
- static masterCardSwipeEncrypted(entryMethod?: EntryMethod): CreditTrackData;
14
- static discoverManual(cardPresent?: boolean, readerPresent?: boolean): CreditCardData;
15
- static discoverSwipe(entryMethod?: EntryMethod): CreditTrackData;
16
- static discoverSwipeEncrypted(entryMethod?: EntryMethod): CreditTrackData;
17
- static amexManual(cardPresent?: boolean, readerPresent?: boolean): CreditCardData;
18
- static amexSwipe(entryMethod?: EntryMethod): CreditTrackData;
19
- static jcbManual(cardPresent?: boolean, readerPresent?: boolean): CreditCardData;
20
- static jcbSwipe(entryMethod?: EntryMethod): CreditTrackData;
21
- static giftCard1Swipe(): GiftCard;
22
- static giftCard2Manual(): GiftCard;
23
- static gsbManual(): CreditCardData;
24
- }
@@ -1,220 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TestCards = void 0;
4
- const src_1 = require("../../src");
5
- class TestCards {
6
- static asDebit(card, pinBlock) {
7
- const data = new src_1.DebitTrackData();
8
- data.value = card.value;
9
- data.encryptionData = card.encryptionData;
10
- data.pinBlock = pinBlock;
11
- return data;
12
- }
13
- static asEBTTrack(card, pinBlock) {
14
- const data = new src_1.EBTTrackData();
15
- data.value = card.value;
16
- data.entryMethod = card.entryMethod;
17
- data.encryptionData = card.encryptionData;
18
- data.pinBlock = pinBlock;
19
- return data;
20
- }
21
- static asEBTManual(card, pinBlock) {
22
- const data = new src_1.EBTCardData();
23
- data.number = card.number;
24
- data.expMonth = card.expMonth;
25
- data.expYear = card.expYear;
26
- data.pinBlock = pinBlock;
27
- return data;
28
- }
29
- static visaManual(cardPresent = false, readerPresent = false) {
30
- const data = new src_1.CreditCardData();
31
- data.number = "4012002000060016";
32
- data.expMonth = "12";
33
- data.expYear = "2025";
34
- data.cvn = "123";
35
- data.cardPresent = cardPresent;
36
- data.readerPresent = readerPresent;
37
- return data;
38
- }
39
- static visaSwipe(entryMethod) {
40
- if (!entryMethod) {
41
- entryMethod = src_1.EntryMethod.Swipe;
42
- }
43
- const data = new src_1.CreditTrackData();
44
- data.value =
45
- "%B4012002000060016^VI TEST CREDIT^251210118039000000000396?;4012002000060016=25121011803939600000?";
46
- data.entryMethod = entryMethod;
47
- return data;
48
- }
49
- static visaSwipeEncrypted(entryMethod) {
50
- if (!entryMethod) {
51
- entryMethod = src_1.EntryMethod.Swipe;
52
- }
53
- const encryptionData = new src_1.EncryptionData();
54
- encryptionData.version = "01";
55
- const data = new src_1.CreditTrackData();
56
- data.value =
57
- "<E1050711%B4012001000000016^VI TEST CREDIT^251200000000000000000000?|LO04K0WFOmdkDz0um+GwUkILL8ZZOP6Z" +
58
- "c4rCpZ9+kg2T3JBT4AEOilWTI|+++++++Dbbn04ekG|11;4012001000000016=25120000000000000000?|1u2F/aEhbdoPixyAPGyIDv3gB" +
59
- "fF|+++++++Dbbn04ekG|00|||/wECAQECAoFGAgEH2wYcShV78RZwb3NAc2VjdXJlZXhjaGFuZ2UubmV0PX50qfj4dt0lu9oFBESQQNkpoxEVp" +
60
- "CW3ZKmoIV3T93zphPS3XKP4+DiVlM8VIOOmAuRrpzxNi0TN/DWXWSjUC8m/PI2dACGdl/hVJ/imfqIs68wYDnp8j0ZfgvM26MlnDbTVRrSx68N" +
61
- "zj2QAgpBCHcaBb/FZm9T7pfMr2Mlh2YcAt6gGG1i2bJgiEJn8IiSDX5M2ybzqRT86PCbKle/XCTwFFe1X|>;";
62
- data.entryMethod = entryMethod;
63
- data.encryptionData = encryptionData;
64
- return data;
65
- }
66
- static masterCardManual(cardPresent = false, readerPresent = false) {
67
- const data = new src_1.CreditCardData();
68
- data.number = "5473500000000014";
69
- data.expMonth = "12";
70
- data.expYear = "2025";
71
- data.cvn = "123";
72
- data.cardPresent = cardPresent;
73
- data.readerPresent = readerPresent;
74
- return data;
75
- }
76
- static masterCardSwipe(entryMethod) {
77
- if (!entryMethod) {
78
- entryMethod = src_1.EntryMethod.Swipe;
79
- }
80
- const data = new src_1.CreditTrackData();
81
- data.value =
82
- "%B5473500000000014^MC TEST CARD^251210199998888777766665555444433332?;5473500000000014=25121019999888877776?";
83
- data.entryMethod = entryMethod;
84
- return data;
85
- }
86
- static masterCard24Swipe(entryMethod) {
87
- if (!entryMethod) {
88
- entryMethod = src_1.EntryMethod.Swipe;
89
- }
90
- const data = new src_1.CreditTrackData();
91
- data.value =
92
- "%B2223000010005780^TEST CARD/EMV BIN-2^19121010000000009210?;2223000010005780=19121010000000009210?";
93
- data.entryMethod = entryMethod;
94
- return data;
95
- }
96
- static masterCard25Swipe(entryMethod) {
97
- if (!entryMethod) {
98
- entryMethod = src_1.EntryMethod.Swipe;
99
- }
100
- const data = new src_1.CreditTrackData();
101
- data.value =
102
- "%B2223000010005798^TEST CARD/EMV BIN-2^19121010000000003840?;2223000010005798=19121010000000003840?";
103
- data.entryMethod = entryMethod;
104
- return data;
105
- }
106
- static masterCardSwipeEncrypted(entryMethod) {
107
- if (!entryMethod) {
108
- entryMethod = src_1.EntryMethod.Swipe;
109
- }
110
- const encryptionData = new src_1.EncryptionData();
111
- encryptionData.version = "01";
112
- const data = new src_1.CreditTrackData();
113
- data.value =
114
- "<E1052711%B5473501000000014^MC TEST CARD^251200000000000000000000000000000000?|GVEY/MKaKXuqqjKRRue" +
115
- "IdCHPPoj1gMccgNOtHC41ymz7bIvyJJVdD3LW8BbwvwoenI+|+++++++C4cI2zjMp|11;5473501000000014=25120000000000000000?" +
116
- "|8XqYkQGMdGeiIsgM0pzdCbEGUDP|+++++++C4cI2zjMp|00|||/wECAQECAoFGAgEH2wYcShV78RZwb3NAc2VjdXJlZXhjaGFuZ2UubmV0" +
117
- "PX50qfj4dt0lu9oFBESQQNkpoxEVpCW3ZKmoIV3T93zphPS3XKP4+DiVlM8VIOOmAuRrpzxNi0TN/DWXWSjUC8m/PI2dACGdl/hVJ/imfqI" +
118
- "s68wYDnp8j0ZfgvM26MlnDbTVRrSx68Nzj2QAgpBCHcaBb/FZm9T7pfMr2Mlh2YcAt6gGG1i2bJgiEJn8IiSDX5M2ybzqRT86PCbKle/XCTwFFe1X|>";
119
- data.entryMethod = entryMethod;
120
- data.encryptionData = encryptionData;
121
- return data;
122
- }
123
- static discoverManual(cardPresent = false, readerPresent = false) {
124
- const data = new src_1.CreditCardData();
125
- data.number = "6011000990156527";
126
- data.expMonth = "12";
127
- data.expYear = "2025";
128
- data.cvn = "123";
129
- data.cardPresent = cardPresent;
130
- data.readerPresent = readerPresent;
131
- return data;
132
- }
133
- static discoverSwipe(entryMethod) {
134
- if (!entryMethod) {
135
- entryMethod = src_1.EntryMethod.Swipe;
136
- }
137
- const data = new src_1.CreditTrackData();
138
- data.value =
139
- "%B6011000990156527^DIS TEST CARD^25121011000062111401?;6011000990156527=25121011000062111401?";
140
- data.entryMethod = entryMethod;
141
- return data;
142
- }
143
- static discoverSwipeEncrypted(entryMethod) {
144
- if (!entryMethod) {
145
- entryMethod = src_1.EntryMethod.Swipe;
146
- }
147
- const encryptionData = new src_1.EncryptionData();
148
- encryptionData.version = "01";
149
- const data = new src_1.CreditTrackData();
150
- data.value =
151
- "<E1049711%B6011000000006527^DIS TEST CARD^25120000000000000000?|nqtDvLuS4VHJd1FymxBxihO5g/ZDqlHyTf8fQpjBwkk95cc6PG9V|" +
152
- "+++++++C+LdWXLpP|11;6011000000006527=25120000000000000000?|8VfZvczP6iBqRis2XFypmktaipa|+++++++C+LdWXLpP|00|||" +
153
- "/wECAQECAoFGAgEH2wYcShV78RZwb3NAc2VjdXJlZXhjaGFuZ2UubmV0PX50qfj4dt0lu9oFBESQQNkpoxEVpCW3ZKmoIV3T93zphPS3XKP4" +
154
- "+DiVlM8VIOOmAuRrpzxNi0TN/DWXWSjUC8m/PI2dACGdl/hVJ/imfqIs68wYDnp8j0ZfgvM26MlnDbTVRrSx68Nzj2QAgpBCHcaBb/FZm9T7p" +
155
- "fMr2Mlh2YcAt6gGG1i2bJgiEJn8IiSDX5M2ybzqRT86PCbKle/XCTwFFe1X|>";
156
- data.entryMethod = entryMethod;
157
- data.encryptionData = encryptionData;
158
- return data;
159
- }
160
- static amexManual(cardPresent = false, readerPresent = false) {
161
- const data = new src_1.CreditCardData();
162
- data.number = "372700699251018";
163
- data.expMonth = "12";
164
- data.expYear = "2025";
165
- data.cvn = "1234";
166
- data.cardPresent = cardPresent;
167
- data.readerPresent = readerPresent;
168
- return data;
169
- }
170
- static amexSwipe(entryMethod) {
171
- if (!entryMethod) {
172
- entryMethod = src_1.EntryMethod.Swipe;
173
- }
174
- const data = new src_1.CreditTrackData();
175
- data.value =
176
- "%B3727 006992 51018^AMEX TEST CARD^2512990502700?;372700699251018=2512990502700?";
177
- data.entryMethod = entryMethod;
178
- return data;
179
- }
180
- static jcbManual(cardPresent = false, readerPresent = false) {
181
- const data = new src_1.CreditCardData();
182
- data.number = "3566007770007321";
183
- data.expMonth = "12";
184
- data.expYear = "2025";
185
- data.cvn = "123";
186
- data.cardPresent = cardPresent;
187
- data.readerPresent = readerPresent;
188
- return data;
189
- }
190
- static jcbSwipe(entryMethod) {
191
- if (!entryMethod) {
192
- entryMethod = src_1.EntryMethod.Swipe;
193
- }
194
- const data = new src_1.CreditTrackData();
195
- data.value =
196
- "%B3566007770007321^JCB TEST CARD^2512101100000000000000000064300000?;3566007770007321=25121011000000076435?";
197
- data.entryMethod = entryMethod;
198
- return data;
199
- }
200
- static giftCard1Swipe() {
201
- const data = new src_1.GiftCard();
202
- data.trackData =
203
- "%B5022440000000000098^^391200081613?;5022440000000000098=391200081613?";
204
- return data;
205
- }
206
- static giftCard2Manual() {
207
- const data = new src_1.GiftCard();
208
- data.number = "5022440000000000007";
209
- return data;
210
- }
211
- static gsbManual() {
212
- const data = new src_1.CreditCardData();
213
- data.number = "6277220572999800";
214
- data.expMonth = "12";
215
- data.expYear = "2049";
216
- return data;
217
- }
218
- }
219
- exports.TestCards = TestCards;
220
- //# sourceMappingURL=TestCards.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestCards.js","sourceRoot":"","sources":["../../../test/Data/TestCards.ts"],"names":[],"mappings":";;;AAAA,mCASmB;AAEnB,MAAa,SAAS;IACb,MAAM,CAAC,OAAO,CAAC,IAAqB,EAAE,QAAgB;QAC3D,MAAM,IAAI,GAAG,IAAI,oBAAc,EAAE,CAAC;QAClC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACxB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAC1C,IAAI,CA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I,GAAG,IAAI,qBAAe,EAAE,CAAC;QACnC,IAAI,CAAC,KAAK;YACR,6GAA6G,CAAC;QAChH,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,MAAM,CAAC,cAAc;QAC1B,MAAM,IAAI,GAAG,IAAI,cAAQ,EAAE,CAAC;QAC5B,IAAI,CAAC,SAAS;YACZ,wEAAwE,CAAC;QAC3E,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,MAAM,CAAC,eAAe;QAC3B,MAAM,IAAI,GAAG,IAAI,cAAQ,EAAE,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,qBAAqB,CAAC;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,MAAM,CAAC,SAAS;QACrB,MAAM,IAAI,GAAG,IAAI,oBAAc,EAAE,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AArPD,8BAqPC"}
@@ -1,4 +0,0 @@
1
- import { AccountType, CheckType, ECheck, SecCode } from "../../src";
2
- export declare class TestChecks {
3
- static certification(secCode?: SecCode, checkType?: CheckType, accountType?: AccountType, checkName?: string): ECheck;
4
- }
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TestChecks = void 0;
4
- const src_1 = require("../../src");
5
- class TestChecks {
6
- static certification(secCode = src_1.SecCode.PPD, checkType = src_1.CheckType.Personal, accountType = src_1.AccountType.Checking, checkName) {
7
- const check = new src_1.ECheck();
8
- check.accountNumber = "1357902468";
9
- check.routingNumber = "122000030";
10
- check.checkType = checkType;
11
- check.accountType = accountType;
12
- check.secCode = secCode;
13
- check.entryMode = src_1.EntryMethod.Manual;
14
- check.checkHolderName = "John Doe";
15
- check.driversLicenseNumber = "09876543210";
16
- check.driversLicenseState = "TX";
17
- check.phoneNumber = "8003214567";
18
- check.birthYear = "1997";
19
- check.ssnLast4 = "4321";
20
- if (checkName) {
21
- check.checkName = checkName;
22
- }
23
- return check;
24
- }
25
- }
26
- exports.TestChecks = TestChecks;
27
- //# sourceMappingURL=TestChecks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestChecks.js","sourceRoot":"","sources":["../../../test/Data/TestChecks.ts"],"names":[],"mappings":";;;AAAA,mCAMmB;AAEnB,MAAa,UAAU;IACd,MAAM,CAAC,aAAa,CACzB,OAAO,GAAG,aAAO,CAAC,GAAG,EACrB,SAAS,GAAG,eAAS,CAAC,QAAQ,EAC9B,WAAW,GAAG,iBAAW,CAAC,QAAQ,EAClC,SAAkB;QAElB,MAAM,KAAK,GAAG,IAAI,YAAM,EAAE,CAAC;QAC3B,KAAK,CAAC,aAAa,GAAG,YAAY,CAAC;QACnC,KAAK,CAAC,aAAa,GAAG,WAAW,CAAC;QAClC,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;QAC5B,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC;QAChC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;QACxB,KAAK,CAAC,SAAS,GAAG,iBAAW,CAAC,MAAM,CAAC;QACrC,KAAK,CAAC,eAAe,GAAG,UAAU,CAAC;QACnC,KAAK,CAAC,oBAAoB,GAAG,aAAa,CAAC;QAC3C,KAAK,CAAC,mBAAmB,GAAG,IAAI,CAAC;QACjC,KAAK,CAAC,WAAW,GAAG,YAAY,CAAC;QACjC,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;QACzB,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC;QACxB,IAAI,SAAS,EAAE;YACb,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;SAC7B;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAzBD,gCAyBC"}
@@ -1,4 +0,0 @@
1
- export * from "./BaseGpApiTestConfig";
2
- export * from "./GpApi3DSTestCards";
3
- export * from "./TestCards";
4
- export * from "./TestChecks";
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./BaseGpApiTestConfig"), exports);
18
- __exportStar(require("./GpApi3DSTestCards"), exports);
19
- __exportStar(require("./TestCards"), exports);
20
- __exportStar(require("./TestChecks"), exports);
21
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../test/Data/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,sDAAoC;AACpC,8CAA4B;AAC5B,+CAA6B"}
@@ -1,12 +0,0 @@
1
- export declare class AcsResponse {
2
- private authResponse;
3
- private merchantData;
4
- private status;
5
- constructor();
6
- getAuthResponse(): string;
7
- setAuthResponse(authResponse: string): void;
8
- getMerchantData(): string;
9
- setMerchantData(merchantData: string): void;
10
- getStatus(): boolean;
11
- setStatus(status: boolean): void;
12
- }
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AcsResponse = void 0;
4
- class AcsResponse {
5
- authResponse;
6
- merchantData;
7
- status;
8
- constructor() {
9
- this.authResponse = "";
10
- this.merchantData = "";
11
- this.status = false;
12
- }
13
- getAuthResponse() {
14
- return this.authResponse;
15
- }
16
- setAuthResponse(authResponse) {
17
- this.authResponse = authResponse;
18
- }
19
- getMerchantData() {
20
- return this.merchantData;
21
- }
22
- setMerchantData(merchantData) {
23
- this.merchantData = merchantData;
24
- }
25
- getStatus() {
26
- return this.status;
27
- }
28
- setStatus(status) {
29
- this.status = status;
30
- }
31
- }
32
- exports.AcsResponse = AcsResponse;
33
- //# sourceMappingURL=AcsResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AcsResponse.js","sourceRoot":"","sources":["../../../../test/Integration/Gateways/AcsResponse.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;IACd,YAAY,CAAS;IACrB,YAAY,CAAS;IACrB,MAAM,CAAU;IAExB;QACE,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAEM,eAAe;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAEM,eAAe,CAAC,YAAoB;QACzC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAEM,eAAe;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAEM,eAAe,CAAC,YAAoB;QACzC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAEM,SAAS;QACd,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAEM,SAAS,CAAC,MAAe;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAlCD,kCAkCC"}