From 51daabd844f34d903c83964fa801dd68e584c394 Mon Sep 17 00:00:00 2001 From: hongwei Date: Tue, 23 May 2023 19:46:35 +0800 Subject: [PATCH] refactor/added the props values to InvalidChallengeAnswer --- obp-api/src/main/scala/code/api/util/ErrorMessages.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/obp-api/src/main/scala/code/api/util/ErrorMessages.scala b/obp-api/src/main/scala/code/api/util/ErrorMessages.scala index 30518cd25..deb679774 100644 --- a/obp-api/src/main/scala/code/api/util/ErrorMessages.scala +++ b/obp-api/src/main/scala/code/api/util/ErrorMessages.scala @@ -551,9 +551,9 @@ object ErrorMessages { val InvalidChargePolicy = "OBP-40013: Invalid Charge Policy. Please specify a valid value for Charge_Policy: SHARED, SENDER or RECEIVER. " val AllowedAttemptsUsedUp = "OBP-40014: Sorry, you've used up your allowed attempts. " val InvalidChallengeType = "OBP-40015: Invalid Challenge Type. Please specify a valid value for CHALLENGE_TYPE, when you create the transaction request." - val InvalidChallengeAnswer = "OBP-40016: Invalid Challenge Answer. Please specify a valid value for answer in Json body. " + - "The challenge answer may be expired." + - "Or you've used up your allowed attempts (3 times)." + + val InvalidChallengeAnswer = s"OBP-40016: Invalid Challenge Answer. Please specify a valid value for answer in Json body. " + + s"The challenge answer may be expired(${transactionRequestChallengeTtl} seconds)." + + s"Or you've used up your allowed attempts (${allowedAnswerTransactionRequestChallengeAttempts})." + "Or if connector = mapped and transactionRequestType_OTP_INSTRUCTION_TRANSPORT = DUMMY and suggested_default_sca_method=DUMMY, the answer must be `123`. " + "Or if connector = others, the challenge answer can be got by phone message or other security ways." val InvalidPhoneNumber = "OBP-40017: Invalid Phone Number. Please specify a valid value for PHONE_NUMBER. Eg:+9722398746 "