class ApiUboDeclarations extends ApiBase (View source)

Manages API calls for the UBO declaration entity.

Properties

protected MangoPayApi $_root

Root/parent instance that holds the OAuthToken and Configuration instance

from  ApiBase

Methods

mixed
getLogger()

No description

from  ApiBase
__construct($root)

Constructor

from  ApiBase
string
GetRequestUrl(string $key)

Get URL for REST Mango Pay API

from  ApiBase
GetRequestType(string $key)

Get request type for REST Mango Pay API

from  ApiBase
object
CreateObject(string $methodKey, object $entity, object $responseClassName = null, string $entityId = null, $subEntityId = null, $idempotencyKey = null)

Create object in API

from  ApiBase
object
GetObject(string $methodKey, object $responseClassName, $firstEntityId = null, $secondEntityId = null, $thirdEntityId = null, $clientIdRequired = true)

Get entity object from API

from  ApiBase
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

from  ApiBase
object
SaveObject(string $methodKey, object $entity, object $responseClassName = null, $secondEntityId = null, $thirdEntityId = null)

Save object in API

from  ApiBase
object
ExecutePostRequest($methodKey, $entity, $responseClassName, $entityId = null)

Executes a POST request

from  ApiBase
CastResponseToEntity(object $response, string $entityClassName, $asDependentObject = false)

Cast response object to entity object

from  ApiBase
array
BuildRequestData(object $entity)

Get array with request data

from  ApiBase
GetObjectForIdempotencyUrl($url)

No description

from  ApiBase
Create(string $userId)

Creates a new UBO Declaration for an user.

GetAll($userId, $pagination = null, $sorting = null)

No description

Get(string $userId, string $uboDeclarationId)

Gets an UBO Declaration.

GetById(string $uboDeclarationId)

Gets an UBO Declaration directly by Id.

Ubo
CreateUbo(string $userId, string $uboDeclarationId, Ubo $ubo)

Creates a new UBO for the specified arguments

Ubo
UpdateUbo(string $userId, string $uboDeclarationId, Ubo $ubo)

Updates an UBO

Ubo
GetUbo(string $userId, string $uboDeclarationId, string $uboId)

Gets an UBO

SubmitForValidation(string $userId, string $uboDeclarationId)

Updates an UBO Declaration with the status VALIDATION_ASKED.

GetUboDeclarationById(string $uboDeclarationId)

Gets an UBO Declaration.

Details

protected mixed getLogger()

No description

Return Value

mixed

__construct($root)

Constructor

Parameters

$root

protected string GetRequestUrl(string $key)

Get URL for REST Mango Pay API

Parameters

string $key

Key with data

Return Value

string

protected RequestType GetRequestType(string $key)

Get request type for REST Mango Pay API

Parameters

string $key

Key with data

Return Value

RequestType

protected object CreateObject(string $methodKey, object $entity, object $responseClassName = null, string $entityId = null, $subEntityId = null, $idempotencyKey = null)

Create object in API

Parameters

string $methodKey

Key with request data

object $entity

Entity object

object $responseClassName

Name of entity class from response

string $entityId

Entity identifier

$subEntityId
$idempotencyKey

Return Value

object

Response data

protected object GetObject(string $methodKey, object $responseClassName, $firstEntityId = null, $secondEntityId = null, $thirdEntityId = null, $clientIdRequired = true)

Get entity object from API

Parameters

string $methodKey

Key with request data

object $responseClassName

Name of entity class from response

$firstEntityId
$secondEntityId
$thirdEntityId
$clientIdRequired

Return Value

object

Response data

Exceptions

Exception

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

Parameters

string $methodKey

Key with request data

Pagination $pagination

Pagination object

object $responseClassName

Name of entity class from response

string $entityId

Entity identifier

object $filter

Object to filter data

Sorting $sorting

Object to sorting data

$secondEntityId
$clientIdRequired

Return Value

object[]

Response data

protected object SaveObject(string $methodKey, object $entity, object $responseClassName = null, $secondEntityId = null, $thirdEntityId = null)

Save object in API

Parameters

string $methodKey

Key with request data

object $entity

Entity object to save

object $responseClassName

Name of entity class from response

$secondEntityId
$thirdEntityId

Return Value

object

Response data

protected object ExecutePostRequest($methodKey, $entity, $responseClassName, $entityId = null)

Executes a POST request

Parameters

$methodKey

Key with request data

$entity

Entity object

$responseClassName

Name of entity class from response

$entityId

Entity identifier

Return Value

object

Response data

protected CastResponseToEntity(object $response, string $entityClassName, $asDependentObject = false)

Cast response object to entity object

Parameters

object $response

Object from API response

string $entityClassName

Name of entity class to cast

$asDependentObject

protected array BuildRequestData(object $entity)

Get array with request data

Parameters

object $entity

Entity object to send as request data

Return Value

array

protected GetObjectForIdempotencyUrl($url)

No description

Parameters

$url

UboDeclaration Create(string $userId)

Creates a new UBO Declaration for an user.

Parameters

string $userId

The ID of the user

Return Value

UboDeclaration

UBO Declaration object returned from API

GetAll($userId, $pagination = null, $sorting = null)

No description

Parameters

$userId
$pagination
$sorting

UboDeclaration Get(string $userId, string $uboDeclarationId)

Gets an UBO Declaration.

Parameters

string $userId
string $uboDeclarationId

Return Value

UboDeclaration

UBO Declaration object returned from API

UboDeclaration GetById(string $uboDeclarationId)

Gets an UBO Declaration directly by Id.

Parameters

string $uboDeclarationId

Return Value

UboDeclaration

UBO Declaration object returned from API

Ubo CreateUbo(string $userId, string $uboDeclarationId, Ubo $ubo)

Creates a new UBO for the specified arguments

Parameters

string $userId int
string $uboDeclarationId int
Ubo $ubo

Return Value

Ubo

UBO object returned from API

Ubo UpdateUbo(string $userId, string $uboDeclarationId, Ubo $ubo)

Updates an UBO

Parameters

string $userId
string $uboDeclarationId
Ubo $ubo

Return Value

Ubo

UBO object returned from API

Ubo GetUbo(string $userId, string $uboDeclarationId, string $uboId)

Gets an UBO

Parameters

string $userId
string $uboDeclarationId
string $uboId

Return Value

Ubo

UBO object returned from API

UboDeclaration SubmitForValidation(string $userId, string $uboDeclarationId)

Updates an UBO Declaration with the status VALIDATION_ASKED.

Parameters

string $userId
string $uboDeclarationId

Return Value

UboDeclaration

UboDeclaration GetUboDeclarationById(string $uboDeclarationId)

Gets an UBO Declaration.

Parameters

string $uboDeclarationId

Return Value

UboDeclaration

UBO Declaration object returned from API