@Component public class SinglePaymentTypeValidatorImpl extends AbstractBodyValidatorImpl implements PaymentTypeValidator
| Modifier and Type | Field and Description |
|---|---|
protected PaymentValidationConfig |
validationConfig |
errorBuildingService, objectMapper| Constructor and Description |
|---|
SinglePaymentTypeValidatorImpl(ErrorBuildingService errorBuildingService,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
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, com.fasterxml.jackson.databind.ObjectMapper objectMapper, 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.