40da1bd8df
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 9m33s
- Added Phone property to UserAddressDto for capturing the user's mobile number. - Updated GetOrderByIdQueryHandler to include user mobile in order details. - Enhanced GetCustomerOrderQueryHandler and GetCustomerOrderResponseDto to include PostalCode and UserMobile. - Modified userorder.proto to add postal_code and user_mobile fields in GetUserOrderResponse. - Bumped Protobuf project version to reflect the addition of new features.
38 lines
1.4 KiB
C#
38 lines
1.4 KiB
C#
using CMSMicroservice.Domain.Enums;
|
|
|
|
namespace CMSMicroservice.Application.UserOrderCQ.Queries.GetCustomerOrder;
|
|
|
|
public class GetCustomerOrderResponseDto
|
|
{
|
|
public long Id { get; set; }
|
|
public long Amount { get; set; }
|
|
public long? PackageId { get; set; }
|
|
public long? TransactionId { get; set; }
|
|
public PaymentStatus PaymentStatus { get; set; }
|
|
public DateTime? PaymentDate { get; set; }
|
|
public long UserId { get; set; }
|
|
public long UserAddressId { get; set; }
|
|
public PaymentMethod? PaymentMethod { get; set; }
|
|
public string UserAddressText { get; set; }
|
|
public List<FactorDetailDto> FactorDetails { get; set; } = new();
|
|
public DeliveryStatus DeliveryStatus { get; set; }
|
|
public string TrackingCode { get; set; }
|
|
public string DeliveryDescription { get; set; }
|
|
public string UserFullName { get; set; }
|
|
public string UserNationalCode { get; set; }
|
|
public string PostalCode { get; set; } = string.Empty;
|
|
public string UserMobile { get; set; } = string.Empty;
|
|
public long VatAmount { get; set; }
|
|
public double VatPercentage { get; set; }
|
|
}
|
|
|
|
public class FactorDetailDto
|
|
{
|
|
public long ProductId { get; set; }
|
|
public string ProductTitle { get; set; }
|
|
public string ProductThumbnailPath { get; set; }
|
|
public long? UnitPrice { get; set; }
|
|
public int? Count { get; set; }
|
|
public long? UnitDiscountPrice { get; set; }
|
|
}
|