order calc
This commit is contained in:
@@ -26,7 +26,7 @@ export enum OrderStatusEnum {
|
||||
}
|
||||
|
||||
|
||||
export interface AddOrderItem {
|
||||
export interface IAddOrderItem {
|
||||
productId: bigint;
|
||||
quantity: number
|
||||
attributesValues: string[]
|
||||
@@ -36,5 +36,17 @@ export interface AddOrderItem {
|
||||
discount?: number
|
||||
}
|
||||
|
||||
export type UpdateOrderItem = Partial<AddOrderItem>
|
||||
export type IUpdateOrderItem = Partial<IAddOrderItem>
|
||||
|
||||
export interface ICreateOrder {
|
||||
userId: string
|
||||
items: IAddOrderItem[];
|
||||
status: OrderStatusEnum
|
||||
//optional
|
||||
enableTax?: Boolean
|
||||
attachments?: string[]
|
||||
paymentMethod?: string
|
||||
adminId?: string
|
||||
estimatedDays?: number
|
||||
designerId?: string
|
||||
}
|
||||
Reference in New Issue
Block a user