- Categorie
- ProductInfo
This commit is contained in:
@@ -1,9 +1,29 @@
|
||||
import { IUserFields } from './UserStore'
|
||||
|
||||
|
||||
export interface IProductInfo {
|
||||
_id?: any
|
||||
code?: string,
|
||||
name?: string,
|
||||
description?: string,
|
||||
department?: string,
|
||||
idCatProds?: string[],
|
||||
catprods?: ICatProd[],
|
||||
color?: string,
|
||||
size?: string,
|
||||
weight?: number,
|
||||
unit?: number,
|
||||
stars?: number,
|
||||
date?: Date,
|
||||
icon?: string,
|
||||
img?: string
|
||||
}
|
||||
|
||||
export interface IProduct {
|
||||
_id?: any
|
||||
active?: boolean
|
||||
idProductInfo?: string,
|
||||
productInfo: IProductInfo,
|
||||
idProducer?: string,
|
||||
idProvider?: string,
|
||||
idStorehouses?: string[],
|
||||
@@ -14,30 +34,18 @@ export interface IProduct {
|
||||
storehouses: IStorehouse[],
|
||||
gasordines: IGasordine[],
|
||||
provider?: IProvider,
|
||||
code?: string,
|
||||
name?: string,
|
||||
description?: string,
|
||||
department?: string,
|
||||
category?: string,
|
||||
price: number,
|
||||
after_price?: string,
|
||||
color?: string,
|
||||
size?: string,
|
||||
quantityAvailable?: number,
|
||||
bookableAvailableQty?: number,
|
||||
QuantitaOrdinateInAttesa?: number,
|
||||
QuantitaPrenotateInAttesa?: number,
|
||||
stockQty: number,
|
||||
minBuyQty: number,
|
||||
maxBookableQty: number,
|
||||
bookableQty: number,
|
||||
canBeShipped?: boolean,
|
||||
canBeBuyOnline?: boolean,
|
||||
weight?: number,
|
||||
unit?: number,
|
||||
stars?: number,
|
||||
date?: Date,
|
||||
icon?: string,
|
||||
img?: string
|
||||
}
|
||||
|
||||
export interface IBaseOrder {
|
||||
@@ -50,25 +58,15 @@ export interface IOrder {
|
||||
userId?: string
|
||||
status?: number
|
||||
idProduct?: string
|
||||
idProducer?: string
|
||||
idProvider?: string
|
||||
idGasordine?: string
|
||||
idStorehouse?: string
|
||||
idScontisticas?: string[]
|
||||
price: number
|
||||
idGasordine?: string
|
||||
TotalPriceProduct: number
|
||||
price: number
|
||||
after_price?: string
|
||||
color?: string
|
||||
size?: string
|
||||
quantity: number
|
||||
quantitypreordered: number
|
||||
weight?: number
|
||||
stars?: number
|
||||
product?: IProduct
|
||||
producer?: IProducer
|
||||
storehouse?: IStorehouse
|
||||
scontisticas?: IScontistica[]
|
||||
provider?: IProvider
|
||||
gasordine?: IGasordine
|
||||
date_created?: Date
|
||||
date_checkout?: Date
|
||||
@@ -82,6 +80,8 @@ export interface IProductsState {
|
||||
products: IProduct[]
|
||||
cart: ICart
|
||||
orders: IOrderCart[]
|
||||
catprods: ICatProd[]
|
||||
productInfos: IProductInfo[]
|
||||
}
|
||||
|
||||
export interface IProducer {
|
||||
@@ -110,6 +110,12 @@ export interface ICategory {
|
||||
img?: string,
|
||||
}
|
||||
|
||||
export interface ICatProd {
|
||||
_id?: any
|
||||
name: string,
|
||||
img?: string,
|
||||
}
|
||||
|
||||
export interface IStorehouse {
|
||||
_id?: any
|
||||
idapp?: string
|
||||
|
||||
Reference in New Issue
Block a user