Class: MangoPay::Wallet

Inherits:
Resource show all
Includes:
HTTPCalls::Create, HTTPCalls::Fetch, HTTPCalls::Update
Defined in:
lib/mangopay/wallet.rb

Overview

Class Method Summary collapse

Methods included from HTTPCalls::Fetch

included, parse_id_or_filters

Methods included from HTTPCalls::Update

included

Methods included from HTTPCalls::Create

included

Methods inherited from Resource

class_name, url

Class Method Details

.transactions(wallet_id, filters = {}, headers = nil) ⇒ Object

Fetches list of transactions belonging to the given wallet_id. Optional filters is a hash accepting following keys:

  • page, per_page, sort: pagination and sorting params (see MangoPay::HTTPCalls::Fetch::ClassMethods#fetch)

  • other keys specific for transactions filtering (see MangoPay::Transaction.fetch)



13
14
15
# File 'lib/mangopay/wallet.rb', line 13

def self.transactions(wallet_id, filters = {}, headers = nil)
  Transaction.fetch(wallet_id, filters, headers)
end