Class: MangoPay::LegalUser
- Inherits:
-
User
show all
- Defined in:
- lib/mangopay/legal_user.rb
Overview
Class Method Summary
collapse
Methods inherited from User
bank_accounts, block_status, cards, emoney, enroll_sca, fetch_sca, kyc_documents, pre_authorizations, regulatory, transactions, validate_data_format, wallets
included, parse_id_or_filters
included
included
Methods inherited from Resource
class_name
Class Method Details
.close(user_id) ⇒ Object
16
17
18
|
# File 'lib/mangopay/legal_user.rb', line 16
def close(user_id)
MangoPay.request(:delete, url(user_id))
end
|
.url(id = nil) ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/mangopay/legal_user.rb', line 7
def self.url(id = nil)
if id
"#{MangoPay.api_path}/users/legal/#{CGI.escape(id.to_s)}"
else
"#{MangoPay.api_path}/users/legal"
end
end
|