mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 13:07:02 +00:00
refactor/tweaked the ConsumerJSON to ConsumerJsonV210
This commit is contained in:
parent
a4555f4b7d
commit
d6fb301f53
@ -2667,7 +2667,7 @@ object SwaggerDefinitionsJSON {
|
||||
roles = List(availableRoleJSON)
|
||||
)
|
||||
|
||||
val consumerJSON = ConsumerJSON(
|
||||
val consumerJSON = ConsumerJsonV210(
|
||||
consumer_id = 1213,
|
||||
app_name = "SOFI",
|
||||
app_type = "Web",
|
||||
|
||||
@ -131,7 +131,7 @@ case class ResourceUserJSON(user_id: String,
|
||||
username: String
|
||||
)
|
||||
|
||||
case class ConsumerJSON(consumer_id: Long,
|
||||
case class ConsumerJsonV210(consumer_id: Long,
|
||||
app_name: String,
|
||||
app_type: String,
|
||||
description: String,
|
||||
@ -154,7 +154,7 @@ case class ConsumerPostJSON(app_name: String,
|
||||
clientCertificate: String
|
||||
)
|
||||
|
||||
case class ConsumersJson(list: List[ConsumerJSON])
|
||||
case class ConsumersJson(list: List[ConsumerJsonV210])
|
||||
|
||||
case class PostCounterpartyBespokeJson(
|
||||
key: String,
|
||||
@ -492,7 +492,7 @@ object JSONFactory210{
|
||||
TransactionRequestWithChargeJSONs210(trs.map(createTransactionRequestWithChargeJSON))
|
||||
}
|
||||
|
||||
def createConsumerJSON(c: Consumer): ConsumerJSON = {
|
||||
def createConsumerJSON(c: Consumer): ConsumerJsonV210 = {
|
||||
|
||||
val resourceUserJSON = Users.users.vend.getUserByUserId(c.createdByUserId.toString()) match {
|
||||
case Full(resourceUser) => ResourceUserJSON(
|
||||
@ -505,7 +505,7 @@ object JSONFactory210{
|
||||
case _ => null
|
||||
}
|
||||
|
||||
ConsumerJSON(consumer_id=c.id.get,
|
||||
ConsumerJsonV210(consumer_id=c.id.get,
|
||||
app_name=c.name.get,
|
||||
app_type=c.appType.toString(),
|
||||
description=c.description.get,
|
||||
|
||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user