@salla.sa/twilight-components
Version:
Salla Web Component
21 lines (20 loc) • 522 B
TypeScript
interface CashbackResponse {
offer_id: number;
amount: number | string;
currency: string;
offer_type: "fixed_amount" | "percentage";
payment_method_restrictions: {
included: string[];
excluded: string[];
};
}
export declare class SallaCashbackBanner {
host: HTMLElement;
cashbackData: CashbackResponse;
productId: string | number;
componentWillLoad(): Promise<void>;
private getPaymentMethodsText;
private getCashbackMessage;
render(): any;
}
export {};