|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CurrencyManager
Interface for service which provides money.
Method Summary | |
---|---|
void |
freeAmount(BigDecimal amount,
ZECurrency currencyCode,
User user)
Frees amount of money in the specified currency. |
BigDecimal |
getAllowedDebt(ZECurrency currencyCode,
User user)
Returns maximal value of user's allowed debt. |
BigDecimal |
getAvailableAmount(ZECurrency currencyCode,
User user)
Returns available amount of the specified current user for the specified code. |
BigDecimal |
getHourPrice(BigDecimal rate,
ZECurrency currencyCode,
User user)
|
BigDecimal |
getHourRate(BigDecimal hourPrice,
ZECurrency currencyCode,
User user)
|
String[] |
getSupportedCurrencyCodes()
Return currencies codes that are supported by current provider. |
boolean |
isMoneyMovementEnabled(ZECurrency currencyCode)
Returns true if the money movement is enabled. |
boolean |
isOutlayAllowed(ZECurrency currencyCode,
User user,
BigDecimal amount)
Returns true if user is allowed outlay of the specified amount. |
void |
reserveAmount(BigDecimal amount,
ZECurrency currencyCode,
User user)
Reserves amount of money in the specified currency. |
void |
writeOn(BigDecimal amount,
ZECurrency currencyCode,
User consumer)
Writes on amount of money in the specified currency. |
Method Detail |
---|
String[] getSupportedCurrencyCodes()
BigDecimal getAvailableAmount(ZECurrency currencyCode, User user)
void reserveAmount(BigDecimal amount, ZECurrency currencyCode, User user)
void freeAmount(BigDecimal amount, ZECurrency currencyCode, User user)
void writeOn(BigDecimal amount, ZECurrency currencyCode, User consumer)
boolean isMoneyMovementEnabled(ZECurrency currencyCode)
BigDecimal getHourRate(BigDecimal hourPrice, ZECurrency currencyCode, User user)
BigDecimal getHourPrice(BigDecimal rate, ZECurrency currencyCode, User user)
BigDecimal getAllowedDebt(ZECurrency currencyCode, User user)
boolean isOutlayAllowed(ZECurrency currencyCode, User user, BigDecimal amount)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |