Add and refactoring money module for module package
This commit is contained in:
7
src/main/kotlin/com/cubetiqs/money/MoneyExtension.kt
Normal file
7
src/main/kotlin/com/cubetiqs/money/MoneyExtension.kt
Normal 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)
|
||||
Reference in New Issue
Block a user