Package org.cyclos.services.banking
Interface EasyInvoiceService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
EasyInvoiceServiceLocal
public interface EasyInvoiceService extends Service
Service interface to perform direct payments (scheduled and recurring are not supported) originated form an EasyInvoice. An easy invoice is a pre-filled payment to an user.
All methods in this service run through theBuiltInChannel.EASY_INVOICEchannel For searching and retrieve information about a payment use thePaymentService.- See Also:
PaymentService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SerializableInputStreambarcode(@NotNull EasyInvoiceBarcodeParams params)Generates a QR-Code image for the givenPerformPaymentDTOEasyInvoiceDatagetEasyInvoiceData(PerformPaymentDTO params)Returns data for an easy invoice after logging in.PaymentVOperform(@NotNull PerformPaymentDTO parameters)Same asPaymentService.perform(PerformPaymentDTO)but through theBuiltInChannel.EASY_INVOICEchannelPrepareEasyInvoiceDataprepareEasyInvoice(PrepareEasyInvoiceParams params)Returns data for displaying details of an easy invoice while still as guest.PaymentPreviewVOpreview(@NotNull PerformPaymentDTO parameters)Previews a payment to be performedvoidvalidate(@NotNull PerformPaymentDTO parameters)Validates the parameters to perform a payment without actually performing the payment.
-
-
-
Method Detail
-
barcode
SerializableInputStream barcode(@NotNull @NotNull EasyInvoiceBarcodeParams params) throws FrameworkException
Generates a QR-Code image for the givenPerformPaymentDTO- Throws:
FrameworkException
-
getEasyInvoiceData
EasyInvoiceData getEasyInvoiceData(PerformPaymentDTO params) throws FrameworkException
Returns data for an easy invoice after logging in. Minimally, a owner user is required. The amount either is not specified or a currency must be resolved, in the same way asprepareEasyInvoice(PrepareEasyInvoiceParams)The resulting data will contain the resolved read-only custom field values. The resultingPerformPaymentTypeDatawill contain the custom fields for the missing values.- Throws:
FrameworkException
-
perform
PaymentVO perform(@NotNull @NotNull PerformPaymentDTO parameters) throws TransferException, FrameworkException
Same asPaymentService.perform(PerformPaymentDTO)but through theBuiltInChannel.EASY_INVOICEchannel- Throws:
TransferExceptionFrameworkException
-
prepareEasyInvoice
PrepareEasyInvoiceData prepareEasyInvoice(PrepareEasyInvoiceParams params) throws FrameworkException, RemoteAddressBlockedException
Returns data for displaying details of an easy invoice while still as guest. Minimally, the owner user is required. If an amount is specified, it is required that a single currency is resolved. This can be either because:- A payment type was specified
- A currency was specified
- The destination user has a single currency
EntityNotFoundExceptionwill be thrown.
-
preview
PaymentPreviewVO preview(@NotNull @NotNull PerformPaymentDTO parameters) throws FrameworkException
Previews a payment to be performed- Throws:
FrameworkException
-
validate
void validate(@NotNull @NotNull PerformPaymentDTO parameters) throws FrameworkExceptionValidates the parameters to perform a payment without actually performing the payment. Attention: will only validate for required / invalid fields, but will not check for balance, maximum amount per day or other validations that require access to actual accounts.- Throws:
FrameworkException
-
-