Added convenience constructor Money(String, String)

This commit is contained in:
dankito 2022-02-25 20:47:17 +01:00
parent 61eb739613
commit 22976291fd
1 changed files with 2 additions and 0 deletions

View File

@ -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