49 lines
1.2 KiB
TypeScript
49 lines
1.2 KiB
TypeScript
import type { CouponType } from 'src/modules/coupons/interface/coupon';
|
|
|
|
// export enum OrderStatus {
|
|
// // Initial status
|
|
// Pending = 'pending',
|
|
|
|
// // Cancellation statuses
|
|
// CancelledBySystem = 'cancelledBySystem',
|
|
// CancelledByUser = 'cancelledByUser',
|
|
// RejectedByRestaurant = 'rejectedByRestaurant',
|
|
|
|
// // Active processing statuses
|
|
// Confirmed = 'confirmed',
|
|
// Preparing = 'preparing',
|
|
|
|
// // Ready for pickup/delivery statuses
|
|
// ReadyForCustomerPickup = 'readyForCustomerPickup',
|
|
// ReadyForDineIn = 'readyForDineIn',
|
|
// ReadyForDeliveryCar = 'readyForDeliveryCar',
|
|
// ReadyForDeliveryCourier = 'readyForDeliveryCourier',
|
|
|
|
// Shipping = 'shipping',
|
|
// // Final status
|
|
// Delivered = 'delivered',
|
|
// }
|
|
export enum OrderStatus {
|
|
CREATED = 'created',
|
|
PENDING_PAYMENT = 'pendingPayment',
|
|
PAID = 'paid',
|
|
CONFIRMED = 'confirmed',
|
|
PREPARING = 'preparing',
|
|
READY = 'ready',
|
|
SHIPPED = 'shipped',
|
|
COMPLETED = 'completed',
|
|
CANCELED = 'canceled',
|
|
FAILED = 'failed',
|
|
REFUNDED = 'refunded',
|
|
}
|
|
|
|
export interface OrderCouponDetail {
|
|
couponId: string;
|
|
couponName: string;
|
|
couponCode: string;
|
|
type: CouponType;
|
|
value: number;
|
|
|
|
maxDiscount?: number;
|
|
}
|