Package ru.loolzaaa.youkassa.processors
Class InvoiceProcessor
java.lang.Object
ru.loolzaaa.youkassa.processors.InvoiceProcessor
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InvoiceProcessor
public InvoiceProcessor()
-
-
Method Details
-
findById
Receive information about someInvoiceby its identifier.- Parameters:
invoiceId- invoice identifier- Returns:
- invoice entity with actual status
- Throws:
IllegalArgumentException- if invoice id is null or empty
-
create
Creates newInvoiceentity with certain parameters.Generate random idempotency key if corresponding argument is null.
- Parameters:
invoiceParams- parameters for new paymentidempotencyKey- idempotency key- Returns:
- new invoice entity with actual status
- Throws:
IllegalArgumentException- if invoice parameters is null
-