Interface CartIntegrationFacade
- All Known Implementing Classes:
DefaultCartIntegrationFacade
public interface CartIntegrationFacade
Facade for integration between the shopping cart and CPQ configurable products.
-
Method Summary
Modifier and TypeMethodDescriptionaddConfigurationToCart(String configId, long quantity) Adds the current CPQ configuration to shopping cart.getConfigIdForSessionCartEntry(Integer entryNumber) Gets configuration ID that is assigned to the cart entry specified by the entry number providedgetProductCodeForSessionCartEntry(Integer entryNumber) Gets product code that is assigned to the cart entry specified by the entry number providedupdateCartEntryFromConfiguration(String configId, int cartEntryNumber) Updates cart entry (prices, configuration summary) from the configuration attached to it
-
Method Details
-
addConfigurationToCart
CartModificationData addConfigurationToCart(String configId, long quantity) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Adds the current CPQ configuration to shopping cart.- Parameters:
configId- configuration id to add to the shopping cartquantity- quantity of the cart entry- Returns:
- cart modification data containing modified cart entry
- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- in case adding to cart failed
-
getProductCodeForSessionCartEntry
Gets product code that is assigned to the cart entry specified by the entry number provided- Parameters:
entryNumber- Cart entry number- Returns:
- product code
-
getConfigIdForSessionCartEntry
Gets configuration ID that is assigned to the cart entry specified by the entry number provided- Parameters:
entryNumber- Cart entry number- Returns:
- ProductConfigData containing the CPQ configuration ID
-
updateCartEntryFromConfiguration
Updates cart entry (prices, configuration summary) from the configuration attached to it- Parameters:
configId- Configuration identifiercartEntryNumber- Cart entry number- Returns:
- cart modification data containing modified cart entry
-