Sha256: 1fc84e8cfd4fdfcc4efff871ab135e64f58885de31f424f7b436886bf3d22f16
Contents?: true
Size: 1.52 KB
Versions: 10
Compression:
Stored size: 1.52 KB
Contents
module MangoPay # See http://docs.mangopay.com/api-references/users/ # See also children classes: # - MangoPay::NaturalUser # - MangoPay::LegalUser class User < Resource include HTTPCalls::Create include HTTPCalls::Update include 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+, +sort+: pagination and sorting params (see MangoPay::HTTPCalls::Fetch::ClassMethods#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+, +sort+: pagination and sorting 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+, +sort+: pagination and sorting params (see MangoPay::HTTPCalls::Fetch::ClassMethods#fetch) # - other keys specific for transactions filtering (see MangoPay::Transaction#fetch) def transactions(user_id, filters={}) MangoPay.request(:get, url(user_id) + '/transactions', {}, filters) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems