Class: MangoPay::NaturalUser

Inherits:
User show all
Defined in:
lib/mangopay/natural_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

Methods included from HTTPCalls::Fetch

included, parse_id_or_filters

Methods included from HTTPCalls::Update

included

Methods included from HTTPCalls::Create

included

Methods inherited from Resource

class_name

Class Method Details

.close(user_id) ⇒ Object



15
16
17
# File 'lib/mangopay/natural_user.rb', line 15

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/natural_user.rb', line 6

def self.url(id = nil)
  if id
    "#{MangoPay.api_path}/users/natural/#{CGI.escape(id.to_s)}"
  else
    "#{MangoPay.api_path}/users/natural"
  end
end