class Eddy::Segments::TD1

### Segment Summary:

Public Class Methods

new(store) click to toggle source

@param store [Eddy::Data::Store] @return [void]

Calls superclass method Eddy::Models::Segment::new
# File lib/definitions/segments/generated/td1.rb, line 12
def initialize(store)
  @id = "TD1"
  @name = "Carrier Details (Quantity and Weight)"
  @td101 = Eddy::Elements::E103.new(ref: "TD101", req: "O")
  @td102 = Eddy::Elements::E80.new(ref: "TD102", req: "X")
  @td103 = Eddy::Elements::E23.new(ref: "TD103", req: "O")
  @td104 = Eddy::Elements::E22.new(ref: "TD104", req: "X")
  @td105 = Eddy::Elements::E79.new(ref: "TD105", req: "O")
  @td106 = Eddy::Elements::E187.new(ref: "TD106", req: "O")
  @td107 = Eddy::Elements::E81.new(ref: "TD107", req: "X")
  @td108 = Eddy::Elements::E355.new(ref: "TD108", req: "X")
  super(
    store,
    @td101,
    @td102,
    @td103,
    @td104,
    @td105,
    @td106,
    @td107,
    @td108,
  )
end

Public Instance Methods

CommodityCode=(arg)
Alias for: TD104=
CommodityCodeQualifier=(arg)
Alias for: TD103=
LadingDescription=(arg)
Alias for: TD105=
LadingQuantity=(arg)
Alias for: TD102=
PackagingCode=(arg)
Alias for: TD101=
TD101=(arg) click to toggle source

### TD101

  • Id: 103

  • Name: Packaging Code

  • Type: AN

  • Min/Max: 3/5

  • Description: Code identifying the type of packaging; Part 1: Packaging Form, Part 2: Packaging Material; if the Data Element is used, then Part 1 is always required

@param arg [String] @return [void]

# File lib/definitions/segments/generated/td1.rb, line 46
def TD101=(arg)
  @td101.value = arg
end
Also aliased as: PackagingCode=
TD102=(arg) click to toggle source

### TD102

  • Id: 80

  • Name: Lading Quantity

  • Type: N0

  • Min/Max: 1/7

  • Description: Number of units (pieces) of the lading commodity

@param arg [Integer] @return [void]

# File lib/definitions/segments/generated/td1.rb, line 61
def TD102=(arg)
  @td102.value = arg
end
Also aliased as: LadingQuantity=
TD103=(arg) click to toggle source

### TD103

  • Id: 23

  • Name: Commodity Code Qualifier

  • Type: ID

  • Min/Max: 1/1

  • Description: Code identifying the commodity coding system used for Commodity Code

@param arg [String] @return [void]

# File lib/definitions/segments/generated/td1.rb, line 76
def TD103=(arg)
  @td103.value = arg
end
Also aliased as: CommodityCodeQualifier=
TD104=(arg) click to toggle source

### TD104

  • Id: 22

  • Name: Commodity Code

  • Type: AN

  • Min/Max: 1/30

  • Description: Code describing a commodity or group of commodities

@param arg [String] @return [void]

# File lib/definitions/segments/generated/td1.rb, line 91
def TD104=(arg)
  @td104.value = arg
end
Also aliased as: CommodityCode=
TD105=(arg) click to toggle source

### TD105

  • Id: 79

  • Name: Lading Description

  • Type: AN

  • Min/Max: 1/50

  • Description: Description of an item as required for rating and billing purposes

@param arg [String] @return [void]

# File lib/definitions/segments/generated/td1.rb, line 106
def TD105=(arg)
  @td105.value = arg
end
Also aliased as: LadingDescription=
TD106=(arg) click to toggle source

### TD106

  • Id: 187

  • Name: Weight Qualifier

  • Type: ID

  • Min/Max: 1/2

  • Description: Code defining the type of weight

@param arg [String] @return [void]

# File lib/definitions/segments/generated/td1.rb, line 121
def TD106=(arg)
  @td106.value = arg
end
Also aliased as: WeightQualifier=
TD107=(arg) click to toggle source

### TD107

  • Id: 81

  • Name: Weight

  • Type: R

  • Min/Max: 1/10

  • Description: Numeric value of weight

@param arg [Float] @return [void]

# File lib/definitions/segments/generated/td1.rb, line 136
def TD107=(arg)
  @td107.value = arg
end
Also aliased as: Weight=
TD108=(arg) click to toggle source

### TD108

  • Id: 355

  • Name: Unit or Basis for Measurement Code

  • Type: ID

  • Min/Max: 2/2

  • Description: Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

@param arg [String] @return [void]

# File lib/definitions/segments/generated/td1.rb, line 151
def TD108=(arg)
  @td108.value = arg
end
UnitOrBasisForMeasurementCode=(arg)
Alias for: TD108=
Weight=(arg)
Alias for: TD107=
WeightQualifier=(arg)
Alias for: TD106=