proshin-roman / finapi-java-client

True-OOP Java client for API provided by https://finapi.io
Apache License 2.0
22 stars 7 forks source link

Delete fin api user #350

Open ptrepkaVL opened 3 years ago

ptrepkaVL commented 3 years ago

Hello, I try to delete user, but there is only a method to delete unverified users. Do you have a plan to implement delete the authorized user method?

proshin-roman commented 3 years ago

@ptrepka thanks for reporting an issue!

This functionality already exists in the org.proshin.finapi.user.AuthorizedUser interface that is implemented by org.proshin.finapi.user.FpAuthorizedUser. Unfortunately, this implementation is not returned by any method of the org.proshin.finapi.user.Users interface - and I consider that as a bug.

I will think of a solution for this issue.

In the meantime, you can directly construct an instance of FpAuthorizedUser class and use the delete method.