Skip to content

Commit

Permalink
Tweaking Create Counterparty Limit Resource Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
simonredfern committed Jun 27, 2024
1 parent 0effd56 commit d285ce7
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 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 @@ -2290,14 +2290,30 @@ trait APIMethods510 {
}
}


lazy val counterPartyLimitIntro: String =
"""Counter Party Limits can be used to restrict the Transaction Request amounts and frequencies (per month and year) that can be made to a Counterparty (Beneficiary).
|
|In order to implement VRP (Variable Recurring Payments) perform the following steps:
|1) Create a Custom View named e.g. VRP1.
|2) Place a Beneficiary Counterparty on that view.
|3) Add Counterparty Limits for that Counterparty.
|4) Generate a Consent containing the bank, account and view (e.g. VRP1)
|5) Let the App use the consent to trigger Transaction Requests.
|""".stripMargin

staticResourceDocs += ResourceDoc(
createCounterpartyLimit,
implementedInApiVersion,
nameOf(createCounterpartyLimit),
"POST",
"/banks/BANK_ID/accounts/ACCOUNT_ID/views/VIEW_ID/counterparties/COUNTERPARTY_ID/limits",
"Create Counterparty Limit",
s"""Create Counterparty Limit.""",
s"""Create Counterparty Limit.
|
|$counterPartyLimitIntro
|
|""".stripMargin,
postCounterpartyLimitV510,
counterpartyLimitV510,
List(
Expand Down

0 comments on commit d285ce7

Please sign in to comment.