Interface TmaCommerceCartResourceService
-
- All Known Implementing Classes:
DefaultTmaCommerceCartResourceService
public interface TmaCommerceCartResourceServiceService handling cart resources functionality.- Since:
- 1911
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidupdateResources(CommerceCartParameter parameter, CommerceCartModification commerceCartModification)Updates the resources on cart based on the information from the {@param CommerceCartParameter}.java.util.List<TmaCartValidationResult>validateResources(CommerceCartParameter parameter)Validates the resources to be stored on cart.
-
-
-
Method Detail
-
validateResources
java.util.List<TmaCartValidationResult> validateResources(CommerceCartParameter parameter)
Validates the resources to be stored on cart.- Parameters:
parameter- commerce cart parameter containing resources to be stored on cart- Returns:
- List of
TmaCartValidationResultcontaining information about the validation of the parameter
-
updateResources
void updateResources(CommerceCartParameter parameter, CommerceCartModification commerceCartModification) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
Updates the resources on cart based on the information from the {@param CommerceCartParameter}. The {@param CommerceCartModification} will be updated to reflect the result of the this operation.- Parameters:
parameter- commerce cart parameter containing resources to be stored on cartcommerceCartModification- contains the updates made on the cart- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- in case of any error occurs during cart update
-
-