Package org.cyclos.services.banking
Interface TransferService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
TransferServiceLocal
public interface TransferService extends Service
Service which allows access to transfers and scheduled payments. Not to confuse withPaymentService, which is used to perform the payments.
-
-
Field Summary
Fields Modifier and Type Field Description static BigDecimalMAX_TRANSFER_AMOUNT_EXCLUSIVEThe maximum amount of a transfers, exclusive.static intMAX_TRANSFER_AMOUNT_INTEGERSThe power of 10 for .
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Longchargeback(@NotNull TransferActionDTO params)Performs the chargeback for the given transfer, returning the chargeback transfer's id.
A chargeback transfer has the same (positive) amount of the original and the from / to swapped, i.e., the receiver of the original transfer becomes the payer of the chargeback and the payer becomes the recevier.
Transfers having a parent transfer, i.e.FileInfoexportTransfer(ExportFormatVO format, TransferVO transfer)Exports the given transfer to fileTransferDatagetData(@NotNull TransferVO vo)Returns details data for a transferTransferVOload(@NotNull Long id)Returns a transfer by id, or throwsEntityNotFoundExceptionif not foundTransferVOloadByTransactionNumber(@NotNull String transactionNumber)Returns a transfer by transaction number, or throwsEntityNotFoundExceptionif not found
-
-
-
Field Detail
-
MAX_TRANSFER_AMOUNT_INTEGERS
static final int MAX_TRANSFER_AMOUNT_INTEGERS
The power of 10 for .- See Also:
- Constant Field Values
-
MAX_TRANSFER_AMOUNT_EXCLUSIVE
static final BigDecimal MAX_TRANSFER_AMOUNT_EXCLUSIVE
The maximum amount of a transfers, exclusive. The actual max amount is less than this value, with the decimal digits defined by the currency.
-
-
Method Detail
-
chargeback
Long chargeback(@NotNull @NotNull TransferActionDTO params) throws FrameworkException, TransferException
Performs the chargeback for the given transfer, returning the chargeback transfer's id.
A chargeback transfer has the same (positive) amount of the original and the from / to swapped, i.e., the receiver of the original transfer becomes the payer of the chargeback and the payer becomes the recevier.
Transfers having a parent transfer, i.e. those generated by a fee, can not be charged back directly, only the root transfer can.
A chargeback can ignore the account limits, if the transfer type allows it.- Throws:
IllegalActionException- When the given transfer has already been charged back, it's a chargeback itself, or it's a childInsufficientBalanceException- When the source account of the chargeback transfer (i.e., the destination account of the original), or source account for any generated fee is limited and had insufficient balance for such a paymentUpperCreditLimitReachedException- When the destination account of the chargeback transfer (i.e., the source account of the original), or destination account for any generated fee is limited and would have more balance than the allowed maximumFrameworkExceptionTransferException
-
exportTransfer
FileInfo exportTransfer(ExportFormatVO format, TransferVO transfer) throws FrameworkException
Exports the given transfer to file- Throws:
FrameworkException
-
getData
TransferData getData(@NotNull @NotNull TransferVO vo) throws FrameworkException
Returns details data for a transfer- Throws:
FrameworkException
-
load
TransferVO load(@NotNull @NotNull Long id) throws FrameworkException
Returns a transfer by id, or throwsEntityNotFoundExceptionif not found- Throws:
FrameworkException
-
loadByTransactionNumber
TransferVO loadByTransactionNumber(@NotNull @NotNull String transactionNumber) throws FrameworkException
Returns a transfer by transaction number, or throwsEntityNotFoundExceptionif not found- Throws:
FrameworkException
-
-