namespace PetWash.Api.Models; public class Order { public int Id { get; set; } public int PackageId { get; set; } public Package? Package { get; set; } public DateTime CreatedAt { get; set; } public OrderStatus Status { get; set; } public bool IsPaid { get; set; } public string OutTradeNo { get; set; } = string.Empty; public string PaymentCodeUrl { get; set; } = string.Empty; public DateTimeOffset? PaymentExpiresAt { get; set; } public string PaymentInitError { get; set; } = string.Empty; public DateTime? PaidAt { get; set; } public DateTime? StartedAt { get; set; } public DateTime? CompletedAt { get; set; } } public enum OrderStatus { Created, WaitingPayment, Paid, DoorOpened, DoorClosed, Washing, Completed, Cancelled, Expired, PaymentInitFailed }