@globalpayments/js 4.0.11 → 4.0.13

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 (81) hide show
  1. package/README.md +1 -1
  2. package/package.json +7 -2
  3. package/types/apm/qr-code-payments/enums.d.ts +2 -1
  4. package/types/common/currency.d.ts +1 -0
  5. package/types/common/enums.d.ts +8 -1
  6. package/types/common/helpers.d.ts +4 -0
  7. package/types/common/html-element.d.ts +27 -0
  8. package/types/internal/built-in-validations/messages.d.ts +3 -0
  9. package/types/internal/gateways/gp-api/action-query-currency-conversion.d.ts +3 -0
  10. package/types/internal/gateways/gp-api/index.d.ts +2 -1
  11. package/types/internal/gateways/index.d.ts +6 -1
  12. package/types/internal/lib/card.d.ts +29 -0
  13. package/types/internal/lib/currency-conversion/components/enums.d.ts +5 -0
  14. package/types/internal/lib/currency-conversion/components/events.d.ts +8 -0
  15. package/types/internal/lib/currency-conversion/components/template.d.ts +7 -0
  16. package/types/internal/lib/currency-conversion/contracts/constants.d.ts +5 -0
  17. package/types/internal/lib/currency-conversion/contracts/enums.d.ts +15 -0
  18. package/types/internal/lib/currency-conversion/contracts/interfaces.d.ts +13 -0
  19. package/types/internal/lib/currency-conversion/requests/query-currency-conversion.d.ts +3 -0
  20. package/types/internal/lib/currency-conversion/utils/helpers.d.ts +8 -0
  21. package/types/internal/lib/currency-conversion/utils/reset-currency-conversion.d.ts +7 -0
  22. package/types/internal/lib/detectLanguage.d.ts +2 -0
  23. package/types/internal/lib/enums.d.ts +8 -0
  24. package/types/internal/lib/set-headers.d.ts +7 -0
  25. package/types/internal/lib/styles/built-in-validations/simple.d.ts +3 -0
  26. package/types/internal/lib/styles/currency-conversion/common.d.ts +191 -0
  27. package/types/internal/lib/styles/currency-conversion/default.d.ts +204 -0
  28. package/types/internal/lib/styles/currency-conversion/gp-default.d.ts +197 -0
  29. package/types/internal/lib/styles/currency-conversion/simple.d.ts +204 -0
  30. package/types/internal/lib/styles/default.d.ts +286 -1
  31. package/types/internal/lib/styles/gp-default.d.ts +279 -48
  32. package/types/internal/lib/styles/payment-methods/common.d.ts +23 -0
  33. package/types/internal/lib/styles/payment-methods/paypal.d.ts +26 -0
  34. package/types/internal/lib/styles/qr-code-payments/common.d.ts +8 -0
  35. package/types/internal/lib/styles/simple.d.ts +265 -1
  36. package/types/internal/lib/styles/tooltip/common.d.ts +65 -0
  37. package/types/internal/lib/translations/cs.d.ts +58 -0
  38. package/types/internal/lib/translations/de.d.ts +58 -0
  39. package/types/internal/lib/translations/el.d.ts +58 -0
  40. package/types/internal/lib/translations/en.d.ts +15 -0
  41. package/types/internal/lib/translations/es.d.ts +58 -0
  42. package/types/internal/lib/translations/fr.d.ts +4 -31
  43. package/types/internal/lib/translations/hr.d.ts +58 -0
  44. package/types/internal/lib/translations/hu.d.ts +58 -0
  45. package/types/internal/lib/translations/it.d.ts +58 -0
  46. package/types/internal/lib/translations/ja.d.ts +58 -0
  47. package/types/internal/lib/translations/mt.d.ts +58 -0
  48. package/types/internal/lib/translations/nl.d.ts +58 -0
  49. package/types/internal/lib/translations/pl.d.ts +58 -0
  50. package/types/internal/lib/translations/pt.d.ts +58 -0
  51. package/types/internal/lib/translations/ro.d.ts +58 -0
  52. package/types/internal/lib/translations/ru.d.ts +58 -0
  53. package/types/internal/lib/translations/sk.d.ts +58 -0
  54. package/types/internal/lib/translations/sl.d.ts +58 -0
  55. package/types/internal/lib/translations/sv.d.ts +58 -0
  56. package/types/internal/lib/translations/tr.d.ts +58 -0
  57. package/types/internal/lib/translations/uk.d.ts +58 -0
  58. package/types/internal/lib/translations/vi.d.ts +58 -0
  59. package/types/internal/lib/translations/zh.d.ts +8 -0
  60. package/types/internal/validators/expiration.d.ts +7 -0
  61. package/types/lib/version.d.ts +1 -1
  62. package/types/tools/configure.d.ts +8 -0
  63. package/types/ui/form/index.d.ts +861 -94
  64. package/types/ui/iframe-field/apple-pay/action-add.d.ts +2 -0
  65. package/types/ui/iframe-field/click-to-pay/action-add.d.ts +2 -0
  66. package/types/ui/iframe-field/currency-conversion/action-add.d.ts +9 -0
  67. package/types/ui/iframe-field/currency-conversion/action-get-value.d.ts +8 -0
  68. package/types/ui/iframe-field/currency-conversion/action-request-accumulate-data.d.ts +9 -0
  69. package/types/ui/iframe-field/currency-conversion/action-request-data.d.ts +9 -0
  70. package/types/ui/iframe-field/currency-conversion/action-request-start.d.ts +8 -0
  71. package/types/ui/iframe-field/google-pay/action-add.d.ts +2 -0
  72. package/types/ui/iframe-field/index.d.ts +1 -1
  73. package/types/ui/iframe-field/installments/action-add.d.ts +3 -0
  74. package/types/ui/iframe-field/installments/action-request-accumulate-data.d.ts +3 -0
  75. package/types/ui/iframe-field/installments/action-request-data.d.ts +3 -0
  76. package/types/ui/iframe-field/installments/action-request-start.d.ts +6 -0
  77. package/types/ui/iframe-field/open-banking/action-add.d.ts +2 -0
  78. package/types/ui/iframe-field/payment-methods/action-add.d.ts +3 -0
  79. package/types/ui/iframe-field/qr-code-payment-methods/action-add.d.ts +3 -0
  80. package/types/ui/iframe-field/qr-code-payment-methods/action-request-start.d.ts +6 -0
  81. package/types/internal/lib/eums.d.ts +0 -11
