-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1819 from stripe/remi-add-sub-changes
Add support for `PendingInvoiceItemInterval` on `Subscription`
- Loading branch information
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/Stripe.net/Entities/Subscriptions/SubscriptionPendingInvoiceItemInterval.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
namespace Stripe | ||
{ | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
public class SubscriptionPendingInvoiceItemInterval : StripeEntity<SubscriptionPendingInvoiceItemInterval> | ||
{ | ||
/// <summary> | ||
/// Specifies invoicing frequency. Either <c>day</c>, <c>week</c>, <c>month</c> or | ||
/// <c>year</c>. | ||
/// </summary> | ||
[JsonProperty("interval")] | ||
public string Interval { get; set; } | ||
|
||
/// <summary> | ||
/// The number of intervals between invoices. | ||
/// </summary> | ||
[JsonProperty("interval_count")] | ||
public long IntervalCount { get; set; } | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/Stripe.net/Services/Subscriptions/SubscriptionPendingInvoiceItemIntervalOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Stripe | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
public class SubscriptionPendingInvoiceItemIntervalOptions : INestedOptions | ||
{ | ||
/// <summary> | ||
/// Specifies invoicing frequency. Either <c>day</c>, <c>week</c>, <c>month</c> or | ||
/// <c>year</c>. | ||
/// </summary> | ||
[JsonProperty("interval")] | ||
public string Interval { get; set; } | ||
|
||
/// <summary> | ||
/// The number of intervals between invoices. | ||
/// </summary> | ||
[JsonProperty("interval_count")] | ||
public long? IntervalCount { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters