Class: SynapsePay::Bank

Inherits:
APIResource show all
Defined in:
lib/synapse_pay/resources/bank.rb

Instance Attribute Summary collapse

Attributes inherited from APIResource

#api_method, #client, #json

Instance Method Summary collapse

Methods inherited from APIResource

api_attribute_names, #api_attributes, api_subclass_fetch, api_subclasses, #changed_api_attributes, #clear_api_attributes, #determine_api_attribute_value, determine_api_attribute_value, #initialize, #inspect, #inspect_api_attributes, #inspect_nested, #refresh_from, register_api_subclass, #to_json

Constructor Details

This class inherits a constructor from SynapsePay::APIResource

Instance Attribute Details

#account_classObject

Returns the value of attribute account_class.



3
4
5
# File 'lib/synapse_pay/resources/bank.rb', line 3

def 
  @account_class
end

#account_number_stringObject

Returns the value of attribute account_number_string.



4
5
6
# File 'lib/synapse_pay/resources/bank.rb', line 4

def 
  @account_number_string
end

#account_typeObject

Returns the value of attribute account_type.



5
6
7
# File 'lib/synapse_pay/resources/bank.rb', line 5

def 
  @account_type
end

#addressObject

Returns the value of attribute address.



6
7
8
# File 'lib/synapse_pay/resources/bank.rb', line 6

def address
  @address
end

#balanceObject

Returns the value of attribute balance.



7
8
9
# File 'lib/synapse_pay/resources/bank.rb', line 7

def balance
  @balance
end

#bank_nameObject

Returns the value of attribute bank_name.



8
9
10
# File 'lib/synapse_pay/resources/bank.rb', line 8

def bank_name
  @bank_name
end

#dateObject

Returns the value of attribute date.



9
10
11
# File 'lib/synapse_pay/resources/bank.rb', line 9

def date
  @date
end

#emailObject

Returns the value of attribute email.



10
11
12
# File 'lib/synapse_pay/resources/bank.rb', line 10

def email
  @email
end

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/synapse_pay/resources/bank.rb', line 11

def id
  @id
end

#is_buyer_defaultObject

Returns the value of attribute is_buyer_default.



12
13
14
# File 'lib/synapse_pay/resources/bank.rb', line 12

def is_buyer_default
  @is_buyer_default
end

#is_seller_defaultObject

Returns the value of attribute is_seller_default.



13
14
15
# File 'lib/synapse_pay/resources/bank.rb', line 13

def is_seller_default
  @is_seller_default
end

#mfa_verifedObject

Returns the value of attribute mfa_verifed.



14
15
16
# File 'lib/synapse_pay/resources/bank.rb', line 14

def mfa_verifed
  @mfa_verifed
end

#name_on_accountObject

Returns the value of attribute name_on_account.



15
16
17
# File 'lib/synapse_pay/resources/bank.rb', line 15

def 
  @name_on_account
end

#nicknameObject

Returns the value of attribute nickname.



16
17
18
# File 'lib/synapse_pay/resources/bank.rb', line 16

def nickname
  @nickname
end

#phone_numberObject

Returns the value of attribute phone_number.



17
18
19
# File 'lib/synapse_pay/resources/bank.rb', line 17

def phone_number
  @phone_number
end

#resource_uriObject

Returns the value of attribute resource_uri.



18
19
20
# File 'lib/synapse_pay/resources/bank.rb', line 18

def resource_uri
  @resource_uri
end

#routing_number_stringObject

Returns the value of attribute routing_number_string.



19
20
21
# File 'lib/synapse_pay/resources/bank.rb', line 19

def routing_number_string
  @routing_number_string
end

Instance Method Details

#remove(params = {}, headers = {}) ⇒ Object



21
22
23
24
25
26
27
28
# File 'lib/synapse_pay/resources/bank.rb', line 21

def remove(params={}, headers={})
  params = ParamsBuilder.merge({
    :bank_id => id,
  }, params)
  method = APIMethod.new(:post, "/bank/delete", params, headers, self)
  json = @client.execute(method)
  json
end