@Component public class CancelPaymentValidator extends AbstractPisValidator<CancelPaymentPO>
| Constructor and Description |
|---|
CancelPaymentValidator(RequestProviderService requestProviderService,
TppUriHeaderValidator tppUriHeaderValidator) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Set<TppMessageInformation> |
buildWarningMessages(@NotNull CancelPaymentPO cancelPaymentPO)
Checks some object according to some business rules and creates warning messages if there is inconsistency in the logic
|
protected ValidationResult |
executeBusinessValidation(CancelPaymentPO paymentObject)
Validates cancel payment request by checking whether:
given payment's type and product are valid for the payment
|
getRequestProviderService, setPisValidators, validatepublic CancelPaymentValidator(RequestProviderService requestProviderService, TppUriHeaderValidator tppUriHeaderValidator)
protected ValidationResult executeBusinessValidation(CancelPaymentPO paymentObject)
executeBusinessValidation in class AbstractPisValidator<CancelPaymentPO>paymentObject - payment information object@NotNull public @NotNull Set<TppMessageInformation> buildWarningMessages(@NotNull @NotNull CancelPaymentPO cancelPaymentPO)
BusinessValidatorcancelPaymentPO - business object to be validatedCopyright © 2020. All rights reserved.