|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MoneyManager
| Method Summary | |
|---|---|
void |
freeAmount(BigDecimal amount,
ZECurrency currencyCode,
User user)
Frees amount of money in the specified currency. |
BigDecimal |
getAllowedDebt(ZECurrency currency,
User user)
Returns maximum allowed debt for user in the specified currency. |
BigDecimal |
getAvailableAmount(ZECurrency currency,
User user)
Returns available amount of the specified current user for the specified code. |
ZECurrency |
getDefaultCurrency()
Returns default currency. |
BigDecimal |
getHourPrice(BigDecimal hourRate,
ZECurrency currency,
User currentUser)
Returns price of the hour according the specified rate. |
BigDecimal |
getHourRate(BigDecimal hoursPrice,
ZECurrency currency,
User user)
Returns the hour rate. |
Set<String> |
getSupportedCurrencies()
Returns the codes of the supported currencies. |
boolean |
isAutoMovementEnabled(ZECurrency currency)
Returns true if the money movement is enabled for the specified currency. |
boolean |
isCurrencyManagetExists(ZECurrency currency)
Returns true if the currency manager exists. |
boolean |
isOutlayAllowed(ZECurrency che,
User user,
BigDecimal amount)
Returns true if user is allowed outlay of the specified amount. |
void |
performAutoMovement(Collection<PayerData> payersData,
Collection<User> consumers)
Performs money movement. |
void |
reconcile(Set<PayerData> usersEfforts)
Reconcile users. |
void |
reserveAmount(BigDecimal amount,
ZECurrency currency,
User user)
Reserves amount of money in the specified currency. |
| Method Detail |
|---|
BigDecimal getAvailableAmount(ZECurrency currency,
User user)
void reserveAmount(BigDecimal amount,
ZECurrency currency,
User user)
void freeAmount(BigDecimal amount,
ZECurrency currencyCode,
User user)
void performAutoMovement(Collection<PayerData> payersData,
Collection<User> consumers)
Set<String> getSupportedCurrencies()
boolean isAutoMovementEnabled(ZECurrency currency)
boolean isCurrencyManagetExists(ZECurrency currency)
BigDecimal getHourRate(BigDecimal hoursPrice,
ZECurrency currency,
User user)
BigDecimal getHourPrice(BigDecimal hourRate,
ZECurrency currency,
User currentUser)
void reconcile(Set<PayerData> usersEfforts)
BigDecimal getAllowedDebt(ZECurrency currency,
User user)
boolean isOutlayAllowed(ZECurrency che,
User user,
BigDecimal amount)
ZECurrency getDefaultCurrency()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||