Package org.cyclos.impl.banking
Interface TransferFeeServiceLocal
-
- All Superinterfaces:
CRUDService<TransferFeeDTO,TransferFeeData,TransferTypeVO>,CRUDServiceLocal<TransferFee,TransferFeeDTO,TransferFeeData,TransferTypeVO>,Service,TransferFeeService
- All Known Implementing Classes:
TransferFeeServiceImpl
public interface TransferFeeServiceLocal extends TransferFeeService, CRUDServiceLocal<TransferFee,TransferFeeDTO,TransferFeeData,TransferTypeVO>
Local interface for transaction fees
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_FEEScript attribute: fee being chargedstatic StringATTR_PREVIEW_PARAMETERSScript attribute: ThePerformPaymentDTObeing previewedstatic StringATTR_TRANSFERScript attribute: parent transfer (transfer which triggered the fee)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransferFeeTransferbuildTransfer(PerformTransactionDTO performTransaction, TransferFee fee, Transfer parent)Builds the transfer which would pay the given fee when the given original transfer is performedList<TransferFee>listAll(TransferType transferType)Returns all fees for the given transfer typeTransferFeesPreviewVOpreview(PerformTransactionDTO performTransaction, PaymentTransferType paymentType, InternalAccountOwner fromOwner, InternalAccountOwner toOwner, BigDecimal originalAmount)Preview the fees which would be generated by the given payment-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
Methods inherited from interface org.cyclos.services.banking.TransferFeeService
list, listPossibleGeneratedTransferTypes
-
-
-
-
Field Detail
-
ATTR_PREVIEW_PARAMETERS
static final String ATTR_PREVIEW_PARAMETERS
Script attribute: ThePerformPaymentDTObeing previewed- See Also:
- Constant Field Values
-
ATTR_FEE
static final String ATTR_FEE
Script attribute: fee being charged- See Also:
- Constant Field Values
-
ATTR_TRANSFER
static final String ATTR_TRANSFER
Script attribute: parent transfer (transfer which triggered the fee)- See Also:
- Constant Field Values
-
-
Method Detail
-
buildTransfer
TransferFeeTransfer buildTransfer(@Nullable PerformTransactionDTO performTransaction, TransferFee fee, Transfer parent)
Builds the transfer which would pay the given fee when the given original transfer is performed
-
listAll
List<TransferFee> listAll(TransferType transferType)
Returns all fees for the given transfer type
-
preview
TransferFeesPreviewVO preview(PerformTransactionDTO performTransaction, PaymentTransferType paymentType, InternalAccountOwner fromOwner, InternalAccountOwner toOwner, BigDecimal originalAmount)
Preview the fees which would be generated by the given payment
-
-