[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 05/05: propagate last change
From: |
gnunet |
Subject: |
[libeufin] 05/05: propagate last change |
Date: |
Fri, 10 Apr 2020 00:17:32 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
commit f54438f79232c106899bdb53e27f8084ef6d21bb
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Apr 9 23:36:36 2020 +0200
propagate last change
---
nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 3 +--
nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt | 8 +++++---
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 8f9bb32..9d334ec 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -635,8 +635,7 @@ fun main() {
transaction {
val subscriber: EbicsSubscriberEntity =
getSubscriberEntityFromId(id)
EbicsRawBankTransactionEntity.find {
- (EbicsRawBankTransactionsTable.nexusSubscriber eq
subscriber.id.value) and
- (EbicsRawBankTransactionsTable.sourceType eq
"C53")
+ EbicsRawBankTransactionsTable.nexusSubscriber eq
subscriber.id.value
}.forEach {
ret += "###\nDebitor: ${it.debitorIban}\nCreditor:
${it.creditorIban}\nAmount: ${it.currency}:${it.amount}\nDate:
${it.bookingDate}\n"
}
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
index aa045f2..ab448ec 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
@@ -224,7 +224,6 @@ class Taler(app: Route) {
val exchangeBankAccount =
getBankAccountsInfoFromId(exchangeId).first()
val rawPayment = EbicsRawBankTransactionEntity.new {
sourceFileName = "test"
- sourceType = "C53"
unstructuredRemittanceInformation =
addIncomingData.reserve_pub
transactionType = "CRDT"
currency = amount.currency
@@ -232,9 +231,12 @@ class Taler(app: Route) {
creditorIban = exchangeBankAccount.iban
creditorName = "Exchange's company name"
debitorIban = debtor.iban
- debitorName = if (debtor.name.isNotEmpty()) { debtor.name
} else "DEBITORNAMENOTGIVEN"
- counterpartBic = if (debtor.bic.isNotEmpty()) { debtor.bic
} else "DEBITORBICNOTGIVEN"
+ debitorName = debtor.name
+ counterpartBic = debtor.bic
bookingDate = DateTime.now().toZonedString()
+ status = "BOOK"
+ servicerCode = "test-0"
+ proprietaryCode = "test-0"
}
/** This payment is "valid by default" and will be returned
* as soon as the exchange will ask for new payments. */
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [libeufin] branch master updated (107a5bc -> f54438f), gnunet, 2020/04/09
- [libeufin] 03/05: Create main/rough logic for Taler-started transfers., gnunet, 2020/04/09
- [libeufin] 02/05: DB definitions for payments ordered by the exchange., gnunet, 2020/04/09
- [libeufin] 01/05: Completing admin add-incoming., gnunet, 2020/04/09
- [libeufin] 04/05: Store bank-provided IDs, and transaction statuses., gnunet, 2020/04/09
- [libeufin] 05/05: propagate last change,
gnunet <=