@@ -36,6 +36,11 @@ export declare const fieldStyles: () => {
36
36
  "#secure-payment-field[type=text].hf-invalid"?: {
37
37
  border: string;
38
38
  };
39
+ "#secure-payment-field[hidden]"?: {
40
+ display: string;
41
+ opacity: string;
42
+ visibility: string;
43
+ };
39
44
  "#secure-payment-field": {
40
45
  "-o-transition": string;
41
46
  "-webkit-box-shadow": string;
@@ -200,6 +205,11 @@ export declare const fieldStyles: () => {
200
205
  "#secure-payment-field[type=text].hf-invalid"?: {
201
206
  border: string;
202
207
  };
208
+ "#secure-payment-field[hidden]"?: {
209
+ display: string;
210
+ opacity: string;
211
+ visibility: string;
212
+ };
203
213
  "*": {
204
214
  "box-sizing": string;
205
215
  };
@@ -299,6 +309,11 @@ export declare const fieldStyles: () => {
299
309
  };
300
310
  };
301
311
  simple: {
312
+ "#secure-payment-field[hidden]"?: {
313
+ display: string;
314
+ opacity: string;
315
+ visibility: string;
316
+ };
302
317
  "img.card-number-icon": {
303
318
  background: string;
304
319
  "background-size": string;
@@ -316,6 +331,9 @@ export declare const fieldStyles: () => {
316
331
  "margin-top": string;
317
332
  "background-position": string;
318
333
  };
334
+ "#field-validation-wrapper"?: {
335
+ "margin-top": string;
336
+ };
319
337
  "@font-face"?: {
320
338
  "font-family": string;
321
339
  src: string;
@@ -406,6 +424,9 @@ export declare const fieldStyles: () => {
406
424
  "img.card-number-icon.invalid.card-type-mastercard": {
407
425
  background: string;
408
426
  "background-size": string;
427
+ /**
428
+ * Represents logic surrounding a group of hosted fields.
429
+ */
409
430
  "background-position": string;
410
431
  };
411
432
  "img.card-number-icon.invalid.card-type-visa": {
@@ -564,6 +585,29 @@ export declare const parentStyles: () => {
564
585
  "font-size": string;
565
586
  "line-height": string;
566
587
  };
588
+ ".secure-payment-form .paypal-button-wrapper": {
589
+ display: string;
590
+ "flex-direction": string;
591
+ "align-items": string;
592
+ };
593
+ ".secure-payment-form .paypal-button": {
594
+ position: string;
595
+ background: string;
596
+ height: string;
597
+ border: string;
598
+ width: string;
599
+ "border-radius": string;
600
+ margin: string;
601
+ cursor: string;
602
+ };
603
+ ".secure-payment-form .paypal-button:hover": {
604
+ "background-color": string;
605
+ };
606
+ ".secure-payment-form .paypal-button:focus": {
607
+ "background-color": string;
608
+ outline: string;
609
+ "outline-offset": string;
610
+ };
567
611
  ".secure-payment-form .open-banking-button-wrapper": {
568
612
  display: string;
569
613
  "flex-direction": string;
@@ -639,6 +683,201 @@ export declare const parentStyles: () => {
639
683
  "font-size": string;
640
684
  "line-height": string;
641
685
  };
686
+ ".secure-payment-form .credit-card-currency-conversion .currency-conversion-container"?: {
687
+ width: string;
688
+ "flex-wrap": string;
689
+ };
690
+ ".secure-payment-form .credit-card-currency-conversion legend"?: {
691
+ "font-family": string;
692
+ color: string;
693
+ "font-size": string;
694
+ "font-weight": string;
695
+ "line-height": string;
696
+ "text-transform": string;
697
+ };
698
+ ".secure-payment-form .credit-card-currency-conversion fieldset"?: {
699
+ "font-family": string;
700
+ border: string;
701
+ margin: string;
702
+ padding: string;
703
+ display: string;
704
+ "flex-wrap": string;
705
+ width: string;
706
+ };
707
+ ".secure-payment-form .credit-card-currency-conversion .radio-button"?: {
708
+ display: string;
709
+ "justify-content": string;
710
+ "align-items": string;
711
+ border: string;
712
+ padding: string;
713
+ "white-space": string;
714
+ height: string;
715
+ "margin-right": string;
716
+ };
717
+ ".secure-payment-form .credit-card-currency-conversion .radio-button:last-child"?: {
718
+ "margin-right": string;
719
+ };
720
+ ".secure-payment-form .credit-card-currency-conversion .radio-button label"?: {
721
+ "font-family": string;
722
+ "font-size": string;
723
+ "font-weight": number;
724
+ display: string;
725
+ margin: string;
726
+ };
727
+ ".secure-payment-form .credit-card-currency-conversion .radio-button.checked label"?: {
728
+ color: string;
729
+ };
730
+ ".secure-payment-form .credit-card-currency-conversion .merchant-currency-content"?: {
731
+ opacity: string;
732
+ visibility: boolean;
733
+ display: string;
734
+ "flex-direction": string;
735
+ margin: string;
736
+ "align-items": string;
737
+ height: string;
738
+ };
739
+ ".secure-payment-form .credit-card-currency-conversion .card-currency-content"?: {
740
+ opacity: string;
741
+ visibility: boolean;
742
+ display: string;
743
+ "flex-direction": string;
744
+ margin: string;
745
+ "align-items": string;
746
+ height: string;
747
+ };
748
+ ".secure-payment-form .credit-card-currency-conversion .additional-info p"?: {
749
+ "font-family": string;
750
+ margin: string;
751
+ "font-style": string;
752
+ };
753
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content p"?: {
754
+ "font-family": string;
755
+ margin: string;
756
+ };
757
+ ".secure-payment-form .currency-conversion-container"?: {
758
+ display: string;
759
+ "flex-direction": string;
760
+ "align-items": string;
761
+ };
762
+ ".secure-payment-form .credit-card-currency-conversion iframe"?: {
763
+ "min-height": string;
764
+ };
765
+ ".secure-payment-form .credit-card-currency-conversion .radio-button:hover"?: {
766
+ "border-color": string;
767
+ };
768
+ ".secure-payment-form .credit-card-currency-conversion fieldset:focus-within > .radio-button"?: {
769
+ outline: string;
770
+ "outline-offset": string;
771
+ };
772
+ ".secure-payment-form .credit-card-currency-conversion fieldset.no-focus-outline .radio-button.checked"?: {
773
+ outline: string;
774
+ "outline-offset": string;
775
+ };
776
+ ".secure-payment-form .credit-card-currency-conversion .radio-button.checked"?: {
777
+ background: string;
778
+ "border-color": string;
779
+ color: string;
780
+ outline: string;
781
+ };
782
+ ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']"?: {
783
+ margin: string;
784
+ appearance: string;
785
+ "-webkit-appearance": string;
786
+ "-moz-appearance": string;
787
+ border: string;
788
+ "border-radius": string;
789
+ width: string;
790
+ height: string;
791
+ display: string;
792
+ position: string;
793
+ padding: string;
794
+ };
795
+ ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:checked"?: {
796
+ "background-color": string;
797
+ border: string;
798
+ };
799
+ ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:focus"?: {
800
+ outline: string;
801
+ };
802
+ ".secure-payment-form .credit-card-currency-conversion .card-currency-content.visible"?: {
803
+ display: string;
804
+ opacity: string;
805
+ visibility: boolean;
806
+ };
807
+ ".secure-payment-form .credit-card-currency-conversion .merchant-currency-content.visible"?: {
808
+ display: string;
809
+ opacity: string;
810
+ visibility: boolean;
811
+ };
812
+ ".secure-payment-form .credit-card-currency-conversion .additional-info"?: {
813
+ "font-family": string;
814
+ "font-size": string;
815
+ "font-weight": number;
816
+ margin: string;
817
+ display: string;
818
+ };
819
+ ".secure-payment-form .credit-card-currency-conversion .tooltip"?: {
820
+ width: string;
821
+ height: string;
822
+ "min-width": string;
823
+ "border-left": string;
824
+ display: string;
825
+ };
826
+ ".secure-payment-form .credit-card-currency-conversion .tooltip:hover"?: {
827
+ "border-left": string;
828
+ };
829
+ ".secure-payment-form .credit-card-currency-conversion .tooltip:focus"?: {
830
+ "border-left": string;
831
+ };
832
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content"?: {
833
+ bottom: string;
834
+ right: string;
835
+ display: string;
836
+ };
837
+ ".secure-payment-form .credit-card-currency-conversion .tooltip:hover .tooltip-content"?: {
838
+ display: string;
839
+ };
840
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content p:last-child"?: {
841
+ "margin-bottom": string;
842
+ };
843
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content::before"?: {
844
+ left: string;
845
+ top: string;
846
+ right: string;
847
+ transform: string;
848
+ "border-width": string;
849
+ "border-style": string;
850
+ "border-color": string;
851
+ };
852
+ "@media only screen and (max-width: 768px)"?: {
853
+ ".secure-payment-form .currency-conversion-container": {
854
+ "flex-direction": string;
855
+ "align-items": string;
856
+ };
857
+ ".secure-payment-form .credit-card-currency-conversion fieldset": {
858
+ "justify-content": string;
859
+ };
860
+ ".secure-payment-form .credit-card-currency-conversion .radio-button": {
861
+ width: string;
862
+ "justify-content": string;
863
+ };
864
+ ".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
865
+ margin: string;
866
+ };
867
+ ".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
868
+ width: string;
869
+ "margin-top": string;
870
+ "margin-left": string;
871
+ };
872
+ ".secure-payment-form .credit-card-currency-conversion .merchant-currency-content": {
873
+ width: string;
874
+ "margin-top": string;
875
+ "margin-left": string;
876
+ };
877
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content::before": {
878
+ right: string;
879
+ };
880
+ };
642
881
  "#googlePay": {
643
882
  height: string;
644
883
  margin: string;
@@ -806,11 +1045,7 @@ export declare const parentStyles: () => {
806
1045
  ".secure-payment-form .ctp-panel .ctp-button .ctp-icon": {
807
1046
  width: string;
808
1047
  height: string;
809
- "background-size": string; /**
810
- * Appends additional CSS rules to the group of hosted fields
811
- *
812
- * @param json New CSS rules
813
- */
1048
+ "background-size": string;
814
1049
  };
815
1050
  };
816
1051
  ".secure-payment-form .apm-active .ctp-panel .ctp-button": {
@@ -831,12 +1066,6 @@ export declare const parentStyles: () => {
831
1066
  transform: string;
832
1067
  "-webkit-transform": string;
833
1068
  };
834
- /**
835
- * Sets a special-case event listener that fires when all hosted
836
- * fields in a form have registered / loaded
837
- *
838
- * @param fn The listener function
839
- */
840
1069
  ".secure-payment-form .ctp-panel .right-arrow": {
841
1070
  position: string;
842
1071
  background: string;
@@ -951,6 +1180,68 @@ export declare const parentStyles: () => {
951
1180
  display: string;
952
1181
  margin: string;
953
1182
  };
1183
+ ".secure-payment-form .tooltip": {
1184
+ position: string;
1185
+ width: string;
1186
+ height: string;
1187
+ border: string;
1188
+ "border-left": string;
1189
+ color: string;
1190
+ float: string;
1191
+ "background-size": string;
1192
+ background: string;
1193
+ "font-family": string;
1194
+ };
1195
+ ".secure-payment-form .tooltip:focus": {
1196
+ border: string;
1197
+ outline: string;
1198
+ "border-left": string;
1199
+ };
1200
+ ".secure-payment-form .tooltip:hover": {
1201
+ border: string;
1202
+ outline: string;
1203
+ "border-left": string;
1204
+ };
1205
+ ".secure-payment-form .tooltip-content": {
1206
+ visibility: string;
1207
+ width: string;
1208
+ "background-color": string;
1209
+ color: string;
1210
+ "text-align": string;
1211
+ "border-radius": string;
1212
+ border: string;
1213
+ padding: string;
1214
+ position: string;
1215
+ "z-index": string;
1216
+ right: string;
1217
+ opacity: string;
1218
+ transition: string;
1219
+ "font-size": string;
1220
+ "font-weight": string;
1221
+ "box-shadow": string;
1222
+ "margin-top": string;
1223
+ "margin-right": string;
1224
+ };
1225
+ ".secure-payment-form .tooltip-content h4": {
1226
+ margin: string;
1227
+ };
1228
+ ".secure-payment-form .tooltip:hover > .tooltip-content": {
1229
+ visibility: string;
1230
+ opacity: string;
1231
+ };
1232
+ ".secure-payment-form .tooltip:focus > .tooltip-content": {
1233
+ visibility: string;
1234
+ opacity: string;
1235
+ };
1236
+ ".secure-payment-form .tooltip-content::before": {
1237
+ position: string;
1238
+ content: string;
1239
+ right: string;
1240
+ top: string;
1241
+ "border-left": string;
1242
+ "border-right": string;
1243
+ "border-bottom": string;
1244
+ };
954
1245
  ".secure-payment-form": {
955
1246
  "font-family": string;
956
1247
  };
@@ -975,13 +1266,13 @@ export declare const parentStyles: () => {
975
1266
  ".secure-payment-form div[class$='-shield'] .ssl-text-logo": {
976
1267
  border: string;
977
1268
  "border-radius": string;
978
- width: string;
979
1269
  height: string;
980
1270
  "text-align": string;
981
1271
  margin: string;
982
1272
  display: string;
983
1273
  "justify-content": string;
984
1274
  "align-items": string;
1275
+ width: string;
985
1276
  };
986
1277
  ".secure-payment-form div[class$='-shield'] .ssl-logo_ico": {
987
1278
  width: string;
@@ -1187,6 +1478,29 @@ export declare const parentStyles: () => {
1187
1478
  "font-size": string;
1188
1479
  "line-height": string;
1189
1480
  };
1481
+ ".secure-payment-form .paypal-button-wrapper": {
1482
+ display: string;
1483
+ "flex-direction": string;
1484
+ "align-items": string;
1485
+ };
1486
+ ".secure-payment-form .paypal-button": {
1487
+ position: string;
1488
+ background: string;
1489
+ height: string;
1490
+ border: string;
1491
+ width: string;
1492
+ "border-radius": string;
1493
+ margin: string;
1494
+ cursor: string;
1495
+ };
1496
+ ".secure-payment-form .paypal-button:hover": {
1497
+ "background-color": string;
1498
+ };
1499
+ ".secure-payment-form .paypal-button:focus": {
1500
+ "background-color": string;
1501
+ outline: string;
1502
+ "outline-offset": string;
1503
+ };
1190
1504
  ".secure-payment-form .open-banking-button-wrapper": {
1191
1505
  display: string;
1192
1506
  "flex-direction": string;
@@ -1262,11 +1576,199 @@ export declare const parentStyles: () => {
1262
1576
  "font-size": string;
1263
1577
  "line-height": string;
1264
1578
  };
1265
- ".secure-payment-form .hf-cvv-tooltip-invalid"?: {
1266
- border: string;
1267
- "border-left": string;
1268
- };
1269
- ".secure-payment-form .hf-cvv-tooltip-invalid:hover"?: {
1579
+ ".secure-payment-form .currency-conversion-container"?: {
1580
+ display: string;
1581
+ "flex-direction": string;
1582
+ "align-items": string;
1583
+ };
1584
+ ".secure-payment-form .credit-card-currency-conversion iframe"?: {
1585
+ "min-height": string;
1586
+ };
1587
+ ".secure-payment-form .credit-card-currency-conversion fieldset"?: {
1588
+ "font-family": string;
1589
+ border: string;
1590
+ margin: string;
1591
+ padding: string;
1592
+ display: string;
1593
+ "flex-wrap": string;
1594
+ };
1595
+ ".secure-payment-form .credit-card-currency-conversion legend"?: {
1596
+ "font-family": string;
1597
+ border: number;
1598
+ top: string;
1599
+ margin: string;
1600
+ padding: number;
1601
+ display: string;
1602
+ "font-size": string;
1603
+ "font-weight": number;
1604
+ position: string;
1605
+ };
1606
+ ".secure-payment-form .credit-card-currency-conversion .radio-button"?: {
1607
+ display: string;
1608
+ "justify-content": string;
1609
+ "align-items": string;
1610
+ border: string;
1611
+ padding: string;
1612
+ "white-space": string;
1613
+ height: string;
1614
+ "margin-right": string;
1615
+ };
1616
+ ".secure-payment-form .credit-card-currency-conversion .radio-button:last-child"?: {
1617
+ "margin-right": string;
1618
+ };
1619
+ ".secure-payment-form .credit-card-currency-conversion .radio-button:hover"?: {
1620
+ "border-color": string;
1621
+ };
1622
+ ".secure-payment-form .credit-card-currency-conversion fieldset:focus-within > .radio-button"?: {
1623
+ outline: string;
1624
+ "outline-offset": string;
1625
+ };
1626
+ ".secure-payment-form .credit-card-currency-conversion fieldset.no-focus-outline .radio-button.checked"?: {
1627
+ outline: string;
1628
+ "outline-offset": string;
1629
+ };
1630
+ ".secure-payment-form .credit-card-currency-conversion .radio-button.checked"?: {
1631
+ background: string;
1632
+ "border-color": string;
1633
+ color: string;
1634
+ outline: string;
1635
+ };
1636
+ ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']"?: {
1637
+ margin: string;
1638
+ appearance: string;
1639
+ "-webkit-appearance": string;
1640
+ "-moz-appearance": string;
1641
+ border: string;
1642
+ "border-radius": string;
1643
+ width: string;
1644
+ height: string;
1645
+ display: string;
1646
+ position: string;
1647
+ padding: string;
1648
+ };
1649
+ ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:checked"?: {
1650
+ "background-color": string;
1651
+ border: string;
1652
+ };
1653
+ ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:focus"?: {
1654
+ outline: string;
1655
+ };
1656
+ ".secure-payment-form .credit-card-currency-conversion .radio-button label"?: {
1657
+ "font-family": string;
1658
+ "font-size": string;
1659
+ "font-weight": number;
1660
+ display: string;
1661
+ margin: string;
1662
+ };
1663
+ ".secure-payment-form .credit-card-currency-conversion .card-currency-content"?: {
1664
+ opacity: string;
1665
+ visibility: boolean;
1666
+ display: string;
1667
+ "flex-direction": string;
1668
+ "margin-left": string;
1669
+ "align-items": string;
1670
+ height: string;
1671
+ };
1672
+ ".secure-payment-form .credit-card-currency-conversion .card-currency-content.visible"?: {
1673
+ display: string;
1674
+ opacity: string;
1675
+ visibility: boolean;
1676
+ };
1677
+ ".secure-payment-form .credit-card-currency-conversion .merchant-currency-content"?: {
1678
+ opacity: string;
1679
+ visibility: boolean;
1680
+ display: string;
1681
+ "flex-direction": string;
1682
+ "margin-left": string;
1683
+ "align-items": string;
1684
+ height: string;
1685
+ };
1686
+ ".secure-payment-form .credit-card-currency-conversion .merchant-currency-content.visible"?: {
1687
+ display: string;
1688
+ opacity: string;
1689
+ visibility: boolean;
1690
+ };
1691
+ ".secure-payment-form .credit-card-currency-conversion .additional-info"?: {
1692
+ "font-family": string;
1693
+ "font-size": string;
1694
+ "font-weight": number;
1695
+ margin: string;
1696
+ display: string;
1697
+ };
1698
+ ".secure-payment-form .credit-card-currency-conversion .additional-info p"?: {
1699
+ margin: string;
1700
+ "font-style": string;
1701
+ };
1702
+ ".secure-payment-form .credit-card-currency-conversion .tooltip"?: {
1703
+ width: string;
1704
+ height: string;
1705
+ "min-width": string;
1706
+ "border-left": string;
1707
+ display: string;
1708
+ };
1709
+ ".secure-payment-form .credit-card-currency-conversion .tooltip:hover"?: {
1710
+ "border-left": string;
1711
+ };
1712
+ ".secure-payment-form .credit-card-currency-conversion .tooltip:focus"?: {
1713
+ "border-left": string;
1714
+ };
1715
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content"?: {
1716
+ bottom: string;
1717
+ right: string;
1718
+ display: string;
1719
+ };
1720
+ ".secure-payment-form .credit-card-currency-conversion .tooltip:hover .tooltip-content"?: {
1721
+ display: string;
1722
+ };
1723
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content p"?: {
1724
+ margin: string;
1725
+ };
1726
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content p:last-child"?: {
1727
+ "margin-bottom": string;
1728
+ };
1729
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content::before"?: {
1730
+ left: string;
1731
+ top: string;
1732
+ right: string;
1733
+ transform: string;
1734
+ "border-width": string;
1735
+ "border-style": string;
1736
+ "border-color": string;
1737
+ };
1738
+ "@media only screen and (max-width: 768px)"?: {
1739
+ ".secure-payment-form .currency-conversion-container": {
1740
+ "flex-direction": string;
1741
+ "align-items": string;
1742
+ };
1743
+ ".secure-payment-form .credit-card-currency-conversion fieldset": {
1744
+ "justify-content": string;
1745
+ };
1746
+ ".secure-payment-form .credit-card-currency-conversion .radio-button": {
1747
+ width: string;
1748
+ "justify-content": string;
1749
+ };
1750
+ ".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
1751
+ margin: string;
1752
+ };
1753
+ ".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
1754
+ width: string;
1755
+ "margin-top": string;
1756
+ "margin-left": string;
1757
+ };
1758
+ ".secure-payment-form .credit-card-currency-conversion .merchant-currency-content": {
1759
+ width: string;
1760
+ "margin-top": string;
1761
+ "margin-left": string;
1762
+ };
1763
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content::before": {
1764
+ right: string;
1765
+ };
1766
+ };
1767
+ ".secure-payment-form .hf-cvv-tooltip-invalid"?: {
1768
+ border: string;
1769
+ "border-left": string;
1770
+ };
1771
+ ".secure-payment-form .hf-cvv-tooltip-invalid:hover"?: {
1270
1772
  border: string;
1271
1773
  "border-left": string;
1272
1774
  };
