Class: BasecommSdk::BankAccount
- Defined in:
- lib/basecomm_sdk/bank_account.rb
Constant Summary collapse
- TYPE =
{ xs_ba_type_checking: 'CHECKING', xs_ba_type_savings: 'SAVINGS' }
- ENTITY =
{ xs_ba_entity_individual: 'INDIVIDUAL', xs_ba_entity_organization: 'ORGANIZATION' }
- STATUS =
{ xs_ba_status_active: 'ACTIVE', xs_ba_status_deleted: 'DELETED', xs_ba_status_failed: 'FAILED' }
Instance Attribute Summary collapse
-
#account_number ⇒ Object
Returns the value of attribute account_number.
-
#alias ⇒ Object
Returns the value of attribute alias.
-
#name ⇒ Object
Returns the value of attribute name.
-
#routing_number ⇒ Object
Returns the value of attribute routing_number.
-
#status ⇒ Object
Returns the value of attribute status.
-
#token ⇒ Object
Returns the value of attribute token.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
attr_accessor, attributes, #attributes, #format, #initialize, json_prefix, #messages, #qualified_attributes, #qualified_key, #status_description, #status_name, #to_json
Constructor Details
This class inherits a constructor from BasecommSdk::Base
Instance Attribute Details
#account_number ⇒ Object
Returns the value of attribute account_number.
17 18 19 |
# File 'lib/basecomm_sdk/bank_account.rb', line 17 def account_number @account_number end |
#alias ⇒ Object
Returns the value of attribute alias.
17 18 19 |
# File 'lib/basecomm_sdk/bank_account.rb', line 17 def alias @alias end |
#name ⇒ Object
Returns the value of attribute name.
17 18 19 |
# File 'lib/basecomm_sdk/bank_account.rb', line 17 def name @name end |
#routing_number ⇒ Object
Returns the value of attribute routing_number.
17 18 19 |
# File 'lib/basecomm_sdk/bank_account.rb', line 17 def routing_number @routing_number end |
#status ⇒ Object
Returns the value of attribute status.
17 18 19 |
# File 'lib/basecomm_sdk/bank_account.rb', line 17 def status @status end |
#token ⇒ Object
Returns the value of attribute token.
17 18 19 |
# File 'lib/basecomm_sdk/bank_account.rb', line 17 def token @token end |
#type ⇒ Object
Returns the value of attribute type.
17 18 19 |
# File 'lib/basecomm_sdk/bank_account.rb', line 17 def type @type end |
Class Method Details
.build_from_json(json) ⇒ Object
20 21 22 |
# File 'lib/basecomm_sdk/bank_account.rb', line 20 def self.build_from_json(json) BankAccount.new(JSON.parse(json).recursively_symbolize_keys!) end |
Instance Method Details
#json_prefix ⇒ Object
25 26 27 |
# File 'lib/basecomm_sdk/bank_account.rb', line 25 def json_prefix :bank_account end |