Mangopay / mangopay2-net-sdk

.Net SDK for MANGOPAY
https://www.nuget.org/packages/mangopay2-sdk/
20 stars 23 forks source link

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

Open korbobo opened 1 year ago

korbobo commented 1 year ago

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 commented 1 year ago

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