public interface ScheduledPaymentService extends Service
TransactionService.getPaymentData(org.cyclos.model.banking.accounts.AccountOwner, org.cyclos.model.banking.accounts.AccountOwner).
Then, at a certain point, the user can calculateInstallments(CalculateInstallmentsDTO), preview(PerformScheduledPaymentDTO) and
eventually perform(PerformScheduledPaymentDTO) the scheduled payment.TransactionService,
PaymentService| Modifier and Type | Method and Description |
|---|---|
void |
block(ScheduledPaymentActionDTO params)
Blocks the given scheduled payment, so installments won't be processed on their respective due dates
|
java.util.List<ScheduledPaymentInstallmentDTO> |
calculateInstallments(CalculateInstallmentsDTO dto)
Calculates future installments for the given parameters
|
void |
cancel(ScheduledPaymentActionDTO params)
Permanently cancels the given scheduled payment, so installments will never be processed
|
ScheduledPaymentData |
getData(java.lang.Long id)
Returns data about a scheduled payment
|
ScheduledPaymentVO |
perform(PerformScheduledPaymentDTO scheduledPayment)
Performs an scheduled payment, returning its identifier
|
ScheduledPaymentPreviewVO |
preview(PerformScheduledPaymentDTO parameters)
Previews a scheduled payment
|
SerializableInputStream |
print(java.lang.Long id)
Generates a PDF file with the details of a scheduled payment.
|
java.lang.Long |
processInstallment(ScheduledPaymentInstallmentActionDTO params)
Process the given installment if it's status is not terminal, returning the resulting transfer id
|
Page<ScheduledPaymentEntryVO> |
search(ScheduledPaymentQuery query)
Searches for scheduled payments, according to the given query
|
Page<ScheduledPaymentInstallmentEntryVO> |
searchInstallments(ScheduledPaymentInstallmentQuery query)
Searches for scheduled payment installments, according to the given query
|
void |
settleInstallment(ScheduledPaymentInstallmentActionDTO params)
Marks the given installment status as
ScheduledPaymentInstallmentStatus.SETTLED if the status is not terminal. |
void |
settleRemaining(ScheduledPaymentActionDTO params)
Marks all installments whose status is not terminal as
ScheduledPaymentInstallmentStatus.SETTLED, and closes the scheduled payment |
void |
unblock(ScheduledPaymentActionDTO params)
Unlocks the given scheduled payment, so installments will be processed on their respective due dates
|
void block(ScheduledPaymentActionDTO params) throws FrameworkException
FrameworkExceptionjava.util.List<ScheduledPaymentInstallmentDTO> calculateInstallments(CalculateInstallmentsDTO dto) throws FrameworkException
FrameworkExceptionvoid cancel(ScheduledPaymentActionDTO params) throws FrameworkException
FrameworkExceptionScheduledPaymentData getData(java.lang.Long id) throws FrameworkException
FrameworkExceptionScheduledPaymentVO perform(PerformScheduledPaymentDTO scheduledPayment) throws FrameworkException, TransferException
FrameworkExceptionTransferExceptionScheduledPaymentPreviewVO preview(PerformScheduledPaymentDTO parameters) throws FrameworkException, TransferException
FrameworkExceptionTransferExceptionSerializableInputStream print(java.lang.Long id) throws FrameworkException, ReportExecutionException
java.lang.Long processInstallment(ScheduledPaymentInstallmentActionDTO params) throws FrameworkException, TransferException
Page<ScheduledPaymentEntryVO> search(ScheduledPaymentQuery query) throws FrameworkException
FrameworkExceptionPage<ScheduledPaymentInstallmentEntryVO> searchInstallments(ScheduledPaymentInstallmentQuery query) throws FrameworkException
FrameworkExceptionvoid settleInstallment(ScheduledPaymentInstallmentActionDTO params) throws FrameworkException, TransferException
ScheduledPaymentInstallmentStatus.SETTLED if the status is not terminal.void settleRemaining(ScheduledPaymentActionDTO params) throws FrameworkException, TransferException
ScheduledPaymentInstallmentStatus.SETTLED, and closes the scheduled paymentvoid unblock(ScheduledPaymentActionDTO params) throws FrameworkException
FrameworkException