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

TransactionType enum parsing exception when the api is down #177

Open
ltoto2 opened this issue Dec 6, 2022 · 0 comments
Open

TransactionType enum parsing exception when the api is down #177

ltoto2 opened this issue Dec 6, 2022 · 0 comments

Comments

@ltoto2
Copy link

ltoto2 commented Dec 6, 2022

Hello,

When the Mangopay API is down, we are able to detect 500 http StatusCode but we have an exception when parsing the response :
Error converting value "other" to type 'MangoPay.SDK.Core.Enumerations.TransactionType'

When we look at the API documentation the only values ​​available for this enum are PAYIN, TRANSFER and PAYOUT.
Should we map any other value to the enum value NotSpecified ?

Thanks

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

2 participants