Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added additional properties for StripeInvoice

  • Loading branch information...
commit c3f78ff28157d3b0391df6c51934fc5c7223bd0d 1 parent fa2da0d
Chris Williams authored April 10, 2012

Showing 1 changed file with 19 additions and 1 deletion. Show diff stats Hide diff stats

  1. 20  src/Stripe/Entities/StripeInvoice.cs
20  src/Stripe/Entities/StripeInvoice.cs
... ...
@@ -1,5 +1,4 @@
1 1
 using System;
2  
-using System.Collections.Generic;
3 2
 using Newtonsoft.Json;
4 3
 using Stripe.Infrastructure;
5 4
 
@@ -10,6 +9,12 @@ public class StripeInvoice
10 9
 		[JsonProperty("id")]
11 10
 		public string Id { get; set; }
12 11
 
  12
+        [JsonProperty("amount_due")]
  13
+        public int? AmountDueInCents { get; set; }
  14
+
  15
+        [JsonProperty("attempt_count")]
  16
+        public int? AttemptCount { get; set; }
  17
+
13 18
 		[JsonProperty("attempted")]
14 19
 		public bool? Attempted { get; set; }
15 20
 
@@ -26,9 +31,19 @@ public class StripeInvoice
26 31
 		[JsonConverter(typeof(StripeDateTimeConverter))]
27 32
 		public DateTime? Date { get; set; }
28 33
 
  34
+        [JsonProperty("discount")]
  35
+        public int? DiscountInCents { get; set; }
  36
+
  37
+        [JsonProperty("ending_balance")]
  38
+        public int? EndingBalanceInCents { get; set; }
  39
+
29 40
 		[JsonProperty("livemode")]
30 41
 		public bool? LiveMode { get; set; }
31 42
 
  43
+        [JsonProperty("next_payment_attempt")]
  44
+        [JsonConverter(typeof(StripeDateTimeConverter))]
  45
+        public DateTime? NextPaymentAttempt { get; set; }
  46
+
32 47
 		[JsonProperty("object")]
33 48
 		public string Object { get; set; }
34 49
 
@@ -43,6 +58,9 @@ public class StripeInvoice
43 58
 		[JsonConverter(typeof(StripeDateTimeConverter))]
44 59
 		public DateTime? PeriodStart { get; set; }
45 60
 
  61
+        [JsonProperty("starting_balance")]
  62
+        public int? StartingBalanceInCents { get; set; }
  63
+
46 64
 		[JsonProperty("subtotal")]
47 65
 		public int? SubtotalInCents { get; set; }
48 66
 

0 notes on commit c3f78ff

Please sign in to comment.
Something went wrong with that request. Please try again.