Skip to content

Commit

Permalink
πŸ› Fix[#12]: Card customImage λ°˜ν™˜ μΆ”κ°€
Browse files Browse the repository at this point in the history
  • Loading branch information
kduoh99 committed Nov 23, 2024
1 parent e641e08 commit 237d658
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
public record PaymentPageResponse(
Integer totalPoint,
Integer totalPay,
Integer percent
Integer percent,
String customImage
) {
public static PaymentPageResponse of(Card card, User user, Store store) {
return PaymentPageResponse.builder()
.totalPoint(card.getTotalPoint())
.totalPay(user.getPay().getTotalPay())
.percent(store.getPercent())
.customImage(card.getCustomImage())
.build();
}
}

0 comments on commit 237d658

Please sign in to comment.