Class DefaultB2BCommerceCartService
java.lang.Object
de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService
de.hybris.platform.b2bacceleratorservices.order.impl.DefaultB2BCommerceCartService
- All Implemented Interfaces:
B2BCommerceCartService,CommerceCartService
public class DefaultB2BCommerceCartService
extends DefaultCommerceCartService
implements B2BCommerceCartService
Default implementation to handle specific B2B Commerce cart services.
-
Field Summary
Fields inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService
ESTIMATED_TAXES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateCartForPaymentTypeChange(CartModel cartModel) Forcefully re-calulcate the order total after applying the promotions for payment typecreateInvoicePaymentInfo(CartModel cartModel) Creates an invoice payment info.protected CalculationServiceprotected KeyGeneratorvoidsetCalculationService(CalculationService calculationService) voidsetGuidKeyGenerator(KeyGenerator guidKeyGenerator) Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService
addToCart, addToCart, addToCart, afterCalculate, beforeCalculate, calculateCart, calculateCart, configureCartEntry, estimateTaxes, estimateTaxes, getBaseSiteService, getCartForCodeAndUser, getCartForGuidAndSite, getCartForGuidAndSiteAndUser, getCartsForSiteAndUser, getCartValidationStrategy, getCommerceAddToCartStrategy, getCommerceCartCalculationStrategy, getCommerceCartDao, getCommerceCartEstimateTaxesStrategy, getCommerceCartHashCalculationStrategy, getCommerceCartMergingStrategy, getCommerceCartMetadataUpdateStrategy, getCommerceCartRestorationStrategy, getCommerceCartSplitStrategy, getCommerceRemoveEntriesStrategy, getCommerceUpdateCartEntryStrategy, getModelService, getProductConfigurationStrategy, getRemoveEntryGroupStrategy, getSessionService, getStaleCartRemovalStrategy, mergeCarts, recalculateCart, recalculateCart, removeAllEntries, removeAllEntries, removeEntryGroup, removeStaleCarts, removeStaleCarts, restoreCart, restoreCart, setBaseSiteService, setCartValidationStrategy, setCommerceAddToCartStrategy, setCommerceCartCalculationStrategy, setCommerceCartDao, setCommerceCartEstimateTaxesStrategy, setCommerceCartHashCalculationStrategy, setCommerceCartMergingStrategy, setCommerceCartMetadataUpdateStrategy, setCommerceCartRestorationStrategy, setCommerceCartSplitStrategy, setCommerceRemoveEntriesStrategy, setCommerceUpdateCartEntryStrategy, setModelService, setProductConfigurationStrategy, setRemoveEntryGroupStrategy, setSessionService, setStaleCartRemovalStrategy, split, split, updateCartMetadata, updatePointOfServiceForCartEntry, updatePointOfServiceForCartEntry, updateQuantityForCartEntry, updateQuantityForCartEntry, updateToShippingModeForCartEntry, updateToShippingModeForCartEntry, validateCart, validateCartMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.commerceservices.order.CommerceCartService
addToCart, addToCart, addToCart, calculateCart, calculateCart, configureCartEntry, estimateTaxes, estimateTaxes, getCartForCodeAndUser, getCartForGuidAndSite, getCartForGuidAndSiteAndUser, getCartsForSiteAndUser, mergeCarts, recalculateCart, recalculateCart, removeAllEntries, removeAllEntries, removeEntryGroup, removeStaleCarts, removeStaleCarts, restoreCart, restoreCart, split, split, updateCartMetadata, updatePointOfServiceForCartEntry, updatePointOfServiceForCartEntry, updateQuantityForCartEntry, updateQuantityForCartEntry, updateToShippingModeForCartEntry, updateToShippingModeForCartEntry, validateCart, validateCart
-
Constructor Details
-
DefaultB2BCommerceCartService
public DefaultB2BCommerceCartService()
-
-
Method Details
-
calculateCartForPaymentTypeChange
Description copied from interface:B2BCommerceCartServiceForcefully re-calulcate the order total after applying the promotions for payment type- Specified by:
calculateCartForPaymentTypeChangein interfaceB2BCommerceCartService- Parameters:
cartModel- the cart whose total has to be re-calculated
-
createInvoicePaymentInfo
Description copied from interface:B2BCommerceCartServiceCreates an invoice payment info.- Specified by:
createInvoicePaymentInfoin interfaceB2BCommerceCartService- Parameters:
cartModel- the cart whose payment info is applied to- Returns:
- the invoice payment info created
-
getGuidKeyGenerator
-
setGuidKeyGenerator
-
getCalculationService
-
setCalculationService
-