class Eddy::Elements::E687

### 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/687.class_of_trade_code.rb, line 16
def initialize(val: nil, req: nil, ref: nil)
  @id = "687"
  @name = "Class of Trade Code"
  @description = "Code indicating class of trade"
  super(
    min: 2,
    max: 2,
    req: req,
    ref: ref,
    val: val,
  )
end

Public Instance Methods

code_list() click to toggle source

@return [Array<String>]

# File lib/definitions/elements/generated/687.class_of_trade_code.rb, line 30
def code_list()
  return [
    "AA", # Branches
    "AB", # Members
    "AC", # Commercial Enterprises
    "AD", # Special Trades
    "AG", # Agent
    "AI", # Importer
    "AP", # Purchaser
    "AS", # Seller
    "BG", # Buying Group
    "BR", # Broker
    "CB", # Combined
    "CN", # Consolidator (Master Distributor)
    "CO", # Contractor
    "CR", # Chain Store Retail
    "CX", # Confection
    "CY", # Convenience Store
    "DE", # Dealer
    "DF", # Doctors' Offices
    "DI", # Distributor
    "DR", # Drug Store
    "EX", # Exporter
    "FS", # Food Service
    "GA", # Grocery Accounts
    "GM", # General Merchandise
    "GR", # General Retail
    "GV", # Government
    "HS", # Hospitals
    "ID", # Industrial
    "IN", # Institutional
    "IR", # Independent Retail
    "JB", # Jobber
    "LC", # Long-term Care
    "MC", # Managed Care
    "MF", # Manufacturer
    "ML", # Military
    "OE", # OEM
    "OF", # Off Premise
    "ON", # On Premise
    "PF", # Professional
    "PH", # Outpatient Pharmacy
    "PT", # Pet Supply Store
    "PY", # Private Label
    "RS", # Resale
    "SA", # Services
    "SB", # Support
    "SE", # Securities
    "ST", # Stationer
    "TR", # General Trade
    "WA", # Warehousing
    "WC", # Warehouse Clubs
    "WH", # Wholesaler
    "WS", # User
  ]
end