View Source ExDatacube.CNH behaviour (ExDatacube v0.3.0)

Define behaviour com chamadas da API de CNH.

TOOD: Implementar adaptadores.

Link to this section Summary

Types

CPF do motorista

Callbacks

Retorna CNH de motorista da base nacional.

Link to this section Types

@type cpf() :: String.t()

CPF do motorista

Link to this section Callbacks

Link to this callback

consulta_nacional_cnh(cpf, shared_opts)

View Source
@callback consulta_nacional_cnh(cpf(), ExDatacube.shared_opts()) ::
  {:ok, map()} | {:error, ExDatacube.API.error()}

Retorna CNH de motorista da base nacional.