class PaymentBodyValidatorImpl extends AbstractBodyValidatorImpl implements PaymentBodyValidator {

    @Override
    public MessageError validate(HttpServletRequest request, MessageError messageError) {
        if (isRawPaymentProduct(getPathParameters(request))) {
            log.info("Raw payment product is detected.");
            return messageError;
        }

        return super.validate(request, messageError);
    }

    @Autowired public  PaymentBodyValidatorImpl(ErrorBuildingService errorBuildingService, Xs2aObjectMapper xs2aObjectMapper,
                                    StandardPaymentProductsResolver standardPaymentProductsResolver,
                                    TppRedirectUriBodyValidatorImpl tppRedirectUriBodyValidator,
                                    DateFieldValidator dateFieldValidator, FieldExtractor fieldExtractor,
                                    CurrencyValidator currencyValidator,
                                    PathParameterExtractor pathParameterExtractor, CountryPaymentValidatorResolver countryPaymentValidatorResolver);

}