[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: -formatting
From: |
gnunet |
Subject: |
[libeufin] branch master updated: -formatting |
Date: |
Sun, 24 Sep 2023 21:23:12 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 38df4038 -formatting
38df4038 is described below
commit 38df40387fe8a3f2925dc84165fe07ade1d8726f
Author: Florian Dold <florian@dold.me>
AuthorDate: Sun Sep 24 21:23:17 2023 +0200
-formatting
---
.../tech/libeufin/bank/IntegrationApiHandlers.kt | 33 +++++++++++-----------
1 file changed, 17 insertions(+), 16 deletions(-)
diff --git a/bank/src/main/kotlin/tech/libeufin/bank/IntegrationApiHandlers.kt
b/bank/src/main/kotlin/tech/libeufin/bank/IntegrationApiHandlers.kt
index 499bf07e..7f8d0595 100644
--- a/bank/src/main/kotlin/tech/libeufin/bank/IntegrationApiHandlers.kt
+++ b/bank/src/main/kotlin/tech/libeufin/bank/IntegrationApiHandlers.kt
@@ -26,7 +26,6 @@ import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import net.taler.common.errorcodes.TalerErrorCode
-import tech.libeufin.util.getBaseUrl
import tech.libeufin.util.stripIbanPayto
fun Routing.talerIntegrationHandlers(db: Database, ctx:
BankApplicationContext) {
@@ -44,20 +43,22 @@ fun Routing.talerIntegrationHandlers(db: Database, ctx:
BankApplicationContext)
val walletCustomer =
db.customerGetFromRowId(relatedBankAccount.owningCustomerId)
if (walletCustomer == null)
throw internalServerError("Could not get the username that owns
this withdrawal")
- val confirmUrl = if (ctx.spaCaptchaURL == null) null else
- getWithdrawalConfirmUrl(
- baseUrl = ctx.spaCaptchaURL,
- wopId = wopid
- )
- call.respond(BankWithdrawalOperationStatus(
- aborted = op.aborted,
- selection_done = op.selectionDone,
- transfer_done = op.confirmationDone,
- amount = op.amount.toString(),
- sender_wire = relatedBankAccount.internalPaytoUri,
- suggested_exchange = suggestedExchange,
- confirm_transfer_url = confirmUrl
- ))
+ val confirmUrl = if (ctx.spaCaptchaURL == null) null else
+ getWithdrawalConfirmUrl(
+ baseUrl = ctx.spaCaptchaURL,
+ wopId = wopid
+ )
+ call.respond(
+ BankWithdrawalOperationStatus(
+ aborted = op.aborted,
+ selection_done = op.selectionDone,
+ transfer_done = op.confirmationDone,
+ amount = op.amount.toString(),
+ sender_wire = relatedBankAccount.internalPaytoUri,
+ suggested_exchange = suggestedExchange,
+ confirm_transfer_url = confirmUrl
+ )
+ )
return@get
}
post("/taler-integration/withdrawal-operation/{wopid}") {
@@ -82,7 +83,7 @@ fun Routing.talerIntegrationHandlers(db: Database, ctx:
BankApplicationContext)
true
}
if (!dbSuccess)
- // Whatever the problem, the bank missed it: respond 500.
+ // Whatever the problem, the bank missed it: respond 500.
throw internalServerError("Bank failed at selecting the
withdrawal.")
// Getting user details that MIGHT be used later.
val confirmUrl: String? = if (ctx.spaCaptchaURL !== null &&
!op.confirmationDone) {
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: -formatting,
gnunet <=