Class DefaultTravelCartService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.order.impl.DefaultAbstractOrderService<CartModel,CartEntryModel>
de.hybris.platform.order.impl.DefaultCartService
de.hybris.platform.travelservices.order.impl.DefaultTravelCartService
- All Implemented Interfaces:
de.hybris.platform.order.AbstractOrderService<CartModel,,CartEntryModel> de.hybris.platform.order.CartService,TravelCartService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
DefaultShoppingTravelCartService
public class DefaultTravelCartService
extends de.hybris.platform.order.impl.DefaultCartService
implements TravelCartService
Extends DefaultCartService to handle travel specific services like creating cart from order
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractService.SerializableDTO -
Field Summary
FieldsFields inherited from class de.hybris.platform.order.impl.DefaultCartService
SESSION_CART_PARAMETER_NAMEFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTravellersToCart(Map<String, Integer> travellerQuantityMap) Adds travellers to the cart.protected DoublecalculateTotalExtras(List<AbstractOrderEntryModel> entries) Calculate total extras double.cancelPartialOrder(OrderModel order, OrderEntryType orderEntryType, UserModel user) Creates cart from order and removes all entries of type orderEntryTypecancelPartialOrder(String orderCode, OrderEntryType orderEntryType, String guid) Creates cart from order and removes all entries of type orderEntryTypecancelTraveller(String orderCode, String cancelledTravellerCode, String cancelledTravellerUid, String guid) Creates cart from order and removes all entries related to travellerprotected voidcancelTravellerInternal(CartModel amendmentCart, String travellerId, List<AbstractOrderEntryModel> travellerEntries) Internal method to remove traveller from amendment cart.protected voidcloneAccommodationOrderEntryGroup(AccommodationOrderEntryGroupModel orderEntryGroupModel) Clone accommodation order entry group.protected voidClone the accommodation order entry info.protected voidcloneSelectedAccommodation(SelectedAccommodationModel selectedAccommodationModel, CartModel cartModel, Map<TravellerModel, TravellerModel> travellerModelTravellerModelMap, List<SelectedAccommodationModel> clonedSelectedAccommodationList) Clone selected accommodation.protected voidcloneTraveller(TravellerModel traveller, String cartCode, Map<TravellerModel, TravellerModel> clonedTravellersMap) Clone traveller.protected Map<TravellerModel,TravellerModel> cloneTravellers(CartModel cartModel, String cartCode) Clone travellers map.protected voidcloneTravelOrderEntryInfo(AbstractOrderEntryModel orderEntry, Map<TravellerModel, TravellerModel> clonedTravellerModelMap) Clone travel order entry info.protected voidcloneTravelOrderEntryInfoAttributes(TravelOrderEntryInfoModel clonedInfo, TravelOrderEntryInfoModel travelOrderEntryInfo) Clone travel order entry info attributes.createCartFromOrder(OrderModel orderModel, UserModel userModel) Creates a cart from order which will contain a reference to cloned order by original order.createCartFromOrder(String orderCode, String guid) Creates a cart from order which will contain a reference to cloned order by originalOrderCode attributevoidDeletes current cart modelprotected voidChanges currency so that amendment is done in the same currency as original ordergenerateOrderEntryId(CartModel cartModel) Generate order entry id integer.getAvailableStock(ProductModel productModel, TransportOfferingModel transportOfferingModel) Returns the available stock for Product in TransportOffering.protected de.hybris.platform.store.services.BaseStoreServiceGets base store service.protected BookingServiceGets booking service.de.hybris.platform.order.strategies.ordercloning.CloneAbstractOrderStrategyprotected de.hybris.platform.commerceservices.order.CommerceCartCalculationStrategyGets commerce cart calculation strategy.protected de.hybris.platform.servicelayer.i18n.CommonI18NServiceGets common i 18 n service.Retrieves current destination transport facility from items that are in the cartprotected de.hybris.platform.commerceservices.customer.CustomerAccountServiceGets customer account service.getEntriesTotal(List<AbstractOrderEntryModel> entries) Calculates the total price of given entries taking into consideration discounts and taxesgetEntryForId(AbstractOrderModel order, Integer entryId) Gets entry for id.protected de.hybris.platform.enumeration.EnumerationServiceGets enumeration service.getFareProductEntries(AbstractOrderModel abstractOrderModel) Returns the list of AbstractOrderEntryModel for fare product from the entries of abstractOrderModelGets global discount calculation strategy map.getGlobalDiscountForEntryType(AbstractOrderModel abstractOrder, OrderEntryType entryType) Return the portio of global discounts relative to the given entry typeCalculates the next bundle number to be used while adding products belonging to bundle to the cart using directly methods requiring it.protected OrderModelGets order.protected de.hybris.platform.servicelayer.keygenerator.KeyGeneratorGets order code generator.protected OrderEntryModelgetOriginalOrderEntry(OrderModel orderModel, AbstractOrderEntryModel orderEntryModel) Gets original order entry.protected PassengerTypeServiceGets passenger type service.protected List<PaymentOptionCreationStrategy>Gets payment option creation strategies.Returns a list of payment options, in which every option is represented by a list of objects storing a subset of order entries, with the relative price to pay and the associated payment conditionsgetPaymentOptions(OrderEntryType orderEntryType) Returns a list of payment options, in which every option is represented by a list of objects storing a subset of order entries, with the relative price to pay and the associated payment conditionsprotected Map<OrderEntryType,List<PaymentOptionCreationStrategy>> Gets payment options creation strategy map.protected de.hybris.platform.commerceservices.storesession.StoreSessionServiceGets store session service.protected TaxCompensationStrategyGets tax compensation strategy.protected de.hybris.platform.servicelayer.time.TimeServiceGets time service.getTransportTotalByEntries(AbstractOrderModel order, List<AbstractOrderEntryModel> entries) calculates total by entriesprotected TravelCartDaoGets travel cart dao.protected TravelCommercePriceServiceGets travel commerce price service.protected TravelCommerceStockServiceGets travel commerce stock service.protected TravellerServiceGets traveller service.protected de.hybris.platform.servicelayer.user.UserServiceGets user service.Check if the current session cart is an amendment cartprotected booleanisCartValid(String departureLocation, String arrivalLocation, String departureDate, String returnDate, CartModel cartModel, AbstractOrderEntryModel outboundEntry) Is cart valid boolean.Returns true is the entry price is calculated as net, false otherwiseprotected voidpopulateOriginalOrderEntry(OrderModel orderModel, CartModel cartModel) Populate original order entry.protected voidremoveBookedSeatForTraveller(CartModel amendmentCart, String cancelledTravellerUid) Remove booked seat for traveller.voidRemoves delivery address from the cartvoidremoveTravellerFromCart(String travellerId) Remove traveller from the cart.protected voidresetPaymentInfo(CartModel cartModel) Resets the PaymentInfo on Amend carts.voidsetAdditionalSecurity(Boolean additionalSecurity) Sets the additional security active on the session cartvoidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) Sets base store service.voidsetBookingService(BookingService bookingService) Sets booking service.voidsetCloneAbstractOrderStrategy(de.hybris.platform.order.strategies.ordercloning.CloneAbstractOrderStrategy cloneAbstractOrderStrategy) voidsetCommerceCartCalculationStrategy(de.hybris.platform.commerceservices.order.CommerceCartCalculationStrategy commerceCartCalculationStrategy) Sets commerce cart calculation strategy.voidsetCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) Sets common i 18 n service.voidsetCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) Sets customer account service.voidsetEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) Sets enumeration service.voidsetGlobalDiscountCalculationStrategyMap(Map<OrderEntryType, GlobalDiscountByEntryTypeCalculationStrategy> globalDiscountCalculationStrategyMap) Sets global discount calculation strategy map.voidsetOrderCodeGenerator(de.hybris.platform.servicelayer.keygenerator.KeyGenerator orderCodeGenerator) Sets order code generator.voidsetPassengerTypeService(PassengerTypeService passengerTypeService) Sets passenger type service.voidsetPaymentOptionCreationStrategies(List<PaymentOptionCreationStrategy> paymentOptionCreationStrategies) Sets payment option creation strategies.voidsetPaymentOptionsCreationStrategyMap(Map<OrderEntryType, List<PaymentOptionCreationStrategy>> paymentOptionsCreationStrategyMap) Sets payment options creation strategy map.voidsetStoreSessionService(de.hybris.platform.commerceservices.storesession.StoreSessionService storeSessionService) Sets store session service.voidsetTaxCompensationStrategy(TaxCompensationStrategy taxCompensationStrategy) Sets tax compensation strategy.voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) Sets time service.voidsetTravelCartDao(TravelCartDao travelCartDao) Sets travel cart dao.voidsetTravelCommercePriceService(TravelCommercePriceService travelCommercePriceService) Sets travel commerce price service.voidsetTravelCommerceStockService(TravelCommerceStockService travelCommerceStockService) Sets travel commerce stock service.voidsetTravellerService(TravellerService travellerService) Sets traveller service.voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService) Sets user service.voidupdateBundleEntriesWithBundleNumber(List<Integer> entryNumbers, Integer forcedBundleNumber) Updates order entries with the correct incremental bundle number after add to cartvoidvalidateCart(String departureLocation, String arrivalLocation, String departureDate, String returnDate) Validates cart to check if it transport details matches currently selected options.Methods inherited from class de.hybris.platform.order.impl.DefaultCartService
addToCart, appendToCart, calculateCart, changeCurrentCartUser, changeSessionCartCurrency, clone, createCartFromQuote, getCreateCartFromQuoteStrategy, getNextEntryNumber, hasCart, hasSessionCart, internalGetSessionCart, postProcessClonedEntries, removeSessionCart, setAddToCartStrategy, setCartFactory, setCreateCartFromQuoteStrategy, setOrderCalculation, setSessionCart, updateQuantities, updateQuantitiesMethods inherited from class de.hybris.platform.order.impl.DefaultAbstractOrderService
addAllGlobalDiscountValues, addAllTotalTaxValues, addEntryAtPosition, addGlobalDiscountValue, addNewEntry, addNewEntry, addNewEntry, addTotalTaxValue, getAbstractOrderEntryService, getAbstractOrderEntryTypeService, getCollidingEntry, getEntriesForNumber, getEntriesForProduct, getEntryForNumber, getEntryTypeCode, getGlobalDiscountValue, getOrderDao, getSaveAbstractOrderStrategy, removeGlobalDiscountValue, removeTotalTaxValue, saveOrder, setAbstractOrderEntryService, setAbstractOrderEntryTypeService, setOrderDao, setSaveAbstractOrderStrategyMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.order.AbstractOrderService
addAllGlobalDiscountValues, addAllTotalTaxValues, addGlobalDiscountValue, addNewEntry, addNewEntry, addNewEntry, addTotalTaxValue, clone, getEntriesForNumber, getEntriesForProduct, getEntryForNumber, getGlobalDiscountValue, removeGlobalDiscountValue, removeTotalTaxValue, saveOrderMethods inherited from interface de.hybris.platform.order.CartService
addToCart, appendToCart, calculateCart, changeCurrentCartUser, changeSessionCartCurrency, createCartFromQuote, hasCart, hasSessionCart, removeSessionCart, setSessionCart, updateQuantities, updateQuantities
-
Field Details
-
FIRST_ORDER_ENTRY_ID
-
-
Constructor Details
-
DefaultTravelCartService
public DefaultTravelCartService()
-
-
Method Details
-
getSessionCart
- Specified by:
getSessionCartin interfacede.hybris.platform.order.CartService- Overrides:
getSessionCartin classde.hybris.platform.order.impl.DefaultCartService
-
createCartFromOrder
Description copied from interface:TravelCartServiceCreates a cart from order which will contain a reference to cloned order by originalOrderCode attribute- Specified by:
createCartFromOrderin interfaceTravelCartService- Parameters:
orderCode- original orderguid- the guid- Returns:
- newly created Cart
-
createCartFromOrder
Description copied from interface:TravelCartServiceCreates a cart from order which will contain a reference to cloned order by original order.- Specified by:
createCartFromOrderin interfaceTravelCartServiceuserModel- the user- Returns:
- newly created cart
-
resetPaymentInfo
Resets the PaymentInfo on Amend carts.- Parameters:
cartModel- the cart model
-
populateOriginalOrderEntry
Populate original order entry.- Parameters:
orderModel- the order modelcartModel- the cart model
-
getOriginalOrderEntry
protected OrderEntryModel getOriginalOrderEntry(OrderModel orderModel, AbstractOrderEntryModel orderEntryModel) Gets original order entry.- Parameters:
orderModel- the order modelorderEntryModel- the order entry model- Returns:
- the original order entry
-
getOrder
Gets order.- Parameters:
orderCode- the order code- Returns:
- the order
-
cloneAccommodationOrderEntryGroup
protected void cloneAccommodationOrderEntryGroup(AccommodationOrderEntryGroupModel orderEntryGroupModel) Clone accommodation order entry group.- Parameters:
orderEntryGroupModel- the order entry group model
-
cloneTravelOrderEntryInfo
protected void cloneTravelOrderEntryInfo(AbstractOrderEntryModel orderEntry, Map<TravellerModel, TravellerModel> clonedTravellerModelMap) Clone travel order entry info.- Parameters:
orderEntry- the order entryclonedTravellerModelMap- the cloned traveller model map
-
cloneSelectedAccommodation
protected void cloneSelectedAccommodation(SelectedAccommodationModel selectedAccommodationModel, CartModel cartModel, Map<TravellerModel, TravellerModel> travellerModelTravellerModelMap, List<SelectedAccommodationModel> clonedSelectedAccommodationList) Clone selected accommodation.- Parameters:
selectedAccommodationModel- the selected accommodation modelcartModel- the cart modeltravellerModelTravellerModelMap- the traveller model traveller model mapclonedSelectedAccommodationList- the cloned selected accommodation list
-
cloneTravelOrderEntryInfoAttributes
protected void cloneTravelOrderEntryInfoAttributes(TravelOrderEntryInfoModel clonedInfo, TravelOrderEntryInfoModel travelOrderEntryInfo) Clone travel order entry info attributes.- Parameters:
clonedInfo- the cloned infotravelOrderEntryInfo- the travel order entry info
-
cloneTravellers
Clone travellers map.- Parameters:
cartModel- the cart modelcartCode- the cart code- Returns:
- the map
-
cloneTraveller
protected void cloneTraveller(TravellerModel traveller, String cartCode, Map<TravellerModel, TravellerModel> clonedTravellersMap) Clone traveller.- Parameters:
traveller- the travellercartCode- the cart codeclonedTravellersMap- the cloned travellers map
-
forceCurrencyToOriginalOrderCurrency
Changes currency so that amendment is done in the same currency as original order- Parameters:
isocode- the isocode
-
cancelTraveller
public CartModel cancelTraveller(String orderCode, String cancelledTravellerCode, String cancelledTravellerUid, String guid) Description copied from interface:TravelCartServiceCreates cart from order and removes all entries related to traveller- Specified by:
cancelTravellerin interfaceTravelCartService- Parameters:
orderCode- the order codecancelledTravellerCode- the cancelled traveller codecancelledTravellerUid- the cancelled traveller uidguid- the guid- Returns:
- Cart Model without entries related to given traveller
-
removeBookedSeatForTraveller
Remove booked seat for traveller.- Parameters:
amendmentCart- the amendment cartcancelledTravellerUid- the cancelled traveller uid
-
removeDeliveryAddress
public void removeDeliveryAddress()Description copied from interface:TravelCartServiceRemoves delivery address from the cart- Specified by:
removeDeliveryAddressin interfaceTravelCartService
-
getCloneAbstractOrderStrategy
public de.hybris.platform.order.strategies.ordercloning.CloneAbstractOrderStrategy getCloneAbstractOrderStrategy()- Overrides:
getCloneAbstractOrderStrategyin classde.hybris.platform.order.impl.DefaultAbstractOrderService<CartModel,CartEntryModel> - Returns:
- the cloneAbstractOrderStrategy
-
setCloneAbstractOrderStrategy
public void setCloneAbstractOrderStrategy(de.hybris.platform.order.strategies.ordercloning.CloneAbstractOrderStrategy cloneAbstractOrderStrategy) - Overrides:
setCloneAbstractOrderStrategyin classde.hybris.platform.order.impl.DefaultAbstractOrderService<CartModel,CartEntryModel> - Parameters:
cloneAbstractOrderStrategy- the cloneAbstractOrderStrategy to set
-
getAvailableStock
public Long getAvailableStock(ProductModel productModel, TransportOfferingModel transportOfferingModel) Description copied from interface:TravelCartServiceReturns the available stock for Product in TransportOffering.- Specified by:
getAvailableStockin interfaceTravelCartService- Parameters:
productModel- the product modeltransportOfferingModel- the transport offering model- Returns:
- Long, quantity available for the product.
-
getFareProductEntries
Description copied from interface:TravelCartServiceReturns the list of AbstractOrderEntryModel for fare product from the entries of abstractOrderModel- Specified by:
getFareProductEntriesin interfaceTravelCartService- Parameters:
abstractOrderModel- the abstract order model- Returns:
- list AbstractOrderEntryModel
-
getCurrentDestination
Description copied from interface:TravelCartServiceRetrieves current destination transport facility from items that are in the cart- Specified by:
getCurrentDestinationin interfaceTravelCartService- Returns:
- current destination
-
getPaymentOptions
Description copied from interface:TravelCartServiceReturns a list of payment options, in which every option is represented by a list of objects storing a subset of order entries, with the relative price to pay and the associated payment conditions- Specified by:
getPaymentOptionsin interfaceTravelCartService- Returns:
- payment options
-
getPaymentOptions
Description copied from interface:TravelCartServiceReturns a list of payment options, in which every option is represented by a list of objects storing a subset of order entries, with the relative price to pay and the associated payment conditions- Specified by:
getPaymentOptionsin interfaceTravelCartService- Parameters:
orderEntryType- the order entry type- Returns:
- payment options
-
deleteCurrentCart
public void deleteCurrentCart()Description copied from interface:TravelCartServiceDeletes current cart model- Specified by:
deleteCurrentCartin interfaceTravelCartService
-
cancelPartialOrder
Description copied from interface:TravelCartServiceCreates cart from order and removes all entries of type orderEntryType- Specified by:
cancelPartialOrderin interfaceTravelCartService- Parameters:
orderCode- the booking referenceorderEntryType- the order entry typeguid- the guid- Returns:
- Cart Model without entries of type orderEntryType
-
cancelPartialOrder
public CartModel cancelPartialOrder(OrderModel order, OrderEntryType orderEntryType, UserModel user) Description copied from interface:TravelCartServiceCreates cart from order and removes all entries of type orderEntryType- Specified by:
cancelPartialOrderin interfaceTravelCartService- Parameters:
order- the orderorderEntryType- the order entry typeuser- the user- Returns:
- Cart Model without entries of type orderEntryType
-
getNextBundleNumberToUse
Description copied from interface:TravelCartServiceCalculates the next bundle number to be used while adding products belonging to bundle to the cart using directly methods requiring it.- Specified by:
getNextBundleNumberToUsein interfaceTravelCartService- Returns:
- the next number to use when manually add bundle products to cart
-
updateBundleEntriesWithBundleNumber
public void updateBundleEntriesWithBundleNumber(List<Integer> entryNumbers, Integer forcedBundleNumber) Description copied from interface:TravelCartServiceUpdates order entries with the correct incremental bundle number after add to cart- Specified by:
updateBundleEntriesWithBundleNumberin interfaceTravelCartService- Parameters:
entryNumbers- the entry numbersforcedBundleNumber- the forced bundle number
-
validateCart
public void validateCart(String departureLocation, String arrivalLocation, String departureDate, String returnDate) Description copied from interface:TravelCartServiceValidates cart to check if it transport details matches currently selected options. If not, the cart is cleared.- Specified by:
validateCartin interfaceTravelCartService- Parameters:
departureLocation- departure locationarrivalLocation- arrival locationdepartureDate- departure datereturnDate- return date
-
setAdditionalSecurity
Description copied from interface:TravelCartServiceSets the additional security active on the session cart- Specified by:
setAdditionalSecurityin interfaceTravelCartService- Parameters:
additionalSecurity- the additionalSecurity value
-
isCartValid
protected boolean isCartValid(String departureLocation, String arrivalLocation, String departureDate, String returnDate, CartModel cartModel, AbstractOrderEntryModel outboundEntry) Is cart valid boolean.- Parameters:
departureLocation- the departure locationarrivalLocation- the arrival locationdepartureDate- the departure datereturnDate- the return datecartModel- the cart modeloutboundEntry- the outbound entry- Returns:
- the boolean
-
getTransportTotalByEntries
public BigDecimal getTransportTotalByEntries(AbstractOrderModel order, List<AbstractOrderEntryModel> entries) Description copied from interface:TravelCartServicecalculates total by entries- Specified by:
getTransportTotalByEntriesin interfaceTravelCartService- Parameters:
order- the orderentries- the entries- Returns:
- transport total by entries
-
isNetPricedEntry
Description copied from interface:TravelCartServiceReturns true is the entry price is calculated as net, false otherwise- Specified by:
isNetPricedEntryin interfaceTravelCartService- Parameters:
entry- the entry- Returns:
- boolean
-
getGlobalDiscountForEntryType
public BigDecimal getGlobalDiscountForEntryType(AbstractOrderModel abstractOrder, OrderEntryType entryType) Description copied from interface:TravelCartServiceReturn the portio of global discounts relative to the given entry type- Specified by:
getGlobalDiscountForEntryTypein interfaceTravelCartService- Parameters:
abstractOrder- the abstract orderentryType- the entry type- Returns:
- global discount for entry type
-
calculateTotalExtras
Calculate total extras double.- Parameters:
entries- the entries- Returns:
- the double
-
getEntriesTotal
Description copied from interface:TravelCartServiceCalculates the total price of given entries taking into consideration discounts and taxes- Specified by:
getEntriesTotalin interfaceTravelCartService- Parameters:
entries- the entries- Returns:
- entries total
-
addTravellersToCart
public void addTravellersToCart(Map<String, Integer> travellerQuantityMap) throws de.hybris.platform.servicelayer.exceptions.ModelSavingException, AddTravellerToCartExceptionServiceAdds travellers to the cart.- Specified by:
addTravellersToCartin interfaceTravelCartService- Parameters:
travellerQuantityMap- the travellerQuantityMap- Throws:
de.hybris.platform.servicelayer.exceptions.ModelSavingException- the model saving exceptionAddTravellerToCartExceptionService- the add traveller to cart exception service
-
removeTravellerFromCart
Description copied from interface:TravelCartServiceRemove traveller from the cart.- Specified by:
removeTravellerFromCartin interfaceTravelCartService- Parameters:
travellerId- the id of traveller
-
cancelTravellerInternal
protected void cancelTravellerInternal(CartModel amendmentCart, String travellerId, List<AbstractOrderEntryModel> travellerEntries) Internal method to remove traveller from amendment cart.- Parameters:
amendmentCart- the amendment carttravellerId- the id of travellertravellerEntries- the entries with traveller for remove
-
isAmendmentCart
Description copied from interface:TravelCartServiceCheck if the current session cart is an amendment cart- Specified by:
isAmendmentCartin interfaceTravelCartService- Returns:
- true if is an amendment cart
-
getEntryForId
Description copied from interface:TravelCartServiceGets entry for id.- Specified by:
getEntryForIdin interfaceTravelCartService- Parameters:
order- the orderentryId- the entry id- Returns:
- the entry for id
-
generateOrderEntryId
Description copied from interface:TravelCartServiceGenerate order entry id integer.- Specified by:
generateOrderEntryIdin interfaceTravelCartService- Parameters:
cartModel- the cart model- Returns:
- the integer
-
cloneAccommodationOrderEntryInfo
Clone the accommodation order entry info.- Parameters:
orderEntry- the order entry
-
getCustomerAccountService
protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService()Gets customer account service.- Returns:
- the customerAccountService
-
setCustomerAccountService
public void setCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) Sets customer account service.- Parameters:
customerAccountService- the customerAccountService to set
-
getBaseStoreService
protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()Gets base store service.- Returns:
- the baseStoreService
-
setBaseStoreService
public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) Sets base store service.- Parameters:
baseStoreService- the baseStoreService to set
-
getOrderCodeGenerator
protected de.hybris.platform.servicelayer.keygenerator.KeyGenerator getOrderCodeGenerator()Gets order code generator.- Returns:
- the orderCodeGenerator
-
setOrderCodeGenerator
public void setOrderCodeGenerator(de.hybris.platform.servicelayer.keygenerator.KeyGenerator orderCodeGenerator) Sets order code generator.- Parameters:
orderCodeGenerator- the orderCodeGenerator to set
-
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService()Gets user service.- Returns:
- the userService
-
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService) Sets user service.- Parameters:
userService- the userService to set
-
getTravelCartDao
Gets travel cart dao.- Returns:
- the travelCartDao
-
setTravelCartDao
Sets travel cart dao.- Parameters:
travelCartDao- the travelCartDao to set
-
getCommerceCartCalculationStrategy
protected de.hybris.platform.commerceservices.order.CommerceCartCalculationStrategy getCommerceCartCalculationStrategy()Gets commerce cart calculation strategy.- Returns:
- the commerceCartCalculationStrategy
-
setCommerceCartCalculationStrategy
public void setCommerceCartCalculationStrategy(de.hybris.platform.commerceservices.order.CommerceCartCalculationStrategy commerceCartCalculationStrategy) Sets commerce cart calculation strategy.- Parameters:
commerceCartCalculationStrategy- the commerceCartCalculationStrategy to set
-
getCommonI18NService
protected de.hybris.platform.servicelayer.i18n.CommonI18NService getCommonI18NService()Gets common i 18 n service.- Returns:
- the commonI18NService
-
setCommonI18NService
public void setCommonI18NService(de.hybris.platform.servicelayer.i18n.CommonI18NService commonI18NService) Sets common i 18 n service.- Parameters:
commonI18NService- the commonI18NService to set
-
getStoreSessionService
protected de.hybris.platform.commerceservices.storesession.StoreSessionService getStoreSessionService()Gets store session service.- Returns:
- the storeSessionService
-
setStoreSessionService
public void setStoreSessionService(de.hybris.platform.commerceservices.storesession.StoreSessionService storeSessionService) Sets store session service.- Parameters:
storeSessionService- the storeSessionService to set
-
getBookingService
Gets booking service.- Returns:
- the bookingService
-
setBookingService
Sets booking service.- Parameters:
bookingService- the bookingService to set
-
getTravelCommerceStockService
Gets travel commerce stock service.- Returns:
- the travelCommerceStockService
-
setTravelCommerceStockService
Sets travel commerce stock service.- Parameters:
travelCommerceStockService- the travelCommerceStockService to set
-
getPaymentOptionCreationStrategies
Gets payment option creation strategies.- Returns:
- the paymentOptionCreationStrategies
-
setPaymentOptionCreationStrategies
public void setPaymentOptionCreationStrategies(List<PaymentOptionCreationStrategy> paymentOptionCreationStrategies) Sets payment option creation strategies.- Parameters:
paymentOptionCreationStrategies- the paymentOptionCreationStrategies to set
-
getTimeService
protected de.hybris.platform.servicelayer.time.TimeService getTimeService()Gets time service.- Returns:
- the time service
-
setTimeService
public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) Sets time service.- Parameters:
timeService- the time service
-
getPaymentOptionsCreationStrategyMap
protected Map<OrderEntryType,List<PaymentOptionCreationStrategy>> getPaymentOptionsCreationStrategyMap()Gets payment options creation strategy map.- Returns:
- the paymentOptionsCreationStrategyMap
-
setPaymentOptionsCreationStrategyMap
public void setPaymentOptionsCreationStrategyMap(Map<OrderEntryType, List<PaymentOptionCreationStrategy>> paymentOptionsCreationStrategyMap) Sets payment options creation strategy map.- Parameters:
paymentOptionsCreationStrategyMap- the paymentOptionsCreationStrategyMap to set
-
getTravellerService
Gets traveller service.- Returns:
- the travellerService
-
setTravellerService
Sets traveller service.- Parameters:
travellerService- the travellerService to set
-
getEnumerationService
protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()Gets enumeration service.- Returns:
- the enumerationService
-
setEnumerationService
public void setEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) Sets enumeration service.- Parameters:
enumerationService- the enumerationService to set
-
getTravelCommercePriceService
Gets travel commerce price service.- Returns:
- the travelCommercePriceService
-
setTravelCommercePriceService
Sets travel commerce price service.- Parameters:
travelCommercePriceService- the travelCommercePriceService to set
-
getTaxCompensationStrategy
Gets tax compensation strategy.- Returns:
- the taxCompensationStrategy
-
setTaxCompensationStrategy
Sets tax compensation strategy.- Parameters:
taxCompensationStrategy- the taxCompensationStrategy to set
-
getGlobalDiscountCalculationStrategyMap
protected Map<OrderEntryType,GlobalDiscountByEntryTypeCalculationStrategy> getGlobalDiscountCalculationStrategyMap()Gets global discount calculation strategy map.- Returns:
- the globalDiscountCalculationStrategyMap
-
setGlobalDiscountCalculationStrategyMap
public void setGlobalDiscountCalculationStrategyMap(Map<OrderEntryType, GlobalDiscountByEntryTypeCalculationStrategy> globalDiscountCalculationStrategyMap) Sets global discount calculation strategy map.- Parameters:
globalDiscountCalculationStrategyMap- the globalDiscountCalculationStrategyMap to set
-
getPassengerTypeService
Gets passenger type service.- Returns:
- the passenger type service
-
setPassengerTypeService
Sets passenger type service.- Parameters:
passengerTypeService- the passenger type service
-