Gusex.Types.TypPodmiotu (gusex v1.3.0)

Copy Markdown View Source

Type definitions for TypPodmiotu entity type enumeration.

Represents the type of business entity in the Polish business registry:

  • P: Legal person (Osoba prawna)
  • F: Natural person (Osoba fizyczna)
  • LP: Local unit of legal person (Jednostka lokalna osoby prawnej)
  • LF: Local unit of natural person (Jednostka lokalna osoby fizycznej)

Summary

Functions

Returns all valid entity types.

Converts string representation from BIR service to atom.

Converts atom representation to string for BIR service.

Types

t()

@type t() ::
  :legal_person | :natural_person | :local_legal_person | :local_natural_person

Functions

all()

@spec all() :: [t()]

Returns all valid entity types.

from_string(arg1)

@spec from_string(String.t()) :: {:ok, t()} | {:error, :invalid_entity_type}

Converts string representation from BIR service to atom.

to_string(atom)

@spec to_string(t()) :: String.t()

Converts atom representation to string for BIR service.