Class: MangoPay::LegalUser

Inherits:
User show all
Defined in:
lib/mangopay/legal_user.rb

Overview

See docs.mangopay.com/api-references/users/legal-users/ See also parent class MangoPay::User

Class Method Summary collapse

Methods inherited from User

bank_accounts, block_status, cards, emoney, kyc_documents, pre_authorizations, regulatory, transactions, 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

.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