Add and refactoring money module for module package

This commit is contained in:
2021-02-08 11:24:14 +07:00
parent e82fb280ab
commit 19130727e3
28 changed files with 27 additions and 527 deletions

View File

@@ -0,0 +1,7 @@
package com.cubetiqs.money
fun StdMoney.exchangeTo(currency: String): StdMoney {
return MoneyExchangeUtils.exchange(this, currency)
}
fun StdMoney.isMatchedCurrency(currency: String) = this.getMoneyCurrency().equals(currency, ignoreCase = true)