Skip to content

Commit

Permalink
[update feature] 할인 조건 Type 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
creaton60 committed Jan 16, 2020
1 parent 17747b2 commit d63f3d8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
package study.book.object.movie.condition;

import study.book.object.movie.Screening;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

public interface DiscountCondition {
import java.time.DayOfWeek;
import java.time.LocalTime;

boolean isSatisfiedBy(Screening screening);
@Getter @Setter
@ToString
public class DiscountCondition {
private DiscountConditionType type;

private int sequence;

private DayOfWeek dayOfWeek;
private LocalTime startTime;
private LocalTime endTime;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package study.book.object.movie.condition;

public enum DiscountConditionType {
SEQUENCE, // 순번 조건
PERIOD //기간 조건
}

0 comments on commit d63f3d8

Please sign in to comment.