Class GeneratedVoucher

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
Voucher

public abstract class GeneratedVoucher extends Discount
Generated class for type Voucher.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedVoucher

      public GeneratedVoucher()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class GeneratedDiscount
    • getDescription

      public String getDescription(SessionContext ctx)
      Generated method - Getter of the Voucher.description attribute.
      Returns:
      the description - the description of the voucher.
    • getDescription

      public String getDescription()
      Generated method - Getter of the Voucher.description attribute.
      Returns:
      the description - the description of the voucher.
    • getAllDescription

      public Map<Language,String> getAllDescription(SessionContext ctx)
      Generated method - Getter of the Voucher.description attribute.
      Returns:
      the localized description - the description of the voucher.
    • getAllDescription

      public Map<Language,String> getAllDescription()
      Generated method - Getter of the Voucher.description attribute.
      Returns:
      the localized description - the description of the voucher.
    • setDescription

      public void setDescription(SessionContext ctx, String value)
      Generated method - Setter of the Voucher.description attribute.
      Parameters:
      value - the description - the description of the voucher.
    • setDescription

      public void setDescription(String value)
      Generated method - Setter of the Voucher.description attribute.
      Parameters:
      value - the description - the description of the voucher.
    • setAllDescription

      public void setAllDescription(SessionContext ctx, Map<Language,String> value)
      Generated method - Setter of the Voucher.description attribute.
      Parameters:
      value - the description - the description of the voucher.
    • setAllDescription

      public void setAllDescription(Map<Language,String> value)
      Generated method - Setter of the Voucher.description attribute.
      Parameters:
      value - the description - the description of the voucher.
    • isFreeShipping

      public Boolean isFreeShipping(SessionContext ctx)
      Generated method - Getter of the Voucher.freeShipping attribute.
      Returns:
      the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
    • isFreeShipping

      public Boolean isFreeShipping()
      Generated method - Getter of the Voucher.freeShipping attribute.
      Returns:
      the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
    • isFreeShippingAsPrimitive

      public boolean isFreeShippingAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Voucher.freeShipping attribute.
      Returns:
      the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
    • isFreeShippingAsPrimitive

      public boolean isFreeShippingAsPrimitive()
      Generated method - Getter of the Voucher.freeShipping attribute.
      Returns:
      the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
    • setFreeShipping

      public void setFreeShipping(SessionContext ctx, Boolean value)
      Generated method - Setter of the Voucher.freeShipping attribute.
      Parameters:
      value - the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
    • setFreeShipping

      public void setFreeShipping(Boolean value)
      Generated method - Setter of the Voucher.freeShipping attribute.
      Parameters:
      value - the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
    • setFreeShipping

      public void setFreeShipping(SessionContext ctx, boolean value)
      Generated method - Setter of the Voucher.freeShipping attribute.
      Parameters:
      value - the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
    • setFreeShipping

      public void setFreeShipping(boolean value)
      Generated method - Setter of the Voucher.freeShipping attribute.
      Parameters:
      value - the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
    • getInvalidations

      public Collection<VoucherInvalidation> getInvalidations(SessionContext ctx)
      Generated method - Getter of the Voucher.invalidations attribute.
      Returns:
      the invalidations
    • getInvalidations

      public Collection<VoucherInvalidation> getInvalidations()
      Generated method - Getter of the Voucher.invalidations attribute.
      Returns:
      the invalidations
    • setInvalidations

      public void setInvalidations(SessionContext ctx, Collection<VoucherInvalidation> value)
      Generated method - Setter of the Voucher.invalidations attribute.
      Parameters:
      value - the invalidations
    • setInvalidations

      public void setInvalidations(Collection<VoucherInvalidation> value)
      Generated method - Setter of the Voucher.invalidations attribute.
      Parameters:
      value - the invalidations
    • addToInvalidations

      public void addToInvalidations(SessionContext ctx, VoucherInvalidation value)
      Generated method - Adds value to invalidations.
      Parameters:
      value - the item to add to invalidations
    • addToInvalidations

      public void addToInvalidations(VoucherInvalidation value)
      Generated method - Adds value to invalidations.
      Parameters:
      value - the item to add to invalidations
    • removeFromInvalidations

      public void removeFromInvalidations(SessionContext ctx, VoucherInvalidation value)
      Generated method - Removes value from invalidations.
      Parameters:
      value - the item to remove from invalidations
    • removeFromInvalidations

      public void removeFromInvalidations(VoucherInvalidation value)
      Generated method - Removes value from invalidations.
      Parameters:
      value - the item to remove from invalidations
    • getRestrictions

      public Set<Restriction> getRestrictions(SessionContext ctx)
      Generated method - Getter of the Voucher.restrictions attribute.
      Returns:
      the restrictions
    • getRestrictions

      public Set<Restriction> getRestrictions()
      Generated method - Getter of the Voucher.restrictions attribute.
      Returns:
      the restrictions
    • setRestrictions

      public void setRestrictions(SessionContext ctx, Set<Restriction> value)
      Generated method - Setter of the Voucher.restrictions attribute.
      Parameters:
      value - the restrictions
    • setRestrictions

      public void setRestrictions(Set<Restriction> value)
      Generated method - Setter of the Voucher.restrictions attribute.
      Parameters:
      value - the restrictions
    • addToRestrictions

      public void addToRestrictions(SessionContext ctx, Restriction value)
      Generated method - Adds value to restrictions.
      Parameters:
      value - the item to add to restrictions
    • addToRestrictions

      public void addToRestrictions(Restriction value)
      Generated method - Adds value to restrictions.
      Parameters:
      value - the item to add to restrictions
    • removeFromRestrictions

      public void removeFromRestrictions(SessionContext ctx, Restriction value)
      Generated method - Removes value from restrictions.
      Parameters:
      value - the item to remove from restrictions
    • removeFromRestrictions

      public void removeFromRestrictions(Restriction value)
      Generated method - Removes value from restrictions.
      Parameters:
      value - the item to remove from restrictions
    • getValueString

      public abstract String getValueString(SessionContext ctx)
      Generated method - Getter of the Voucher.valueString attribute.
      Returns:
      the valueString - the value of this voucher to display.
    • getValueString

      public String getValueString()
      Generated method - Getter of the Voucher.valueString attribute.
      Returns:
      the valueString - the value of this voucher to display.