stripe/stripe-java

setTestClock not available on ProductCreateParams

maxime1992 opened this issue · 1 comments

Is your feature request related to a problem? Please describe.

CustomerCreateParams has setTestClock method but ProductCreateParams doesn't

Describe the solution you'd like

ProductCreateParams should have the possibility to attach a test clock too.

Describe alternatives you've considered

Creating and removing by hand, but that's not a good idea when we've got test clock available.

Additional context

Main idea being that once the test clock is removed, the product would be removed too.

@maxime1992 This would be a feature request for the API itself, not stripe-java. I assume it's related to your comment in #1224 (comment) and we don't have plans to add this. Most objects are not scoped to a Test Clock and implementing this would be really complex for an edge-case around data clean up. I'll flag internally but it's not something we will add in the near future at least.