Class: Eddy::Segments::SE

Inherits:
Models::Segment show all
Defined in:
lib/definitions/segments/manual/envelopes/se.rb

Overview

Segment Summary:

  • Id: SE
  • Name: Transaction Set Trailer
  • Purpose: To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments).

Instance Attribute Summary

Attributes inherited from Models::Segment

#elements, #id, #name, #skip, #store

Instance Method Summary collapse

Methods inherited from Models::Segment

#render

Constructor Details

#initialize(store) ⇒ void

Parameters:



12
13
14
15
16
17
18
# File 'lib/definitions/segments/manual/envelopes/se.rb', line 12

def initialize(store)
  @id = "SE"
  @name = "Transaction Set Trailer"
  @se01 = Eddy::Elements::E96.new(ref:  "SE01", req: "M")
  @se02 = Eddy::Elements::E329.new(ref: "SE02", req: "M") # TODO: store.transaction_set_control_number
  super(store, @se01, @se02)
end

Instance Method Details

#SE01=(arg) ⇒ void Also known as: NumberOfIncludedSegments=

This method returns an undefined value.

SE01

  • Id: 96
  • Name: Number of Included Segments
  • Type: N0
  • Min/Max: 1/10
  • Description: Total number of segments included in a transaction set including ST and SE segments

Parameters:

  • arg (String)


30
31
32
# File 'lib/definitions/segments/manual/envelopes/se.rb', line 30

def SE01=(arg)
  @se01.value = arg
end

#SE02=(arg) ⇒ void Also known as: TransactionSetControlNumber=

This method returns an undefined value.

SE02

  • Id: 329
  • Name: Transaction Set Control Number
  • Type: AN
  • Min/Max: 4/9
  • Description: Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set

Parameters:

  • arg (String)


45
46
47
# File 'lib/definitions/segments/manual/envelopes/se.rb', line 45

def SE02=(arg)
  @se02.value = arg
end