Mangopay / mangopay2-java-sdk

Java SDK for MANGOPAY
https://search.maven.org/artifact/com.mangopay/mangopay2-java-sdk
MIT License
25 stars 29 forks source link

Error updating user data #285

Closed ddesola closed 2 years ago

ddesola commented 2 years ago

Hello, The data user update fails. If in the UserNatural model the field TermsAndConditionsAccepted = true it returns the error 'The user already accepted our terms and conditions' and if TermsAndConditionsAccepted = false is sent it returns the error 'The user cannot revoke the terms and conditions acceptance'. Debugging the library I have been able to verify that if the json generated in the request had the TermsAndConditionsAccepted = null, it is executed correctly. I think it could be solved by making the TermsAndConditionsAccepted field in the UserLegal and UserNatural models a boolean object and not a primitive

fredericdelordm commented 2 years ago

Hello @ddesola,

Thanks your feedback. We are looking into it.

ghernaez commented 2 years ago

Having the same issue, we cannot update our users data from our system via the SDK. Is there any bugfix planned?

iulian03 commented 2 years ago

@ghernaez Yes. Pushing a fix right now :)

ghernaez commented 2 years ago

Thank you very much @iulian03 ;-)

ddesola commented 2 years ago

Thanks :)