jessicamrbr / jsons-to-cnab

Convert JSON data and map to cnab file and the opposite too
MIT License
6 stars 3 forks source link

How to handle with reserved fields? #1

Closed olegario96 closed 5 years ago

olegario96 commented 5 years ago

I'm trying to write an application to generate files for Bradesco bank, but in the Header file, the documentation says that a part of the record have exclusive fields for the bank:

image

In this cases, this is would be right JSON to use and using no mapping value?

{
        fieldName: "reservado_banco_01",
        positionStart: 172,
        positionEnd: 191,
        positionLength: 20,
        picture: "X"
        defaultValue: ""
}
jessicamrbr commented 5 years ago

When reserved for the bank, the manual usually says what the default value should be. In general for these fields, the default value included is pre-filled according to the picture.

To set the layout, it is apparently correct.

Please remember not to pass this attribute when set the data.