Class SinglePaymentTypeValidatorImpl
- java.lang.Object
-
- de.adorsys.psd2.xs2a.web.validator.body.AbstractBodyValidatorImpl
-
- de.adorsys.psd2.xs2a.web.validator.body.payment.handler.type.SinglePaymentTypeValidatorImpl
-
- All Implemented Interfaces:
BodyValidator,PaymentTypeValidator
- Direct Known Subclasses:
BulkPaymentTypeValidatorImpl,PeriodicPaymentTypeValidatorImpl
@Component public class SinglePaymentTypeValidatorImpl extends AbstractBodyValidatorImpl implements PaymentTypeValidator
-
-
Field Summary
Fields Modifier and Type Field Description protected PaymentMapperpaymentMapper-
Fields inherited from class de.adorsys.psd2.xs2a.web.validator.body.AbstractBodyValidatorImpl
errorBuildingService, xs2aObjectMapper
-
-
Constructor Summary
Constructors Constructor Description SinglePaymentTypeValidatorImpl(ErrorBuildingService errorBuildingService, de.adorsys.psd2.mapper.Xs2aObjectMapper xs2aObjectMapper, PaymentMapper paymentMapper, AmountValidator amountValidator, IbanValidator ibanValidator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.adorsys.psd2.xs2a.core.profile.PaymentTypegetPaymentType()de.adorsys.psd2.xs2a.core.error.MessageErrorvalidate(Object body, de.adorsys.psd2.xs2a.core.error.MessageError messageError, PaymentValidationConfig validationConfig)-
Methods inherited from class de.adorsys.psd2.xs2a.web.validator.body.AbstractBodyValidatorImpl
checkFieldForMaxLength, extractErrorField, validate, validateBodyFields, validateRawData
-
-
-
-
Field Detail
-
paymentMapper
protected PaymentMapper paymentMapper
-
-
Constructor Detail
-
SinglePaymentTypeValidatorImpl
@Autowired public SinglePaymentTypeValidatorImpl(ErrorBuildingService errorBuildingService, de.adorsys.psd2.mapper.Xs2aObjectMapper xs2aObjectMapper, PaymentMapper paymentMapper, AmountValidator amountValidator, IbanValidator ibanValidator)
-
-
Method Detail
-
getPaymentType
public de.adorsys.psd2.xs2a.core.profile.PaymentType getPaymentType()
- Specified by:
getPaymentTypein interfacePaymentTypeValidator
-
validate
public de.adorsys.psd2.xs2a.core.error.MessageError validate(Object body, de.adorsys.psd2.xs2a.core.error.MessageError messageError, PaymentValidationConfig validationConfig)
- Specified by:
validatein interfacePaymentTypeValidator
-
-