Permalink
Browse files

Added additional properties for StripeInvoice

  • Loading branch information...
1 parent fa2da0d commit c3f78ff28157d3b0391df6c51934fc5c7223bd0d Chris Williams committed Apr 10, 2012
Showing with 19 additions and 1 deletion.
  1. +19 −1 src/Stripe/Entities/StripeInvoice.cs
@@ -1,5 +1,4 @@
using System;
-using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
@@ -10,6 +9,12 @@ public class StripeInvoice
[JsonProperty("id")]
public string Id { get; set; }
+ [JsonProperty("amount_due")]
+ public int? AmountDueInCents { get; set; }
+
+ [JsonProperty("attempt_count")]
+ public int? AttemptCount { get; set; }
+
[JsonProperty("attempted")]
public bool? Attempted { get; set; }
@@ -26,9 +31,19 @@ public class StripeInvoice
[JsonConverter(typeof(StripeDateTimeConverter))]
public DateTime? Date { get; set; }
+ [JsonProperty("discount")]
+ public int? DiscountInCents { get; set; }
+
+ [JsonProperty("ending_balance")]
+ public int? EndingBalanceInCents { get; set; }
+
[JsonProperty("livemode")]
public bool? LiveMode { get; set; }
+ [JsonProperty("next_payment_attempt")]
+ [JsonConverter(typeof(StripeDateTimeConverter))]
+ public DateTime? NextPaymentAttempt { get; set; }
+
[JsonProperty("object")]
public string Object { get; set; }
@@ -43,6 +58,9 @@ public class StripeInvoice
[JsonConverter(typeof(StripeDateTimeConverter))]
public DateTime? PeriodStart { get; set; }
+ [JsonProperty("starting_balance")]
+ public int? StartingBalanceInCents { get; set; }
+
[JsonProperty("subtotal")]
public int? SubtotalInCents { get; set; }

0 comments on commit c3f78ff

Please sign in to comment.