Class SelfEmployedProcessor

java.lang.Object
ru.loolzaaa.youkassa.processors.SelfEmployedProcessor

public class SelfEmployedProcessor extends Object
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 Details

    • SelfEmployedProcessor

      public SelfEmployedProcessor()
  • Method Details

    • findById

      public SelfEmployed findById(String selfEmployedId)
      Receive information about some SelfEmployed by 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

      public SelfEmployed create(SelfEmployed selfEmployedParams, String idempotencyKey)
      Creates new SelfEmployed entity with certain parameters.

      Generate random idempotency key if corresponding argument is null.

      Parameters:
      selfEmployedParams - parameters for new self-employed
      idempotencyKey - idempotency key
      Returns:
      new self-employed entity with actual status
      Throws:
      IllegalArgumentException - if self-employed parameters is null