Extracted constant DefaultCurrency
This commit is contained in:
parent
a680b6534c
commit
783675d82a
|
@ -12,7 +12,7 @@ open class BankAccount(
|
||||||
val productName: String? = null,
|
val productName: String? = null,
|
||||||
var accountHolderName: String,
|
var accountHolderName: String,
|
||||||
val type: BankAccountType = BankAccountType.Other,
|
val type: BankAccountType = BankAccountType.Other,
|
||||||
val currency: String = "EUR",
|
val currency: String = DefaultValues.DefaultCurrency,
|
||||||
var accountLimit: String? = null,
|
var accountLimit: String? = null,
|
||||||
|
|
||||||
val isAccountTypeSupportedByApplication: Boolean = false,
|
val isAccountTypeSupportedByApplication: Boolean = false,
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
package net.codinux.banking.client.model
|
||||||
|
|
||||||
|
object DefaultValues {
|
||||||
|
const val DefaultCurrency = "EUR"
|
||||||
|
}
|
|
@ -2,6 +2,7 @@ package net.codinux.banking.client.model.request
|
||||||
|
|
||||||
import net.codinux.banking.client.model.Amount
|
import net.codinux.banking.client.model.Amount
|
||||||
import net.codinux.banking.client.model.BankAccountIdentifier
|
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.config.NoArgConstructor
|
||||||
import net.codinux.banking.client.model.tan.TanMethodType
|
import net.codinux.banking.client.model.tan.TanMethodType
|
||||||
|
|
||||||
|
@ -36,7 +37,7 @@ open class TransferMoneyRequest(
|
||||||
|
|
||||||
open val amount: Amount,
|
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.
|
* The purpose of payment. An optional value that tells the reason for the transfer.
|
||||||
|
|
|
@ -2,6 +2,7 @@ package net.codinux.banking.client.model.request
|
||||||
|
|
||||||
import net.codinux.banking.client.model.Amount
|
import net.codinux.banking.client.model.Amount
|
||||||
import net.codinux.banking.client.model.BankAccountIdentifier
|
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.config.NoArgConstructor
|
||||||
import net.codinux.banking.client.model.tan.TanMethodType
|
import net.codinux.banking.client.model.tan.TanMethodType
|
||||||
|
|
||||||
|
@ -30,7 +31,7 @@ open class TransferMoneyRequestForUser(
|
||||||
/* Transfer data */
|
/* Transfer data */
|
||||||
|
|
||||||
amount: Amount,
|
amount: Amount,
|
||||||
currency: String = "EUR",
|
currency: String = DefaultValues.DefaultCurrency,
|
||||||
paymentReference: String? = null,
|
paymentReference: String? = null,
|
||||||
|
|
||||||
instantTransfer: Boolean = false,
|
instantTransfer: Boolean = false,
|
||||||
|
|
Loading…
Reference in New Issue