ExCnab.Cnab240.Templates.Details.ModelZ (ex_cnab v1.3.6)

Template to generate an cnab 240 object from file, following the Z-segment pattern;

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 O-segment hierarchy, and the returns is in PT BR.

Link to this section Functions

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 O-segment 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
│   ├── N do registro (9..13)
│   └── Segmento (14..14)
│
├── Autenticacao (15..78)
│
├── Controle bancario (79..103)
│
├── Reservado (104..230)
│
└── Ocorrências (231..240)