Class: Eddy::Segments::BSN

Inherits:
Models::Segment show all
Defined in:
lib/definitions/segments/generated/bsn.rb

Overview

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.

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
19
20
21
22
23
24
25
26
27
28
# 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

Instance Method Details

#BSN01=(arg) ⇒ void Also known as: TransactionSetPurposeCode=

This method returns an undefined value.

BSN01

  • Id: 353
  • Name: Transaction Set Purpose Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code identifying purpose of transaction set

Parameters:

  • arg (String)


40
41
42
# File 'lib/definitions/segments/generated/bsn.rb', line 40

def BSN01=(arg)
  @bsn01.value = arg
end

#BSN02=(arg) ⇒ void Also known as: ShipmentIdentification=

This method returns an undefined value.

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

Parameters:

  • arg (String)


55
56
57
# File 'lib/definitions/segments/generated/bsn.rb', line 55

def BSN02=(arg)
  @bsn02.value = arg
end

#BSN03=(arg) ⇒ void Also known as: Date=

This method returns an undefined value.

BSN03

  • Id: 373
  • Name: Date
  • Type: DT
  • Min/Max: 8/8
  • Description: Date expressed as CCYYMMDD

Parameters:

  • arg (Time)


70
71
72
# File 'lib/definitions/segments/generated/bsn.rb', line 70

def BSN03=(arg)
  @bsn03.value = arg
end

#BSN04=(arg) ⇒ void Also known as: Time=

This method returns an undefined value.

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)

Parameters:

  • arg (Time)


85
86
87
# File 'lib/definitions/segments/generated/bsn.rb', line 85

def BSN04=(arg)
  @bsn04.value = arg
end

#BSN05=(arg) ⇒ void Also known as: HierarchicalStructureCode=

This method returns an undefined value.

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

Parameters:

  • arg (String)


100
101
102
# File 'lib/definitions/segments/generated/bsn.rb', line 100

def BSN05=(arg)
  @bsn05.value = arg
end