@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
@@ -0,0 +1,58 @@
1
+ declare const sl: {
2
+ labels: {
3
+ "card-number": string;
4
+ "card-expiration": string;
5
+ "card-cvv": string;
6
+ "card-holder-name": string;
7
+ submit: string;
8
+ };
9
+ values: {
10
+ "card-track": string;
11
+ submit: string;
12
+ };
13
+ validationMessages: {
14
+ CardNumber: {
15
+ Required: string;
16
+ CharactersLessThan12: string;
17
+ NumberIsNotValid: string;
18
+ NotAllowedCardType: string;
19
+ };
20
+ CardExpiration: {
21
+ NotCompleted: string;
22
+ YearNotValid: string;
23
+ MonthNotValid: string;
24
+ ExpiryDateNotValid: string;
25
+ };
26
+ CardCvv: {
27
+ CodeIsNotValid: string;
28
+ CodeIsLessThan3Digits: string;
29
+ CodeMustBe3Digits: string;
30
+ AmexCodeMustBe4Digits: string;
31
+ };
32
+ CardHolderName: {
33
+ NotValidCardHolderName: string;
34
+ CharactersMoreThan100: string;
35
+ };
36
+ CurrencyConversion: {
37
+ Required: string;
38
+ };
39
+ };
40
+ footer: {
41
+ "ssl-msg-alt": string;
42
+ "ssl-msg": string;
43
+ "security-msg-alt": string;
44
+ "security-msg": string;
45
+ };
46
+ tooltip: {
47
+ title: string;
48
+ "aria-label": string;
49
+ text: string;
50
+ };
51
+ "other-cards-label": string;
52
+ apms: {
53
+ button: {
54
+ getAriaLabel: (paymentMethod: string) => string;
55
+ };
56
+ };
57
+ };
58
+ export default sl;
@@ -0,0 +1,58 @@
1
+ declare const sv: {
2
+ labels: {
3
+ "card-number": string;
4
+ "card-expiration": string;
5
+ "card-cvv": string;
6
+ "card-holder-name": string;
7
+ submit: string;
8
+ };
9
+ values: {
10
+ "card-track": string;
11
+ submit: string;
12
+ };
13
+ validationMessages: {
14
+ CardNumber: {
15
+ Required: string;
16
+ CharactersLessThan12: string;
17
+ NumberIsNotValid: string;
18
+ NotAllowedCardType: string;
19
+ };
20
+ CardExpiration: {
21
+ NotCompleted: string;
22
+ YearNotValid: string;
23
+ MonthNotValid: string;
24
+ ExpiryDateNotValid: string;
25
+ };
26
+ CardCvv: {
27
+ CodeIsNotValid: string;
28
+ CodeIsLessThan3Digits: string;
29
+ CodeMustBe3Digits: string;
30
+ AmexCodeMustBe4Digits: string;
31
+ };
32
+ CardHolderName: {
33
+ NotValidCardHolderName: string;
34
+ CharactersMoreThan100: string;
35
+ };
36
+ CurrencyConversion: {
37
+ Required: string;
38
+ };
39
+ };
40
+ footer: {
41
+ "ssl-msg-alt": string;
42
+ "ssl-msg": string;
43
+ "security-msg-alt": string;
44
+ "security-msg": string;
45
+ };
46
+ tooltip: {
47
+ title: string;
48
+ "aria-label": string;
49
+ text: string;
50
+ };
51
+ "other-cards-label": string;
52
+ apms: {
53
+ button: {
54
+ getAriaLabel: (paymentMethod: string) => string;
55
+ };
56
+ };
57
+ };
58
+ export default sv;
@@ -0,0 +1,58 @@
1
+ declare const tr: {
2
+ labels: {
3
+ "card-number": string;
4
+ "card-expiration": string;
5
+ "card-cvv": string;
6
+ "card-holder-name": string;
7
+ submit: string;
8
+ };
9
+ values: {
10
+ "card-track": string;
11
+ submit: string;
12
+ };
13
+ validationMessages: {
14
+ CardNumber: {
15
+ Required: string;
16
+ CharactersLessThan12: string;
17
+ NumberIsNotValid: string;
18
+ NotAllowedCardType: string;
19
+ };
20
+ CardExpiration: {
21
+ NotCompleted: string;
22
+ YearNotValid: string;
23
+ MonthNotValid: string;
24
+ ExpiryDateNotValid: string;
25
+ };
26
+ CardCvv: {
27
+ CodeIsNotValid: string;
28
+ CodeIsLessThan3Digits: string;
29
+ CodeMustBe3Digits: string;
30
+ AmexCodeMustBe4Digits: string;
31
+ };
32
+ CardHolderName: {
33
+ NotValidCardHolderName: string;
34
+ CharactersMoreThan100: string;
35
+ };
36
+ CurrencyConversion: {
37
+ Required: string;
38
+ };
39
+ };
40
+ footer: {
41
+ "ssl-msg-alt": string;
42
+ "ssl-msg": string;
43
+ "security-msg-alt": string;
44
+ "security-msg": string;
45
+ };
46
+ tooltip: {
47
+ title: string;
48
+ "aria-label": string;
49
+ text: string;
50
+ };
51
+ "other-cards-label": string;
52
+ apms: {
53
+ button: {
54
+ getAriaLabel: (paymentMethod: string) => string;
55
+ };
56
+ };
57
+ };
58
+ export default tr;
@@ -0,0 +1,58 @@
1
+ declare const uk: {
2
+ labels: {
3
+ "card-number": string;
4
+ "card-expiration": string;
5
+ "card-cvv": string;
6
+ "card-holder-name": string;
7
+ submit: string;
8
+ };
9
+ values: {
10
+ "card-track": string;
11
+ submit: string;
12
+ };
13
+ validationMessages: {
14
+ CardNumber: {
15
+ Required: string;
16
+ CharactersLessThan12: string;
17
+ NumberIsNotValid: string;
18
+ NotAllowedCardType: string;
19
+ };
20
+ CardExpiration: {
21
+ NotCompleted: string;
22
+ YearNotValid: string;
23
+ MonthNotValid: string;
24
+ ExpiryDateNotValid: string;
25
+ };
26
+ CardCvv: {
27
+ CodeIsNotValid: string;
28
+ CodeIsLessThan3Digits: string;
29
+ CodeMustBe3Digits: string;
30
+ AmexCodeMustBe4Digits: string;
31
+ };
32
+ CardHolderName: {
33
+ NotValidCardHolderName: string;
34
+ CharactersMoreThan100: string;
35
+ };
36
+ CurrencyConversion: {
37
+ Required: string;
38
+ };
39
+ };
40
+ footer: {
41
+ "ssl-msg-alt": string;
42
+ "ssl-msg": string;
43
+ "security-msg-alt": string;
44
+ "security-msg": string;
45
+ };
46
+ tooltip: {
47
+ title: string;
48
+ "aria-label": string;
49
+ text: string;
50
+ };
51
+ "other-cards-label": string;
52
+ apms: {
53
+ button: {
54
+ getAriaLabel: (paymentMethod: string) => string;
55
+ };
56
+ };
57
+ };
58
+ export default uk;
@@ -0,0 +1,58 @@
1
+ declare const vi: {
2
+ labels: {
3
+ "card-number": string;
4
+ "card-expiration": string;
5
+ "card-cvv": string;
6
+ "card-holder-name": string;
7
+ submit: string;
8
+ };
9
+ values: {
10
+ "card-track": string;
11
+ submit: string;
12
+ };
13
+ validationMessages: {
14
+ CardNumber: {
15
+ Required: string;
16
+ CharactersLessThan12: string;
17
+ NumberIsNotValid: string;
18
+ NotAllowedCardType: string;
19
+ };
20
+ CardExpiration: {
21
+ NotCompleted: string;
22
+ YearNotValid: string;
23
+ MonthNotValid: string;
24
+ ExpiryDateNotValid: string;
25
+ };
26
+ CardCvv: {
27
+ CodeIsNotValid: string;
28
+ CodeIsLessThan3Digits: string;
29
+ CodeMustBe3Digits: string;
30
+ AmexCodeMustBe4Digits: string;
31
+ };
32
+ CardHolderName: {
33
+ NotValidCardHolderName: string;
34
+ CharactersMoreThan100: string;
35
+ };
36
+ CurrencyConversion: {
37
+ Required: string;
38
+ };
39
+ };
40
+ footer: {
41
+ "ssl-msg-alt": string;
42
+ "ssl-msg": string;
43
+ "security-msg-alt": string;
44
+ "security-msg": string;
45
+ };
46
+ tooltip: {
47
+ title: string;
48
+ "aria-label": string;
49
+ text: string;
50
+ };
51
+ "other-cards-label": string;
52
+ apms: {
53
+ button: {
54
+ getAriaLabel: (paymentMethod: string) => string;
55
+ };
56
+ };
57
+ };
58
+ export default vi;
@@ -32,6 +32,9 @@ declare const zh: {
32
32
  NotValidCardHolderName: string;
33
33
  CharactersMoreThan100: string;
34
34
  };
35
+ CurrencyConversion: {
36
+ Required: string;
37
+ };
35
38
  };
36
39
  footer: {
37
40
  "ssl-msg-alt": string;
@@ -75,5 +78,10 @@ declare const zh: {
75
78
  text: string;
76
79
  };
77
80
  };
81
+ apms: {
82
+ button: {
83
+ getAriaLabel: (paymentMethod: string) => string;
84
+ };
85
+ };
78
86
  };
79
87
  export default zh;
@@ -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
  }
@@ -1,2 +1,2 @@
1
- declare const _default: "4.0.11";
1
+ declare const _default: "4.0.13";
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;