Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ object APIMethods_AccountsApi extends RestHelper {
"self" : "self"
}
}"""),
List(UserNotLoggedIn, UnknownError),
List(AuthenticatedUserIsRequired, UnknownError),
ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
)

lazy val getAccountDetail : OBPEndpoint = {
case "banking":: "accounts" :: accountId :: Nil JsonGet _ => {
cc =>
for {
(Full(u), callContext) <- authenticatedAccess(cc, UserNotLoggedIn)
(Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
} yield {
(json.parse("""{
"data" : "",
Expand Down Expand Up @@ -93,15 +93,15 @@ object APIMethods_AccountsApi extends RestHelper {
"self" : "self"
}
}"""),
List(UserNotLoggedIn, UnknownError),
List(AuthenticatedUserIsRequired, UnknownError),
ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
)

lazy val getTransactionDetail : OBPEndpoint = {
case "banking":: "accounts" :: accountId:: "transactions" :: transactionId :: Nil JsonGet _ => {
cc =>
for {
(Full(u), callContext) <- authenticatedAccess(cc, UserNotLoggedIn)
(Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
} yield {
(json.parse("""{
"data" : "",
Expand Down Expand Up @@ -194,15 +194,15 @@ Some general notes that apply to all end points that retrieve transactions:
"first" : "first"
}
}"""),
List(UserNotLoggedIn, UnknownError),
List(AuthenticatedUserIsRequired, UnknownError),
ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
)

lazy val getTransactions : OBPEndpoint = {
case "banking":: "accounts" :: accountId:: "transactions" :: Nil JsonGet _ => {
cc =>
for {
(Full(u), callContext) <- authenticatedAccess(cc, UserNotLoggedIn)
(Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
} yield {
(json.parse("""{
"data" : {
Expand Down Expand Up @@ -310,7 +310,7 @@ Some general notes that apply to all end points that retrieve transactions:
// "first" : "first"
// }
//}"""),
// List(UserNotLoggedIn, UnknownError),
// List(AuthenticatedUserIsRequired, UnknownError),
//
// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
// )
Expand All @@ -319,7 +319,7 @@ Some general notes that apply to all end points that retrieve transactions:
// case "banking":: "accounts" :: Nil JsonGet _ => {
// cc =>
// for {
// (Full(u), callContext) <- authorizedAccess(cc, UserNotLoggedIn)
// (Full(u), callContext) <- authorizedAccess(cc, AuthenticatedUserIsRequired)
// } yield {
// (json.parse("""{
// "data" : {
Expand Down Expand Up @@ -394,7 +394,7 @@ Some general notes that apply to all end points that retrieve transactions:
// "self" : "self"
// }
//}"""),
// List(UserNotLoggedIn, UnknownError),
// List(AuthenticatedUserIsRequired, UnknownError),
//
// ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
// )
Expand All @@ -403,7 +403,7 @@ Some general notes that apply to all end points that retrieve transactions:
// case "banking":: "accounts" :: accountId:: "balance" :: Nil JsonGet _ => {
// cc =>
// for {
// (Full(u), callContext) <- authorizedAccess(cc, UserNotLoggedIn)
// (Full(u), callContext) <- authorizedAccess(cc, AuthenticatedUserIsRequired)
// } yield {
// (json.parse("""{
// "data" : {
Expand Down Expand Up @@ -486,15 +486,15 @@ Some general notes that apply to all end points that retrieve transactions:
"first" : "first"
}
}"""),
List(UserNotLoggedIn, UnknownError),
List(AuthenticatedUserIsRequired, UnknownError),
ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
)

lazy val listBalancesBulk : OBPEndpoint = {
case "banking":: "accounts":: "balances" :: Nil JsonGet _ => {
cc =>
for {
(Full(u), callContext) <- authenticatedAccess(cc, UserNotLoggedIn)
(Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
} yield {
(json.parse("""{
"data" : {
Expand Down Expand Up @@ -605,15 +605,15 @@ Some general notes that apply to all end points that retrieve transactions:
"first" : "first"
}
}"""),
List(UserNotLoggedIn, UnknownError),
List(AuthenticatedUserIsRequired, UnknownError),
ApiTag("Banking") ::ApiTag("Accounts") :: apiTagMockedData :: Nil
)

lazy val listBalancesSpecificAccounts : OBPEndpoint = {
case "banking":: "accounts":: "balances" :: Nil JsonPost _ => {
cc =>
for {
(Full(u), callContext) <- authenticatedAccess(cc, UserNotLoggedIn)
(Full(u), callContext) <- authenticatedAccess(cc, AuthenticatedUserIsRequired)
} yield {
(json.parse("""{
"data" : {
Expand Down
Loading