mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 14:46:49 +00:00
feature/Tweak endpoint createConsentByConsentRequestId v5.0.0
This commit is contained in:
parent
cf6e67376e
commit
b22a17c97e
@ -499,7 +499,7 @@ object ErrorMessages {
|
||||
val ConsentUserCannotBeAdded = "OBP-35026: The Consent's User cannot be added."
|
||||
val ConsentUserAuthContextCannotBeAdded = "OBP-35027: The Consent's User Auth Context cannot be added."
|
||||
val ConsentRequestNotFound = "OBP-35028: Consent Request not found by CONSENT_REQUEST_ID. "
|
||||
val ConsentRequestAlreadyUsed = "OBP-35029: The CONSENT_REQUEST_ID is used to create Consent. "
|
||||
val ConsentRequestIsInvalid = "OBP-35029: The CONSENT_REQUEST_ID is invalid. "
|
||||
|
||||
//Authorisations
|
||||
val AuthorisationNotFound = "OBP-36001: Authorisation not found. Please specify valid values for PAYMENT_ID and AUTHORISATION_ID. "
|
||||
|
||||
@ -761,6 +761,7 @@ trait APIMethods500 {
|
||||
UserNotLoggedIn,
|
||||
$BankNotFound,
|
||||
InvalidJsonFormat,
|
||||
ConsentRequestIsInvalid,
|
||||
ConsentAllowedScaMethods,
|
||||
RolesAllowedInConsent,
|
||||
ViewsAllowedInConsent,
|
||||
@ -786,7 +787,7 @@ trait APIMethods500 {
|
||||
)) map {
|
||||
i => unboxFullOrFail(i,callContext, ConsentRequestNotFound)
|
||||
}
|
||||
_ <- Helper.booleanToFuture(ConsentRequestAlreadyUsed, cc=callContext){
|
||||
_ <- Helper.booleanToFuture(ConsentRequestIsInvalid, cc=callContext){
|
||||
Consents.consentProvider.vend.getConsentByConsentRequestId(consentRequestId).isEmpty
|
||||
}
|
||||
_ <- Helper.booleanToFuture(ConsentAllowedScaMethods, cc=callContext){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user