From a76fa3f78baa04fd9f953740aa0704746febaa8b Mon Sep 17 00:00:00 2001 From: Chan Jin Date: Fri, 17 Feb 2023 17:13:56 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20:=20=EC=9E=A5=EB=B0=94=EA=B5=AC?= =?UTF-8?q?=EB=8B=88=20=EC=83=9D=EC=84=B1=EC=8B=9C=EC=97=90=EB=8F=84=20?= =?UTF-8?q?=EB=91=90=EB=91=A5=ED=8B=B0=EC=BC=93=20=EA=B4=80=EB=A0=A8=20?= =?UTF-8?q?=EC=9D=91=EB=8B=B5=20=EC=B6=94=EA=B0=80=20(#372)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/cart/model/dto/response/CartResponse.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/DuDoong-Api/src/main/java/band/gosrock/api/cart/model/dto/response/CartResponse.java b/DuDoong-Api/src/main/java/band/gosrock/api/cart/model/dto/response/CartResponse.java index 50d41fbb..1298844d 100644 --- a/DuDoong-Api/src/main/java/band/gosrock/api/cart/model/dto/response/CartResponse.java +++ b/DuDoong-Api/src/main/java/band/gosrock/api/cart/model/dto/response/CartResponse.java @@ -4,6 +4,7 @@ import band.gosrock.domain.common.vo.Money; import band.gosrock.domain.domains.cart.domain.Cart; import band.gosrock.domain.domains.ticket_item.domain.TicketItem; +import band.gosrock.domain.domains.ticket_item.domain.TicketPayType; import band.gosrock.domain.domains.ticket_item.domain.TicketType; import io.swagger.v3.oas.annotations.media.Schema; import java.util.List; @@ -36,6 +37,12 @@ public class CartResponse { @Schema(description = "티켓의 타입. 승인 , 선착순 두가지입니다.") private final TicketType approveType; + @Schema(description = "티켓의 지불 타입. 두둥티켓, 무료 , 유료 세가지입니다.") + private final TicketPayType ticketPayType; + + @Schema(description = "계좌정보", nullable = true) + private final String accountNumber; + public static CartResponse of( List cartItemResponses, Cart cart, TicketItem item) { return CartResponse.builder() @@ -46,6 +53,8 @@ public static CartResponse of( .isNeedPayment(cart.isNeedPaid()) .totalQuantity(cart.getTotalQuantity()) .approveType(item.getType()) + .ticketPayType(item.getPayType()) + .accountNumber(item.getAccountNumber()) .build(); } }