34 lines
673 B
TypeScript
34 lines
673 B
TypeScript
export interface PromotionResponse {
|
|
promotions: Promotion[];
|
|
}
|
|
|
|
export interface Promotion {
|
|
id: string;
|
|
title: string;
|
|
description: string;
|
|
badgeText: string;
|
|
promotionType: PromotionType;
|
|
discountValue: number;
|
|
minimumOrderAmount: number;
|
|
maximumDiscount: number | null;
|
|
merchantId: string | null;
|
|
applicableProducts: ApplicableProduct[];
|
|
applicableCategories: ApplicableCategory[];
|
|
}
|
|
|
|
export type PromotionType =
|
|
| 'PERCENTAGE_DISCOUNT'
|
|
| 'FLAT_DISCOUNT'
|
|
| 'BUY_ONE_GET_ONE'
|
|
| 'FREE_DELIVERY';
|
|
|
|
export interface ApplicableProduct {
|
|
id: string;
|
|
name?: string;
|
|
}
|
|
|
|
export interface ApplicableCategory {
|
|
id: string;
|
|
name?: string;
|
|
}
|