mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 23:52:50 -05:00
[fix] Address QA found defects for the Stripe Subscriptions admin tool (#2150)
* [fix] Clear the page on Stripe Subscription search change [SG-404] * [fix] Ensure page is null when selecting all Stripe Subscriptions for an action [SG-404] * [feat] Allow Stripe Subscriptions to be filtered by a test clock [SG-404]
This commit is contained in:
@ -27,6 +27,13 @@
|
||||
public Stripe.SubscriptionListOptions ToStripeApiOptions()
|
||||
{
|
||||
var stripeApiOptions = (Stripe.SubscriptionListOptions)this;
|
||||
|
||||
if (SelectAll)
|
||||
{
|
||||
stripeApiOptions.EndingBefore = null;
|
||||
stripeApiOptions.StartingAfter = null;
|
||||
}
|
||||
|
||||
if (CurrentPeriodEndDate.HasValue)
|
||||
{
|
||||
stripeApiOptions.CurrentPeriodEnd = new Stripe.DateRangeOptions()
|
||||
@ -35,6 +42,7 @@
|
||||
GreaterThan = CurrentPeriodEndRange == "gt" ? CurrentPeriodEndDate : null
|
||||
};
|
||||
}
|
||||
|
||||
return stripeApiOptions;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user