java.lang.Object
de.hybris.platform.b2ctelcotmfwebservices.v2.dto.VoucherType

public class VoucherType extends Object
Details of a voucher
  • Constructor Details

    • VoucherType

      public VoucherType()
  • Method Details

    • code

      public VoucherType code(String code)
    • getCode

      public String getCode()
      Code that identifies the voucher or provides the discount
      Returns:
      code
    • setCode

      public void setCode(String code)
    • description

      public VoucherType description(String description)
    • getDescription

      public String getDescription()
      Description of the voucher (e.g.: get one and receive one free)
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • value

      public VoucherType value(QuantityType value)
    • getValue

      @Valid public @Valid QuantityType getValue()
      Get value
      Returns:
      value
    • setValue

      public void setValue(QuantityType value)
    • expirationDate

      public VoucherType expirationDate(Date expirationDate)
    • getExpirationDate

      @Valid public @Valid Date getExpirationDate()
      the voucher's expiration date
      Returns:
      expirationDate
    • setExpirationDate

      public void setExpirationDate(Date expirationDate)
    • campaign

      public VoucherType campaign(String campaign)
    • getCampaign

      public String getCampaign()
      Campaign this voucher belongs to
      Returns:
      campaign
    • setCampaign

      public void setCampaign(String campaign)
    • discount

      public VoucherType discount(String discount)
    • getDiscount

      public String getDiscount()
      A discount offered as a part of voucher.
      Returns:
      discount
    • setDiscount

      public void setDiscount(String discount)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object