class MangoPay::User
See docs.mangopay.com/api-references/users/ See also children classes:
Public Class Methods
Fetches list of bank accounts 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
)
# File lib/mangopay/user.rb, line 23 def bank_accounts(user_id, filters = {}) MangoPay.request(:get, url(user_id) + '/bankaccounts', {}, filters) end
Fetches User
Block Status
# File lib/mangopay/user.rb, line 69 def block_status(user_id, filters = {}) MangoPay.request(:get, url(user_id) + '/blockStatus', {}, 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 (seeMangoPay::HTTPCalls::Fetch::ClassMethods#fetch
)
# File lib/mangopay/user.rb, line 30 def cards(user_id, filters = {}) MangoPay.request(:get, url(user_id) + '/cards', {}, filters) end
View EMoney belonging to the given user_id
. Optional filters
is a hash accepting following keys:
-
page
,per_page
,sort
: pagination and sorting params (seeMangoPay::HTTPCalls::Fetch::ClassMethods#fetch
) -
other keys specific for transactions filtering (see MangoPay::Transaction#fetch)
# File lib/mangopay/user.rb, line 46 def emoney(user_id, year, month = nil, filters = {}) if month MangoPay.request(:get, url(user_id) + "/emoney/#{year}/#{month}", {}, filters) else MangoPay.request(:get, url(user_id) + "/emoney/#{year}", {}, filters) end end
Fetches list of kyc documents belonging to the given user_id
. Optional filters
is a hash accepting following keys:
-
page
,per_page
,sort
,BeforeDate
,AfterDate
,Status
: pagination and sorting params (seeMangoPay::HTTPCalls::Fetch::ClassMethods#fetch
)
# File lib/mangopay/user.rb, line 57 def kyc_documents(user_id, filters = {}) MangoPay.request(:get, url(user_id) + '/KYC/documents', {}, filters) end
Fetches User
Regulatory
# File lib/mangopay/user.rb, line 74 def regulatory(user_id, filters = {}) MangoPay.request(:get, url(user_id) + '/Regulatory', {}, 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 (seeMangoPay::HTTPCalls::Fetch::ClassMethods#fetch
) -
other keys specific for transactions filtering (see MangoPay::Transaction#fetch)
# File lib/mangopay/user.rb, line 38 def transactions(user_id, filters = {}) MangoPay.request(:get, url(user_id) + '/transactions', {}, filters) end
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 (seeMangoPay::HTTPCalls::Fetch::ClassMethods#fetch
)
# File lib/mangopay/user.rb, line 15 def wallets(user_id, filters = {}) MangoPay.request(:get, url(user_id) + '/wallets', {}, filters) end