ExCnab.Cnab240.Templates.ChunkHeader (ex_cnab v1.3.6)
Template for rendering a cnab240 chenk header from a file
Link to this section Summary
Functions
This function generate a Header Chunk Map from a Cnab240 file, using the FEBRABAN convention. The fields follows the convention hierarchy, and the returns is in PT BR.
Link to this section Functions
Link to this function
encode(params)
@spec encode(Map.t()) :: String.t()
Link to this function
generate(raw_string)
@spec generate(String.t()) :: {:ok, Map.t()}
This function generate a Header Chunk Map from a Cnab240 file, using the FEBRABAN convention. The fields follows the convention hierarchy, and the returns is in PT BR.
You can see all hierarchy in the FEBRABAN documentation.
CNAB
├── Controle
│ ├── Banco (1..3)
│ ├── Lote (4..7)
│ └── Registro (8..8)
│
├── Serviço
│ ├── Operação (9..9)
│ ├── Serviço (10..11)
│ ├── Forma lançamento (12..13)
│ └── Layout do lote (14..16)
│
├── Cnab (17..17)
│
├── Empresa
│ ├── Inscrição
│ │ ├── Tipo (18..18)
│ │ └── Número (19..32)
│ │
│ ├── Convênio (33..52)
│ │
│ ├── Conta corrente
│ │ ├── Agência
│ │ │ ├── Código (53..57)
│ │ │ └── DV (58..58)
│ │ │
│ │ ├── Conta
│ │ │ └── Número DV
│ │ │ ├── Número da conta corrente (59..70)
│ │ │ └── Dígito verificador da conta (71..71)
│ │ │
│ │ └── DV (72..72)
│ │
│ └── Nome (73..102)
│
├── CNAB - USO FEBRABAN (103..142)
│
├── Endereço da empresa
│ ├── Logadouro (143..172)
│ ├── Número (173..177)
│ ├── Complemento (178..192)
│ ├── Cidade (193..212)
│ ├── CEP (213..217)
│ ├── Complemento CEP (218..220)
│ └── Estado (221..222)
│
├── CNAB - USO FEBRABAN (223..230)
│
└── Ocorrências (231..240)