class Eddy::Elements::E311

### 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/311.shipment_type_code.rb, line 16
def initialize(val: nil, req: nil, ref: nil)
  @id = "311"
  @name = "Shipment Type Code"
  @description = "Code identifying shipment type"
  super(
    min: 1,
    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/311.shipment_type_code.rb, line 30
def code_list()
  return [
    "AD", # Inventory Adjustment (+)
    "AM", # Inventory Adjustment (-)
    "CS", # Customer Shipment
    "RJ", # Rejected Shipment
    "ST", # Stock Transfer
  ]
end