class Eddy::Segments::BSN
### Segment Summary:
-
Id:
BSN
-
Name: Beginning Segment for Ship Notice
-
Purpose: To transmit identifying numbers, dates, and other basic data relating to the transaction set.
Public Class Methods
@param store [Eddy::Data::Store] @return [void]
Eddy::Models::Segment::new
# File lib/definitions/segments/generated/bsn.rb, line 12 def initialize(store) @id = "BSN" @name = "Beginning Segment for Ship Notice" @bsn01 = Eddy::Elements::E353.new(ref: "BSN01", req: "M") @bsn02 = Eddy::Elements::E396.new(ref: "BSN02", req: "M") @bsn03 = Eddy::Elements::E373.new(ref: "BSN03", req: "M") @bsn04 = Eddy::Elements::E337.new(ref: "BSN04", req: "M") @bsn05 = Eddy::Elements::E1005.new(ref: "BSN05", req: "O") super( store, @bsn01, @bsn02, @bsn03, @bsn04, @bsn05, ) end
Public Instance Methods
### BSN01
-
Id: 353
-
Name: Transaction Set Purpose Code
-
Type: ID
-
Min/Max: 2/2
-
Description: Code identifying purpose of transaction set
@param arg [String] @return [void]
# File lib/definitions/segments/generated/bsn.rb, line 40 def BSN01=(arg) @bsn01.value = arg end
### BSN02
-
Id: 396
-
Name: Shipment Identification
-
Type: AN
-
Min/Max: 2/30
-
Description: A unique control number assigned by the original shipper to identify a specific shipment
@param arg [String] @return [void]
# File lib/definitions/segments/generated/bsn.rb, line 55 def BSN02=(arg) @bsn02.value = arg end
### BSN03
-
Id: 373
-
Name: Date
-
Type: DT
-
Min/Max: 8/8
-
Description: Date expressed as CCYYMMDD
@param arg [Time] @return [void]
# File lib/definitions/segments/generated/bsn.rb, line 70 def BSN03=(arg) @bsn03.value = arg end
### BSN04
-
Id: 337
-
Name: Time
-
Type: TM
-
Min/Max: 4/8
-
Description: Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)
@param arg [Time] @return [void]
# File lib/definitions/segments/generated/bsn.rb, line 85 def BSN04=(arg) @bsn04.value = arg end
### BSN05
-
Id: 1005
-
Name: Hierarchical Structure Code
-
Type: ID
-
Min/Max: 4/4
-
Description: Code indicating the hierarchical application structure of a transaction set that utilizes the
HL
segment to define the structure of the transaction set
@param arg [String] @return [void]
# File lib/definitions/segments/generated/bsn.rb, line 100 def BSN05=(arg) @bsn05.value = arg end