Class AmendAncillaryStrategy
java.lang.Object
de.hybris.platform.ndc182shoppingfacades.facades.order.strategies.impl.AmendAncillaryStrategy
- All Implemented Interfaces:
ChangeOrderStrategy
The strategy for changing an order by amending ancillaries from order change request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeOrder(AbstractOrderModel order, IATAOrderChangeRQ orderChangeRQ, List<AbstractOrderEntryModel> orderEntries) Change order.protected voidcheckPassenger(IATAOrderChangeRQ orderChangeRQ, ReservationData reservationData) Validate passenger.protected StringcreateSeatId(SelectedSeatType selectedSeat) Create seat id.protected de.hybris.platform.order.CartServiceGets cart service.protected Map<String,ChangeServiceStrategy> Gets change service strategy map.protected de.hybris.platform.servicelayer.config.ConfigurationServiceGets configuration service.protected NDCAlaCarteOfferItemDatagetNdcAlaCarteOrderItem(IATAOrderChangeRQ orderChangeRQ, NDCAlaCarteOfferData ndcAlaCarteOfferData, SelectedOfferItemType selectedOfferItem) Gets ndc ala carte order item.protected NDCAlaCarteValidatorGets ndc ala carte validator.protected NDCOfferFacadeGets ndc offer facade.protected de.hybris.platform.product.ProductServiceGets product service.protected ReservationFacadeGets reservation facade.getUidFromPassengers(List<String> paxRefIds, Set<TravellerModel> travellerModels) Gets travellers from passengers.protected booleanisSameTransportOfferings(IATAOrderChangeRQ orderChangeRQ, NDCAlaCarteOfferItemData ndcAlaCarteOfferItemData, SelectedOfferItemType selectedOfferItem) Check if the transport offerings in the offer item retrieved from cache contains the pasengers from the request.voidsetCartService(de.hybris.platform.order.CartService cartService) Sets cart service.voidsetChangeServiceStrategyMap(Map<String, ChangeServiceStrategy> changeServiceStrategyMap) Sets change service strategy map.voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.voidsetNdcAlaCarteValidator(NDCAlaCarteValidator ndcAlaCarteValidator) Sets ndc ala carte validator.voidsetNdcOfferFacade(NDCOfferFacade ndcOfferFacade) Sets ndc offer facade.voidsetProductService(de.hybris.platform.product.ProductService productService) Sets product service.voidsetReservationFacade(ReservationFacade reservationFacade) Sets reservation facade.
-
Constructor Details
-
AmendAncillaryStrategy
public AmendAncillaryStrategy()
-
-
Method Details
-
changeOrder
public void changeOrder(AbstractOrderModel order, IATAOrderChangeRQ orderChangeRQ, List<AbstractOrderEntryModel> orderEntries) throws NDCException Description copied from interface:ChangeOrderStrategyChange order.- Specified by:
changeOrderin interfaceChangeOrderStrategy- Parameters:
order- the orderorderChangeRQ- the order change rq- Throws:
NDCException
-
checkPassenger
protected void checkPassenger(IATAOrderChangeRQ orderChangeRQ, ReservationData reservationData) throws NDCException Validate passenger.- Parameters:
orderChangeRQ- the order change rqreservationData- the reservation data- Throws:
NDCException- the ndc exception
-
getNdcAlaCarteOrderItem
protected NDCAlaCarteOfferItemData getNdcAlaCarteOrderItem(IATAOrderChangeRQ orderChangeRQ, NDCAlaCarteOfferData ndcAlaCarteOfferData, SelectedOfferItemType selectedOfferItem) throws NDCException Gets ndc ala carte order item.- Parameters:
ndcAlaCarteOfferData- the ndc ala carte offer dataselectedOfferItem- the selected offer item- Returns:
- the ndc ala carte order item
- Throws:
NDCException- the ndc exception
-
isSameTransportOfferings
protected boolean isSameTransportOfferings(IATAOrderChangeRQ orderChangeRQ, NDCAlaCarteOfferItemData ndcAlaCarteOfferItemData, SelectedOfferItemType selectedOfferItem) Check if the transport offerings in the offer item retrieved from cache contains the pasengers from the request.- Parameters:
ndcAlaCarteOfferItemData- the ndc ala carte offer item dataselectedOfferItem- the selected offer item- Returns:
- the boolean
-
getUidFromPassengers
protected List<String> getUidFromPassengers(List<String> paxRefIds, Set<TravellerModel> travellerModels) throws NDCException Gets travellers from passengers.- Parameters:
paxRefIds- the pax ref idstravellerModels- the traveller models- Returns:
- the traveller from passenger
- Throws:
NDCException- the ndc exception
-
createSeatId
Create seat id.- Parameters:
selectedSeat- the selected seat- Returns:
- the string
-
getNdcOfferFacade
Gets ndc offer facade.- Returns:
- the ndc offer facade
-
setNdcOfferFacade
Sets ndc offer facade.- Parameters:
ndcOfferFacade- the ndc offer facade
-
getProductService
protected de.hybris.platform.product.ProductService getProductService()Gets product service.- Returns:
- the product service
-
setProductService
public void setProductService(de.hybris.platform.product.ProductService productService) Sets product service.- Parameters:
productService- the product service
-
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()Gets configuration service.- Returns:
- the configuration service
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) Sets configuration service.- Parameters:
configurationService- the configuration service
-
getReservationFacade
Gets reservation facade.- Returns:
- the reservation facade
-
setReservationFacade
Sets reservation facade.- Parameters:
reservationFacade- the reservation facade
-
getNdcAlaCarteValidator
Gets ndc ala carte validator.- Returns:
- the ndc ala carte validator
-
setNdcAlaCarteValidator
Sets ndc ala carte validator.- Parameters:
ndcAlaCarteValidator- the ndc ala carte validator
-
getChangeServiceStrategyMap
Gets change service strategy map.- Returns:
- the change service strategy map
-
setChangeServiceStrategyMap
Sets change service strategy map.- Parameters:
changeServiceStrategyMap- the change service strategy map
-
getCartService
protected de.hybris.platform.order.CartService getCartService()Gets cart service.- Returns:
- the cart service
-
setCartService
public void setCartService(de.hybris.platform.order.CartService cartService) Sets cart service.- Parameters:
cartService- the cart service
-