ApiUsers
class ApiUsers extends ApiBase (View source)
Class to manage MangoPay API calls for the user entity.
Properties
protected MangoPayApi | $_root | Root/parent instance that holds the OAuthToken and Configuration instance |
from ApiBase |
Methods
Constructor Root/parent instance that holds the OAuthToken and Configuration instance
Create object in API
Get entity object from API
Get lst with entities object from API
Save object in API
Executes a POST request
Cast response object to entity object
Get natural or legal user by ID
Get natural user by ID
Create bank account for user
Get all bank accounts for user
Get bank account for user
Get all wallets for user
Get all transactions for user
Get all cards for user
Create new KYC document
Get all KYC documents for user
Get KYC document
Get all mandates for user
Get mandates for user and bank account
Create page for Kyc document
Create page for Kyc document from file
Gets a list with PreAuthorizations belonging to a specific user
Get the Block Status of a User
Get the Block Status Regulatory of a User
This call allows you to check the validity of the format of a piece of user data, and to retrieve the validation rules applied to it.
Details
protected mixed
getLogger()
No description
__construct(MangoPayApi $root)
Constructor Root/parent instance that holds the OAuthToken and Configuration instance
protected string
GetRequestUrl(string $key)
Get URL for REST Mango Pay API
protected RequestType
GetRequestType(string $key)
Get request type for REST Mango Pay API
protected object
CreateObject(string $methodKey, object $entity, object $responseClassName = null, string $entityId = null, $subEntityId = null, $idempotencyKey = null)
Create object in API
protected object
GetObject(string $methodKey, object $responseClassName, $firstEntityId = null, $secondEntityId = null, $thirdEntityId = null, $clientIdRequired = true)
Get entity object from API
protected object[]
GetList(string $methodKey, Pagination $pagination, object $responseClassName = null, string $entityId = null, object $filter = null, Sorting $sorting = null, $secondEntityId = null, $clientIdRequired = true)
Get lst with entities object from API
protected object
SaveObject(string $methodKey, object $entity, object $responseClassName = null, $secondEntityId = null, $thirdEntityId = null)
Save object in API
protected object
ExecutePostRequest($methodKey, $entity, $responseClassName, $entityId = null)
Executes a POST request
protected Error
CastResponseToError(object $response)
Cast response object to an error object
protected
CastResponseToEntity(object $response, string $entityClassName, $asDependentObject = false)
Cast response object to entity object
protected array
BuildRequestData(object $entity)
Get array with request data
protected
GetObjectForIdempotencyUrl($url)
No description
UserLegal|UserNatural
Create(UserLegal|UserNatural $user, $idempotencyKey = null)
Create a new user
UserLegal[]|UserNatural[]
GetAll(Pagination $pagination = null, Sorting $sorting = null)
Get all users
UserLegal|UserNatural
Get(string $userId)
Get natural or legal user by ID
UserNatural
GetNatural(string $userId)
Get natural user by ID
UserLegal
GetLegal(string $userId)
Get legal user by ID
UserLegal|UserNatural
Update(UserLegal|UserNatural $user)
Save user
BankAccount
CreateBankAccount(string $userId, BankAccount $bankAccount, $idempotencyKey = null)
Create bank account for user
BankAccount[]
GetBankAccounts(string $userId, Pagination $pagination = null, Sorting $sorting = null, FilterBankAccounts $filter = null)
Get all bank accounts for user
BankAccount
GetBankAccount(string $userId, string $bankAccountId)
Get bank account for user
BankAccount
UpdateBankAccount(string $userId, BankAccount $bankAccount)
Save a bank account
Wallet[]
GetWallets(string $userId, Pagination $pagination = null, Sorting $sorting = null)
Get all wallets for user
Transaction[]
GetTransactions(string $userId, Pagination $pagination = null, FilterTransactions $filter = null, Sorting $sorting = null)
Get all transactions for user
Card[]
GetCards(string $userId, Pagination $pagination = null, FilterCards $filter = null, Sorting $sorting = null)
Get all cards for user
KycDocument
CreateKycDocument(string $userId, KycDocument $kycDocument, string $idempotencyKey = null)
Create new KYC document
KycDocument[]
GetKycDocuments(string $userId, Pagination $pagination = null, Sorting $sorting = null, FilterKycDocuments $filter = null)
Get all KYC documents for user
KycDocument
GetKycDocument(string $userId, string $kycDocumentId)
Get KYC document
Mandate[]
GetMandates(string $userId, Pagination $pagination = null, FilterTransactions $filter = null, Sorting $sorting = null)
Get all mandates for user
Mandate[]
GetMandatesForBankAccount(string $userId, string $bankAccountId, Pagination $pagination = null, FilterTransactions $filter = null, Sorting $sorting = null)
Get mandates for user and bank account
KycDocument
UpdateKycDocument(string $userId, KycDocument $kycDocument)
Save KYC document
true
CreateKycPage(string $userId, string $kycDocumentId, KycPage $kycPage, $idempotencyKey = null)
Create page for Kyc document
true
CreateKycPageFromFile(string $userId, string $kycDocumentId, string $filePath, $idempotencyKey = null)
Create page for Kyc document from file
EMoney
GetEMoney(string $userId, $year = null, $month = null)
Get user EMoney
CardPreAuthorization[]
GetPreAuthorizations(string $userId, Pagination $pagination = null, FilterPreAuthorizations $filter = null, Sorting $sorting = null)
Gets a list with PreAuthorizations belonging to a specific user
UserBlockStatus
GetBlockStatus(string $userId)
Get the Block Status of a User
UserBlockStatus
GetRegulatory(string $userId)
Get the Block Status Regulatory of a User
CompanyNumberDetails
ValidateTheFormatOfUserData($companyNumberDetails)
This call allows you to check the validity of the format of a piece of user data, and to retrieve the validation rules applied to it.