Mangopay / mangopay2-nodejs-sdk

Node.js SDK for MANGOPAY
https://www.npmjs.com/package/mangopay2-nodejs-sdk
MIT License
51 stars 38 forks source link

List UBO Declarations for a user in `Users`? #324

Open jgabriele opened 2 years ago

jgabriele commented 2 years ago

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:

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?

fredericdelordm commented 2 years ago

Hello @jgabriele,

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