Class OrderCreateDataListsFieldValidator
java.lang.Object
de.hybris.platform.ndc182shoppingwebservices.validators.impl.AbstractOrderCreateRequestValidator
de.hybris.platform.ndc182shoppingwebservices.validators.impl.OrderCreateDataListsFieldValidator
- All Implemented Interfaces:
NDCFieldValidator<IATAOrderCreateRQ,List<ErrorType>>
public class OrderCreateDataListsFieldValidator
extends AbstractOrderCreateRequestValidator
implements NDCFieldValidator<IATAOrderCreateRQ,List<ErrorType>>
The ndc 18.2 Order create data lists field validator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NDCPassengerTypeServiceGets ndc passenger type service.voidsetNdcPassengerTypeService(NDCPassengerTypeService ndcPassengerTypeService) Sets ndc passenger type service.voidvalidate(IATAOrderCreateRQ orderCreateRQ, List<ErrorType> errors) Validates the datalists field.protected voidvalidateContactInfo(ContactInfoListType contactInfoList, List<ErrorType> errors) Validate contact info.protected voidvalidateIndividualField(IndividualType individual, List<ErrorType> errors) Validates the individual field for each passenger in the pax list.protected voidvalidatePaxJourneyList(PaxJourneyListType paxJourneyList, List<ErrorType> errors) Validates pax journey list.protected voidvalidatePaxList(PaxListType paxList, List<ErrorType> errors) Validates pax list.protected voidvalidatePaxSegmentList(PaxSegmentListType paxSegmentList, List<ErrorType> errors) Validates pax segment list.protected voidvalidatePostalAddress(List<PostalAddressType> postalAddress, List<ErrorType> errors) Validate postal address.Methods inherited from class de.hybris.platform.ndc182shoppingwebservices.validators.impl.AbstractOrderCreateRequestValidator
addError
-
Constructor Details
-
OrderCreateDataListsFieldValidator
public OrderCreateDataListsFieldValidator()
-
-
Method Details
-
validate
Validates the datalists field. Checks if paxJourneyList, paxSegmentList, paxList are present.- Specified by:
validatein interfaceNDCFieldValidator<IATAOrderCreateRQ,List<ErrorType>> - Parameters:
orderCreateRQ- the orderCreateRQerrors- the list of errors
-
validateContactInfo
Validate contact info.- Parameters:
contactInfoList- the contact info listerrors- the errors
-
validatePostalAddress
Validate postal address.- Parameters:
postalAddress- the postal addresserrors- the errors
-
validatePaxSegmentList
Validates pax segment list.- Parameters:
paxSegmentList- the pax segment listerrors- the errors
-
validatePaxJourneyList
Validates pax journey list.- Parameters:
paxJourneyList- the pax journey listerrors- the errors
-
validatePaxList
Validates pax list. Checks if one of the passenger has invalid ndcCode or Id/Ptc empty.- Parameters:
paxList- the pax list typeerrors- the errors
-
validateIndividualField
Validates the individual field for each passenger in the pax list.- Parameters:
individual- the individualerrors- the errors
-
getNdcPassengerTypeService
Gets ndc passenger type service.- Returns:
- the ndc passenger type service
-
setNdcPassengerTypeService
Sets ndc passenger type service.- Parameters:
ndcPassengerTypeService- the ndc passenger type service
-