Class DefaultTravelCommerceCartService
java.lang.Object
de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService
de.hybris.platform.subscriptionservices.subscription.impl.DefaultSubscriptionCommerceCartService
de.hybris.platform.travelservices.order.impl.DefaultTravelCommerceCartService
- All Implemented Interfaces:
de.hybris.platform.commerceservices.order.CommerceCartService,de.hybris.platform.subscriptionservices.subscription.SubscriptionCommerceCartService,TravelCommerceCartService
- Direct Known Subclasses:
DefaultShoppingTravelCommerceCartService
public class DefaultTravelCommerceCartService
extends de.hybris.platform.subscriptionservices.subscription.impl.DefaultSubscriptionCommerceCartService
implements TravelCommerceCartService
The class overrides the
DefaultSubscriptionCommerceCartService addToCart to handle more than one bundle entry.Cart
entry is created
for each transport offering per passenger with a new bundle no.-
Field Summary
Fields inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService
ESTIMATED_TAXES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAutopickPerLegProducts(List<TransportOfferingModel> transportOfferingModels, TravelRouteModel travelRouteModel, List<CommerceCartModification> modificationList, BundleTemplateModel childTemplate, ProductModel autoPickProduct) Add autopick per leg products.protected voidaddAutopickProductsForRoute(int bundleEntryGroupNo, List<TransportOfferingModel> transportOfferingModels, TravelRouteModel travelRouteModel, TravellerModel travellerModel, List<CommerceCartModification> modificationList, BundleTemplateModel childTemplate, ProductModel autoPickProduct) Add autopick products for route.protected voidaddAutopickProductsForTransportOfferings(int bundleEntryGroupNo, List<TransportOfferingModel> transportOfferingModels, TravelRouteModel travelRouteModel, TravellerModel travellerModel, List<CommerceCartModification> modificationList, BundleTemplateModel childTemplate, ProductModel autoPickProduct) Add autopick products for transport offerings.addAutoPickProductsToCart(ProductModel productModel, String bundleTemplateId, int bundleEntryGroupNo) Add auto picks products to cart using hybris 6.4 bundle APIsaddPerLegBundleProductToCart(String bundleTemplateId) Add per leg products to cart using Hybris 6.4 bundle APIsvoidaddPropertiesToCartEntry(CartModel masterCartModel, int orderEntryNo, ProductModel product, Map<String, Object> propertiesMap) Add properties to cart entry.voidaddSelectedAccommodationToCart(String transportOfferingCode, String travellerCode, ConfiguredAccommodationModel configuredAccommodation) This method adds a configured accommodation as a selected accommodation to the cartprotected booleancheckBundleAndCategory(AbstractOrderEntryModel orderEntry, CategoryModel categoryModel) Verifies if order entry bundle and product's category matchprotected booleancheckTransportOfferings(AbstractOrderEntryModel orderEntry, List<String> transportOfferingCodes) Verifies if order entry has a matching list of transport offeringsprotected booleancheckTraveller(AbstractOrderEntryModel orderEntry, String travellerUid) Verifies if order entry has a matching travellerprotected SelectedAccommodationModelcreateSelectedAccommodationModel(String transportOfferingCode, String travellerCode, CartModel sessionCart, ConfiguredAccommodationModel configuredAccommodation) Create selected accommodation model selected accommodation model.protected AbstractOrderEntryModelgetBoundIdFromEntry(Map<String, Object> params, CartModel cartModel) Get bound id for entryprotected de.hybris.platform.configurablebundleservices.bundle.BundleTemplateServiceGets bundle template service.protected de.hybris.platform.order.CartServiceGets cart service.protected CommerceCartParametergetCommerceCartParameter(BundleTemplateModel childTemplate, ProductModel autoPickProduct, Set<Integer> singleton) Gets commerce cart parameter.Gets offer group to origin destination mapping.getOrderEntriesForCategory(CartModel cartModel, CategoryModel categoryModel, String travelRouteCode, List<String> transportOfferingCodes, String travellerUid) Method to retrieve all the cart entries for a specified categoryModelde.hybris.platform.servicelayer.session.SessionServiceprotected TransportOfferingServiceGets transport offering service.protected TravelCartServiceGets travel cart service.protected TravelCommercePriceServiceGets travel commerce price service.protected TravelKeyGeneratorServiceGets travel key generator service.protected TravellerServiceGets traveller service.protected TravelRouteServiceGets travel route service.protected booleanisTravellerEligibleForProduct(ProductModel product, String passengerType) Is traveller eligible for product boolean.voidnormalizeEntryNumbers(CartModel cartModel) Normalize the cart entry numbersprotected voidpersistProperties(Map<String, Object> propertiesMap, AbstractOrderEntryModel orderEntry) Persist properties.protected voidpopulateActiveFlagForEntry(Boolean active, Map<String, Object> params) Populate active flag for entry.protected voidpopulateAmendStatusForEntry(AmendStatus amendStatus, Map<String, Object> params) Populate amend status for entry.protected voidpopulateBoundId(Map<String, Object> params, CartModel cartModel, List<TransportOfferingModel> transportOfferingModels) Populate the bound id, if the bound id exists use the same for a bound or create oneprotected voidpopulatePriceLevelForEntry(PriceLevel priceLevel, Map<String, Object> params) Populate price level for entry.protected voidpopulateTransportOfferingForEntry(List<TransportOfferingModel> transportOfferings, Map<String, Object> params) Populate transport offering for entry.protected voidpopulateTravellerForEntry(AbstractOrderEntryModel orderEntryModel, TravellerModel travellerModel, Map<String, Object> params) Populate traveller for entry.protected voidpopulateTravelRouteForEntry(TravelRouteModel travelRouteModel, Map<String, Object> params) Populate travel route for entry.voidremoveCartEntriesForBoundId(String boundId) Cleans up the cart from the boundId.voidremoveCartEntriesForMinODRefNumber(Integer odRefNum) Cleans up the cart from bundles before a new bundle addition.voidremoveCartEntriesForODRefNumber(Integer odRefNum, CartModel cartModel) Removes all cart entries matching specified origin destination ref number and the related entry groups.protected voidremoveCartEntryGroupNumbers(CartModel sessionCart, Set<Integer> entryGroupNumbers) Remove cart entry group from the cart taking the set of entry group number from the order entries that needs to be removed and looking up for their parent groups.voidremoveEntryGroupsFromCart(CartModel sessionCart, Set<Integer> entryGroupNumbers) Remove cart entry group from the cart taking the set of entry group number from the order entries that needs to be removed and looking up for their parent groups.protected voidremoveFeeOrderEntries(AbstractOrderModel abstractOrderModel) Removes the list ofAbstractOrderEntryModelthat corresponds to a product ofProductTypeFEE.voidremoveSelectedAccommodationFromCart(String transportOfferingCode, String travellerCode, String configuredAccommodationUid) This method removes a selected accommodation from the cartprotected voidremoveTravellers(AbstractOrderModel abstractOrderModel) protected voidremoveTravelOrderEntries(List<AbstractOrderEntryModel> abstractOrderEntries) Removes the given list ofAbstractOrderEntryModeland theirTravelOrderEntryInfoModel.voidsetBundleTemplateService(de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService bundleTemplateService) Sets bundle template service.voidsetCartService(de.hybris.platform.order.CartService cartService) Sets cart service.voidsetEntryAsCalculatedAndInitializePriceLevel(Integer entryNumberToUpdate) Set cart entry as calculated and initialize price level to null.voidsetOfferGroupToOriginDestinationMapping(Map<String, String> offerGroupToOriginDestinationMapping) Sets offer group to origin destination mapping.voidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) voidsetTransportOfferingService(TransportOfferingService transportOfferingService) Sets transport offering service.voidsetTravelCartService(TravelCartService travelCartService) Sets travel cart service.voidsetTravelCommercePriceService(TravelCommercePriceService travelCommercePriceService) Sets travel commerce price service.voidsetTravelKeyGeneratorService(TravelKeyGeneratorService travelKeyGeneratorService) Sets travel key generator service.voidsetTravellerService(TravellerService travellerService) Sets traveller service.voidsetTravelRouteService(TravelRouteService travelRouteService) Sets travel route service.protected voidupdateCartEntryWithTravelDetails(AbstractOrderEntryModel orderEntryModel, PriceLevel priceLevel) Method to update the cart entry with travel specific valuesvoidupdateCartEntryWithTravelDetails(AbstractOrderEntryModel orderEntryModel, PriceLevel priceLevel, List<TransportOfferingModel> transportOfferingModels) Method to update the cart entry with travel specific values and specific transportOfferings.protected voidupdateCartEntryWithTravelDetails(AbstractOrderEntryModel orderEntryModel, PriceLevel priceLevel, List<TransportOfferingModel> transportOfferings, boolean saveTravellerDetails) Update cart entry with travel details.Methods inherited from class de.hybris.platform.subscriptionservices.subscription.impl.DefaultSubscriptionCommerceCartService
addOneRecurringFrequency, checkMasterCart, checkQuantityToAdd, checkQuantityToAdd, createChildCartForBillingTime, getAvailableStockLevel, getBaseStoreService, getBillingFrequenciesForMasterEntry, getBillingTimeForCode, getBillingTimeService, getCartEntryToBeUpdated, getChildCartForBillingTime, getCommercePriceService, getCommerceStockService, getMasterCartBillingTimeCode, getMasterCartForCartEntry, getSubscriptionCommerceCartStrategy, getSubscriptionProductService, getSubscriptionProductStockQuantity, isMasterCart, recalculateCart, recalculateCart, removeAllEntries, setBaseStoreService, setBillingTimeService, setCommercePriceService, setCommerceStockService, setMasterCartBillingTimeCode, setSubscriptionCommerceCartStrategy, setSubscriptionProductService, setSubscriptionProductStockQuantity, useBillingFrequencyForProductMethods 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, getStaleCartRemovalStrategy, mergeCarts, removeAllEntries, removeEntryGroup, removeStaleCarts, removeStaleCarts, restoreCart, restoreCart, setBaseSiteService, setCartValidationStrategy, setCommerceAddToCartStrategy, setCommerceCartCalculationStrategy, setCommerceCartDao, setCommerceCartEstimateTaxesStrategy, setCommerceCartHashCalculationStrategy, setCommerceCartMergingStrategy, setCommerceCartMetadataUpdateStrategy, setCommerceCartRestorationStrategy, setCommerceCartSplitStrategy, setCommerceRemoveEntriesStrategy, setCommerceUpdateCartEntryStrategy, setModelService, setProductConfigurationStrategy, setRemoveEntryGroupStrategy, 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, validateCartMethods inherited from interface de.hybris.platform.subscriptionservices.subscription.SubscriptionCommerceCartService
checkMasterCart, checkQuantityToAdd, createChildCartForBillingTime, getBillingFrequenciesForMasterEntry, getChildCartForBillingTime, getMasterCartBillingTimeCode, getMasterCartForCartEntry
-
Constructor Details
-
DefaultTravelCommerceCartService
public DefaultTravelCommerceCartService()
-
-
Method Details
-
updateCartEntryWithTravelDetails
public void updateCartEntryWithTravelDetails(AbstractOrderEntryModel orderEntryModel, PriceLevel priceLevel, List<TransportOfferingModel> transportOfferingModels) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Description copied from interface:TravelCommerceCartServiceMethod to update the cart entry with travel specific values and specific transportOfferings.- Specified by:
updateCartEntryWithTravelDetailsin interfaceTravelCommerceCartService- Parameters:
orderEntryModel- the order entry to updatepriceLevel- the pricetransportOfferingModels- the transport offering- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
updateCartEntryWithTravelDetails
protected void updateCartEntryWithTravelDetails(AbstractOrderEntryModel orderEntryModel, PriceLevel priceLevel) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Method to update the cart entry with travel specific values- Parameters:
orderEntryModel- the order entry to updatepriceLevel- the price- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- the commerce cart modification exception
-
updateCartEntryWithTravelDetails
protected void updateCartEntryWithTravelDetails(AbstractOrderEntryModel orderEntryModel, PriceLevel priceLevel, List<TransportOfferingModel> transportOfferings, boolean saveTravellerDetails) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Update cart entry with travel details.- Parameters:
orderEntryModel- the order entry modelpriceLevel- the price leveltransportOfferings- the transport offeringssaveTravellerDetails- the save traveller details- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- the commerce cart modification exception
-
populateBoundId
protected void populateBoundId(Map<String, Object> params, CartModel cartModel, List<TransportOfferingModel> transportOfferingModels) Populate the bound id, if the bound id exists use the same for a bound or create one- Parameters:
params- the paramscartModel- the cart modeltransportOfferingModels- the transport offering model
-
getBoundIdFromEntry
protected AbstractOrderEntryModel getBoundIdFromEntry(Map<String, Object> params, CartModel cartModel) Get bound id for entry- Parameters:
params- the paramscartModel- the cart model- Returns:
- bound id from entry
-
addAutopickProductsForRoute
protected void addAutopickProductsForRoute(int bundleEntryGroupNo, List<TransportOfferingModel> transportOfferingModels, TravelRouteModel travelRouteModel, TravellerModel travellerModel, List<CommerceCartModification> modificationList, BundleTemplateModel childTemplate, ProductModel autoPickProduct) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Add autopick products for route.- Parameters:
bundleEntryGroupNo- the bundle entry group notransportOfferingModels- the transport offering modelstravelRouteModel- the travel route modeltravellerModel- the traveller modelmodificationList- the modification listchildTemplate- the child templateautoPickProduct- the auto pick product- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- the commerce cart modification exception
-
getCommerceCartParameter
protected CommerceCartParameter getCommerceCartParameter(BundleTemplateModel childTemplate, ProductModel autoPickProduct, Set<Integer> singleton) Gets commerce cart parameter.- Parameters:
childTemplate- the child templateautoPickProduct- the auto pick productsingleton- the singleton- Returns:
- the commerce cart parameter
-
addAutopickProductsForTransportOfferings
protected void addAutopickProductsForTransportOfferings(int bundleEntryGroupNo, List<TransportOfferingModel> transportOfferingModels, TravelRouteModel travelRouteModel, TravellerModel travellerModel, List<CommerceCartModification> modificationList, BundleTemplateModel childTemplate, ProductModel autoPickProduct) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Add autopick products for transport offerings.- Parameters:
bundleEntryGroupNo- the bundle entry group notransportOfferingModels- the transport offering modelstravelRouteModel- the travel route modeltravellerModel- the traveller modelmodificationList- the modification listchildTemplate- the child templateautoPickProduct- the auto pick product- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- the commerce cart modification exception
-
populateTravelRouteForEntry
protected void populateTravelRouteForEntry(TravelRouteModel travelRouteModel, Map<String, Object> params) Populate travel route for entry.- Parameters:
travelRouteModel- the travel route modelparams- the params
-
populateTravellerForEntry
protected void populateTravellerForEntry(AbstractOrderEntryModel orderEntryModel, TravellerModel travellerModel, Map<String, Object> params) Populate traveller for entry.- Parameters:
orderEntryModel- the order entry modeltravellerModel- the traveller modelparams- the params
-
populatePriceLevelForEntry
Populate price level for entry.- Parameters:
priceLevel- the price levelparams- the params
-
populateTransportOfferingForEntry
protected void populateTransportOfferingForEntry(List<TransportOfferingModel> transportOfferings, Map<String, Object> params) Populate transport offering for entry.- Parameters:
transportOfferings- the transport offeringsparams- the params
-
populateActiveFlagForEntry
Populate active flag for entry.- Parameters:
active- the activeparams- the params
-
populateAmendStatusForEntry
Populate amend status for entry.- Parameters:
amendStatus- the amend statusparams- the params
-
isTravellerEligibleForProduct
Is traveller eligible for product boolean.- Parameters:
product- the productpassengerType- the passenger type- Returns:
- the boolean
-
addPropertiesToCartEntry
public void addPropertiesToCartEntry(CartModel masterCartModel, int orderEntryNo, ProductModel product, Map<String, Object> propertiesMap) Add properties to cart entry.- Specified by:
addPropertiesToCartEntryin interfaceTravelCommerceCartService- Parameters:
masterCartModel- the cart model. It must exist and it must be a master cart.orderEntryNo- entryNo for cart entryproduct- the product model that will be added to the cartpropertiesMap- Map containing all the properties to be added to the cart Entry
-
getOrderEntriesForCategory
public List<AbstractOrderEntryModel> getOrderEntriesForCategory(CartModel cartModel, CategoryModel categoryModel, String travelRouteCode, List<String> transportOfferingCodes, String travellerUid) Description copied from interface:TravelCommerceCartServiceMethod to retrieve all the cart entries for a specified categoryModel- Specified by:
getOrderEntriesForCategoryin interfaceTravelCommerceCartService- Parameters:
cartModel- as the cartModelcategoryModel- as the categoryModel to use to retrieve the cart entriestravelRouteCode- as the travelRoute codetransportOfferingCodes- as the list of transportOffering codestravellerUid- as the Traveller unique id- Returns:
- list of AbstractOrderEntryModel
-
checkBundleAndCategory
protected boolean checkBundleAndCategory(AbstractOrderEntryModel orderEntry, CategoryModel categoryModel) Verifies if order entry bundle and product's category match- Parameters:
orderEntry- the order entrycategoryModel- the category- Returns:
- true if bundle and product category match
-
checkTraveller
Verifies if order entry has a matching traveller- Parameters:
orderEntry- the order entrytravellerUid- the traveller uid- Returns:
- true if traveller matches
-
checkTransportOfferings
protected boolean checkTransportOfferings(AbstractOrderEntryModel orderEntry, List<String> transportOfferingCodes) Verifies if order entry has a matching list of transport offerings- Parameters:
orderEntry- the order entrytransportOfferingCodes- the list of transport offering codes- Returns:
- true if the order entry contains all the transport offering codes
-
persistProperties
protected void persistProperties(Map<String, Object> propertiesMap, AbstractOrderEntryModel orderEntry) Persist properties.- Parameters:
propertiesMap- the properties maporderEntry- the order entry
-
addSelectedAccommodationToCart
public void addSelectedAccommodationToCart(String transportOfferingCode, String travellerCode, ConfiguredAccommodationModel configuredAccommodation) Description copied from interface:TravelCommerceCartServiceThis method adds a configured accommodation as a selected accommodation to the cart- Specified by:
addSelectedAccommodationToCartin interfaceTravelCommerceCartService- Parameters:
transportOfferingCode- the transport offering codetravellerCode- the traveller codeconfiguredAccommodation- the configured accommodation
-
createSelectedAccommodationModel
protected SelectedAccommodationModel createSelectedAccommodationModel(String transportOfferingCode, String travellerCode, CartModel sessionCart, ConfiguredAccommodationModel configuredAccommodation) Create selected accommodation model selected accommodation model.- Parameters:
transportOfferingCode- the transport offering codetravellerCode- the traveller codesessionCart- the session cartconfiguredAccommodation- the configured accommodation- Returns:
- the selected accommodation model
-
removeSelectedAccommodationFromCart
public void removeSelectedAccommodationFromCart(String transportOfferingCode, String travellerCode, String configuredAccommodationUid) Description copied from interface:TravelCommerceCartServiceThis method removes a selected accommodation from the cart- Specified by:
removeSelectedAccommodationFromCartin interfaceTravelCommerceCartService- Parameters:
transportOfferingCode- the transport offering codetravellerCode- the traveller codeconfiguredAccommodationUid- the configured accommodation Uid
-
removeCartEntriesForMinODRefNumber
Description copied from interface:TravelCommerceCartServiceCleans up the cart from bundles before a new bundle addition. It removes all the entries of type TRANSPORT with originDestinationRefNumber greater than the given odRefNum and the related entry groups.- Specified by:
removeCartEntriesForMinODRefNumberin interfaceTravelCommerceCartService- Parameters:
odRefNum- as the minimum originDestinationRefNumber
-
removeCartEntriesForBoundId
public void removeCartEntriesForBoundId(String boundId) throws de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException Description copied from interface:TravelCommerceCartServiceCleans up the cart from the boundId. It removes all the entries associated to the boundId and the related entry groups.- Specified by:
removeCartEntriesForBoundIdin interfaceTravelCommerceCartService- Parameters:
boundId- the boundId which needs to be removed- Throws:
de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException
-
normalizeEntryNumbers
Description copied from interface:TravelCommerceCartServiceNormalize the cart entry numbers- Specified by:
normalizeEntryNumbersin interfaceTravelCommerceCartService- Parameters:
cartModel- the cart model
-
removeEntryGroupsFromCart
Description copied from interface:TravelCommerceCartServiceRemove cart entry group from the cart taking the set of entry group number from the order entries that needs to be removed and looking up for their parent groups.- Specified by:
removeEntryGroupsFromCartin interfaceTravelCommerceCartService- Parameters:
sessionCart- the session cartentryGroupNumbers- the entry group numbers
-
removeCartEntryGroupNumbers
Remove cart entry group from the cart taking the set of entry group number from the order entries that needs to be removed and looking up for their parent groups.- Parameters:
sessionCart- the session cartentryGroupNumbers- the entry group numbers
-
removeCartEntriesForODRefNumber
Description copied from interface:TravelCommerceCartServiceRemoves all cart entries matching specified origin destination ref number and the related entry groups.- Specified by:
removeCartEntriesForODRefNumberin interfaceTravelCommerceCartService- Parameters:
odRefNum- origin destination ref numbercartModel- cart model
-
setEntryAsCalculatedAndInitializePriceLevel
public void setEntryAsCalculatedAndInitializePriceLevel(Integer entryNumberToUpdate) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Description copied from interface:TravelCommerceCartServiceSet cart entry as calculated and initialize price level to null.- Specified by:
setEntryAsCalculatedAndInitializePriceLevelin interfaceTravelCommerceCartService- Parameters:
entryNumberToUpdate- the entry number to update- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
addAutoPickProductsToCart
public List<CommerceCartModification> addAutoPickProductsToCart(ProductModel productModel, String bundleTemplateId, int bundleEntryGroupNo) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Description copied from interface:TravelCommerceCartServiceAdd auto picks products to cart using hybris 6.4 bundle APIs- Specified by:
addAutoPickProductsToCartin interfaceTravelCommerceCartService- Parameters:
productModel- the productbundleTemplateId- the bundle template idbundleEntryGroupNo- the bundle entry group number- Returns:
- a list of commerce cart modification
- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
addPerLegBundleProductToCart
public List<CommerceCartModification> addPerLegBundleProductToCart(String bundleTemplateId) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Description copied from interface:TravelCommerceCartServiceAdd per leg products to cart using Hybris 6.4 bundle APIs- Specified by:
addPerLegBundleProductToCartin interfaceTravelCommerceCartService- Parameters:
bundleTemplateId- the bundle template id- Returns:
- a list of commerce cart modification
- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
addAutopickPerLegProducts
protected void addAutopickPerLegProducts(List<TransportOfferingModel> transportOfferingModels, TravelRouteModel travelRouteModel, List<CommerceCartModification> modificationList, BundleTemplateModel childTemplate, ProductModel autoPickProduct) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Add autopick per leg products.- Parameters:
transportOfferingModels- the transport offering modelstravelRouteModel- the travel route modelmodificationList- the modification listchildTemplate- the child templateautoPickProduct- the auto pick product- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- the commerce cart modification exception
-
removeTravelOrderEntries
Removes the given list ofAbstractOrderEntryModeland theirTravelOrderEntryInfoModel.- Parameters:
abstractOrderEntries- the list of abstract order entry models
-
removeTravellers
- Parameters:
abstractOrderModel- the abstract order model
-
removeFeeOrderEntries
Removes the list ofAbstractOrderEntryModelthat corresponds to a product ofProductTypeFEE.- Parameters:
abstractOrderModel- the abstract order model
-
getTravellerService
Gets traveller service.- Returns:
- TravellerService traveller service
-
setTravellerService
Sets traveller service.- Parameters:
travellerService- the traveller service
-
getTransportOfferingService
Gets transport offering service.- Returns:
- TransportOfferingService transport offering service
-
setTransportOfferingService
Sets transport offering service.- Parameters:
transportOfferingService- the transport offering service
-
getCartService
protected de.hybris.platform.order.CartService getCartService()Gets cart service.- Returns:
- the cartService
-
setCartService
public void setCartService(de.hybris.platform.order.CartService cartService) Sets cart service.- Parameters:
cartService- the cartService to set
-
getOfferGroupToOriginDestinationMapping
Gets offer group to origin destination mapping.- Returns:
- the offerGroupToOriginDestinationMapping
-
setOfferGroupToOriginDestinationMapping
public void setOfferGroupToOriginDestinationMapping(Map<String, String> offerGroupToOriginDestinationMapping) Sets offer group to origin destination mapping.- Parameters:
offerGroupToOriginDestinationMapping- the offerGroupToOriginDestinationMapping to set
-
getSessionService
public de.hybris.platform.servicelayer.session.SessionService getSessionService()- Overrides:
getSessionServicein classde.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService- Returns:
- the sessionService
-
setSessionService
public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) - Overrides:
setSessionServicein classde.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService- Parameters:
sessionService- the sessionService to set
-
getTravelCommercePriceService
Gets travel commerce price service.- Returns:
- the travel commerce price service
-
setTravelCommercePriceService
Sets travel commerce price service.- Parameters:
travelCommercePriceService- the travel commerce price service
-
getTravelRouteService
Gets travel route service.- Returns:
- the travel route service
-
setTravelRouteService
Sets travel route service.- Parameters:
travelRouteService- the travel route service
-
getBundleTemplateService
protected de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService getBundleTemplateService()Gets bundle template service.- Returns:
- the bundle template service
-
setBundleTemplateService
@Autowired public void setBundleTemplateService(de.hybris.platform.configurablebundleservices.bundle.BundleTemplateService bundleTemplateService) Sets bundle template service.- Parameters:
bundleTemplateService- the bundle template service
-
getTravelKeyGeneratorService
Gets travel key generator service.- Returns:
- the travelKeyGeneratorService
-
setTravelKeyGeneratorService
Sets travel key generator service.- Parameters:
travelKeyGeneratorService- the travelKeyGeneratorService to set
-
getTravelCartService
Gets travel cart service.- Returns:
- the travel cart service
-
setTravelCartService
Sets travel cart service.- Parameters:
travelCartService- the travel cart service
-