UNPKG

@salla.sa/twilight-components

Version:
66 lines (65 loc) 1.66 kB
export declare class SallaInstallment { private tabbyBorderRemoved; private tabbyRemoveBorderTries; host: HTMLElement; /** * Current product price */ price: string; /** * Language code */ language: string; /** * Currency code */ currency: string; /** * Country code */ country: string; tabbyIsActive: boolean; spotiiIsActive: boolean; tamaraIsActive: null | { publicKey: string; }; mispayActive: null | { merchantCode: string; publicKey: string; }; emkanIsActive: boolean; madfuActive: boolean; rajehiIsActive?: { pointsPerRiyal: number; }; klarnaIsActive: null | { clientId: string; dataKey?: string; locales?: string[]; }; installment_sheria_text: (key: string, replacement: object) => string; componentWillLoad(): Promise<void>; componentDidLoad(): void; render(): any; renderInstallments(isUpdating?: boolean): void; private isValidPrice; loadExternalScript({ src, onLoad, position, }: { src: string; onLoad?: HTMLScriptElement['onload']; position: 'head' | 'body'; }): void; loadTamara({ isUpdating }: { isUpdating: boolean; }): void; loadKlarna(isUpdating: boolean): void; getKlarnaLocale(): string | null; shouldShowMispay(): { merchantCode: string; publicKey: string; }; /** * this is workaround to remove the default border and add margin * we will try to remove tabby border 5 times for 7.5 seconds */ removeTabbyBorder(): void; }