org.broadleafcommerce.core.order.service.call
Class OrderItemRequestDTO
java.lang.Object
org.broadleafcommerce.core.order.service.call.OrderItemRequestDTO
public class OrderItemRequestDTO
- extends Object
Only the product and quantity are 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderItemRequestDTO
public OrderItemRequestDTO()
OrderItemRequestDTO
public OrderItemRequestDTO(Long productId,
Integer quantity)
OrderItemRequestDTO
public OrderItemRequestDTO(Long productId,
Long skuId,
Integer quantity)
OrderItemRequestDTO
public OrderItemRequestDTO(Long productId,
Long skuId,
Long categoryId,
Integer quantity)
getSkuId
public Long getSkuId()
setSkuId
public OrderItemRequestDTO setSkuId(Long skuId)
getCategoryId
public Long getCategoryId()
setCategoryId
public OrderItemRequestDTO setCategoryId(Long categoryId)
getProductId
public Long getProductId()
setProductId
public OrderItemRequestDTO setProductId(Long productId)
getQuantity
public Integer getQuantity()
setQuantity
public OrderItemRequestDTO setQuantity(Integer quantity)
getItemAttributes
public Map<String,String> getItemAttributes()
setItemAttributes
public OrderItemRequestDTO setItemAttributes(Map<String,String> itemAttributes)
getOrderItemId
public Long getOrderItemId()
setOrderItemId
public OrderItemRequestDTO setOrderItemId(Long orderItemId)
Copyright © 2012. All Rights Reserved.