Package org.cyclos.services.banking
Interface PaymentRequestService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
PaymentRequestServiceLocal
public interface PaymentRequestService extends Service
Service interface to perform payment requests and for searching and retrieve information about payment requests.- See Also:
TransactionService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PaymentRequestVOaccept(@NotNull AcceptPaymentRequestDTO params)Accepts a payment request.voidcancel(@NotNull PaymentRequestActionDTO params)Cancels a payment request (as payee)voidchangeExpirationDate(@NotNull ChangePaymentRequestExpirationDateDTO params)Changes the payment request's expiration date as payee, admin or broker only if permissions are granted.voiddeny(@NotNull PaymentRequestActionDTO params)Denies a payment request (as payer)PaymentRequestDatagetData(@NotNull Long id)Returns data about a payment requestRequestPaymentDatagetRequestData(InternalAccountOwner payee, InternalAccountOwner payer, TransferTypeVO paymentType)Returns data used to request a paymentRequestPaymentPayerDatagetRequestPaymentPayerData(InternalAccountOwner payee, InternalAccountOwner payer)Returns data used to request a payment from a specific ownerRequestPaymentTypeDatagetRequestPaymentTypeData(InternalAccountOwner payee, InternalAccountOwner payer, TransferTypeVO transferType)Returns the data for a specific payment type on a payment request from / to the given ownersAcceptPaymentRequestPreviewVOpreviewAccept(@NotNull PaymentRequestVO paymentRequest)Previews the payment which would be performed when accepting the given payment requestPaymentRequestVOreschedule(@NotNull AcceptPaymentRequestDTO params)Reschedules a payment request.PaymentRequestVOsend(@NotNull SendPaymentRequestDTO parameters)Sends a payment request
-
-
-
Method Detail
-
accept
PaymentRequestVO accept(@NotNull @NotNull AcceptPaymentRequestDTO params) throws FrameworkException, TransferException
Accepts a payment request. May process immediately or schedule for processing in a future date. Returns the updated payment request information.
-
cancel
void cancel(@NotNull @NotNull PaymentRequestActionDTO params) throws FrameworkExceptionCancels a payment request (as payee)- Throws:
FrameworkException
-
changeExpirationDate
void changeExpirationDate(@NotNull @NotNull ChangePaymentRequestExpirationDateDTO params) throws FrameworkExceptionChanges the payment request's expiration date as payee, admin or broker only if permissions are granted.- Throws:
FrameworkException
-
deny
void deny(@NotNull @NotNull PaymentRequestActionDTO params) throws FrameworkExceptionDenies a payment request (as payer)- Throws:
FrameworkException
-
getData
PaymentRequestData getData(@NotNull @NotNull Long id) throws FrameworkException
Returns data about a payment request- Throws:
FrameworkException
-
getRequestData
RequestPaymentData getRequestData(InternalAccountOwner payee, InternalAccountOwner payer, TransferTypeVO paymentType) throws FrameworkException
Returns data used to request a payment- Throws:
FrameworkException
-
getRequestPaymentPayerData
RequestPaymentPayerData getRequestPaymentPayerData(InternalAccountOwner payee, InternalAccountOwner payer) throws FrameworkException
Returns data used to request a payment from a specific owner- Throws:
FrameworkException
-
getRequestPaymentTypeData
RequestPaymentTypeData getRequestPaymentTypeData(InternalAccountOwner payee, InternalAccountOwner payer, TransferTypeVO transferType) throws FrameworkException
Returns the data for a specific payment type on a payment request from / to the given owners- Throws:
FrameworkException
-
previewAccept
AcceptPaymentRequestPreviewVO previewAccept(@NotNull @NotNull PaymentRequestVO paymentRequest) throws FrameworkException
Previews the payment which would be performed when accepting the given payment request- Throws:
FrameworkException
-
reschedule
PaymentRequestVO reschedule(@NotNull @NotNull AcceptPaymentRequestDTO params) throws FrameworkException
Reschedules a payment request. If the new processing date is null, will process the payment request immediately. Otherwise, changes the processing date for the given one.- Throws:
FrameworkException
-
send
PaymentRequestVO send(@NotNull @NotNull SendPaymentRequestDTO parameters) throws FrameworkException
Sends a payment request- Throws:
FrameworkException
-
-