bunq / sdk_csharp

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

Can not construct a BunqMeTabEntry to create a BunqMeTab #85

Closed mbernson closed 4 years ago

mbernson commented 6 years ago

Steps to reproduce:

  1. Try to create a BunqMeTab (shared payment request)

What should happen:

  1. I can create the required BunqMeTabEntry object for it

What happens:

  1. The BunqMeTabEntry cannot be constructed

References

bluewalk commented 5 years ago

I'm doing the same, code that works is:

var amount = 0.75;

var tabEntry = new BunqMeTabEntry
{
    AmountInquired = new Amount(amount.ToString(CultureInfo.InvariantCulture), CURRENCY_EUR),
    Description = "Testing"
};
var tabId = BunqMeTab.Create(tabEntry, account).Value;
var tab = BunqMeTab.Get(tabId).Value;