public Money ask(Money money) { try { wallet.take(money); return money; } catch (OutOfMoneyException e) { return Money.nothing(money.getCurrency()); } }
public Collection<Money> reportBalances() { return new ArrayList<>(wallet.checkBalances().values()); }
public void give(Money money) { wallet.put(money); }