Sha256: 4ddb1e6f0bf37eb0a830863061481f141b1a035e200c5133a5d9dee5b1ad5bf8

Contents?: true

Size: 1020 Bytes

Versions: 3

Compression:

Stored size: 1020 Bytes

Contents

module Braintree
  class ThreeDSecureInfo # :nodoc:
    include BaseModule

    attr_reader :enrolled
    attr_reader :liability_shifted
    attr_reader :liability_shift_possible
    attr_reader :status
    attr_reader :cavv
    attr_reader :xid
    attr_reader :eci_flag
    attr_reader :three_d_secure_version
    attr_reader :ds_transaction_id

    alias_method :liability_shifted?, :liability_shifted
    alias_method :liability_shift_possible?, :liability_shift_possible

    def initialize(attributes)
      set_instance_variables_from_hash attributes unless attributes.nil?
    end

    def inspect
      attr_order = [
        :enrolled,
        :liability_shifted,
        :liability_shift_possible,
        :status,
        :cavv,
        :xid,
        :eci_flag,
        :three_d_secure_version,
        :ds_transaction_id,
      ]

      formatted_attrs = attr_order.map do |attr|
        "#{attr}: #{send(attr).inspect}"
      end
      "#<ThreeDSecureInfo #{formatted_attrs.join(", ")}>"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
braintree-2.100.0 lib/braintree/three_d_secure_info.rb
braintree-2.99.0 lib/braintree/three_d_secure_info.rb
braintree-2.98.0 lib/braintree/three_d_secure_info.rb