44 lines
840 B
TypeScript
44 lines
840 B
TypeScript
import type { CouponType } from 'src/modules/coupons/interface/coupon';
|
|
|
|
export interface OrderUserAddress {
|
|
address?: string;
|
|
latitude?: number;
|
|
longitude?: number;
|
|
city: string;
|
|
province: string;
|
|
postalCode?: string;
|
|
fullName: string;
|
|
phone: string;
|
|
}
|
|
|
|
export interface OrderCarAddress {
|
|
carModel: string;
|
|
carColor: string;
|
|
plateNumber: string;
|
|
phone: string;
|
|
}
|
|
|
|
export enum OrderStatus {
|
|
PENDING_PAYMENT = 'pendingPayment',
|
|
PAID = 'paid',
|
|
CONFIRMED = 'confirmed',
|
|
PREPARING = 'preparing',
|
|
READY = 'ready',
|
|
SHIPPED = 'shipped',
|
|
COMPLETED = 'completed',
|
|
|
|
CANCELED = 'canceled',
|
|
}
|
|
|
|
export interface OrderCouponDetail {
|
|
couponId: string;
|
|
couponName: string;
|
|
couponCode: string;
|
|
type: CouponType;
|
|
value: number;
|
|
|
|
maxDiscount?: number;
|
|
}
|
|
|
|
export type StatusTransitionRef = 'user' | 'admin';
|