public interface DiscountCodeDraft
DiscountCodeDraftBuilder
,
DiscountCodeDraftDsl
Modifier and Type | Method and Description |
---|---|
List<Reference<CartDiscount>> |
getCartDiscounts() |
String |
getCartPredicate() |
String |
getCode() |
CustomFieldsDraft |
getCustom() |
LocalizedString |
getDescription() |
List<String> |
getGroups() |
Long |
getMaxApplications() |
Long |
getMaxApplicationsPerCustomer() |
LocalizedString |
getName() |
ZonedDateTime |
getValidFrom() |
ZonedDateTime |
getValidUntil() |
Boolean |
isActive() |
static DiscountCodeDraftDsl |
of(String code,
List<Reference<CartDiscount>> cartDiscounts) |
static DiscountCodeDraftDsl |
of(String code,
Referenceable<CartDiscount> cartDiscount) |
@Nullable LocalizedString getName()
@Nullable LocalizedString getDescription()
String getCode()
List<Reference<CartDiscount>> getCartDiscounts()
Boolean isActive()
@Nullable ZonedDateTime getValidFrom()
@Nullable ZonedDateTime getValidUntil()
@Nullable CustomFieldsDraft getCustom()
static DiscountCodeDraftDsl of(String code, Referenceable<CartDiscount> cartDiscount)
static DiscountCodeDraftDsl of(String code, List<Reference<CartDiscount>> cartDiscounts)