public interface ScheduledPaymentService extends Service
TransactionService#getPaymentData(org.cyclos.model.banking.accounts.InternalAccountOwner, 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
|
java.util.List<ScheduledPaymentInstallmentDTO> |
calculateInstallmentsReceive(CalculateInstallmentsDTO dto)
Calculates future installments for the given parameters on a receive payment
|
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 data
|
ScheduledPaymentPreviewVO |
preview(PerformScheduledPaymentDTO parameters)
Previews a scheduled payment to be performed
|
ScheduledPaymentPreviewVO |
previewReceive(PerformScheduledPaymentDTO parameters)
Previews a scheduled payment to be received
|
SerializableInputStream |
print(java.lang.Long id)
Generates a PDF file with the details of a scheduled payment.
|
SerializableInputStream |
printScheduledPayments(ScheduledPaymentQuery query)
Generates a PDF with the scheduled payment list result.
|
java.lang.Long |
processInstallment(ScheduledPaymentInstallmentActionDTO params)
Process the given installment if it's status is not terminal, returning the resulting transfer id
|
ScheduledPaymentVO |
receive(PerformScheduledPaymentDTO scheduledPayment)
Receives a scheduled payment, returning its data
|
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
FrameworkExceptionjava.util.List<ScheduledPaymentInstallmentDTO> calculateInstallmentsReceive(CalculateInstallmentsDTO dto) throws FrameworkException
FrameworkExceptionvoid cancel(ScheduledPaymentActionDTO params) throws FrameworkException
FrameworkExceptionScheduledPaymentData getData(java.lang.Long id) throws FrameworkException
FrameworkExceptionScheduledPaymentVO perform(PerformScheduledPaymentDTO scheduledPayment) throws TransferException, FrameworkException
ScheduledPaymentPreviewVO preview(PerformScheduledPaymentDTO parameters) throws FrameworkException
FrameworkExceptionScheduledPaymentPreviewVO previewReceive(PerformScheduledPaymentDTO parameters) throws FrameworkException
FrameworkExceptionSerializableInputStream print(java.lang.Long id) throws FrameworkException, ReportExecutionException
SerializableInputStream printScheduledPayments(ScheduledPaymentQuery query)
java.lang.Long processInstallment(ScheduledPaymentInstallmentActionDTO params) throws TransferException, FrameworkException
ScheduledPaymentVO receive(PerformScheduledPaymentDTO scheduledPayment) throws TransferException, FrameworkException
Page<ScheduledPaymentEntryVO> search(ScheduledPaymentQuery query) throws FrameworkException
FrameworkExceptionPage<ScheduledPaymentInstallmentEntryVO> searchInstallments(ScheduledPaymentInstallmentQuery query) throws FrameworkException
FrameworkExceptionvoid settleInstallment(ScheduledPaymentInstallmentActionDTO params) throws FrameworkException
ScheduledPaymentInstallmentStatus.SETTLED if the status is not
terminal.FrameworkExceptionScheduledPaymentInstallmentStatus.isTerminal()void settleRemaining(ScheduledPaymentActionDTO params) throws FrameworkException
ScheduledPaymentInstallmentStatus.SETTLED, and
closes the scheduled paymentFrameworkExceptionScheduledPaymentInstallmentStatus.isTerminal()void unblock(ScheduledPaymentActionDTO params) throws FrameworkException
FrameworkException