You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
421 B
TypeScript

export interface Coupon {
id: string;
name: string;
type: CouponType;
value: number;
minAmount: number;
startTime: Date;
endTime: Date;
status: CouponStatus;
adminId: string;
userId: string;
canUse:boolean;
}
export enum CouponType {
FULL_REDUCTION = 'FULL_REDUCTION',
DISCOUNT = 'DISCOUNT',
}
export enum CouponStatus {
ACTIVE = 'ACTIVE',
INACTIVE = 'INACTIVE',
EXPIRED = 'EXPIRED',
}