Class: Nacha::Record::IatBatchHeader

Inherits:
Base
  • Object
show all
Includes:
BatchHeaderRecordType
Defined in:
lib/nacha/record/iat_batch_header.rb

Overview

Represents an IAT batch header record

Instance Attribute Summary collapse

Attributes inherited from Base

#children, #fields, #line_number, #name, #original_input_line, #parent, #validations

Method Summary

Methods included from BatchHeaderRecordType

#child_record_types, included

Methods inherited from Base

#add_error, #create_fields_from_definition, #credit?, #debit?, definition, #definition, #errors, #human_name, #initialize, #inspect, matcher, #method_missing, nacha_field, parse, #record_type, record_type, #respond_to_missing?, #to_ach, #to_h, to_h, #to_html, to_json, #to_json, unpack_str, #valid?, #validate, validations

Methods included from Validations::FieldValidations

included

Constructor Details

This class inherits a constructor from Nacha::Record::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Nacha::Record::Base

Instance Attribute Details

#batch_numberNacha::Numeric

Returns A number assigned by the Originator to uniquely identify the batch.

Returns:

  • (Nacha::Numeric)

    A number assigned by the Originator to uniquely identify the batch.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#company_entry_descriptionString

Returns A description of the purpose of the entries in the batch.

Returns:

  • (String)

    A description of the purpose of the entries in the batch.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#effective_entry_dateString

Returns The date on which the entries are intended to be settled.

Returns:

  • (String)

    The date on which the entries are intended to be settled.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#foreign_exchange_indicatorString

Returns Indicates the method used to determine the foreign exchange rate.

Returns:

  • (String)

    Indicates the method used to determine the foreign exchange rate.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#foreign_exchange_referenceString

Returns A reference related to the foreign exchange conversion.

Returns:

  • (String)

    A reference related to the foreign exchange conversion.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#foreign_exchange_reference_indicatorNacha::Numeric

Returns A code indicating the content of the Foreign Exchange Reference field.

Returns:

  • (Nacha::Numeric)

    A code indicating the content of the Foreign Exchange Reference field.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#iat_indicatorString

Returns Provides supplemental information about the IAT entry.

Returns:

  • (String)

    Provides supplemental information about the IAT entry.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#iso_destination_country_codeString

Returns The two-character ISO code for the country of the receiver’s financial institution.

Returns:

  • (String)

    The two-character ISO code for the country of the receiver’s financial institution.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#iso_destination_currency_codeString

Returns The three-character ISO currency code of the destination country.

Returns:

  • (String)

    The three-character ISO currency code of the destination country.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#iso_originating_currency_codeString

Returns The three-character ISO currency code of the originating country.

Returns:

  • (String)

    The three-character ISO currency code of the originating country.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#originating_dfi_identificationString

Returns The 8-digit routing number of the financial institution originating the batch.

Returns:

  • (String)

    The 8-digit routing number of the financial institution originating the batch.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#originator_identificationString

Returns The identifier for the originator of the transaction.

Returns:

  • (String)

    The identifier for the originator of the transaction.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#originator_status_codeString

Returns A code indicating the status of the originator.

Returns:

  • (String)

    A code indicating the status of the originator.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#record_type_codeString

Returns Identifies the record as a Batch Header record with a constant value of ‘5’.

Returns:

  • (String)

    Identifies the record as a Batch Header record with a constant value of ‘5’.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#service_class_codeNacha::Numeric

Returns Defines the type of entries in the batch, such as credits or debits.

Returns:

  • (Nacha::Numeric)

    Defines the type of entries in the batch, such as credits or debits.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#settlement_date_julianNacha::Numeric

Returns A Julian date used by the ACH Operator for settlement.

Returns:

  • (Nacha::Numeric)

    A Julian date used by the ACH Operator for settlement.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#standard_entry_class_codeString

Returns The Standard Entry Class code, which is ‘IAT’ for these batches.

Returns:

  • (String)

    The Standard Entry Class code, which is ‘IAT’ for these batches.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/nacha/record/iat_batch_header.rb', line 43

class IatBatchHeader < Nacha::Record::Base
  include BatchHeaderRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C5', position: 1..1
  nacha_field :service_class_code, inclusion: 'M', contents: 'Numeric', position: 2..4
  nacha_field :iat_indicator, inclusion: 'O', contents: 'Alphameric', position: 5..20
  nacha_field :foreign_exchange_indicator, inclusion: 'M', contents: 'Alphameric', position: 21..22
  nacha_field :foreign_exchange_reference_indicator, inclusion: 'R', contents: 'Numeric',
    position: 23..23
  nacha_field :foreign_exchange_reference, inclusion: 'R', contents: 'Alphameric', position: 24..38
  nacha_field :iso_destination_country_code, inclusion: 'M', contents: 'Alphameric', position: 39..40
  nacha_field :originator_identification, inclusion: 'M', contents: 'Alphameric', position: 41..50
  nacha_field :standard_entry_class_code, inclusion: 'M', contents: 'Alphameric', position: 51..53
  nacha_field :company_entry_description, inclusion: 'M', contents: 'Alphameric', position: 54..63
  nacha_field :iso_originating_currency_code, inclusion: 'M', contents: 'Alphameric', position: 64..66
  nacha_field :iso_destination_currency_code, inclusion: 'M', contents: 'Alphameric', position: 67..69
  nacha_field :effective_entry_date, inclusion: 'R', contents: 'YYMMDD', position: 70..75
  nacha_field :settlement_date_julian, inclusion: 'M', contents: 'Numeric', position: 76..78
  nacha_field :originator_status_code, inclusion: 'M', contents: 'Alphameric', position: 79..79
  nacha_field :originating_dfi_identification, inclusion: 'M', contents: 'TTTTAAAA', position: 80..87
  nacha_field :batch_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end