Class: Braintree::UsBankAccountVerification

Inherits:
Object
  • Object
show all
Includes:
BaseModule, Braintree::Util::IdEquality
Defined in:
lib/braintree/us_bank_account_verification.rb

Defined Under Namespace

Modules: Status, VerificationMethod

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Braintree::Util::IdEquality

#==

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) ⇒ UsBankAccountVerification

:nodoc:


36
37
38
# File 'lib/braintree/us_bank_account_verification.rb', line 36

def initialize(attributes) # :nodoc:
  set_instance_variables_from_hash(attributes)
end

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at.


34
35
36
# File 'lib/braintree/us_bank_account_verification.rb', line 34

def created_at
  @created_at
end

#gateway_rejection_reasonObject (readonly)

Returns the value of attribute gateway_rejection_reason.


32
33
34
# File 'lib/braintree/us_bank_account_verification.rb', line 32

def gateway_rejection_reason
  @gateway_rejection_reason
end

#idObject (readonly)

Returns the value of attribute id.


25
26
27
# File 'lib/braintree/us_bank_account_verification.rb', line 25

def id
  @id
end

#merchant_account_idObject (readonly)

Returns the value of attribute merchant_account_id.


31
32
33
# File 'lib/braintree/us_bank_account_verification.rb', line 31

def 
  @merchant_account_id
end

#processor_response_codeObject (readonly)

Returns the value of attribute processor_response_code.


29
30
31
# File 'lib/braintree/us_bank_account_verification.rb', line 29

def processor_response_code
  @processor_response_code
end

#processor_response_textObject (readonly)

Returns the value of attribute processor_response_text.


30
31
32
# File 'lib/braintree/us_bank_account_verification.rb', line 30

def processor_response_text
  @processor_response_text
end

#statusObject (readonly)

Returns the value of attribute status.


26
27
28
# File 'lib/braintree/us_bank_account_verification.rb', line 26

def status
  @status
end

#us_bank_accountObject (readonly)

Returns the value of attribute us_bank_account.


33
34
35
# File 'lib/braintree/us_bank_account_verification.rb', line 33

def 
  @us_bank_account
end

#verification_determined_atObject (readonly)

Returns the value of attribute verification_determined_at.


27
28
29
# File 'lib/braintree/us_bank_account_verification.rb', line 27

def verification_determined_at
  @verification_determined_at
end

#verification_methodObject (readonly)

Returns the value of attribute verification_method.


28
29
30
# File 'lib/braintree/us_bank_account_verification.rb', line 28

def verification_method
  @verification_method
end

Class Method Details

._new(*args) ⇒ Object

:nodoc:


65
66
67
# File 'lib/braintree/us_bank_account_verification.rb', line 65

def self._new(*args) # :nodoc:
  self.new(*args)
end

.confirm_micro_transfer_amounts(*args) ⇒ Object


69
70
71
# File 'lib/braintree/us_bank_account_verification.rb', line 69

def self.confirm_micro_transfer_amounts(*args)
  Configuration.gateway..confirm_micro_transfer_amounts(*args)
end

.find(*args) ⇒ Object


73
74
75
# File 'lib/braintree/us_bank_account_verification.rb', line 73

def self.find(*args)
  Configuration.gateway..find(*args)
end

.search(&block) ⇒ Object


77
78
79
# File 'lib/braintree/us_bank_account_verification.rb', line 77

def self.search(&block)
  Configuration.gateway..search(&block)
end

Instance Method Details

#inspectObject

:nodoc:


40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/braintree/us_bank_account_verification.rb', line 40

def inspect # :nodoc:
  attr_order = [
    :status,
    :processor_response_code,
    :processor_response_text,
    :merchant_account_id,
    :gateway_rejection_reason,
    :id,
    :us_bank_account,
    :verification_method,
    :verification_determined_at,
    :created_at
  ]

  formatted_attrs = attr_order.map do |attr|
    "#{attr}: #{send(attr).inspect}"
  end

  "#<#{self.class} #{formatted_attrs.join(", ")}>"
end