public interface BalanceTransferService
| Modifier and Type | Method and Description |
|---|---|
void |
acceptBlockedTransfer(long transferId)
Accepts the given transfer.
|
long |
createBlockedTransfer(String transferCode,
long creditorAccountId,
long debtorAccountId,
BigDecimal amount,
String notes)
Creates a new transfer with status
TransferStatus.BLOCKED. |
long |
createInstantTransfer(String transferCode,
long creditorAccountId,
long debtorAccountId,
BigDecimal amount,
String notes)
Creates two new transfer with status
TransferStatus.SUCCESSFUL. |
BalanceTransfer |
findTransferById(long transferId) |
org.everit.commons.selection.LimitedResult<BalanceTransfer> |
findTransfers(TransferFilter filter,
TransferOrder order,
org.everit.commons.selection.Limit limit)
Finds the transfers based on the parameters.
|
BalanceTransfer[] |
findTransfersByPairId(String transferPairId) |
void |
rejectBlockedTransfer(long transferId)
Rejects the given transfer.
|
void acceptBlockedTransfer(long transferId)
TransferStatus.BLOCKEDTransferStatus.SUCCESSFULTransferStatus.SUCCESSFUL transfer must be created with reversed
accounts and opposite sign of credit amounttransferId - The ID of the transfer to accept.long createBlockedTransfer(String transferCode, long creditorAccountId, long debtorAccountId, BigDecimal amount, String notes)
TransferStatus.BLOCKED. The following
steps must be done in one transaction:
TransferStatus.BLOCKED transfer must be created with the given
parameterstransferCode - The external code of the transfer to support filtering and grouping certain transfers.creditorAccountId - The ID of the creditor account.debtorAccountId - The ID of the debtor account.amount - The amount of the transfered credit. Must be a positive number. Cannot be null.notes - The notes belonging of the transfer.long createInstantTransfer(String transferCode, long creditorAccountId, long debtorAccountId, BigDecimal amount, String notes)
TransferStatus.SUCCESSFUL. The following
steps must be done in one transaction:
TransferStatus.SUCCESSFUL transfer must be created with the given
parametersTransferStatus.SUCCESSFUL transfer must be created with
reversed accounts and opposite sign of credit amounttransferCode - The external code of the transfer to support filtering and grouping certain transfers.creditorAccountId - The ID of the creditor account.debtorAccountId - The ID of the debtor account.amount - The amount of the transfered credit. Must be a positive number. Cannot be null.notes - The notes belonging of the transfer.BalanceTransfer findTransferById(long transferId)
org.everit.commons.selection.LimitedResult<BalanceTransfer> findTransfers(TransferFilter filter, TransferOrder order, org.everit.commons.selection.Limit limit)
BalanceTransfer
instances will be returned, furthermore the Id
property of the creditor account and the
debtor account will also be loaded, but the further properties of
the accounts won't be queried.filter - Filter parameters for listing transfers.order - The desired ordering of the result list. Cannot be null.limit - The Limit of the query. Cannot be null.BalanceTransfer[] findTransfersByPairId(String transferPairId)
void rejectBlockedTransfer(long transferId)
TransferStatus.BLOCKEDTransferStatus.REJECTEDtransferId - The ID of the transfer to reject.Copyright © 2011–2014 Everit Kft.. All rights reserved.