Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor/tweaked the resource docs #2413

Merged
merged 1 commit into from
Jul 12, 2024
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 @@ -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 @@ -2730,7 +2730,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
Loading