Sha256: 3a0f7176e698afebb48cc6a1a19e93190fe1019b2ac5e6e68250630f91750c5b

Contents?: true

Size: 841 Bytes

Versions: 8

Compression:

Stored size: 841 Bytes

Contents

# typed: true
# frozen_string_literal: true

module EML
  module UK
    class Payload
      module Card
        class Lock < ::EML::UK::Payload
          REQUIRED_CONFIG = %i[merchant_group].freeze
          REQUIRED_VALUES = %i[note reason].freeze

          private

          sig { params(merchant_group: String).returns(String) }
          attr_accessor :merchant_group

          sig { params(note: String).returns(String) }
          attr_accessor :note

          REASONS = %w[
            Damaged DataBreach Lost Miscellaneous OfficeError
            PastAccountExpirationDate Stolen UnclaimedProperty
          ].freeze

          sig { params(reason: String).void }
          def reason=(reason)
            validate_enum(:reason, reason, REASONS)
            @reason = reason
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
eml-2.1.5 lib/eml/uk/payload/card/lock.rb
eml-2.1.4 lib/eml/uk/payload/card/lock.rb
eml-2.1.3 lib/eml/uk/payload/card/lock.rb
eml-2.1.2 lib/eml/uk/payload/card/lock.rb
eml-2.1.1 lib/eml/uk/payload/card/lock.rb
eml-2.1.0 lib/eml/uk/payload/card/lock.rb
eml-2.0.0 lib/eml/uk/payload/card/lock.rb
eml-1.0.0 lib/eml/uk/payload/card/lock.rb