Class PaymentTypeAndProductValidator
- java.lang.Object
-
- de.adorsys.psd2.xs2a.web.validator.path.PaymentTypeAndProductValidator
-
@Component public class PaymentTypeAndProductValidator extends Object
-
-
Constructor Summary
Constructors Constructor Description PaymentTypeAndProductValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull de.adorsys.psd2.xs2a.core.service.validator.ValidationResultvalidateTypeAndProduct(@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
-
-
-
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 typepaymentProduct- payment product- Returns:
- valid result if the payment type and product are supported by the ASPSP, invalid result with an appropriate error otherwise
-
-