[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Renaming type
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Renaming type |
Date: |
Thu, 21 Sep 2023 18:28:21 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 3e15b1b3 Renaming type
3e15b1b3 is described below
commit 3e15b1b3721e9a10b243bb4e1a9c1ad8974299f8
Author: MS <ms@taler.net>
AuthorDate: Thu Sep 21 18:28:14 2023 +0200
Renaming type
---
bank/src/main/kotlin/tech/libeufin/bank/Database.kt | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/bank/src/main/kotlin/tech/libeufin/bank/Database.kt
b/bank/src/main/kotlin/tech/libeufin/bank/Database.kt
index bac4c7eb..ecd0be56 100644
--- a/bank/src/main/kotlin/tech/libeufin/bank/Database.kt
+++ b/bank/src/main/kotlin/tech/libeufin/bank/Database.kt
@@ -956,7 +956,7 @@ class Database(private val dbConfig: String) {
}
}
- data class TalerTransferDbResult(
+ data class TalerTransferCreationResult(
val txResult: BankTransactionResult,
// Row ID of the debit bank transaction
// of a successful case. Null upon errors
@@ -980,7 +980,7 @@ class Database(private val dbConfig: String) {
acctSvcrRef: String = "not used",
pmtInfId: String = "not used",
endToEndId: String = "not used",
- ): TalerTransferDbResult {
+ ): TalerTransferCreationResult {
reconnect()
// FIXME: future versions should return the exchange's latest bank
transaction ID
val stmt = prepare("""
@@ -1019,11 +1019,11 @@ class Database(private val dbConfig: String) {
if (!it.next())
throw internalServerError("SQL function taler_transfer did not
return anything.")
if (it.getBoolean("out_nx_creditor"))
- return TalerTransferDbResult(BankTransactionResult.NO_CREDITOR)
+ return
TalerTransferCreationResult(BankTransactionResult.NO_CREDITOR)
if (it.getBoolean("out_exchange_balance_insufficient"))
- return TalerTransferDbResult(BankTransactionResult.CONFLICT)
+ return
TalerTransferCreationResult(BankTransactionResult.CONFLICT)
val txRowId = it.getLong("out_tx_row_id")
- return TalerTransferDbResult(
+ return TalerTransferCreationResult(
txResult = BankTransactionResult.SUCCESS,
txRowId = txRowId
)
--
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: Renaming type,
gnunet <=