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.
-
#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
#dump, dump_attributes, #initialize
Constructor Details
This class inherits a constructor from Figo::Base
Instance Attribute Details
#account_id ⇒ String
Internal figo Connect account ID
135 136 137 |
# File 'lib/models.rb', line 135 def account_id @account_id end |
#account_number ⇒ String
Account number
155 156 157 |
# File 'lib/models.rb', line 155 def account_number @account_number end |
#additional_icons ⇒ Hash
Account icon URLs for other resolutions
187 188 189 |
# File 'lib/models.rb', line 187 def additional_icons @additional_icons end |
#auto_sync ⇒ Boolean
This flag indicates whether the account will be automatically synchronized
151 152 153 |
# File 'lib/models.rb', line 151 def auto_sync @auto_sync end |
#balance ⇒ AccountBalance
AccountBalance object
199 200 201 |
# File 'lib/models.rb', line 199 def balance @balance end |
#bank_code ⇒ String
Bank code
159 160 161 |
# File 'lib/models.rb', line 159 def bank_code @bank_code end |
#bank_id ⇒ String
Internal figo Connect bank ID
139 140 141 |
# File 'lib/models.rb', line 139 def bank_id @bank_id end |
#bank_name ⇒ String
Bank name
163 164 165 |
# File 'lib/models.rb', line 163 def bank_name @bank_name end |
#bic ⇒ String
BIC
175 176 177 |
# File 'lib/models.rb', line 175 def bic @bic end |
#currency ⇒ String
Three-character currency code
167 168 169 |
# File 'lib/models.rb', line 167 def currency @currency end |
#iban ⇒ String
IBAN
171 172 173 |
# File 'lib/models.rb', line 171 def iban @iban end |
#icon ⇒ String
Account icon URL
183 184 185 |
# File 'lib/models.rb', line 183 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
191 192 193 |
# File 'lib/models.rb', line 191 def in_total_balance @in_total_balance end |
#name ⇒ String
Account name
143 144 145 |
# File 'lib/models.rb', line 143 def name @name end |
#owner ⇒ String
Account owner
147 148 149 |
# File 'lib/models.rb', line 147 def owner @owner end |
#status ⇒ SynchronizationStatus
Synchronization status object
195 196 197 |
# File 'lib/models.rb', line 195 def status @status end |
#type ⇒ String
Account type
179 180 181 |
# File 'lib/models.rb', line 179 def type @type end |
Instance Method Details
#bank ⇒ Bank
Retrieve bank of this account
240 241 242 |
# File 'lib/models.rb', line 240 def bank @session.get_bank @bank_id end |
#get_payment(payment_id) ⇒ Payment
Retrieve specific payment on this account
233 234 235 |
# File 'lib/models.rb', line 233 def get_payment(payment_id) @session.get_payment @account_id, payment_id end |
#get_transaction(transaction_id) ⇒ Transaction
Request specific transaction.
218 219 220 |
# File 'lib/models.rb', line 218 def get_transaction(transaction_id) @session.get_transaction @acount_id, transaction_id end |
#payments ⇒ Payment
Retrieve list of payments on this account
225 226 227 |
# File 'lib/models.rb', line 225 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
210 211 212 |
# File 'lib/models.rb', line 210 def transactions(since = nil, count = 1000, offset = 0, include_pending = false) @session.transactions @account_id, since, count, offset, include_pending end |