class MangoPay::User

See docs.mangopay.com/api-references/users/ See also children classes:

Public Class Methods

bank_accounts(user_id, filters = {}) click to toggle source

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
block_status(user_id, filters = {}) click to toggle source

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
cards(user_id, filters = {}) click to toggle source

Fetches list of cards belonging to the given user_id. Optional filters is a hash accepting following keys:

# File lib/mangopay/user.rb, line 30
def cards(user_id, filters = {})
  MangoPay.request(:get, url(user_id) + '/cards', {}, filters)
end
emoney(user_id, year, month = nil, filters = {}) click to toggle source

View EMoney belonging to the given user_id. Optional filters is a hash accepting following keys:

# 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
kyc_documents(user_id, filters = {}) click to toggle source

Fetches list of kyc documents belonging to the given user_id. Optional filters is a hash accepting following keys:

# File lib/mangopay/user.rb, line 57
def kyc_documents(user_id, filters = {})
  MangoPay.request(:get, url(user_id) + '/KYC/documents', {}, filters)
end
pre_authorizations(user_id, filters = {}) click to toggle source

Fetches list of pre-authorizations belonging to the given user_id. Optional filters is a hash accepting the following keys:

# File lib/mangopay/user.rb, line 64
def pre_authorizations(user_id, filters = {})
  MangoPay.request(:get, url(user_id) + '/preauthorizations', {}, filters)
end
regulatory(user_id, filters = {}) click to toggle source

Fetches User Regulatory

# File lib/mangopay/user.rb, line 74
def regulatory(user_id, filters = {})
  MangoPay.request(:get, url(user_id) + '/Regulatory', {}, filters)
end
transactions(user_id, filters = {}) click to toggle source

Fetches list of transactions belonging to the given user_id. Optional filters is a hash accepting following keys:

# File lib/mangopay/user.rb, line 38
def transactions(user_id, filters = {})
  MangoPay.request(:get, url(user_id) + '/transactions', {}, filters)
end
wallets(user_id, filters = {}) click to toggle source

Fetches list of wallets belonging to the given user_id. Optional filters is a hash accepting following keys:

# File lib/mangopay/user.rb, line 15
def wallets(user_id, filters = {})
  MangoPay.request(:get, url(user_id) + '/wallets', {}, filters)
end