One infCad of a NFeConsultaCadastro answer.
Field names are the XSD's, in snake_case (AD-008). Values stay strings, as
SEFAZ sent them (dates are AAAA-MM-DD), except the two coded fields below,
which are integers; any field the authorizer left out is nil.
c_sit (cSit):
0- not enabled (nao habilitado)1- enabled (habilitado)
ind_cred_nfe / ind_cred_cte (indCredNFe / indCredCTe):
0- not accredited1- accredited2- accredited with full obligation3- accredited with partial obligation4- SEFAZ does not provide the information
address is a map with x_lgr, nro, x_cpl, x_bairro, c_mun, x_mun, cep
(ender), or nil when SEFAZ sent none.
Summary
Types
@type t() :: %SefazNfe.Taxpayer{ address: address() | nil, c_sit: 0 | 1 | nil, cnae: String.t() | nil, cnpj: String.t() | nil, cpf: String.t() | nil, d_baixa: String.t() | nil, d_ini_ativ: String.t() | nil, d_ult_sit: String.t() | nil, ie: String.t() | nil, ie_atual: String.t() | nil, ie_unica: String.t() | nil, ind_cred_cte: 0..4 | nil, ind_cred_nfe: 0..4 | nil, uf: String.t() | nil, x_fant: String.t() | nil, x_nome: String.t() | nil, x_reg_apur: String.t() | nil }