Interface CartOrderGenerationService<C extends com.broadleafcommerce.cart.client.domain.Cart,P extends com.broadleafcommerce.order.client.domain.Order>
-
- All Known Implementing Classes:
DefaultCartOrderGenerationService
public interface CartOrderGenerationService<C extends com.broadleafcommerce.cart.client.domain.Cart,P extends com.broadleafcommerce.order.client.domain.Order>
Handles generatingorders
fromcarts
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description P
generateOrderFromCart(C cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Creates and persists a new order from the given cart only if such an order does not already exist.
-
-
-
Method Detail
-
generateOrderFromCart
@Nullable P generateOrderFromCart(C cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Creates and persists a new order from the given cart only if such an order does not already exist.- Parameters:
cart
- The cart to create an order fromcontextInfo
- the context around sandboxing and multitenant state- Returns:
- The order created from the cart, or null if an order for the cart already exists
-
-