Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@

@Getter
public class MobileBookmarkResponse extends BookmarkResponse {
@Schema(description = "할인 가격", example = "79500")
private int discountPrice;
@Schema(description = "약정 할인 가격", example = "25")
private int durationDiscountRate;

@Schema(description = "프리미어 할인 가격", example = "25")
private int premierDiscountRate;

@Schema(description = "데이터", example = "128GB")
private String data;
Expand All @@ -20,7 +23,8 @@ public class MobileBookmarkResponse extends BookmarkResponse {

public MobileBookmarkResponse(MobilePlan plan, Long bookmarkId, boolean isBookmarked) {
super(plan, bookmarkId, isBookmarked);
this.discountPrice = (plan.getPlanPrice() * plan.getDurationDiscountRate() / 100) - plan.getPremierDiscountRate();
this.durationDiscountRate = plan.getDurationDiscountRate();
this.premierDiscountRate = plan.getPremierDiscountRate();
this.data = plan.getData();
this.voiceCall = plan.getVoiceCall();
this.message = plan.getMessage();
Expand Down
Loading