Package ru.loolzaaa.youkassa.processors
Class DealProcessor
java.lang.Object
ru.loolzaaa.youkassa.processors.DealProcessor
Processor for
Deal entity.
A Safe Deal is a YooKassa solution that allows you to accept payment from one participant in a transaction and transfer it to another participant at the time the terms of the transaction are fulfilled.
Using the API, you can create a deal and get up-to-date information about it.
Use ApiClient for API server communication.
- API Note:
- Only for those using Safe Deal.
-
Constructor Details
-
DealProcessor
public DealProcessor()
-
-
Method Details
-
findById
Receive information about someDealby its identifier.- Parameters:
dealId- deal identifier- Returns:
- deal entity with actual status
- Throws:
IllegalArgumentException- if deal id is null or empty
-
findAll
Receive information about all deals with some filter conditions.- Parameters:
dealList- collection with filter conditions- Returns:
- listed deal entities
- See Also:
-
create
Creates newDealentity with certain parameters.Generate random idempotency key if corresponding argument is null.
- Parameters:
dealParams- parameters for new dealidempotencyKey- idempotency key- Returns:
- new deal entity with actual status
- Throws:
IllegalArgumentException- if deal parameters is null
-