UNPKG

scheunemann-interfaces

Version:
27 lines (26 loc) 765 B
import { EDiscountType } 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 { id: string; createdAt: Date; updatedAt: Date; active: boolean; concludedAt: Date | null; isPublic: boolean; key: string; name: string; activatedAt: Date | null; rules: IVoucherRule[]; type: EDiscountType; amount: number; sponsorship: IVoucherSponsorship[]; status: EVoucherStatus; targetsId: string[]; targetType: EVoucherTargetTypes; limit: number; isExclusive: boolean; usedCount: number; }