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

Template to generate an cnab 240 object from file, following the N-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)
│   └── Movimento
│         ├── Tipo (15..15)
│         └── Código (16..17)
│
├── Pagamento
│   ├── Seu numero (18..37)
│   │
│   ├── Nosso numero (38..57)
│   │
│   ├── Contribuinte (58..57)
│   │
│   ├── Data pagamento (88..95)
│   │
│   └── Valor pagamento (96..110)
│
├── Informacoes complementares (111..230)
│
└── Ocorrências (231..240)