Class: Figo::Account
Overview
Object representing one bank account of the User
Instance Attribute Summary collapse
-
#account_id ⇒ String
Internal figo Connect account ID.
-
#account_number ⇒ String
Account number.
-
#additional_icons ⇒ Hash
Account icon URLs for other resolutions.
-
#auto_sync ⇒ Boolean
This flag indicates whether the account will be automatically synchronized.
-
#balance ⇒ AccountBalance
AccountBalance object.
-
#bank_code ⇒ String
Bank code.
-
#bank_id ⇒ String
Internal figo Connect bank ID.
-
#bank_name ⇒ String
Bank name.
-
#bic ⇒ String
BIC.
-
#currency ⇒ String
Three-character currency code.
-
#iban ⇒ String
IBAN.
-
#icon ⇒ String
Account icon URL.
-
#in_total_balance ⇒ Boolean
This flag indicates whether the balance of this account is added to the total balance of accounts.
-
#name ⇒ String
Account name.
-
#owner ⇒ String
Account owner.
-
#status ⇒ SynchronizationStatus
Synchronization status object.
-
#type ⇒ String
Account type.
Instance Method Summary collapse
-
#bank ⇒ Bank
Retrieve bank of this account.
-
#get_payment(payment_id) ⇒ Payment
Retrieve specific payment on this account.
-
#get_transaction(transaction_id) ⇒ Transaction
Request specific transaction.
-
#initialize(session, json) ⇒ Account
constructor
A new instance of Account.
-
#payments ⇒ Payment
Retrieve list of payments on this account.
-
#transactions(since = nil, count = 1000, offset = 0, include_pending = false) ⇒ Array
Request list of transactions of this account.
Methods inherited from Base
Constructor Details
#initialize(session, json) ⇒ Account
Returns a new instance of Account.
7 8 9 |
# File 'lib/account/model.rb', line 7 def initialize(session, json) super(session, json) end |
Instance Attribute Details
#account_id ⇒ String
Internal figo Connect account ID
13 14 15 |
# File 'lib/account/model.rb', line 13 def account_id @account_id end |
#account_number ⇒ String
Account number
33 34 35 |
# File 'lib/account/model.rb', line 33 def account_number @account_number end |
#additional_icons ⇒ Hash
Account icon URLs for other resolutions
65 66 67 |
# File 'lib/account/model.rb', line 65 def additional_icons @additional_icons end |
#auto_sync ⇒ Boolean
This flag indicates whether the account will be automatically synchronized
29 30 31 |
# File 'lib/account/model.rb', line 29 def auto_sync @auto_sync end |
#balance ⇒ AccountBalance
AccountBalance object
77 78 79 |
# File 'lib/account/model.rb', line 77 def balance @balance end |
#bank_code ⇒ String
Bank code
37 38 39 |
# File 'lib/account/model.rb', line 37 def bank_code @bank_code end |
#bank_id ⇒ String
Internal figo Connect bank ID
17 18 19 |
# File 'lib/account/model.rb', line 17 def bank_id @bank_id end |
#bank_name ⇒ String
Bank name
41 42 43 |
# File 'lib/account/model.rb', line 41 def bank_name @bank_name end |
#bic ⇒ String
BIC
53 54 55 |
# File 'lib/account/model.rb', line 53 def bic @bic end |
#currency ⇒ String
Three-character currency code
45 46 47 |
# File 'lib/account/model.rb', line 45 def currency @currency end |
#iban ⇒ String
IBAN
49 50 51 |
# File 'lib/account/model.rb', line 49 def iban @iban end |
#icon ⇒ String
Account icon URL
61 62 63 |
# File 'lib/account/model.rb', line 61 def icon @icon end |
#in_total_balance ⇒ Boolean
This flag indicates whether the balance of this account is added to the total balance of accounts
69 70 71 |
# File 'lib/account/model.rb', line 69 def in_total_balance @in_total_balance end |
#name ⇒ String
Account name
21 22 23 |
# File 'lib/account/model.rb', line 21 def name @name end |
#owner ⇒ String
Account owner
25 26 27 |
# File 'lib/account/model.rb', line 25 def owner @owner end |
#status ⇒ SynchronizationStatus
Synchronization status object
73 74 75 |
# File 'lib/account/model.rb', line 73 def status @status end |
#type ⇒ String
Account type
57 58 59 |
# File 'lib/account/model.rb', line 57 def type @type end |
Instance Method Details
#bank ⇒ Bank
Retrieve bank of this account
118 119 120 |
# File 'lib/account/model.rb', line 118 def bank @session.get_bank @bank_id end |
#get_payment(payment_id) ⇒ Payment
Retrieve specific payment on this account
111 112 113 |
# File 'lib/account/model.rb', line 111 def get_payment(payment_id) @session.get_payment @account_id, payment_id end |
#get_transaction(transaction_id) ⇒ Transaction
Request specific transaction.
96 97 98 |
# File 'lib/account/model.rb', line 96 def get_transaction(transaction_id) @session.get_transaction @acount_id, transaction_id end |
#payments ⇒ Payment
Retrieve list of payments on this account
103 104 105 |
# File 'lib/account/model.rb', line 103 def payments @session.payments @account_id end |
#transactions(since = nil, count = 1000, offset = 0, include_pending = false) ⇒ Array
Request list of transactions of this account
88 89 90 |
# File 'lib/account/model.rb', line 88 def transactions(since = nil, count = 1000, offset = 0, include_pending = false) @session.transactions @account_id, since, count, offset, include_pending end |