public interface Voucher
VoucherInfo
.Modifier and Type | Method and Description |
---|---|
String |
getCode()
Get the voucher code.
|
ValueMap |
getConfig()
Return a map of implementation-specific configuration properties.
|
String |
getDescription()
Return an author-oriented description.
|
String |
getInvalidMessage(SlingHttpServletRequest request)
Deprecated.
since 5.6.200; use
getMessage(SlingHttpServletRequest) instead |
String |
getMessage(SlingHttpServletRequest request)
Return a shopper-visible message detailing the current status.
|
String |
getPath()
Get the path of the voucher if represented in the repository.
|
long |
getPriority()
Get the priority.
|
String |
getTitle()
Return an author-oriented title.
|
boolean |
isValid(SlingHttpServletRequest request)
Return if the voucher is currently valid.
|
String getCode()
String getPath()
String getTitle()
String getDescription()
boolean isValid(SlingHttpServletRequest request)
request
- The request representing the current sessionlong getPriority()
String getMessage(SlingHttpServletRequest request)
request
- The request representing the current session@Deprecated String getInvalidMessage(SlingHttpServletRequest request)
getMessage(SlingHttpServletRequest)
insteadrequest
- The request representing the current sessionValueMap getConfig()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"