Sha256: 2301b0039a469a13e9d006d4552a335fb1dc683035b92005a54f0ec5bc4ba934

Contents?: true

Size: 667 Bytes

Versions: 30

Compression:

Stored size: 667 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 = {}, headers = nil)
      Transaction.fetch(wallet_id, filters, headers)
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mangopay-3.28.0 lib/mangopay/wallet.rb
mangopay-3.27.0 lib/mangopay/wallet.rb
mangopay-3.26.1 lib/mangopay/wallet.rb
mangopay-3.26.0 lib/mangopay/wallet.rb
mangopay-3.25.1 lib/mangopay/wallet.rb
mangopay-3.25.0 lib/mangopay/wallet.rb
mangopay-3.24.1 lib/mangopay/wallet.rb
mangopay-3.24.0 lib/mangopay/wallet.rb
mangopay-3.23.0 lib/mangopay/wallet.rb
mangopay-3.22.0 lib/mangopay/wallet.rb
mangopay-3.21.0 lib/mangopay/wallet.rb
mangopay-3.20.0 lib/mangopay/wallet.rb
mangopay-3.19.0 lib/mangopay/wallet.rb
mangopay-3.18.0 lib/mangopay/wallet.rb
mangopay-3.17.0 lib/mangopay/wallet.rb
mangopay-3.16.0 lib/mangopay/wallet.rb
mangopay-3.15.0 lib/mangopay/wallet.rb
mangopay-3.14.0 lib/mangopay/wallet.rb
mangopay-3.13.2 lib/mangopay/wallet.rb
mangopay-3.12.0 lib/mangopay/wallet.rb