ExCnab behaviour (ex_cnab v0.4.2)
Cnab keeps the contexts that define your domain and business logic.
Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others.
Link to this section Summary
Callbacks
Decode a single file. This will decode the cnab file applying the correct format to each CNAB 240 template
Link to this section Callbacks
Link to this callback
decode(filepath)
Decode a single file. This will decode the cnab file applying the correct format to each CNAB 240 template
example
Example
decode("JVH1234.rem")
{:ok, %{
header: %{
# Content
},
details: %{
# Content
},
footer: %{
# Content
},
additional_info: %{
# Content
}
}}
Link to this callback
decode(filepath, attrs)
Link to this section Functions
Link to this function