Brasilapi.Ncm.Ncm (BrasilAPI v1.0.1)

View Source

Struct representing an NCM (Nomenclatura Comum do Mercosul) code.

NCM is the product classification system used for taxation and foreign trade control purposes.

Summary

Functions

Creates an NCM struct from a map. Supports both string and atom keys.

Types

t()

@type t() :: %Brasilapi.Ncm.Ncm{
  ano_ato: String.t(),
  codigo: String.t(),
  data_fim: String.t(),
  data_inicio: String.t(),
  descricao: String.t(),
  numero_ato: String.t(),
  tipo_ato: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Creates an NCM struct from a map. Supports both string and atom keys.