@globalpayments/js 4.1.3 → 4.1.7

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 (76) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/types/apm/non-card-payments/contracts.d.ts +1 -0
  4. package/types/internal/built-in-validations/constants.d.ts +2 -0
  5. package/types/internal/built-in-validations/helpers.d.ts +3 -0
  6. package/types/internal/lib/bank-selection/available-banks-data.d.ts +3 -0
  7. package/types/internal/lib/bank-selection/contracts.d.ts +71 -0
  8. package/types/internal/lib/bank-selection/helpers.d.ts +6 -0
  9. package/types/internal/lib/enums.d.ts +6 -2
  10. package/types/internal/lib/order-information/constants.d.ts +1 -0
  11. package/types/internal/lib/order-information/contracts.d.ts +6 -0
  12. package/types/internal/lib/styles/bank-selection/common.d.ts +52 -0
  13. package/types/internal/lib/styles/default.d.ts +98 -8
  14. package/types/internal/lib/styles/gp-default.d.ts +102 -12
  15. package/types/internal/lib/styles/order-information/common.d.ts +19 -0
  16. package/types/internal/lib/styles/payment-methods/common.d.ts +33 -8
  17. package/types/internal/lib/styles/payment-methods/open-banking.d.ts +33 -8
  18. package/types/internal/lib/styles/simple.d.ts +65 -0
  19. package/types/internal/lib/styles/themes/brand-themes/base/base-theme.d.ts +146 -8
  20. package/types/internal/lib/styles/themes/brand-themes/base/base-token-definition.d.ts +24 -0
  21. package/types/internal/lib/styles/themes/brand-themes/base/contracts.d.ts +14 -0
  22. package/types/internal/lib/styles/themes/helpers.d.ts +1 -0
  23. package/types/internal/lib/translations/cs.d.ts +14 -0
  24. package/types/internal/lib/translations/de.d.ts +13 -0
  25. package/types/internal/lib/translations/el.d.ts +13 -0
  26. package/types/internal/lib/translations/en.d.ts +8 -0
  27. package/types/internal/lib/translations/es.d.ts +7 -0
  28. package/types/internal/lib/translations/et.d.ts +108 -0
  29. package/types/internal/lib/translations/fr.d.ts +13 -0
  30. package/types/internal/lib/translations/ga.d.ts +108 -0
  31. package/types/internal/lib/translations/hr.d.ts +13 -0
  32. package/types/internal/lib/translations/hu.d.ts +13 -0
  33. package/types/internal/lib/translations/it.d.ts +13 -0
  34. package/types/internal/lib/translations/ja.d.ts +13 -0
  35. package/types/internal/lib/translations/lv.d.ts +108 -0
  36. package/types/internal/lib/translations/mt.d.ts +13 -0
  37. package/types/internal/lib/translations/nl.d.ts +13 -0
  38. package/types/internal/lib/translations/pl.d.ts +14 -0
  39. package/types/internal/lib/translations/pt.d.ts +13 -0
  40. package/types/internal/lib/translations/ro.d.ts +13 -0
  41. package/types/internal/lib/translations/ru.d.ts +13 -0
  42. package/types/internal/lib/translations/sk.d.ts +14 -0
  43. package/types/internal/lib/translations/sl.d.ts +13 -0
  44. package/types/internal/lib/translations/sv.d.ts +13 -0
  45. package/types/internal/lib/translations/tr.d.ts +13 -0
  46. package/types/internal/lib/translations/uk.d.ts +13 -0
  47. package/types/internal/lib/translations/vi.d.ts +13 -0
  48. package/types/internal/lib/translations/zh.d.ts +3 -0
  49. package/types/lib/version.d.ts +1 -1
  50. package/types/tools/configure.d.ts +8 -0
  51. package/types/ui/components/bank-selection/action-add-bank-selection.d.ts +3 -0
  52. package/types/ui/components/order-information/action-add-order-information.d.ts +2 -0
  53. package/types/ui/form/index.d.ts +308 -121
  54. package/types/ui/iframe-field/payment-methods/action-add.d.ts +1 -1
  55. package/types/apm/qr-code-payments/components/redirect-action-handler.d.ts +0 -1
  56. package/types/apm/qr-code-payments/constants.d.ts +0 -1
  57. package/types/apm/qr-code-payments/enums.d.ts +0 -10
  58. package/types/internal/gateways/gp-api/get-qr-code-payment-methods.d.ts +0 -3
  59. package/types/internal/lib/styles/apple-pay/default.d.ts +0 -12
  60. package/types/internal/lib/styles/apple-pay/gp-default.d.ts +0 -12
  61. package/types/internal/lib/styles/apple-pay/simple.d.ts +0 -12
  62. package/types/internal/lib/styles/google-pay/default.d.ts +0 -7
  63. package/types/internal/lib/styles/google-pay/gp-default.d.ts +0 -7
  64. package/types/internal/lib/styles/google-pay/simple.d.ts +0 -7
  65. package/types/internal/lib/styles/qr-code-payments/common.d.ts +0 -151
  66. package/types/ui/iframe-field/action-accumulate-installment-data.d.ts +0 -3
  67. package/types/ui/iframe-field/action-add-apple-pay.d.ts +0 -2
  68. package/types/ui/iframe-field/action-add-click-to-pay.d.ts +0 -2
  69. package/types/ui/iframe-field/action-add-google-pay.d.ts +0 -2
  70. package/types/ui/iframe-field/action-add-installments.d.ts +0 -3
  71. package/types/ui/iframe-field/action-add-open-banking.d.ts +0 -2
  72. package/types/ui/iframe-field/action-add-qr-code-payment-methods.d.ts +0 -3
  73. package/types/ui/iframe-field/action-card-request-installments.d.ts +0 -6
  74. package/types/ui/iframe-field/action-qr-code-payment-methods-request-start.d.ts +0 -6
  75. package/types/ui/iframe-field/action-request-installment-data.d.ts +0 -3
  76. package/types/ui/iframe-field/open-banking/action-add.d.ts +0 -2
