Class: Nacha::Record::FirstIatAddenda

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

Overview

Represents a first IAT addenda record

Instance Attribute Summary collapse

Attributes inherited from Base

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

Method Summary

Methods included from AddendaRecordType

#child_record_types, included, #next_record_types

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

#addenda_type_codeString

Returns Specifies this is the first in a series of IAT addenda records with code ‘10’.

Returns:

  • (String)

    Specifies this is the first in a series of IAT addenda records with code ‘10’.



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/nacha/record/first_iat_addenda.rb', line 26

class FirstIatAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C10', position: 2..3
  nacha_field :transaction_type_code, inclusion: 'R', contents: 'Alphameric', position: 4..6
  nacha_field :foreign_payment_amount, inclusion: 'R', contents: 'Alphameric', position: 7..24
  nacha_field :foreign_trace_number, inclusion: 'O', contents: 'Alphameric', position: 25..46
  nacha_field :receiving_company_name, inclusion: 'M', contents: 'Alphameric', position: 47..81
  nacha_field :reserved, inclusion: 'M', contents: 'C      ', position: 82..87
  nacha_field :entry_detail_sequence_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#entry_detail_sequence_numberNacha::Numeric

Returns The sequence number of the IAT Entry Detail record this addenda is associated with.

Returns:

  • (Nacha::Numeric)

    The sequence number of the IAT Entry Detail record this addenda is associated with.



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/nacha/record/first_iat_addenda.rb', line 26

class FirstIatAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C10', position: 2..3
  nacha_field :transaction_type_code, inclusion: 'R', contents: 'Alphameric', position: 4..6
  nacha_field :foreign_payment_amount, inclusion: 'R', contents: 'Alphameric', position: 7..24
  nacha_field :foreign_trace_number, inclusion: 'O', contents: 'Alphameric', position: 25..46
  nacha_field :receiving_company_name, inclusion: 'M', contents: 'Alphameric', position: 47..81
  nacha_field :reserved, inclusion: 'M', contents: 'C      ', position: 82..87
  nacha_field :entry_detail_sequence_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#foreign_payment_amountString

Returns The amount of the payment in the foreign currency.

Returns:

  • (String)

    The amount of the payment in the foreign currency.



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/nacha/record/first_iat_addenda.rb', line 26

class FirstIatAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C10', position: 2..3
  nacha_field :transaction_type_code, inclusion: 'R', contents: 'Alphameric', position: 4..6
  nacha_field :foreign_payment_amount, inclusion: 'R', contents: 'Alphameric', position: 7..24
  nacha_field :foreign_trace_number, inclusion: 'O', contents: 'Alphameric', position: 25..46
  nacha_field :receiving_company_name, inclusion: 'M', contents: 'Alphameric', position: 47..81
  nacha_field :reserved, inclusion: 'M', contents: 'C      ', position: 82..87
  nacha_field :entry_detail_sequence_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#foreign_trace_numberString

Returns A trace number assigned by a foreign payment system.

Returns:

  • (String)

    A trace number assigned by a foreign payment system.



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/nacha/record/first_iat_addenda.rb', line 26

class FirstIatAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C10', position: 2..3
  nacha_field :transaction_type_code, inclusion: 'R', contents: 'Alphameric', position: 4..6
  nacha_field :foreign_payment_amount, inclusion: 'R', contents: 'Alphameric', position: 7..24
  nacha_field :foreign_trace_number, inclusion: 'O', contents: 'Alphameric', position: 25..46
  nacha_field :receiving_company_name, inclusion: 'M', contents: 'Alphameric', position: 47..81
  nacha_field :reserved, inclusion: 'M', contents: 'C      ', position: 82..87
  nacha_field :entry_detail_sequence_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#receiving_company_nameString

Returns The name of the company that is the ultimate recipient of the funds.

Returns:

  • (String)

    The name of the company that is the ultimate recipient of the funds.



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/nacha/record/first_iat_addenda.rb', line 26

class FirstIatAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C10', position: 2..3
  nacha_field :transaction_type_code, inclusion: 'R', contents: 'Alphameric', position: 4..6
  nacha_field :foreign_payment_amount, inclusion: 'R', contents: 'Alphameric', position: 7..24
  nacha_field :foreign_trace_number, inclusion: 'O', contents: 'Alphameric', position: 25..46
  nacha_field :receiving_company_name, inclusion: 'M', contents: 'Alphameric', position: 47..81
  nacha_field :reserved, inclusion: 'M', contents: 'C      ', position: 82..87
  nacha_field :entry_detail_sequence_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#record_type_codeString

Returns Identifies the record as an Addenda record with a constant value of ‘7’.

Returns:

  • (String)

    Identifies the record as an Addenda record with a constant value of ‘7’.



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/nacha/record/first_iat_addenda.rb', line 26

class FirstIatAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C10', position: 2..3
  nacha_field :transaction_type_code, inclusion: 'R', contents: 'Alphameric', position: 4..6
  nacha_field :foreign_payment_amount, inclusion: 'R', contents: 'Alphameric', position: 7..24
  nacha_field :foreign_trace_number, inclusion: 'O', contents: 'Alphameric', position: 25..46
  nacha_field :receiving_company_name, inclusion: 'M', contents: 'Alphameric', position: 47..81
  nacha_field :reserved, inclusion: 'M', contents: 'C      ', position: 82..87
  nacha_field :entry_detail_sequence_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#reservedString

Returns A reserved field for future use.

Returns:

  • (String)

    A reserved field for future use.



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/nacha/record/first_iat_addenda.rb', line 26

class FirstIatAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C10', position: 2..3
  nacha_field :transaction_type_code, inclusion: 'R', contents: 'Alphameric', position: 4..6
  nacha_field :foreign_payment_amount, inclusion: 'R', contents: 'Alphameric', position: 7..24
  nacha_field :foreign_trace_number, inclusion: 'O', contents: 'Alphameric', position: 25..46
  nacha_field :receiving_company_name, inclusion: 'M', contents: 'Alphameric', position: 47..81
  nacha_field :reserved, inclusion: 'M', contents: 'C      ', position: 82..87
  nacha_field :entry_detail_sequence_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end

#transaction_type_codeString

Returns A code that further specifies the type of IAT transaction (e.g., business, consumer).

Returns:

  • (String)

    A code that further specifies the type of IAT transaction (e.g., business, consumer).



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/nacha/record/first_iat_addenda.rb', line 26

class FirstIatAddenda < Nacha::Record::Base
  include AddendaRecordType

  nacha_field :record_type_code, inclusion: 'M', contents: 'C7', position: 1..1
  nacha_field :addenda_type_code, inclusion: 'M', contents: 'C10', position: 2..3
  nacha_field :transaction_type_code, inclusion: 'R', contents: 'Alphameric', position: 4..6
  nacha_field :foreign_payment_amount, inclusion: 'R', contents: 'Alphameric', position: 7..24
  nacha_field :foreign_trace_number, inclusion: 'O', contents: 'Alphameric', position: 25..46
  nacha_field :receiving_company_name, inclusion: 'M', contents: 'Alphameric', position: 47..81
  nacha_field :reserved, inclusion: 'M', contents: 'C      ', position: 82..87
  nacha_field :entry_detail_sequence_number, inclusion: 'M', contents: 'Numeric', position: 88..94
end