Adjusted property order and added balance
This commit is contained in:
parent
3b628fea86
commit
cdc720a511
|
@ -7,18 +7,19 @@ import java.util.*
|
|||
|
||||
open class AccountTransaction(
|
||||
val amount: BigDecimal,
|
||||
val currency: String,
|
||||
val usage: String,
|
||||
val bookingDate: Date,
|
||||
val usage: String,
|
||||
val otherPartyName: String?,
|
||||
val otherPartyBankCode: String?,
|
||||
val otherPartyAccountId: String?,
|
||||
val bookingText: String?,
|
||||
val balance: BigDecimal?,
|
||||
val currency: String,
|
||||
val bankAccount: BankAccount
|
||||
) {
|
||||
|
||||
// for object deserializers
|
||||
internal constructor() : this(0.toBigDecimal(),"", "", Date(), null, null, null, null, BankAccount())
|
||||
internal constructor() : this(BigDecimal.ZERO, Date(),"", null, null, null, null, BigDecimal.ZERO, "", BankAccount())
|
||||
|
||||
|
||||
val showOtherPartyName: Boolean
|
||||
|
|
|
@ -104,13 +104,14 @@ open class fints4javaModelMapper {
|
|||
open fun mapTransaction(bankAccount: BankAccount, transaction: net.dankito.fints.model.AccountTransaction): AccountTransaction {
|
||||
return AccountTransaction(
|
||||
transaction.amount,
|
||||
transaction.currency,
|
||||
transaction.usage,
|
||||
transaction.bookingDate,
|
||||
transaction.usage,
|
||||
transaction.otherPartyName,
|
||||
transaction.otherPartyBankCode,
|
||||
transaction.otherPartyAccountId,
|
||||
transaction.bookingText,
|
||||
transaction.closingBalance,
|
||||
transaction.currency,
|
||||
bankAccount
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue