Interface OrderItemService
- All Known Implementing Classes:
OrderItemServiceImpl
public interface OrderItemService
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAdditionalOrderItemProperties(OrderItem orderItem) buildOrderItemFromDTO(Order order, OrderItemRequestDTO orderItemRequestDTO) Creates an OrderItemRequestDTO object that most closely resembles the given OrderItem.createBundleOrderItem(BundleOrderItemRequest itemRequest) Used to create "manual" product bundles.createBundleOrderItem(ProductBundleOrderItemRequest itemRequest) createBundleOrderItem(ProductBundleOrderItemRequest itemRequest, boolean saveItem) createDiscreteOrderItem(DiscreteOrderItemRequest itemRequest) createDynamicPriceDiscreteOrderItem(DiscreteOrderItemRequest itemRequest, HashMap skuPricingConsiderations) createGiftWrapOrderItem(GiftWrapOrderItemRequest itemRequest) createOrderItem(OrderItemRequest itemRequest) voidfindAllProductsInRequest(ConfigurableOrderItemRequest itemRequest) findOrderItemsForCustomersInDateRange(List<Long> customerIds, Date startDate, Date endDate) voidmergeOrderItemRequest(ConfigurableOrderItemRequest itemRequest, OrderItem orderItem) voidmodifyOrderItemRequest(ConfigurableOrderItemRequest itemRequest) voidpriceOrderItem(OrderItem item) readBatchOrderItems(int start, int count, List<OrderStatus> orderStatusList) readOrderItemById(Long orderItemId) saveOrderItem(OrderItem orderItem) updateDiscreteOrderItem(OrderItem orderItem, DiscreteOrderItemRequest itemRequest)
-
Method Details
-
readOrderItemById
-
saveOrderItem
-
delete
-
createPersonalMessage
PersonalMessage createPersonalMessage() -
createDiscreteOrderItem
-
createDynamicPriceDiscreteOrderItem
DiscreteOrderItem createDynamicPriceDiscreteOrderItem(DiscreteOrderItemRequest itemRequest, HashMap skuPricingConsiderations) -
createGiftWrapOrderItem
-
createBundleOrderItem
Used to create "manual" product bundles. Manual product bundles are primarily designed for grouping items in the cart display. Typically ProductBundle will be used to achieve non programmer related bundles.- Parameters:
itemRequest-- Returns:
-
createBundleOrderItem
-
createBundleOrderItem
-
buildOrderItemRequestDTOFromOrderItem
Creates an OrderItemRequestDTO object that most closely resembles the given OrderItem. That is, it will copy the SKU and quantity and attempt to copy the product and category if they exist.- Parameters:
item- the item to copy- Returns:
- the OrderItemRequestDTO that mirrors the item
-
updateDiscreteOrderItem
-
createOrderItem
-
buildOrderItemFromDTO
-
priceOrderItem
-
findAllProductsInRequest
-
applyAdditionalOrderItemProperties
-
createConfigurableOrderItemRequestFromProduct
-
modifyOrderItemRequest
-
mergeOrderItemRequest
-
findOrderItemsForCustomersInDateRange
-
readBatchOrderItems
-
readNumberOfOrderItems
Long readNumberOfOrderItems()
-