module StarkitBanking::BankAccount
Public Instance Methods
balance(opts = {})
click to toggle source
# File lib/starkit_banking/concerns/bank_account.rb, line 8 def balance(opts = {}) @password = opts[:api_password] StarkitBanking::API::Factory.get_client(self, 'GetBalance').exec(self) end
credentials()
click to toggle source
# File lib/starkit_banking/concerns/bank_account.rb, line 18 def credentials c = Finance::ApiBankingCred.find_by(environment: self.environment, bank_name: self.bank_name) raise ApiFault.new(OpenStruct.new(code: 'sb:412', subCode: nil, reasonText: "Api Banking Credentials Not Available For #{self.bank_name}, #{self.environment}")) if c.nil? c.password = @password unless @password.nil? c end
transactions(opts = {})
click to toggle source
# File lib/starkit_banking/concerns/bank_account.rb, line 13 def transactions(opts = {}) @password = opts[:api_password] StarkitBanking::API::Factory.get_client(self, 'GetMiniStatement').exec(self) end