Skip to content

Commit

Permalink
Merge pull request #2413 from hongwei1/develop
Browse files Browse the repository at this point in the history
refactor/tweaked the resource docs
  • Loading branch information
simonredfern authored Jul 12, 2024
2 parents 0eeb25e + a0a3f7d commit 9d219b3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5232,28 +5232,6 @@ object SwaggerDefinitionsJSON {
valid_from = Some(new Date()),
time_to_live = Some(3600)
)

val consentRequestFromAccountJson = ConsentRequestFromAccountJson (
bank_routing = bankRoutingJsonV121,
account_routing = accountRoutingJsonV121,
branch_routing = branchRoutingJsonV141
)

val consentRequestToAccountJson = ConsentRequestToAccountJson (
bank_routing = bankRoutingJsonV121,
account_routing = accountRoutingJsonV121,
branch_routing = branchRoutingJsonV141,
limit = postCounterpartyLimitV510
)

val postConsentRequestJsonV510 = PostConsentRequestJsonV510(
from_account = consentRequestFromAccountJson,
to_account = consentRequestToAccountJson,
email = Some(emailExample.value),
phone_number = Some(mobileNumberExample.value),
valid_from = Some(new Date()),
time_to_live = Some(3600)
)

val createPhysicalCardJsonV500 = CreatePhysicalCardJsonV500(
card_number = bankCardNumberExample.value,
Expand Down Expand Up @@ -5483,6 +5461,29 @@ object SwaggerDefinitionsJSON {
)

val postAccountAccessJsonV510 = PostAccountAccessJsonV510(userIdExample.value,viewIdExample.value)

val consentRequestFromAccountJson = ConsentRequestFromAccountJson (
bank_routing = bankRoutingJsonV121,
account_routing = accountRoutingJsonV121,
branch_routing = branchRoutingJsonV141
)

val consentRequestToAccountJson = ConsentRequestToAccountJson (
bank_routing = bankRoutingJsonV121,
account_routing = accountRoutingJsonV121,
branch_routing = branchRoutingJsonV141,
limit = postCounterpartyLimitV510
)

val postConsentRequestJsonV510 = PostConsentRequestJsonV510(
from_account = consentRequestFromAccountJson,
to_account = consentRequestToAccountJson,
email = Some(emailExample.value),
phone_number = Some(mobileNumberExample.value),
valid_from = Some(new Date()),
time_to_live = Some(3600)
)


//The common error or success format.
//Just some helper format to use in Json
Expand Down
2 changes: 1 addition & 1 deletion obp-api/src/main/scala/code/api/v5_1_0/APIMethods510.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2768,7 +2768,7 @@ trait APIMethods510 {
nameOf(createVRPConsentRequest),
"POST",
"/consumer/vrp-consent-requests",
"Create VRP Consent Request",
"Create Consent Request VRP",
s"""
|Client Authentication (mandatory)
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ class CounterpartyLimit extends CounterpartyLimitTrait with LongKeyedMapper[Coun
override def dbNotNull_? = true
}

object Currency extends MappedString(this, 255){
override def dbNotNull_? = true
}
object Currency extends MappedString(this, 255)

object MaxSingleAmount extends MappedInt(this) {
override def defaultValue = -1
Expand Down

0 comments on commit 9d219b3

Please sign in to comment.