globalpayments-api 3.10.14 → 3.10.15

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 (98) hide show
  1. package/CHANGELOG.md +246 -240
  2. package/LICENSE.md +257 -257
  3. package/README.md +148 -148
  4. package/appsec.properties +8 -0
  5. package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.d.ts +11 -2
  6. package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js +44 -5
  7. package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js.map +1 -1
  8. package/lib/src/Entities/GpApi/PorticoTokenConfig.d.ts +25 -0
  9. package/lib/src/Entities/GpApi/PorticoTokenConfig.js +30 -0
  10. package/lib/src/Entities/GpApi/PorticoTokenConfig.js.map +1 -0
  11. package/lib/src/Entities/GpApi/index.d.ts +1 -0
  12. package/lib/src/Entities/GpApi/index.js +1 -0
  13. package/lib/src/Entities/GpApi/index.js.map +1 -1
  14. package/lib/src/Entities/Transaction.d.ts +2 -0
  15. package/lib/src/Entities/Transaction.js +2 -0
  16. package/lib/src/Entities/Transaction.js.map +1 -1
  17. package/lib/src/Entities/TransactionSummary.d.ts +1 -0
  18. package/lib/src/Entities/TransactionSummary.js +1 -0
  19. package/lib/src/Entities/TransactionSummary.js.map +1 -1
  20. package/lib/src/Entities/UPA/ExtraChargeType.d.ts +8 -0
  21. package/lib/src/Entities/UPA/ExtraChargeType.js +13 -0
  22. package/lib/src/Entities/UPA/ExtraChargeType.js.map +1 -0
  23. package/lib/src/Entities/UPA/Lodging.d.ts +11 -0
  24. package/lib/src/Entities/UPA/Lodging.js +15 -0
  25. package/lib/src/Entities/UPA/Lodging.js.map +1 -0
  26. package/lib/src/Entities/UPA/POSData.d.ts +6 -0
  27. package/lib/src/Entities/UPA/POSData.js +11 -0
  28. package/lib/src/Entities/UPA/POSData.js.map +1 -0
  29. package/lib/src/Gateways/GpApiConnector.js +21 -2
  30. package/lib/src/Gateways/GpApiConnector.js.map +1 -1
  31. package/lib/src/Gateways/PorticoConnector.js +2 -0
  32. package/lib/src/Gateways/PorticoConnector.js.map +1 -1
  33. package/lib/src/Mapping/GpApiMapping.js +7 -0
  34. package/lib/src/Mapping/GpApiMapping.js.map +1 -1
  35. package/lib/src/ServiceConfigs/Gateways/GpApiConfig.d.ts +6 -0
  36. package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js +25 -2
  37. package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js.map +1 -1
  38. package/lib/src/Services/GpApiServices.js +4 -1
  39. package/lib/src/Services/GpApiServices.js.map +1 -1
  40. package/lib/src/Terminals/Builders/TerminalReportBuilder.d.ts +15 -0
  41. package/lib/src/Terminals/Builders/TerminalReportBuilder.js +49 -0
  42. package/lib/src/Terminals/Builders/TerminalReportBuilder.js.map +1 -0
  43. package/lib/src/Terminals/UPA/Entities/UpaModels.d.ts +62 -0
  44. package/lib/src/Terminals/UPA/Entities/UpaModels.js +28 -0
  45. package/lib/src/Terminals/UPA/Entities/UpaModels.js.map +1 -0
  46. package/lib/src/Terminals/UPA/Entities/UpaSearchCriteria.d.ts +5 -0
  47. package/lib/src/Terminals/UPA/Entities/UpaSearchCriteria.js +10 -0
  48. package/lib/src/Terminals/UPA/Entities/UpaSearchCriteria.js.map +1 -0
  49. package/lib/src/Terminals/UPA/Reponses/BatchList.d.ts +16 -0
  50. package/lib/src/Terminals/UPA/Reponses/BatchList.js +82 -0
  51. package/lib/src/Terminals/UPA/Reponses/BatchList.js.map +1 -0
  52. package/lib/src/Terminals/UPA/Reponses/BatchReportResponse.d.ts +55 -0
  53. package/lib/src/Terminals/UPA/Reponses/BatchReportResponse.js +213 -0
  54. package/lib/src/Terminals/UPA/Reponses/BatchReportResponse.js.map +1 -0
  55. package/lib/src/Terminals/UPA/Reponses/OpenTabDetailsResponse.d.ts +25 -0
  56. package/lib/src/Terminals/UPA/Reponses/OpenTabDetailsResponse.js +109 -0
  57. package/lib/src/Terminals/UPA/Reponses/OpenTabDetailsResponse.js.map +1 -0
  58. package/lib/src/Terminals/UPA/Reponses/SafReportResponse.d.ts +36 -0
  59. package/lib/src/Terminals/UPA/Reponses/SafReportResponse.js +181 -0
  60. package/lib/src/Terminals/UPA/Reponses/SafReportResponse.js.map +1 -0
  61. package/lib/src/Terminals/UPA/Reponses/UpaEODResponse.d.ts +21 -0
  62. package/lib/src/Terminals/UPA/Reponses/UpaEODResponse.js +106 -0
  63. package/lib/src/Terminals/UPA/Reponses/UpaEODResponse.js.map +1 -0
  64. package/lib/src/Terminals/UPA/Reponses/UpaGiftCardResponse.d.ts +41 -0
  65. package/lib/src/Terminals/UPA/Reponses/UpaGiftCardResponse.js +93 -0
  66. package/lib/src/Terminals/UPA/Reponses/UpaGiftCardResponse.js.map +1 -0
  67. package/lib/src/Terminals/UPA/Reponses/UpaSAFResponse.d.ts +35 -0
  68. package/lib/src/Terminals/UPA/Reponses/UpaSAFResponse.js +194 -0
  69. package/lib/src/Terminals/UPA/Reponses/UpaSAFResponse.js.map +1 -0
  70. package/lib/src/Terminals/UPA/Reponses/UpaSignatureResponse.d.ts +18 -0
  71. package/lib/src/Terminals/UPA/Reponses/UpaSignatureResponse.js +94 -0
  72. package/lib/src/Terminals/UPA/Reponses/UpaSignatureResponse.js.map +1 -0
  73. package/lib/test/Integration/Gateways/GpApiConnector/3DS2.test.js +15 -15
  74. package/lib/test/Integration/Gateways/GpApiConnector/3DSecure.test.js +5 -5
  75. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenPorticoCredentials.test.d.ts +1 -0
  76. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenPorticoCredentials.test.js +175 -0
  77. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenPorticoCredentials.test.js.map +1 -0
  78. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCreateTokenWithPorticoCredentialTests.test.d.ts +1 -0
  79. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCreateTokenWithPorticoCredentialTests.test.js +205 -0
  80. package/lib/test/Integration/Gateways/GpApiConnector/GpApiCreateTokenWithPorticoCredentialTests.test.js.map +1 -0
  81. package/lib/test/Integration/Gateways/GpEcomConnector/Credit.test.js +4 -4
  82. package/lib/test/Integration/Gateways/PorticoConnector/Ecommerce.test.js +8 -8
  83. package/lib/test/Integration/Gateways/PorticoConnector/GlobalTransactionId.test.d.ts +1 -0
  84. package/lib/test/Integration/Gateways/PorticoConnector/GlobalTransactionId.test.js +243 -0
  85. package/lib/test/Integration/Gateways/PorticoConnector/GlobalTransactionId.test.js.map +1 -0
  86. package/lib/test/Unit/Builders/AuthorizationBuilder/SupplementaryData.test.d.ts +1 -0
  87. package/lib/test/Unit/Builders/AuthorizationBuilder/SupplementaryData.test.js +147 -0
  88. package/lib/test/Unit/Builders/AuthorizationBuilder/SupplementaryData.test.js.map +1 -0
  89. package/lib/test/Unit/Terminals/UPA/UpaStory1Methods.test.d.ts +1 -0
  90. package/lib/test/Unit/Terminals/UPA/UpaStory1Methods.test.js +250 -0
  91. package/lib/test/Unit/Terminals/UPA/UpaStory1Methods.test.js.map +1 -0
  92. package/lib/test/Unit/Terminals/UPA/UpaStory2Methods.test.d.ts +1 -0
  93. package/lib/test/Unit/Terminals/UPA/UpaStory2Methods.test.js +1277 -0
  94. package/lib/test/Unit/Terminals/UPA/UpaStory2Methods.test.js.map +1 -0
  95. package/lib/test/Unit/Terminals/UPA/UpaStory3_4Methods.test.d.ts +1 -0
  96. package/lib/test/Unit/Terminals/UPA/UpaStory3_4Methods.test.js +411 -0
  97. package/lib/test/Unit/Terminals/UPA/UpaStory3_4Methods.test.js.map +1 -0
  98. package/package.json +63 -63
