summaryrefslogtreecommitdiff
path: root/src-migrate/types/productVariant.ts
blob: 31cedf8c622f35f4cc4ca77dad5f98e9fe6b755c (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
36
37
export interface IProductVariantDetail {
  id: number;
  image: string;
  code: string;
  name: string;
  weight: number;
  attribute_set_id: number;
  attribute_set_name: string;
  search_keywords: string;
  is_in_bu: boolean;
  is_flashsale: {
    remaining_time: number;
    is_flashsale: boolean;
  };
  price: {
    price: number;
    price_discount: number;
    discount_percentage: number;
  };
  manufacture:
    | {
        id: string;
        name: string;
      }
    | {};
  parent: {
    id: string;
    name: string;
    image: string;
  };
  attributes: string[];
}

export interface IProductVariantSLA {
  qty: number;
  sla_date: string;
}