UNPKG

cannoli-interfaces

Version:
27 lines (26 loc) 797 B
import { EDiscountType, IInfo, ICannoliInfo } from '../../general'; import { EVoucherStatus } from '../enums'; import { EVoucherTargetTypes } from '../enums/target-types.enum'; import { IVoucherRule } from './i-voucher-rule'; import { IVoucherSponsorship } from './i-voucher-sponsorship'; export interface IVoucher { info: ICannoliInfo | IInfo; concludedAt: Date | null; createdAt: Date; id: string; isPublic: boolean; key: string; name: string; activatedAt: Date | null; rules: IVoucherRule[]; type: EDiscountType; amount: number; sponsorship: IVoucherSponsorship[]; status: EVoucherStatus; targetsId: string[]; targetType: EVoucherTargetTypes; updatedAt: Date; limit: number; isExclusive: boolean; usedCount: number; }