Search in sources :

Example 1 with BundleOrderItemRequest

use of org.broadleafcommerce.core.order.service.call.BundleOrderItemRequest in project BroadleafCommerce by BroadleafCommerce.

the class LegacyOrderServiceImpl method createBundleOrderItemRequest.

protected BundleOrderItemRequest createBundleOrderItemRequest(BundleOrderItem bundleOrderItem, List<DiscreteOrderItemRequest> discreteOrderItemRequests) {
    BundleOrderItemRequest bundleOrderItemRequest = new BundleOrderItemRequest();
    bundleOrderItemRequest.setCategory(bundleOrderItem.getCategory());
    bundleOrderItemRequest.setName(bundleOrderItem.getName());
    bundleOrderItemRequest.setQuantity(bundleOrderItem.getQuantity());
    bundleOrderItemRequest.setDiscreteOrderItems(discreteOrderItemRequests);
    return bundleOrderItemRequest;
}
Also used : BundleOrderItemRequest(org.broadleafcommerce.core.order.service.call.BundleOrderItemRequest)

Aggregations

BundleOrderItemRequest (org.broadleafcommerce.core.order.service.call.BundleOrderItemRequest)1