michangarrito/apps/backend/dist/modules/orders/entities/order.entity.d.ts
rckrdmrd 97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00

53 lines
1.3 KiB
TypeScript

import { OrderItem } from './order-item.entity';
import { Customer } from '../../customers/entities/customer.entity';
export declare enum OrderStatus {
PENDING = "pending",
CONFIRMED = "confirmed",
PREPARING = "preparing",
READY = "ready",
DELIVERED = "delivered",
COMPLETED = "completed",
CANCELLED = "cancelled"
}
export declare enum OrderChannel {
WHATSAPP = "whatsapp",
WEB = "web",
APP = "app",
POS = "pos"
}
export declare enum OrderType {
PICKUP = "pickup",
DELIVERY = "delivery",
DINE_IN = "dine_in"
}
export declare class Order {
id: string;
tenantId: string;
customerId: string;
orderNumber: string;
channel: OrderChannel;
subtotal: number;
deliveryFee: number;
discountAmount: number;
total: number;
orderType: OrderType;
deliveryAddress: string;
deliveryNotes: string;
estimatedDeliveryAt: Date;
status: OrderStatus;
paymentStatus: string;
paymentMethod: string;
confirmedAt: Date;
preparingAt: Date;
readyAt: Date;
completedAt: Date;
cancelledAt: Date;
cancelledReason: string;
customerNotes: string;
internalNotes: string;
createdAt: Date;
updatedAt: Date;
items: OrderItem[];
customer: Customer;
}