Mangopay / mangopay2-php-sdk

PHP SDK for MANGOPAY
https://packagist.org/packages/mangopay/php-sdk-v2
MIT License
123 stars 134 forks source link

There should be a function to get all ubo of a ubo declaration. #541

Closed PeeyushAgrawal closed 2 years ago

PeeyushAgrawal commented 2 years ago

As mentioned - https://github.com/Mangopay/mangopay2-php-sdk/blob/3.10.0/MangoPay/ApiUboDeclarations.php#L80 this is a function which is using ubo id, user id and ubo declaration id to get the ubo details. Here ubo_get is used.

There is no function which can return the list of ubo by using ubo declaration id and user id (like https://github.com/Mangopay/mangopay2-php-sdk/blob/3.10.0/MangoPay/ApiUboDeclarations.php#L20 here all ubo declaration is getting return using user id only).

fredericdelordm commented 2 years ago

Hello @PeeyushAgrawalWebkul , this is currently not available in the API.

A user can have only one UBO in a UBO Declaration. Do you want to list all UBOs in a UBO Declaration ?