@Immutable public interface Wallet
Modifier and Type | Interface and Description |
---|---|
static class |
Wallet.Empty
Empty wallet doing nothing.
|
static class |
Wallet.NotEnoughFundsException
When not enough funds in the wallet.
|
void charge(@NotNull(message="details can\'t be NULL") String details, @NotNull(message="amount can\'t be NULL") Dollars amount)
details
- Description of operationamount
- Amount of money to chargeWallet delegate(@NotNull(message="URN can\'t be NULL") com.jcabi.urn.URN urn, @NotNull(message="rule name can\'t be NULL") String rule) throws Wallet.NotEnoughFundsException
urn
- URN of another userrule
- Name of the ruleWallet.NotEnoughFundsException
- If not enoughCopyright © 2009–2014 Rultor Inc.. All rights reserved.