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, VerificationAddOns, 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

Returns a new instance of UsBankAccountVerification.



43
44
45
# File 'lib/braintree/us_bank_account_verification.rb', line 43

def initialize(attributes)
  set_instance_variables_from_hash(attributes)
end

Instance Attribute Details

#additional_processor_responseObject (readonly)

Returns the value of attribute additional_processor_response.



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

def additional_processor_response
  @additional_processor_response
end

#created_atObject (readonly)

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#gateway_rejection_reasonObject (readonly)

Returns the value of attribute gateway_rejection_reason.



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

def gateway_rejection_reason
  @gateway_rejection_reason
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#merchant_account_idObject (readonly)

Returns the value of attribute merchant_account_id.



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

def 
  @merchant_account_id
end

#processor_response_codeObject (readonly)

Returns the value of attribute processor_response_code.



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

def processor_response_code
  @processor_response_code
end

#processor_response_textObject (readonly)

Returns the value of attribute processor_response_text.



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

def processor_response_text
  @processor_response_text
end

#statusObject (readonly)

Returns the value of attribute status.



38
39
40
# File 'lib/braintree/us_bank_account_verification.rb', line 38

def status
  @status
end

#us_bank_accountObject (readonly)

Returns the value of attribute us_bank_account.



39
40
41
# File 'lib/braintree/us_bank_account_verification.rb', line 39

def 
  @us_bank_account
end

#verification_determined_atObject (readonly)

Returns the value of attribute verification_determined_at.



40
41
42
# File 'lib/braintree/us_bank_account_verification.rb', line 40

def verification_determined_at
  @verification_determined_at
end

#verification_methodObject (readonly)

Returns the value of attribute verification_method.



41
42
43
# File 'lib/braintree/us_bank_account_verification.rb', line 41

def verification_method
  @verification_method
end

Class Method Details

._new(*args) ⇒ Object



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

def self._new(*args)
  self.new(*args)
end

.confirm_micro_transfer_amounts(*args) ⇒ Object



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

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

.find(*args) ⇒ Object



81
82
83
# File 'lib/braintree/us_bank_account_verification.rb', line 81

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

.search(&block) ⇒ Object



85
86
87
# File 'lib/braintree/us_bank_account_verification.rb', line 85

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

Instance Method Details

#inspectObject



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/braintree/us_bank_account_verification.rb', line 47

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

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

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