Class AbstractDiscountRowModel

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DiscountRowModel, GlobalDiscountRowModel

public class AbstractDiscountRowModel extends PDTRowModel
Generated model class for type AbstractDiscountRow first defined at extension europe1.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • CURRENCY

      public static final String CURRENCY
      Generated constant - Attribute key of AbstractDiscountRow.currency attribute defined at extension europe1.
      See Also:
    • DISCOUNT

      public static final String DISCOUNT
      Generated constant - Attribute key of AbstractDiscountRow.discount attribute defined at extension europe1.
      See Also:
    • ABSOLUTE

      public static final String ABSOLUTE
      Generated constant - Attribute key of AbstractDiscountRow.absolute attribute defined at extension europe1.
      See Also:
    • VALUE

      public static final String VALUE
      Generated constant - Attribute key of AbstractDiscountRow.value attribute defined at extension europe1.
      See Also:
    • DISCOUNTSTRING

      public static final String DISCOUNTSTRING
      Generated constant - Attribute key of AbstractDiscountRow.discountString attribute defined at extension europe1.
      See Also:
  • Constructor Details

    • AbstractDiscountRowModel

      public AbstractDiscountRowModel()
      Generated constructor - Default constructor for generic creation.
    • AbstractDiscountRowModel

      public AbstractDiscountRowModel(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • AbstractDiscountRowModel

      @Deprecated(since="4.1.1", forRemoval=true) public AbstractDiscountRowModel(DiscountModel _discount)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _discount - initial attribute declared by type AbstractDiscountRow at extension europe1
    • AbstractDiscountRowModel

      @Deprecated(since="4.1.1", forRemoval=true) public AbstractDiscountRowModel(DiscountModel _discount, ItemModel _owner, ProductDiscountGroup _pg, ProductModel _product, String _productId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _discount - initial attribute declared by type AbstractDiscountRow at extension europe1
      _owner - initial attribute declared by type Item at extension core
      _pg - initial attribute declared by type AbstractDiscountRow at extension europe1
      _product - initial attribute declared by type PDTRow at extension europe1
      _productId - initial attribute declared by type PDTRow at extension europe1
  • Method Details

    • getAbsolute

      @Accessor(qualifier="absolute", type=GETTER) public Boolean getAbsolute()
      Generated method - Getter of the AbstractDiscountRow.absolute dynamic attribute defined at extension europe1.
      Returns:
      the absolute
    • getCurrency

      @Accessor(qualifier="currency", type=GETTER) public CurrencyModel getCurrency()
      Generated method - Getter of the AbstractDiscountRow.currency attribute defined at extension europe1.
      Returns:
      the currency
    • getDiscount

      @Accessor(qualifier="discount", type=GETTER) public DiscountModel getDiscount()
      Generated method - Getter of the AbstractDiscountRow.discount attribute defined at extension europe1.
      Returns:
      the discount
    • getDiscountString

      @Accessor(qualifier="discountString", type=GETTER) public String getDiscountString()
      Generated method - Getter of the AbstractDiscountRow.discountString dynamic attribute defined at extension europe1.
      Returns:
      the discountString
    • getValue

      @Accessor(qualifier="value", type=GETTER) public Double getValue()
      Generated method - Getter of the AbstractDiscountRow.value attribute defined at extension europe1.
      Returns:
      the value
    • setCurrency

      @Accessor(qualifier="currency", type=SETTER) public void setCurrency(CurrencyModel value)
      Generated method - Setter of AbstractDiscountRow.currency attribute defined at extension europe1.
      Parameters:
      value - the currency
    • setDiscount

      @Accessor(qualifier="discount", type=SETTER) public void setDiscount(DiscountModel value)
      Generated method - Initial setter of AbstractDiscountRow.discount attribute defined at extension europe1. Can only be used at creation of model - before first save.
      Parameters:
      value - the discount
    • setPg

      @Accessor(qualifier="pg", type=SETTER) public void setPg(HybrisEnumValue value)
      Generated method - Initial setter of PDTRow.pg attribute defined at extension europe1 and redeclared at extension europe1. Can only be used at creation of model - before first save. Will only accept values of type ProductDiscountGroup.
      Overrides:
      setPg in class PDTRowModel
      Parameters:
      value - the pg
    • setValue

      @Accessor(qualifier="value", type=SETTER) public void setValue(Double value)
      Generated method - Setter of AbstractDiscountRow.value attribute defined at extension europe1.
      Parameters:
      value - the value