Class CancelPaymentValidator

    • Constructor Detail

      • CancelPaymentValidator

        public CancelPaymentValidator()
    • Method Detail

      • executeBusinessValidation

        protected ValidationResult executeBusinessValidation​(CancelPaymentPO paymentObject)
        Validates cancel payment request by checking whether:
        • given payment's type and product are valid for the payment
        Specified by:
        executeBusinessValidation in class AbstractPisValidator<CancelPaymentPO>
        Parameters:
        paymentObject - payment information object
        Returns:
        valid result if the payment is valid, invalid result with appropriate error otherwise
      • buildWarningMessages

        @NotNull
        public @NotNull Set<de.adorsys.psd2.xs2a.core.domain.TppMessageInformation> buildWarningMessages​(@NotNull
                                                                                                         @NotNull CancelPaymentPO cancelPaymentPO)
        Description copied from interface: BusinessValidator
        Checks some object according to some business rules and creates warning messages if there is inconsistency in the logic
        Parameters:
        cancelPaymentPO - business object to be validated
        Returns:
        empty set if the object doesn't have inconsistencies, set of warning messages otherwise