libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit aa768bd7c09f0ea4a0b53caf9390bfa1ac68fac6
parent 9ed61b31ae7793310f5ae33e39a59aa452a34650
Author: MS <ms@taler.net>
Date:   Sat, 23 Sep 2023 09:57:13 +0200

Help message wording.

Diffstat:
Mbank/src/main/kotlin/tech/libeufin/bank/talerIntegrationHandlers.kt | 6+++---
Mbank/src/main/kotlin/tech/libeufin/bank/tokenHandlers.kt | 2+-
Mcli/bin/libeufin-cli | 2--
Mnexus/src/main/kotlin/tech/libeufin/nexus/FacadeUtil.kt | 4+---
4 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/bank/src/main/kotlin/tech/libeufin/bank/talerIntegrationHandlers.kt b/bank/src/main/kotlin/tech/libeufin/bank/talerIntegrationHandlers.kt @@ -44,7 +44,7 @@ fun Routing.talerIntegrationHandlers(db: Database, ctx: BankApplicationContext) val suggestedExchange = ctx.suggestedWithdrawalExchange val walletCustomer = db.customerGetFromRowId(relatedBankAccount.owningCustomerId) if (walletCustomer == null) - throw internalServerError("Could not resort the username that owns this withdrawal") + throw internalServerError("Could not get the username that owns this withdrawal") val confirmUrl = getWithdrawalConfirmUrl( baseUrl = call.request.getBaseUrl() ?: throw internalServerError("Could not get bank own base URL."), wopId = wopid, @@ -96,9 +96,9 @@ fun Routing.talerIntegrationHandlers(db: Database, ctx: BankApplicationContext) // Getting user details that MIGHT be used later. val confirmUrl: String? = if (!op.confirmationDone) { val walletBankAccount = db.bankAccountGetFromOwnerId(op.walletBankAccount) - ?: throw internalServerError("Could not resort the bank account owning this withdrawal") + ?: throw internalServerError("Could not get the bank account owning this withdrawal") val walletCustomer = db.customerGetFromRowId(walletBankAccount.owningCustomerId) - ?: throw internalServerError("Could not resort the username owning this withdrawal") + ?: throw internalServerError("Could not get the username owning this withdrawal") getWithdrawalConfirmUrl( baseUrl = call.request.getBaseUrl() ?: throw internalServerError("Could not get bank own base URL."), diff --git a/bank/src/main/kotlin/tech/libeufin/bank/tokenHandlers.kt b/bank/src/main/kotlin/tech/libeufin/bank/tokenHandlers.kt @@ -73,7 +73,7 @@ fun Routing.tokenHandlers(db: Database, ctx: BankApplicationContext) { ) val tokenDurationUs = req.duration?.d_us ?: TOKEN_DEFAULT_DURATION_US val customerDbRow = customer.dbRowId ?: throw internalServerError( - "Could not resort customer '${customer.login}' database row ID" + "Could not get customer '${customer.login}' database row ID" ) val expirationTimestampUs: Long = getNowUs() + tokenDurationUs if (expirationTimestampUs < tokenDurationUs) diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli @@ -1896,8 +1896,6 @@ def password_reconfig(obj, username): ) @click.pass_obj def circuit_cashout(obj, subject, amount_debit, amount_credit, tan_channel): - # (not) resorting auth credentials, if they're None, request fails at the server. - # Craft the request. req = dict( amount_debit=amount_debit, amount_credit=amount_credit diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/FacadeUtil.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/FacadeUtil.kt @@ -12,7 +12,6 @@ import org.jetbrains.exposed.sql.transactions.TransactionManager import org.jetbrains.exposed.sql.transactions.transaction import tech.libeufin.nexus.server.NexusFacadeType -// Mainly used to resort the last processed transaction ID. fun getFacadeState(fcid: String): FacadeStateEntity { return transaction { val facade = FacadeEntity.find { @@ -119,4 +118,4 @@ fun ingestFacadeTransactions( flushCache() } } -} -\ No newline at end of file +}