Class GetPaymentByIdValidator
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.validator.pis.AbstractPisValidator<GetPaymentByIdPO>
-
- de.adorsys.psd2.xs2a.service.validator.pis.payment.GetPaymentByIdValidator
-
- All Implemented Interfaces:
BusinessValidator<GetPaymentByIdPO>
@Component public class GetPaymentByIdValidator extends AbstractPisValidator<GetPaymentByIdPO>
Validator to be used for validating get payment by ID request according to some business rules
-
-
Constructor Summary
Constructors Constructor Description GetPaymentByIdValidator(OauthPaymentValidator oauthPaymentValidator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ValidationResultexecuteBusinessValidation(GetPaymentByIdPO paymentObject)Validates get payment by ID request by checking whether: given payment's type and product are valid for the payment-
Methods inherited from class de.adorsys.psd2.xs2a.service.validator.pis.AbstractPisValidator
setPisValidators, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.adorsys.psd2.xs2a.service.validator.BusinessValidator
buildWarningMessages
-
-
-
-
Constructor Detail
-
GetPaymentByIdValidator
public GetPaymentByIdValidator(OauthPaymentValidator oauthPaymentValidator)
-
-
Method Detail
-
executeBusinessValidation
protected ValidationResult executeBusinessValidation(GetPaymentByIdPO paymentObject)
Validates get payment by ID request by checking whether:- given payment's type and product are valid for the payment
- Specified by:
executeBusinessValidationin classAbstractPisValidator<GetPaymentByIdPO>- Parameters:
paymentObject- payment information object- Returns:
- valid result if the payment is valid, invalid result with appropriate error otherwise
-
-