package/package.json CHANGED
@@ -1,63 +1,63 @@
1
- {
2
- "name": "globalpayments-api",
3
- "version" : "3.10.14",
4
- "description": "Global Payments SDK for NodeJS for Global Payments eCommerce gateways",
5
- "author": "Global Payments",
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
- "test:jest": "jest",
19
- "test:serial": "jest --runInBand --testPathPattern=DataResidency.test.ts$ --",
20
- "build:netsuite": "webpack --env.GP_NETSUITE_BUILD --config config/webpack.netsuite.js && node bin/netsuite-post.js",
21
- "build:clean": "rimraf lib",
22
- "docs": "typedoc --mode file --name \"GlobalPayments.Api\" --project tsconfig.json --out docs src",
23
- "format": "prettier --write --config .prettierrc 'src/**/*.ts' 'test/**/*.ts' '*.md'",
24
- "prebuild": "npm-run-all test:lint",
25
- "prepublish": "npm-run-all build",
26
- "prepublishOnly": "npm-run-all build",
27
- "pretest": "npm-run-all build:clean test:lint build",
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/jest": "^29.5.12",
41
- "@types/node": "20.6.0",
42
- "@typescript-eslint/eslint-plugin": "^6.7.3",
43
- "@typescript-eslint/parser": "^6.7.3",
44
- "eslint": "^8.50.0",
45
- "eslint-plugin-prettier": "^5.0.0",
46
- "jest": "^29.7.0",
47
- "npm-run-all": "^4.1.5",
48
- "prettier": "3.0.3",
49
- "rimraf": "^2.6.3",
50
- "ts-jest": "^29.1.5",
51
- "tslint": "^6.1.3",
52
- "typedoc": "0.25.1",
53
- "typescript": "5.2.2",
54
- "webpack": "^5.94.0"
55
- },
56
- "files": [
57
- "lib/src/**",
58
- "lib/test/**",
59
- "appsec.properties",
60
- "CHANGELOG.md"
61
- ],
62
- "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
63
- }
1
+ {
2
+ "name": "globalpayments-api",
3
+ "version": "3.10.15",
4
+ "description": "Global Payments SDK for NodeJS for Global Payments eCommerce gateways",
5
+ "author": "Global Payments",
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
+ "test:jest": "jest",
19
+ "test:serial": "jest --runInBand --testPathPattern=DataResidency.test.ts$ --",
20
+ "build:netsuite": "webpack --env.GP_NETSUITE_BUILD --config config/webpack.netsuite.js && node bin/netsuite-post.js",
21
+ "build:clean": "rimraf lib",
22
+ "docs": "typedoc --mode file --name \"GlobalPayments.Api\" --project tsconfig.json --out docs src",
23
+ "format": "prettier --write --config .prettierrc 'src/**/*.ts' 'test/**/*.ts' '*.md'",
24
+ "prebuild": "npm-run-all test:lint",
25
+ "prepublish": "npm-run-all build",
26
+ "prepublishOnly": "npm-run-all build",
27
+ "pretest": "npm-run-all build:clean test:lint build",
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/jest": "^29.5.12",
41
+ "@types/node": "20.6.0",
42
+ "@typescript-eslint/eslint-plugin": "^6.7.3",
43
+ "@typescript-eslint/parser": "^6.7.3",
44
+ "eslint": "^8.50.0",
45
+ "eslint-plugin-prettier": "^5.0.0",
46
+ "jest": "^29.7.0",
47
+ "npm-run-all": "^4.1.5",
48
+ "prettier": "3.0.3",
49
+ "rimraf": "^2.6.3",
50
+ "ts-jest": "^29.1.5",
51
+ "tslint": "^6.1.3",
52
+ "typedoc": "0.25.1",
53
+ "typescript": "5.2.2",
54
+ "webpack": "^5.94.0"
55
+ },
56
+ "files": [
57
+ "lib/src/**",
58
+ "lib/test/**",
59
+ "appsec.properties",
60
+ "CHANGELOG.md"
61
+ ],
62
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
63
+ }