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 Constructor Description DefaultB2BCommerceCartService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalculateCartForPaymentTypeChange(CartModel cartModel)Forcefully re-calulcate the order total after applying the promotions for payment typeInvoicePaymentInfoModelcreateInvoicePaymentInfo(CartModel cartModel)Creates an invoice payment info.protected CalculationServicegetCalculationService()protected KeyGeneratorgetGuidKeyGenerator()voidsetCalculationService(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, validateCart
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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
-
-
-
-
Method Detail
-
calculateCartForPaymentTypeChange
public void calculateCartForPaymentTypeChange(CartModel cartModel)
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
public InvoicePaymentInfoModel createInvoicePaymentInfo(CartModel cartModel)
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
protected KeyGenerator getGuidKeyGenerator()
-
setGuidKeyGenerator
public void setGuidKeyGenerator(KeyGenerator guidKeyGenerator)
-
getCalculationService
protected CalculationService getCalculationService()
-
setCalculationService
public void setCalculationService(CalculationService calculationService)
-
-