UNPKG

@salla.sa/twilight-components

Version:
55 lines (54 loc) 1.35 kB
export declare class SallaInstallment { private tabbyBorderRemoved; private tabbyRemoveBorderTries; host: HTMLElement; constructor(); /** * 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; }; installment_sheria_text: (key: string, replacement: object) => string; 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; shouldShowMispay(): boolean; /** * 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; }