Class VoucherType
java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v2.dto.VoucherType
@Validated
@Generated(value="de.hybris.platform.b2ctelcotmfwebservices.swagger.TelcoCodegen",
date="2022-10-21T20:34:47.671Z")
public class VoucherType
extends Object
Details of a voucher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValueItem(QuantityType valueItem) description(String description) booleanexpirationDate(Date expirationDate) Campaign this voucher belongs to@NotNull StringgetCode()Code that identifies the voucher or provides the discountDescription of the voucher (e.g.: get one and receive one free)@Valid Datethe voucher's expiration date@Valid List<QuantityType>getValue()Discount that the voucher applies when it's a discount voucherinthashCode()voidsetCampaign(String campaign) voidvoidsetDescription(String description) voidsetExpirationDate(Date expirationDate) voidsetValue(List<QuantityType> value) toString()value(List<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
-
addValueItem
-
getValue
Discount that the voucher applies when it's a discount voucher- Returns:
- value
-
setValue
-
expirationDate
-
getExpirationDate
the voucher's expiration date- Returns:
- expirationDate
-
setExpirationDate
-
campaign
-
getCampaign
Campaign this voucher belongs to- Returns:
- campaign
-
setCampaign
-
equals
-
hashCode
public int hashCode() -
toString
-