@@ -49,10 +49,23 @@ declare const hr: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default hr;
@@ -49,10 +49,23 @@ declare const hu: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default hu;
@@ -49,10 +49,23 @@ declare const it: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default it;
@@ -49,10 +49,23 @@ declare const ja: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default ja;
@@ -0,0 +1,108 @@
1
+ declare const en: {
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
+ QR: {
53
+ scanRqCode: string;
54
+ payInApp: string;
55
+ amount: {
56
+ "aria-label": string;
57
+ };
58
+ qrImage: {
59
+ alt: string;
60
+ "aria-label": string;
61
+ };
62
+ timer: {
63
+ text: string;
64
+ minutes: string;
65
+ seconds: string;
66
+ "icon-alt": string;
67
+ };
68
+ expiredScreen: {
69
+ title: string;
70
+ alt: string;
71
+ text: string;
72
+ };
73
+ button: {
74
+ text: string;
75
+ "aria-label": string;
76
+ };
77
+ loading: string;
78
+ redirectScreen: {
79
+ redirectingToPaymentPageMessage: string;
80
+ };
81
+ };
82
+ apms: {
83
+ button: {
84
+ getAriaLabel: (paymentMethod: string) => string;
85
+ };
86
+ redirectToBank: string;
87
+ };
88
+ dcc: {
89
+ label: string;
90
+ additionalInfo: (currency: string, exchangeRate: string, payerCurrency: string, marginRatePercentage: string) => string;
91
+ cardCurrency: {
92
+ tooltip: (payerCurrency: string, exchangeRateSource: string, exchangeRateTimeCreated: string) => string;
93
+ "aria-label": string;
94
+ };
95
+ merchantCurrency: {
96
+ tooltip: (exchangeRateSource: string, exchangeRateTimeCreated: string) => string;
97
+ "aria-label": string;
98
+ };
99
+ };
100
+ orderInformation: {
101
+ amount: string;
102
+ orderReference: string;
103
+ };
104
+ bankSelection: {
105
+ pleaseSelectYourPreferredBank: string;
106
+ };
107
+ };
108
+ export default en;
@@ -49,10 +49,23 @@ declare const mt: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default mt;
@@ -49,10 +49,23 @@ declare const nl: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default nl;
@@ -49,10 +49,24 @@ declare const en: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
61
+ getImageUrl: (assetBaseUrl: string) => string;
55
62
  };
