A parser for norma43 files, a standard from the spanish banking industry for account movements)
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
lib
spec
.gitignore
.travis.yml
Gemfile
README
Rakefile
norma43.gemspec

README

Parser for NORMA43 Files. (a standard from the spanish banking industry for account movements)

Install
=======

gem install norma43


Usage
=====

require 'rubygems'
require 'norma43'

data = Norma43.read(PATH_TO_FILE, "iso-8859-1")

Second parameter is the encoding of the .n43 file. As spanish banks continue in 20th Century, default is iso-8859-1.


Data format (excerpt from data.to_yaml)
===========
:info: 
  :end_date: 2011-03-20
  :account: 
    🏦 1234
    🏢 "1234"
    :number: 1234567890
    :control: ??
  :final_balance: 4469.33
  :initial_balance: 10593.16
  :account_owner: YOUR NAME OR COMPANY
  :currency: "978"
  :begin_date: 2011-03-01
:movements: 
  - :operation_date: 2011-03-01
    :concept: TRANSFERENC. A MR. POSTMAN
    :value_date: 2011-03-01
    🏢 0901
    :operation: "0000000000"
    :reference_1: "000000000000"
    :reference_2: ""
    :amount: 927.0
  - :operation_date: 2011-03-01
    :concept: TRANSFERENC. A MRS. ROBINSON
    :value_date: 2011-03-01
    🏢 0901
    :operation: "0000000000"
    :reference_1: "000000000000"
    :reference_2: ""
    :amount: 1274.09
  - :operation_date: 2011-03-04
    :concept: TARJ.CREDITO SANDMAN
    :value_date: 2011-03-04
    🏢 0901
    :operation: "0000000000"
    :reference_1: "281034520913"
    :reference_2: "1234123412341234"
    :amount: 1177.81


CHANGELOG
=========

0.2 - June 20, 2011
    - Encoding of input files


0.1 - June 15, 2011
    - Initial version, most of parsing