Skip to content

Commit

Permalink
Merge pull request #356 from catchroom/develop
Browse files Browse the repository at this point in the history
HotFix: 구매자 닉네임 추가
  • Loading branch information
dydgus1052 authored Jan 28, 2024
2 parents 70e4f39 + 05f0919 commit a1ea99d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public static class ProductInfo {
public static class BuyerInfo {
private final String buyerName;
private final String buyerPhoneNumber;
private final String buyerNickName;
}

@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public static class PurchaseHistoryDetailData {
public static class BuyerInfo {
private final String buyerName;
private final String buyerPhoneNumber;
private final String buyerNickname;
}

@Getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public ApiResponse purchaseHistory(User user, Long productId) {

public static PurchaseDetailResponse.BuyerInfo createBuyerInfo(User user) {
return new PurchaseDetailResponse.BuyerInfo(
user.getName(), user.getPhonenumber());
user.getName(), user.getPhonenumber(), user.getNickName());
}

public static PurchaseDetailResponse.UserInfo createUserInfo(BuyHistory buyHistory) {
Expand Down Expand Up @@ -161,7 +161,7 @@ public static PaymentResponse.ProductInfo setProductInfo(

public static PaymentResponse.BuyerInfo setBuyerInfo(User user) {
return new PaymentResponse.BuyerInfo(
user.getName(), user.getPhonenumber());
user.getName(), user.getPhonenumber(), user.getNickName());
}

public static PaymentResponse.PaymentInfo setPaymentInfo(Product product) {
Expand Down

0 comments on commit a1ea99d

Please sign in to comment.