Class: SynapsePay::Bank
- Inherits:
-
APIResource
- Object
- APIResource
- SynapsePay::Bank
- Defined in:
- lib/synapse_pay/resources/bank.rb
Instance Attribute Summary collapse
-
#account_class ⇒ Object
Returns the value of attribute account_class.
-
#account_number_string ⇒ Object
Returns the value of attribute account_number_string.
-
#account_type ⇒ Object
Returns the value of attribute account_type.
-
#address ⇒ Object
Returns the value of attribute address.
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#bank_name ⇒ Object
Returns the value of attribute bank_name.
-
#date ⇒ Object
Returns the value of attribute date.
-
#email ⇒ Object
Returns the value of attribute email.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_buyer_default ⇒ Object
Returns the value of attribute is_buyer_default.
-
#is_seller_default ⇒ Object
Returns the value of attribute is_seller_default.
-
#mfa_verifed ⇒ Object
Returns the value of attribute mfa_verifed.
-
#name_on_account ⇒ Object
Returns the value of attribute name_on_account.
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#phone_number ⇒ Object
Returns the value of attribute phone_number.
-
#resource_uri ⇒ Object
Returns the value of attribute resource_uri.
-
#routing_number_string ⇒ Object
Returns the value of attribute routing_number_string.
Attributes inherited from APIResource
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_class ⇒ Object
Returns the value of attribute account_class.
3 4 5 |
# File 'lib/synapse_pay/resources/bank.rb', line 3 def account_class @account_class end |
#account_number_string ⇒ Object
Returns the value of attribute account_number_string.
4 5 6 |
# File 'lib/synapse_pay/resources/bank.rb', line 4 def account_number_string @account_number_string end |
#account_type ⇒ Object
Returns the value of attribute account_type.
5 6 7 |
# File 'lib/synapse_pay/resources/bank.rb', line 5 def account_type @account_type end |
#address ⇒ Object
Returns the value of attribute address.
6 7 8 |
# File 'lib/synapse_pay/resources/bank.rb', line 6 def address @address end |
#balance ⇒ Object
Returns the value of attribute balance.
7 8 9 |
# File 'lib/synapse_pay/resources/bank.rb', line 7 def balance @balance end |
#bank_name ⇒ Object
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 |
#date ⇒ Object
Returns the value of attribute date.
9 10 11 |
# File 'lib/synapse_pay/resources/bank.rb', line 9 def date @date end |
#email ⇒ Object
Returns the value of attribute email.
10 11 12 |
# File 'lib/synapse_pay/resources/bank.rb', line 10 def email @email end |
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/synapse_pay/resources/bank.rb', line 11 def id @id end |
#is_buyer_default ⇒ Object
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_default ⇒ Object
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_verifed ⇒ Object
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_account ⇒ Object
Returns the value of attribute name_on_account.
15 16 17 |
# File 'lib/synapse_pay/resources/bank.rb', line 15 def name_on_account @name_on_account end |
#nickname ⇒ Object
Returns the value of attribute nickname.
16 17 18 |
# File 'lib/synapse_pay/resources/bank.rb', line 16 def nickname @nickname end |
#phone_number ⇒ Object
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_uri ⇒ Object
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_string ⇒ Object
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 |