This commit is contained in:
2026-01-10 12:00:13 +03:30
parent a1ca2a62c8
commit bc00acb26b
3 changed files with 9 additions and 82 deletions
+2 -34
View File
@@ -1,42 +1,10 @@
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',
NEW = 'new',
PREPARING = 'preparing',
DELIVERED_TO_WAITER = 'deliveredToWaiter',
DELIVERED_TO_RECEPTIONIST = 'deliveredToReceptionist',
SHIPPED = 'shipped',
COMPLETED = 'completed',
CANCELED = 'canceled',
SHIPPED = 'shipped',
}
export interface OrderCouponDetail {
couponId: string;
couponName: string;
couponCode: string;
type: CouponType;
value: number;
maxDiscount?: number;
}
export type StatusTransitionRef = 'user' | 'admin';