Skip to content

Commit

Permalink
Add support for new properties on upcoming invoice retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-stripe committed Jan 9, 2019
1 parent fbe6e07 commit c8b8282
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Stripe.net/Services/Invoices/InvoiceItemPeriodOptions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;

public class InvoiceItemPeriodOptions : INestedOptions
{
/// <summary>
/// The end of the period, which must be greater than or equal to the start.
/// </summary>
[JsonProperty("end")]
public DateTime? End { get; set; }

/// <summary>
/// he start of the period.
/// </summary>
[JsonProperty("start")]
public DateTime? Start { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,14 @@ public class InvoiceUpcomingInvoiceItemOption : INestedOptions

[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

[JsonProperty("period")]
public InvoiceItemPeriodOptions Period { get; set; }

[JsonProperty("quantity")]
public long? Quantity { get; set; }

[JsonProperty("unit_amount")]
public long? UnitAmount { get; set; }
}
}

0 comments on commit c8b8282

Please sign in to comment.