You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[JsonProperty("amount")] public int Amount { get; set; }
It should be changed to:
[JsonProperty("amount")] public int? Amount { get; set; }
I am having trouble setting UnitAmount because of this, as it throws this exception:
Stripe.StripeException: 'You may only specify one of these parameters: amount, unit_amount.'
Hello,
I am having trouble with the library, due to what seems to be a bug.
https://stripe.com/docs/api#create_invoiceitem
Here you see 'Amount' is an optional property.
But for your source file, it is not:
https://github.com/stripe/stripe-dotnet/blob/master/src/Stripe.net/Services/InvoiceItems/StripeInvoiceItemCreateOptions.cs
[JsonProperty("amount")] public int Amount { get; set; }
It should be changed to:
[JsonProperty("amount")] public int? Amount { get; set; }
I am having trouble setting UnitAmount because of this, as it throws this exception:
Stripe.StripeException: 'You may only specify one of these parameters: amount, unit_amount.'
OS: Windows 10 (17134.228)
.NET Version: Microsoft.AspNetCore.All (v2.1.2)
Library Version: Stripe.net (v17.10.0)
The text was updated successfully, but these errors were encountered: