Class: Braintree::ThreeDSecureInfo

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/three_d_secure_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(attributes) ⇒ ThreeDSecureInfo

Returns a new instance of ThreeDSecureInfo.



24
25
26
# File 'lib/braintree/three_d_secure_info.rb', line 24

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

Instance Attribute Details

#acs_transaction_idObject (readonly)

Returns the value of attribute acs_transaction_id.



5
6
7
# File 'lib/braintree/three_d_secure_info.rb', line 5

def acs_transaction_id
  @acs_transaction_id
end

#authenticationObject (readonly)

Returns the value of attribute authentication.



19
20
21
# File 'lib/braintree/three_d_secure_info.rb', line 19

def authentication
  @authentication
end

#cavvObject (readonly)

Returns the value of attribute cavv.



6
7
8
# File 'lib/braintree/three_d_secure_info.rb', line 6

def cavv
  @cavv
end

#ds_transaction_idObject (readonly)

Returns the value of attribute ds_transaction_id.



7
8
9
# File 'lib/braintree/three_d_secure_info.rb', line 7

def ds_transaction_id
  @ds_transaction_id
end

#eci_flagObject (readonly)

Returns the value of attribute eci_flag.



8
9
10
# File 'lib/braintree/three_d_secure_info.rb', line 8

def eci_flag
  @eci_flag
end

#enrolledObject (readonly)

Returns the value of attribute enrolled.



9
10
11
# File 'lib/braintree/three_d_secure_info.rb', line 9

def enrolled
  @enrolled
end

#liability_shift_possibleObject (readonly) Also known as: liability_shift_possible?

Returns the value of attribute liability_shift_possible.



10
11
12
# File 'lib/braintree/three_d_secure_info.rb', line 10

def liability_shift_possible
  @liability_shift_possible
end

#liability_shiftedObject (readonly) Also known as: liability_shifted?

Returns the value of attribute liability_shifted.



11
12
13
# File 'lib/braintree/three_d_secure_info.rb', line 11

def liability_shifted
  @liability_shifted
end

#lookupObject (readonly)

Returns the value of attribute lookup.



18
19
20
# File 'lib/braintree/three_d_secure_info.rb', line 18

def lookup
  @lookup
end

#pares_statusObject (readonly)

Returns the value of attribute pares_status.



12
13
14
# File 'lib/braintree/three_d_secure_info.rb', line 12

def pares_status
  @pares_status
end

#statusObject (readonly)

Returns the value of attribute status.



13
14
15
# File 'lib/braintree/three_d_secure_info.rb', line 13

def status
  @status
end

#three_d_secure_authentication_idObject (readonly)

Returns the value of attribute three_d_secure_authentication_id.



14
15
16
# File 'lib/braintree/three_d_secure_info.rb', line 14

def three_d_secure_authentication_id
  @three_d_secure_authentication_id
end

#three_d_secure_transaction_idObject (readonly)

Returns the value of attribute three_d_secure_transaction_id.



15
16
17
# File 'lib/braintree/three_d_secure_info.rb', line 15

def three_d_secure_transaction_id
  @three_d_secure_transaction_id
end

#three_d_secure_versionObject (readonly)

Returns the value of attribute three_d_secure_version.



16
17
18
# File 'lib/braintree/three_d_secure_info.rb', line 16

def three_d_secure_version
  @three_d_secure_version
end

#xidObject (readonly)

Returns the value of attribute xid.



17
18
19
# File 'lib/braintree/three_d_secure_info.rb', line 17

def xid
  @xid
end

Instance Method Details

#inspectObject



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/braintree/three_d_secure_info.rb', line 28

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