public interface ProductDiscountDraft extends WithKey
Modifier and Type | Method and Description |
---|---|
LocalizedString |
getDescription() |
String |
getKey() |
LocalizedString |
getName() |
String |
getPredicate() |
String |
getSortOrder() |
ZonedDateTime |
getValidFrom() |
ZonedDateTime |
getValidUntil() |
ProductDiscountValue |
getValue() |
Boolean |
isActive() |
static ProductDiscountDraft |
of(LocalizedString name,
LocalizedString description,
ProductDiscountPredicate predicate,
ProductDiscountValue value,
String sortOrder,
boolean active) |
static ProductDiscountDraft |
of(LocalizedString name,
String key,
LocalizedString description,
ProductDiscountPredicate predicate,
ProductDiscountValue value,
String sortOrder,
boolean active) |
Boolean isActive()
@Nullable LocalizedString getDescription()
LocalizedString getName()
String getPredicate()
String getSortOrder()
@Nullable ZonedDateTime getValidFrom()
@Nullable ZonedDateTime getValidUntil()
ProductDiscountValue getValue()
static ProductDiscountDraft of(LocalizedString name, LocalizedString description, ProductDiscountPredicate predicate, ProductDiscountValue value, String sortOrder, boolean active)
static ProductDiscountDraft of(LocalizedString name, @Nullable String key, LocalizedString description, ProductDiscountPredicate predicate, ProductDiscountValue value, String sortOrder, boolean active)