@Component public class CreatePaymentValidator extends Object implements BusinessValidator<CreatePaymentRequestObject>
| Constructor and Description |
|---|
CreatePaymentValidator() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Set<de.adorsys.psd2.xs2a.core.domain.TppMessageInformation> |
buildWarningMessages(@NotNull CreatePaymentRequestObject createPaymentRequestObject)
Checks some object according to some business rules and creates warning messages if there is inconsistency in the logic
|
@NotNull ValidationResult |
validate(@NotNull CreatePaymentRequestObject createPaymentRequestObject)
Validates create payment request by checking whether:
Payment product and payment type are correct
PSU Data is present in the request if it's mandated by the profile
Account references are supported by ASPSP
|
@NotNull public @NotNull ValidationResult validate(@NotNull @NotNull CreatePaymentRequestObject createPaymentRequestObject)
validate in interface BusinessValidator<CreatePaymentRequestObject>createPaymentRequestObject - payment request object with information about the payment@NotNull public @NotNull Set<de.adorsys.psd2.xs2a.core.domain.TppMessageInformation> buildWarningMessages(@NotNull @NotNull CreatePaymentRequestObject createPaymentRequestObject)
BusinessValidatorbuildWarningMessages in interface BusinessValidator<CreatePaymentRequestObject>createPaymentRequestObject - business object to be validatedCopyright © 2020. All rights reserved.