Class RuleBasedOrderAddProductActionModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class RuleBasedOrderAddProductActionModel
    extends AbstractRuleBasedPromotionActionModel
    Generated model class for type RuleBasedOrderAddProductAction first defined at extension promotionengineservices.
    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • PRODUCT

        public static final java.lang.String PRODUCT
        Generated constant - Attribute key of RuleBasedOrderAddProductAction.product attribute defined at extension promotionengineservices.
        See Also:
        Constant Field Values
      • QUANTITY

        public static final java.lang.String QUANTITY
        Generated constant - Attribute key of RuleBasedOrderAddProductAction.quantity attribute defined at extension promotionengineservices.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RuleBasedOrderAddProductActionModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public RuleBasedOrderAddProductActionModel​(ProductModel _product,
                                                   java.lang.Long _quantity)
        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:
        _product - initial attribute declared by type RuleBasedOrderAddProductAction at extension promotionengineservices
        _quantity - initial attribute declared by type RuleBasedOrderAddProductAction at extension promotionengineservices
      • RuleBasedOrderAddProductActionModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public RuleBasedOrderAddProductActionModel​(ItemModel _owner,
                                                   ProductModel _product,
                                                   java.lang.Long _quantity)
        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:
        _owner - initial attribute declared by type Item at extension core
        _product - initial attribute declared by type RuleBasedOrderAddProductAction at extension promotionengineservices
        _quantity - initial attribute declared by type RuleBasedOrderAddProductAction at extension promotionengineservices
    • Method Detail

      • getProduct

        @Accessor(qualifier="product",
                  type=GETTER)
        public ProductModel getProduct()
        Generated method - Getter of the RuleBasedOrderAddProductAction.product attribute defined at extension promotionengineservices.
        Returns:
        the product - The product to be added
      • getQuantity

        @Accessor(qualifier="quantity",
                  type=GETTER)
        public java.lang.Long getQuantity()
        Generated method - Getter of the RuleBasedOrderAddProductAction.quantity attribute defined at extension promotionengineservices.
        Returns:
        the quantity - The quantity to be added
      • setProduct

        @Accessor(qualifier="product",
                  type=SETTER)
        public void setProduct​(ProductModel value)
        Generated method - Setter of RuleBasedOrderAddProductAction.product attribute defined at extension promotionengineservices.
        Parameters:
        value - the product - The product to be added
      • setQuantity

        @Accessor(qualifier="quantity",
                  type=SETTER)
        public void setQuantity​(java.lang.Long value)
        Generated method - Setter of RuleBasedOrderAddProductAction.quantity attribute defined at extension promotionengineservices.
        Parameters:
        value - the quantity - The quantity to be added