Skip to content

Commit

Permalink
#99: update dtos in external api to match parcels
Browse files Browse the repository at this point in the history
  • Loading branch information
eggwhat committed Jan 9, 2024
1 parent 04152e8 commit 338d6dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public OrderDto(OfferDto offer, Guid customerId, string status, string company)
VipPackage = offer.VipPackage,
CreatedAt = offer.InquireDate,
ValidTo = DateTime.MinValue,
CalculatedPrice = (decimal)offer.TotalPrice
CalculatedPrice = (decimal)offer.TotalPrice,
PriceBreakDown = offer.PriceBreakDown
};
Status = status;
CourierCompany = company;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class ParcelDto
public DateTime CreatedAt { get; set; }
public DateTime ValidTo { get; set; }
public decimal CalculatedPrice { get; set; }
public List<PriceBreakDownItemDto> PriceBreakDown { get; set; }

public ParcelDto()
{
Expand Down

0 comments on commit 338d6dc

Please sign in to comment.