Package org.cyclos.services.banking
Interface RecurringPaymentService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
RecurringPaymentServiceLocal
- All Known Implementing Classes:
RecurringPaymentServiceImpl,RecurringPaymentServiceSecurity
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 voidcancel(@NotNull RecurringPaymentActionDTO params)Permanently cancels the given recurring payment, so installments will never be processedRecurringPaymentDatagetData(@NotNull Long id)Returns data about a 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 data
-
-
-
Method Detail
-
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
-
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
-
-