Sha256: dc225dbe9ea03cbd2b76c6e570fd6bb33f61c98feabe5614a15b49a2f680a04c

Contents?: true

Size: 618 Bytes

Versions: 4

Compression:

Stored size: 618 Bytes

Contents

module MangoPay
  class Wallet < Resource
    include MangoPay::HTTPCalls::Create
    include MangoPay::HTTPCalls::Update
    include MangoPay::HTTPCalls::Fetch

    # Fetches list of transactions belonging to the given +wallet_id+.
    # Optional +filters+ is a hash accepting following keys:
    # - +page+, +per_page+: pagination params (see MangoPay::HTTPCalls::Fetch::ClassMethods#fetch)
    # - other keys specific for transactions filtering (see MangoPay::Transaction.fetch)
    def self.transactions(wallet_id, filters={})
      MangoPay::Transaction.fetch(wallet_id, filters)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mangopay-3.0.11 lib/mangopay/wallet.rb
mangopay-3.0.10 lib/mangopay/wallet.rb
mangopay-3.0.9 lib/mangopay/wallet.rb
mangopay-3.0.8 lib/mangopay/wallet.rb