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

Template to generate an cnab 240 object from file, following the J 52 -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 J-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 J-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)
│   ├── CNAB (15..15)
│   └── Cod. Mov (16..17)
│
├── Cod Reg. Opcional (18..19)
│
├── Dados sacador/pagador
│   ├── Inscrição
│   │   ├── Tipo (20..20)
│   │   └── Número (21..35)
│   │
│   └── Nome (36..75)
│
├── Dados beneficiario
│   ├── Inscrição
│   │   ├── Tipo (76..76)
│   │   └── Número (77..91)
│   │
│   └── Nome (92..131)
│
├── Dados sacador avalista
│   ├── Inscrição
│   │   ├── Tipo (132..132)
│   │   └── Número (133..147)
│   │
│   └── Nome (148..187)
│
└── CNAB (188..240)