Class RuleBasedOrderAddProductActionModel

All Implemented Interfaces:
Serializable

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

    • _TYPECODE

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

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

      public static final String QUANTITY
      Generated constant - Attribute key of RuleBasedOrderAddProductAction.quantity attribute defined at extension promotionengineservices.
      See Also:
  • Constructor Details

    • 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, 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, 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 Details

    • 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 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(Long value)
      Generated method - Setter of RuleBasedOrderAddProductAction.quantity attribute defined at extension promotionengineservices.
      Parameters:
      value - the quantity - The quantity to be added