Package org.cyclos.impl.banking
Interface PaymentServiceLocal
-
- All Superinterfaces:
PaymentService,Service
- All Known Implementing Classes:
PaymentServiceImpl
public interface PaymentServiceLocal extends PaymentService
Local interface for payment service
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PaymentacceptExternalPayment(ExternalPayment externalPayment, User destinationUser)Performs the payment for the given external paymentPaymentacceptPaymentRequest(PaymentRequest paymentRequest)Performs the payment for the given payment requestOrderPaymentconfirmOrder(Order order)Performs the payment related to the given order, returning the reserved amount, if anyPaymentcreateForVoucherBuying(VoucherType type, User buyer, BigDecimal amount, List<CustomFieldValueDTO> customValues)Generate a payment when buying a voucherPaymentcreateForVoucherRedeeming(Voucher voucher, User user, List<CustomFieldValueDTO> customValues)Create a payment when redeeming a voucherPaymentPreviewVOdoPreview(PerformPaymentDTO parameters, boolean validateCustomFields, boolean runExtensionPoints, SessionData receiver)Previews the payment.PaymentimportPayment(PerformPaymentDTO parameters, boolean sendNotifications)Imports a paymentPaymentPreviewVOpreviewAcceptPaymentRequest(PaymentRequest paymentRequest)Previews accepting the given payment requestPaymentPreviewVOpreviewApproveTicket(Ticket ticket)Previews approving the given ticketPaymentprocessTicket(Ticket ticket)Performs a payment for the given ticketPaymentrefund(Voucher voucher)Performs a payment for refunding the given voucher-
Methods inherited from interface org.cyclos.services.banking.PaymentService
getData, perform, preview, previewReceive, receive, validate
-
-
-
-
Method Detail
-
acceptExternalPayment
Payment acceptExternalPayment(ExternalPayment externalPayment, User destinationUser)
Performs the payment for the given external payment- Parameters:
destinationUser- The user that will receive the payment
-
acceptPaymentRequest
Payment acceptPaymentRequest(PaymentRequest paymentRequest)
Performs the payment for the given payment request
-
confirmOrder
OrderPayment confirmOrder(Order order)
Performs the payment related to the given order, returning the reserved amount, if any
-
createForVoucherBuying
Payment createForVoucherBuying(VoucherType type, User buyer, BigDecimal amount, List<CustomFieldValueDTO> customValues)
Generate a payment when buying a voucher
-
createForVoucherRedeeming
Payment createForVoucherRedeeming(Voucher voucher, User user, List<CustomFieldValueDTO> customValues)
Create a payment when redeeming a voucher
-
doPreview
PaymentPreviewVO doPreview(PerformPaymentDTO parameters, boolean validateCustomFields, boolean runExtensionPoints, SessionData receiver)
Previews the payment.- Parameters:
receiver- If not null, is the session data of the payment receiver. If null is not a receive payment
-
importPayment
Payment importPayment(PerformPaymentDTO parameters, boolean sendNotifications)
Imports a payment
-
previewAcceptPaymentRequest
PaymentPreviewVO previewAcceptPaymentRequest(PaymentRequest paymentRequest)
Previews accepting the given payment request
-
previewApproveTicket
PaymentPreviewVO previewApproveTicket(Ticket ticket)
Previews approving the given ticket
-
-