From 22976291fdac83d699009c6667b179ba31368edf Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 25 Feb 2022 20:47:17 +0100 Subject: [PATCH] Added convenience constructor Money(String, String) --- .../commonMain/kotlin/net/dankito/banking/fints/model/Money.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/Money.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/Money.kt index 4cdcdfd9..50306303 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/Money.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/Money.kt @@ -16,6 +16,8 @@ open class Money( + constructor(amount: String, currencyCode: String) : this(Amount(amount), currencyCode) + constructor(amount: Amount, currencyCode: String) : this(amount, Currency(currencyCode)) internal constructor() : this(Amount.Zero, "") // for object deserializers