@open-tender/store
Version:
A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API
15 lines (14 loc) • 412 B
TypeScript
import { CustomerIdentify, Discounts, OrderCart } from '@open-tender/types';
declare const useCustomerRewards: () => {
customer: CustomerIdentify | null;
hasDeals: boolean;
hasRewards: boolean;
hasPoints: boolean;
deals: Discounts;
rewards: Discounts;
items: OrderCart;
points: number;
pointsApplied: number;
pointsRemaining: number;
};
export default useCustomerRewards;