mangopay2-nodejs-sdk icon indicating copy to clipboard operation
mangopay2-nodejs-sdk copied to clipboard

List UBO Declarations for a user in `Users`?

Open jgabriele opened this issue 2 years ago • 1 comments

I was about to open an issue as I did not find a way to list all UBO Declarations for a User (this endpoint).

I then gave a last try and saw that this one is listed in UboDeclarations which is odd because all other entities that can be attached to users are in the Users namespace:

  • Users.getTransactions
  • Users.getKycDocuments
  • Users.getBankAccounts
  • Users.getWallets
  • ...

It could be a good idea to either put those ones above into their own entity namespace (ie KycDocuments.getUserKycDocuments()) or put the UboDeclarations in the Users namespace (ie Users.getUboDeclarations)

What do you think?

jgabriele avatar Jul 28 '22 09:07 jgabriele

Hello @jgabriele,

Thanks for the feedback. We try to keep the same structure for all SDKs. But we are going to think about it.

fredericdelordm avatar Sep 13 '22 12:09 fredericdelordm