Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"UserCategory": "PLATFORM" Is not supported in MangoPayApi.Users.GetLegalAsync() #182

Open
korbobo opened this issue Feb 7, 2023 · 1 comment

Comments

@korbobo
Copy link

korbobo commented Feb 7, 2023

while trying to get UserLegalDTO which is of Category PLATFORM we are getting an NPE
System.NullReferenceException: Object reference not set to an instance of an object.\n at MangoPay.SDK.Core.RestTool.DoRequestAsync[U,T](String urlMethod, T entity, Pagination pagination, Dictionary2 additionalUrlParams, String idempotentKey)\n at MangoPay.SDK.Core.RestTool.RequestAsync[U,T](ApiEndPoint endPoint, Dictionary2 requestData, T entity, Pagination pagination, Dictionary2 additionalUrlParams, String idempotentKey)\n at MangoPay.SDK.Core.APIs.ApiBase.GetObjectAsync[T](ApiEndPoint endPoint, Dictionary2 additionalUrlParams)\n at MangoPay.SDK.Core.APIs.ApiBase.GetObjectAsync[T](MethodKey methodKey, Dictionary2 additionalUrlParams, String[] entitiesId)\n at MangoPay.SDK.Core.APIs.ApiBase.GetObjectAsync[T](MethodKey methodKey, String[] entitiesId)\n at MangoPay.SDK.Core.APIs.ApiUsers.GetLegalAsync(String userId)\n`

HTTP response from the server is OK
image

@korbobo
Copy link
Author

korbobo commented Feb 7, 2023

i can see that there are only 2 Categories supported now
namespace MangoPay.SDK.Core.Enumerations { public enum UserCategory { UNKNOWN, PAYER, OWNER, } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant