public class VoucherInfo extends Object
Constructor and Description |
---|
VoucherInfo(String code,
String path,
String title,
String description,
boolean isValid,
String message)
Instantiate a new
VoucherInfo . |
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Get the voucher code.
|
String |
getDescription()
An author-oriented description of the voucher.
|
boolean |
getIsValid()
Return if the voucher is currently valid.
|
String |
getMessage()
A shopper-oriented message regarding the current status of the voucher.
|
String |
getPath()
Get the path of the voucher if represented in the repository.
|
String |
getTitle()
An author-oriented title.
|
public VoucherInfo(String code, String path, String title, String description, boolean isValid, String message)
VoucherInfo
.code
- The voucher code which is typed in by the shopper.path
- The path of the voucher if represented in the repository. Otherwise, an ID uniquely
identifying the voucher.title
- An author-oriented title.description
- An author-oriented description of the voucher (and its current status).isValid
- For a cart, whether or not the voucher is current valid. For a placed order, whether
or not the voucher was valid when the order was placed.message
- A shopper-oriented message.public String getPath()
public String getTitle()
public String getDescription()
public String getCode()
public boolean getIsValid()
public String getMessage()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"