From 6a824f5f7a8064076e8c2ea06d4f50449f75bc54 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Tue, 5 Mar 2019 16:35:00 -0800 Subject: [PATCH] Add `current_period_*` filters when listing Invoices --- .../Subscriptions/SubscriptionListOptions.cs | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionListOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionListOptions.cs index d142c50522..36c905f77f 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionListOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionListOptions.cs @@ -1,5 +1,6 @@ namespace Stripe { + using System; using Newtonsoft.Json; public class SubscriptionListOptions : ListOptionsWithCreated @@ -10,6 +11,30 @@ public class SubscriptionListOptions : ListOptionsWithCreated [JsonProperty("billing")] public Billing? Billing { get; set; } + /// + /// A filter on the list based on the object current_period_end field. + /// + [JsonProperty("current_period_end")] + public DateTime? CurrentPeriodEnd { get; set; } + + /// + /// A filter on the list based on the object current_period_end field. + /// + [JsonProperty("current_period_end")] + public DateRangeOptions CurrentPeriodEndRange { get; set; } + + /// + /// A filter on the list based on the object current_period_start field. + /// + [JsonProperty("current_period_start")] + public DateTime? CurrentPeriodStart { get; set; } + + /// + /// A filter on the list based on the object current_period_start field. + /// + [JsonProperty("current_period_start")] + public DateRangeOptions CurrentPeriodStartRange { get; set; } + /// /// The ID of the customer whose subscriptions will be retrieved. ///