java.lang.Object
de.hybris.platform.ndc182shoppingfacades.facades.order.strategies.impl.AmendAncillaryStrategy
All Implemented Interfaces:
ChangeOrderStrategy

public class AmendAncillaryStrategy extends Object implements ChangeOrderStrategy
The strategy for changing an order by amending ancillaries from order change request.
  • Constructor Details

    • AmendAncillaryStrategy

      public AmendAncillaryStrategy()
  • Method Details

    • changeOrder

      public void changeOrder(AbstractOrderModel order, IATAOrderChangeRQ orderChangeRQ, List<AbstractOrderEntryModel> orderEntries) throws NDCException
      Description copied from interface: ChangeOrderStrategy
      Change order.
      Specified by:
      changeOrder in interface ChangeOrderStrategy
      Parameters:
      order - the order
      orderChangeRQ - the order change rq
      Throws:
      NDCException
    • checkPassenger

      protected void checkPassenger(IATAOrderChangeRQ orderChangeRQ, ReservationData reservationData) throws NDCException
      Validate passenger.
      Parameters:
      orderChangeRQ - the order change rq
      reservationData - 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 data
      selectedOfferItem - 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 data
      selectedOfferItem - 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 ids
      travellerModels - the traveller models
      Returns:
      the traveller from passenger
      Throws:
      NDCException - the ndc exception
    • createSeatId

      protected String createSeatId(SelectedSeatType selectedSeat)
      Create seat id.
      Parameters:
      selectedSeat - the selected seat
      Returns:
      the string
    • getNdcOfferFacade

      protected NDCOfferFacade getNdcOfferFacade()
      Gets ndc offer facade.
      Returns:
      the ndc offer facade
    • setNdcOfferFacade

      public void setNdcOfferFacade(NDCOfferFacade ndcOfferFacade)
      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

      protected ReservationFacade getReservationFacade()
      Gets reservation facade.
      Returns:
      the reservation facade
    • setReservationFacade

      public void setReservationFacade(ReservationFacade reservationFacade)
      Sets reservation facade.
      Parameters:
      reservationFacade - the reservation facade
    • getNdcAlaCarteValidator

      protected NDCAlaCarteValidator getNdcAlaCarteValidator()
      Gets ndc ala carte validator.
      Returns:
      the ndc ala carte validator
    • setNdcAlaCarteValidator

      public void setNdcAlaCarteValidator(NDCAlaCarteValidator ndcAlaCarteValidator)
      Sets ndc ala carte validator.
      Parameters:
      ndcAlaCarteValidator - the ndc ala carte validator
    • getChangeServiceStrategyMap

      protected Map<String,ChangeServiceStrategy> getChangeServiceStrategyMap()
      Gets change service strategy map.
      Returns:
      the change service strategy map
    • setChangeServiceStrategyMap

      public void setChangeServiceStrategyMap(Map<String,ChangeServiceStrategy> changeServiceStrategyMap)
      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