Interface PaymentBusinessValidator


  • public interface PaymentBusinessValidator
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      de.adorsys.psd2.xs2a.core.service.validator.ValidationResult validate​(byte[] body, String paymentProduct, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType)
      Validates a payment according to some business rules
    • Method Detail

      • validate

        de.adorsys.psd2.xs2a.core.service.validator.ValidationResult validate​(byte[] body,
                                                                              String paymentProduct,
                                                                              de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType)
        Validates a payment according to some business rules
        Parameters:
        body - byte representation of the payment body
        paymentProduct - payment product
        paymentType - payment type
        Returns:
        valid result if the payment is correct, validation error otherwise