@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,2 @@
1
+ import { IframeField, IUIFormField } from "../index";
2
+ export default function addApplePay(iframeField: IframeField | undefined, field: IUIFormField): void;
@@ -0,0 +1,2 @@
1
+ import { IframeField, IUIFormField } from "../index";
2
+ export default function addClickToPay(iframeField: IframeField | undefined, field: IUIFormField): void;
@@ -0,0 +1,9 @@
1
+ import { IframeField } from "../index";
2
+ import { CurrencyConversionPaymentData } from "../../../internal/lib/currency-conversion/contracts/interfaces";
3
+ /**
4
+ * Adds currency conversion functionality to the specified iframe field.
5
+ * @param iframeField The iframe field to which currency conversion is added.
6
+ * @param data The data used to populate the currency conversion.
7
+ * @param callback The callback function to handle the response data.
8
+ */
9
+ export default function addCurrencyConversion(iframeField: IframeField | undefined, data: any, callback: (response: CurrencyConversionPaymentData, value: string) => void): void;
@@ -0,0 +1,8 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, data: IDictionary) => void;
3
+ /**
4
+ * Initiates a currency conversion request and posts the response data to the parent window.
5
+ * @param id The ID of the message.
6
+ * @param data An object containing the data required for the currency conversion request.
7
+ */
8
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, _type: string, data: IDictionary) => void;
3
+ /**
4
+ * Posts a message to the parent window to start a currency conversion request.
5
+ * @param id The ID of the message.
6
+ * @param _type The type of the message.
7
+ * @param data An object containing the data for the currency conversion request.
8
+ */
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, type: string, data: IDictionary) => void;
3
+ /**
4
+ * Posts a message to the parent window to pass currency conversion data.
5
+ * @param id The ID of the message.
6
+ * @param type The type of the message.
7
+ * @param data An object containing the data to be passed for currency conversion.
8
+ */
9
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, data: IDictionary) => void;
3
+ /**
4
+ * Initiates a currency conversion request and posts the response data to the parent window.
5
+ * @param id The ID of the message.
6
+ * @param data An object containing the data required for the currency conversion request.
7
+ */
8
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { IframeField, IUIFormField } from "../index";
2
+ export default function addGooglePay(iframeField: IframeField | undefined, field: IUIFormField): void;
@@ -50,7 +50,7 @@ export declare class IframeField extends EventEmitter {
50
50
  static createField(id: string, name: string, type: string, enableAutocomplete: boolean, fieldOptions?: any): void;
51
51
  /**
52
52
  * Appends a hidden input to the given destination to accept
53
- * full autocomplete/auto-fill data from the browser. The
53
+ * full autocomplete/autofill data from the browser. The
54
54
  * parent window is also notified of data changes to these
55
55
  * fields in order display the new data to the end-user.
56
56
  *
@@ -0,0 +1,3 @@
1
+ import { IframeField } from "../index";
2
+ import { InstallmentPaymentData } from "../../../internal/lib/installments/installments-handler";
3
+ export default function addInstallments(iframeField: IframeField | undefined, installmentPlans: any, tokenizationCallback: (installment: InstallmentPaymentData) => void): void;
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, _type: string, data: IDictionary) => void;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, type: string, data: IDictionary) => void;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { IDictionary } from "../../../internal/lib/util";
2
+ declare const _default: (id: string, data: IDictionary) => void;
3
+ /**
4
+ * Requests the installment plans data for a valid credit card number
5
+ */
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { IframeField } from "../index";
2
+ export default function addOpenBankingPaymentMethod(iframeField: IframeField | undefined): void;
@@ -0,0 +1,3 @@
1
+ import { IframeField } from "../index";
2
+ import { Apm, ApmProviders } from "../../../internal/lib/enums";
3
+ export default function addPaymentMethod(iframeField: IframeField | undefined, apmProvider: ApmProviders, apm: Apm): void;
@@ -0,0 +1,3 @@
1
+ import { IframeField } from "../index";
2
+ import { IPaymentMethodConfigurationNormalized } from "../../../apm/qr-code-payments/contracts";
3
+ export default function addQRCodePaymentMethods(iframeField: IframeField | undefined, paymentMethodConfigurations: IPaymentMethodConfigurationNormalized[], amount: string | number): void;
@@ -0,0 +1,6 @@
1
+ import { IDictionary } from "@globalpayments/js/types/internal/lib/util";
2
+ declare const _default: (id: string, data: IDictionary) => void;
3
+ /**
4
+ * Requests the QR Code Payment methods
5
+ */
6
+ export default _default;
@@ -1,11 +0,0 @@
1
- export declare enum Apm {
2
- ClickToPay = "click-to-pay",
3
- GooglePay = "google-pay",
4
- ApplePay = "apple-pay"
5
- }
6
- export declare enum CardNetwork {
7
- Visa = "VISA",
8
- Mastercard = "MASTERCARD",
9
- Amex = "AMEX",
10
- Discover = "DISCOVER"
11
- }