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