This parser aim at simplifying the parsing of CFONB structured files. Which are files structured with either 120 or 240 characters lines containing mostly bank statements. We aimed here only at the 120 characters version.
What CFONB means ?
Comité Français d’Organisation et de Normalisation Bancaire
gem install cfonb
Or, put it in your Gemfile:
Available Operation Details
OperationDetail are lines starting with
05. They aim at providing additional information about the operation.
Find bellow the list of additional details available for each operation. If you encouter new ones, please open an issue or a pull request with the appropriate implementation. We aimed at making it as easy as possible to add new details. You just need to do the following on initialization:
||Represents operation fees the bank is applying|
||Not structured label line 1 (first 70 characters)|
||Not structured label line 2 (last 70 characters)|
||Amount and currency if it has been converted from a foreign currency|
||Name of the creditor or beneficiary|
||Name of the debtor or payer|
||Client reference and Payment nature/purpose|
||Bank operation reference|
||Identifier of the debtor or payer|
||Name of the ultimate debtor or beneficiary|
||Name of the ultimate creditor or payer|
||Account of the creditor or beneficiary|
||Bank of the creditor or beneficiary|
require 'cfonb' # Parse a file text = File.open('spec/files/example.txt') cfonb = CFONB::Parser.parse(text)
Bug reports and pull requests are welcome on GitHub.