Interface TmaCommerceCartResourceService

    • 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 TmaCartValidationResult containing 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 cart
        commerceCartModification - contains the updates made on the cart
        Throws:
        de.hybris.platform.commerceservices.order.CommerceCartModificationException - in case of any error occurs during cart update