New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

abo_parser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abo_parser

  • 1.0.9
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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()
  client_account_number
  client_account_prefix_number
  abbreviated_client_name
  old_balance_date
  old_balance
  new_balance
  transactions_debit
  transactions_credit
  statement_sequence_number
  posting_date

  transactions
    Array
      AboTransaction
        to_hash()
        client_account_number
        client_account_prefix_number
        counter_account_number
        counter_account_prefix_number
        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
        counter_account_bank_code
        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
    counter_account_bank_code
    amount
    due_date
    constant_symbol
    variable_symbol_credit
    specific_symbol_credit
    own_account_prefix
    own_account_number
    counter_account_prefix
    counter_account_number
    credit_information
    own_account_name
    counter_account_name
    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

FAQs

Package last updated on 14 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc