Sha256: 4d68c333d40b8a4e2289b24894b512910a57b47e61fc7c2dd8f2a53356700ce2

Contents?: true

Size: 1.38 KB

Versions: 18

Compression:

Stored size: 1.38 KB

Contents

module Braintree
  class ThreeDSecureInfo # :nodoc:
    include BaseModule

    attr_reader :acs_transaction_id
    attr_reader :cavv
    attr_reader :ds_transaction_id
    attr_reader :eci_flag
    attr_reader :enrolled
    attr_reader :liability_shift_possible
    attr_reader :liability_shifted
    attr_reader :pares_status
    attr_reader :status
    attr_reader :three_d_secure_authentication_id
    attr_reader :three_d_secure_transaction_id
    attr_reader :three_d_secure_version
    attr_reader :xid
    attr_reader :lookup
    attr_reader :authentication

    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 = [
        :acs_transaction_id,
        :authentication,
        :cavv,
        :ds_transaction_id,
        :eci_flag,
        :enrolled,
        :liability_shift_possible,
        :liability_shifted,
        :lookup,
        :pares_status,
        :status,
        :three_d_secure_authentication_id,
        :three_d_secure_transaction_id,
        :three_d_secure_version,
        :xid
      ]

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/three_d_secure_info.rb
braintree-4.14.0 lib/braintree/three_d_secure_info.rb
braintree-4.13.0 lib/braintree/three_d_secure_info.rb
braintree-4.12.0 lib/braintree/three_d_secure_info.rb
braintree-4.11.0 lib/braintree/three_d_secure_info.rb
braintree-4.10.0 lib/braintree/three_d_secure_info.rb
braintree-4.9.0 lib/braintree/three_d_secure_info.rb
braintree-4.8.0 lib/braintree/three_d_secure_info.rb
braintree-4.7.0 lib/braintree/three_d_secure_info.rb
braintree-4.6.0 lib/braintree/three_d_secure_info.rb
braintree-4.5.0 lib/braintree/three_d_secure_info.rb
braintree-4.4.0 lib/braintree/three_d_secure_info.rb
braintree-4.3.0 lib/braintree/three_d_secure_info.rb
braintree-4.2.0 lib/braintree/three_d_secure_info.rb
braintree-4.1.0 lib/braintree/three_d_secure_info.rb
braintree-4.0.0 lib/braintree/three_d_secure_info.rb
braintree-3.4.0 lib/braintree/three_d_secure_info.rb
braintree-3.3.0 lib/braintree/three_d_secure_info.rb