Class: Eddy::Elements::E88

Inherits:
Models::Element::ID show all
Defined in:
lib/definitions/elements/generated/88.marks_and_numbers_qualifier.rb

Overview

Element Summary:

  • Id: 88
  • Name: Marks and Numbers Qualifier
  • Type: ID
  • Min/Max: 1/2
  • Description: Code specifying the application or source of Marks and Numbers (87)

Instance Attribute Summary

Attributes inherited from Models::Element::Base

#description, #id, #max, #min, #name, #ref, #type

Instance Method Summary collapse

Methods inherited from Models::Element::ID

#process_value, process_value, #value, #value=

Methods inherited from Models::Element::Base

#doc_comment, #process_value, process_value, #req, #req=, #value, #value=

Constructor Details

#initialize(val: nil, req: nil, ref: nil) ⇒ void

Parameters:

  • val (String) (defaults to: nil)
  • req (String) (defaults to: nil)
  • ref (String) (defaults to: nil)


16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/definitions/elements/generated/88.marks_and_numbers_qualifier.rb', line 16

def initialize(val: nil, req: nil, ref: nil)
  @id = "88"
  @name = "Marks and Numbers Qualifier"
  @description = "Code specifying the application or source of Marks and Numbers (87)"
  super(
    min: 1,
    max: 2,
    req: req,
    ref: ref,
    val: val,
  )
end

Instance Method Details

#code_listArray<String>

Returns:

  • (Array<String>)


30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/definitions/elements/generated/88.marks_and_numbers_qualifier.rb', line 30

def code_list()
  return [
    "L", # Line Item Only
    "R", # Originator Assigned
    "S", # Entire Shipment
    "W", # Pallet Number
    "X", # Pallet Configuration Number
    "AA", # SSCC-18
    "AI", # UCC/EAN-128 Application Identifier (AI) and Data
    "CA", # Shipper-Assigned Case Number
    "CP", # Carrier-Assigned Package ID Number
    "DZ", # Receiver Assigned Drop Zone
    "GM", # SSCC-18 and Application Identifier
    "MC", # Master Carton Number
    "PB", # Premarked by Buyer
    "SI", # Self-Identifying Container via Radio Frequency ID Device
    "SM", # Shipper Assigned
    "SR", # Shipper Assigned Roll Number
    "SS", # Shipper Assigned Skid Number
    "UC", # U.P.C. Shipping Container Code
    "UP", # U.P.C. Consumer Package Code (1-5-5-1)
    "ZZ", # Mutually Defined
  ]
end