summaryrefslogtreecommitdiff
path: root/src-migrate/common/types/promotion.ts
blob: 9e62cc3f37d207fd46d26e63f9fd9152e3ea5428 (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
import { IProductVariant } from './productVariant';

export interface IPromotion {
  id: number;
  program_id: number;
  name: string;
  type: {
    value: string;
    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;
}