Sha256: 65ee950a27a4ce2af459bf88f2699ee69f93d1ff2c02e47e23e11cb4e09099e6

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

require "china_bank/payroll_text_file/version"
require "bigdecimal"
require "active_support"

module ChinaBank
  # 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:
  #                                         }
  #                                       ]
  module PayrollTextFile
    extend ActiveSupport::Autoload

    autoload :File
    autoload :Line

    class << self
      # @param [Hash] options
      # @return [ChinaBank::PayrollTextFile::File]
      def generate(**options)
        File.new **options
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
china_bank-payroll_text_file-1.1.0 lib/china_bank/payroll_text_file.rb