@revolut/checkout
Advanced tools
Comparing version 1.1.13 to 1.1.14
{ | ||
"name": "@revolut/checkout", | ||
"version": "1.1.13", | ||
"version": "1.1.14", | ||
"description": "RevolutCheckout.js as npm module", | ||
@@ -5,0 +5,0 @@ "author": "John Grishin <hi@johngrish.in>", |
@@ -178,2 +178,8 @@ import { MODE, LOCALES } from './constants'; | ||
}; | ||
/** Similar to redirectUrls option, however only used for mobile devices */ | ||
mobileRedirectUrls?: { | ||
success: string; | ||
failure: string; | ||
cancel: string; | ||
}; | ||
billingAddress?: Address; | ||
@@ -281,3 +287,3 @@ buttonStyle?: ButtonStyleOptions; | ||
/** The upsell SDK module */ | ||
upsell: (option: RevolutUpsellModuleOptions) => RevolutPaymentsModuleInstance; | ||
upsell: (option: RevolutUpsellModuleOptions) => RevolutUpsellModuleInstance; | ||
} | ||
@@ -308,2 +314,4 @@ export interface RevolutPaymentsModuleInstance { | ||
promotionalBanner: UpsellModulePromotionalBannerInstance; | ||
/** Enrollment confirmation banner */ | ||
enrollmentConfirmationBanner: UpsellModuleEnrollmentConfirmationBannerInstance; | ||
/** Manually destroy the instance */ | ||
@@ -342,2 +350,15 @@ destroy: () => void; | ||
} | ||
export interface UpsellModuleEnrollmentConfirmationBannerInstance { | ||
mount: (target: string | HTMLElement, options: WidgetUpsellEnrollmentConfirmationBannerOptions) => void; | ||
destroy: () => void; | ||
} | ||
export interface WidgetUpsellEnrollmentConfirmationBannerOptions { | ||
orderToken: string; | ||
/** Prefilled customer details within the banner */ | ||
customer?: Partial<CustomerDetails>; | ||
/** Whether promotional banner should be shown if user has not enrolled */ | ||
promotionalBanner?: boolean; | ||
/** Style object for promotional banner customisation */ | ||
promotionalBannerStyle?: WidgetUpsellPromotionalBannerOptions['style']; | ||
} | ||
export interface RevolutUpsellModuleOptions { | ||
@@ -344,0 +365,0 @@ publicToken: string; |
52806
1102