Skip to content

Gem to read the cnab240 return file of Santander Bank (Brazil)

Notifications You must be signed in to change notification settings

ljoseppi/cnab240santander

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CNAB240 Santander

Installing

$ require 'cnab240santander'
$ gem install cnab240santander

Usage

You can request all the lines:

$ result = Cnab240santander.retorno(:path => '/home/yourname/file.TXT', :retorna => nil)

You can request only the header:

$ result = Cnab240santander.retorno(:path => '/home/yourname/file.TXT', :retorna => 0)

Or you can request only the data, optionally merging the T and U segments:

$ result = Cnab240santander.retorno(:path => '/home/yourname/file.TXT', :retorna => 3, :merge => true)

Thanks

Thanks to Arthur Alexandre (github.com/arthurix), whose project I used as base to this one, and to Rafael Macedo (github.com/rafaelmacedo), who helped me deploying my first gem.

About

Gem to read the cnab240 return file of Santander Bank (Brazil)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages