Remove isReversal

This commit is contained in:
dankito 2020-05-24 16:32:43 +02:00
parent 56b6e695e9
commit 7167d6e59c
3 changed files with 3 additions and 5 deletions

View File

@ -12,7 +12,6 @@ open class AccountTransaction(
val bankAccount: BankAccount, val bankAccount: BankAccount,
val amount: BigDecimal, val amount: BigDecimal,
val currency: String, val currency: String,
val isReversal: Boolean,
val unparsedUsage: String, val unparsedUsage: String,
val bookingDate: Date, val bookingDate: Date,
val otherPartyName: String?, val otherPartyName: String?,
@ -52,12 +51,12 @@ open class AccountTransaction(
constructor(bankAccount: BankAccount, amount: BigDecimal, unparsedUsage: String, bookingDate: Date, constructor(bankAccount: BankAccount, amount: BigDecimal, unparsedUsage: String, bookingDate: Date,
otherPartyName: String?, otherPartyBankCode: String?, otherPartyAccountId: String?, otherPartyName: String?, otherPartyBankCode: String?, otherPartyAccountId: String?,
bookingText: String?, valueDate: Date) bookingText: String?, valueDate: Date)
: this(bankAccount, amount, "EUR", false, unparsedUsage, bookingDate, : this(bankAccount, amount, "EUR", unparsedUsage, bookingDate,
otherPartyName, otherPartyBankCode, otherPartyAccountId, bookingText, valueDate, otherPartyName, otherPartyBankCode, otherPartyAccountId, bookingText, valueDate,
0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "", "", null, null, "", null) 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "", "", null, null, "", null)
// for object deserializers // for object deserializers
internal constructor() : this(BankAccount(), BigDecimal.ZERO, "", false,"", Date(), null, null, null, null, Date(), 0, null, BigDecimal.ZERO, BigDecimal.ZERO, internal constructor() : this(BankAccount(), BigDecimal.ZERO, "","", Date(), null, null, null, null, Date(), 0, null, BigDecimal.ZERO, BigDecimal.ZERO,
null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,
null, "", "", null, null, "", null) null, "", "", null, null, "", null)

View File

@ -179,7 +179,6 @@ open class fints4kModelMapper {
bankAccount, bankAccount,
transaction.amount, transaction.amount,
transaction.currency, transaction.currency,
transaction.isReversal,
transaction.unparsedUsage, transaction.unparsedUsage,
transaction.bookingDate, transaction.bookingDate,
transaction.otherPartyName, transaction.otherPartyName,

View File

@ -44,7 +44,7 @@ open class AccountTransactionMapper {
val statementAndMaySequenceNumber = btag.counter.split('/') val statementAndMaySequenceNumber = btag.counter.split('/')
val result = AccountTransaction(bankAccount, val result = AccountTransaction(bankAccount,
mapValue(transaction.value), transaction.value.curr, transaction.isStorno, unparsedUsage, transaction.bdate, mapValue(transaction.value), transaction.value.curr, unparsedUsage, transaction.bdate,
transaction.other.name + (transaction.other.name2 ?: ""), transaction.other.name + (transaction.other.name2 ?: ""),
transaction.other.bic ?: transaction.other.blz, transaction.other.bic ?: transaction.other.blz,
transaction.other.iban ?: transaction.other.number, transaction.other.iban ?: transaction.other.number,