Stripe-dotnet: Can't provide 'now' or 'unchanged' to Upcoming Invoice API

Created on 17 Oct 2018  ·  4Comments  ·  Source: stripe/stripe-dotnet

So, the StripeUpcomingInvoiceOptions object has SubscriptionBillingCycleAnchor as a DateTime?, which doesn't afford the ability to specify 'now'. This is in contrast to StripeSubscriptionUpdateOptions's bool properties of BillingCycleAnchorNow and BillingCycleAnchorUnchanged.

I think StripeUpcomingInvoiceOptions should implement this like StripeSubscriptionUpdateOptions does.

If the maintainers are willing to accept a PR, I'm fine with doing the work though I may need assistance with updating the tests.

All 4 comments

@metanoic Thank you for the report. Usually we would happily take a PR but we are actively working on the next major release of stripe-dotnet which contains a large number of changes. You can see the work in https://github.com/stripe/stripe-dotnet/pull/1293. Because of this, it might be tricky for you to make the changes on that branch, and rebasing on an updated master would be fairly painful (though not impossible).

I'm going to make the changes on that branch which we're hoping to release by early next week if that works for you!

@metanoic I just realized that this was already done in that PR and you can see the new code here. This should be released soon!

@remi-stripe Excellent; ya'll rock!

Fixed in 20.0.0.

Was this page helpful?
0 / 5 - 0 ratings