public interface PaymentService extends Service
TransactionService#getPaymentData(org.cyclos.model.banking.accounts.InternalAccountOwner, org.cyclos.model.banking.accounts.AccountOwner)
.
Then, at a certain point, the user can preview(PerformPaymentDTO) and eventually
perform(PerformPaymentDTO) the payment.TransactionService,
ScheduledPaymentService| Modifier and Type | Method and Description |
|---|---|
PaymentData |
getData(@NotNull java.lang.Long id)
Returns data about a payment
|
PaymentVO |
perform(@NotNull PerformPaymentDTO parameters)
Performs a payment, according to the given parameters, returning the resulting payment.
|
PaymentPreviewVO |
preview(@NotNull PerformPaymentDTO parameters)
Previews a payment to be performed
|
PaymentPreviewVO |
previewReceive(@NotNull PerformPaymentDTO parameters)
Previews a payment to be received
|
SerializableInputStream |
print(@NotNull java.lang.Long id)
Generates a PDF file with the details for a payment.
|
PaymentVO |
receive(@NotNull PerformPaymentDTO parameters)
Receives a payment, according to the given parameters, returning the resulting payment.
|
Page<PaymentEntryVO> |
search(@NotNull PaymentQuery query)
Searches for payments, according to the given query
|
void |
validate(@NotNull PerformPaymentDTO parameters)
Validates the parameters to perform a payment without actually performing the payment.
|
PaymentData getData(@NotNull @NotNull java.lang.Long id) throws FrameworkException
FrameworkExceptionPaymentVO perform(@NotNull @NotNull PerformPaymentDTO parameters) throws TransferException, FrameworkException
InsufficientBalanceException - When the source account, or source account for any generated fee is limited
and had insufficient balance
for such a paymentMaxAmountPerDayExceededException - When the maximum amount for payments of this transfer type has been
exceeded, according to the
transfer type configurationUpperCreditLimitReachedException - When the destination account, or destination account for any generated
fee is limited and would have
more balance than the allowed maximumPasswordException - When the confirmation password doesn't matchTransferExceptionFrameworkExceptionPaymentPreviewVO preview(@NotNull @NotNull PerformPaymentDTO parameters) throws FrameworkException
FrameworkExceptionPaymentPreviewVO previewReceive(@NotNull @NotNull PerformPaymentDTO parameters) throws FrameworkException
FrameworkExceptionSerializableInputStream print(@NotNull @NotNull java.lang.Long id) throws FrameworkException, ReportExecutionException
ReportExecutionException - if there is an error generating the PDF.FrameworkExceptionPaymentVO receive(@NotNull @NotNull PerformPaymentDTO parameters) throws TransferException, PosPayerException, FrameworkException
TransferExceptionPosPayerExceptionFrameworkExceptionperform(PerformPaymentDTO)Page<PaymentEntryVO> search(@NotNull @NotNull PaymentQuery query) throws FrameworkException
FrameworkExceptionvoid validate(@NotNull
@NotNull PerformPaymentDTO parameters)
throws FrameworkException
FrameworkException