@salla.sa/twilight-components
Version:
Salla Web Component
46 lines (45 loc) • 1.07 kB
TypeScript
import { LoyaltyProgram, Prize } from './interfaces';
import { TrackedPromiseState } from '../../Helpers/tracked-promise';
export declare class SallaLoyaltyPanel {
/**
* ref to rewards modal
*/
private rewardsModal;
/**
* ref to details modal
*/
private detailsModal;
/**
* ref to exchange modal
*/
private exchangeModal;
/**
* The exchanged prize point
*/
prizePoints: string | number;
/**
* Available customer points with which they can exchange.
*/
customerPoints: number;
/**
* The prize title
*/
prizeTitle: string;
/**
* prize to show in details or exchange modals
*/
currentPrize: Prize;
/**
* loyalty program data
*/
program: TrackedPromiseState<LoyaltyProgram>;
/**
* customer points fetched from API
*/
points: TrackedPromiseState<number>;
private handleExchangeSucceeded;
private handleResetSucceeded;
componentWillLoad(): any;
disconnectedCallback(): void;
render(): any;
}