module Revolut::Clients::Accounts
Public Instance Methods
account(id)
click to toggle source
Get account information.
@see revolutdev.github.io/business-api/?shell–production#get-account
@param id [UUID] Id of account.
@return [Hash] Response from API.
# File lib/revolut/clients/accounts.rb, line 23 def account(id) connection.get("accounts/#{id}") end
account_details(id)
click to toggle source
Get account bank details.
@see revolutdev.github.io/business-api/#get-account-details
@param id [UUID] Id of account.
@return [Hash] Response from API.
# File lib/revolut/clients/accounts.rb, line 34 def account_details(id) connection.get("accounts/#{id}/bank-details") end
accounts()
click to toggle source
Get accounts list.
@see revolutdev.github.io/business-api/?shell–production#get-accounts
@return [Hash] Response from API.
# File lib/revolut/clients/accounts.rb, line 12 def accounts connection.get('accounts') end