Class AbstractOrderItemRequest
java.lang.Object
org.broadleafcommerce.core.order.service.call.AbstractOrderItemRequest
- Direct Known Subclasses:
DiscreteOrderItemRequest,OrderItemRequest
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Categoryprotected Orderprotected PersonalMessageprotected Productprotected intprotected org.broadleafcommerce.common.money.Moneyprotected org.broadleafcommerce.common.money.Moneyprotected Sku -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyProperties(AbstractOrderItemRequest newRequest) booleangetOrder()intorg.broadleafcommerce.common.money.Moneyorg.broadleafcommerce.common.money.MoneygetSku()inthashCode()voidsetAdditionalAttributes(Map<String, String> additionalAttributes) voidsetCategory(Category category) voidsetItemAttributes(Map<String, String> itemAttributes) voidvoidsetPersonalMessage(PersonalMessage personalMessage) voidsetProduct(Product product) voidsetQuantity(int quantity) voidsetRetailPriceOverride(org.broadleafcommerce.common.money.Money retailPriceOverride) voidsetSalePriceOverride(org.broadleafcommerce.common.money.Money salePriceOverride) void
-
Field Details
-
sku
-
category
-
product
-
order
-
quantity
protected int quantity -
salePriceOverride
protected org.broadleafcommerce.common.money.Money salePriceOverride -
retailPriceOverride
protected org.broadleafcommerce.common.money.Money retailPriceOverride -
personalMessage
-
itemAttributes
-
additionalAttributes
-
-
Constructor Details
-
AbstractOrderItemRequest
public AbstractOrderItemRequest()
-
-
Method Details
-
getSku
-
setSku
-
getCategory
-
setCategory
-
getProduct
-
setProduct
-
getOrder
-
setOrder
-
getQuantity
public int getQuantity() -
setQuantity
public void setQuantity(int quantity) -
getItemAttributes
-
setItemAttributes
-
getAdditionalAttributes
-
setAdditionalAttributes
-
getSalePriceOverride
public org.broadleafcommerce.common.money.Money getSalePriceOverride() -
setSalePriceOverride
public void setSalePriceOverride(org.broadleafcommerce.common.money.Money salePriceOverride) -
getRetailPriceOverride
public org.broadleafcommerce.common.money.Money getRetailPriceOverride() -
setRetailPriceOverride
public void setRetailPriceOverride(org.broadleafcommerce.common.money.Money retailPriceOverride) -
copyProperties
-
equals
-
hashCode
public int hashCode() -
getPersonalMessage
-
setPersonalMessage
-