class Nacha::BatchControl

Overview

This record appears at the end of each batch and contains totals for the batch. The data in this should be calculated in the Batch

Included Modules

Defined in:

nacha/batch_control.cr

Constant Summary

RESERVED_SPACE = " " * 6
TYPE_CODE = 8

Constructors

Class Method Summary

Instance Method Summary

Constructor methods inherited from module ParsableRecord

parse(input : String) : self parse

Class methods inherited from module ParsableRecord

raise_parse_failed_error(field : String, value : String, section : String) raise_parse_failed_error

Instance methods inherited from module BuildableRecord

build(io : IO) : IO build, row_count : Int32 row_count, valid? valid?

Constructor Detail

def self.new(service_class_code : Batch::ServiceClassCode, entry_addenda_count : Int32, entry_hash : String, total_debit_amount : Int64, total_credit_amount : Int64, company_identification : String, originating_dfi_identification : String, batch_number : Int32, message_authorization_code : Int32 | Nil = nil) #

[View source]
def self.parse(input : String) : self #

[View source]

Class Method Detail

def self.raise_parse_error(name : String, value : String) #

[View source]

Instance Method Detail

def batch_number : Int32 #

[View source]
def build(io : IO) : IO #
Description copied from module BuildableRecord

Convert the record in to the record line


[View source]
def company_identification : String #

[View source]
def entry_addenda_count : Int32 #

[View source]
def entry_hash : String #

[View source]
def errors : Hash(String, Array(String)) #

def errors=(errors : Hash(String, Array(String))) #

def message_authorization_code : Int32 | Nil #

[View source]
def originating_dfi_identification : String #

[View source]
def service_class_code : Batch::ServiceClassCode #

[View source]
def total_credit_amount : Int64 #

[View source]
def total_debit_amount : Int64 #

[View source]