Interface CancellationPolicyService
- All Known Implementing Classes:
DefaultCancellationPolicyService
public interface CancellationPolicyService
Service component to populate
CartItem.getCancellationPolicyRef() as needed;- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
- Author:
- Sunny Yu
-
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.cart.client.domain.CartpopulateCancellationPolicies(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Populates theCartItem.getCancellationPolicyRef()for the givenCart.getCartItems().
-
Method Details
-
populateCancellationPolicies
com.broadleafcommerce.cart.client.domain.Cart populateCancellationPolicies(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Populates theCartItem.getCancellationPolicyRef()for the givenCart.getCartItems().- Parameters:
cart- theCartcontaining the items to populate the cancellation policy forcontextInfo- the current context- Returns:
- the updated
Cart
-