Class NDCTravellerStatusOrderValidationStrategy
java.lang.Object
de.hybris.platform.ndc182facades.facades.order.strategies.impl.NDCTravellerStatusOrderValidationStrategy
- All Implemented Interfaces:
NDCChangeOrderValidationStrategy
public class NDCTravellerStatusOrderValidationStrategy
extends Object
implements NDCChangeOrderValidationStrategy
The type Ndc traveller status order validation strategy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CheckInFacadeGets check in facade.protected NDCOrderServiceGets ndc order service.voidsetCheckInFacade(CheckInFacade checkInFacade) Sets check in facade.voidsetNdcOrderService(NDCOrderService ndcOrderService) Sets ndc order service.booleanvalidateAmendOrder(OrderModel order, String productCode, Long qty, String travellerCode, List<String> transportOfferingCodes, String travelRouteCode) Method that validates if an ancillary can be added or removed to the specified order
-
Constructor Details
-
NDCTravellerStatusOrderValidationStrategy
public NDCTravellerStatusOrderValidationStrategy()
-
-
Method Details
-
validateAmendOrder
public boolean validateAmendOrder(OrderModel order, String productCode, Long qty, String travellerCode, List<String> transportOfferingCodes, String travelRouteCode) Description copied from interface:NDCChangeOrderValidationStrategyMethod that validates if an ancillary can be added or removed to the specified order- Specified by:
validateAmendOrderin interfaceNDCChangeOrderValidationStrategy- Parameters:
order- the order to which the ancillary needs to be addedproductCode- as the product to be added or removed from the orderqty- as the quantity to add/removetravellerCode- as the code of the traveller to whom the product is added or removedtransportOfferingCodes- as the codes of the transportOfferings the product is added to or removed fromtravelRouteCode- as the travelRouteCode the product is added to or removed from- Returns:
- valid add to order if true, false otherwise.
-
getCheckInFacade
Gets check in facade.- Returns:
- the check in facade
-
setCheckInFacade
Sets check in facade.- Parameters:
checkInFacade- the check in facade
-
getNdcOrderService
Gets ndc order service.- Returns:
- the ndc order service
-
setNdcOrderService
Sets ndc order service.- Parameters:
ndcOrderService- the ndc order service
-