Describe the bug
According to the v48.0.0 release notes:
Remove support for CurrentPeriodEnd and CurrentPeriodStart on Subscription
Before the breaking changes introduced in v48.0.0, in my stripe repository, I have been extracting the subscription's CurrentPeriodEnd value like this (currentSubscription is a Subscription object):
user.StripeUtcSubscriptionPeriodEnd = currentSubscription.CurrentPeriodEnd;
should I be doing it like this instead (the Items property is a List<SubscriptionItem>):
user.StripeUtcSubscriptionPeriodEnd = currentSubscription.Items.Data.Max(x => x.CurrentPeriodEnd);
If this is not the correct approach, then please help me understand why CurrentPeriodEnd property was removed from the Subscription object, and how we should be thinking about the CurrentPeriodEnd property as it now relates to the SubscriptionItem object. I tried searching the Stripe docs but could not find anything related to this.
To Reproduce
N/A
Expected behavior
N/A
Code snippets
OS
win11
.NET version
.NET9
Library version
stripe-dotnet v48.0.0
API version
2025-03-31.basil
Additional context
No response
Describe the bug
According to the v48.0.0 release notes:
Before the breaking changes introduced in v48.0.0, in my stripe repository, I have been extracting the subscription's
CurrentPeriodEndvalue like this (currentSubscription is aSubscriptionobject):user.StripeUtcSubscriptionPeriodEnd = currentSubscription.CurrentPeriodEnd;should I be doing it like this instead (the
Itemsproperty is aList<SubscriptionItem>):user.StripeUtcSubscriptionPeriodEnd = currentSubscription.Items.Data.Max(x => x.CurrentPeriodEnd);If this is not the correct approach, then please help me understand why
CurrentPeriodEndproperty was removed from theSubscriptionobject, and how we should be thinking about theCurrentPeriodEndproperty as it now relates to theSubscriptionItemobject. I tried searching the Stripe docs but could not find anything related to this.To Reproduce
N/A
Expected behavior
N/A
Code snippets
OS
win11
.NET version
.NET9
Library version
stripe-dotnet v48.0.0
API version
2025-03-31.basil
Additional context
No response