Files
BackOffice.BFF/src/BackOffice.BFF.Application/DiscountOrderCQ/Queries/GetOrderById/GetOrderByIdResponseDto.cs

45 lines
1.4 KiB
C#
Raw Normal View History

namespace BackOffice.BFF.Application.DiscountOrderCQ.Queries.GetOrderById;
public class GetOrderByIdResponseDto
{
public long Id { get; set; }
public long UserId { get; set; }
public string TrackingCode { get; set; }
public int Status { get; set; }
public string StatusTitle { get; set; }
public long TotalPrice { get; set; }
public long DiscountBalanceUsed { get; set; }
public long GatewayPayment { get; set; }
public long FinalPrice { get; set; }
public string PaymentTransactionCode { get; set; }
public string AdminNote { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? PaidAt { get; set; }
public AddressInfoDto ShippingAddress { get; set; }
public List<OrderItemDto> Items { get; set; } = new();
}
public class AddressInfoDto
{
public long Id { get; set; }
public string RecipientName { get; set; }
public string RecipientPhone { get; set; }
public string Province { get; set; }
public string City { get; set; }
public string PostalCode { get; set; }
public string FullAddress { get; set; }
}
public class OrderItemDto
{
public long Id { get; set; }
public long ProductId { get; set; }
public string ProductTitle { get; set; }
public long UnitPrice { get; set; }
public int DiscountPercent { get; set; }
public int Quantity { get; set; }
public long TotalPrice { get; set; }
public long DiscountedPrice { get; set; }
}