Package ru.loolzaaa.youkassa.processors
Class SelfEmployedProcessor
java.lang.Object
ru.loolzaaa.youkassa.processors.SelfEmployedProcessor
Processor for
SelfEmployed entity.
The API allows you to create self-employed, as well as receive information about them.
Use ApiClient for API server communication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(SelfEmployed selfEmployedParams, String idempotencyKey) Creates newSelfEmployedentity with certain parameters.Receive information about someSelfEmployedby its identifier.
-
Constructor Details
-
SelfEmployedProcessor
public SelfEmployedProcessor()
-
-
Method Details
-
findById
Receive information about someSelfEmployedby its identifier.- Parameters:
selfEmployedId- self-employed identifier- Returns:
- self-employed entity with actual status
- Throws:
IllegalArgumentException- if self-employed id is null or empty
-
create
Creates newSelfEmployedentity with certain parameters.Generate random idempotency key if corresponding argument is null.
- Parameters:
selfEmployedParams- parameters for new self-employedidempotencyKey- idempotency key- Returns:
- new self-employed entity with actual status
- Throws:
IllegalArgumentException- if self-employed parameters is null
-