Class: Eddy::Segments::ST
- Inherits:
-
Models::Segment
- Object
- Models::Segment
- Eddy::Segments::ST
- Defined in:
- lib/definitions/segments/manual/envelopes/st.rb
Overview
Segment Summary:
- Id: ST
- Name: Transaction Set Header
- Purpose: To indicate the start of a transaction set and to assign a control number.
Instance Attribute Summary
Attributes inherited from Models::Segment
#elements, #id, #name, #skip, #store
Instance Method Summary collapse
- #initialize(store) ⇒ void constructor
-
#ST01=(arg) ⇒ void
(also: #TransactionSetIdentifierCode=)
ST01.
-
#ST02=(arg) ⇒ void
(also: #TransactionSetControlNumber=)
ST02.
Methods inherited from Models::Segment
Constructor Details
#initialize(store) ⇒ void
12 13 14 15 16 17 18 |
# File 'lib/definitions/segments/manual/envelopes/st.rb', line 12 def initialize(store) @id = "ST" @name = "Transaction Set Header" @st01 = Eddy::Elements::E143.new(ref: "ST01", req: "M") @st02 = Eddy::Elements::E329.new(ref: "ST02", req: "M") # TODO: store.transaction_set_control_number super(store, @st01, @st02) end |
Instance Method Details
#ST01=(arg) ⇒ void Also known as: TransactionSetIdentifierCode=
This method returns an undefined value.
ST01
- Id: 143
- Name: Transaction Set Identifier Code
- Type: ID
- Min/Max: 3/3
- Description: Code uniquely identifying a Transaction Set
30 31 32 |
# File 'lib/definitions/segments/manual/envelopes/st.rb', line 30 def ST01=(arg) @st01.value = arg end |
#ST02=(arg) ⇒ void Also known as: TransactionSetControlNumber=
This method returns an undefined value.
ST02
- 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
45 46 47 |
# File 'lib/definitions/segments/manual/envelopes/st.rb', line 45 def ST02=(arg) @st02.value = arg end |