Package ru.loolzaaa.youkassa.processors
Class RefundProcessor
java.lang.Object
ru.loolzaaa.youkassa.processors.RefundProcessor
Processor for
Refund entity.
Using the API, you can return payments - in full or in part. The refund procedure depends on the payment method (payment_method) of the original payment. When paying with a bank card, the money is returned to the card that was used to make the payment.
Some payment methods (for example, cash) do not support returns.
Use ApiClient for API server communication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates newRefundentity with certain parameters.findAll(RefundList refundList) Receive information about all refunds with some filter conditions.Receive information about someRefundby its identifier.
-
Constructor Details
-
RefundProcessor
public RefundProcessor()
-
-
Method Details
-
findById
Receive information about someRefundby its identifier.- Parameters:
refundId- refund identifier- Returns:
- refund entity with actual status
- Throws:
IllegalArgumentException- if refund id is null or empty
-
findAll
Receive information about all refunds with some filter conditions.- Parameters:
refundList- collection with filter conditions- Returns:
- listed refund entities
- See Also:
-
create
Creates newRefundentity with certain parameters.Generate random idempotency key if corresponding argument is null.
- Parameters:
refundParams- parameters for new refundidempotencyKey- idempotency key- Returns:
- new refund entity with actual status
- Throws:
IllegalArgumentException- if refund parameters is null
-