Class: Eddy::Elements::E23

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

Overview

Element Summary:

  • Id: 23
  • Name: Commodity Code Qualifier
  • Type: ID
  • Min/Max: 1/1
  • Description: Code identifying the commodity coding system used for Commodity Code

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/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

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
54
55
56
# 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