Class: MangoPay::User
- Includes:
- HTTPCalls::Create, HTTPCalls::Fetch, HTTPCalls::Update
- Defined in:
- lib/mangopay/user.rb
Overview
See docs.mangopay.com/api-references/users/ See also children classes:
-
MangoPay::NaturalUser
-
MangoPay::LegalUser
Direct Known Subclasses
Class Method Summary collapse
-
.bank_accounts(user_id, filters = {}) ⇒ Object
Fetches list of bank accounts belonging to the given
user_id
. -
.block_status(user_id, filters = {}) ⇒ Object
Fetches User Block Status.
-
.cards(user_id, filters = {}) ⇒ Object
Fetches list of cards belonging to the given
user_id
. -
.emoney(user_id, year, month = nil, filters = {}) ⇒ Object
View EMoney belonging to the given
user_id
. -
.kyc_documents(user_id, filters = {}) ⇒ Object
Fetches list of kyc documents belonging to the given
user_id
. -
.pre_authorizations(user_id, filters = {}) ⇒ Object
Fetches list of pre-authorizations belonging to the given
user_id
. -
.regulatory(user_id, filters = {}) ⇒ Object
Fetches User Regulatory.
-
.transactions(user_id, filters = {}) ⇒ Object
Fetches list of transactions belonging to the given
user_id
. -
.wallets(user_id, filters = {}) ⇒ Object
Fetches list of wallets belonging to the given
user_id
.
Methods included from HTTPCalls::Fetch
Methods included from HTTPCalls::Update
Methods included from HTTPCalls::Create
Methods inherited from Resource
Class Method Details
.bank_accounts(user_id, filters = {}) ⇒ Object
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)
23 24 25 |
# 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 = {}) ⇒ Object
Fetches User Block Status
69 70 71 |
# 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 = {}) ⇒ Object
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)
30 31 32 |
# 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 = {}) ⇒ Object
View EMoney 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)
46 47 48 49 50 51 52 |
# 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 = {}) ⇒ Object
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 (see MangoPay::HTTPCalls::Fetch::ClassMethods#fetch)
57 58 59 |
# 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 = {}) ⇒ Object
Fetches list of pre-authorizations belonging to the given user_id
. Optional filters
is a hash accepting the following keys:
-
page
,per_page
,sort
,Status
,ResultCode
,PaymentStatus
: pagination and sorting/filtering params (see MangoPay::HTTPCalls::Fetch::ClassMethods#fetch)
64 65 66 |
# File 'lib/mangopay/user.rb', line 64 def (user_id, filters = {}) MangoPay.request(:get, url(user_id) + '/preauthorizations', {}, filters) end |
.regulatory(user_id, filters = {}) ⇒ Object
Fetches User Regulatory
74 75 76 |
# 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 = {}) ⇒ Object
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)
38 39 40 |
# 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 = {}) ⇒ Object
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)
15 16 17 |
# File 'lib/mangopay/user.rb', line 15 def wallets(user_id, filters = {}) MangoPay.request(:get, url(user_id) + '/wallets', {}, filters) end |