Generated by
JDiff

Interface org.cyclos.impl.banking.AccountServiceLocal

Added Methods
VoucherAmountReservation dereserveAmountIfNeeded(Voucher) If the voucher pack had an amount reservation, dereserve the amount for the given voucher
VoucherPackAmountReservation reserveAmountIfNeeded(VoucherPack) Reserves the total amount for the given voucher pack (count * amount) on the source account of the redeem type, if that account is limited.
 

Changed Methods
boolean canDispose(Collection<UserAccount>) Documentation changed from old to new.
checks if the accounts can be disposed safely.
void createMissingOrActivateAccount(UserAccountType, ProductOwner) Documentation changed from old to new.
Creates the account for the given account type if it still doesn't exists for the given ProductOwner, or activates it.
PendingAuthorizationAmountReservation dereserveAmountForAuthorization(BasePayment) Documentation changed from old to new.
Dereserves the amount for the transaction which was previously awaiting authorization
void disposeAccounts(User, Collection<UserAccount>) Documentation changed from old to new.
Disables the given accounts of the given user.
Note that the calling method is responsible for checking if this account really needs to be disposed (for example because it is associated via another product).

The method does the following:
  • cancel all user's webshop orders with any pending status.
String generateNumber(AccountType, InternalAccountOwner) Documentation changed from old to new.
Generates an unique account number for the given type and owner.
List<AccountWithStatusVO> getAccountsWithStatus(InternalAccountOwner, Date, Date, boolean) Documentation changed from old to new.
Similar to .list(InternalAccountOwner), but returns each account with the account status, at the given time point.
BigDecimal getAverageBalance(Account, BigDecimal, DatePeriod, boolean, BigDecimal) Documentation changed from old to new.
Returns the balance average for the given account over the given period.
String getOwnerName(Account) Documentation changed from old to new.
Returns the owner name: if is a system account, get the system account type.
boolean hasTransfers(Set<UserAccountType>, Set<Group>) Documentation changed from old to new.
Returns true if there is at least one transfer performed from or to a user of any of the specified groups, to or from any of the given accounts.
AccountWithStatusVO toAccountWithStatus(Account, Date, Date, boolean) Documentation changed from old to new.
Converts the given account with AccountWithStatusVO, getting the status at the given time point.
void checkActive(AccountOwner) Documentation changed from old to new.
Checks that the given account owner is active, throwing an IllegalActionException in case it is a removed or pending user
void checkActive(Account) Documentation changed from old to new.
Checks that the given account is active, throwing an IllegalActionException in case it is an inactive user account, or the owner is inactive