Extracted constant DefaultCurrency

This commit is contained in:
dankito 2024-09-05 23:07:59 +02:00
parent a680b6534c
commit 783675d82a
4 changed files with 10 additions and 3 deletions

View File

@ -12,7 +12,7 @@ open class BankAccount(
val productName: String? = null,
var accountHolderName: String,
val type: BankAccountType = BankAccountType.Other,
val currency: String = "EUR",
val currency: String = DefaultValues.DefaultCurrency,
var accountLimit: String? = null,
val isAccountTypeSupportedByApplication: Boolean = false,

View File

@ -0,0 +1,5 @@
package net.codinux.banking.client.model
object DefaultValues {
const val DefaultCurrency = "EUR"
}

View File

@ -2,6 +2,7 @@ package net.codinux.banking.client.model.request
import net.codinux.banking.client.model.Amount
import net.codinux.banking.client.model.BankAccountIdentifier
import net.codinux.banking.client.model.DefaultValues
import net.codinux.banking.client.model.config.NoArgConstructor
import net.codinux.banking.client.model.tan.TanMethodType
@ -36,7 +37,7 @@ open class TransferMoneyRequest(
open val amount: Amount,
open val currency: String = "EUR",
open val currency: String = DefaultValues.DefaultCurrency,
/**
* The purpose of payment. An optional value that tells the reason for the transfer.

View File

@ -2,6 +2,7 @@ package net.codinux.banking.client.model.request
import net.codinux.banking.client.model.Amount
import net.codinux.banking.client.model.BankAccountIdentifier
import net.codinux.banking.client.model.DefaultValues
import net.codinux.banking.client.model.config.NoArgConstructor
import net.codinux.banking.client.model.tan.TanMethodType
@ -30,7 +31,7 @@ open class TransferMoneyRequestForUser(
/* Transfer data */
amount: Amount,
currency: String = "EUR",
currency: String = DefaultValues.DefaultCurrency,
paymentReference: String? = null,
instantTransfer: Boolean = false,