Sha256: 2c30bb57686c58421b85bb6bd81c480d928ec35af8add994208ea434b9e0f2a7
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
module MangoPay class User < Resource include MangoPay::HTTPCalls::Create include MangoPay::HTTPCalls::Update include MangoPay::HTTPCalls::Fetch class << self # Fetches list of wallets belonging to the given +user_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 wallets(user_id, filters={}) MangoPay.request(:get, url(user_id) + '/wallets', {}, filters) end # Fetches list of cards belonging to the given +user_id+. # Optional +filters+ is a hash accepting following keys: # - +page+, +per_page+: pagination params (see MangoPay::HTTPCalls::Fetch::ClassMethods#fetch) def cards(user_id, filters={}) MangoPay.request(:get, url(user_id) + '/cards', {}, filters) end # Fetches list of transactions belonging to the given +user_id+. # Optional +filters+ is a hash accepting following keys: # - +page+, +per_page+: pagination params (see MangoPay::HTTPCalls::Fetch::ClassMethods#fetch) def transactions(user_id, filters={}) MangoPay.request(:get, url(user_id) + '/transactions', {}, filters) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mangopay-3.0.11 | lib/mangopay/user.rb |
mangopay-3.0.10 | lib/mangopay/user.rb |