ExCnab.Cnab240.Templates.FileHeader (ex_cnab v1.3.6)
Template for rendering a cnab240 header from a file
Link to this section Summary
Functions
This function generate a Header File Map from a Cnab240 file, using the FEBRABAN convention. The fields follows the convention hierarchy, and the returns is in PT BR.
Link to this section Functions
Link to this function
encode(params)
@spec encode(header :: Map.t()) :: String.t()
Link to this function
generate(raw_string, attrs)
This function generate a Header File Map from a Cnab240 file, using the FEBRABAN convention. The fields follows the convention 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)
│
├── CNAB - USO FEBRABAN (9..17)
│
├── Empresa
│ ├── Inscrição
│ │ ├── Tipo (18..18)
│ │ └── Número de inscrição (19..32)
│ │
│ ├── Convênio (33..52)
│ │
│ ├── Conta corrente
│ │ ├── Agência
│ │ │ ├── Código (53..57)
│ │ │ └── DV (58..58)
│ │ │
│ │ ├── Conta
│ │ │ └── Número DV
│ │ │ ├── Número da conta corrente (59..70)
│ │ │ └── Dígito verificador da conta (71..71)
│ │ │
│ │ └── DV (72..72)
│ │
│ └── Nome da empresa (73..102)
│
├── Nome do banco (103..132)
│
├── CNAB - USO FEBRABAN (133..142)
│
├── Arquivo
│ ├── Código remessa / retorno (143..143)
│ ├── Data geração (144..151)
│ ├── Hora geração (152..157)
│ ├── Sequência - NSA (158..163)
│ ├── Layout do arquivo (164..166)
│ └── Densidade (167..171)
│
├── Reservado banco (172..191)
│
├── Reservado empresa (192..211)
│
└── CNAB - USO FEBRABAN (212..240)