Ale8583 v0.1.1 Ale8583 View Source

Documentation for Ale8583, a formater for ISO - 8583 financial transaction standar .

Examples: iex(1)> Ale8583.new({“0800”,”/Users/ale/testPrograms/ale8583/ale8583/ascii.iso.cfg”}) {:iso ,.. {:ok, “OK”}}

Link to this section Summary

Functions

Function for add field to ISO

Function for get field from iso

Function for get raw data, witout length

Function for validate if a field have in bitmap

Function for validate if a field have in ISO

Function for validate if bitMap has bitMap secondary

Function for get ISO from list(RAW data without length)

Public function for get list support msgs

Function for prints a prety fields ISO.

Examples

Link to this section Functions

Function for add field to ISO.

Returns iso

##Examples

iex(1)> iso_new=Ale8583.new({“0800”,”/Users/ale/testPrograms/ale8583/ale8583/ascii.iso.cfg”}) {:iso, … {:ok, “OK”}} iex(3)> Ale8583.addField({3, “012345”}, iso_new) :ok

Link to this function formatZero(int_value, int_zeros) View Source

Function for get field from iso .

Returns value

Examples: iex(1)>iso_new = Ale8583.new({“0800”,”/Users/ale/testPrograms/ale8583/ale8583/ascii.iso.cfg”}) {:iso, … , {:ok, “OK”}} iex(18)> iso_new = Ale8583.addField({ 3 , “012345”}, iso_new) iex(19)> Ale8583.getField( :c3 , iso_new)

Function for get raw data, witout length.

Returns raw Examples iex(1)> iso_new=Ale8583.new({“0800”,”/Users/ale/testPrograms/ale8583/ale8583/ascii.iso.cfg”}) {:iso,… {:ok, “OK”}} iex(3)> Ale8583.getTrama(iso_new) ‘08002000000000000000012345’

Link to this function haveInBitMap?(str_bit_map, int_field) View Source

Function for validate if a field have in bitmap.

Returns true or false #Examples

Link to this function haveInISO?(arg, atom_field) View Source

Function for validate if a field have in ISO.

Returns true or false

Examples

Link to this function have_bit_map_sec?(str_bit_map_p) View Source

Function for validate if bitMap has bitMap secondary .

Returns true or false

Examples: iex(4)> Ale8583.have_bit_map_sec?(“888812A088888888”) true iex(5)> Ale8583.have_bit_map_sec?(“688812A088888888”) false

Function for get ISO from list(RAW data without length).

Returns iso

Public function for get list support msgs.

Returns @msgs

Examples iex(3)> Ale8583.msgs [“0100”, “0190”, “0110”, “0120”, “0130”, “0200”, “0210”, “0220”, “0230”, “0400”, “0410”, “0420”, “0421”, “0430”, “0800”, “0810”, “0620”, “9100”, “9190”, “9110”, “9120”, “9130”, “9200”, “9210”, “9220”, “9230”, “9400”, “9410”, “9420”, “9421”, “9430”, “9800”, “9810”, “9620”]

Link to this function new(arg, headerProsa \\ "") View Source

Function for prints a prety fields ISO.

Examples