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

Template to generate an cnab 240 object from file, following the A-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 A-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 A-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)
│
├── Favorecido
│   ├── Câmara (18..20)
│   │
│   ├── Banco (21..23)
│   │
│   ├── Conta corrente
│   │   ├── Agência
│   │   │    ├── Código (24..28)
│   │   │    └── DV (29..29)
│   │   │
│   │   ├── Conta
│   │   │   ├── Número (30..41)
│   │   │   └── DV (42..42)
│   │   │
│   │   └── DV (43..43)
│   │
│   ├── Nome (44..73)
│   │
│   └── Seu número (73..93)
│
├── Credito
│   ├── Data pagamento (94..101)
│   │
│   ├── Moeda
│   │   ├── Tipo (102..104)
│   │   │
│   │   └── Conta (105..119)
│   │
│   ├── Valor Pagamento (120..134)
│   │
│   ├── Nosso número (135..154)
│   │
│   ├── Data real (155..162)
│   │
│   └── Valor real (163..177)
│
├── Informação 2 (178..217)
│
├── Codigo finalidade DOC (218..219)
│
├── Código finalidade TED (220..224)
│
├── Código finalidade complementar (225..226)
│
├── CNAB (227..229)
│
├── Aviso (230..230)
│
└── Ocorrências (231..240)