@@ -1441,11 +1943,7 @@ export declare const parentStyles: () => {
1441
1943
  ".secure-payment-form .ctp-panel .ctp-button .ctp-icon": {
1442
1944
  width: string;
1443
1945
  height: string;
1444
- "background-size": string; /**
1445
- * Appends additional CSS rules to the group of hosted fields
1446
- *
1447
- * @param json New CSS rules
1448
- */
1946
+ "background-size": string;
1449
1947
  };
1450
1948
  };
1451
1949
  ".secure-payment-form .apm-active .ctp-panel .ctp-button": {
@@ -1466,12 +1964,6 @@ export declare const parentStyles: () => {
1466
1964
  transform: string;
1467
1965
  "-webkit-transform": string;
1468
1966
  };
1469
- /**
1470
- * Sets a special-case event listener that fires when all hosted
1471
- * fields in a form have registered / loaded
1472
- *
1473
- * @param fn The listener function
1474
- */
1475
1967
  ".secure-payment-form .ctp-panel .right-arrow": {
1476
1968
  position: string;
1477
1969
  background: string;
@@ -1679,12 +2171,7 @@ export declare const parentStyles: () => {
1679
2171
  background: string;
1680
2172
  margin: string;
1681
2173
  padding: string;
1682
- "border-radius": string; /**
1683
- * Instantiates a new UIForm object for a group of hosted fields
1684
- *
1685
- * @param fields Hosted field configuration
1686
- * @param styles Custom CSS configuration
1687
- */
2174
+ "border-radius": string;
1688
2175
  };
1689
2176
  ".secure-payment-form .installment-plan-options-title": {
1690
2177
  color: string;
@@ -1923,6 +2410,68 @@ export declare const parentStyles: () => {
1923
2410
  "line-height": string;
1924
2411
  "text-decoration-line": string;
1925
2412
  };
2413
+ ".secure-payment-form .tooltip": {
2414
+ position: string;
2415
+ width: string;
2416
+ height: string;
2417
+ border: string;
2418
+ "border-left": string;
2419
+ color: string;
2420
+ float: string;
2421
+ "background-size": string;
2422
+ background: string;
2423
+ "font-family": string;
2424
+ };
2425
+ ".secure-payment-form .tooltip:focus": {
2426
+ border: string;
2427
+ outline: string;
2428
+ "border-left": string;
2429
+ };
2430
+ ".secure-payment-form .tooltip:hover": {
2431
+ border: string;
2432
+ outline: string;
2433
+ "border-left": string;
2434
+ };
2435
+ ".secure-payment-form .tooltip-content": {
2436
+ visibility: string;
2437
+ width: string;
2438
+ "background-color": string;
2439
+ color: string;
2440
+ "text-align": string;
2441
+ "border-radius": string;
2442
+ border: string;
2443
+ padding: string;
2444
+ position: string;
2445
+ "z-index": string;
2446
+ right: string;
2447
+ opacity: string;
2448
+ transition: string;
2449
+ "font-size": string;
2450
+ "font-weight": string;
2451
+ "box-shadow": string;
2452
+ "margin-top": string;
2453
+ "margin-right": string;
2454
+ };
2455
+ ".secure-payment-form .tooltip-content h4": {
2456
+ margin: string;
2457
+ };
2458
+ ".secure-payment-form .tooltip:hover > .tooltip-content": {
2459
+ visibility: string;
2460
+ opacity: string;
2461
+ };
2462
+ ".secure-payment-form .tooltip:focus > .tooltip-content": {
2463
+ visibility: string;
2464
+ opacity: string;
2465
+ };
2466
+ ".secure-payment-form .tooltip-content::before": {
2467
+ position: string;
2468
+ content: string;
2469
+ right: string;
2470
+ top: string;
2471
+ "border-left": string;
2472
+ "border-right": string;
2473
+ "border-bottom": string;
2474
+ };
1926
2475
  ".secure-payment-form": {
1927
2476
  display: string;
1928
2477
  "-ms-flex-wrap": string;
@@ -1952,13 +2501,13 @@ export declare const parentStyles: () => {
1952
2501
  ".secure-payment-form div[class$='-shield'] .ssl-text-logo": {
1953
2502
  border: string;
1954
2503
  "border-radius": string;
1955
- width: string;
1956
2504
  height: string;
1957
2505
  "text-align": string;
1958
2506
  margin: string;
1959
2507
  display: string;
1960
2508
  "justify-content": string;
1961
2509
  "align-items": string;
2510
+ width: string;
1962
2511
  };
1963
2512
  ".secure-payment-form div[class$='-shield'] .ssl-logo_ico": {
1964
2513
  width: string;
@@ -2011,53 +2560,6 @@ export declare const parentStyles: () => {
2011
2560
  "min-height": string;
2012
2561
  width: string;
2013
2562
  };
2014
- ".secure-payment-form .tooltip": {
2015
- position: string;
2016
- width: string;
2017
- height: string;
2018
- border: string;
2019
- "border-left": string;
2020
- color: string;
2021
- float: string;
2022
- "background-size": string;
2023
- background: string;
2024
- };
2025
- ".secure-payment-form .tooltip:focus": {
2026
- border: string;
2027
- outline: string;
2028
- };
2029
- ".secure-payment-form .tooltip:hover": {
2030
- border: string;
2031
- outline: string;
2032
- };
2033
- ".secure-payment-form .tooltip-content": {
2034
- visibility: string;
2035
- width: string;
2036
- "background-color": string;
2037
- color: string;
2038
- "text-align": string;
2039
- "border-radius": string;
2040
- border: string;
2041
- padding: string;
2042
- position: string;
2043
- "z-index": string;
2044
- right: string;
2045
- opacity: string;
2046
- transition: string;
2047
- "font-size": string;
2048
- "font-weight": string;
2049
- "margin-top": string;
2050
- overflow: string;
2051
- "box-shadow": string;
2052
- };
2053
- ".secure-payment-form .tooltip:hover > .tooltip-content": {
2054
- visibility: string;
2055
- opacity: string;
2056
- };
2057
- ".secure-payment-form .tooltip:focus > .tooltip-content": {
2058
- visibility: string;
2059
- opacity: string;
2060
- };
2061
2563
  ".secure-payment-form .other-cards-label": {
2062
2564
  "border-bottom": string;
2063
2565
  "text-align": string;
@@ -2101,6 +2603,201 @@ export declare const parentStyles: () => {
2101
2603
  };
2102
2604
  };
2103
2605
  simple: {
2606
+ ".secure-payment-form .credit-card-currency-conversion legend"?: {
2607
+ "font-family": string;
2608
+ color: string;
2609
+ "font-size": string;
2610
+ "font-weight": string;
2611
+ "line-height": string;
2612
+ "text-transform": string;
2613
+ "margin-bottom": string;
2614
+ };
2615
+ ".secure-payment-form .credit-card-currency-conversion .currency-conversion-container"?: {
2616
+ "margin-bottom": string;
2617
+ "flex-wrap": string;
2618
+ };
2619
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content"?: {
2620
+ display: string;
2621
+ bottom: string;
2622
+ right: string;
2623
+ };
2624
+ ".secure-payment-form .credit-card-currency-conversion .radio-button"?: {
2625
+ display: string;
2626
+ "justify-content": string;
2627
+ "align-items": string;
2628
+ border: string;
2629
+ padding: string;
2630
+ "white-space": string;
2631
+ height: string;
2632
+ "margin-right": string;
2633
+ };
2634
+ ".secure-payment-form .credit-card-currency-conversion .radio-button label"?: {
2635
+ "font-family": string;
2636
+ "font-size": string;
2637
+ "font-weight": number;
2638
+ display: string;
2639
+ margin: string;
2640
+ };
2641
+ ".secure-payment-form .credit-card-currency-conversion .radio-button.checked label"?: {
2642
+ color: string;
2643
+ };
2644
+ ".secure-payment-form .credit-card-currency-conversion .merchant-currency-content"?: {
2645
+ opacity: string;
2646
+ visibility: boolean;
2647
+ display: string;
2648
+ "flex-direction": string;
2649
+ margin: string;
2650
+ "align-items": string;
2651
+ height: string;
2652
+ };
2653
+ ".secure-payment-form .credit-card-currency-conversion .card-currency-content"?: {
2654
+ opacity: string;
2655
+ visibility: boolean;
2656
+ display: string;
2657
+ "flex-direction": string;
2658
+ margin: string;
2659
+ "align-items": string;
2660
+ height: string;
2661
+ };
2662
+ ".secure-payment-form .credit-card-currency-conversion .additional-info p"?: {
2663
+ "font-family": string;
2664
+ margin: string;
2665
+ "font-style": string;
2666
+ };
2667
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content p"?: {
2668
+ "font-family": string;
2669
+ margin: string;
2670
+ };
2671
+ ".secure-payment-form .currency-conversion-container"?: {
2672
+ display: string;
2673
+ "flex-direction": string;
2674
+ "align-items": string;
2675
+ };
2676
+ ".secure-payment-form .credit-card-currency-conversion iframe"?: {
2677
+ "min-height": string;
2678
+ };
2679
+ ".secure-payment-form .credit-card-currency-conversion fieldset"?: {
2680
+ "font-family": string;
2681
+ border: string;
2682
+ margin: string;
2683
+ padding: string;
2684
+ display: string;
2685
+ "flex-wrap": string;
2686
+ };
2687
+ ".secure-payment-form .credit-card-currency-conversion .radio-button:last-child"?: {
2688
+ "margin-right": string;
2689
+ };
2690
+ ".secure-payment-form .credit-card-currency-conversion .radio-button:hover"?: {
2691
+ "border-color": string;
2692
+ };
2693
+ ".secure-payment-form .credit-card-currency-conversion fieldset:focus-within > .radio-button"?: {
2694
+ outline: string;
2695
+ "outline-offset": string;
2696
+ };
2697
+ ".secure-payment-form .credit-card-currency-conversion fieldset.no-focus-outline .radio-button.checked"?: {
2698
+ outline: string;
2699
+ "outline-offset": string;
2700
+ };
2701
+ ".secure-payment-form .credit-card-currency-conversion .radio-button.checked"?: {
2702
+ background: string;
2703
+ "border-color": string;
2704
+ color: string;
2705
+ outline: string;
2706
+ };
2707
+ ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']"?: {
2708
+ margin: string;
2709
+ appearance: string;
2710
+ "-webkit-appearance": string;
2711
+ "-moz-appearance": string;
2712
+ border: string;
2713
+ "border-radius": string;
2714
+ width: string;
2715
+ height: string;
2716
+ display: string;
2717
+ position: string;
2718
+ padding: string;
2719
+ };
2720
+ ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:checked"?: {
2721
+ "background-color": string;
2722
+ border: string;
2723
+ };
2724
+ ".secure-payment-form .credit-card-currency-conversion .radio-button input[type='radio']:focus"?: {
2725
+ outline: string;
2726
+ };
2727
+ ".secure-payment-form .credit-card-currency-conversion .card-currency-content.visible"?: {
2728
+ display: string;
2729
+ opacity: string;
2730
+ visibility: boolean;
2731
+ };
2732
+ ".secure-payment-form .credit-card-currency-conversion .merchant-currency-content.visible"?: {
2733
+ display: string;
2734
+ opacity: string;
2735
+ visibility: boolean;
2736
+ };
2737
+ ".secure-payment-form .credit-card-currency-conversion .additional-info"?: {
2738
+ "font-family": string;
2739
+ "font-size": string;
2740
+ "font-weight": number;
2741
+ margin: string;
2742
+ display: string;
2743
+ };
2744
+ ".secure-payment-form .credit-card-currency-conversion .tooltip"?: {
2745
+ width: string;
2746
+ height: string;
2747
+ "min-width": string;
2748
+ "border-left": string;
2749
+ display: string;
2750
+ };
2751
+ ".secure-payment-form .credit-card-currency-conversion .tooltip:hover"?: {
2752
+ "border-left": string;
2753
+ };
2754
+ ".secure-payment-form .credit-card-currency-conversion .tooltip:focus"?: {
2755
+ "border-left": string;
2756
+ };
2757
+ ".secure-payment-form .credit-card-currency-conversion .tooltip:hover .tooltip-content"?: {
2758
+ display: string;
2759
+ };
2760
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content p:last-child"?: {
2761
+ "margin-bottom": string;
2762
+ };
2763
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content::before"?: {
2764
+ left: string;
2765
+ top: string;
2766
+ right: string;
2767
+ transform: string;
2768
+ "border-width": string;
2769
+ "border-style": string;
2770
+ "border-color": string;
2771
+ };
2772
+ "@media only screen and (max-width: 768px)"?: {
2773
+ ".secure-payment-form .currency-conversion-container": {
2774
+ "flex-direction": string;
2775
+ "align-items": string;
2776
+ };
2777
+ ".secure-payment-form .credit-card-currency-conversion fieldset": {
2778
+ "justify-content": string;
2779
+ };
2780
+ ".secure-payment-form .credit-card-currency-conversion .radio-button": {
2781
+ width: string;
2782
+ "justify-content": string;
2783
+ };
2784
+ ".secure-payment-form .credit-card-currency-conversion .radio-button:first-child": {
2785
+ margin: string;
2786
+ };
2787
+ ".secure-payment-form .credit-card-currency-conversion .card-currency-content": {
2788
+ width: string;
2789
+ "margin-top": string;
2790
+ "margin-left": string;
2791
+ };
2792
+ ".secure-payment-form .credit-card-currency-conversion .merchant-currency-content": {
2793
+ width: string;
2794
+ "margin-top": string;
2795
+ "margin-left": string;
2796
+ };
2797
+ ".secure-payment-form .credit-card-currency-conversion .tooltip-content::before": {
2798
+ right: string;
2799
+ };
2800
+ };
2104
2801
  ".secure-payment-form .credit-card-qr-code-payments"?: {
2105
2802
  "font-family": string;
2106
2803
  };
@@ -2381,11 +3078,7 @@ export declare const parentStyles: () => {
2381
3078
  ".secure-payment-form .ctp-panel .ctp-button .ctp-icon": {
2382
3079
  width: string;
2383
3080
  height: string;
2384
- "background-size": string; /**
2385
- * Appends additional CSS rules to the group of hosted fields
2386
- *
2387
- * @param json New CSS rules
2388
- */
3081
+ "background-size": string;
2389
3082
  };
2390
3083
  };
2391
3084
  ".secure-payment-form .apm-active .ctp-panel .ctp-button": {
@@ -2406,12 +3099,6 @@ export declare const parentStyles: () => {
2406
3099
  transform: string;
2407
3100
  "-webkit-transform": string;
2408
3101
  };
2409
- /**
2410
- * Sets a special-case event listener that fires when all hosted
2411
- * fields in a form have registered / loaded
2412
- *
2413
- * @param fn The listener function
2414
- */
2415
3102
  ".secure-payment-form .ctp-panel .right-arrow": {
2416
3103
  position: string;
2417
3104
  background: string;
@@ -2526,6 +3213,68 @@ export declare const parentStyles: () => {
2526
3213
  display: string;
2527
3214
  margin: string;
2528
3215
  };
3216
+ ".secure-payment-form .tooltip": {
3217
+ position: string;
3218
+ width: string;
3219
+ height: string;
3220
+ border: string;
3221
+ "border-left": string;
3222
+ color: string;
3223
+ float: string;
3224
+ "background-size": string;
3225
+ background: string;
3226
+ "font-family": string;
3227
+ };
3228
+ ".secure-payment-form .tooltip:focus": {
3229
+ border: string;
3230
+ outline: string;
3231
+ "border-left": string;
3232
+ };
3233
+ ".secure-payment-form .tooltip:hover": {
3234
+ border: string;
3235
+ outline: string;
3236
+ "border-left": string;
3237
+ };
3238
+ ".secure-payment-form .tooltip-content": {
3239
+ visibility: string;
3240
+ width: string;
3241
+ "background-color": string;
3242
+ color: string;
3243
+ "text-align": string;
3244
+ "border-radius": string;
3245
+ border: string;
3246
+ padding: string;
3247
+ position: string;
3248
+ "z-index": string;
3249
+ right: string;
3250
+ opacity: string;
3251
+ transition: string;
3252
+ "font-size": string;
3253
+ "font-weight": string;
3254
+ "box-shadow": string;
3255
+ "margin-top": string;
3256
+ "margin-right": string;
3257
+ };
3258
+ ".secure-payment-form .tooltip-content h4": {
3259
+ margin: string;
3260
+ };
3261
+ ".secure-payment-form .tooltip:hover > .tooltip-content": {
3262
+ visibility: string;
3263
+ opacity: string;
3264
+ };
3265
+ ".secure-payment-form .tooltip:focus > .tooltip-content": {
3266
+ visibility: string;
3267
+ opacity: string;
3268
+ };
3269
+ ".secure-payment-form .tooltip-content::before": {
3270
+ position: string;
3271
+ content: string;
3272
+ right: string;
3273
+ top: string;
3274
+ "border-left": string;
3275
+ "border-right": string;
3276
+ "border-bottom": string;
3277
+ };
2529
3278
  ".secure-payment-form": {
2530
3279
  "font-family": string;
2531
3280
  width: string;
@@ -2551,7 +3300,6 @@ export declare const parentStyles: () => {
2551
3300
  ".secure-payment-form div[class$='-shield'] .ssl-text-logo": {
2552
3301
  border: string;
2553
3302
  "border-radius": string;
2554
- width: string;
2555
3303
  height: string;
2556
3304
  "text-align": string;
2557
3305
  margin: string;
@@ -2737,11 +3485,30 @@ export default class UIForm {
2737
3485
  private configureCardInstallmentsEvents;
2738
3486
  private startCardInstallmentDataRequest;
2739
3487
  private removeInstallmentsPanel;
3488
+ private currencyConversionResponseData;
3489
+ /**
3490
+ * Configures event listeners related to currency conversion for the specified iframe field.
3491
+ * @param dccField The iframe field associated with the currency conversion.
3492
+ */
3493
+ private configureCurrencyConversionEvents;
3494
+ private checkCurrencyConversionStatus;
3495
+ /**
3496
+ * Initiates a currency conversion data request using the provided parameters.
3497
+ * @param args An object containing the necessary parameters for the currency conversion request.
3498
+ */
3499
+ private startCurrencyConversionDataRequest;
3500
+ /**
3501
+ * Requests data from all relevant fields associated with the target iframe field,
3502
+ * including optional installment payment data and currency conversion data if enabled.
3503
+ * @param target The iframe field for which data is requested.
3504
+ * @param installment Optional installment payment data.
3505
+ */
2740
3506
  private requestDataFromAll;
2741
3507
  setSubtotalAmount(amount: string): void;
2742
3508
  private requestInstallmentData;
2743
3509
  private configureHostedFieldValidations;
2744
3510
  private validateForm;
2745
3511
  private submitForm;
3512
+ private requestCurrencyConversionData;
2746
3513
  private startQRCodePaymentMethodsRequest;
2747
3514
  }