diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccount.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccount.kt index b7ae112d..42c217ac 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccount.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/BankAccount.kt @@ -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, diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/DefaultValues.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/DefaultValues.kt new file mode 100644 index 00000000..6607cdcc --- /dev/null +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/DefaultValues.kt @@ -0,0 +1,5 @@ +package net.codinux.banking.client.model + +object DefaultValues { + const val DefaultCurrency = "EUR" +} \ No newline at end of file diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/TransferMoneyRequest.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/TransferMoneyRequest.kt index 49e434eb..82aa3854 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/TransferMoneyRequest.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/TransferMoneyRequest.kt @@ -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. diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/TransferMoneyRequestForUser.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/TransferMoneyRequestForUser.kt index a2ab1d9f..5133699c 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/TransferMoneyRequestForUser.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/request/TransferMoneyRequestForUser.kt @@ -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,