ExCnab.Cnab240.Templates.Details.ModelJ (ex_cnab v1.3.6)
Template to generate an cnab 240 object from file, following the J-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
encode(detail)
@spec encode(detail :: Map.t()) :: String.t()
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)
│
├── Pagamento
│ ├── Código de barras (18..61)
│ ├── Nome do beneficiário (62..91)
│ ├── Data de vencimento (92..99)
│ ├── Valor do título (100..114)
│ ├── Desconto (115..129)
│ ├── Acréscimos (130..144)
│ ├── Data de pagamento (145..152)
│ ├── Valor do pagamento (153..167)
│ ├── Quantidade da moeda (168..182)
│ └── Referência sacado (183..202)
│
├── Nosso número (203..222)
│
├── Código da moeda (223..224)
│
├── CNAB (225..230)
│
└── Ocorrências (231..240)