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.



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

def initialize(attributes)
  set_instance_variables_from_hash(attributes)
  @us_bank_account = UsBankAccount._new(nil, attributes[:us_bank_account]) if attributes[:us_bank_account]
end

Instance Attribute Details

#additional_processor_responseObject (readonly)

Returns the value of attribute additional_processor_response.



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

def additional_processor_response
  @additional_processor_response
end

#created_atObject (readonly)

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#gateway_rejection_reasonObject (readonly)

Returns the value of attribute gateway_rejection_reason.



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

def gateway_rejection_reason
  @gateway_rejection_reason
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#merchant_account_idObject (readonly)

Returns the value of attribute merchant_account_id.



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

def 
  @merchant_account_id
end

#processor_response_codeObject (readonly)

Returns the value of attribute processor_response_code.



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

def processor_response_code
  @processor_response_code
end

#processor_response_textObject (readonly)

Returns the value of attribute processor_response_text.



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

def processor_response_text
  @processor_response_text
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end

#us_bank_accountObject (readonly)

Returns the value of attribute us_bank_account.



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

def 
  @us_bank_account
end

#verification_determined_atObject (readonly)

Returns the value of attribute verification_determined_at.



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

def verification_determined_at
  @verification_determined_at
end

#verification_methodObject (readonly)

Returns the value of attribute verification_method.



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

def verification_method
  @verification_method
end

Class Method Details

._new(*args) ⇒ Object



75
76
77
# File 'lib/braintree/us_bank_account_verification.rb', line 75

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

.confirm_micro_transfer_amounts(*args) ⇒ Object



79
80
81
# File 'lib/braintree/us_bank_account_verification.rb', line 79

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

.find(*args) ⇒ Object



83
84
85
# File 'lib/braintree/us_bank_account_verification.rb', line 83

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

.search(&block) ⇒ Object



87
88
89
# File 'lib/braintree/us_bank_account_verification.rb', line 87

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

Instance Method Details

#inspectObject



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

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