Class VoucherType
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v2.dto.VoucherType
Details of a voucher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) booleanexpirationDate(Date expirationDate) Campaign this voucher belongs togetCode()Code that identifies the voucher or provides the discountDescription of the voucher (e.g.: get one and receive one free)A discount offered as a part of voucher.@Valid Datethe voucher's expiration date@Valid QuantityTypegetValue()Get valueinthashCode()voidsetCampaign(String campaign) voidvoidsetDescription(String description) voidsetDiscount(String discount) voidsetExpirationDate(Date expirationDate) voidsetValue(QuantityType value) toString()value(QuantityType value)
-
Constructor Details
-
VoucherType
public VoucherType()
-
-
Method Details
-
code
-
getCode
Code that identifies the voucher or provides the discount- Returns:
- code
-
setCode
-
description
-
getDescription
Description of the voucher (e.g.: get one and receive one free)- Returns:
- description
-
setDescription
-
value
-
getValue
Get value- Returns:
- value
-
setValue
-
expirationDate
-
getExpirationDate
the voucher's expiration date- Returns:
- expirationDate
-
setExpirationDate
-
campaign
-
getCampaign
Campaign this voucher belongs to- Returns:
- campaign
-
setCampaign
-
discount
-
getDiscount
A discount offered as a part of voucher.- Returns:
- discount
-
setDiscount
-
equals
-
hashCode
public int hashCode() -
toString
-