UNPKG

@open-tender/utils

Version:

A library of utils for use with Open Tender applications that utilize our cloud-based Order API.

7 lines (6 loc) 559 B
import { Discount, DiscountEnhanced, Discounts, OrderType, ServiceType } from '@open-tender/types'; export declare const makeValidDeals: (deals: Discounts | null, orderType?: OrderType | null, serviceType?: ServiceType | null, revenueCenterId?: number | null) => Discounts; export declare const makeLimitations: (item: Discount) => string; export declare const makeDiscountEnhanced: (item: Discount) => DiscountEnhanced; export declare const getIsDealExpired: (item: Discount) => boolean; export declare const getIsRewardExpired: (item: Discount) => boolean;