56
63
  };
64
+ orderInformation: {
65
+ amount: string;
66
+ orderReference: string;
67
+ };
68
+ bankSelection: {
69
+ pleaseSelectYourPreferredBank: string;
70
+ };
57
71
  };
58
72
  export default en;
@@ -49,10 +49,23 @@ declare const pt: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default pt;
@@ -49,10 +49,23 @@ declare const ro: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default ro;
@@ -49,10 +49,23 @@ declare const ru: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default ru;
@@ -49,10 +49,24 @@ declare const sk: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
61
+ getImageUrl: (assetBaseUrl: string) => string;
55
62
  };
56
63
  };
64
+ orderInformation: {
65
+ amount: string;
66
+ orderReference: string;
67
+ };
68
+ bankSelection: {
69
+ pleaseSelectYourPreferredBank: string;
70
+ };
57
71
  };
58
72
  export default sk;
@@ -49,10 +49,23 @@ declare const sl: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default sl;
@@ -49,10 +49,23 @@ declare const sv: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default sv;
@@ -49,10 +49,23 @@ declare const tr: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default tr;
@@ -49,10 +49,23 @@ declare const uk: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default uk;
@@ -49,10 +49,23 @@ declare const vi: {
49
49
  text: string;
50
50
  };
51
51
  "other-cards-label": string;
52
+ QR: {
53
+ button: {
54
+ text: string;
55
+ "aria-label": string;
56
+ };
57
+ };
52
58
  apms: {
53
59
  button: {
54
60
  getAriaLabel: (paymentMethod: string) => string;
55
61
  };
56
62
  };
63
+ orderInformation: {
64
+ amount: string;
65
+ orderReference: string;
66
+ };
67
+ bankSelection: {
68
+ pleaseSelectYourPreferredBank: string;
69
+ };
57
70
  };
58
71
  export default vi;
@@ -83,5 +83,8 @@ declare const zh: {
83
83
  getAriaLabel: (paymentMethod: string) => string;
84
84
  };
85
85
  };
86
+ bankSelection: {
87
+ pleaseSelectYourPreferredBank: string;
88
+ };
86
89
  };
87
90
  export default zh;
@@ -1,2 +1,2 @@
1
- declare const _default: "4.1.3";
1
+ declare const _default: "4.1.7";
2
2
  export default _default;
@@ -30,6 +30,7 @@ export interface IConfiguration extends IDictionary {
30
30
  nonCardPayments?: IApmConfiguration;
31
31
  countryCode?: string;
32
32
  currencyCode?: string;
33
+ acquirer?: string;
33
34
  applePay?: {
34
35
  allowedAuthMethods?: string[];
35
36
  allowedCardNetworks?: string[];
@@ -97,6 +98,13 @@ export interface IConfiguration extends IDictionary {
97
98
  enabled?: boolean;
98
99
  characterValidation?: string;
99
100
  };
101
+ orderInformation?: {
102
+ enabled?: boolean;
103
+ merchantName: string;
104
+ orderTotalAmount: string;
105
+ orderReference: string;
106
+ currencyCode: string;
107
+ };
100
108
  }
101
109
  declare const _default: (options: IConfiguration) => void;
102
110
  /**
@@ -0,0 +1,3 @@
1
+ import { IBankSelectionProps } from "../../../internal/lib/bank-selection/contracts";
2
+ import { IframeField } from "../../iframe-field";
3
+ export default function addBankSelection(iframeField: IframeField, props: IBankSelectionProps): void;
@@ -0,0 +1,2 @@
1
+ import { IOrderInformationData } from "../../../internal/lib/order-information/contracts";
2
+ export default function addOrderInformation(cardFormContainerElement: HTMLElement, props: IOrderInformationData): void;