Skip to content

Commit

Permalink
feature/BGv1.3 added periodic_payments - step8
Browse files Browse the repository at this point in the history
  • Loading branch information
hongwei1 committed Sep 10, 2024
1 parent 5c081df commit 3504a3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -642,12 +642,7 @@ object SwaggerDefinitionsJSON {
other_bank_routing_scheme= counterpartyOtherBankRoutingSchemeExample.value,
other_bank_routing_address= counterpartyOtherBankRoutingAddressExample.value,
is_beneficiary= true,
future_date = Some(futureDateExample.value),
payment_start_date = Some(DateWithDayExampleObject),
payment_end_date = Some(DateWithDayExampleObject),
payment_execution_Rule = Some("String"),
payment_frequency = Some("String"),
payment_day_of_execution = Some("String"),
future_date = Some(futureDateExample.value)
)

val adapterImplementationJson = AdapterImplementationJson("CORE",3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -694,10 +694,10 @@ object SwaggerJSONFactory extends MdcLoggable {
case _ if isOneOfType[Option[Coll[BigDecimal]], Option[Coll[JBigDecimal]]] => s""" {"type":"array", "items":{"type": "string", "format":"double","example":"123.321"}}"""
//Date
case _ if isOneOfType[Date, Option[Date]] => {
val valueBox = tryo {s""""${APIUtil.DateWithSecondsFormat.format(exampleValue)}""""}
val valueBox = tryo {s"""${APIUtil.DateWithSecondsFormat.format(exampleValue)}"""}
if(valueBox.isEmpty) logger.debug(s"isOneOfType[Date, Option[Date]]- Current Example Value is: $paramType - $exampleValue")
val value = valueBox.getOrElse(APIUtil.DateWithSecondsExampleString)
s""" {"type":"string", "format":"date","example":$value}"""
s""" {"type":"string", "format":"date","example":"$value"}"""
}
case _ if isOneOfType[Coll[Date], Option[Coll[Date]]] => s""" {"type":"array", "items":{"type":"string", "format":"date"}}"""

Expand Down

0 comments on commit 3504a3d

Please sign in to comment.