@globalpayments/js 3.0.11 → 4.0.9
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.
- package/README.md +1 -1
- package/package.json +2 -2
- package/types/apm/qr-code-payments/enums.d.ts +2 -1
- package/types/common/currency.d.ts +1 -0
- package/types/common/enums.d.ts +8 -1
- package/types/common/helpers.d.ts +4 -0
- package/types/common/html-element.d.ts +27 -0
- package/types/internal/built-in-validations/messages.d.ts +3 -0
- package/types/internal/gateways/gp-api/action-query-currency-conversion.d.ts +3 -0
- package/types/internal/gateways/gp-api/index.d.ts +2 -1
- package/types/internal/gateways/index.d.ts +6 -1
- package/types/internal/lib/card.d.ts +29 -0
- package/types/internal/lib/currency-conversion/components/enums.d.ts +5 -0
- package/types/internal/lib/currency-conversion/components/events.d.ts +8 -0
- package/types/internal/lib/currency-conversion/components/template.d.ts +7 -0
- package/types/internal/lib/currency-conversion/contracts/constants.d.ts +5 -0
- package/types/internal/lib/currency-conversion/contracts/enums.d.ts +15 -0
- package/types/internal/lib/currency-conversion/contracts/interfaces.d.ts +13 -0
- package/types/internal/lib/currency-conversion/requests/query-currency-conversion.d.ts +3 -0
- package/types/internal/lib/currency-conversion/utils/helpers.d.ts +8 -0
- package/types/internal/lib/currency-conversion/utils/reset-currency-conversion.d.ts +7 -0
- package/types/internal/lib/detectLanguage.d.ts +1 -0
- package/types/internal/lib/styles/built-in-validations/simple.d.ts +3 -0
- package/types/internal/lib/styles/currency-conversion/common.d.ts +191 -0
- package/types/internal/lib/styles/currency-conversion/default.d.ts +204 -0
- package/types/internal/lib/styles/currency-conversion/gp-default.d.ts +197 -0
- package/types/internal/lib/styles/currency-conversion/simple.d.ts +204 -0
- package/types/internal/lib/styles/default.d.ts +262 -0
- package/types/internal/lib/styles/gp-default.d.ts +255 -47
- package/types/internal/lib/styles/qr-code-payments/common.d.ts +8 -0
- package/types/internal/lib/styles/simple.d.ts +265 -0
- package/types/internal/lib/styles/tooltip/common.d.ts +65 -0
- package/types/internal/lib/translations/en.d.ts +15 -0
- package/types/internal/validators/expiration.d.ts +7 -0
- package/types/lib/version.d.ts +1 -1
- package/types/tools/configure.d.ts +8 -0
- package/types/ui/form/index.d.ts +857 -114
- package/types/ui/iframe-field/apple-pay/action-add.d.ts +2 -0
- package/types/ui/iframe-field/click-to-pay/action-add.d.ts +2 -0
- package/types/ui/iframe-field/currency-conversion/action-add.d.ts +9 -0
- package/types/ui/iframe-field/currency-conversion/action-get-value.d.ts +8 -0
- package/types/ui/iframe-field/currency-conversion/action-request-accumulate-data.d.ts +9 -0
- package/types/ui/iframe-field/currency-conversion/action-request-data.d.ts +9 -0
- package/types/ui/iframe-field/currency-conversion/action-request-start.d.ts +8 -0
- package/types/ui/iframe-field/google-pay/action-add.d.ts +2 -0
- package/types/ui/iframe-field/index.d.ts +1 -1
- package/types/ui/iframe-field/installments/action-add.d.ts +3 -0
- package/types/ui/iframe-field/installments/action-request-accumulate-data.d.ts +3 -0
- package/types/ui/iframe-field/installments/action-request-data.d.ts +3 -0
- package/types/ui/iframe-field/installments/action-request-start.d.ts +6 -0
- package/types/ui/iframe-field/open-banking/action-add.d.ts +2 -0
- package/types/ui/iframe-field/qr-code-payment-methods/action-add.d.ts +3 -0
- package/types/ui/iframe-field/qr-code-payment-methods/action-request-start.d.ts +6 -0
- package/types/internal/lib/eums.d.ts +0 -11
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export declare const fieldStyles: (assetBaseUrl: string) => {
|
|
2
|
+
"#secure-payment-field[hidden]"?: {
|
|
3
|
+
display: string;
|
|
4
|
+
opacity: string;
|
|
5
|
+
visibility: string;
|
|
6
|
+
};
|
|
2
7
|
"img.card-number-icon": {
|
|
3
8
|
background: string;
|
|
4
9
|
"background-size": string;
|
|
@@ -16,6 +21,9 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
|
|
|
16
21
|
"margin-top": string;
|
|
17
22
|
"background-position": string;
|
|
18
23
|
};
|
|
24
|
+
"#field-validation-wrapper"?: {
|
|
25
|
+
"margin-top": string;
|
|
26
|
+
};
|
|
19
27
|
"@font-face"?: {
|
|
20
28
|
"font-family": string;
|
|
21
29
|
src: string;
|
|
@@ -148,6 +156,201 @@ export declare const fieldStyles: (assetBaseUrl: string) => {
|
|
|
148
156
|
};
|
|
149
157
|
};
|
|
150
158
|
export declare const parentStyles: (assetBaseUrl: string) => {
|
|
159
|
+
".secure-payment-form .credit-card-currency-conversion legend"?: {
|
|
160
|
+
"font-family": string;
|
|
161
|
+
color: string;
|
|
162
|
+
"font-size": string;
|
|
163
|
+
"font-weight": string;
|
|
164
|
+
"line-height": string;
|
|
165
|
+
"text-transform": string;
|
|
166
|
+
"margin-bottom": string;
|
|
167
|
+
};
|
|
168
|
+
".secure-payment-form .credit-card-currency-conversion .currency-conversion-container"?: {
|
|
169
|
+
"margin-bottom": string;
|
|
170
|
+
"flex-wrap": string;
|
|
171
|
+
};
|
|
172
|
+
".secure-payment-form .credit-card-currency-conversion .tooltip-content"?: {
|
|
173
|
+
display: string;
|
|
174
|
+
bottom: string;
|
|
175
|
+
right: string;
|
|
176
|
+
};
|
|
177
|
+
".secure-payment-form .credit-card-currency-conversion .radio-button"?: {
|
|
178
|
+
display: string;
|
|
179
|
+
"justify-content": string;
|
|
180
|
+
"align-items": string;
|
|
181
|
+
border: string;
|
|
182
|
+
padding: string;
|
|
183
|
+
"white-space": string;
|
|
184
|
+
height: string;
|
|
185
|
+
"margin-right": string;
|
|
186
|
+
};
|
|
187
|
+
".secure-payment-form .credit-card-currency-conversion .radio-button label"?: {
|
|
188
|
+
"font-family": string;
|
|
189
|
+
"font-size": string;
|
|
190
|
+
"font-weight": number;
|
|
191
|
+
display: string;
|
|
192
|
+
margin: string;
|
|
193
|
+
};
|
|
194
|
+
".secure-payment-form .credit-card-currency-conversion .radio-button.checked label"?: {
|
|
195
|
+
color: string;
|
|
196
|
+
};
|
|
197
|
+
".secure-payment-form .credit-card-currency-conversion .merchant-currency-content"?: {
|
|
198
|
+
opacity: string;
|
|
199
|
+
visibility: boolean;
|
|
200
|
+
display: string;
|
|
201
|
+
"flex-direction": string;
|
|
202
|
+
margin: string;
|
|
203
|
+
"align-items": string;
|
|
204
|
+
height: string;
|
|
205
|
+
};
|
|
206
|
+
".secure-payment-form .credit-card-currency-conversion .card-currency-content"?: {
|
|
207
|
+
opacity: string;
|
|
208
|
+
visibility: boolean;
|
|
209
|
+
display: string;
|
|
210
|
+
"flex-direction": string;
|
|
211
|
+
margin: string;
|
|
212
|
+
"align-items": string;
|
|
213
|
+
height: string;
|
|
214
|
+
};
|
|
215
|
+
".secure-payment-form .credit-card-currency-conversion .additional-info p"?: {
|
|
216
|
+
"font-family": string;
|
|
217
|
+
margin: string;
|
|
218
|
+
"font-style": string;
|
|
219
|
+
};
|
|
220
|
+
".secure-payment-form .credit-card-currency-conversion .tooltip-content p"?: {
|
|
221
|
+
"font-family": string;
|
|
222
|
+
margin: string;
|
|
223
|
+
};
|
|
224
|
+
".secure-payment-form .currency-conversion-container"?: {
|
|
225
|
+
display: string;
|
|
226
|
+
"flex-direction": string;
|
|
227
|
+
"align-items": string;
|
|
228
|
+
};
|
|
229
|
+
".secure-payment-form .credit-card-currency-conversion iframe"?: {
|
|
230
|
+
"min-height": string;
|
|
231
|
+
};
|
|
232
|
+
".secure-payment-form .credit-card-currency-conversion fieldset"?: {
|
|
233
|
+
"font-family": string;
|
|
234
|
+
border: string;
|
|
235
|
+
margin: string;
|
|
236
|
+
padding: string;
|
|
237
|
+
display: string;
|
|
238
|
+
"flex-wrap": string;
|
|
239
|
+
};
|
|
240
|
+
".secure-payment-form .credit-card-currency-conversion .radio-button:last-child"?: {
|
|
241
|
+
"margin-right": string;
|
|
242
|
+
};
|
|
243
|
+
".secure-payment-form .credit-card-currency-conversion .radio-button:hover"?: {
|
|
244
|
+
"border-color": string;
|
|
245
|
+
};
|
|
246
|
+
".secure-payment-form .credit-card-currency-conversion fieldset:focus-within > .radio-button"?: {
|
|
247
|
+
outline: string;
|
|
248
|
+
"outline-offset": string;
|
|
249
|
+
};
|
|
250
|
+
".secure-payment-form .credit-card-currency-conversion fieldset.no-focus-outline .radio-button.checked"?: {
|
|
251
|
+
outline: string;
|
|
252
|
+
"outline-offset": string;
|
|
253
|
+
};
|
|
254
|
+
".secure-payment-form .credit-card-currency-conversion .radio-button.checked"?: {
|
|
255
|
+
background: string;
|
|
256
|
+
"border-color": string;
|
|
257
|
+
color: string;
|
|
258
|
+
outline: string;
|
|
259
|
+
};
|
|
260
|
+
".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']"?: {
|
|
261
|
+
margin: string;
|
|
262
|
+
appearance: string;
|
|
263
|
+
"-webkit-appearance": string;
|
|
264
|
+
"-moz-appearance": string;
|
|
265
|
+
border: string;
|
|
266
|
+
"border-radius": string;
|
|
267
|
+
width: string;
|
|
268
|
+
height: string;
|
|
269
|
+
display: string;
|
|
270
|
+
position: string;
|
|
271
|
+
padding: string;
|
|
272
|
+
};
|
|
273
|
+
".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:checked"?: {
|
|
274
|
+
"background-color": string;
|
|
275
|
+
border: string;
|
|
276
|
+
};
|
|
277
|
+
".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:focus"?: {
|
|
278
|
+
outline: string;
|
|
279
|
+
};
|
|
280
|
+
".secure-payment-form .credit-card-currency-conversion .card-currency-content.visible"?: {
|
|
281
|
+
display: string;
|
|
282
|
+
opacity: string;
|
|
283
|
+
visibility: boolean;
|
|
284
|
+
};
|
|
285
|
+
".secure-payment-form .credit-card-currency-conversion .merchant-currency-content.visible"?: {
|
|
286
|
+
display: string;
|
|
287
|
+
opacity: string;
|
|
288
|
+
visibility: boolean;
|
|
289
|
+
};
|
|
290
|
+
".secure-payment-form .credit-card-currency-conversion .additional-info"?: {
|
|
291
|
+
"font-family": string;
|
|
292
|
+
"font-size": string;
|
|
293
|
+
"font-weight": number;
|
|
294
|
+
margin: string;
|
|
295
|
+
display: string;
|
|
296
|
+
};
|
|
297
|
+
".secure-payment-form .credit-card-currency-conversion .tooltip"?: {
|
|
298
|
+
width: string;
|
|
299
|
+
height: string;
|
|
300
|
+
"min-width": string;
|
|
301
|
+
"border-left": string;
|
|
302
|
+
display: string;
|
|
303
|
+
};
|
|
304
|
+
".secure-payment-form .credit-card-currency-conversion .tooltip:hover"?: {
|
|
305
|
+
"border-left": string;
|
|
306
|
+
};
|
|
307
|
+
".secure-payment-form .credit-card-currency-conversion .tooltip:focus"?: {
|
|
308
|
+
"border-left": string;
|
|
309
|
+
};
|
|
310
|
+
".secure-payment-form .credit-card-currency-conversion .tooltip:hover .tooltip-content"?: {
|
|
311
|
+
display: string;
|
|
312
|
+
};
|
|
313
|
+
".secure-payment-form .credit-card-currency-conversion .tooltip-content p:last-child"?: {
|
|
314
|
+
"margin-bottom": string;
|
|
315
|
+
};
|
|
316
|
+
".secure-payment-form .credit-card-currency-conversion .tooltip-content::before"?: {
|
|
317
|
+
left: string;
|
|
318
|
+
top: string;
|
|
319
|
+
right: string;
|
|
320
|
+
transform: string;
|
|
321
|
+
"border-width": string;
|
|
322
|
+
"border-style": string;
|
|
323
|
+
"border-color": string;
|
|
324
|
+
};
|
|
325
|
+
"@media only screen and (max-width: 768px)"?: {
|
|
326
|
+
".secure-payment-form .currency-conversion-container": {
|
|
327
|
+
"flex-direction": string;
|
|
328
|
+
"align-items": string;
|
|
329
|
+
};
|
|
330
|
+
".secure-payment-form .credit-card-currency-conversion fieldset": {
|
|
331
|
+
"justify-content": string;
|
|
332
|
+
};
|
|
333
|
+
".secure-payment-form .credit-card-currency-conversion .radio-button": {
|
|
334
|
+
width: string;
|
|
335
|
+
"justify-content": string;
|
|
336
|
+
};
|
|
337
|
+
".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
|
|
338
|
+
margin: string;
|
|
339
|
+
};
|
|
340
|
+
".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
|
|
341
|
+
width: string;
|
|
342
|
+
"margin-top": string;
|
|
343
|
+
"margin-left": string;
|
|
344
|
+
};
|
|
345
|
+
".secure-payment-form .credit-card-currency-conversion .merchant-currency-content": {
|
|
346
|
+
width: string;
|
|
347
|
+
"margin-top": string;
|
|
348
|
+
"margin-left": string;
|
|
349
|
+
};
|
|
350
|
+
".secure-payment-form .credit-card-currency-conversion .tooltip-content::before": {
|
|
351
|
+
right: string;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
151
354
|
".secure-payment-form .credit-card-qr-code-payments"?: {
|
|
152
355
|
"font-family": string;
|
|
153
356
|
};
|
|
@@ -563,6 +766,68 @@ export declare const parentStyles: (assetBaseUrl: string) => {
|
|
|
563
766
|
display: string;
|
|
564
767
|
margin: string;
|
|
565
768
|
};
|
|
769
|
+
".secure-payment-form .tooltip": {
|
|
770
|
+
position: string;
|
|
771
|
+
width: string;
|
|
772
|
+
height: string;
|
|
773
|
+
border: string;
|
|
774
|
+
"border-left": string;
|
|
775
|
+
color: string;
|
|
776
|
+
float: string;
|
|
777
|
+
"background-size": string;
|
|
778
|
+
background: string;
|
|
779
|
+
"font-family": string;
|
|
780
|
+
};
|
|
781
|
+
".secure-payment-form .tooltip:focus": {
|
|
782
|
+
border: string;
|
|
783
|
+
outline: string;
|
|
784
|
+
"border-left": string;
|
|
785
|
+
};
|
|
786
|
+
".secure-payment-form .tooltip:hover": {
|
|
787
|
+
border: string;
|
|
788
|
+
outline: string;
|
|
789
|
+
"border-left": string;
|
|
790
|
+
};
|
|
791
|
+
".secure-payment-form .tooltip-content": {
|
|
792
|
+
visibility: string;
|
|
793
|
+
width: string;
|
|
794
|
+
"background-color": string;
|
|
795
|
+
color: string;
|
|
796
|
+
"text-align": string;
|
|
797
|
+
"border-radius": string;
|
|
798
|
+
border: string;
|
|
799
|
+
padding: string;
|
|
800
|
+
position: string;
|
|
801
|
+
"z-index": string;
|
|
802
|
+
right: string;
|
|
803
|
+
opacity: string;
|
|
804
|
+
transition: string;
|
|
805
|
+
"font-size": string;
|
|
806
|
+
"font-weight": string;
|
|
807
|
+
"box-shadow": string;
|
|
808
|
+
"margin-top": string;
|
|
809
|
+
"margin-right": string;
|
|
810
|
+
};
|
|
811
|
+
".secure-payment-form .tooltip-content h4": {
|
|
812
|
+
margin: string;
|
|
813
|
+
};
|
|
814
|
+
".secure-payment-form .tooltip:hover > .tooltip-content": {
|
|
815
|
+
visibility: string;
|
|
816
|
+
opacity: string;
|
|
817
|
+
};
|
|
818
|
+
".secure-payment-form .tooltip:focus > .tooltip-content": {
|
|
819
|
+
visibility: string;
|
|
820
|
+
opacity: string;
|
|
821
|
+
};
|
|
822
|
+
".secure-payment-form .tooltip-content::before": {
|
|
823
|
+
position: string;
|
|
824
|
+
content: string;
|
|
825
|
+
right: string;
|
|
826
|
+
top: string;
|
|
827
|
+
"border-left": string;
|
|
828
|
+
"border-right": string;
|
|
829
|
+
"border-bottom": string;
|
|
830
|
+
};
|
|
566
831
|
".secure-payment-form": {
|
|
567
832
|
"font-family": string;
|
|
568
833
|
width: string;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare const styles: (assetBaseUrl: string) => {
|
|
2
|
+
".secure-payment-form .tooltip": {
|
|
3
|
+
position: string;
|
|
4
|
+
width: string;
|
|
5
|
+
height: string;
|
|
6
|
+
border: string;
|
|
7
|
+
"border-left": string;
|
|
8
|
+
color: string;
|
|
9
|
+
float: string;
|
|
10
|
+
"background-size": string;
|
|
11
|
+
background: string;
|
|
12
|
+
"font-family": string;
|
|
13
|
+
};
|
|
14
|
+
".secure-payment-form .tooltip:focus": {
|
|
15
|
+
border: string;
|
|
16
|
+
outline: string;
|
|
17
|
+
"border-left": string;
|
|
18
|
+
};
|
|
19
|
+
".secure-payment-form .tooltip:hover": {
|
|
20
|
+
border: string;
|
|
21
|
+
outline: string;
|
|
22
|
+
"border-left": string;
|
|
23
|
+
};
|
|
24
|
+
".secure-payment-form .tooltip-content": {
|
|
25
|
+
visibility: string;
|
|
26
|
+
width: string;
|
|
27
|
+
"background-color": string;
|
|
28
|
+
color: string;
|
|
29
|
+
"text-align": string;
|
|
30
|
+
"border-radius": string;
|
|
31
|
+
border: string;
|
|
32
|
+
padding: string;
|
|
33
|
+
position: string;
|
|
34
|
+
"z-index": string;
|
|
35
|
+
right: string;
|
|
36
|
+
opacity: string;
|
|
37
|
+
transition: string;
|
|
38
|
+
"font-size": string;
|
|
39
|
+
"font-weight": string;
|
|
40
|
+
"box-shadow": string;
|
|
41
|
+
"margin-top": string;
|
|
42
|
+
"margin-right": string;
|
|
43
|
+
};
|
|
44
|
+
".secure-payment-form .tooltip-content h4": {
|
|
45
|
+
margin: string;
|
|
46
|
+
};
|
|
47
|
+
".secure-payment-form .tooltip:hover > .tooltip-content": {
|
|
48
|
+
visibility: string;
|
|
49
|
+
opacity: string;
|
|
50
|
+
};
|
|
51
|
+
".secure-payment-form .tooltip:focus > .tooltip-content": {
|
|
52
|
+
visibility: string;
|
|
53
|
+
opacity: string;
|
|
54
|
+
};
|
|
55
|
+
".secure-payment-form .tooltip-content::before": {
|
|
56
|
+
position: string;
|
|
57
|
+
content: string;
|
|
58
|
+
right: string;
|
|
59
|
+
top: string;
|
|
60
|
+
"border-left": string;
|
|
61
|
+
"border-right": string;
|
|
62
|
+
"border-bottom": string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export default styles;
|
|
@@ -33,6 +33,9 @@ declare const en: {
|
|
|
33
33
|
NotValidCardHolderName: string;
|
|
34
34
|
CharactersMoreThan100: string;
|
|
35
35
|
};
|
|
36
|
+
CurrencyConversion: {
|
|
37
|
+
Required: string;
|
|
38
|
+
};
|
|
36
39
|
};
|
|
37
40
|
footer: {
|
|
38
41
|
"ssl-msg-alt": string;
|
|
@@ -81,5 +84,17 @@ declare const en: {
|
|
|
81
84
|
"aria-label": string;
|
|
82
85
|
};
|
|
83
86
|
};
|
|
87
|
+
dcc: {
|
|
88
|
+
label: string;
|
|
89
|
+
additionalInfo: (currency: string, exchangeRate: string, payerCurrency: string, marginRatePercentage: string) => string;
|
|
90
|
+
cardCurrency: {
|
|
91
|
+
tooltip: (payerCurrency: string, exchangeRateSource: string, exchangeRateTimeCreated: string) => string;
|
|
92
|
+
"aria-label": string;
|
|
93
|
+
};
|
|
94
|
+
merchantCurrency: {
|
|
95
|
+
tooltip: (exchangeRateSource: string, exchangeRateTimeCreated: string) => string;
|
|
96
|
+
"aria-label": string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
84
99
|
};
|
|
85
100
|
export default en;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import IValidator from "./validator";
|
|
2
2
|
export default class Expiration implements IValidator {
|
|
3
3
|
validate(exp: string): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* Validates the expiration date in the format "MM/YYYY".
|
|
6
|
+
* Returns true if the expiration date is valid, otherwise false.
|
|
7
|
+
* @param exp The expiration date string to validate.
|
|
8
|
+
* @returns A boolean indicating whether the expiration date is valid or not.
|
|
9
|
+
*/
|
|
10
|
+
validateDate(exp: string): boolean;
|
|
4
11
|
}
|
package/types/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "
|
|
1
|
+
declare const _default: "4.0.9";
|
|
2
2
|
export default _default;
|
|
@@ -84,6 +84,14 @@ export interface IConfiguration extends IDictionary {
|
|
|
84
84
|
mcc: string;
|
|
85
85
|
currency: string;
|
|
86
86
|
};
|
|
87
|
+
currencyConversion?: {
|
|
88
|
+
accountName: string;
|
|
89
|
+
enabled: boolean;
|
|
90
|
+
channel: string;
|
|
91
|
+
country: string;
|
|
92
|
+
currency: string;
|
|
93
|
+
transactionType?: string;
|
|
94
|
+
};
|
|
87
95
|
fieldValidation?: {
|
|
88
96
|
enabled?: boolean;
|
|
89
97
|
characterValidation?: string;
|