Sha256: 4be46f91e7d27b74f32cda920741a94a2ca05c74e544402c7b48fa830af201d3

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

module Eddy
  module Elements
    # ### Element Summary:
    #
    # - Id: 248
    # - Name: Allowance or Charge Indicator
    # - Type: ID
    # - Min/Max: 1/1
    # - Description: Code which indicates an allowance or charge for the service specified
    class E248 < Eddy::Element::ID

      # @param val [String]
      # @param req [String]
      # @param ref [String]
      # @return [void]
      def initialize(val: nil, req: nil, ref: nil)
        @id = "248"
        @name = "Allowance or Charge Indicator"
        @description = "Code which indicates an allowance or charge for the service specified"
        super(
          min: 1,
          max: 1,
          req: req,
          ref: ref,
          val: val,
        )
      end

      # @return [Array<String>]
      def code_list()
        return [
          "A", # Allowance
          "C", # Charge
          "N", # No Allowance or Charge
          "P", # Promotion
          "Q", # Charge Request
          "R", # Allowance Request
          "S", # Service
        ]
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eddy-0.5.1 lib/definitions/elements/generated/248.allowance_or_charge_indicator.rb
eddy-0.5.0 lib/definitions/elements/generated/248.allowance_or_charge_indicator.rb
eddy-0.4.0 lib/definitions/elements/generated/248.allowance_or_charge_indicator.rb
eddy-0.3.0 lib/definitions/elements/generated/248.allowance_or_charge_indicator.rb