Class TravelCartPaymentInfoValidationStrategy
java.lang.Object
de.hybris.platform.travelfacades.order.strategies.impl.TravelCartPaymentInfoValidationStrategy
- All Implemented Interfaces:
TravelCartValidationStrategy
public class TravelCartPaymentInfoValidationStrategy
extends Object
implements TravelCartValidationStrategy
The implementation of
TravelCartValidationStrategy
Validates if the cart contains a valid payment details.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvalidateBillingAddress(AddressModel billingAddress) Validate billing address.voidvalidateCart(CartModel cartModel) Validate cart for all the necessary information to place the orderprotected voidvalidateDate(CreditCardPaymentInfoModel paymentInfo) Validates the start date and expiry date of the payment details.
-
Constructor Details
-
TravelCartPaymentInfoValidationStrategy
public TravelCartPaymentInfoValidationStrategy()
-
-
Method Details
-
validateCart
Description copied from interface:TravelCartValidationStrategyValidate cart for all the necessary information to place the order- Specified by:
validateCartin interfaceTravelCartValidationStrategy- Throws:
TravelCartValidationException
-
validateDate
Validates the start date and expiry date of the payment details.- Parameters:
paymentInfo- the payment info
-
validateBillingAddress
Validate billing address. Check if the mandatory fields are not empty- Parameters:
billingAddress- the billing address
-