Package org.cyclos.services.banking
Interface RecurringPaymentService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
RecurringPaymentServiceLocal
public interface RecurringPaymentService extends Service
Service interface to perform recurring payments and for searching and retrieve information about a recurring payment. A recurring payment is a transaction, and performing a recurring payment normally starts by usingTransactionService.getPaymentData(org.cyclos.model.banking.accounts.InternalAccountOwner, org.cyclos.model.banking.accounts.InternalAccountOwner, org.cyclos.model.banking.transfertypes.TransferTypeVO).preview(PerformRecurringPaymentDTO)and eventuallyperform(PerformRecurringPaymentDTO)the recurring payment.- See Also:
TransactionService,PaymentService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidblock(@NotNull RecurringPaymentActionDTO params)Blocks the given recurring payment, so installments won't be processed on their respective due datesvoidcancel(@NotNull RecurringPaymentActionDTO params)Permanently cancels the given recurring payment, so installments will never be processedRecurringPaymentDatagetData(@NotNull Long id)Returns data about a recurring paymentRecurringPaymentEditDatagetEditData(@NotNull RecurringPaymentVO vo)Returns data for edition about a recurring paymentvoidmodify(@NotNull RecurringPaymentDTO recurringPayment, String confirmationPassword)Modifies the given recurring paymentRecurringPaymentVOperform(@NotNull PerformRecurringPaymentDTO recurringPayment)Performs an recurring payment, returning its dataRecurringPaymentPreviewVOpreview(@NotNull PerformRecurringPaymentDTO parameters)Previews a recurring payment to be performedRecurringPaymentPreviewVOpreviewReceive(@NotNull PerformRecurringPaymentDTO parameters)Previews a recurring payment to be receivedTransferVOprocessFailure(@NotNull InstallmentActionDTO params)Processes a failed occurrenceRecurringPaymentVOreceive(@NotNull PerformRecurringPaymentDTO recurringPayment)Receives a recurring payment, returning its datavoidunblock(@NotNull RecurringPaymentActionDTO params)Unlocks the given recurring payment, so installments will be processed on their respective due dates
-
-
-
Method Detail
-
block
void block(@NotNull @NotNull RecurringPaymentActionDTO params) throws FrameworkExceptionBlocks the given recurring payment, so installments won't be processed on their respective due dates- Throws:
FrameworkException
-
cancel
void cancel(@NotNull @NotNull RecurringPaymentActionDTO params) throws FrameworkExceptionPermanently cancels the given recurring payment, so installments will never be processed- Throws:
FrameworkException
-
getData
RecurringPaymentData getData(@NotNull @NotNull Long id) throws FrameworkException
Returns data about a recurring payment- Throws:
FrameworkException
-
getEditData
RecurringPaymentEditData getEditData(@NotNull @NotNull RecurringPaymentVO vo) throws FrameworkException
Returns data for edition about a recurring payment- Throws:
FrameworkException
-
modify
void modify(@NotNull @NotNull RecurringPaymentDTO recurringPayment, String confirmationPassword) throws FrameworkExceptionModifies the given recurring payment- Throws:
FrameworkException
-
perform
RecurringPaymentVO perform(@NotNull @NotNull PerformRecurringPaymentDTO recurringPayment) throws TransferException, FrameworkException
Performs an recurring payment, returning its data
-
preview
RecurringPaymentPreviewVO preview(@NotNull @NotNull PerformRecurringPaymentDTO parameters) throws FrameworkException
Previews a recurring payment to be performed- Throws:
FrameworkException
-
previewReceive
RecurringPaymentPreviewVO previewReceive(@NotNull @NotNull PerformRecurringPaymentDTO parameters) throws FrameworkException
Previews a recurring payment to be received- Throws:
FrameworkException
-
processFailure
TransferVO processFailure(@NotNull @NotNull InstallmentActionDTO params) throws FrameworkException, TransferException
Processes a failed occurrence- Throws:
FrameworkExceptionTransferException
-
receive
RecurringPaymentVO receive(@NotNull @NotNull PerformRecurringPaymentDTO recurringPayment) throws TransferException, PosPayerException, FrameworkException
Receives a recurring payment, returning its data
-
unblock
void unblock(@NotNull @NotNull RecurringPaymentActionDTO params) throws FrameworkExceptionUnlocks the given recurring payment, so installments will be processed on their respective due dates- Throws:
FrameworkException
-
-