DiscountList: {
items: {
id: string;
createdAt: string;
updatedAt: string;
vendorId: string;
name: string;
description: string;
isStudentOnly: boolean;
maxUsesPerUser: number | null;
maxUsesTotal: number | null;
restrictions: string[];
validFrom: string | null;
expiresAt: string | null;
timesUsed: number;
rules: {
id: string;
menuId: string | null;
menuItemId: string | null;
discountKind: "flat" | "percent";
discountAmount: number;
maxDiscountAmount: number | null;
maxDiscountQuantity: number | null;
conditions: {
menuId: string | null;
menuItemId: string | null;
minQuantity: number | null;
minPrice: number | null;
}[];
}[];
}[];
total: number;
}
Type Declaration
-
items: {
id: string;
createdAt: string;
updatedAt: string;
vendorId: string;
name: string;
description: string;
isStudentOnly: boolean;
maxUsesPerUser: number | null;
maxUsesTotal: number | null;
restrictions: string[];
validFrom: string | null;
expiresAt: string | null;
timesUsed: number;
rules: {
id: string;
menuId: string | null;
menuItemId: string | null;
discountKind: "flat" | "percent";
discountAmount: number;
maxDiscountAmount: number | null;
maxDiscountQuantity: number | null;
conditions: {
menuId: string | null;
menuItemId: string | null;
minQuantity: number | null;
minPrice: number | null;
}[];
}[];
}[]
-
total: number
A page of discounts.