bunq / sdk_csharp

C# SDK for bunq API
MIT License
35 stars 22 forks source link

MonetaryAccountSavings missing from endpoints #118

Closed Want100Cookies closed 5 years ago

Want100Cookies commented 5 years ago

Steps to reproduce:

Use MonetaryAccount.List() to retrieve all monetary accounts.

What should happen:

Get a LIST of all Monetary Accounts including the MonetaryAccountSavings.

What happens:

The SDK only provides with Bank, Joint and Light accounts and not Savings.

SDK version and environment

robinvanpoppel commented 5 years ago

While the savings accounts objects seem to be available in 1.10.3.0, I am having trouble retrieving them. I am getting the following exception when calling MonetaryAccount.List.

Newtonsoft.Json.JsonSerializationException: 'Error setting value to 'SavingsGoalProgress' on 'Bunq.Sdk.Model.Generated.Endpoint.MonetaryAccountSavings'.'

InnerException:
InvalidCastException: Unable to cast object of type 'System.Decimal' to type 'System.Nullable`1[System.Double]'.
th0mk commented 5 years ago

I'm getting the same error. Monetary accounts are available, they're just bugged right now.

th0mk commented 5 years ago

Interesting note: The endpoints were regenerated 2 days ago in commit 70986b7 but it still seems to be bugged.