Class DefaultBookingService
java.lang.Object
de.hybris.platform.travelservices.services.impl.DefaultBookingService
- All Implemented Interfaces:
BookingService
- Direct Known Subclasses:
DefaultShoppingBookingService
Default implementation of
BookingService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequestToRoomStayBooking(String request, int roomStayRefNumber, String bookingReference) Add an user request against a room stay bookingbooleanatleastOneAdultTravellerRemaining(String orderCode, String cancelledTravellerCode) Validates if atleast one adult traveller belongs to booking(apart from the one removed currently), while removing traveller from the booking.calculateTaxValueForEntries(AbstractOrderModel abstractOrder, List<AbstractOrderEntryModel> entries) Calculate accommodation tax value after Tax Compensation.protected BigDecimalcalculateTotalRefund(OrderModel orderModel) This method uses a map of strategies to calculate and return the totalRefund value.protected BigDecimalcalculateTotalRefund(OrderModel orderModel, OrderEntryType orderEntryType) This method uses a map of strategies to calculate and return the totalRefund value.calculateTotalRefundForCancelledTraveller(AbstractOrderModel abstractOrder) Calculate refund for cancelled travellerbooleancancelOrder(OrderModel order) Performs the cancellation of the order with the given orderCodevoidcancelOrder(OrderModel order, UserModel requestor) Performs the cancellation of the order.booleancancelPartialOrder(BigDecimal totalToRefund, OrderEntryType orderEntryType) Proceeds with cancellation of a part of the order, creates a refund transaction if there is any refund availablebooleancancelTraveller(BigDecimal totalToRefund) Deprecated.Deprecated since version 2.0.booleancancelTraveller(BigDecimal totalToRefund, TravellerData travellerData) Proceeds with cancellation of traveller, creates a refund transaction if there is any refund availableprotected booleancheckBundleAndProduct(boolean bundleNoCheckRequired, AbstractOrderEntryModel orderEntry, String productCode) Verifies if the order entry has matching bundle number and product codebooleancheckBundleToAmendProduct(AbstractOrderModel abstractOrderModel, String productCode, long qty, String travelRouteCode, List<String> transportOfferingCodes, List<String> travellerCodes) Checks if a product is included in a bundlebooleancheckIfAnyOrderEntryByType(AbstractOrderModel abstractOrderModel, OrderEntryType orderEntryType) Check if the abstractOrderModel has at least one orderEntry with type equals to the given orderEntryTypevoidcheckIfPartialCancelPossible(OrderModel order, OrderEntryType orderEntryType) Checks if the order cancellation possible for the given requestor.protected BooleancheckRoomStayReferenceNumber(AbstractOrderEntryModel orderEntry, int roomStayRefNumber) Check room stay reference number boolean.protected booleancheckTransportOfferings(AbstractOrderEntryModel orderEntry, List<String> transportOfferingCodes) Verifies if order entry has a matching list of transport offeringsprotected booleancheckTravellers(AbstractOrderEntryModel orderEntry, List<String> travellerCodes) Verifies if order entry has a matching list of travellerscreateRefundPaymentTransaction(AbstractOrderModel abstractOrder, BigDecimal amountToRefund) Deprecated.Deprecated since version 2.0.createRefundPaymentTransaction(AbstractOrderModel abstractOrder, BigDecimal amountToRefund, List<AbstractOrderEntryModel> entries) Creates a payment transaction for refundprotected RemarkModelcreateRequest(String request, int roomStayRefNumber, String bookingReference) Create request remark model.protected AbstractOrderEntryGroupDaoGets abstract order entry group dao.getAccommodationDetailsParameters(AbstractOrderModel abstractOrderModel) Retrieves a map of parameters needed to access accommodation details page (accommodation offering, check in date, check out date)getAccommodationOrderEntryGroup(int roomStayRefNum, AbstractOrderModel abstractOrder) Returns AccommodationOrderEntryGroupModel based on roomStayRefNumber and cart numbergetAccommodationOrderEntryGroupRefs(AbstractOrderModel abstractOrderModel) Returns a list of AccommodationOrderEntryGroup reference numbers for the groups that have all entries in AmendStatus.NEWgetAccommodationOrderEntryGroups(AbstractOrderModel abstractOrder) Returns list of AccommodationOrderEntryGroups that are in the abstract order.getActiveEntries(OrderModel order, OrderEntryType excludedType) Returns active order entries whose type is not equal to given type to exclude.getAllOrders(String orderCode, BaseStoreModel baseStore) Return a list of all the orders for the given orderCode and baseStoreprotected de.hybris.platform.store.services.BaseStoreServiceGets base store service.doublegetBookingTotalByOrderEntryType(AbstractOrderModel abstractOrder, OrderEntryType orderEntryType) Calculates the base price total amount for the orderEntryType in the abstract orderprotected ChangeDatesOrderTotalToPayStrategyGets change dates order total to pay strategy.protected de.hybris.platform.commerceservices.order.CommerceCheckoutServiceGets commerce checkout service.protected TravelCommerceStockServiceGets commerce stock service.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.protected TravelCustomerAccountServiceGets customer account service.Gets entry type to discount calculation strategy map.protected de.hybris.platform.enumeration.EnumerationServiceGets the enumeration service.getGlobalDiscountForEntryType(AbstractOrderModel abstractOrder, OrderEntryType entryType) Return the portio of global discounts relative to the given entry typegetLastActiveOrderForType(AbstractOrderModel abstractOrderModel, OrderEntryType orderEntryType) Returns the last active order for the specified OrderEntryTypeprotected de.hybris.platform.servicelayer.model.ModelServiceGets model service.getNewAccommodationOrderEntryGroupRefs(AbstractOrderModel abstractOrderModel) Returns a list of AccommodationOrderEntryGroup reference numbers for the groups that have all entries in AmendStatus.NEWgetOldAccommodationOrderEntryGroupRefs(AbstractOrderModel abstractOrderModel) Returns a list of AccommodationOrderEntryGroup reference numbers for the groups that have all entries in AmendStatus.SAMERetrieves the orderModel for the specified bookingReference.Gets order.protected de.hybris.platform.ordercancel.OrderCancelServiceGets order cancel service.getOrderEntries(AbstractOrderModel abstractOrderModel, String productCode, String travelRouteCode, List<String> transportOfferingCodes, List<String> travellerCodes, boolean bundleNoCheckRequired) Retrieves abstractOrderEntry list from given abstractOrderModelprotected Map<OrderEntryType,OrderEntriesCancelStrategy> Gets order entries cancel strategies mapping.getOrderEntry(AbstractOrderModel abstractOrderModel, String productCode, String travelRouteCode, List<String> transportOfferingCodes, List<String> travellerCodes, boolean bundleNoCheckRequired) Retrieves abstractOrderEntry from given abstractOrderModelgetOrderForCurrentUser(String code) Returns the specified order for the current user and store.protected de.hybris.platform.orderhistory.OrderHistoryServiceGets order history service.getOrderModelByOriginalOrderCode(String bookingReference) Gets order with original order code equal to booking referencegetOrderModelFromStore(String bookingReference) Gets order model from store.protected de.hybris.platform.order.OrderServiceGets order service.getOrderTotalPaid(AbstractOrderModel abstractOrder) Calculates the total already paid for a given ordergetOrderTotalPaidByEntryGroup(AbstractOrderModel abstractOrder, AbstractOrderEntryGroupModel entryGroup) Calculates the total already paid for products belonging to a given entry group within the given orderprotected OrderTotalPaidCalculationStrategyGets order total paid calculation strategy.Gets order total paid for accommodation group calculation strategy.getOrderTotalPaidForOrderEntryType(AbstractOrderModel abstractOrder, OrderEntryType orderEntryType) Calculates the total already paid for products of the given orderEntryType and for the given orderGets order total paid for order entry type calculation strategy.getOrderTotalPriceByType(AbstractOrderModel abstractOrder, OrderEntryType orderEntryType) Returns the orderTotal related to the given orderEntryType part of the order.Calculates the total to pay for change dates for the order in cartprotected OrderUserAccountMappingDaoGets order user account mapping dao.getOriginalOrder(AbstractOrderModel abstractOrder) returns an original ordergetOriginalOrderEntry(AbstractOrderModel abstractOrderModel, String productCode, int roomStayRefNumber) Retrieves abstractOrderEntry from given abstractOrderModelgetOriginalOrderEntry(String originalOrderCode, String productCode, String travelRouteCode, List<String> transportOfferingCodes, List<String> travellerCodes, Boolean bundleNoCheckRequired) Retrieves abstractOrderEntry from given abstractOrderModel's codeprotected de.hybris.platform.payment.PaymentServiceGets payment service.getProductQuantityInOrderForTransportOffering(String bookingReference, ProductModel productModel, TransportOfferingModel transportOfferingModel) Returns the quantity of products in the Order for a transportOffering.getRequestToRoomStayBooking(int roomStayRefNumber, OrderModel orderModel) Get an user request against a room stay bookingprotected de.hybris.platform.servicelayer.session.SessionServiceGets session service.protected TaxCompensationStrategyGets tax compensation strategy.protected de.hybris.platform.servicelayer.time.TimeServiceGets time service.getTotalRefundAmountByEntryType(AbstractOrderModel abstractOrderModel, OrderEntryType orderEntryType) Gets total refund amount by entry type.protected TotalRefundCalculationStrategyGets total refund calculation strategy.Gets total refund calculation strategy map.getTotalToRefund(OrderModel order) Calculate the total amount to be refundedgetTotalToRefund(OrderModel order, OrderEntryType orderEntryType) Calculate the total amount to refund based on the given orderEntryTypeprotected TravelCartServiceGets travel cart service.protected TravelKeyGeneratorServiceGets travel key generator service.protected TravelOrderDaoGets travel order dao.protected de.hybris.platform.servicelayer.user.UserServiceGets user service.booleanChecks if user made any changes during amendmentprotected booleanhaveSelectedAccommodationsChanged(List<SelectedAccommodationModel> oldSelectedAccomodation, List<SelectedAccommodationModel> newSelectedAccomodation) This method here is used to compare two lists for SelectedAccommodationModel.booleanisAbstractOrderOfType(AbstractOrderModel abstractOrder, String bookingType) Checks if is abstract Order is of type.booleanisCancelPossible(OrderModel order) Check if the cancel order is possible for the order with the given orderCodebooleanisReservationCancelled(AbstractOrderModel abstractOrderModel, OrderEntryType orderEntryType) Check if the reservation for the specified orderEntryType has been cancelled.protected booleanisTransportBooking(AbstractOrderModel amendmentCart) Deprecated.Deprecated since version 3.0.booleanisValidPassengerReference(AbstractOrderModel abstractOrder, String passengerReference) Checks if the passenger reference is valid for the provided abstract orderbooleanlinkEntriesToOldPaymentTransactions(AccommodationOrderEntryGroupModel orderEntryGroup, List<AbstractOrderEntryModel> entries) This method will replace all the old RoomRateModel entries belonging to specific group transaction entries , with new Entries.protected booleannoMoreAdultTravellers(List<AbstractOrderEntryModel> travellerEntries) No more adult travellers boolean.protected voidplaceCancelledOrder(CartModel cart) Place cancelled order.voidremoveRequestFromRoomStayBooking(String requestCode, int roomStayRefNumber, String bookingReference) Remove an user request from a room stay bookingprotected voidsaveRemarkModel(RemarkModel requestToCreate, int roomStayRefNumber, String bookingReference, int attempt) Save remark model.voidsetAbstractOrderEntryGroupDao(AbstractOrderEntryGroupDao abstractOrderEntryGroupDao) Sets abstract order entry group dao.voidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) Sets base store service.voidsetChangeDatesOrderTotalToPayStrategy(ChangeDatesOrderTotalToPayStrategy changeDatesOrderTotalToPayStrategy) Sets change dates order total to pay strategy.voidsetCommerceCheckoutService(de.hybris.platform.commerceservices.order.CommerceCheckoutService commerceCheckoutService) Sets commerce checkout service.voidsetCommerceStockService(TravelCommerceStockService commerceStockService) Sets commerce stock service.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.voidsetCustomerAccountService(TravelCustomerAccountService customerAccountService) Sets customer account service.voidsetEntryTypeToDiscountCalculationStrategyMap(Map<OrderEntryType, GlobalDiscountByEntryTypeCalculationStrategy> entryTypeToDiscountCalculationStrategyMap) Sets entry type to discount calculation strategy map.voidsetEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) Sets the enumeration service.voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Sets model service.voidsetOrderCancelService(de.hybris.platform.ordercancel.OrderCancelService orderCancelService) Sets order cancel service.voidsetOrderEntriesCancelStrategiesMapping(Map<OrderEntryType, OrderEntriesCancelStrategy> orderEntriesCancelStrategiesMapping) Sets order entries cancel strategies mapping.voidsetOrderHistoryService(de.hybris.platform.orderhistory.OrderHistoryService orderHistoryService) Sets order history service.voidsetOrderService(de.hybris.platform.order.OrderService orderService) Sets order service.voidsetOrderTotalPaidCalculationStrategy(OrderTotalPaidCalculationStrategy orderTotalPaidCalculationStrategy) Sets order total paid calculation strategy.voidsetOrderTotalPaidForAccommodationGroupCalculationStrategy(OrderTotalPaidForEntryGroupCalculationStrategy orderTotalPaidForAccommodationGroupCalculationStrategy) Sets order total paid for accommodation group calculation strategy.voidsetOrderTotalPaidForOrderEntryTypeCalculationStrategy(OrderTotalPaidForOrderEntryTypeCalculationStrategy orderTotalPaidForOrderEntryTypeCalculationStrategy) Sets order total paid for order entry type calculation strategy.voidsetOrderUserAccountMappingDao(OrderUserAccountMappingDao orderUserAccountMappingDao) Sets order user account mapping dao.voidsetPaymentService(de.hybris.platform.payment.PaymentService paymentService) Sets payment service.voidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) Sets session service.voidsetTaxCompensationStrategy(TaxCompensationStrategy taxCompensationStrategy) ]voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) Sets time service.voidsetTotalRefundCalculationStrategy(TotalRefundCalculationStrategy totalRefundCalculationStrategy) Sets total refund calculation strategy.voidsetTotalRefundCalculationStrategyMap(Map<OrderEntryType, TotalRefundCalculationStrategy> totalRefundCalculationStrategyMap) Sets total refund calculation strategy map.voidsetTravelCartService(TravelCartService travelCartService) Sets travel cart service.voidsetTravelKeyGeneratorService(TravelKeyGeneratorService travelKeyGeneratorService) Sets travel key generator service.voidsetTravelOrderDao(TravelOrderDao travelOrderDao) Sets travel order dao.voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService) Sets user service.booleanunlinkBooking(UserModel user, OrderModel order) Unlinks the booking from user accountvoidupdateOrderStatus(OrderModel orderModel, OrderStatus status) Updates the order with the status provided as a param
-
Constructor Details
-
DefaultBookingService
public DefaultBookingService()
-
-
Method Details
-
createRefundPaymentTransaction
@Deprecated public Boolean createRefundPaymentTransaction(AbstractOrderModel abstractOrder, BigDecimal amountToRefund) Deprecated.Deprecated since version 2.0. UsecreateRefundPaymentTransaction(AbstractOrderModel, BigDecimal, List)instead.Description copied from interface:BookingServiceCreates a payment transaction for refund- Specified by:
createRefundPaymentTransactionin interfaceBookingService- Parameters:
abstractOrder- the abstract orderamountToRefund- the amount to refund- Returns:
- true if successfully created transaction
-
createRefundPaymentTransaction
public Boolean createRefundPaymentTransaction(AbstractOrderModel abstractOrder, BigDecimal amountToRefund, List<AbstractOrderEntryModel> entries) Description copied from interface:BookingServiceCreates a payment transaction for refund- Specified by:
createRefundPaymentTransactionin interfaceBookingService- Parameters:
abstractOrder- the abstract orderamountToRefund- the amount to refundentries- the entries the transaction is linked to- Returns:
- true if successfully created transaction
-
getOrderModelFromStore
Description copied from interface:BookingServiceGets order model from store.- Specified by:
getOrderModelFromStorein interfaceBookingService- Parameters:
bookingReference- the booking reference- Returns:
- OrderModel order model from store
-
getOrder
Description copied from interface:BookingServiceRetrieves the orderModel for the specified bookingReference.- Specified by:
getOrderin interfaceBookingService- Parameters:
bookingReference- the booking reference- Returns:
- OrderModel object.
-
getAllOrders
Description copied from interface:BookingServiceReturn a list of all the orders for the given orderCode and baseStore- Specified by:
getAllOrdersin interfaceBookingService- Parameters:
orderCode- the order codebaseStore- the base store- Returns:
- the list of OrderModel
-
isCancelPossible
Description copied from interface:BookingServiceCheck if the cancel order is possible for the order with the given orderCode- Specified by:
isCancelPossiblein interfaceBookingService- Parameters:
order- as the order to be cancelled- Returns:
- true if the cancellation is possible, false otherwise
-
cancelOrder
Description copied from interface:BookingServicePerforms the cancellation of the order with the given orderCode- Specified by:
cancelOrderin interfaceBookingService- Parameters:
order- as the order to be cancelled- Returns:
- true if the cancellation of the order was successful, false otherwise
-
getTotalToRefund
Description copied from interface:BookingServiceCalculate the total amount to be refunded- Specified by:
getTotalToRefundin interfaceBookingService- Parameters:
order- as the order- Returns:
- the BigDecimal value to be refunded
-
calculateTotalRefund
This method uses a map of strategies to calculate and return the totalRefund value. Based on the distinct orderEntryTypes of the orderModel, one or more strategies are called. Each strategy returns the totalRefund for the given OrderEntryType. Then all the refunds are summed and returned.- Parameters:
orderModel- the order model- Returns:
- the BigDecimal corresponding to the totalRefund
-
calculateTotalRefundForCancelledTraveller
Description copied from interface:BookingServiceCalculate refund for cancelled traveller- Specified by:
calculateTotalRefundForCancelledTravellerin interfaceBookingService- Parameters:
abstractOrder- the abstract order- Returns:
- big decimal
-
getOriginalOrder
Description copied from interface:BookingServicereturns an original order- Specified by:
getOriginalOrderin interfaceBookingService- Parameters:
abstractOrder- the abstract order- Returns:
- original order
-
getGlobalDiscountForEntryType
public BigDecimal getGlobalDiscountForEntryType(AbstractOrderModel abstractOrder, OrderEntryType entryType) Description copied from interface:BookingServiceReturn the portio of global discounts relative to the given entry type- Specified by:
getGlobalDiscountForEntryTypein interfaceBookingService- Parameters:
abstractOrder- the abstract orderentryType- the entry type- Returns:
- global discount for entry type
-
calculateTaxValueForEntries
public Double calculateTaxValueForEntries(AbstractOrderModel abstractOrder, List<AbstractOrderEntryModel> entries) Description copied from interface:BookingServiceCalculate accommodation tax value after Tax Compensation.- Specified by:
calculateTaxValueForEntriesin interfaceBookingService- Parameters:
abstractOrder- the abstract orderentries- the entries- Returns:
- the big decimal
-
getTotalToRefund
Description copied from interface:BookingServiceCalculate the total amount to refund based on the given orderEntryType- Specified by:
getTotalToRefundin interfaceBookingService- Parameters:
order- as the orderorderEntryType- as the orderEntryType- Returns:
- the BigDecimal value to refund
-
calculateTotalRefund
This method uses a map of strategies to calculate and return the totalRefund value. The correct strategy is called based on the given orderEntryType.- Parameters:
orderModel- the order modelorderEntryType- the order entry type- Returns:
- the BigDecimal corresponding to the totalRefund
-
cancelTraveller
Deprecated.Deprecated since version 2.0. UsecancelTraveller(BigDecimal, TravellerData)instead.Description copied from interface:BookingServiceProceeds with cancellation of traveller, creates a refund transaction if there is any refund available- Specified by:
cancelTravellerin interfaceBookingService- Parameters:
totalToRefund- the total to refund- Returns:
- true if successfully created refund payment transaction
-
cancelTraveller
Description copied from interface:BookingServiceProceeds with cancellation of traveller, creates a refund transaction if there is any refund available- Specified by:
cancelTravellerin interfaceBookingService- Parameters:
totalToRefund- the total to refundtravellerData- the travellerData for which to create the refund payment- Returns:
- true if successfully created refund payment transaction
-
getOrderEntry
public AbstractOrderEntryModel getOrderEntry(AbstractOrderModel abstractOrderModel, String productCode, String travelRouteCode, List<String> transportOfferingCodes, List<String> travellerCodes, boolean bundleNoCheckRequired) Description copied from interface:BookingServiceRetrieves abstractOrderEntry from given abstractOrderModel- Specified by:
getOrderEntryin interfaceBookingService- Parameters:
abstractOrderModel- - the abstract order modelproductCode- the productCodetravelRouteCode- the travel Route CodetransportOfferingCodes- list of transport Offering CodetravellerCodes- the Traveller unique idbundleNoCheckRequired- flag to check if bundle no. check is required.- Returns:
- AbstractOrderEntryModel order entry
-
getOrderEntries
public List<AbstractOrderEntryModel> getOrderEntries(AbstractOrderModel abstractOrderModel, String productCode, String travelRouteCode, List<String> transportOfferingCodes, List<String> travellerCodes, boolean bundleNoCheckRequired) Description copied from interface:BookingServiceRetrieves abstractOrderEntry list from given abstractOrderModel- Specified by:
getOrderEntriesin interfaceBookingService- Parameters:
abstractOrderModel- - the abstract order modelproductCode- the productCodetravelRouteCode- the travel Route CodetransportOfferingCodes- list of transport Offering CodetravellerCodes- the Traveller unique idbundleNoCheckRequired- flag to check if bundle no. check is required.- Returns:
- AbstractOrderEntryModel order entry
-
checkBundleToAmendProduct
public boolean checkBundleToAmendProduct(AbstractOrderModel abstractOrderModel, String productCode, long qty, String travelRouteCode, List<String> transportOfferingCodes, List<String> travellerCodes) Description copied from interface:BookingServiceChecks if a product is included in a bundle- Specified by:
checkBundleToAmendProductin interfaceBookingService- Parameters:
abstractOrderModel- the abstract order modelproductCode- the product codeqty- the qtytravelRouteCode- the travel route codetransportOfferingCodes- the transport offering codestravellerCodes- the traveller codes- Returns:
- true if the product is included in a bundle, false otherwise
-
getProductQuantityInOrderForTransportOffering
public Long getProductQuantityInOrderForTransportOffering(String bookingReference, ProductModel productModel, TransportOfferingModel transportOfferingModel) Description copied from interface:BookingServiceReturns the quantity of products in the Order for a transportOffering.- Specified by:
getProductQuantityInOrderForTransportOfferingin interfaceBookingService- Parameters:
bookingReference- the booking referenceproductModel- the product modeltransportOfferingModel- the transport offering model- Returns:
- a Long
-
atleastOneAdultTravellerRemaining
Description copied from interface:BookingServiceValidates if atleast one adult traveller belongs to booking(apart from the one removed currently), while removing traveller from the booking.- Specified by:
atleastOneAdultTravellerRemainingin interfaceBookingService- Parameters:
orderCode- the order codecancelledTravellerCode- the cancelled traveller code- Returns:
- boolean boolean
-
getOrderModelByOriginalOrderCode
Description copied from interface:BookingServiceGets order with original order code equal to booking reference- Specified by:
getOrderModelByOriginalOrderCodein interfaceBookingService- Parameters:
bookingReference- the booking reference- Returns:
- order model by original order code
-
updateOrderStatus
Description copied from interface:BookingServiceUpdates the order with the status provided as a param- Specified by:
updateOrderStatusin interfaceBookingService- Parameters:
orderModel- the order modelstatus- the status
-
getAccommodationOrderEntryGroups
public List<AccommodationOrderEntryGroupModel> getAccommodationOrderEntryGroups(AbstractOrderModel abstractOrder) Description copied from interface:BookingServiceReturns list of AccommodationOrderEntryGroups that are in the abstract order.- Specified by:
getAccommodationOrderEntryGroupsin interfaceBookingService- Parameters:
abstractOrder- the abstract order- Returns:
- accommodation order entry groups
-
noMoreAdultTravellers
No more adult travellers boolean.- Parameters:
travellerEntries- the traveller entries- Returns:
- the boolean
-
checkBundleAndProduct
protected boolean checkBundleAndProduct(boolean bundleNoCheckRequired, AbstractOrderEntryModel orderEntry, String productCode) Verifies if the order entry has matching bundle number and product code- Parameters:
bundleNoCheckRequired- the bundle no check requiredorderEntry- the order entryproductCode- the product code- Returns:
- true if bundle number and product code match
-
checkTravellers
Verifies if order entry has a matching list of travellers- Parameters:
orderEntry- the order entrytravellerCodes- the traveller codes- Returns:
- true if list of travellers 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 transport offering codes- Returns:
- true if list of transport offering matches
-
getOriginalOrderEntry
public AbstractOrderEntryModel getOriginalOrderEntry(String originalOrderCode, String productCode, String travelRouteCode, List<String> transportOfferingCodes, List<String> travellerCodes, Boolean bundleNoCheckRequired) Description copied from interface:BookingServiceRetrieves abstractOrderEntry from given abstractOrderModel's code- Specified by:
getOriginalOrderEntryin interfaceBookingService- Parameters:
originalOrderCode- the original order codeproductCode- the product codetravelRouteCode- the travel route codetransportOfferingCodes- the transport offering codestravellerCodes- the traveller codesbundleNoCheckRequired- the bundle no check required- Returns:
- order entry for given code of abstract order model
-
getOriginalOrderEntry
public AbstractOrderEntryModel getOriginalOrderEntry(AbstractOrderModel abstractOrderModel, String productCode, int roomStayRefNumber) Description copied from interface:BookingServiceRetrieves abstractOrderEntry from given abstractOrderModel- Specified by:
getOriginalOrderEntryin interfaceBookingService- Parameters:
abstractOrderModel- - the abstract order modelproductCode- the productCoderoomStayRefNumber- the room stay reference number- Returns:
- AbstractOrderEntryModel order entry
-
checkRoomStayReferenceNumber
protected Boolean checkRoomStayReferenceNumber(AbstractOrderEntryModel orderEntry, int roomStayRefNumber) Check room stay reference number boolean.- Parameters:
orderEntry- the order entryroomStayRefNumber- the room stay ref number- Returns:
- the boolean
-
hasCartBeenAmended
public boolean hasCartBeenAmended()Description copied from interface:BookingServiceChecks if user made any changes during amendment- Specified by:
hasCartBeenAmendedin interfaceBookingService- Returns:
- true if something has been changed
-
isTransportBooking
Deprecated.Deprecated since version 3.0. Please use checkIfAnyOrderEntryByType in place of this method as it is doing exactly the same thing.Is transport booking boolean.- Parameters:
amendmentCart- the amendment cart- Returns:
- boolean
-
haveSelectedAccommodationsChanged
protected boolean haveSelectedAccommodationsChanged(List<SelectedAccommodationModel> oldSelectedAccomodation, List<SelectedAccommodationModel> newSelectedAccomodation) This method here is used to compare two lists for SelectedAccommodationModel. It returns false if all the SelectedAccommodationModel for the same TransporOffering and the same Traveller have the same ConfiguredAccommodationModel identifier. True if for at least one TransportOffering and one Traveller the ConfiguredAccommodationModel identifier has changed.- Parameters:
oldSelectedAccomodation- the list of previous SelectedAccommodationModelnewSelectedAccomodation- the list of the newly SelectedAccommodationModel- Returns:
- the boolean
-
getAccommodationOrderEntryGroup
public AccommodationOrderEntryGroupModel getAccommodationOrderEntryGroup(int roomStayRefNum, AbstractOrderModel abstractOrder) Description copied from interface:BookingServiceReturns AccommodationOrderEntryGroupModel based on roomStayRefNumber and cart number- Specified by:
getAccommodationOrderEntryGroupin interfaceBookingService- Parameters:
roomStayRefNum- the room stay ref numabstractOrder- the abstract order- Returns:
- accommodation order entry group
-
isReservationCancelled
public boolean isReservationCancelled(AbstractOrderModel abstractOrderModel, OrderEntryType orderEntryType) Description copied from interface:BookingServiceCheck if the reservation for the specified orderEntryType has been cancelled.- Specified by:
isReservationCancelledin interfaceBookingService- Parameters:
abstractOrderModel- as the abstractOrderModel to be checkedorderEntryType- as theOrderEntryTypecorresponding to the reservation to be checked- Returns:
- true if all the orderEntries for the specified orderEntryType are inactive or if quantity is equals to 0
-
checkIfAnyOrderEntryByType
public boolean checkIfAnyOrderEntryByType(AbstractOrderModel abstractOrderModel, OrderEntryType orderEntryType) Description copied from interface:BookingServiceCheck if the abstractOrderModel has at least one orderEntry with type equals to the given orderEntryType- Specified by:
checkIfAnyOrderEntryByTypein interfaceBookingService- Parameters:
abstractOrderModel- as the abstractOrderModel to be checkedorderEntryType- as theOrderEntryTypeto be checked- Returns:
- true if there is at least one orderEntry with type equals to the given orderEntryType, false otherwise
-
isAbstractOrderOfType
Description copied from interface:BookingServiceChecks if is abstract Order is of type.- Specified by:
isAbstractOrderOfTypein interfaceBookingService- Parameters:
abstractOrder- the orderbookingType- the booking type- Returns:
- true, if current cart is of type
-
getBookingTotalByOrderEntryType
public double getBookingTotalByOrderEntryType(AbstractOrderModel abstractOrder, OrderEntryType orderEntryType) Description copied from interface:BookingServiceCalculates the base price total amount for the orderEntryType in the abstract order- Specified by:
getBookingTotalByOrderEntryTypein interfaceBookingService- Parameters:
abstractOrder- the orderorderEntryType- the orderEntryType- Returns:
- totalAmount booking total by order entry type
-
isValidPassengerReference
public boolean isValidPassengerReference(AbstractOrderModel abstractOrder, String passengerReference) Description copied from interface:BookingServiceChecks if the passenger reference is valid for the provided abstract order- Specified by:
isValidPassengerReferencein interfaceBookingService- Parameters:
abstractOrder- the abstractOrderpassengerReference- the passengerReference- Returns:
- boolean
-
getAccommodationDetailsParameters
Description copied from interface:BookingServiceRetrieves a map of parameters needed to access accommodation details page (accommodation offering, check in date, check out date)- Specified by:
getAccommodationDetailsParametersin interfaceBookingService- Parameters:
abstractOrderModel- the abstract order model- Returns:
- accommodation details parameters
-
getAccommodationOrderEntryGroupRefs
Description copied from interface:BookingServiceReturns a list of AccommodationOrderEntryGroup reference numbers for the groups that have all entries in AmendStatus.NEW- Specified by:
getAccommodationOrderEntryGroupRefsin interfaceBookingService- Parameters:
abstractOrderModel- the abstract order model- Returns:
- new accommodation order entry group refs
-
getNewAccommodationOrderEntryGroupRefs
Description copied from interface:BookingServiceReturns a list of AccommodationOrderEntryGroup reference numbers for the groups that have all entries in AmendStatus.NEW- Specified by:
getNewAccommodationOrderEntryGroupRefsin interfaceBookingService- Parameters:
abstractOrderModel- the abstract order model- Returns:
- new accommodation order entry group refs
-
getOldAccommodationOrderEntryGroupRefs
Description copied from interface:BookingServiceReturns a list of AccommodationOrderEntryGroup reference numbers for the groups that have all entries in AmendStatus.SAME- Specified by:
getOldAccommodationOrderEntryGroupRefsin interfaceBookingService- Parameters:
abstractOrderModel- the abstract order model- Returns:
- new accommodation order entry group refs
-
addRequestToRoomStayBooking
public void addRequestToRoomStayBooking(String request, int roomStayRefNumber, String bookingReference) throws de.hybris.platform.servicelayer.exceptions.ModelSavingException, RequestKeyGeneratorException Description copied from interface:BookingServiceAdd an user request against a room stay booking- Specified by:
addRequestToRoomStayBookingin interfaceBookingService- Parameters:
request- the requestroomStayRefNumber- the room stay ref numberbookingReference- the booking reference- Throws:
de.hybris.platform.servicelayer.exceptions.ModelSavingException- the model saving exceptionRequestKeyGeneratorException- the request key generator exception
-
createRequest
protected RemarkModel createRequest(String request, int roomStayRefNumber, String bookingReference) throws RequestKeyGeneratorException, de.hybris.platform.servicelayer.exceptions.ModelSavingException Create request remark model.- Parameters:
request- the requestroomStayRefNumber- the room stay ref numberbookingReference- the booking reference- Returns:
- the remark model
- Throws:
RequestKeyGeneratorException- the request key generator exceptionde.hybris.platform.servicelayer.exceptions.ModelSavingException- the model saving exception
-
saveRemarkModel
protected void saveRemarkModel(RemarkModel requestToCreate, int roomStayRefNumber, String bookingReference, int attempt) throws RequestKeyGeneratorException Save remark model.- Parameters:
requestToCreate- the request to createroomStayRefNumber- the room stay ref numberbookingReference- the booking referenceattempt- the attempt- Throws:
RequestKeyGeneratorException- the request key generator exception
-
removeRequestFromRoomStayBooking
public void removeRequestFromRoomStayBooking(String requestCode, int roomStayRefNumber, String bookingReference) throws de.hybris.platform.servicelayer.exceptions.ModelNotFoundException, de.hybris.platform.servicelayer.exceptions.ModelRemovalException Description copied from interface:BookingServiceRemove an user request from a room stay booking- Specified by:
removeRequestFromRoomStayBookingin interfaceBookingService- Parameters:
requestCode- the request coderoomStayRefNumber- the room stay ref numberbookingReference- the booking reference- Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- the model not found exceptionde.hybris.platform.servicelayer.exceptions.ModelRemovalException- the model removal exception
-
getOrderTotalPriceByType
public Double getOrderTotalPriceByType(AbstractOrderModel abstractOrder, OrderEntryType orderEntryType) Description copied from interface:BookingServiceReturns the orderTotal related to the given orderEntryType part of the order.- Specified by:
getOrderTotalPriceByTypein interfaceBookingService- Parameters:
abstractOrder- the abstract orderorderEntryType- the order entry type- Returns:
- the Double value of the totalPrice for the given orderEntryType
-
unlinkBooking
Description copied from interface:BookingServiceUnlinks the booking from user account- Specified by:
unlinkBookingin interfaceBookingService- Parameters:
user- the userorder- the order- Returns:
- boolean
-
cancelPartialOrder
Description copied from interface:BookingServiceProceeds with cancellation of a part of the order, creates a refund transaction if there is any refund available- Specified by:
cancelPartialOrderin interfaceBookingService- Parameters:
totalToRefund- the total to refundorderEntryType- the order entry type- Returns:
- true if successfully created refund payment transaction
-
getLastActiveOrderForType
public AbstractOrderModel getLastActiveOrderForType(AbstractOrderModel abstractOrderModel, OrderEntryType orderEntryType) Description copied from interface:BookingServiceReturns the last active order for the specified OrderEntryType- Specified by:
getLastActiveOrderForTypein interfaceBookingService- Parameters:
abstractOrderModel- as the abstractOrderModelorderEntryType- as the orderEntryType- Returns:
- the last active OrderModel
-
getOrderTotalToPayForChangeDates
Description copied from interface:BookingServiceCalculates the total to pay for change dates for the order in cart- Specified by:
getOrderTotalToPayForChangeDatesin interfaceBookingService- Returns:
- totalAmountToPay order total to pay for change dates
-
getOrderTotalPaid
Description copied from interface:BookingServiceCalculates the total already paid for a given order- Specified by:
getOrderTotalPaidin interfaceBookingService- Parameters:
abstractOrder- the abstract order- Returns:
- order total paid
-
getOrderTotalPaidByEntryGroup
public BigDecimal getOrderTotalPaidByEntryGroup(AbstractOrderModel abstractOrder, AbstractOrderEntryGroupModel entryGroup) Description copied from interface:BookingServiceCalculates the total already paid for products belonging to a given entry group within the given order- Specified by:
getOrderTotalPaidByEntryGroupin interfaceBookingService- Parameters:
abstractOrder- the abstract orderentryGroup- the entry group- Returns:
- order total paid by entry group
-
getOrderTotalPaidForOrderEntryType
public BigDecimal getOrderTotalPaidForOrderEntryType(AbstractOrderModel abstractOrder, OrderEntryType orderEntryType) Description copied from interface:BookingServiceCalculates the total already paid for products of the given orderEntryType and for the given order- Specified by:
getOrderTotalPaidForOrderEntryTypein interfaceBookingService- Parameters:
abstractOrder- the abstract orderorderEntryType- the order entry type- Returns:
- order total paid for order entry type
-
linkEntriesToOldPaymentTransactions
public boolean linkEntriesToOldPaymentTransactions(AccommodationOrderEntryGroupModel orderEntryGroup, List<AbstractOrderEntryModel> entries) Description copied from interface:BookingServiceThis method will replace all the old RoomRateModel entries belonging to specific group transaction entries , with new Entries.- Specified by:
linkEntriesToOldPaymentTransactionsin interfaceBookingService- Parameters:
orderEntryGroup- the order entry groupentries- the entries- Returns:
- boolean
-
getOrderForCurrentUser
Description copied from interface:BookingServiceReturns the specified order for the current user and store.- Specified by:
getOrderForCurrentUserin interfaceBookingService- Parameters:
code- the code of the order to retrieve- Returns:
- the order
-
getTotalRefundAmountByEntryType
public BigDecimal getTotalRefundAmountByEntryType(AbstractOrderModel abstractOrderModel, OrderEntryType orderEntryType) Description copied from interface:BookingServiceGets total refund amount by entry type.- Specified by:
getTotalRefundAmountByEntryTypein interfaceBookingService- Parameters:
abstractOrderModel- the abstract order modelorderEntryType- the order entry type- Returns:
- the total refund amount by entry type
-
cancelOrder
Description copied from interface:BookingServicePerforms the cancellation of the order.- Specified by:
cancelOrderin interfaceBookingService- Parameters:
order- the order to be cancelledrequestor- the requestor- Throws:
BookingCancelException- if the order cannot be cancelled
-
checkIfPartialCancelPossible
public void checkIfPartialCancelPossible(OrderModel order, OrderEntryType orderEntryType) throws OrderCancelDeniedException Description copied from interface:BookingServiceChecks if the order cancellation possible for the given requestor.- Specified by:
checkIfPartialCancelPossiblein interfaceBookingService- Parameters:
order- the order to be cancelled- Throws:
OrderCancelDeniedException- when cancel is denied
-
getActiveEntries
public List<AbstractOrderEntryModel> getActiveEntries(OrderModel order, OrderEntryType excludedType) Description copied from interface:BookingServiceReturns active order entries whose type is not equal to given type to exclude.- Specified by:
getActiveEntriesin interfaceBookingService- Parameters:
order- the orderexcludedType- the order entry type to exclude- Returns:
- order entries
-
placeCancelledOrder
Place cancelled order.- Parameters:
cart- the cart- Throws:
BookingCancelException- thrown in case of errors
-
getOrder
Gets order.- Specified by:
getOrderin interfaceBookingService- Parameters:
orderCode- the order id- Returns:
- the order
- Throws:
TravelModelNotFoundException- the order not found exception
-
getRequestToRoomStayBooking
public SpecialRequestDetailModel getRequestToRoomStayBooking(int roomStayRefNumber, OrderModel orderModel) throws SpecialRequestException Description copied from interface:BookingServiceGet an user request against a room stay booking- Specified by:
getRequestToRoomStayBookingin interfaceBookingService- Parameters:
roomStayRefNumber- the room stay ref numberorderModel- the booking reference- Returns:
- true if the operation of adding the request is successfully performed, false otherwise
- Throws:
SpecialRequestException- the special request exception
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()Gets model service.- Returns:
- the modelService
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Sets model service.- Parameters:
modelService- the modelService 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
-
getCommerceCheckoutService
protected de.hybris.platform.commerceservices.order.CommerceCheckoutService getCommerceCheckoutService()Gets commerce checkout service.- Returns:
- the commerceCheckoutService
-
setCommerceCheckoutService
public void setCommerceCheckoutService(de.hybris.platform.commerceservices.order.CommerceCheckoutService commerceCheckoutService) Sets commerce checkout service.- Parameters:
commerceCheckoutService- the commerceCheckoutService to set
-
getPaymentService
protected de.hybris.platform.payment.PaymentService getPaymentService()Gets payment service.- Returns:
- the paymentService
-
setPaymentService
public void setPaymentService(de.hybris.platform.payment.PaymentService paymentService) Sets payment service.- Parameters:
paymentService- the paymentService to set
-
getOrderCancelService
protected de.hybris.platform.ordercancel.OrderCancelService getOrderCancelService()Gets order cancel service.- Returns:
- the orderCancelService
-
setOrderCancelService
public void setOrderCancelService(de.hybris.platform.ordercancel.OrderCancelService orderCancelService) Sets order cancel service.- Parameters:
orderCancelService- the orderCancelService to set
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()Gets configuration service.- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.- Parameters:
configurationService- the configurationService to set
-
getTravelCartService
Gets travel cart service.- Returns:
- the travelCartService
-
setTravelCartService
Sets travel cart service.- Parameters:
travelCartService- the travelCartService to set
-
getTotalRefundCalculationStrategy
Gets total refund calculation strategy.- Returns:
- the totalRefundCalculationStrategy
-
setTotalRefundCalculationStrategy
public void setTotalRefundCalculationStrategy(TotalRefundCalculationStrategy totalRefundCalculationStrategy) Sets total refund calculation strategy.- Parameters:
totalRefundCalculationStrategy- the totalRefundCalculationStrategy to set
-
getBaseStoreService
protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()Gets base store service.- Returns:
- baseStoreService base store service
-
setBaseStoreService
public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) Sets base store service.- Parameters:
baseStoreService- the baseStoreService to set
-
getCommerceStockService
Gets commerce stock service.- Returns:
- the commerceStockService
-
setCommerceStockService
Sets commerce stock service.- Parameters:
commerceStockService- the commerceStockService to set
-
getOrderService
protected de.hybris.platform.order.OrderService getOrderService()Gets order service.- Returns:
- the order service
-
setOrderService
public void setOrderService(de.hybris.platform.order.OrderService orderService) Sets order service.- Parameters:
orderService- the order service
-
getCustomerAccountService
Gets customer account service.- Returns:
- the customer account service
-
setCustomerAccountService
Sets customer account service.- Parameters:
customerAccountService- the customer account service
-
getTimeService
protected de.hybris.platform.servicelayer.time.TimeService getTimeService()Gets time service.- Returns:
- the timeService
-
setTimeService
public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) Sets time service.- Parameters:
timeService- the timeService to set
-
getTravelKeyGeneratorService
Gets travel key generator service.- Returns:
- the travelKeyGeneratorService
-
setTravelKeyGeneratorService
Sets travel key generator service.- Parameters:
travelKeyGeneratorService- the travelKeyGeneratorService to set
-
getTotalRefundCalculationStrategyMap
Gets total refund calculation strategy map.- Returns:
- the totalRefundCalculationStrategyMap
-
setTotalRefundCalculationStrategyMap
public void setTotalRefundCalculationStrategyMap(Map<OrderEntryType, TotalRefundCalculationStrategy> totalRefundCalculationStrategyMap) Sets total refund calculation strategy map.- Parameters:
totalRefundCalculationStrategyMap- as the totalRefundCalculationStrategyMap to set
-
getAbstractOrderEntryGroupDao
Gets abstract order entry group dao.- Returns:
- the abstractOrderEntryGroupDao
-
setAbstractOrderEntryGroupDao
Sets abstract order entry group dao.- Parameters:
abstractOrderEntryGroupDao- as the abstractOrderEntryGroupDao to set
-
getOrderUserAccountMappingDao
Gets order user account mapping dao.- Returns:
- the orderUserAccountMappingDao
-
setOrderUserAccountMappingDao
Sets order user account mapping dao.- Parameters:
orderUserAccountMappingDao- as the orderUserAccountMappingDao to set
-
getTravelOrderDao
Gets travel order dao.- Returns:
- the travelOrderDao
-
setTravelOrderDao
Sets travel order dao.- Parameters:
travelOrderDao- as the travelOrderDao to set
-
getOrderHistoryService
protected de.hybris.platform.orderhistory.OrderHistoryService getOrderHistoryService()Gets order history service.- Returns:
- the orderHistoryService
-
setOrderHistoryService
public void setOrderHistoryService(de.hybris.platform.orderhistory.OrderHistoryService orderHistoryService) Sets order history service.- Parameters:
orderHistoryService- as the orderHistoryService to set
-
getOrderTotalPaidCalculationStrategy
Gets order total paid calculation strategy.- Returns:
- the orderTotalPaidCalculationStrategy
-
setOrderTotalPaidCalculationStrategy
public void setOrderTotalPaidCalculationStrategy(OrderTotalPaidCalculationStrategy orderTotalPaidCalculationStrategy) Sets order total paid calculation strategy.- Parameters:
orderTotalPaidCalculationStrategy- the orderTotalPaidCalculationStrategy to set
-
getOrderTotalPaidForAccommodationGroupCalculationStrategy
protected OrderTotalPaidForEntryGroupCalculationStrategy getOrderTotalPaidForAccommodationGroupCalculationStrategy()Gets order total paid for accommodation group calculation strategy.- Returns:
- the orderTotalPaidForAccommodationGroupCalculationStrategy
-
setOrderTotalPaidForAccommodationGroupCalculationStrategy
public void setOrderTotalPaidForAccommodationGroupCalculationStrategy(OrderTotalPaidForEntryGroupCalculationStrategy orderTotalPaidForAccommodationGroupCalculationStrategy) Sets order total paid for accommodation group calculation strategy.- Parameters:
orderTotalPaidForAccommodationGroupCalculationStrategy- the orderTotalPaidForAccommodationGroupCalculationStrategy to set
-
getOrderTotalPaidForOrderEntryTypeCalculationStrategy
public OrderTotalPaidForOrderEntryTypeCalculationStrategy getOrderTotalPaidForOrderEntryTypeCalculationStrategy()Gets order total paid for order entry type calculation strategy.- Returns:
- the orderTotalPaidForOrderEntryTypeCalculationStrategy
-
setOrderTotalPaidForOrderEntryTypeCalculationStrategy
public void setOrderTotalPaidForOrderEntryTypeCalculationStrategy(OrderTotalPaidForOrderEntryTypeCalculationStrategy orderTotalPaidForOrderEntryTypeCalculationStrategy) Sets order total paid for order entry type calculation strategy.- Parameters:
orderTotalPaidForOrderEntryTypeCalculationStrategy- the orderTotalPaidForOrderEntryTypeCalculationStrategy to set
-
getChangeDatesOrderTotalToPayStrategy
Gets change dates order total to pay strategy.- Returns:
- the changeDatesOrderTotalToPayStrategy
-
setChangeDatesOrderTotalToPayStrategy
public void setChangeDatesOrderTotalToPayStrategy(ChangeDatesOrderTotalToPayStrategy changeDatesOrderTotalToPayStrategy) Sets change dates order total to pay strategy.- Parameters:
changeDatesOrderTotalToPayStrategy- the changeDatesOrderTotalToPayStrategy to set
-
getEnumerationService
protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()Gets the enumeration service.- Returns:
- the enumeration service
-
setEnumerationService
public void setEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) Sets the enumeration service.- Parameters:
enumerationService- the new enumeration service
-
getEntryTypeToDiscountCalculationStrategyMap
protected Map<OrderEntryType,GlobalDiscountByEntryTypeCalculationStrategy> getEntryTypeToDiscountCalculationStrategyMap()Gets entry type to discount calculation strategy map.- Returns:
- the entryTypeToDiscountCalculationStrategyMap
-
setEntryTypeToDiscountCalculationStrategyMap
public void setEntryTypeToDiscountCalculationStrategyMap(Map<OrderEntryType, GlobalDiscountByEntryTypeCalculationStrategy> entryTypeToDiscountCalculationStrategyMap) Sets entry type to discount calculation strategy map.- Parameters:
entryTypeToDiscountCalculationStrategyMap- the entryTypeToDiscountCalculationStrategyMap to set
-
getTaxCompensationStrategy
Gets tax compensation strategy.- Returns:
- the taxCompensationStrategy
-
setTaxCompensationStrategy
]- Parameters:
taxCompensationStrategy- the taxCompensationStrategy to set
-
getOrderEntriesCancelStrategiesMapping
Gets order entries cancel strategies mapping.- Returns:
- the order entries cancel strategies mapping
-
setOrderEntriesCancelStrategiesMapping
public void setOrderEntriesCancelStrategiesMapping(Map<OrderEntryType, OrderEntriesCancelStrategy> orderEntriesCancelStrategiesMapping) Sets order entries cancel strategies mapping.- Parameters:
orderEntriesCancelStrategiesMapping- the order entries cancel strategies mapping
-
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService()Gets session service.- Returns:
- the session service
-
setSessionService
public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) Sets session service.- Parameters:
sessionService- the session service
-