Class PaymentTypeAndProductValidator


  • @Component
    public class PaymentTypeAndProductValidator
    extends Object
    • Constructor Detail

      • PaymentTypeAndProductValidator

        public PaymentTypeAndProductValidator()
    • Method Detail

      • validateTypeAndProduct

        @NotNull
        public @NotNull de.adorsys.psd2.xs2a.core.service.validator.ValidationResult validateTypeAndProduct​(@NotNull
                                                                                                            @NotNull de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType,
                                                                                                            String paymentProduct)
        Validates payment type and payment product by checking whether it's supported by the ASPSP profile
        Parameters:
        paymentType - payment type
        paymentProduct - payment product
        Returns:
        valid result if the payment type and product are supported by the ASPSP, invalid result with an appropriate error otherwise