Sha256: f87ba22efbbd8d102405e4986c9dcbce82189b25bbb00d09f258686da82da59b

Contents?: true

Size: 660 Bytes

Versions: 11

Compression:

Stored size: 660 Bytes

Contents

module MangoPay

  # See http://docs.mangopay.com/api-references/wallets/
  class Wallet < Resource
    include HTTPCalls::Create
    include HTTPCalls::Update
    include HTTPCalls::Fetch

    # 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)
    def self.transactions(wallet_id, filters = {})
      Transaction.fetch(wallet_id, filters)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mangopay-3.0.25 lib/mangopay/wallet.rb
mangopay-3.0.23 lib/mangopay/wallet.rb
mangopay-3.0.21 lib/mangopay/wallet.rb
mangopay-3.0.20 lib/mangopay/wallet.rb
mangopay-3.0.19 lib/mangopay/wallet.rb
mangopay-3.0.18 lib/mangopay/wallet.rb
mangopay-3.0.17 lib/mangopay/wallet.rb
mangopay-3.0.16 lib/mangopay/wallet.rb
mangopay-3.0.15 lib/mangopay/wallet.rb
mangopay-3.0.14 lib/mangopay/wallet.rb
mangopay-3.0.13 lib/mangopay/wallet.rb