Skip to content

Commit

Permalink
hotfix: add trackingNumber in GetProductOrderForUser
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunihs committed Sep 14, 2024
1 parent 6afcd83 commit c6d2f33
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -19,7 +20,8 @@ public static GetProductOrderForUser from(ProductOrder productOrder, Product pro
product.getBrandName(),
product.getProductName(),
product.getThumbnailImageUrl(),
productOrder.isConfirmed()
productOrder.isConfirmed(),
productOrder.getTrackingNumber()
);
}
}

0 comments on commit c6d2f33

Please sign in to comment.