Package org.cyclos.impl.banking
Interface PaymentServiceLocal
-
- All Superinterfaces:
PaymentService,Service
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 requestPaymentconfirmOrder(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, BigDecimal amount, List<CustomFieldValueDTO> customValues)Create a payment when redeeming a voucherPaymentcreateForVoucherTopUp(Voucher voucher, User user, BigDecimal amount, List<CustomFieldValueDTO> customValues)Performs a payment for topping-up a voucherPaymentPreviewVOdoPreview(PerformPaymentDTO parameters, boolean validateCustomFields, boolean runExtensionPoints, SessionData receiver, PaymentCreationType creationType)Previews the payment.PaymentDatagetData(Payment payment, boolean includeTransfer)PaymentimportPayment(PerformPaymentDTO parameters, boolean sendNotifications)Imports a paymentvoidnotifyPaymentPerformed(Payment payment)PaymentPreviewVOpreviewAcceptPaymentRequest(PaymentRequest paymentRequest)Previews accepting the given payment requestPaymentPreviewVOpreviewApproveTicket(Ticket ticket)Previews approving the given ticketPaymentPreviewVOpreviewVoucherBuying(VoucherType type, User buyer, BigDecimal amount, List<CustomFieldValueDTO> customValues)Previews the payment performed on voucher buyingPaymentprocessTicket(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
Payment 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, BigDecimal amount, List<CustomFieldValueDTO> customValues)
Create a payment when redeeming a voucher
-
createForVoucherTopUp
Payment createForVoucherTopUp(Voucher voucher, User user, BigDecimal amount, List<CustomFieldValueDTO> customValues)
Performs a payment for topping-up a voucher
-
doPreview
PaymentPreviewVO doPreview(PerformPaymentDTO parameters, boolean validateCustomFields, boolean runExtensionPoints, SessionData receiver, PaymentCreationType creationType)
Previews the payment.- Parameters:
receiver- If not null, is the session data of the payment receiver. If null is not a receive payment
-
getData
PaymentData getData(Payment payment, boolean includeTransfer)
-
importPayment
Payment importPayment(PerformPaymentDTO parameters, boolean sendNotifications)
Imports a payment
-
notifyPaymentPerformed
void notifyPaymentPerformed(Payment payment)
-
previewAcceptPaymentRequest
PaymentPreviewVO previewAcceptPaymentRequest(PaymentRequest paymentRequest)
Previews accepting the given payment request
-
previewApproveTicket
PaymentPreviewVO previewApproveTicket(Ticket ticket)
Previews approving the given ticket
-
previewVoucherBuying
PaymentPreviewVO previewVoucherBuying(VoucherType type, User buyer, BigDecimal amount, List<CustomFieldValueDTO> customValues)
Previews the payment performed on voucher buying
-
-