Usage

To parse file

Only .gpc and .p11 file extententions are supported

Abo.new

Returns:

Abo
  parse_file(path_to_file)
  export_to_gpc(output_file, abo_hash_data)
  export_to_p11(output_file, abo_hash_data)

parse_file

GPC file

Usage:

bank_statement = Abo.new.parse_file(path_to_file)

Arguments:

path_to_file | String with path to GPC file

Returns:

AboStatement
  to_hash()
  
  
  abbreviated_client_name
  old_balance_date
  old_balance
  new_balance
  transactions_debit
  transactions_credit
  statement_sequence_number
  posting_date

  transactions
    Array
      AboTransaction
        to_hash()
        
        
        
        
        document_number
        amount
        posting_code
        variable_symbol
        constant_symbol
        specific_symbol
        value
        additional_information
        change_of_item_code
        type_of_data
        due_date
        debit
        credit
        
        note

P11 file

Usage:

payment_orders = Abo.new.parse_file(path_to_file)

Arguments:

path_to_file | String with path to GPC file

Returns:

Array
  AboPaymentOrder
    to_hash()
    order_number_of_statement
    file_creation_date
    own_bank_code
    
    amount
    due_date
    constant_symbol
    variable_symbol_credit
    specific_symbol_credit
    
    
    
    
    credit_information
    
    
    variable_symbol_debit
    specific_symbol_debit
    debit_information
    bank_information

export_to_gpc

Usage:

Abo.new.export_to_gpc(output_file, abo_hash_data)

Arguments:

output_file   | String of where to save the file
abo_hash_data | Hash of ABO data (AboStatement with AboTransactions)

Returns:

Nothing

export_to_p11

Usage:

Abo.new.export_to_p11(output_file, abo_hash_data)

Arguments:

output_file   | String of where to save the file
abo_hash_data | Array of AboPaymentOrders (as hash)

Returns:

Nothing