Files
negareh-api/src/seeders/data/coupons.data.ts
T
2026-01-07 12:13:45 +03:30

95 lines
2.3 KiB
TypeScript

import { CouponType } from '../../modules/coupons/interface/coupon';
export interface CouponData {
restaurantSlug: string;
code: string;
name: string;
description?: string;
type: CouponType;
value: number;
maxDiscount?: number;
minOrderAmount?: number;
maxUses?: number;
maxUsesPerUser?: number;
startDate?: string;
endDate?: string;
isActive: boolean;
}
export const couponsData: CouponData[] = [
{
restaurantSlug: 'zhivan',
code: 'WELCOME10',
name: 'خوش آمدگویی ۱۰٪',
description: 'تخفیف ۱۰ درصدی برای اولین خرید',
type: CouponType.PERCENTAGE,
value: 10,
maxDiscount: 50000,
minOrderAmount: 100000,
maxUses: 100,
maxUsesPerUser: 1,
isActive: true,
},
{
restaurantSlug: 'zhivan',
code: 'FIXED50K',
name: 'تخفیف ۵۰ هزار تومانی',
description: 'تخفیف ثابت ۵۰ هزار تومانی',
type: CouponType.FIXED,
value: 50000,
minOrderAmount: 200000,
maxUses: 50,
maxUsesPerUser: 2,
isActive: true,
},
{
restaurantSlug: 'zhivan',
code: 'WEEKEND20',
name: 'تعطیلات ۲۰٪',
description: 'تخفیف ۲۰ درصدی برای آخر هفته',
type: CouponType.PERCENTAGE,
value: 20,
maxDiscount: 100000,
minOrderAmount: 150000,
maxUses: 200,
isActive: true,
},
{
restaurantSlug: 'boote',
code: 'FIRST15',
name: 'اولین خرید ۱۵٪',
description: 'تخفیف ۱۵ درصدی برای اولین خرید',
type: CouponType.PERCENTAGE,
value: 15,
maxDiscount: 75000,
minOrderAmount: 100000,
maxUses: 100,
maxUsesPerUser: 1,
isActive: true,
},
{
restaurantSlug: 'boote',
code: 'SAVE30K',
name: 'صرفه جویی ۳۰ هزار',
description: 'تخفیف ثابت ۳۰ هزار تومانی',
type: CouponType.FIXED,
value: 30000,
minOrderAmount: 100000,
maxUses: 100,
isActive: true,
},
{
restaurantSlug: 'boote',
code: 'VIP25',
name: 'ویژه ۲۵٪',
description: 'تخفیف ویژه ۲۵ درصدی',
type: CouponType.PERCENTAGE,
value: 25,
maxDiscount: 150000,
minOrderAmount: 200000,
maxUses: 50,
maxUsesPerUser: 1,
isActive: true,
},
];