blob: 1f8316cff48beb1b94793e0f598343f4c9296431 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
import { IProductVariant } from './productVariant';
export interface IPromotion {
id: number;
program_id: number;
name: string;
type: {
value: CategoryPromo;
label: string;
};
limit: number;
limit_user: number;
limit_trx: number;
price: number;
total_qty: number;
products: {
product_id: number;
qty: number;
}[];
free_products: {
product_id: number;
qty: number;
}[];
}
export interface IProductVariantPromo extends IProductVariant {
qty: number;
}
export type CategoryPromo = 'bundling' | 'discount_loading' | 'merchandise';
export interface ICategoryPromo {
value: CategoryPromo;
label: string;
}
|