@payrails/web-sdk 5.18.1 → 5.19.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payrails/web-sdk",
3
- "version": "5.18.1",
3
+ "version": "5.19.0",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
package/payrails.d.ts CHANGED
@@ -70,6 +70,7 @@ declare class WorkflowExecution {
70
70
  static get authorizeLink(): string | undefined;
71
71
  static get createSessionLink(): string | undefined;
72
72
  static get storedPaymentInstruments(): StoredPaymentInstrument<PayPalMetadata & CardMetadata>[];
73
+ static get storedDropinInstruments(): StoredPaymentInstrument<PayPalMetadata & CardMetadata>[];
73
74
  static getFullPaymentMethodConfig(paymentMethod: PAYMENT_METHOD_CODES): StorablePaymentCompositionOption<CardMetadata | PayPalMetadata, ApplePayConfig | PayPalConfig | GooglePayConfig | undefined> | undefined;
74
75
  static isPaymentInstallmentsEnabled(paymentMethod: PAYMENT_METHOD_CODES): boolean | undefined;
75
76
  static getPaymentInstallmentOptions(paymentMethod: PAYMENT_METHOD_CODES): PaymentInstallmentsConfig;
@@ -851,6 +852,16 @@ declare enum AuthorizationFailureReasons {
851
852
  UNKNOWN_ERROR = "UNKNOWN_ERROR"
852
853
  }
853
854
 
855
+ interface AuthFailedMsgOptions {
856
+ translations?: {
857
+ label?: string;
858
+ };
859
+ styles?: Partial<CSSStyleDeclaration>;
860
+ configuration?: {
861
+ autoHideTTL?: number;
862
+ };
863
+ }
864
+
854
865
  interface GooglePayButtonOptions extends StoreInstrumentElementOptions {
855
866
  environment?: PayrailsEnvironment;
856
867
  merchantInfo?: google.payments.api.MerchantInfo;
@@ -1091,6 +1102,9 @@ interface DropinOptions {
1091
1102
  addressSelector?: AddressSelectorElementOptions['styles'];
1092
1103
  mercadoPago?: GenericRedirectDropinOptions['styles'];
1093
1104
  };
1105
+ configuration?: {
1106
+ authFailMsg?: AuthFailedMsgOptions['configuration'];
1107
+ };
1094
1108
  }
1095
1109
  interface ContainerStyles {
1096
1110
  styles?: Partial<CSSStyleDeclaration>;