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(@NotNull
ScheduledPaymentActionDTO params)
throws FrameworkException
FrameworkExceptionjava.util.List<ScheduledPaymentInstallmentDTO> calculateInstallments(@NotNull CalculateInstallmentsDTO dto) throws FrameworkException
FrameworkExceptionjava.util.List<ScheduledPaymentInstallmentDTO> calculateInstallmentsReceive(@NotNull CalculateInstallmentsDTO dto) throws FrameworkException
FrameworkExceptionvoid cancel(@NotNull
ScheduledPaymentActionDTO params)
throws FrameworkException
FrameworkExceptionScheduledPaymentData getData(@NotNull java.lang.Long id) throws FrameworkException
FrameworkExceptionScheduledPaymentVO perform(@NotNull PerformScheduledPaymentDTO scheduledPayment) throws TransferException, FrameworkException
ScheduledPaymentPreviewVO preview(@NotNull PerformScheduledPaymentDTO parameters) throws FrameworkException
FrameworkExceptionScheduledPaymentPreviewVO previewReceive(@NotNull PerformScheduledPaymentDTO parameters) throws FrameworkException
FrameworkExceptionSerializableInputStream print(@NotNull java.lang.Long id) throws FrameworkException, ReportExecutionException
SerializableInputStream printScheduledPayments(@NotNull ScheduledPaymentQuery query)
java.lang.Long processInstallment(@NotNull
ScheduledPaymentInstallmentActionDTO params)
throws TransferException,
FrameworkException
ScheduledPaymentVO receive(@NotNull PerformScheduledPaymentDTO scheduledPayment) throws TransferException, PosPayerException, FrameworkException
Page<ScheduledPaymentEntryVO> search(@NotNull ScheduledPaymentQuery query) throws FrameworkException
FrameworkExceptionPage<ScheduledPaymentInstallmentEntryVO> searchInstallments(@NotNull ScheduledPaymentInstallmentQuery query) throws FrameworkException
FrameworkExceptionvoid settleInstallment(@NotNull
ScheduledPaymentInstallmentActionDTO params)
throws FrameworkException
ScheduledPaymentInstallmentStatus.SETTLED if the status is not
terminal.FrameworkExceptionScheduledPaymentInstallmentStatus.isTerminal()void settleRemaining(@NotNull
ScheduledPaymentActionDTO params)
throws FrameworkException
ScheduledPaymentInstallmentStatus.SETTLED, and
closes the scheduled paymentFrameworkExceptionScheduledPaymentInstallmentStatus.isTerminal()void unblock(@NotNull
ScheduledPaymentActionDTO params)
throws FrameworkException
FrameworkException