Class: Eddy::Elements::E353

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

Overview

Element Summary:

  • Id: 353
  • Name: Transaction Set Purpose Code
  • Type: ID
  • Min/Max: 2/2
  • Description: Code identifying purpose of transaction set

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/353.transaction_set_purpose_code.rb', line 16

def initialize(val: nil, req: nil, ref: nil)
  @id = "353"
  @name = "Transaction Set Purpose Code"
  @description = "Code identifying purpose of transaction set"
  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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/definitions/elements/generated/353.transaction_set_purpose_code.rb', line 30

def code_list()
  return [
    "00", # Original
    "01", # Cancellation
    "02", # Add
    "03", # Delete
    "04", # Change
    "05", # Replace
    "06", # Confirmation
    "07", # Duplicate
    "08", # Status
    "10", # Not Found
    "11", # Response
    "12", # Not Processed
    "13", # Request
    "14", # Advance Notification
    "15", # Re-Submission
    "16", # Proposed
    "17", # Cancel, to be Reissued
    "18", # Reissue
    "19", # Seller initiated change
    "20", # Final Transmission
    "21", # Transaction on Hold
    "22", # Information Copy
    "24", # Draft
    "25", # Incremental
    "26", # Replace - Specified Buyers Parts Only
    "27", # Verify
    "28", # Query
    "30", # Renewal
    "31", # Allowance/Addition
    "32", # Recovery/Deduction
    "33", # Request for Payment
    "34", # Payment Declined
    "35", # Request Authority
    "36", # Authority to Deduct (Reply)
    "37", # Authority Declined (Reply)
    "38", # No Financial Value
    "39", # Response to Proposed Trip Plan
    "40", # Commitment Advice
    "41", # Corrected and Verified
    "42", # Temporary Record
    "43", # Request Permission to Service
    "44", # Rejection
    "45", # Follow-up
    "46", # Cancellation with Refund
    "47", # Transfer
    "48", # Suspended
    "49", # Original - No Response Necessary
    "50", # Register
    "51", # Historical Inquiry
    "52", # Response to Historical Inquiry
    "53", # Completion
    "54", # Approval
    "55", # Excavation
    "56", # Expiration Notification
    "5C", # Chargeable Resubmission
    "77", # Simulation Exercise
    "CN", # Completion Notification
    "CO", # Corrected
    "EX", # Final Loading Configuration
    "GR", # Granted
    "PR", # Proposed Loading Configuration
    "RH", # Release Hold
    "RV", # Revised Loading Configuration
    "SU", # Status Update
    "ZZ", # Mutually Defined
  ]
end