41 lines
873 B
TypeScript
41 lines
873 B
TypeScript
export enum OrderStatusEnum {
|
|
CREATED = 'created',
|
|
|
|
INVOICED = 'invoiced',
|
|
WAITING_to_CONFIRM_INVOICE = 'waiting_to_confirm_invoice',
|
|
|
|
|
|
DESIGN_INITIATED = 'design_initiated',
|
|
DESIGN_FINISHED = 'design_finished',
|
|
DESIGN_REVISION = 'design_revision',
|
|
|
|
READY_TO_PRINTING = 'ready_to_printing',
|
|
IN_PRINTING = 'in_printing',
|
|
|
|
READY_FOR_DELIVERY = 'ready_for_delivery',
|
|
DELIVERED = 'delivered',
|
|
|
|
AFTER_PRINT_COVER = 'after_print_cover',
|
|
AFTER_PRINT_BOXING = 'after_print_boxing',
|
|
AFTER_PRINT_CARTONING = 'after_print_cartoning',
|
|
|
|
|
|
FINISHED = 'finished',
|
|
|
|
CANCELED = 'canceled',
|
|
}
|
|
|
|
|
|
export interface AddOrderItem {
|
|
productId: bigint;
|
|
quantity: number
|
|
attributesValues: string[]
|
|
description: string
|
|
attachments: { url: string, type: string }[]
|
|
unitPrice?: number
|
|
discount?: number
|
|
}
|
|
|
|
export type UpdateOrderItem = Partial<AddOrderItem>
|
|
|