2021-02-08 11:24:14 +07:00
|
|
|
package com.cubetiqs.money
|
2020-08-27 10:48:31 +07:00
|
|
|
|
2021-02-08 12:39:52 +07:00
|
|
|
fun StdMoney.exchangeTo(currency: StdMoney.Currency): StdMoney {
|
2020-08-27 21:42:05 +07:00
|
|
|
return MoneyExchangeUtils.exchange(this, currency)
|
|
|
|
}
|
|
|
|
|
2021-02-08 12:39:52 +07:00
|
|
|
fun StdMoney.isMatchedCurrency(currency: StdMoney.Currency) = this.getMoneyCurrency().getCurrency().equals(currency.getCurrency(), ignoreCase = true)
|