mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 13:26:51 +00:00
improvment/Create Bank asks for Bank Attributes, but does not create them
This commit is contained in:
parent
9dd6ef6215
commit
78c373f4b1
@ -1036,6 +1036,14 @@ object SwaggerDefinitionsJSON {
|
||||
list = List(bankAttributeBankResponseJsonV400)
|
||||
)
|
||||
|
||||
val postBankJson400 = PostBankJson400(
|
||||
id = "gh.29.uk",
|
||||
short_name = "short_name ",
|
||||
full_name = "full_name",
|
||||
logo = "logo",
|
||||
website = "www.openbankproject.com",
|
||||
bank_routings = List(bankRoutingJsonV121)
|
||||
)
|
||||
val bankJson400 = BankJson400(
|
||||
id = "gh.29.uk",
|
||||
short_name = "short_name ",
|
||||
@ -1061,8 +1069,7 @@ object SwaggerDefinitionsJSON {
|
||||
full_name = Some(fullNameExample.value),
|
||||
logo = Some(logoExample.value),
|
||||
website = Some(websiteExample.value),
|
||||
bank_routings = Some(List(bankRoutingJsonV121)),
|
||||
attributes = Some(List(bankAttributeBankResponseJsonV400))
|
||||
bank_routings = Some(List(bankRoutingJsonV121))
|
||||
)
|
||||
|
||||
val banksJSON400 = BanksJson400(
|
||||
|
||||
@ -3969,7 +3969,7 @@ trait APIMethods400 {
|
||||
| - Outgoing account (name: Default outgoing settlement account, Account ID: OBP_DEFAULT_OUTGOING_ACCOUNT_ID, currency: EUR)
|
||||
|
|
||||
|""",
|
||||
bankJson400,
|
||||
postBankJson400,
|
||||
bankJson400,
|
||||
List(
|
||||
InvalidJsonFormat,
|
||||
|
||||
@ -106,6 +106,14 @@ case class BankJson400(
|
||||
bank_routings: List[BankRoutingJsonV121],
|
||||
attributes: Option[List[BankAttributeBankResponseJsonV400]]
|
||||
)
|
||||
case class PostBankJson400(
|
||||
id: String,
|
||||
short_name: String,
|
||||
full_name: String,
|
||||
logo: String,
|
||||
website: String,
|
||||
bank_routings: List[BankRoutingJsonV121]
|
||||
)
|
||||
|
||||
case class BanksJson400(banks: List[BankJson400])
|
||||
|
||||
|
||||
@ -51,8 +51,7 @@ case class PostBankJson500(
|
||||
full_name: Option[String],
|
||||
logo: Option[String],
|
||||
website: Option[String],
|
||||
bank_routings: Option[List[BankRoutingJsonV121]],
|
||||
attributes: Option[List[BankAttributeBankResponseJsonV400]]
|
||||
bank_routings: Option[List[BankRoutingJsonV121]]
|
||||
)
|
||||
|
||||
case class BankJson500(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user