Interface TmaCommerceCartResourceService
- All Known Implementing Classes:
DefaultTmaCommerceCartResourceService
public interface TmaCommerceCartResourceService
Service handling cart resources functionality.
- Since:
- 1911
-
Method Summary
Modifier and TypeMethodDescriptionvoidupdateResources(CommerceCartParameter parameter, CommerceCartModification commerceCartModification) Updates the resources on cart based on the information from the .validateResources(CommerceCartParameter parameter) Validates the resources to be stored on cart.
-
Method Details
-
validateResources
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 . The 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
-