mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 11:06:49 +00:00
feature/Consider removing New-Style tag from default resource doc output
This commit is contained in:
parent
497291b650
commit
5b43df4972
@ -62,7 +62,7 @@ When naming variables use strict camel case e.g. use myUrl not myURL. This is so
|
||||
UnknownError
|
||||
),
|
||||
Catalogs(notCore, notPSD2, notOBWG),
|
||||
List(apiTagCustomer, apiTagUser, apiTagNewStyle))
|
||||
List(apiTagCustomer, apiTagUser))
|
||||
|
||||
|
||||
|
||||
|
||||
@ -256,7 +256,7 @@ object DynamicEndpointHelper extends RestHelper {
|
||||
}
|
||||
|
||||
def buildDynamicEndpointInfo(openAPI: OpenAPI, id: String, bankId:Option[String]): DynamicEndpointInfo = {
|
||||
val tags: List[ResourceDocTag] = List(ApiTag(openAPI.getInfo.getTitle), apiTagNewStyle, apiTagDynamicEndpoint, apiTagDynamic)
|
||||
val tags: List[ResourceDocTag] = List(ApiTag(openAPI.getInfo.getTitle), apiTagDynamicEndpoint, apiTagDynamic)
|
||||
|
||||
val serverUrl = {
|
||||
val servers = openAPI.getServers
|
||||
|
||||
@ -4,7 +4,7 @@ import code.api.ResourceDocs1_4_0.SwaggerDefinitionsJSON.requestRootJsonClass
|
||||
import code.api.dynamic.endpoint.helper.EndpointGroup
|
||||
import code.api.util.APIUtil
|
||||
import code.api.util.APIUtil.{ResourceDoc, StringBody}
|
||||
import code.api.util.ApiTag.{apiTagDynamicResourceDoc, apiTagNewStyle}
|
||||
import code.api.util.ApiTag.{apiTagDynamicResourceDoc}
|
||||
import code.api.util.ErrorMessages.UnknownError
|
||||
import com.openbankproject.commons.util.ApiVersion
|
||||
|
||||
@ -40,5 +40,5 @@ object PractiseEndpointGroup extends EndpointGroup{
|
||||
List(
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagDynamicResourceDoc, apiTagNewStyle)) :: Nil
|
||||
List(apiTagDynamicResourceDoc)) :: Nil
|
||||
}
|
||||
|
||||
@ -189,7 +189,7 @@ object DynamicEntityHelper {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTag, apiTagNewStyle, apiTagDynamicEntity, apiTagDynamic),
|
||||
List(apiTag, apiTagDynamicEntity, apiTagDynamic),
|
||||
Some(List(dynamicEntityInfo.canGetRole)),
|
||||
createdByBankId= dynamicEntityInfo.bankId
|
||||
)
|
||||
@ -217,7 +217,7 @@ object DynamicEntityHelper {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTag, apiTagNewStyle, apiTagDynamicEntity, apiTagDynamic),
|
||||
List(apiTag, apiTagDynamicEntity, apiTagDynamic),
|
||||
Some(List(dynamicEntityInfo.canGetRole)),
|
||||
createdByBankId= dynamicEntityInfo.bankId
|
||||
)
|
||||
@ -247,7 +247,7 @@ object DynamicEntityHelper {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTag, apiTagNewStyle, apiTagDynamicEntity, apiTagDynamic),
|
||||
List(apiTag, apiTagDynamicEntity, apiTagDynamic),
|
||||
Some(List(dynamicEntityInfo.canCreateRole)),
|
||||
createdByBankId= dynamicEntityInfo.bankId
|
||||
)
|
||||
@ -277,7 +277,7 @@ object DynamicEntityHelper {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTag, apiTagNewStyle, apiTagDynamicEntity, apiTagDynamic),
|
||||
List(apiTag, apiTagDynamicEntity, apiTagDynamic),
|
||||
Some(List(dynamicEntityInfo.canUpdateRole)),
|
||||
createdByBankId= dynamicEntityInfo.bankId
|
||||
)
|
||||
@ -304,7 +304,7 @@ object DynamicEntityHelper {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTag, apiTagNewStyle, apiTagDynamicEntity, apiTagDynamic),
|
||||
List(apiTag, apiTagDynamicEntity, apiTagDynamic),
|
||||
Some(List(dynamicEntityInfo.canDeleteRole)),
|
||||
createdByBankId= dynamicEntityInfo.bankId
|
||||
)
|
||||
@ -336,7 +336,7 @@ object DynamicEntityHelper {
|
||||
UserNotLoggedIn,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTag, apiTagNewStyle, apiTagDynamicEntity, apiTagDynamic),
|
||||
List(apiTag, apiTagDynamicEntity, apiTagDynamic),
|
||||
createdByBankId= dynamicEntityInfo.bankId
|
||||
)
|
||||
|
||||
@ -362,7 +362,7 @@ object DynamicEntityHelper {
|
||||
UserNotLoggedIn,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTag, apiTagNewStyle, apiTagDynamicEntity, apiTagDynamic),
|
||||
List(apiTag, apiTagDynamicEntity, apiTagDynamic),
|
||||
createdByBankId= dynamicEntityInfo.bankId
|
||||
)
|
||||
|
||||
@ -390,7 +390,7 @@ object DynamicEntityHelper {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTag, apiTagNewStyle, apiTagDynamicEntity, apiTagDynamic),
|
||||
List(apiTag, apiTagDynamicEntity, apiTagDynamic),
|
||||
createdByBankId= dynamicEntityInfo.bankId
|
||||
)
|
||||
|
||||
@ -418,7 +418,7 @@ object DynamicEntityHelper {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTag, apiTagNewStyle, apiTagDynamicEntity, apiTagDynamic),
|
||||
List(apiTag, apiTagDynamicEntity, apiTagDynamic),
|
||||
Some(List(dynamicEntityInfo.canUpdateRole)),
|
||||
createdByBankId= dynamicEntityInfo.bankId
|
||||
)
|
||||
@ -443,7 +443,7 @@ object DynamicEntityHelper {
|
||||
UserNotLoggedIn,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTag, apiTagNewStyle, apiTagDynamicEntity, apiTagDynamic),
|
||||
List(apiTag, apiTagDynamicEntity, apiTagDynamic),
|
||||
createdByBankId= dynamicEntityInfo.bankId
|
||||
)
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ import code.api.oauth1a.Arithmetics
|
||||
import code.api.oauth1a.OauthParams._
|
||||
import code.api.util.APIUtil.ResourceDoc.{findPathVariableNames, isPathVariable}
|
||||
import code.api.util.ApiRole.{canCreateProduct, canCreateProductAtAnyBank}
|
||||
import code.api.util.ApiTag.{ResourceDocTag, apiTagBank, apiTagNewStyle}
|
||||
import code.api.util.ApiTag.{ResourceDocTag, apiTagBank}
|
||||
import code.api.util.Glossary.GlossaryItem
|
||||
import code.api.util.RateLimitingJson.CallLimit
|
||||
import code.api.v1_2.ErrorMessage
|
||||
@ -2737,9 +2737,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
|
||||
|
||||
// Endpoint Operation Ids
|
||||
val enabledEndpointOperationIds = getEnabledEndpointOperationIds
|
||||
|
||||
val onlyNewStyle = APIUtil.getPropsAsBoolValue("new_style_only", false)
|
||||
|
||||
|
||||
|
||||
val routes = for (
|
||||
item <- resourceDocs
|
||||
@ -2750,8 +2748,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
|
||||
(enabledEndpointOperationIds.contains(item.operationId) || enabledEndpointOperationIds.isEmpty) &&
|
||||
// Only allow Resource Doc if it matches one of the pre selected endpoints from the version list.
|
||||
// i.e. this function may receive more Resource Docs than version endpoints
|
||||
endpoints.exists(_ == item.partialFunction) &&
|
||||
(item.tags.exists(_ == apiTagNewStyle) || !onlyNewStyle)
|
||||
endpoints.exists(_ == item.partialFunction)
|
||||
)
|
||||
yield item
|
||||
routes
|
||||
|
||||
@ -64,7 +64,6 @@ object ApiTag {
|
||||
val apiTagMXOpenFinance = ResourceDocTag("MXOpenFinance")
|
||||
val apiTagApiBuilder = ResourceDocTag("API-Builder")
|
||||
val apiTagAggregateMetrics = ResourceDocTag("Aggregate-Metrics")
|
||||
val apiTagNewStyle = ResourceDocTag("New-Style")
|
||||
val apiTagSystemIntegrity = ResourceDocTag("System-Integrity")
|
||||
val apiTagWebhook = ResourceDocTag("Webhook")
|
||||
val apiTagMockedData = ResourceDocTag("Mocked-Data")
|
||||
|
||||
@ -482,7 +482,7 @@ trait APIMethods121 {
|
||||
updateAccountJSON,
|
||||
successMessage,
|
||||
List(InvalidJsonFormat, UserNotLoggedIn, UnknownError, BankAccountNotFound, "user does not have access to owner view on account"),
|
||||
List(apiTagAccount, apiTagNewStyle)
|
||||
List(apiTagAccount)
|
||||
)
|
||||
|
||||
lazy val updateAccountLabel : OBPEndpoint = {
|
||||
@ -684,7 +684,7 @@ trait APIMethods121 {
|
||||
UnknownError,
|
||||
"user does not have owner access"
|
||||
),
|
||||
List(apiTagView, apiTagAccount, apiTagNewStyle)
|
||||
List(apiTagView, apiTagAccount)
|
||||
)
|
||||
|
||||
lazy val deleteViewForBankAccount: OBPEndpoint = {
|
||||
@ -841,7 +841,7 @@ trait APIMethods121 {
|
||||
"could not save the privilege",
|
||||
"user does not have access to owner view on account"
|
||||
),
|
||||
List(apiTagView, apiTagAccount, apiTagUser, apiTagOwnerRequired, apiTagNewStyle))
|
||||
List(apiTagView, apiTagAccount, apiTagUser, apiTagOwnerRequired))
|
||||
|
||||
lazy val addPermissionForUserForBankAccountForOneView : OBPEndpoint = {
|
||||
//add access for specific user to a specific view
|
||||
@ -1032,7 +1032,7 @@ trait APIMethods121 {
|
||||
emptyObjectJson,
|
||||
otherAccountMetadataJSON,
|
||||
List(UserNotLoggedIn, UnknownError, "the view does not allow metadata access"),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val getOtherAccountMetadata : OBPEndpoint = {
|
||||
//get metadata of one other account
|
||||
@ -1071,7 +1071,7 @@ trait APIMethods121 {
|
||||
"the view does not allow metadata access",
|
||||
"the view does not allow public alias access"
|
||||
),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val getCounterpartyPublicAlias : OBPEndpoint = {
|
||||
//get public alias of other bank account
|
||||
@ -1122,7 +1122,7 @@ trait APIMethods121 {
|
||||
"Alias cannot be added",
|
||||
"public alias added"
|
||||
),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val addCounterpartyPublicAlias : OBPEndpoint = {
|
||||
//add public alias to other bank account
|
||||
@ -1175,7 +1175,7 @@ trait APIMethods121 {
|
||||
"Alias cannot be updated",
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val updateCounterpartyPublicAlias : OBPEndpoint = {
|
||||
//update public alias of other bank account
|
||||
@ -1226,7 +1226,7 @@ trait APIMethods121 {
|
||||
"Alias cannot be deleted",
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val deleteCounterpartyPublicAlias : OBPEndpoint = {
|
||||
//delete public alias of other bank account
|
||||
@ -1274,7 +1274,7 @@ trait APIMethods121 {
|
||||
"the view does not allow private alias access",
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val getOtherAccountPrivateAlias : OBPEndpoint = {
|
||||
//get private alias of other bank account
|
||||
@ -1319,7 +1319,7 @@ trait APIMethods121 {
|
||||
"the view does not allow adding a private alias",
|
||||
"Alias cannot be added",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val addOtherAccountPrivateAlias : OBPEndpoint = {
|
||||
//add private alias to other bank account
|
||||
@ -1371,7 +1371,7 @@ trait APIMethods121 {
|
||||
"the view does not allow updating the private alias",
|
||||
"Alias cannot be updated",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val updateCounterpartyPrivateAlias : OBPEndpoint = {
|
||||
//update private alias of other bank account
|
||||
@ -1422,7 +1422,7 @@ trait APIMethods121 {
|
||||
"the view does not allow deleting the private alias",
|
||||
"Alias cannot be deleted",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val deleteCounterpartyPrivateAlias : OBPEndpoint = {
|
||||
//delete private alias of other bank account
|
||||
@ -1471,7 +1471,7 @@ trait APIMethods121 {
|
||||
"More Info cannot be added",
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val addCounterpartyMoreInfo : OBPEndpoint = {
|
||||
//add more info to other bank account
|
||||
@ -1520,7 +1520,7 @@ trait APIMethods121 {
|
||||
"the view does not allow updating more info",
|
||||
"More Info cannot be updated",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val updateCounterpartyMoreInfo : OBPEndpoint = {
|
||||
//update more info of other bank account
|
||||
@ -1568,7 +1568,7 @@ trait APIMethods121 {
|
||||
"the view does not allow deleting more info",
|
||||
"More Info cannot be deleted",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val deleteCounterpartyMoreInfo : OBPEndpoint = {
|
||||
//delete more info of other bank account
|
||||
@ -1616,7 +1616,7 @@ trait APIMethods121 {
|
||||
"the view does not allow adding a url",
|
||||
"URL cannot be added",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
|
||||
lazy val addCounterpartyUrl : OBPEndpoint = {
|
||||
@ -1666,7 +1666,7 @@ trait APIMethods121 {
|
||||
ViewNotFound,
|
||||
"URL cannot be updated",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val updateCounterpartyUrl : OBPEndpoint = {
|
||||
//update url of other bank account
|
||||
@ -1714,7 +1714,7 @@ trait APIMethods121 {
|
||||
"the view does not allow deleting a url",
|
||||
"URL cannot be deleted",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val deleteCounterpartyUrl : OBPEndpoint = {
|
||||
//delete url of other bank account
|
||||
@ -1762,7 +1762,7 @@ trait APIMethods121 {
|
||||
"the view does not allow adding an image url",
|
||||
"URL cannot be added",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val addCounterpartyImageUrl : OBPEndpoint = {
|
||||
//add image url to other bank account
|
||||
@ -1810,7 +1810,7 @@ trait APIMethods121 {
|
||||
"the view does not allow updating an image url",
|
||||
"URL cannot be updated",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val updateCounterpartyImageUrl : OBPEndpoint = {
|
||||
//update image url of other bank account
|
||||
@ -1852,7 +1852,7 @@ trait APIMethods121 {
|
||||
emptyObjectJson,
|
||||
emptyObjectJson,
|
||||
List(UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle)) // Tag general then specific for consistent sorting
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty)) // Tag general then specific for consistent sorting
|
||||
|
||||
lazy val deleteCounterpartyImageUrl : OBPEndpoint = {
|
||||
//delete image url of other bank account
|
||||
@ -1899,7 +1899,7 @@ trait APIMethods121 {
|
||||
"the view does not allow adding an open corporate url",
|
||||
"URL cannot be added",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val addCounterpartyOpenCorporatesUrl : OBPEndpoint = {
|
||||
//add open corporate url to other bank account
|
||||
@ -1948,7 +1948,7 @@ trait APIMethods121 {
|
||||
"the view does not allow updating an open corporate url",
|
||||
"URL cannot be updated",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val updateCounterpartyOpenCorporatesUrl : OBPEndpoint = {
|
||||
//update open corporate url of other bank account
|
||||
@ -1996,7 +1996,7 @@ trait APIMethods121 {
|
||||
"the view does not allow deleting an open corporate url",
|
||||
"URL cannot be deleted",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val deleteCounterpartyOpenCorporatesUrl : OBPEndpoint = {
|
||||
//delete open corporate url of other bank account
|
||||
@ -2128,7 +2128,7 @@ trait APIMethods121 {
|
||||
"Corporate Location cannot be deleted",
|
||||
"Delete not completed",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val deleteCounterpartyCorporateLocation : OBPEndpoint = {
|
||||
//delete corporate location of other bank account
|
||||
@ -2265,7 +2265,7 @@ trait APIMethods121 {
|
||||
"Physical Location cannot be deleted",
|
||||
"Delete not completed",
|
||||
UnknownError),
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty, apiTagNewStyle))
|
||||
List(apiTagCounterpartyMetaData, apiTagCounterparty))
|
||||
|
||||
lazy val deleteCounterpartyPhysicalLocation : OBPEndpoint = {
|
||||
//delete physical location of other bank account
|
||||
@ -2412,7 +2412,7 @@ trait APIMethods121 {
|
||||
NoViewPermission,
|
||||
ViewNotFound,
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val getTransactionNarrative : OBPEndpoint = {
|
||||
//get narrative
|
||||
@ -2454,7 +2454,7 @@ trait APIMethods121 {
|
||||
NoViewPermission,
|
||||
ViewNotFound,
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val addTransactionNarrative : OBPEndpoint = {
|
||||
//add narrative
|
||||
@ -2492,7 +2492,7 @@ trait APIMethods121 {
|
||||
NoViewPermission,
|
||||
ViewNotFound,
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val updateTransactionNarrative : OBPEndpoint = {
|
||||
//update narrative
|
||||
@ -2530,7 +2530,7 @@ trait APIMethods121 {
|
||||
BankAccountNotFound,
|
||||
NoViewPermission,
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val deleteTransactionNarrative : OBPEndpoint = {
|
||||
//delete narrative
|
||||
@ -2568,7 +2568,7 @@ trait APIMethods121 {
|
||||
NoViewPermission,
|
||||
ViewNotFound,
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val getCommentsForViewOnTransaction : OBPEndpoint = {
|
||||
//get comments
|
||||
@ -2608,7 +2608,7 @@ trait APIMethods121 {
|
||||
NoViewPermission,
|
||||
ViewNotFound,
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val addCommentForViewOnTransaction : OBPEndpoint = {
|
||||
//add comment
|
||||
@ -2651,7 +2651,7 @@ trait APIMethods121 {
|
||||
ViewNotFound,
|
||||
UserNotLoggedIn,
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val deleteCommentForViewOnTransaction : OBPEndpoint = {
|
||||
//delete comment
|
||||
@ -2688,7 +2688,7 @@ trait APIMethods121 {
|
||||
ViewNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val getTagsForViewOnTransaction : OBPEndpoint = {
|
||||
//get tags
|
||||
@ -2728,7 +2728,7 @@ trait APIMethods121 {
|
||||
NoViewPermission,
|
||||
ViewNotFound,
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val addTagForViewOnTransaction : OBPEndpoint = {
|
||||
//add a tag
|
||||
@ -2769,7 +2769,7 @@ trait APIMethods121 {
|
||||
List(NoViewPermission,
|
||||
ViewNotFound,
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val deleteTagForViewOnTransaction : OBPEndpoint = {
|
||||
//delete a tag
|
||||
@ -2807,7 +2807,7 @@ trait APIMethods121 {
|
||||
NoViewPermission,
|
||||
ViewNotFound,
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val getImagesForViewOnTransaction : OBPEndpoint = {
|
||||
//get images
|
||||
@ -2847,7 +2847,7 @@ trait APIMethods121 {
|
||||
ViewNotFound,
|
||||
InvalidUrl,
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle)
|
||||
List(apiTagTransactionMetaData, apiTagTransaction)
|
||||
)
|
||||
|
||||
lazy val addImageForViewOnTransaction : OBPEndpoint = {
|
||||
@ -2893,7 +2893,7 @@ trait APIMethods121 {
|
||||
"Deleting images not permitted for this view",
|
||||
"Deleting images not permitted for the current user",
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val deleteImageForViewOnTransaction : OBPEndpoint = {
|
||||
//delete an image
|
||||
@ -2930,7 +2930,7 @@ trait APIMethods121 {
|
||||
NoViewPermission,
|
||||
ViewNotFound,
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val getWhereTagForViewOnTransaction : OBPEndpoint = {
|
||||
//get where tag
|
||||
@ -2972,7 +2972,7 @@ trait APIMethods121 {
|
||||
NoViewPermission,
|
||||
"Coordinates not possible",
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val addWhereTagForViewOnTransaction : OBPEndpoint = {
|
||||
//add where tag
|
||||
@ -3018,7 +3018,7 @@ trait APIMethods121 {
|
||||
NoViewPermission,
|
||||
"Coordinates not possible",
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val updateWhereTagForViewOnTransaction : OBPEndpoint = {
|
||||
//update where tag
|
||||
@ -3065,7 +3065,7 @@ trait APIMethods121 {
|
||||
"there is no tag to delete",
|
||||
"Delete not completed",
|
||||
UnknownError),
|
||||
List(apiTagTransactionMetaData, apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransactionMetaData, apiTagTransaction))
|
||||
|
||||
lazy val deleteWhereTagForViewOnTransaction : OBPEndpoint = {
|
||||
//delete where tag
|
||||
|
||||
@ -407,7 +407,7 @@ trait APIMethods140 extends MdcLoggable with APIMethods130 with APIMethods121{
|
||||
"user does not have access to owner view",
|
||||
TransactionRequestsNotEnabled,
|
||||
UnknownError),
|
||||
List(apiTagTransactionRequest, apiTagPSD2PIS, apiTagPsd2, apiTagNewStyle))
|
||||
List(apiTagTransactionRequest, apiTagPSD2PIS, apiTagPsd2))
|
||||
|
||||
lazy val getTransactionRequestTypes: OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "accounts" :: AccountId(accountId) :: ViewId(viewId) :: "transaction-request-types" ::
|
||||
@ -639,7 +639,7 @@ trait APIMethods140 extends MdcLoggable with APIMethods130 with APIMethods121{
|
||||
"Could not create customer",
|
||||
"Could not create user_customer_links",
|
||||
UnknownError),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(List(canCreateCustomer, canCreateUserCustomerLink)))
|
||||
|
||||
lazy val addCustomer : OBPEndpoint = {
|
||||
|
||||
@ -263,7 +263,7 @@ trait APIMethods200 {
|
||||
emptyObjectJson,
|
||||
basicAccountsJSON,
|
||||
List(BankNotFound, UnknownError),
|
||||
List(apiTagAccount, apiTagPrivateData, apiTagPublicData, apiTagNewStyle)
|
||||
List(apiTagAccount, apiTagPrivateData, apiTagPublicData)
|
||||
)
|
||||
|
||||
def processAccounts(privateViewsUserCanAccessAtOneBank: List[View], availablePrivateAccounts: List[BankAccount]) = {
|
||||
@ -308,7 +308,7 @@ trait APIMethods200 {
|
||||
emptyObjectJson,
|
||||
coreAccountsJSON,
|
||||
List(UserNotLoggedIn, UnknownError),
|
||||
List(apiTagAccount, apiTagPrivateData, apiTagPsd2, apiTagNewStyle, apiTagNewStyle))
|
||||
List(apiTagAccount, apiTagPrivateData, apiTagPsd2))
|
||||
|
||||
apiRelations += ApiRelation(corePrivateAccountsAtOneBank, createAccount, "new")
|
||||
apiRelations += ApiRelation(corePrivateAccountsAtOneBank, corePrivateAccountsAtOneBank, "self")
|
||||
@ -380,7 +380,7 @@ trait APIMethods200 {
|
||||
emptyObjectJson,
|
||||
basicAccountsJSON,
|
||||
List(UserNotLoggedIn, BankNotFound, UnknownError),
|
||||
List(apiTagAccount, apiTagNewStyle, apiTagPsd2)
|
||||
List(apiTagAccount, apiTagPsd2)
|
||||
)
|
||||
|
||||
lazy val privateAccountsAtOneBank : OBPEndpoint = {
|
||||
@ -418,7 +418,7 @@ trait APIMethods200 {
|
||||
emptyObjectJson,
|
||||
basicAccountsJSON,
|
||||
List(UnknownError),
|
||||
List(apiTagAccountPublic, apiTagAccount, apiTagPublicData, apiTagNewStyle))
|
||||
List(apiTagAccountPublic, apiTagAccount, apiTagPublicData))
|
||||
|
||||
lazy val publicAccountsAtOneBank : OBPEndpoint = {
|
||||
//get public accounts for a single bank
|
||||
@ -449,7 +449,7 @@ trait APIMethods200 {
|
||||
emptyObjectJson,
|
||||
kycDocumentsJSON,
|
||||
List(UserNotLoggedIn, CustomerNotFoundByCustomerId, UnknownError),
|
||||
List(apiTagKyc, apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagKyc, apiTagCustomer),
|
||||
Some(List(canGetAnyKycDocuments))
|
||||
)
|
||||
|
||||
@ -485,7 +485,7 @@ trait APIMethods200 {
|
||||
emptyObjectJson,
|
||||
kycMediasJSON,
|
||||
List(UserNotLoggedIn, CustomerNotFoundByCustomerId, UnknownError),
|
||||
List(apiTagKyc, apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagKyc, apiTagCustomer),
|
||||
Some(List(canGetAnyKycMedia)))
|
||||
|
||||
lazy val getKycMedia : OBPEndpoint = {
|
||||
@ -517,7 +517,7 @@ trait APIMethods200 {
|
||||
emptyObjectJson,
|
||||
kycChecksJSON,
|
||||
List(UserNotLoggedIn, CustomerNotFoundByCustomerId, UnknownError),
|
||||
List(apiTagKyc, apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagKyc, apiTagCustomer),
|
||||
Some(List(canGetAnyKycChecks))
|
||||
)
|
||||
|
||||
@ -549,7 +549,7 @@ trait APIMethods200 {
|
||||
emptyObjectJson,
|
||||
kycStatusesJSON,
|
||||
List(UserNotLoggedIn, CustomerNotFoundByCustomerId, UnknownError),
|
||||
List(apiTagKyc, apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagKyc, apiTagCustomer),
|
||||
Some(List(canGetAnyKycStatuses))
|
||||
)
|
||||
|
||||
@ -616,7 +616,7 @@ trait APIMethods200 {
|
||||
postKycDocumentJSON,
|
||||
kycDocumentJSON,
|
||||
List(UserNotLoggedIn, InvalidJsonFormat, BankNotFound, CustomerNotFoundByCustomerId,"Server error: could not add KycDocument", UnknownError),
|
||||
List(apiTagKyc, apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagKyc, apiTagCustomer),
|
||||
Some(List(canAddKycDocument))
|
||||
)
|
||||
|
||||
@ -667,7 +667,7 @@ trait APIMethods200 {
|
||||
postKycMediaJSON,
|
||||
kycMediaJSON,
|
||||
List(UserNotLoggedIn, InvalidJsonFormat, CustomerNotFoundByCustomerId, ServerAddDataError, UnknownError),
|
||||
List(apiTagKyc, apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagKyc, apiTagCustomer),
|
||||
Some(List(canAddKycMedia))
|
||||
)
|
||||
|
||||
@ -716,7 +716,7 @@ trait APIMethods200 {
|
||||
postKycCheckJSON,
|
||||
kycCheckJSON,
|
||||
List(UserNotLoggedIn, InvalidJsonFormat, BankNotFound, CustomerNotFoundByCustomerId, ServerAddDataError, UnknownError),
|
||||
List(apiTagKyc, apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagKyc, apiTagCustomer),
|
||||
Some(List(canAddKycCheck))
|
||||
)
|
||||
|
||||
@ -766,7 +766,7 @@ trait APIMethods200 {
|
||||
postKycStatusJSON,
|
||||
kycStatusJSON,
|
||||
List(UserNotLoggedIn, InvalidJsonFormat, InvalidBankIdFormat,UnknownError, BankNotFound ,ServerAddDataError ,CustomerNotFoundByCustomerId),
|
||||
List(apiTagKyc, apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagKyc, apiTagCustomer),
|
||||
Some(List(canAddKycStatus))
|
||||
)
|
||||
|
||||
@ -1000,7 +1000,7 @@ trait APIMethods200 {
|
||||
emptyObjectJson,
|
||||
permissionsJSON,
|
||||
List(UserNotLoggedIn, BankNotFound, AccountNotFound ,UnknownError),
|
||||
List(apiTagView, apiTagAccount, apiTagUser, apiTagEntitlement, apiTagNewStyle)
|
||||
List(apiTagView, apiTagAccount, apiTagUser, apiTagEntitlement)
|
||||
)
|
||||
|
||||
lazy val getPermissionsForBankAccount : OBPEndpoint = {
|
||||
@ -1174,7 +1174,7 @@ trait APIMethods200 {
|
||||
emptyObjectJson,
|
||||
transactionTypesJsonV200,
|
||||
List(BankNotFound, UnknownError),
|
||||
List(apiTagBank, apiTagPSD2AIS, apiTagPsd2, apiTagNewStyle)
|
||||
List(apiTagBank, apiTagPSD2AIS, apiTagPsd2)
|
||||
)
|
||||
|
||||
lazy val getTransactionTypes : OBPEndpoint = {
|
||||
@ -1939,7 +1939,7 @@ trait APIMethods200 {
|
||||
EntitlementAlreadyExists,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser, apiTagNewStyle),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser),
|
||||
Some(List(canCreateEntitlementAtOneBank,canCreateEntitlementAtAnyBank)))
|
||||
|
||||
lazy val addEntitlement : OBPEndpoint = {
|
||||
@ -2039,7 +2039,7 @@ trait APIMethods200 {
|
||||
emptyObjectJson,
|
||||
emptyObjectJson,
|
||||
List(UserNotLoggedIn, UserHasMissingRoles, EntitlementNotFound, UnknownError),
|
||||
List(apiTagRole, apiTagUser, apiTagEntitlement, apiTagNewStyle))
|
||||
List(apiTagRole, apiTagUser, apiTagEntitlement))
|
||||
|
||||
|
||||
lazy val deleteEntitlement: OBPEndpoint = {
|
||||
@ -2077,7 +2077,7 @@ trait APIMethods200 {
|
||||
emptyObjectJson,
|
||||
entitlementJSONs,
|
||||
List(UserNotLoggedIn, UnknownError),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagNewStyle))
|
||||
List(apiTagRole, apiTagEntitlement))
|
||||
|
||||
|
||||
lazy val getAllEntitlements: OBPEndpoint = {
|
||||
|
||||
@ -139,7 +139,7 @@ trait APIMethods210 {
|
||||
emptyObjectJson,
|
||||
transactionRequestTypesJSON,
|
||||
List(UserNotLoggedIn, UnknownError),
|
||||
List(apiTagTransactionRequest, apiTagBank, apiTagNewStyle))
|
||||
List(apiTagTransactionRequest, apiTagBank))
|
||||
|
||||
|
||||
lazy val getTransactionRequestTypesSupportedByBank: OBPEndpoint = {
|
||||
@ -740,7 +740,7 @@ trait APIMethods210 {
|
||||
emptyObjectJson,
|
||||
availableRolesJSON,
|
||||
List(UserNotLoggedIn, UnknownError),
|
||||
List(apiTagRole, apiTagNewStyle))
|
||||
List(apiTagRole))
|
||||
|
||||
lazy val getRoles: OBPEndpoint = {
|
||||
case "roles" :: Nil JsonGet _ => {
|
||||
@ -778,7 +778,7 @@ trait APIMethods210 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser, apiTagNewStyle),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser),
|
||||
Some(List(canGetEntitlementsForAnyUserAtOneBank, canGetEntitlementsForAnyUserAtAnyBank)))
|
||||
|
||||
|
||||
@ -1443,7 +1443,7 @@ trait APIMethods210 {
|
||||
CustomerNotFoundByCustomerId,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle)
|
||||
List(apiTagCustomer)
|
||||
)
|
||||
|
||||
lazy val getCustomersForCurrentUserAtBank : OBPEndpoint = {
|
||||
@ -1665,7 +1665,7 @@ trait APIMethods210 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagMetric, apiTagApi, apiTagNewStyle),
|
||||
List(apiTagMetric, apiTagApi),
|
||||
Some(List(canReadMetrics)))
|
||||
|
||||
lazy val getMetrics : OBPEndpoint = {
|
||||
|
||||
@ -90,7 +90,7 @@ trait APIMethods220 {
|
||||
BankAccountNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagView, apiTagAccount, apiTagNewStyle))
|
||||
List(apiTagView, apiTagAccount))
|
||||
|
||||
lazy val getViewsForBankAccount : OBPEndpoint = {
|
||||
//get the available views on an bank account
|
||||
@ -253,7 +253,7 @@ trait APIMethods220 {
|
||||
emptyObjectJson,
|
||||
fXRateJSON,
|
||||
List(InvalidISOCurrencyCode,UserNotLoggedIn,FXCurrencyCodeCombinationsNotSupported, UnknownError),
|
||||
List(apiTagFx, apiTagNewStyle))
|
||||
List(apiTagFx))
|
||||
|
||||
val getCurrentFxRateIsPublic = APIUtil.getPropsAsBoolValue("apiOptions.getCurrentFxRateIsPublic", false)
|
||||
|
||||
@ -303,7 +303,7 @@ trait APIMethods220 {
|
||||
UserNoPermissionAccessView,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCounterparty, apiTagPSD2PIS, apiTagAccount, apiTagPsd2, apiTagNewStyle))
|
||||
List(apiTagCounterparty, apiTagPSD2PIS, apiTagAccount, apiTagPsd2))
|
||||
|
||||
lazy val getExplictCounterpartiesForAccount : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "accounts" :: AccountId(accountId) :: ViewId(viewId) :: "counterparties" :: Nil JsonGet req => {
|
||||
@ -352,7 +352,7 @@ trait APIMethods220 {
|
||||
emptyObjectJson,
|
||||
counterpartyWithMetadataJson,
|
||||
List(UserNotLoggedIn, BankNotFound, UnknownError),
|
||||
List(apiTagCounterparty, apiTagPSD2PIS, apiTagCounterpartyMetaData, apiTagPsd2, apiTagNewStyle)
|
||||
List(apiTagCounterparty, apiTagPSD2PIS, apiTagCounterpartyMetaData, apiTagPsd2)
|
||||
)
|
||||
|
||||
lazy val getExplictCounterpartyById : OBPEndpoint = {
|
||||
@ -391,7 +391,7 @@ trait APIMethods220 {
|
||||
emptyObjectJson,
|
||||
messageDocsJson,
|
||||
List(UnknownError),
|
||||
List(apiTagDocumentation, apiTagApi, apiTagNewStyle)
|
||||
List(apiTagDocumentation, apiTagApi)
|
||||
)
|
||||
|
||||
lazy val getMessageDocs: OBPEndpoint = {
|
||||
@ -746,7 +746,7 @@ trait APIMethods220 {
|
||||
AccountIdAlreadyExists,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagAccount,apiTagOnboarding, apiTagNewStyle),
|
||||
List(apiTagAccount,apiTagOnboarding),
|
||||
Some(List(canCreateAccount))
|
||||
)
|
||||
|
||||
@ -841,7 +841,7 @@ trait APIMethods220 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
apiTagApi :: apiTagNewStyle :: Nil,
|
||||
apiTagApi :: Nil,
|
||||
Some(List(canGetConfig)))
|
||||
|
||||
lazy val config: OBPEndpoint = {
|
||||
@ -899,7 +899,7 @@ trait APIMethods220 {
|
||||
InvalidDateFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagMetric, apiTagApi, apiTagNewStyle),
|
||||
List(apiTagMetric, apiTagApi),
|
||||
Some(List(canGetConnectorMetrics)))
|
||||
|
||||
lazy val getConnectorMetrics : OBPEndpoint = {
|
||||
|
||||
@ -100,7 +100,7 @@ trait APIMethods300 {
|
||||
BankAccountNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagView, apiTagAccount, apiTagNewStyle))
|
||||
List(apiTagView, apiTagAccount))
|
||||
|
||||
lazy val getViewsForBankAccount : OBPEndpoint = {
|
||||
//get the available views on an bank account
|
||||
@ -156,7 +156,7 @@ trait APIMethods300 {
|
||||
BankAccountNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagView, apiTagAccount, apiTagNewStyle))
|
||||
List(apiTagView, apiTagAccount))
|
||||
|
||||
lazy val createViewForBankAccount : OBPEndpoint = {
|
||||
//creates a view on an bank account
|
||||
@ -201,7 +201,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
viewsJsonV300,
|
||||
List(UserNotLoggedIn,BankNotFound, AccountNotFound,UnknownError),
|
||||
List(apiTagView, apiTagAccount, apiTagUser, apiTagNewStyle))
|
||||
List(apiTagView, apiTagAccount, apiTagUser))
|
||||
|
||||
lazy val getPermissionForUserForBankAccount : OBPEndpoint = {
|
||||
//get access for specific user
|
||||
@ -241,7 +241,7 @@ trait APIMethods300 {
|
||||
BankAccountNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagView, apiTagAccount, apiTagNewStyle)
|
||||
List(apiTagView, apiTagAccount)
|
||||
)
|
||||
|
||||
lazy val updateViewForBankAccount : OBPEndpoint = {
|
||||
@ -305,7 +305,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
moderatedCoreAccountJsonV300,
|
||||
List(BankNotFound,AccountNotFound,ViewNotFound, UserNoPermissionAccessView, UnknownError),
|
||||
apiTagAccount :: apiTagNewStyle :: Nil)
|
||||
apiTagAccount :: Nil)
|
||||
lazy val getPrivateAccountById : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "accounts" :: AccountId(accountId) :: ViewId(viewId) :: "account" :: Nil JsonGet req => {
|
||||
cc =>
|
||||
@ -348,7 +348,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
moderatedCoreAccountJsonV300,
|
||||
List(BankNotFound,AccountNotFound,ViewNotFound, UnknownError),
|
||||
apiTagAccountPublic :: apiTagAccount :: apiTagNewStyle :: Nil)
|
||||
apiTagAccountPublic :: apiTagAccount :: Nil)
|
||||
|
||||
lazy val getPublicAccountById : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "public" :: "accounts" :: AccountId(accountId) :: ViewId(viewId) :: "account" :: Nil JsonGet req => {
|
||||
@ -390,7 +390,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
newModeratedCoreAccountJsonV300,
|
||||
List(BankAccountNotFound,UnknownError),
|
||||
apiTagAccount :: apiTagPSD2AIS :: apiTagNewStyle :: apiTagPsd2 :: Nil)
|
||||
apiTagAccount :: apiTagPSD2AIS :: apiTagPsd2 :: Nil)
|
||||
lazy val getCoreAccountById : OBPEndpoint = {
|
||||
//get account by id (assume owner view requested)
|
||||
case "my" :: "banks" :: BankId(bankId) :: "accounts" :: AccountId(accountId) :: "account" :: Nil JsonGet req => {
|
||||
@ -425,7 +425,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
coreAccountsJsonV300,
|
||||
List(UserNotLoggedIn,UnknownError),
|
||||
List(apiTagAccount, apiTagPSD2AIS, apiTagPrivateData, apiTagPsd2, apiTagNewStyle)
|
||||
List(apiTagAccount, apiTagPSD2AIS, apiTagPrivateData, apiTagPsd2)
|
||||
)
|
||||
|
||||
|
||||
@ -482,7 +482,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
moderatedCoreAccountsJsonV300,
|
||||
List(UserNotLoggedIn,AccountFirehoseNotAllowedOnThisInstance,UnknownError),
|
||||
List(apiTagAccount, apiTagAccountFirehose, apiTagFirehoseData, apiTagNewStyle),
|
||||
List(apiTagAccount, apiTagAccountFirehose, apiTagFirehoseData),
|
||||
Some(List(canUseAccountFirehoseAtAnyBank, ApiRole.canUseAccountFirehose))
|
||||
)
|
||||
|
||||
@ -571,7 +571,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
transactionsJsonV300,
|
||||
List(UserNotLoggedIn, AccountFirehoseNotAllowedOnThisInstance, UserHasMissingRoles, UnknownError),
|
||||
List(apiTagTransaction, apiTagAccountFirehose, apiTagTransactionFirehose, apiTagFirehoseData, apiTagNewStyle),
|
||||
List(apiTagTransaction, apiTagAccountFirehose, apiTagTransactionFirehose, apiTagFirehoseData),
|
||||
Some(List(canUseAccountFirehoseAtAnyBank, ApiRole.canUseAccountFirehose))
|
||||
)
|
||||
|
||||
@ -645,7 +645,7 @@ trait APIMethods300 {
|
||||
ViewNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagTransaction, apiTagPSD2AIS, apiTagAccount, apiTagPsd2, apiTagNewStyle)
|
||||
List(apiTagTransaction, apiTagPSD2AIS, apiTagAccount, apiTagPsd2)
|
||||
)
|
||||
|
||||
lazy val getCoreTransactionsForBankAccount : OBPEndpoint = {
|
||||
@ -703,7 +703,7 @@ trait APIMethods300 {
|
||||
ViewNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagTransaction, apiTagAccount, apiTagNewStyle)
|
||||
List(apiTagTransaction, apiTagAccount)
|
||||
)
|
||||
|
||||
lazy val getTransactionsForBankAccount: OBPEndpoint = {
|
||||
@ -772,7 +772,7 @@ trait APIMethods300 {
|
||||
elasticSearchJsonV300,
|
||||
emptyObjectJson, //TODO what is output here?
|
||||
List(UserNotLoggedIn, UserHasMissingRoles, UnknownError),
|
||||
List(apiTagSearchWarehouse, apiTagNewStyle),
|
||||
List(apiTagSearchWarehouse),
|
||||
Some(List(canSearchWarehouse)))
|
||||
val esw = new elasticsearchWarehouse
|
||||
lazy val dataWarehouseSearch: OBPEndpoint = {
|
||||
@ -851,7 +851,7 @@ trait APIMethods300 {
|
||||
elasticSearchJsonV300,
|
||||
emptyObjectJson, //TODO what is output here?
|
||||
List(UserNotLoggedIn, UserHasMissingRoles, UnknownError),
|
||||
List(apiTagSearchWarehouse, apiTagNewStyle),
|
||||
List(apiTagSearchWarehouse),
|
||||
Some(List(canSearchWarehouseStatistics))
|
||||
)
|
||||
lazy val dataWarehouseStatistics: OBPEndpoint = {
|
||||
@ -906,7 +906,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
usersJsonV200,
|
||||
List(UserNotLoggedIn, UserHasMissingRoles, UserNotFoundByEmail, UnknownError),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canGetAnyUser)))
|
||||
|
||||
|
||||
@ -939,7 +939,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
usersJsonV200,
|
||||
List(UserNotLoggedIn, UserHasMissingRoles, UserNotFoundById, UnknownError),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canGetAnyUser)))
|
||||
|
||||
|
||||
@ -976,7 +976,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
usersJsonV200,
|
||||
List(UserNotLoggedIn, UserHasMissingRoles, UserNotFoundByProviderAndUsername, UnknownError),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canGetAnyUser)))
|
||||
|
||||
|
||||
@ -1012,7 +1012,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
adapterInfoJsonV300,
|
||||
List(UserNotLoggedIn, UserHasMissingRoles, UnknownError),
|
||||
List(apiTagApi, apiTagNewStyle),
|
||||
List(apiTagApi),
|
||||
Some(List(canGetAdapterInfoAtOneBank))
|
||||
)
|
||||
|
||||
@ -1211,7 +1211,7 @@ trait APIMethods300 {
|
||||
BranchNotFoundByBranchId,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagBranch, apiTagBank, apiTagNewStyle)
|
||||
List(apiTagBranch, apiTagBank)
|
||||
)
|
||||
lazy val getBranch: OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "branches" :: BranchId(branchId) :: Nil JsonGet _ => {
|
||||
@ -1272,7 +1272,7 @@ trait APIMethods300 {
|
||||
BankNotFound,
|
||||
BranchesNotFoundLicense,
|
||||
UnknownError),
|
||||
List(apiTagBranch, apiTagBank, apiTagNewStyle)
|
||||
List(apiTagBranch, apiTagBank)
|
||||
)
|
||||
|
||||
private[this] val branchCityPredicate = (city: Box[String], branchCity: String) => city.isEmpty || city.openOrThrowException("city should be have value!") == branchCity
|
||||
@ -1384,7 +1384,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
atmJsonV300,
|
||||
List(UserNotLoggedIn, BankNotFound, AtmNotFoundByAtmId, UnknownError),
|
||||
List(apiTagATM, apiTagNewStyle)
|
||||
List(apiTagATM)
|
||||
)
|
||||
lazy val getAtm: OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "atms" :: AtmId(atmId) :: Nil JsonGet req => {
|
||||
@ -1429,7 +1429,7 @@ trait APIMethods300 {
|
||||
BankNotFound,
|
||||
"No ATMs available. License may not be set.",
|
||||
UnknownError),
|
||||
List(apiTagATM, apiTagNewStyle)
|
||||
List(apiTagATM)
|
||||
)
|
||||
lazy val getAtms : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "atms" :: Nil JsonGet req => {
|
||||
@ -1507,7 +1507,7 @@ trait APIMethods300 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canGetAnyUser)))
|
||||
|
||||
lazy val getUsers: OBPEndpoint = {
|
||||
@ -1549,7 +1549,7 @@ trait APIMethods300 {
|
||||
UserCustomerLinksNotFoundForUser,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagUser, apiTagNewStyle)
|
||||
List(apiTagCustomer, apiTagUser)
|
||||
)
|
||||
|
||||
|
||||
@ -1593,7 +1593,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
userJsonV300,
|
||||
List(UserNotLoggedIn, UnknownError),
|
||||
List(apiTagUser, apiTagNewStyle))
|
||||
List(apiTagUser))
|
||||
|
||||
lazy val getCurrentUser: OBPEndpoint = {
|
||||
case "users" :: "current" :: Nil JsonGet _ => {
|
||||
@ -1627,7 +1627,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
coreAccountsJsonV300,
|
||||
List(UserNotLoggedIn, BankNotFound, UnknownError),
|
||||
List(apiTagAccount,apiTagPSD2AIS, apiTagNewStyle, apiTagPsd2)
|
||||
List(apiTagAccount,apiTagPSD2AIS, apiTagPsd2)
|
||||
)
|
||||
|
||||
lazy val privateAccountsAtOneBank : OBPEndpoint = {
|
||||
@ -1666,7 +1666,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
accountsIdsJsonV300,
|
||||
List(UserNotLoggedIn, BankNotFound, UnknownError),
|
||||
List(apiTagAccount, apiTagPSD2AIS, apiTagPsd2, apiTagNewStyle)
|
||||
List(apiTagAccount, apiTagPSD2AIS, apiTagPsd2)
|
||||
)
|
||||
|
||||
lazy val getPrivateAccountIdsbyBankId : OBPEndpoint = {
|
||||
@ -1707,7 +1707,7 @@ trait APIMethods300 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCounterparty, apiTagAccount, apiTagNewStyle))
|
||||
List(apiTagCounterparty, apiTagAccount))
|
||||
|
||||
lazy val getOtherAccountsForBankAccount : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "accounts" :: AccountId(accountId) :: ViewId(viewId) :: "other_accounts" :: Nil JsonGet req => {
|
||||
@ -1743,7 +1743,7 @@ trait APIMethods300 {
|
||||
ViewNotFound,
|
||||
InvalidConnectorResponse,
|
||||
UnknownError),
|
||||
List(apiTagCounterparty, apiTagAccount, apiTagNewStyle))
|
||||
List(apiTagCounterparty, apiTagAccount))
|
||||
|
||||
lazy val getOtherAccountByIdForBankAccount : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "accounts" :: AccountId(accountId) :: ViewId(viewId) :: "other_accounts":: other_account_id :: Nil JsonGet _ => {
|
||||
@ -1796,7 +1796,7 @@ trait APIMethods300 {
|
||||
EntitlementRequestCannotBeAdded,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser, apiTagNewStyle))
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser))
|
||||
|
||||
lazy val addEntitlementRequest : OBPEndpoint = {
|
||||
case "entitlement-requests" :: Nil JsonPost json -> _ => {
|
||||
@ -1847,7 +1847,7 @@ trait APIMethods300 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser, apiTagNewStyle),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser),
|
||||
Some(List(canGetEntitlementRequestsAtAnyBank)))
|
||||
|
||||
lazy val getAllEntitlementRequests : OBPEndpoint = {
|
||||
@ -1886,7 +1886,7 @@ trait APIMethods300 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser, apiTagNewStyle),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser),
|
||||
Some(List(canGetEntitlementRequestsAtAnyBank)))
|
||||
|
||||
lazy val getEntitlementRequests : OBPEndpoint = {
|
||||
@ -1925,7 +1925,7 @@ trait APIMethods300 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser, apiTagNewStyle),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser),
|
||||
None)
|
||||
|
||||
lazy val getEntitlementRequestsForCurrentUser : OBPEndpoint = {
|
||||
@ -1960,7 +1960,7 @@ trait APIMethods300 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser, apiTagNewStyle),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser),
|
||||
Some(List(canDeleteEntitlementRequestsAtAnyBank)))
|
||||
|
||||
lazy val deleteEntitlementRequest : OBPEndpoint = {
|
||||
@ -2000,7 +2000,7 @@ trait APIMethods300 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser, apiTagNewStyle),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagUser),
|
||||
None)
|
||||
|
||||
lazy val getEntitlementsForCurrentUser : OBPEndpoint = {
|
||||
@ -2031,7 +2031,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
glossaryItemsJsonV300,
|
||||
List(UnknownError),
|
||||
apiTagDocumentation :: apiTagNewStyle :: Nil)
|
||||
apiTagDocumentation :: Nil)
|
||||
|
||||
lazy val getApiGlossary : OBPEndpoint = {
|
||||
case "api" :: "glossary" :: Nil JsonGet req => {
|
||||
@ -2073,7 +2073,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
coreAccountsHeldJsonV300,
|
||||
List(UserNotLoggedIn, UnknownError),
|
||||
List(apiTagAccount, apiTagPSD2AIS, apiTagView, apiTagPsd2, apiTagNewStyle)
|
||||
List(apiTagAccount, apiTagPSD2AIS, apiTagView, apiTagPsd2)
|
||||
)
|
||||
|
||||
lazy val getAccountsHeld : OBPEndpoint = {
|
||||
@ -2153,7 +2153,7 @@ trait APIMethods300 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagMetric, apiTagAggregateMetrics, apiTagNewStyle),
|
||||
List(apiTagMetric, apiTagAggregateMetrics),
|
||||
Some(List(canReadAggregateMetrics)))
|
||||
|
||||
lazy val getAggregateMetrics : OBPEndpoint = {
|
||||
@ -2203,7 +2203,7 @@ trait APIMethods300 {
|
||||
EntitlementAlreadyExists,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagScope, apiTagConsumer, apiTagNewStyle),
|
||||
List(apiTagScope, apiTagConsumer),
|
||||
Some(List(canCreateScopeAtOneBank, canCreateScopeAtAnyBank)))
|
||||
|
||||
lazy val addScope : OBPEndpoint = {
|
||||
@ -2274,7 +2274,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
EmptyBody,
|
||||
List(UserNotLoggedIn, EntitlementNotFound, UnknownError),
|
||||
List(apiTagScope, apiTagConsumer, apiTagNewStyle))
|
||||
List(apiTagScope, apiTagConsumer))
|
||||
|
||||
lazy val deleteScope: OBPEndpoint = {
|
||||
case "consumers" :: consumerId :: "scope" :: scopeId :: Nil JsonDelete _ => {
|
||||
@ -2312,7 +2312,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
scopeJsons,
|
||||
List(UserNotLoggedIn, EntitlementNotFound, UnknownError),
|
||||
List(apiTagScope, apiTagConsumer, apiTagNewStyle))
|
||||
List(apiTagScope, apiTagConsumer))
|
||||
|
||||
lazy val getScopes: OBPEndpoint = {
|
||||
case "consumers" :: consumerId :: "scopes" :: Nil JsonGet _ => {
|
||||
@ -2346,7 +2346,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
banksJSON,
|
||||
List(UnknownError),
|
||||
apiTagBank :: apiTagPSD2AIS:: apiTagPsd2 :: apiTagNewStyle :: Nil)
|
||||
apiTagBank :: apiTagPSD2AIS:: apiTagPsd2 :: Nil)
|
||||
|
||||
//The Json Body is totally the same as V121, just use new style endpoint.
|
||||
lazy val getBanks : OBPEndpoint = {
|
||||
@ -2376,7 +2376,7 @@ trait APIMethods300 {
|
||||
EmptyBody,
|
||||
bankJson400,
|
||||
List(UserNotLoggedIn, UnknownError, BankNotFound),
|
||||
apiTagBank :: apiTagPSD2AIS :: apiTagPsd2 :: apiTagNewStyle :: Nil
|
||||
apiTagBank :: apiTagPSD2AIS :: apiTagPsd2 :: Nil
|
||||
)
|
||||
|
||||
lazy val bankById : OBPEndpoint = {
|
||||
|
||||
@ -96,7 +96,7 @@ trait APIMethods310 {
|
||||
InvalidConnectorResponseForGetCheckbookOrdersFuture,
|
||||
UnknownError
|
||||
),
|
||||
apiTagAccount :: apiTagNewStyle :: Nil)
|
||||
apiTagAccount :: Nil)
|
||||
|
||||
lazy val getCheckbookOrders : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "accounts" :: AccountId(accountId) :: ViewId(viewId) :: "checkbook" :: "orders" :: Nil JsonGet req => {
|
||||
@ -137,7 +137,7 @@ trait APIMethods310 {
|
||||
InvalidConnectorResponseForGetStatusOfCreditCardOrderFuture,
|
||||
UnknownError
|
||||
),
|
||||
apiTagCard :: apiTagNewStyle :: Nil)
|
||||
apiTagCard :: Nil)
|
||||
|
||||
lazy val getStatusOfCreditCardOrder : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "accounts" :: AccountId(accountId) :: ViewId(viewId) :: "credit_cards" :: "orders" :: Nil JsonGet req => {
|
||||
@ -220,7 +220,7 @@ trait APIMethods310 {
|
||||
GetTopApisError,
|
||||
UnknownError
|
||||
),
|
||||
apiTagMetric :: apiTagNewStyle :: Nil,
|
||||
apiTagMetric :: Nil,
|
||||
Some(List(canReadMetrics))
|
||||
)
|
||||
|
||||
@ -307,7 +307,7 @@ trait APIMethods310 {
|
||||
GetMetricsTopConsumersError,
|
||||
UnknownError
|
||||
),
|
||||
apiTagMetric :: apiTagNewStyle :: Nil,
|
||||
apiTagMetric :: Nil,
|
||||
Some(List(canReadMetrics))
|
||||
)
|
||||
|
||||
@ -363,7 +363,7 @@ trait APIMethods310 {
|
||||
EmptyBody,
|
||||
customerJSONs,
|
||||
List(UserNotLoggedIn, CustomerFirehoseNotAllowedOnThisInstance, UserHasMissingRoles, UnknownError),
|
||||
List(apiTagCustomer, apiTagFirehoseData, apiTagNewStyle),
|
||||
List(apiTagCustomer, apiTagFirehoseData),
|
||||
Some(List(canUseCustomerFirehoseAtAnyBank)))
|
||||
|
||||
lazy val getFirehoseCustomers : OBPEndpoint = {
|
||||
@ -413,7 +413,7 @@ trait APIMethods310 {
|
||||
EmptyBody,
|
||||
badLoginStatusJson,
|
||||
List(UserNotLoggedIn, UserNotFoundByProviderAndUsername, UserHasMissingRoles, UnknownError),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canReadUserLockedStatus))
|
||||
)
|
||||
|
||||
@ -452,7 +452,7 @@ trait APIMethods310 {
|
||||
EmptyBody,
|
||||
badLoginStatusJson,
|
||||
List(UserNotLoggedIn, UserNotFoundByProviderAndUsername, UserHasMissingRoles, UnknownError),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canUnlockUser)))
|
||||
|
||||
lazy val unlockUser : OBPEndpoint = {
|
||||
@ -506,7 +506,7 @@ trait APIMethods310 {
|
||||
UpdateConsumerError,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagConsumer, apiTagNewStyle),
|
||||
List(apiTagConsumer),
|
||||
Some(List(canSetCallLimits)))
|
||||
|
||||
lazy val callsLimit : OBPEndpoint = {
|
||||
@ -565,7 +565,7 @@ trait APIMethods310 {
|
||||
UpdateConsumerError,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagConsumer, apiTagNewStyle),
|
||||
List(apiTagConsumer),
|
||||
Some(List(canSetCallLimits)))
|
||||
|
||||
|
||||
@ -611,7 +611,7 @@ trait APIMethods310 {
|
||||
InvalidISOCurrencyCode,
|
||||
UnknownError
|
||||
),
|
||||
apiTagAccount :: apiTagPSD2PIIS :: apiTagPsd2 :: apiTagNewStyle :: Nil)
|
||||
apiTagAccount :: apiTagPSD2PIIS :: apiTagPsd2 :: Nil)
|
||||
|
||||
lazy val checkFundsAvailable : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "accounts" :: AccountId(accountId) :: ViewId(viewId) :: "funds-available" :: Nil JsonGet req => {
|
||||
@ -674,7 +674,7 @@ trait APIMethods310 {
|
||||
ConsumerNotFoundByConsumerId,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagConsumer, apiTagNewStyle),
|
||||
List(apiTagConsumer),
|
||||
Some(List(canGetConsumers)))
|
||||
|
||||
|
||||
@ -709,7 +709,7 @@ trait APIMethods310 {
|
||||
UserNotLoggedIn,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagConsumer, apiTagNewStyle)
|
||||
List(apiTagConsumer)
|
||||
)
|
||||
|
||||
|
||||
@ -744,7 +744,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagConsumer, apiTagNewStyle),
|
||||
List(apiTagConsumer),
|
||||
Some(List(canGetConsumers))
|
||||
)
|
||||
|
||||
@ -787,7 +787,7 @@ trait APIMethods310 {
|
||||
accountWebhookPostJson,
|
||||
accountWebhookJson,
|
||||
List(UnknownError),
|
||||
apiTagWebhook :: apiTagBank :: apiTagNewStyle :: Nil,
|
||||
apiTagWebhook :: apiTagBank :: Nil,
|
||||
Some(List(canCreateWebhook))
|
||||
)
|
||||
|
||||
@ -844,7 +844,7 @@ trait APIMethods310 {
|
||||
accountWebhookPutJson,
|
||||
accountWebhookJson,
|
||||
List(UnknownError),
|
||||
apiTagWebhook :: apiTagBank :: apiTagNewStyle :: Nil,
|
||||
apiTagWebhook :: apiTagBank :: Nil,
|
||||
Some(List(canUpdateWebhook))
|
||||
)
|
||||
|
||||
@ -903,7 +903,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
apiTagWebhook :: apiTagBank :: apiTagNewStyle :: Nil,
|
||||
apiTagWebhook :: apiTagBank :: Nil,
|
||||
Some(List(canGetWebhooks))
|
||||
)
|
||||
|
||||
@ -946,7 +946,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
apiTagApi :: apiTagNewStyle :: Nil,
|
||||
apiTagApi :: Nil,
|
||||
Some(List(canGetConfig)))
|
||||
|
||||
lazy val config: OBPEndpoint = {
|
||||
@ -975,7 +975,7 @@ trait APIMethods310 {
|
||||
EmptyBody,
|
||||
adapterInfoJsonV300,
|
||||
List(UserNotLoggedIn,UserHasMissingRoles, UnknownError),
|
||||
List(apiTagApi, apiTagNewStyle),
|
||||
List(apiTagApi),
|
||||
Some(List(canGetAdapterInfo))
|
||||
)
|
||||
|
||||
@ -1011,7 +1011,7 @@ trait APIMethods310 {
|
||||
EmptyBody,
|
||||
transactionJsonV300,
|
||||
List(UserNotLoggedIn, BankAccountNotFound ,ViewNotFound, UserNoPermissionAccessView, UnknownError),
|
||||
List(apiTagTransaction, apiTagNewStyle))
|
||||
List(apiTagTransaction))
|
||||
|
||||
lazy val getTransactionByIdForBankAccount : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "accounts" :: AccountId(accountId) :: ViewId(viewId) :: "transactions" :: TransactionId(transactionId) :: "transaction" :: Nil JsonGet _ => {
|
||||
@ -1076,7 +1076,7 @@ trait APIMethods310 {
|
||||
GetTransactionRequestsException,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagTransactionRequest, apiTagPSD2PIS, apiTagNewStyle))
|
||||
List(apiTagTransactionRequest, apiTagPSD2PIS))
|
||||
|
||||
lazy val getTransactionRequests: OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "accounts" :: AccountId(accountId) :: ViewId(viewId) :: "transaction-requests" :: Nil JsonGet _ => {
|
||||
@ -1127,7 +1127,7 @@ trait APIMethods310 {
|
||||
CreateConsumerError,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagPerson, apiTagNewStyle),
|
||||
List(apiTagCustomer, apiTagPerson),
|
||||
Some(List(canCreateCustomer,canCreateCustomerAtAnyBank))
|
||||
)
|
||||
lazy val createCustomer : OBPEndpoint = {
|
||||
@ -1194,7 +1194,7 @@ trait APIMethods310 {
|
||||
EmptyBody,
|
||||
rateLimitingInfoV310,
|
||||
List(UnknownError),
|
||||
List(apiTagApi, apiTagNewStyle))
|
||||
List(apiTagApi))
|
||||
|
||||
|
||||
lazy val getRateLimitingInfo: OBPEndpoint = {
|
||||
@ -1240,7 +1240,7 @@ trait APIMethods310 {
|
||||
UserCustomerLinksNotFoundForUser,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(List(canGetCustomer)))
|
||||
|
||||
lazy val getCustomerByCustomerId : OBPEndpoint = {
|
||||
@ -1282,7 +1282,7 @@ trait APIMethods310 {
|
||||
UserCustomerLinksNotFoundForUser,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagKyc ,apiTagNewStyle),
|
||||
List(apiTagCustomer, apiTagKyc),
|
||||
Some(List(canGetCustomer))
|
||||
)
|
||||
|
||||
@ -1327,7 +1327,7 @@ trait APIMethods310 {
|
||||
CreateUserAuthContextError,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canCreateUserAuthContext)))
|
||||
|
||||
lazy val createUserAuthContext : OBPEndpoint = {
|
||||
@ -1368,7 +1368,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(canGetUserAuthContext :: Nil)
|
||||
)
|
||||
|
||||
@ -1407,7 +1407,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canDeleteUserAuthContext)))
|
||||
|
||||
lazy val deleteUserAuthContexts : OBPEndpoint = {
|
||||
@ -1445,7 +1445,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canDeleteUserAuthContext)))
|
||||
|
||||
lazy val deleteUserAuthContextById : OBPEndpoint = {
|
||||
@ -1483,7 +1483,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagKyc, apiTagNewStyle),
|
||||
List(apiTagCustomer, apiTagKyc),
|
||||
Some(List(canCreateTaxResidence)))
|
||||
|
||||
lazy val createTaxResidence : OBPEndpoint = {
|
||||
@ -1526,7 +1526,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagKyc, apiTagNewStyle))
|
||||
List(apiTagCustomer, apiTagKyc))
|
||||
|
||||
lazy val getTaxResidence : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "customers" :: customerId :: "tax-residences" :: Nil JsonGet _ => {
|
||||
@ -1564,7 +1564,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagKyc, apiTagNewStyle))
|
||||
List(apiTagCustomer, apiTagKyc))
|
||||
|
||||
lazy val deleteTaxResidence : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "customers" :: customerId :: "tax_residencies" :: taxResidenceId :: Nil JsonDelete _ => {
|
||||
@ -1601,7 +1601,7 @@ trait APIMethods310 {
|
||||
EmptyBody,
|
||||
entitlementJSONs,
|
||||
List(UserNotLoggedIn, UserHasMissingRoles, UnknownError),
|
||||
List(apiTagRole, apiTagEntitlement, apiTagNewStyle))
|
||||
List(apiTagRole, apiTagEntitlement))
|
||||
|
||||
|
||||
lazy val getAllEntitlements: OBPEndpoint = {
|
||||
@ -1643,7 +1643,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(List(canCreateCustomerAddress)))
|
||||
|
||||
lazy val createCustomerAddress : OBPEndpoint = {
|
||||
@ -1700,7 +1700,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle))
|
||||
List(apiTagCustomer))
|
||||
|
||||
lazy val updateCustomerAddress : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "customers" :: customerId :: "addresses" :: customerAddressId :: Nil JsonPut json -> _ => {
|
||||
@ -1754,7 +1754,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagKyc, apiTagNewStyle),
|
||||
List(apiTagCustomer, apiTagKyc),
|
||||
Some(List(canGetCustomerAddress)))
|
||||
|
||||
lazy val getCustomerAddresses : OBPEndpoint = {
|
||||
@ -1793,7 +1793,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagKyc, apiTagNewStyle),
|
||||
List(apiTagCustomer, apiTagKyc),
|
||||
Some(List(canDeleteCustomerAddress)))
|
||||
|
||||
lazy val deleteCustomerAddress : OBPEndpoint = {
|
||||
@ -1835,7 +1835,7 @@ trait APIMethods310 {
|
||||
List(
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagApi, apiTagNewStyle))
|
||||
List(apiTagApi))
|
||||
|
||||
lazy val getObpConnectorLoopback : OBPEndpoint = {
|
||||
case "connector" :: "loopback" :: Nil JsonGet _ => {
|
||||
@ -1876,7 +1876,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canRefreshUser))
|
||||
)
|
||||
|
||||
@ -1945,7 +1945,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagProduct, apiTagNewStyle),
|
||||
List(apiTagProduct),
|
||||
Some(List(canCreateProductAttribute))
|
||||
)
|
||||
|
||||
@ -2004,7 +2004,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagProduct, apiTagNewStyle),
|
||||
List(apiTagProduct),
|
||||
Some(List(canGetProductAttribute))
|
||||
)
|
||||
|
||||
@ -2046,7 +2046,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagProduct, apiTagNewStyle),
|
||||
List(apiTagProduct),
|
||||
Some(List(canUpdateProductAttribute))
|
||||
)
|
||||
|
||||
@ -2106,7 +2106,7 @@ trait APIMethods310 {
|
||||
BankNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagProduct, apiTagNewStyle),
|
||||
List(apiTagProduct),
|
||||
Some(List(canUpdateProductAttribute)))
|
||||
|
||||
lazy val deleteProductAttribute : OBPEndpoint = {
|
||||
@ -2141,7 +2141,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagAccountApplication, apiTagAccount, apiTagNewStyle))
|
||||
List(apiTagAccountApplication, apiTagAccount))
|
||||
|
||||
lazy val createAccountApplication : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "account-applications" :: Nil JsonPost json -> _=> {
|
||||
@ -2203,7 +2203,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagAccountApplication, apiTagAccount, apiTagNewStyle))
|
||||
List(apiTagAccountApplication, apiTagAccount))
|
||||
|
||||
lazy val getAccountApplications : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) ::"account-applications" :: Nil JsonGet _ => {
|
||||
@ -2246,7 +2246,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagAccountApplication, apiTagAccount, apiTagNewStyle))
|
||||
List(apiTagAccountApplication, apiTagAccount))
|
||||
|
||||
lazy val getAccountApplication : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) ::"account-applications":: accountApplicationId :: Nil JsonGet _ => {
|
||||
@ -2292,7 +2292,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagAccountApplication, apiTagAccount, apiTagNewStyle)
|
||||
List(apiTagAccountApplication, apiTagAccount)
|
||||
)
|
||||
|
||||
lazy val updateAccountApplicationStatus : OBPEndpoint = {
|
||||
@ -2383,7 +2383,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagProduct, apiTagNewStyle),
|
||||
List(apiTagProduct),
|
||||
Some(List(canCreateProduct, canCreateProductAtAnyBank))
|
||||
)
|
||||
|
||||
@ -2459,7 +2459,7 @@ trait APIMethods310 {
|
||||
ProductNotFoundByProductCode,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagProduct, apiTagNewStyle)
|
||||
List(apiTagProduct)
|
||||
)
|
||||
|
||||
lazy val getProduct: OBPEndpoint = {
|
||||
@ -2515,7 +2515,7 @@ trait APIMethods310 {
|
||||
ProductNotFoundByProductCode,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagProduct, apiTagNewStyle)
|
||||
List(apiTagProduct)
|
||||
)
|
||||
|
||||
lazy val getProductTree: OBPEndpoint = {
|
||||
@ -2577,7 +2577,7 @@ trait APIMethods310 {
|
||||
ProductNotFoundByProductCode,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagProduct, apiTagNewStyle)
|
||||
List(apiTagProduct)
|
||||
)
|
||||
|
||||
lazy val getProducts : OBPEndpoint = {
|
||||
@ -2650,7 +2650,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagAccount, apiTagNewStyle),
|
||||
List(apiTagAccount),
|
||||
Some(List(canCreateAccountAttributeAtOneBank))
|
||||
)
|
||||
|
||||
@ -2726,7 +2726,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagAccount, apiTagNewStyle),
|
||||
List(apiTagAccount),
|
||||
Some(List(canUpdateAccountAttribute))
|
||||
)
|
||||
|
||||
@ -2810,7 +2810,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagProductCollection, apiTagProduct, apiTagNewStyle),
|
||||
List(apiTagProductCollection, apiTagProduct),
|
||||
Some(List(canMaintainProductCollection))
|
||||
)
|
||||
|
||||
@ -2870,7 +2870,7 @@ trait APIMethods310 {
|
||||
BankNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagProductCollection, apiTagProduct, apiTagNewStyle)
|
||||
List(apiTagProductCollection, apiTagProduct)
|
||||
)
|
||||
|
||||
lazy val getProductCollection : OBPEndpoint = {
|
||||
@ -2912,7 +2912,7 @@ trait APIMethods310 {
|
||||
InsufficientAuthorisationToDeleteBranch,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagBranch, apiTagNewStyle),
|
||||
List(apiTagBranch),
|
||||
Some(List(canDeleteBranch,canDeleteBranchAtAnyBank))
|
||||
)
|
||||
|
||||
@ -2960,7 +2960,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagMeeting, apiTagCustomer, apiTagExperimental, apiTagNewStyle))
|
||||
List(apiTagMeeting, apiTagCustomer, apiTagExperimental))
|
||||
|
||||
lazy val createMeeting: OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "meetings" :: Nil JsonPost json -> _ => {
|
||||
@ -3036,7 +3036,7 @@ trait APIMethods310 {
|
||||
UserNotLoggedIn,
|
||||
BankNotFound,
|
||||
UnknownError),
|
||||
List(apiTagMeeting, apiTagCustomer, apiTagExperimental, apiTagNewStyle))
|
||||
List(apiTagMeeting, apiTagCustomer, apiTagExperimental))
|
||||
|
||||
lazy val getMeetings: OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "meetings" :: Nil JsonGet _ => {
|
||||
@ -3076,7 +3076,7 @@ trait APIMethods310 {
|
||||
MeetingNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagMeeting, apiTagCustomer, apiTagExperimental, apiTagNewStyle))
|
||||
List(apiTagMeeting, apiTagCustomer, apiTagExperimental))
|
||||
|
||||
lazy val getMeeting: OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "meetings" :: meetingId :: Nil JsonGet _ => {
|
||||
@ -3108,7 +3108,7 @@ trait APIMethods310 {
|
||||
List(
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagApi, apiTagPSD2AIS, apiTagPsd2, apiTagNewStyle))
|
||||
List(apiTagApi, apiTagPSD2AIS, apiTagPsd2))
|
||||
|
||||
lazy val getServerJWK: OBPEndpoint = {
|
||||
case "certs" :: Nil JsonGet _ => {
|
||||
@ -3143,7 +3143,7 @@ trait APIMethods310 {
|
||||
EmptyBody,
|
||||
messageDocsJson,
|
||||
List(UnknownError),
|
||||
List(apiTagDocumentation, apiTagApi, apiTagNewStyle)
|
||||
List(apiTagDocumentation, apiTagApi)
|
||||
)
|
||||
|
||||
lazy val getMessageDocsSwagger: OBPEndpoint = {
|
||||
@ -3298,7 +3298,7 @@ trait APIMethods310 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 :: apiTagNewStyle :: Nil)
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 :: Nil)
|
||||
|
||||
resourceDocs += ResourceDoc(
|
||||
createConsentSms,
|
||||
@ -3378,7 +3378,7 @@ trait APIMethods310 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 ::apiTagNewStyle :: Nil)
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 :: Nil)
|
||||
|
||||
lazy val createConsentEmail = createConsent
|
||||
lazy val createConsentSms = createConsent
|
||||
@ -3526,7 +3526,7 @@ trait APIMethods310 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 :: apiTagNewStyle :: Nil)
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 :: Nil)
|
||||
|
||||
lazy val answerConsentChallenge : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "consents" :: consentId :: "challenge" :: Nil JsonPost json -> _ => {
|
||||
@ -3567,7 +3567,7 @@ trait APIMethods310 {
|
||||
BankNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2, apiTagNewStyle))
|
||||
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2))
|
||||
|
||||
lazy val getConsents: OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "my" :: "consents" :: Nil JsonGet _ => {
|
||||
@ -3612,7 +3612,7 @@ trait APIMethods310 {
|
||||
BankNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2, apiTagNewStyle))
|
||||
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2))
|
||||
|
||||
lazy val revokeConsent: OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "my" :: "consents" :: consentId :: "revoke" :: Nil JsonGet _ => {
|
||||
@ -3658,7 +3658,7 @@ trait APIMethods310 {
|
||||
CreateUserAuthContextError,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
None
|
||||
)
|
||||
|
||||
@ -3705,7 +3705,7 @@ trait APIMethods310 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
apiTagUser :: apiTagNewStyle :: Nil)
|
||||
apiTagUser :: Nil)
|
||||
|
||||
lazy val answerUserAuthContextUpdateChallenge : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "users" :: "current" ::"auth-context-updates" :: authContextUpdateId :: "challenge" :: Nil JsonPost json -> _ => {
|
||||
@ -3768,7 +3768,7 @@ trait APIMethods310 {
|
||||
BankNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagSystemView, apiTagNewStyle),
|
||||
List(apiTagSystemView),
|
||||
Some(List(canGetSystemView))
|
||||
)
|
||||
|
||||
@ -3816,7 +3816,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagSystemView, apiTagNewStyle),
|
||||
List(apiTagSystemView),
|
||||
Some(List(canCreateSystemView))
|
||||
)
|
||||
|
||||
@ -3861,7 +3861,7 @@ trait APIMethods310 {
|
||||
UnknownError,
|
||||
"user does not have owner access"
|
||||
),
|
||||
List(apiTagSystemView, apiTagNewStyle),
|
||||
List(apiTagSystemView),
|
||||
Some(List(canDeleteSystemView))
|
||||
)
|
||||
|
||||
@ -3902,7 +3902,7 @@ trait APIMethods310 {
|
||||
BankAccountNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagSystemView, apiTagNewStyle),
|
||||
List(apiTagSystemView),
|
||||
Some(List(canUpdateSystemView))
|
||||
)
|
||||
|
||||
@ -3945,7 +3945,7 @@ trait APIMethods310 {
|
||||
List(
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagApi, apiTagNewStyle))
|
||||
List(apiTagApi))
|
||||
|
||||
lazy val getOAuth2ServerJWKsURIs: OBPEndpoint = {
|
||||
case "jwks-uris" :: Nil JsonGet _ => {
|
||||
@ -3988,7 +3988,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagMethodRouting, apiTagApi, apiTagNewStyle),
|
||||
List(apiTagMethodRouting, apiTagApi),
|
||||
Some(List(canGetMethodRoutings))
|
||||
)
|
||||
|
||||
@ -4093,7 +4093,7 @@ trait APIMethods310 {
|
||||
InvalidConnectorMethodName,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagMethodRouting, apiTagApi, apiTagNewStyle),
|
||||
List(apiTagMethodRouting, apiTagApi),
|
||||
Some(List(canCreateMethodRouting)))
|
||||
|
||||
lazy val createMethodRouting : OBPEndpoint = {
|
||||
@ -4196,7 +4196,7 @@ trait APIMethods310 {
|
||||
InvalidConnectorMethodName,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagMethodRouting, apiTagApi, apiTagNewStyle),
|
||||
List(apiTagMethodRouting, apiTagApi),
|
||||
Some(List(canUpdateMethodRouting)))
|
||||
|
||||
lazy val updateMethodRouting : OBPEndpoint = {
|
||||
@ -4271,7 +4271,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagMethodRouting, apiTagApi, apiTagNewStyle),
|
||||
List(apiTagMethodRouting, apiTagApi),
|
||||
Some(List(canDeleteMethodRouting)))
|
||||
|
||||
lazy val deleteMethodRouting : OBPEndpoint = {
|
||||
@ -4310,7 +4310,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(canUpdateCustomerEmail :: Nil)
|
||||
)
|
||||
|
||||
@ -4359,7 +4359,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(canUpdateCustomerNumber :: Nil)
|
||||
)
|
||||
|
||||
@ -4414,7 +4414,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(canUpdateCustomerMobilePhoneNumber :: Nil)
|
||||
)
|
||||
|
||||
@ -4463,7 +4463,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(canUpdateCustomerIdentity :: Nil)
|
||||
)
|
||||
lazy val updateCustomerIdentity : OBPEndpoint = {
|
||||
@ -4520,7 +4520,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(canUpdateCustomerCreditLimit :: Nil)
|
||||
)
|
||||
|
||||
@ -4569,7 +4569,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(canUpdateCustomerCreditRatingAndSource :: canUpdateCustomerCreditRatingAndSourceAtAnyBank :: Nil)
|
||||
)
|
||||
|
||||
@ -4612,7 +4612,7 @@ trait APIMethods310 {
|
||||
updateAccountRequestJsonV310,
|
||||
updateAccountResponseJsonV310,
|
||||
List(InvalidJsonFormat, UserNotLoggedIn, UnknownError, BankAccountNotFound),
|
||||
List(apiTagAccount, apiTagNewStyle),
|
||||
List(apiTagAccount),
|
||||
Some(List(canUpdateAccount))
|
||||
)
|
||||
|
||||
@ -4679,7 +4679,7 @@ trait APIMethods310 {
|
||||
AllowedValuesAre,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCard, apiTagNewStyle),
|
||||
List(apiTagCard),
|
||||
Some(List(canCreateCardsForBank)))
|
||||
lazy val addCardForBank: OBPEndpoint = {
|
||||
case "management" :: "banks" :: BankId(bankId) :: "cards" :: Nil JsonPost json -> _ => {
|
||||
@ -4774,7 +4774,7 @@ trait APIMethods310 {
|
||||
AllowedValuesAre,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCard, apiTagNewStyle),
|
||||
List(apiTagCard),
|
||||
Some(List(canUpdateCardsForBank)))
|
||||
lazy val updatedCardForBank: OBPEndpoint = {
|
||||
case "management" :: "banks" :: BankId(bankId) :: "cards" :: cardId :: Nil JsonPut json -> _ => {
|
||||
@ -4855,7 +4855,7 @@ trait APIMethods310 {
|
||||
EmptyBody,
|
||||
physicalCardsJsonV310,
|
||||
List(UserNotLoggedIn,BankNotFound, UnknownError),
|
||||
List(apiTagCard, apiTagNewStyle))
|
||||
List(apiTagCard))
|
||||
lazy val getCardsForBank : OBPEndpoint = {
|
||||
case "management" :: "banks" :: BankId(bankId) :: "cards" :: Nil JsonGet _ => {
|
||||
cc => {
|
||||
@ -4889,7 +4889,7 @@ trait APIMethods310 {
|
||||
EmptyBody,
|
||||
physicalCardWithAttributesJsonV310,
|
||||
List(UserNotLoggedIn,BankNotFound, UnknownError),
|
||||
List(apiTagCard, apiTagNewStyle),
|
||||
List(apiTagCard),
|
||||
Some(List(canGetCardsForBank)))
|
||||
lazy val getCardForBank : OBPEndpoint = {
|
||||
case "management" :: "banks" :: BankId(bankId) :: "cards" :: cardId :: Nil JsonGet _ => {
|
||||
@ -4928,7 +4928,7 @@ trait APIMethods310 {
|
||||
AllowedValuesAre,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCard, apiTagNewStyle),
|
||||
List(apiTagCard),
|
||||
Some(List(canCreateCardsForBank)))
|
||||
lazy val deleteCardForBank: OBPEndpoint = {
|
||||
case "management"::"banks" :: BankId(bankId) :: "cards" :: cardId :: Nil JsonDelete _ => {
|
||||
@ -4979,7 +4979,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCard, apiTagNewStyle))
|
||||
List(apiTagCard))
|
||||
|
||||
lazy val createCardAttribute : OBPEndpoint = {
|
||||
case "management"::"banks" :: bankId :: "cards" :: cardId :: "attribute" :: Nil JsonPost json -> _=> {
|
||||
@ -5050,7 +5050,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCard, apiTagNewStyle))
|
||||
List(apiTagCard))
|
||||
|
||||
lazy val updateCardAttribute : OBPEndpoint = {
|
||||
case "management"::"banks" :: bankId :: "cards" :: cardId :: "attributes" :: cardAttributeId :: Nil JsonPut json -> _=> {
|
||||
@ -5109,7 +5109,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(canUpdateCustomerIdentity :: Nil)
|
||||
)
|
||||
lazy val updateCustomerBranch : OBPEndpoint = {
|
||||
@ -5165,7 +5165,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(canUpdateCustomerIdentity :: Nil)
|
||||
)
|
||||
lazy val updateCustomerData : OBPEndpoint = {
|
||||
@ -5238,7 +5238,7 @@ trait APIMethods310 {
|
||||
AccountIdAlreadyExists,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagAccount,apiTagOnboarding, apiTagNewStyle),
|
||||
List(apiTagAccount,apiTagOnboarding),
|
||||
Some(List(canCreateAccount))
|
||||
)
|
||||
|
||||
@ -5355,7 +5355,7 @@ trait APIMethods310 {
|
||||
EmptyBody,
|
||||
moderatedAccountJSON310,
|
||||
List(BankNotFound,AccountNotFound,ViewNotFound, UserNoPermissionAccessView, UnknownError),
|
||||
apiTagAccount :: apiTagNewStyle :: Nil)
|
||||
apiTagAccount :: Nil)
|
||||
lazy val getPrivateAccountByIdFull : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "accounts" :: AccountId(accountId) :: ViewId(viewId) :: "account" :: Nil JsonGet req => {
|
||||
cc =>
|
||||
@ -5464,7 +5464,7 @@ trait APIMethods310 {
|
||||
InvalidTransactionRequestCurrency,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagTransactionRequest, apiTagNewStyle),
|
||||
List(apiTagTransactionRequest),
|
||||
Some(List(canCreateHistoricalTransaction))
|
||||
)
|
||||
|
||||
@ -5604,7 +5604,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagWebUiProps, apiTagNewStyle),
|
||||
List(apiTagWebUiProps),
|
||||
Some(List(canGetWebUiProps))
|
||||
)
|
||||
|
||||
@ -5696,7 +5696,7 @@ trait APIMethods310 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagWebUiProps, apiTagNewStyle),
|
||||
List(apiTagWebUiProps),
|
||||
Some(List(canCreateWebUiProps)))
|
||||
|
||||
lazy val createWebUiProps : OBPEndpoint = {
|
||||
@ -5741,7 +5741,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagWebUiProps, apiTagNewStyle),
|
||||
List(apiTagWebUiProps),
|
||||
Some(List(canDeleteWebUiProps)))
|
||||
|
||||
lazy val deleteWebUiProps : OBPEndpoint = {
|
||||
@ -5770,7 +5770,7 @@ trait APIMethods310 {
|
||||
EmptyBody,
|
||||
accountBalancesV310Json,
|
||||
List(UnknownError),
|
||||
apiTagAccount :: apiTagPSD2AIS :: apiTagPsd2 :: apiTagNewStyle :: Nil
|
||||
apiTagAccount :: apiTagPSD2AIS :: apiTagPsd2 :: Nil
|
||||
)
|
||||
|
||||
lazy val getBankAccountsBalances : OBPEndpoint = {
|
||||
@ -5806,7 +5806,7 @@ trait APIMethods310 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagConsumer, apiTagNewStyle),
|
||||
List(apiTagConsumer),
|
||||
Some(List(canEnableConsumers,canDisableConsumers)))
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -97,7 +97,7 @@ trait APIMethods500 {
|
||||
EmptyBody,
|
||||
bankJson500,
|
||||
List(UnknownError, BankNotFound),
|
||||
apiTagBank :: apiTagPSD2AIS :: apiTagPsd2 :: apiTagNewStyle :: Nil
|
||||
apiTagBank :: apiTagPSD2AIS :: apiTagPsd2 :: Nil
|
||||
)
|
||||
|
||||
lazy val getBank : OBPEndpoint = {
|
||||
@ -138,7 +138,7 @@ trait APIMethods500 {
|
||||
InsufficientAuthorisationToCreateBank,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagBank, apiTagNewStyle),
|
||||
List(apiTagBank),
|
||||
Some(List(canCreateBank))
|
||||
)
|
||||
|
||||
@ -218,7 +218,7 @@ trait APIMethods500 {
|
||||
updateBankError,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagBank, apiTagNewStyle),
|
||||
List(apiTagBank),
|
||||
Some(List(canCreateBank))
|
||||
)
|
||||
|
||||
@ -299,7 +299,7 @@ trait APIMethods500 {
|
||||
AccountIdAlreadyExists,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagAccount,apiTagOnboarding, apiTagNewStyle),
|
||||
List(apiTagAccount,apiTagOnboarding),
|
||||
Some(List(canCreateAccount))
|
||||
)
|
||||
|
||||
@ -419,7 +419,7 @@ trait APIMethods500 {
|
||||
CreateUserAuthContextError,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canCreateUserAuthContext)))
|
||||
lazy val createUserAuthContext : OBPEndpoint = {
|
||||
case "users" :: userId ::"auth-context" :: Nil JsonPost json -> _ => {
|
||||
@ -460,7 +460,7 @@ trait APIMethods500 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(canGetUserAuthContext :: Nil)
|
||||
)
|
||||
lazy val getUserAuthContexts : OBPEndpoint = {
|
||||
@ -500,7 +500,7 @@ trait APIMethods500 {
|
||||
CreateUserAuthContextError,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
None
|
||||
)
|
||||
|
||||
@ -546,7 +546,7 @@ trait APIMethods500 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
apiTagUser :: apiTagNewStyle :: Nil)
|
||||
apiTagUser :: Nil)
|
||||
|
||||
lazy val answerUserAuthContextUpdateChallenge : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "users" :: "current" ::"auth-context-updates" :: authContextUpdateId :: "challenge" :: Nil JsonPost json -> _ => {
|
||||
@ -616,7 +616,7 @@ trait APIMethods500 {
|
||||
ConsentMaxTTL,
|
||||
UnknownError
|
||||
),
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 :: apiTagNewStyle :: Nil
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 :: Nil
|
||||
)
|
||||
|
||||
lazy val createConsentRequest : OBPEndpoint = {
|
||||
@ -670,7 +670,7 @@ trait APIMethods500 {
|
||||
ConsentRequestNotFound,
|
||||
UnknownError
|
||||
),
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 :: apiTagNewStyle :: Nil
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 :: Nil
|
||||
)
|
||||
|
||||
lazy val getConsentRequest : OBPEndpoint = {
|
||||
@ -716,7 +716,7 @@ trait APIMethods500 {
|
||||
$UserNotLoggedIn,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2, apiTagNewStyle))
|
||||
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2))
|
||||
lazy val getConsentByConsentRequestId: OBPEndpoint = {
|
||||
case "consumer" :: "consent-requests" :: consentRequestId :: "consents" :: Nil JsonGet _ => {
|
||||
cc =>
|
||||
@ -766,7 +766,7 @@ trait APIMethods500 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 :: apiTagNewStyle :: Nil)
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 :: Nil)
|
||||
staticResourceDocs += ResourceDoc(
|
||||
createConsentByConsentRequestIdSms,
|
||||
implementedInApiVersion,
|
||||
@ -797,7 +797,7 @@ trait APIMethods500 {
|
||||
InvalidConnectorResponse,
|
||||
UnknownError
|
||||
),
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 ::apiTagNewStyle :: Nil)
|
||||
apiTagConsent :: apiTagPSD2AIS :: apiTagPsd2 :: Nil)
|
||||
|
||||
lazy val createConsentByConsentRequestIdEmail = createConsentByConsentRequestId
|
||||
lazy val createConsentByConsentRequestIdSms = createConsentByConsentRequestId
|
||||
@ -964,7 +964,7 @@ trait APIMethods500 {
|
||||
$BankNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagATM, apiTagNewStyle)
|
||||
List(apiTagATM)
|
||||
)
|
||||
lazy val headAtms : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "atms" :: Nil JsonHead _ => {
|
||||
@ -1009,7 +1009,7 @@ trait APIMethods500 {
|
||||
CreateConsumerError,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagPerson, apiTagNewStyle),
|
||||
List(apiTagCustomer, apiTagPerson),
|
||||
Some(List(canCreateCustomer,canCreateCustomerAtAnyBank))
|
||||
)
|
||||
lazy val createCustomer : OBPEndpoint = {
|
||||
@ -1080,7 +1080,7 @@ trait APIMethods500 {
|
||||
UserCustomerLinksNotFoundForUser,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagKyc ,apiTagNewStyle),
|
||||
List(apiTagCustomer, apiTagKyc),
|
||||
Some(List(canGetCustomerOverview))
|
||||
)
|
||||
|
||||
@ -1129,7 +1129,7 @@ trait APIMethods500 {
|
||||
UserCustomerLinksNotFoundForUser,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagKyc ,apiTagNewStyle),
|
||||
List(apiTagCustomer, apiTagKyc),
|
||||
Some(List(canGetCustomerOverviewFlat))
|
||||
)
|
||||
|
||||
@ -1212,7 +1212,7 @@ trait APIMethods500 {
|
||||
UserCustomerLinksNotFoundForUser,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle)
|
||||
List(apiTagCustomer)
|
||||
)
|
||||
|
||||
lazy val getMyCustomersAtBank : OBPEndpoint = {
|
||||
@ -1255,7 +1255,7 @@ trait APIMethods500 {
|
||||
UserCustomerLinksNotFoundForUser,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagUser, apiTagNewStyle),
|
||||
List(apiTagCustomer, apiTagUser),
|
||||
Some(List(canGetCustomers))
|
||||
)
|
||||
|
||||
@ -1290,7 +1290,7 @@ trait APIMethods500 {
|
||||
UserCustomerLinksNotFoundForUser,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagUser, apiTagNewStyle),
|
||||
List(apiTagCustomer, apiTagUser),
|
||||
Some(List(canGetCustomersMinimal))
|
||||
)
|
||||
lazy val getCustomersMinimalAtOneBank : OBPEndpoint = {
|
||||
@ -1340,7 +1340,7 @@ trait APIMethods500 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagProduct, apiTagNewStyle),
|
||||
List(apiTagProduct),
|
||||
Some(List(canCreateProduct, canCreateProductAtAnyBank))
|
||||
)
|
||||
lazy val createProduct: OBPEndpoint = {
|
||||
@ -1406,7 +1406,7 @@ trait APIMethods500 {
|
||||
AllowedValuesAre,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCard, apiTagNewStyle),
|
||||
List(apiTagCard),
|
||||
Some(List(canCreateCardsForBank)))
|
||||
lazy val addCardForBank: OBPEndpoint = {
|
||||
case "management" :: "banks" :: BankId(bankId) :: "cards" :: Nil JsonPost json -> _ => {
|
||||
@ -1523,7 +1523,7 @@ trait APIMethods500 {
|
||||
$BankAccountNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagView, apiTagAccount, apiTagNewStyle))
|
||||
List(apiTagView, apiTagAccount))
|
||||
|
||||
lazy val getViewsForBankAccount : OBPEndpoint = {
|
||||
//get the available views on an bank account
|
||||
@ -1561,7 +1561,7 @@ trait APIMethods500 {
|
||||
UnknownError,
|
||||
"user does not have owner access"
|
||||
),
|
||||
List(apiTagSystemView, apiTagNewStyle),
|
||||
List(apiTagSystemView),
|
||||
Some(List(canDeleteSystemView))
|
||||
)
|
||||
|
||||
@ -1648,7 +1648,7 @@ trait APIMethods500 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagMetric, apiTagApi, apiTagNewStyle),
|
||||
List(apiTagMetric, apiTagApi),
|
||||
Some(List(canGetMetricsAtOneBank)))
|
||||
|
||||
lazy val getMetricsAtBank : OBPEndpoint = {
|
||||
@ -1684,7 +1684,7 @@ trait APIMethods500 {
|
||||
$BankNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagSystemView, apiTagNewStyle),
|
||||
List(apiTagSystemView),
|
||||
Some(List(canGetSystemView))
|
||||
)
|
||||
|
||||
@ -1718,7 +1718,7 @@ trait APIMethods500 {
|
||||
$BankNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagSystemView, apiTagNewStyle),
|
||||
List(apiTagSystemView),
|
||||
Some(List(canGetSystemView))
|
||||
)
|
||||
|
||||
@ -1764,7 +1764,7 @@ trait APIMethods500 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagSystemView, apiTagNewStyle),
|
||||
List(apiTagSystemView),
|
||||
Some(List(canCreateSystemView))
|
||||
)
|
||||
|
||||
@ -1812,7 +1812,7 @@ trait APIMethods500 {
|
||||
BankAccountNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagSystemView, apiTagNewStyle),
|
||||
List(apiTagSystemView),
|
||||
Some(List(canUpdateSystemView))
|
||||
)
|
||||
|
||||
@ -1912,7 +1912,7 @@ trait APIMethods500 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(List(canGetCustomerAccountLinks)))
|
||||
lazy val getCustomerAccountLinksByCustomerId : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "customers" :: customerId :: "customer-account-links" :: Nil JsonGet _ => {
|
||||
@ -1950,7 +1950,7 @@ trait APIMethods500 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(List(canGetCustomerAccountLinks)))
|
||||
lazy val getCustomerAccountLinksByBankIdAccountId : OBPEndpoint = {
|
||||
case "banks" :: bankId :: "accounts" :: accountId :: "customer-account-links" :: Nil JsonGet _ => {
|
||||
@ -1984,7 +1984,7 @@ trait APIMethods500 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(List(canGetCustomerAccountLink)))
|
||||
lazy val getCustomerAccountLinkById : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "customer-account-links" :: customerAccountLinkId :: Nil JsonGet _ => {
|
||||
@ -2018,7 +2018,7 @@ trait APIMethods500 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(List(canUpdateCustomerAccountLink)))
|
||||
lazy val updateCustomerAccountLinkById : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "customer-account-links" :: customerAccountLinkId :: Nil JsonPut json -> _ => {
|
||||
@ -2057,7 +2057,7 @@ trait APIMethods500 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagCustomer, apiTagNewStyle),
|
||||
List(apiTagCustomer),
|
||||
Some(List(canDeleteCustomerAccountLink)))
|
||||
lazy val deleteCustomerAccountLinkById : OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "customer-account-links" :: customerAccountLinkId :: Nil JsonDelete _ => {
|
||||
@ -2087,7 +2087,7 @@ trait APIMethods500 {
|
||||
EmptyBody,
|
||||
adapterInfoJsonV500,
|
||||
List($UserNotLoggedIn, UserHasMissingRoles, UnknownError),
|
||||
List(apiTagApi, apiTagNewStyle),
|
||||
List(apiTagApi),
|
||||
Some(List(canGetAdapterInfo))
|
||||
)
|
||||
lazy val getAdapterInfo: OBPEndpoint = {
|
||||
|
||||
@ -77,7 +77,7 @@ trait APIMethods510 {
|
||||
EmptyBody,
|
||||
apiInfoJson400,
|
||||
List(UnknownError, "no connector set"),
|
||||
apiTagApi :: apiTagNewStyle :: Nil)
|
||||
apiTagApi :: Nil)
|
||||
|
||||
def root (apiVersion : ApiVersion, apiVersionStatus: String) : OBPEndpoint = {
|
||||
case (Nil | "root" :: Nil) JsonGet _ => {
|
||||
@ -105,7 +105,7 @@ trait APIMethods510 {
|
||||
EmptyBody,
|
||||
WaitingForGodotJsonV510(sleep_in_milliseconds = 50),
|
||||
List(UnknownError, "no connector set"),
|
||||
apiTagApi :: apiTagNewStyle :: Nil)
|
||||
apiTagApi :: Nil)
|
||||
|
||||
lazy val waitingForGodot: OBPEndpoint = {
|
||||
case "waiting-for-godot" :: Nil JsonGet _ => {
|
||||
@ -139,7 +139,7 @@ trait APIMethods510 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagApiCollection, apiTagNewStyle),
|
||||
List(apiTagApiCollection),
|
||||
Some(canGetAllApiCollections :: Nil)
|
||||
)
|
||||
|
||||
@ -173,7 +173,7 @@ trait APIMethods510 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagSystemIntegrity, apiTagNewStyle),
|
||||
List(apiTagSystemIntegrity),
|
||||
Some(canGetSystemIntegrity :: Nil)
|
||||
)
|
||||
|
||||
@ -209,7 +209,7 @@ trait APIMethods510 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagSystemIntegrity, apiTagNewStyle),
|
||||
List(apiTagSystemIntegrity),
|
||||
Some(canGetSystemIntegrity :: Nil)
|
||||
)
|
||||
|
||||
@ -246,7 +246,7 @@ trait APIMethods510 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagSystemIntegrity, apiTagNewStyle),
|
||||
List(apiTagSystemIntegrity),
|
||||
Some(canGetSystemIntegrity :: Nil)
|
||||
)
|
||||
|
||||
@ -282,7 +282,7 @@ trait APIMethods510 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagSystemIntegrity, apiTagNewStyle),
|
||||
List(apiTagSystemIntegrity),
|
||||
Some(canGetSystemIntegrity :: Nil)
|
||||
)
|
||||
|
||||
@ -317,7 +317,7 @@ trait APIMethods510 {
|
||||
$UserNotLoggedIn,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagFx, apiTagNewStyle)
|
||||
List(apiTagFx)
|
||||
)
|
||||
|
||||
lazy val getCurrenciesAtBank: OBPEndpoint = {
|
||||
@ -356,7 +356,7 @@ trait APIMethods510 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagSystemIntegrity, apiTagNewStyle),
|
||||
List(apiTagSystemIntegrity),
|
||||
Some(canGetSystemIntegrity :: Nil)
|
||||
)
|
||||
|
||||
@ -408,7 +408,7 @@ trait APIMethods510 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagATM, apiTagNewStyle),
|
||||
List(apiTagATM),
|
||||
Some(List(canCreateAtmAttribute, canCreateAtmAttributeAtAnyBank))
|
||||
)
|
||||
|
||||
@ -462,7 +462,7 @@ trait APIMethods510 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagATM, apiTagNewStyle),
|
||||
List(apiTagATM),
|
||||
Some(List(canGetAtmAttribute, canGetAtmAttributeAtAnyBank))
|
||||
)
|
||||
|
||||
@ -498,7 +498,7 @@ trait APIMethods510 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagATM, apiTagNewStyle),
|
||||
List(apiTagATM),
|
||||
Some(List(canGetAtmAttribute, canGetAtmAttributeAtAnyBank))
|
||||
)
|
||||
|
||||
@ -537,7 +537,7 @@ trait APIMethods510 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagATM, apiTagNewStyle),
|
||||
List(apiTagATM),
|
||||
Some(List(canUpdateAtmAttribute, canUpdateAtmAttributeAtAnyBank))
|
||||
)
|
||||
|
||||
@ -595,7 +595,7 @@ trait APIMethods510 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagATM, apiTagNewStyle),
|
||||
List(apiTagATM),
|
||||
Some(List(canDeleteAtmAttribute, canDeleteAtmAttributeAtAnyBank))
|
||||
)
|
||||
|
||||
@ -641,7 +641,7 @@ trait APIMethods510 {
|
||||
BankNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2, apiTagNewStyle),
|
||||
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2),
|
||||
Some(List(canRevokeConsentAtBank))
|
||||
)
|
||||
|
||||
@ -694,7 +694,7 @@ trait APIMethods510 {
|
||||
BankNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2, apiTagNewStyle)
|
||||
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2)
|
||||
)
|
||||
lazy val selfRevokeConsent: OBPEndpoint = {
|
||||
case "my" :: "consent" :: "current" :: Nil JsonDelete _ => {
|
||||
@ -735,7 +735,7 @@ trait APIMethods510 {
|
||||
BankNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2, apiTagNewStyle)
|
||||
List(apiTagConsent, apiTagPSD2AIS, apiTagPsd2)
|
||||
)
|
||||
lazy val mtlsClientCertificateInfo: OBPEndpoint = {
|
||||
case "my" :: "mtls" :: "certificate" :: "current" :: Nil JsonGet _ => {
|
||||
@ -771,7 +771,7 @@ trait APIMethods510 {
|
||||
UserNotFoundByUserId,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagApiCollection, apiTagNewStyle)
|
||||
List(apiTagApiCollection)
|
||||
)
|
||||
|
||||
lazy val updateMyApiCollection: OBPEndpoint = {
|
||||
@ -813,7 +813,7 @@ trait APIMethods510 {
|
||||
EmptyBody,
|
||||
userJsonV400,
|
||||
List($UserNotLoggedIn, UserHasMissingRoles, UserNotFoundByProviderAndUsername, UnknownError),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canGetAnyUser))
|
||||
)
|
||||
|
||||
@ -847,7 +847,7 @@ trait APIMethods510 {
|
||||
EmptyBody,
|
||||
badLoginStatusJson,
|
||||
List(UserNotLoggedIn, UserNotFoundByProviderAndUsername, UserHasMissingRoles, UnknownError),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canReadUserLockedStatus))
|
||||
)
|
||||
lazy val getUserLockStatus: OBPEndpoint = {
|
||||
@ -889,7 +889,7 @@ trait APIMethods510 {
|
||||
EmptyBody,
|
||||
badLoginStatusJson,
|
||||
List(UserNotLoggedIn, UserNotFoundByProviderAndUsername, UserHasMissingRoles, UnknownError),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canUnlockUser)))
|
||||
lazy val unlockUserByProviderAndUsername: OBPEndpoint = {
|
||||
//get private accounts for all banks
|
||||
@ -934,7 +934,7 @@ trait APIMethods510 {
|
||||
EmptyBody,
|
||||
userLockStatusJson,
|
||||
List($UserNotLoggedIn, UserNotFoundByProviderAndUsername, UserHasMissingRoles, UnknownError),
|
||||
List(apiTagUser, apiTagNewStyle),
|
||||
List(apiTagUser),
|
||||
Some(List(canLockUser)))
|
||||
lazy val lockUserByProviderAndUsername: OBPEndpoint = {
|
||||
case "users" :: provider :: username :: "locks" :: Nil JsonPost req => {
|
||||
@ -1007,7 +1007,7 @@ trait APIMethods510 {
|
||||
UserHasMissingRoles,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagMetric, apiTagAggregateMetrics, apiTagNewStyle),
|
||||
List(apiTagMetric, apiTagAggregateMetrics),
|
||||
Some(List(canReadAggregateMetrics)))
|
||||
|
||||
lazy val getAggregateMetrics: OBPEndpoint = {
|
||||
@ -1044,7 +1044,7 @@ trait APIMethods510 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagATM, apiTagNewStyle),
|
||||
List(apiTagATM),
|
||||
Some(List(canCreateAtm, canCreateAtmAtAnyBank))
|
||||
)
|
||||
lazy val createAtm: OBPEndpoint = {
|
||||
@ -1086,7 +1086,7 @@ trait APIMethods510 {
|
||||
InvalidJsonFormat,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagATM, apiTagNewStyle),
|
||||
List(apiTagATM),
|
||||
Some(List(canUpdateAtm, canUpdateAtmAtAnyBank))
|
||||
)
|
||||
lazy val updateAtm: OBPEndpoint = {
|
||||
@ -1137,7 +1137,7 @@ trait APIMethods510 {
|
||||
$BankNotFound,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagATM, apiTagNewStyle)
|
||||
List(apiTagATM)
|
||||
)
|
||||
lazy val getAtms: OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "atms" :: Nil JsonGet _ => {
|
||||
@ -1197,7 +1197,7 @@ trait APIMethods510 {
|
||||
EmptyBody,
|
||||
atmJsonV510,
|
||||
List(UserNotLoggedIn, BankNotFound, AtmNotFoundByAtmId, UnknownError),
|
||||
List(apiTagATM, apiTagNewStyle)
|
||||
List(apiTagATM)
|
||||
)
|
||||
lazy val getAtm: OBPEndpoint = {
|
||||
case "banks" :: BankId(bankId) :: "atms" :: AtmId(atmId) :: Nil JsonGet req => {
|
||||
@ -1234,7 +1234,7 @@ trait APIMethods510 {
|
||||
$UserNotLoggedIn,
|
||||
UnknownError
|
||||
),
|
||||
List(apiTagATM, apiTagNewStyle),
|
||||
List(apiTagATM),
|
||||
Some(List(canDeleteAtmAtAnyBank, canDeleteAtm))
|
||||
)
|
||||
lazy val deleteAtm: OBPEndpoint = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user