@globalpayments/js 4.1.1 → 4.1.6

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 -6
  3. package/types/apm/non-card-payments/contracts.d.ts +1 -0
  4. package/types/internal/built-in-validations/constants.d.ts +1 -0
  5. package/types/internal/built-in-validations/helpers.d.ts +2 -0
  6. package/types/internal/lib/bank-selection/available-banks-data.d.ts +2 -0
  7. package/types/internal/lib/bank-selection/contracts.d.ts +56 -0
  8. package/types/internal/lib/bank-selection/helpers.d.ts +5 -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/currency-conversion/common.d.ts +13 -0
  14. package/types/internal/lib/styles/currency-conversion/default.d.ts +17 -0
  15. package/types/internal/lib/styles/currency-conversion/gp-default.d.ts +13 -0
  16. package/types/internal/lib/styles/currency-conversion/simple.d.ts +13 -0
  17. package/types/internal/lib/styles/default.d.ts +115 -8
  18. package/types/internal/lib/styles/gp-default.d.ts +111 -8
  19. package/types/internal/lib/styles/order-information/common.d.ts +19 -0
  20. package/types/internal/lib/styles/payment-methods/common.d.ts +33 -8
  21. package/types/internal/lib/styles/payment-methods/open-banking.d.ts +33 -8
  22. package/types/internal/lib/styles/simple.d.ts +78 -0
  23. package/types/internal/lib/styles/themes/brand-themes/base/base-theme.d.ts +159 -8
  24. package/types/internal/lib/styles/themes/brand-themes/base/base-token-definition.d.ts +24 -0
  25. package/types/internal/lib/styles/themes/brand-themes/base/contracts.d.ts +14 -0
  26. package/types/internal/lib/translations/cs.d.ts +14 -0
  27. package/types/internal/lib/translations/de.d.ts +13 -0
  28. package/types/internal/lib/translations/el.d.ts +13 -0
  29. package/types/internal/lib/translations/en.d.ts +8 -0
  30. package/types/internal/lib/translations/es.d.ts +7 -0
  31. package/types/internal/lib/translations/fr.d.ts +13 -0
  32. package/types/internal/lib/translations/hr.d.ts +13 -0
  33. package/types/internal/lib/translations/hu.d.ts +13 -0
  34. package/types/internal/lib/translations/it.d.ts +13 -0
  35. package/types/internal/lib/translations/ja.d.ts +13 -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 +7 -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 +339 -116
  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 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;
@@ -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.1";
1
+ declare const _default: "4.1.6";
2
2
  export default _default;
@@ -97,6 +97,13 @@ export interface IConfiguration extends IDictionary {
97
97
  enabled?: boolean;
98
98
  characterValidation?: string;
99
99
  };
100
+ orderInformation?: {
101
+ enabled?: boolean;
102
+ merchantName: string;
103
+ orderTotalAmount: string;
104
+ orderReference: string;
105
+ currencyCode: string;
106
+ };
100
107
  }
101
108
  declare const _default: (options: IConfiguration) => void;
102
109
  /**
@@ -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;