refactor/tweaked VrpConsentCreation the Date format

This commit is contained in:
Hongwei 2025-02-25 15:34:22 +01:00
parent a93fbf4df6
commit e88babc741

View File

@ -75,7 +75,7 @@ class VrpConsentCreation extends MdcLoggable with RestHelper with APIMethods510
| 3) The maximum amount per month that can be transferred is $currency ${(jsonAst \ "to_account" \ "limit" \ "max_monthly_amount").extract[String]} over ${(jsonAst \ "to_account" \ "limit" \ "max_number_of_monthly_transactions").extract[String]} transactions.
| 4) The maximum amount per year that can be transferred is $currency ${(jsonAst \ "to_account" \ "limit" \ "max_yearly_amount").extract[String]} over ${(jsonAst \ "to_account" \ "limit" \ "max_number_of_yearly_transactions").extract[String]} transactions.
|
|This consent will start on date ${(jsonAst \ "valid_from").extract[String]} and be valid for ${DateTimeUtil.formatDuration(ttl)}.
|This consent will start on date ${(jsonAst \ "valid_from").extract[String].replace("T"," ").replace("Z","")} and be valid for ${DateTimeUtil.formatDuration(ttl)}.
|
|I understand that I can revoke this consent at any time.
|""".stripMargin