Module: ChinaBank::PayrollTextFile

Extended by:
ActiveSupport::Autoload
Defined in:
lib/china_bank/payroll_text_file.rb,
lib/china_bank/payroll_text_file/file.rb,
lib/china_bank/payroll_text_file/line.rb,
lib/china_bank/payroll_text_file/version.rb

Overview

Generates a payroll text file compatible with China Bank Auto Credit Arrangement (ACA).

@example:

ChinaBank::PayrollTextFile.generate account_number: ,
                                    account_type: ,
                                    branch_code: ,
                                    transaction_type: ,
                                    transactions: [
                                      {
                                        amount: ,
                                        account_number: ,
                                        account_type: ,
                                        branch_code: ,
                                        transaction_type:
                                      }
                                    ]

Defined Under Namespace

Classes: File, Line

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.generate(**options) ⇒ ChinaBank::PayrollTextFile::File

Parameters:

  • options (Hash)

Returns:



31
32
33
# File 'lib/china_bank/payroll_text_file.rb', line 31

def generate(**options)
  File.new options
end