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/CHANGELOG.md CHANGED
@@ -1,240 +1,246 @@
1
- # Changelog
2
-
3
- ## Latest - v3.10.14 (06/24/26):
4
- ### Enhancements:
5
- - [GP-API] Added support for Visa Direct Account Funding Transactions (AFT)
6
-
7
- ## v3.10.13 (05/27/26):
8
- ### Enhancements:
9
- - [Portico] Added clerkId in Portico
10
-
11
- ## v3.10.12 (02/18/26):
12
- ### Enhancements:
13
- - [GP-API] Added EU Data Residency support
14
-
15
- ## v3.10.11 (02/11/26):
16
- ### Enhancements:
17
- - [GP-API] Added in APM added PAYU for OB
18
-
19
- ## v3.10.10 (01/15/26):
20
- ### Enhancements:
21
- - [GP-API] Added Blik alternative payment method support to SDK
22
-
23
- ## v3.10.9 (12/04/25):
24
- ### Enhancements:
25
- - [Portico] Added withstartdate and withenddate for reporting
26
- - [Portico] Implemented amountIndicator element
27
-
28
- ## v3.10.8 (10/03/25):
29
-
30
- ### Enhancements:
31
-
32
- - [Other] Unify all branding under Global Payments
33
-
34
- ## v3.10.7 (07/23/25):
35
-
36
- ### Enhancements:
37
-
38
- - [Portico] Added AutoSubstantiation coverage to Portico
39
-
40
- ## v3.10.6 (05/13/25):
41
-
42
- ### Enhancements:
43
-
44
- - [Portico] Fix to reporting response mapping
45
-
46
- ## v3.10.5 (04/09/25):
47
-
48
- ### Enhancements:
49
-
50
- - [Other] Updates to code to address security vulnerabilities
51
- - [Dependencies] Update dependency versions to address security vulnerabilities
52
-
53
- ## v3.10.4 (03/21/25):
54
-
55
- ### Enhancements:
56
-
57
- - [Recurring] Fix typing issues with recurring payments
58
-
59
- ## v3.10.3 (11/06/24):
60
-
61
- ### Enhancements:
62
-
63
- - [Portico] Map additional response messages
64
-
65
- ## v3.10.2 (10/31/24):
66
-
67
- ### Enhancements:
68
-
69
- - [Other] E2E sample app GooglePay API and Portico
70
- - [Portico] Added 3d secure credit transactions
71
-
72
- ## v3.10.1 (09/10/24):
73
-
74
- ### Enhancements:
75
-
76
- - [Other] Fix to entities Exports
77
- - [Dependencies] Change to webpack version
78
-
79
- ## v3.10.0 (08/27/24):
80
-
81
- ### Enhancements:
82
-
83
- - [GP-API] Added support DCC
84
-
85
- ## v3.9.0 (08/20/24):
86
-
87
- ### Enhancements:
88
-
89
- - [GP-API] Added support for ACH, APM and EBT
90
-
91
- ## v3.8.2 (08/14/24):
92
-
93
- ### Enhancements:
94
-
95
- - [Portico] Added support for incremental Auth.
96
-
97
- ## v3.8.1 (08/05/24):
98
-
99
- ### Enhancements:
100
-
101
- - [Portico] Added support for lvl iii transactions.
102
- - [Portico] Fix to tokenAction block scope issue.
103
-
104
- ## v3.8.0 (07/16/24):
105
-
106
- ### Enhancements:
107
-
108
- - [GP-API] Add disputes feature
109
- - [GP-ECOM] Add HPP capture article updates
110
- - [Other] Switch automated tests from Ava to Jest
111
-
112
- ## v3.7.0 (06/18/24):
113
-
114
- ### Enhancements:
115
-
116
- - [GP-API] Add deposits feature
117
- - [GP-API] Fix authorization code mapping
118
- - [GP-API] Improve testing
119
- - [Validations] Improve validations mechanism
120
- - [Portico] Added support for unique MUT request.
121
-
122
- ## v3.6.2 (06/07/24):
123
-
124
- ### Enhancements:
125
-
126
- - [Portico] Fix code to conform to linting rules.
127
-
128
- ## v3.6.1 (06/04/24):
129
-
130
- ### Enhancements:
131
-
132
- - [Portico] Add 'update token expiry' and 'delete token' functionality.
133
-
134
- ## v3.6.0 (05/30/24):
135
-
136
- ### Enhancements:
137
-
138
- - [GP-API] Add 3D Secure features
139
-
140
- ## v3.5.3 (05/23/24):
141
-
142
- ### Fix:
143
-
144
- - [Portico] Handle async response for debit reversal testcase.
145
- - [Package.json] Added files configuration to be included in npm publish due to a change.
146
-
147
- ## v3.5.2 (05/21/24):
148
-
149
- ### Enhancements:
150
-
151
- - [Portico] Added DebitReversal portico support with fromId.
152
-
153
- ## v3.5.1-fix-4 (04/26/24):
154
-
155
- ### Fix:
156
-
157
- - Fix issue on Npm registry with missing lib folder.
158
-
159
- ## v3.5.0 (04/10/24):
160
-
161
- ### Enhancements:
162
-
163
- - [GP-API] Add Transaction API methods
164
-
165
- ## v3.4.0 (03/12/24):
166
-
167
- ### Enhancements:
168
-
169
- - [GP-API] Add stored payments and reports for stored payments
170
-
171
- ## v3.3.3 (02/27/24):
172
-
173
- ### Enhancements:
174
-
175
- - PayPlan Enhancements: - Added payment methods to customer response
176
- - Cardtype, NameOnAccount , and Last4 of both credit card and ACH are included in payment response
177
- - Fix for Processor Configuration error response message
178
- - Added 204 as a success code when Request is successful; but response contains no data
179
-
180
- ## v3.3.2 (02/22/24):
181
-
182
- ### Enhancements:
183
-
184
- - Code cleanup
185
-
186
- ## v3.3.1 (02/08/24):
187
-
188
- ### Enhancements:
189
-
190
- - [RequestLogger] Backfill request logger on missing places
191
-
192
- ## v3.3.0 (01/31/24):
193
-
194
- ### Enhancements:
195
-
196
- - [RequestLogger] Add request logger implementation on GpEcom and GpApi
197
-
198
- ## v3.2.0 (01/18/24):
199
-
200
- ### Enhancements:
201
-
202
- - [UPA-MIC] Add MiC connector for UPA via GP-API
203
-
204
- ## v3.1.0 (10/31/23)
205
-
206
- ### Enhancements:
207
-
208
- - [GP-API] Generate Access Token for GP API users
209
- - https://developer.globalpay.com/api/access-token
210
-
211
- ### Bug Fixes:
212
-
213
- - Change tslint with eslint and fix existing lint errors
214
-
215
- ## v3.0.0 (10/03/23)
216
-
217
- ### Enhancements:
218
-
219
- - Upgrade Typescript to v5 to use latest functionalities
220
-
221
- ## v2.0.0 (09/21/23)
222
-
223
- ### Enhancements:
224
-
225
- - [GP-ECOM] Add configuration and use it in existing functionality
226
- - From now on we are going to use containers in order to configure the services in Node SDK.
227
-
228
- ## v1.4.9 (05/17/23)
229
-
230
- #### Profac Enhancements
231
-
232
- - Profac Implementation - Implement profac functionality.
233
-
234
- #### Reporting Enhancements
235
-
236
- - SdkNameVersion Identifier: Name and Version of the SDK used for integration, where applicable.
237
-
238
- ## v1.4.8 (12/13/22)
239
-
240
- ####
1
+ # Changelog
2
+
3
+ ## Latest - v3.10.15 (07/08/26):
4
+ ### Enhancements:
5
+ - [Other] fix formatting setting
6
+ - [Portico] Added txn id mapping
7
+ - [GP-API] Portico Credentials Support for GP-API Access Token
8
+
9
+ ## v3.10.14 (06/24/26):
10
+ ### Enhancements:
11
+ - [GP-API] Added support for Visa Direct Account Funding Transactions (AFT)
12
+
13
+ ## v3.10.13 (05/27/26):
14
+ ### Enhancements:
15
+ - [Portico] Added clerkId in Portico
16
+
17
+ ## v3.10.12 (02/18/26):
18
+ ### Enhancements:
19
+ - [GP-API] Added EU Data Residency support
20
+
21
+ ## v3.10.11 (02/11/26):
22
+ ### Enhancements:
23
+ - [GP-API] Added in APM added PAYU for OB
24
+
25
+ ## v3.10.10 (01/15/26):
26
+ ### Enhancements:
27
+ - [GP-API] Added Blik alternative payment method support to SDK
28
+
29
+ ## v3.10.9 (12/04/25):
30
+ ### Enhancements:
31
+ - [Portico] Added withstartdate and withenddate for reporting
32
+ - [Portico] Implemented amountIndicator element
33
+
34
+ ## v3.10.8 (10/03/25):
35
+
36
+ ### Enhancements:
37
+
38
+ - [Other] Unify all branding under Global Payments
39
+
40
+ ## v3.10.7 (07/23/25):
41
+
42
+ ### Enhancements:
43
+
44
+ - [Portico] Added AutoSubstantiation coverage to Portico
45
+
46
+ ## v3.10.6 (05/13/25):
47
+
48
+ ### Enhancements:
49
+
50
+ - [Portico] Fix to reporting response mapping
51
+
52
+ ## v3.10.5 (04/09/25):
53
+
54
+ ### Enhancements:
55
+
56
+ - [Other] Updates to code to address security vulnerabilities
57
+ - [Dependencies] Update dependency versions to address security vulnerabilities
58
+
59
+ ## v3.10.4 (03/21/25):
60
+
61
+ ### Enhancements:
62
+
63
+ - [Recurring] Fix typing issues with recurring payments
64
+
65
+ ## v3.10.3 (11/06/24):
66
+
67
+ ### Enhancements:
68
+
69
+ - [Portico] Map additional response messages
70
+
71
+ ## v3.10.2 (10/31/24):
72
+
73
+ ### Enhancements:
74
+
75
+ - [Other] E2E sample app GooglePay API and Portico
76
+ - [Portico] Added 3d secure credit transactions
77
+
78
+ ## v3.10.1 (09/10/24):
79
+
80
+ ### Enhancements:
81
+
82
+ - [Other] Fix to entities Exports
83
+ - [Dependencies] Change to webpack version
84
+
85
+ ## v3.10.0 (08/27/24):
86
+
87
+ ### Enhancements:
88
+
89
+ - [GP-API] Added support DCC
90
+
91
+ ## v3.9.0 (08/20/24):
92
+
93
+ ### Enhancements:
94
+
95
+ - [GP-API] Added support for ACH, APM and EBT
96
+
97
+ ## v3.8.2 (08/14/24):
98
+
99
+ ### Enhancements:
100
+
101
+ - [Portico] Added support for incremental Auth.
102
+
103
+ ## v3.8.1 (08/05/24):
104
+
105
+ ### Enhancements:
106
+
107
+ - [Portico] Added support for lvl iii transactions.
108
+ - [Portico] Fix to tokenAction block scope issue.
109
+
110
+ ## v3.8.0 (07/16/24):
111
+
112
+ ### Enhancements:
113
+
114
+ - [GP-API] Add disputes feature
115
+ - [GP-ECOM] Add HPP capture article updates
116
+ - [Other] Switch automated tests from Ava to Jest
117
+
118
+ ## v3.7.0 (06/18/24):
119
+
120
+ ### Enhancements:
121
+
122
+ - [GP-API] Add deposits feature
123
+ - [GP-API] Fix authorization code mapping
124
+ - [GP-API] Improve testing
125
+ - [Validations] Improve validations mechanism
126
+ - [Portico] Added support for unique MUT request.
127
+
128
+ ## v3.6.2 (06/07/24):
129
+
130
+ ### Enhancements:
131
+
132
+ - [Portico] Fix code to conform to linting rules.
133
+
134
+ ## v3.6.1 (06/04/24):
135
+
136
+ ### Enhancements:
137
+
138
+ - [Portico] Add 'update token expiry' and 'delete token' functionality.
139
+
140
+ ## v3.6.0 (05/30/24):
141
+
142
+ ### Enhancements:
143
+
144
+ - [GP-API] Add 3D Secure features
145
+
146
+ ## v3.5.3 (05/23/24):
147
+
148
+ ### Fix:
149
+
150
+ - [Portico] Handle async response for debit reversal testcase.
151
+ - [Package.json] Added files configuration to be included in npm publish due to a change.
152
+
153
+ ## v3.5.2 (05/21/24):
154
+
155
+ ### Enhancements:
156
+
157
+ - [Portico] Added DebitReversal portico support with fromId.
158
+
159
+ ## v3.5.1-fix-4 (04/26/24):
160
+
161
+ ### Fix:
162
+
163
+ - Fix issue on Npm registry with missing lib folder.
164
+
165
+ ## v3.5.0 (04/10/24):
166
+
167
+ ### Enhancements:
168
+
169
+ - [GP-API] Add Transaction API methods
170
+
171
+ ## v3.4.0 (03/12/24):
172
+
173
+ ### Enhancements:
174
+
175
+ - [GP-API] Add stored payments and reports for stored payments
176
+
177
+ ## v3.3.3 (02/27/24):
178
+
179
+ ### Enhancements:
180
+
181
+ - PayPlan Enhancements: - Added payment methods to customer response
182
+ - Cardtype, NameOnAccount , and Last4 of both credit card and ACH are included in payment response
183
+ - Fix for Processor Configuration error response message
184
+ - Added 204 as a success code when Request is successful; but response contains no data
185
+
186
+ ## v3.3.2 (02/22/24):
187
+
188
+ ### Enhancements:
189
+
190
+ - Code cleanup
191
+
192
+ ## v3.3.1 (02/08/24):
193
+
194
+ ### Enhancements:
195
+
196
+ - [RequestLogger] Backfill request logger on missing places
197
+
198
+ ## v3.3.0 (01/31/24):
199
+
200
+ ### Enhancements:
201
+
202
+ - [RequestLogger] Add request logger implementation on GpEcom and GpApi
203
+
204
+ ## v3.2.0 (01/18/24):
205
+
206
+ ### Enhancements:
207
+
208
+ - [UPA-MIC] Add MiC connector for UPA via GP-API
209
+
210
+ ## v3.1.0 (10/31/23)
211
+
212
+ ### Enhancements:
213
+
214
+ - [GP-API] Generate Access Token for GP API users
215
+ - https://developer.globalpay.com/api/access-token
216
+
217
+ ### Bug Fixes:
218
+
219
+ - Change tslint with eslint and fix existing lint errors
220
+
221
+ ## v3.0.0 (10/03/23)
222
+
223
+ ### Enhancements:
224
+
225
+ - Upgrade Typescript to v5 to use latest functionalities
226
+
227
+ ## v2.0.0 (09/21/23)
228
+
229
+ ### Enhancements:
230
+
231
+ - [GP-ECOM] Add configuration and use it in existing functionality
232
+ - From now on we are going to use containers in order to configure the services in Node SDK.
233
+
234
+ ## v1.4.9 (05/17/23)
235
+
236
+ #### Profac Enhancements
237
+
238
+ - Profac Implementation - Implement profac functionality.
239
+
240
+ #### Reporting Enhancements
241
+
242
+ - SdkNameVersion Identifier: Name and Version of the SDK used for integration, where applicable.
243
+
244
+ ## v1.4.8 (12/13/22)
245
+
246
+ ####