-
public final class Coupon
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final Stringcodeprivate final LocalDateTimeendDateprivate final LocalDateTimestartDateprivate final StringclickUrlprivate final StringbrandDomainprivate final BooleanisForHomepageprivate final StringbrandImageUrlprivate final Stringdescriptionprivate final LocalDateTimesnoozeTimeprivate final List<String>validCountriesCodes
-
Constructor Summary
Constructors Constructor Description Coupon(String id, String code, LocalDateTime endDate, LocalDateTime startDate, String clickUrl, String brandDomain, Boolean isForHomepage, String brandImageUrl, String description, LocalDateTime snoozeTime, List<String> validCountriesCodes)
-
Method Summary
Modifier and Type Method Description final StringgetId()final StringgetCode()final LocalDateTimegetEndDate()final LocalDateTimegetStartDate()final StringgetClickUrl()final StringgetBrandDomain()final BooleangetIsForHomepage()final StringgetBrandImageUrl()final StringgetDescription()final LocalDateTimegetSnoozeTime()final List<String>getValidCountriesCodes()final BooleanmatchesTarget(String address)final BooleanmatchesLocation(String countryCode)final BooleanisValid()final BooleanisSnoozed()-
-
Constructor Detail
-
Coupon
Coupon(String id, String code, LocalDateTime endDate, LocalDateTime startDate, String clickUrl, String brandDomain, Boolean isForHomepage, String brandImageUrl, String description, LocalDateTime snoozeTime, List<String> validCountriesCodes)
-
-
Method Detail
-
getEndDate
final LocalDateTime getEndDate()
-
getStartDate
final LocalDateTime getStartDate()
-
getClickUrl
final String getClickUrl()
-
getBrandDomain
final String getBrandDomain()
-
getIsForHomepage
final Boolean getIsForHomepage()
-
getBrandImageUrl
final String getBrandImageUrl()
-
getDescription
final String getDescription()
-
getSnoozeTime
final LocalDateTime getSnoozeTime()
-
getValidCountriesCodes
final List<String> getValidCountriesCodes()
-
matchesTarget
final Boolean matchesTarget(String address)
-
matchesLocation
final Boolean matchesLocation(String countryCode)
-
-
-
-