ShopPlatform.Web 1.0.0.0
농산물, 소프트웨어 라이선스와 개발 용역을 직접 판매하는 CodeMaru 직영 쇼핑몰입니다.
로딩중...
검색중...
일치하는것 없음
Order.cs
이 파일의 문서화 페이지로 가기
1namespace ShopPlatform.Models;
2
11public sealed class Order
12{
21 public int Id { get; set; }
30 public string OrderNo { get; set; } = string.Empty;
39 public string CustomerName { get; set; } = string.Empty;
48 public string CustomerEmail { get; set; } = string.Empty;
57 public string CustomerPhone { get; set; } = string.Empty;
66 public string ShippingAddress { get; set; } = string.Empty;
75 public decimal TotalAmount { get; set; }
84 public string Status { get; set; } = "pending";
93 public string? TransactionId { get; set; }
102 public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
111 public List<OrderLine> Lines { get; set; } = new();
112}
113
122public sealed class OrderLine
123{
132 public int Id { get; set; }
141 public int OrderId { get; set; }
150 public int ProductId { get; set; }
159 public string ProductName { get; set; } = string.Empty;
168 public decimal UnitPrice { get; set; }
177 public int Quantity { get; set; }
186 public decimal Subtotal => UnitPrice * Quantity;
187}
List< OrderLine > Lines
Definition Order.cs:111