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
Modifier and TypeMethodDescriptionCreates newPayoutentity with certain parameters.findAll(PayoutList payoutList) Receive information about all payouts with some filter conditions.Receive information about somePayoutby its identifier.searchByMetadata(PayoutList payoutList) Search information about payouts with metadata filter conditions.
-
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
-
findAll
Receive information about all payouts with some filter conditions.- Parameters:
payoutList- collection with filter conditions- Returns:
- listed payout entities
- See Also:
-
searchByMetadata
Search information about payouts with metadata filter conditions.- Parameters:
payoutList- collection with filter conditions- Returns:
- listed payout entities
- See Also:
-
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
-