From ba690c1f6e3652640240039f515f949c3810704c Mon Sep 17 00:00:00 2001 From: hongwei Date: Tue, 2 Aug 2022 15:55:15 +0200 Subject: [PATCH] refactor/tweaked the props name to transactionRequest.challenge.ttl.seconds --- obp-api/src/main/resources/props/sample.props.template | 2 +- obp-api/src/main/scala/code/api/util/APIUtil.scala | 2 +- release_notes.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/obp-api/src/main/resources/props/sample.props.template b/obp-api/src/main/resources/props/sample.props.template index b0a99c53e..1059c6801 100644 --- a/obp-api/src/main/resources/props/sample.props.template +++ b/obp-api/src/main/resources/props/sample.props.template @@ -242,7 +242,7 @@ mail.smtp.port=25 token_expiration_weeks=4 ## payment challenge answer timeout,default is 600 seconds/10 minutes -transaction_request_challenge_ttl=600 +transactionRequest.challenge.ttl.seconds=600 # the allowed attempts to answer the same transactionRequest Challenge, default is 3 times #answer_transactionRequest_challenge_allowed_attempts=3 diff --git a/obp-api/src/main/scala/code/api/util/APIUtil.scala b/obp-api/src/main/scala/code/api/util/APIUtil.scala index 82aacca76..104f9b816 100644 --- a/obp-api/src/main/scala/code/api/util/APIUtil.scala +++ b/obp-api/src/main/scala/code/api/util/APIUtil.scala @@ -4202,7 +4202,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{ | """.stripMargin - val transactionRequestChallengeTtl = APIUtil.getPropsAsLongValue("transaction_request_challenge_ttl", 600) + val transactionRequestChallengeTtl = APIUtil.getPropsAsLongValue("transactionRequest.challenge.ttl.seconds", 600) val obpErrorMessageCodeRegex = "^(OBP-\\d+):" diff --git a/release_notes.md b/release_notes.md index e5098f0a0..b53641f4e 100644 --- a/release_notes.md +++ b/release_notes.md @@ -4,7 +4,7 @@ ``` Date Commit Action 01/08/2022 d94687d6 added new props `answer_transactionRequest_challenge_allowed_attempts`, default is 3 . -03/05/2022 5fe70270 added new props `transaction_request_challenge_ttl`, default is 600 seconds. +03/05/2022 5fe70270 added new props `transactionRequest.challenge.ttl.seconds`, default is 600 seconds. 31/03/2022 a0262c3f added new value SIMPLE to props `transactionRequests_supported_types` added new props `SIMPLE_OTP_INSTRUCTION_TRANSPORT`, default value is `DUMMY` 24/02/2022 2882805c removed `kafka`,`kafka_vJune2017` and `kafka_vMar2017` connectors