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