Class: Eddy::Segments::CAD

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

Overview

Segment Summary:

  • Id: CAD
  • Name: Carrier Detail
  • Purpose: To specify transportation details for the transaction.

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
29
30
31
32
33
34
35
36
# File 'lib/definitions/segments/generated/cad.rb', line 12

def initialize(store)
  @id = "CAD"
  @name = "Carrier Detail"
  @cad01 = Eddy::Elements::E91.new(ref: "CAD01", req: "O")
  @cad02 = Eddy::Elements::E206.new(ref: "CAD02", req: "O")
  @cad03 = Eddy::Elements::E207.new(ref: "CAD03", req: "O")
  @cad04 = Eddy::Elements::E140.new(ref: "CAD04", req: "X")
  @cad05 = Eddy::Elements::E387.new(ref: "CAD05", req: "X")
  @cad06 = Eddy::Elements::E368.new(ref: "CAD06", req: "O")
  @cad07 = Eddy::Elements::E128.new(ref: "CAD07", req: "O")
  @cad08 = Eddy::Elements::E127.new(ref: "CAD08", req: "X")
  @cad09 = Eddy::Elements::E284.new(ref: "CAD09", req: "O")
  super(
    store,
    @cad01,
    @cad02,
    @cad03,
    @cad04,
    @cad05,
    @cad06,
    @cad07,
    @cad08,
    @cad09,
  )
end

Instance Method Details

#CAD01=(arg) ⇒ void Also known as: TransportationMethodTypeCode=

This method returns an undefined value.

CAD01

  • Id: 91
  • Name: Transportation Method/Type Code
  • Type: ID
  • Min/Max: 1/2
  • Description: Code specifying the method or type of transportation for the shipment

Parameters:

  • arg (String)


48
49
50
# File 'lib/definitions/segments/generated/cad.rb', line 48

def CAD01=(arg)
  @cad01.value = arg
end

#CAD02=(arg) ⇒ void Also known as: EquipmentInitial=

This method returns an undefined value.

CAD02

  • Id: 206
  • Name: Equipment Initial
  • Type: AN
  • Min/Max: 1/4
  • Description: Prefix or alphabetic part of an equipment unit's identifying number

Parameters:

  • arg (String)


63
64
65
# File 'lib/definitions/segments/generated/cad.rb', line 63

def CAD02=(arg)
  @cad02.value = arg
end

#CAD03=(arg) ⇒ void Also known as: EquipmentNumber=

This method returns an undefined value.

CAD03

  • Id: 207
  • Name: Equipment Number
  • Type: AN
  • Min/Max: 1/10
  • Description: Sequencing or serial part of an equipment unit's identifying number (pure numeric form for equipment number is preferred)

Parameters:

  • arg (String)


78
79
80
# File 'lib/definitions/segments/generated/cad.rb', line 78

def CAD03=(arg)
  @cad03.value = arg
end

#CAD04=(arg) ⇒ void Also known as: StandardCarrierAlphaCode=

This method returns an undefined value.

CAD04

  • Id: 140
  • Name: Standard Carrier Alpha Code
  • Type: ID
  • Min/Max: 2/4
  • Description: Standard Carrier Alpha Code

Parameters:

  • arg (String)


93
94
95
# File 'lib/definitions/segments/generated/cad.rb', line 93

def CAD04=(arg)
  @cad04.value = arg
end

#CAD05=(arg) ⇒ void Also known as: Routing=

This method returns an undefined value.

CAD05

  • Id: 387
  • Name: Routing
  • Type: AN
  • Min/Max: 1/35
  • Description: Free-form description of the routing or requested routing for shipment, or the originating carrier's identity

Parameters:

  • arg (String)


108
109
110
# File 'lib/definitions/segments/generated/cad.rb', line 108

def CAD05=(arg)
  @cad05.value = arg
end

#CAD06=(arg) ⇒ void Also known as: ShipmentOrderStatusCode=

This method returns an undefined value.

CAD06

  • Id: 368
  • Name: Shipment/Order Status Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code indicating the status of an order or shipment or the disposition of any difference between the quantity ordered and the quantity shipped for a line item or transaction

Parameters:

  • arg (String)


123
124
125
# File 'lib/definitions/segments/generated/cad.rb', line 123

def CAD06=(arg)
  @cad06.value = arg
end

#CAD07=(arg) ⇒ void Also known as: ReferenceIdentificationQualifier=

This method returns an undefined value.

CAD07

  • Id: 128
  • Name: Reference Identification Qualifier
  • Type: ID
  • Min/Max: 2/3
  • Description: Code qualifying the Reference Identification

Parameters:

  • arg (String)


138
139
140
# File 'lib/definitions/segments/generated/cad.rb', line 138

def CAD07=(arg)
  @cad07.value = arg
end

#CAD08=(arg) ⇒ void Also known as: ReferenceIdentification=

This method returns an undefined value.

CAD08

  • Id: 127
  • Name: Reference Identification
  • Type: AN
  • Min/Max: 1/30
  • Description: Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

Parameters:

  • arg (String)


153
154
155
# File 'lib/definitions/segments/generated/cad.rb', line 153

def CAD08=(arg)
  @cad08.value = arg
end

#CAD09=(arg) ⇒ void Also known as: ServiceLevelCode=

This method returns an undefined value.

CAD09

  • Id: 284
  • Name: Service Level Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code indicating the level of transportation service or the billing service offered by the transportation carrier

Parameters:

  • arg (String)


168
169
170
# File 'lib/definitions/segments/generated/cad.rb', line 168

def CAD09=(arg)
  @cad09.value = arg
end