@Component public class SinglePaymentTypeValidatorImpl extends AbstractBodyValidatorImpl implements PaymentTypeValidator
| Modifier and Type | Field and Description |
|---|---|
protected PaymentValidationConfig |
validationConfig |
errorBuildingService, xs2aObjectMapper| Constructor and Description |
|---|
SinglePaymentTypeValidatorImpl(ErrorBuildingService errorBuildingService,
Xs2aObjectMapper xs2aObjectMapper,
PaymentMapper paymentMapper,
AmountValidator amountValidator,
PaymentValidationConfig validationConfig) |
| Modifier and Type | Method and Description |
|---|---|
PaymentType |
getPaymentType() |
void |
validate(Object body,
MessageError messageError) |
checkFieldForMaxLength, extractErrorField, mapBodyToInstance, validate, validateBodyFields, validateRawDataprotected PaymentValidationConfig validationConfig
@Autowired public SinglePaymentTypeValidatorImpl(ErrorBuildingService errorBuildingService, Xs2aObjectMapper xs2aObjectMapper, PaymentMapper paymentMapper, AmountValidator amountValidator, PaymentValidationConfig validationConfig)
public PaymentType getPaymentType()
getPaymentType in interface PaymentTypeValidatorpublic void validate(Object body, MessageError messageError)
validate in interface PaymentTypeValidatorCopyright © 2019. All rights reserved.