Class: Eddy::Elements::E587

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

Overview

Element Summary:

  • Id: 587
  • Name: Acknowledgment Type
  • Type: ID
  • Min/Max: 2/2
  • Description: Code specifying the type of acknowledgment

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/587.acknowledgment_type.rb', line 16

def initialize(val: nil, req: nil, ref: nil)
  @id = "587"
  @name = "Acknowledgment Type"
  @description = "Code specifying the type of acknowledgment"
  super(
    min: 2,
    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
# File 'lib/definitions/elements/generated/587.acknowledgment_type.rb', line 30

def code_list()
  return [
    "AC", # Acknowledge - With Detail and Change
    "AD", # Acknowledge - With Detail, No Change
    "AE", # Acknowledge - With Exception Detail Only
    "AH", # Acknowledge - Hold Status
    "AK", # Acknowledge - No Detail or Change
    "AP", # Acknowledge - Product Replenishment
    "AT", # Accepted
    "NA", # No Acknowledgment Needed
    "RD", # Reject with Detail
    "RF", # Reject with Exception Detail Only
    "RJ", # Rejected - No Detail
    "RN", # Rejected - Not as Agreed
    "RO", # Rejected With Counter Offer
    "RV", # Rejected - Violates Industry Practices
    "ZZ", # Mutually Defined
  ]
end