@Component public class CreateConsentRequestValidator extends Object implements BusinessValidator<CreateConsentRequestObject>
| Constructor and Description |
|---|
CreateConsentRequestValidator() |
| Modifier and Type | Method and Description |
|---|---|
Set<TppMessageInformation> |
buildWarningMessages(@NotNull CreateConsentRequestObject request)
Checks some object according to some business rules and creates warning messages if there is inconsistency in the logic
|
@NotNull ValidationResult |
validate(@NotNull CreateConsentRequestObject requestObject)
Validates Create consent request according to:
the presence of PSU Data in the request if it's mandated by the profile
support of account reference types
support of global consent for All Psd2
support of bank offered consent
support of available account access
support of combined service indicator
If there are new consent requirements, this method has to be updated.
|
@NotNull public @NotNull ValidationResult validate(@NotNull @NotNull CreateConsentRequestObject requestObject)
validate in interface BusinessValidator<CreateConsentRequestObject>requestObject - create consent request objectpublic Set<TppMessageInformation> buildWarningMessages(@NotNull @NotNull CreateConsentRequestObject request)
BusinessValidatorbuildWarningMessages in interface BusinessValidator<CreateConsentRequestObject>request - business object to be validatedCopyright © 2020. All rights reserved.