Sha256: 074ac47bf904a8036d0c810113f7a9c4c4ff88c8537d83b1ee7ba3b5c04c17a4

Contents?: true

Size: 1.44 KB

Versions: 4

Compression:

Stored size: 1.44 KB

Contents

module Eddy
  module Elements
    # ### Element Summary:
    #
    # - Id: 587
    # - Name: Acknowledgment Type
    # - Type: ID
    # - Min/Max: 2/2
    # - Description: Code specifying the type of acknowledgment
    class E587 < Eddy::Element::ID

      # @param val [String]
      # @param req [String]
      # @param ref [String]
      # @return [void]
      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

      # @return [Array<String>]
      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

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eddy-0.5.1 lib/definitions/elements/generated/587.acknowledgment_type.rb
eddy-0.5.0 lib/definitions/elements/generated/587.acknowledgment_type.rb
eddy-0.4.0 lib/definitions/elements/generated/587.acknowledgment_type.rb
eddy-0.3.0 lib/definitions/elements/generated/587.acknowledgment_type.rb