Class GeneratedVoucher

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Direct Known Subclasses:
    Voucher

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

      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        Qualifier of the Voucher.description attribute
        See Also:
        Constant Field Values
      • FREESHIPPING

        public static final java.lang.String FREESHIPPING
        Qualifier of the Voucher.freeShipping attribute
        See Also:
        Constant Field Values
      • VALUESTRING

        public static final java.lang.String VALUESTRING
        Qualifier of the Voucher.valueString attribute
        See Also:
        Constant Field Values
      • RESTRICTIONS

        public static final java.lang.String RESTRICTIONS
        Qualifier of the Voucher.restrictions attribute
        See Also:
        Constant Field Values
      • INVALIDATIONS

        public static final java.lang.String INVALIDATIONS
        Qualifier of the Voucher.invalidations attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedVoucher

        public GeneratedVoucher()
    • Method Detail

      • getDescription

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

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

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

        public java.util.Map<Language,​java.lang.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,
                                   java.lang.String value)
        Generated method - Setter of the Voucher.description attribute.
        Parameters:
        value - the description - the description of the voucher.
      • setDescription

        public void setDescription​(java.lang.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,
                                      java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the Voucher.description attribute.
        Parameters:
        value - the description - the description of the voucher.
      • setAllDescription

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

        public java.lang.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 java.lang.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,
                                    java.lang.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​(java.lang.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 java.util.Collection<VoucherInvalidation> getInvalidations​(SessionContext ctx)
        Generated method - Getter of the Voucher.invalidations attribute.
        Returns:
        the invalidations
      • getInvalidations

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

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

        public void setInvalidations​(java.util.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 java.util.Set<Restriction> getRestrictions​(SessionContext ctx)
        Generated method - Getter of the Voucher.restrictions attribute.
        Returns:
        the restrictions
      • getRestrictions

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

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

        public void setRestrictions​(java.util.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 java.lang.String getValueString​(SessionContext ctx)
        Generated method - Getter of the Voucher.valueString attribute.
        Returns:
        the valueString - the value of this voucher to display.
      • getValueString

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