Package ru.loolzaaa.youkassa.processors
Class PayoutProcessor
java.lang.Object
ru.loolzaaa.youkassa.processors.PayoutProcessor
Processor for
Payout entity.
A payout is the amount of money you transfer to an individual or self-employed person. Using the API, you can create a payout and get up-to-date information about it.
Payments are used in the following YuKassa payment solutions:
- Payouts - you as a company transfer money to individuals and the self-employed (for example, pay out cashback to users).
- Safe Deal - your platform transfers payment from one individual to another as part of the created transaction.
Use ApiClient for API server communication.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PayoutProcessor
public PayoutProcessor()
-
-
Method Details
-
findById
Receive information about somePayoutby its identifier.- Parameters:
payoutId- payout identifier- Returns:
- payout entity with actual status
- Throws:
IllegalArgumentException- if payout id is null or empty
-
create
Creates newPayoutentity with certain parameters.Generate random idempotency key if corresponding argument is null.
- Parameters:
payoutParams- parameters for new payoutidempotencyKey- idempotency key- Returns:
- new payout entity with actual status
- Throws:
IllegalArgumentException- if payout parameters is null
-