Sha256: 72fcc46a0179bafb9aa034085e008afd8685969e1e4f7ed9e1ea1eb2dd4fbb0f

Contents?: true

Size: 1.45 KB

Versions: 2

Compression:

Stored size: 1.45 KB

Contents

# typed: strict
# frozen_string_literal: true

# rubocop:disable Naming/VariableName
module EML
  module UK
    class Payload
      module Agreement
        class Show < ::EML::UK::Payload
          OPTIONAL_DEFAULTS =
            T.let(%i[merchant_group program].freeze, T::Array[Symbol])

          sig { params(payload: T::Hash[Symbol, T.untyped]).void }
          def initialize(payload)
            super

            @Is_account_expiry = T.let(nil, T.nilable(String))
            @Is_fee_free = T.let(nil, T.nilable(String))
          end

          private

          sig { returns(T.nilable(String)) }
          attr_accessor :bin

          sig { returns(T.nilable(String)) }
          attr_accessor :country

          sig { returns(T.nilable(String)) }
          attr_accessor :developer

          sig { params(is_account_expiry: T::Boolean).returns(String) }
          def is_account_expiry=(is_account_expiry)
            @Is_account_expiry = is_account_expiry.inspect
          end

          sig { params(is_fee_free: T::Boolean).returns(String) }
          def is_fee_free=(is_fee_free)
            @Is_fee_free = is_fee_free.inspect
          end

          sig { returns(T.nilable(String)) }
          attr_accessor :merchant_group

          sig { returns(T.nilable(String)) }
          attr_accessor :program

          sig { returns(T.nilable(String)) }
          attr_accessor :region
        end
      end
    end
  end
end
# rubocop:enable Naming/VariableName

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eml-3.0.0 lib/eml/uk/payload/agreement/show.rb
eml-2.2.0 lib/eml/uk/payload/agreement/show.rb