From c6d2f3376f30ab0abc77c44344c6b8322ff23894 Mon Sep 17 00:00:00 2001 From: Jeonghyun Lee Date: Sat, 14 Sep 2024 21:37:48 +0900 Subject: [PATCH] hotfix: add trackingNumber in GetProductOrderForUser --- .../product/dto/productOrder/GetProductOrderForUser.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/repick/domain/product/dto/productOrder/GetProductOrderForUser.java b/src/main/java/com/example/repick/domain/product/dto/productOrder/GetProductOrderForUser.java index ee2fc3f..57fcf1c 100644 --- a/src/main/java/com/example/repick/domain/product/dto/productOrder/GetProductOrderForUser.java +++ b/src/main/java/com/example/repick/domain/product/dto/productOrder/GetProductOrderForUser.java @@ -10,7 +10,8 @@ public record GetProductOrderForUser( @Schema(description = "브랜드 이름") String brandName, @Schema(description = "상품 이름") String productName, @Schema(description = "상품 이미지 URL") String productImageUrl, - @Schema(description = "구매확정 여부") Boolean isConfirmed + @Schema(description = "구매확정 여부") Boolean isConfirmed, + @Schema(description = "운송장 번호") String trackingNumber ) { public static GetProductOrderForUser from(ProductOrder productOrder, Product product) { return new GetProductOrderForUser( @@ -19,7 +20,8 @@ public static GetProductOrderForUser from(ProductOrder productOrder, Product pro product.getBrandName(), product.getProductName(), product.getThumbnailImageUrl(), - productOrder.isConfirmed() + productOrder.isConfirmed(), + productOrder.getTrackingNumber() ); } }