class Eddy::Elements::E23

### Element Summary:

Public Class Methods

new(val: nil, req: nil, ref: nil) click to toggle source

@param val [String] @param req [String] @param ref [String] @return [void]

Calls superclass method Eddy::Models::Element::ID::new
# File lib/definitions/elements/generated/23.commodity_code_qualifier.rb, line 16
def initialize(val: nil, req: nil, ref: nil)
  @id = "23"
  @name = "Commodity Code Qualifier"
  @description = "Code identifying the commodity coding system used for Commodity Code"
  super(
    min: 1,
    max: 1,
    req: req,
    ref: ref,
    val: val,
  )
end

Public Instance Methods

code_list() click to toggle source

@return [Array<String>]

# File lib/definitions/elements/generated/23.commodity_code_qualifier.rb, line 30
def code_list()
  return [
    "2", # Dun's SIC 2+2, Dun & Bradstreet
    "3", # Empty Non-hazardous Last Contained (HMRC) Code
    "A", # Harmonized Tariff Schedule of the United States Annotated
    "B", # U.S. Foreign Trade Schedule B, Statistical Classification of Domestic and Foreign Commodities Exported from the United States
    "C", # Canadian Freight Classification
    "D", # Department of Defense Unique Codes
    "E", # Coordinated Motor Freight Classification
    "F", # National Stock Number
    "G", # Canadian Wheat Board, Grain Code for Terminal Elevator Accounting
    "H", # Brussels Nomenclature
    "I", # Milstamp AITC or Water Commodity Code
    "J", # Harmonized System-Based Schedule B
    "K", # Federal Supply Classification
    "L", # Last Contained Contents STCC
    "M", # Dun & Bradstreet Standard Product and Service Code
    "N", # National Motor Freight Classification (NMFC)
    "P", # Bulk Petroleum Codes
    "Q", # Quota Category
    "S", # Standard International Trade Classification (SITC)
    "T", # Standard Transportation Commodity Code (STCC)
    "U", # Uniform Freight Classification (UFC)
    "V", # Standard Industrial Classification (SIC) Code
    "Z", # Mutually defined
  ]
end