org.broadleafcommerce.core.order.service.call
Class AbstractOrderItemRequest
java.lang.Object
org.broadleafcommerce.core.order.service.call.AbstractOrderItemRequest
- Direct Known Subclasses:
- DiscreteOrderItemRequest, OrderItemRequest
public abstract class AbstractOrderItemRequest
- extends Object
Only the product is required to add an item to an order.
The category can be inferred from the product's default category.
The sku can be inferred from either the passed in attributes as they are compared to the product's options or
the sku can be determined from the product's default sku.
Personal message is optional.
sku
protected Sku sku
category
protected Category category
product
protected Product product
order
protected Order order
quantity
protected int quantity
salePriceOverride
protected Money salePriceOverride
retailPriceOverride
protected Money retailPriceOverride
personalMessage
protected PersonalMessage personalMessage
itemAttributes
protected Map<String,String> itemAttributes
AbstractOrderItemRequest
public AbstractOrderItemRequest()
getSku
public Sku getSku()
setSku
public void setSku(Sku sku)
getCategory
public Category getCategory()
setCategory
public void setCategory(Category category)
getProduct
public Product getProduct()
setProduct
public void setProduct(Product product)
setOrder
public void setOrder(Order order)
getOrder
public Order getOrder()
getQuantity
public int getQuantity()
setQuantity
public void setQuantity(int quantity)
getItemAttributes
public Map<String,String> getItemAttributes()
setItemAttributes
public void setItemAttributes(Map<String,String> itemAttributes)
getSalePriceOverride
public Money getSalePriceOverride()
setSalePriceOverride
public void setSalePriceOverride(Money salePriceOverride)
getRetailPriceOverride
public Money getRetailPriceOverride()
setRetailPriceOverride
public void setRetailPriceOverride(Money retailPriceOverride)
copyProperties
protected void copyProperties(AbstractOrderItemRequest newRequest)
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
getPersonalMessage
public PersonalMessage getPersonalMessage()
setPersonalMessage
public void setPersonalMessage(PersonalMessage personalMessage)
Copyright © 2013. All Rights Reserved.