ExCnab.Cnab240.Templates.Details.ModelO (ex_cnab v1.3.6)
Template to generate an cnab 240 object from file, following the O-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
encode(detail)
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
│ ├── Código Barras (18..61)
│ │
│ ├── Nome da Concessionária (62..91)
│ │
│ ├── Data vencimento (92..99)
│ │
│ ├── Data Pagamento (100..107)
│ │
│ ├── Valor pagamento (108..122)
│ │
│ ├── Seu número (123..142)
│ │
│ └── Nosso número (143..162)
│
├── CNAB (163..230)
│
└── Ocorrências (231..240)