Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a strongly-typed way of clearing fields on update #1556

Open
edutomesco opened this issue Oct 13, 2022 · 1 comment
Open

Provide a strongly-typed way of clearing fields on update #1556

edutomesco opened this issue Oct 13, 2022 · 1 comment

Comments

@edutomesco
Copy link

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

I asked to support developers on Discord about how to disable the billing threshold from the SubscriptionSchedulePhaseItemParams struct. The documentation said you have to pass an empty string in order to disable it. I've tried to pass an empty SubscriptionSchedulePhaseItemParams struct or pass nil but it didn't work.
Finally the solution they gave me is to set manually the empty string using the .AddExtra() method and pass it like this: phases[1][billing_thresholds]

Describe the solution you'd like

I would like to passing nil or the empty SubscriptionSchedulePhaseItemParams struct should disable the billing threshold.

Describe alternatives you've considered

No response

Additional context

No response

@pakrym-stripe
Copy link
Contributor

We'll look into into strongly-typed ways of clearing fields.

@pakrym-stripe pakrym-stripe changed the title Adapt struct SubscriptionSchedulePhaseItemParams to incorporate empty string in order to disable the billing threshold Provide a strongly-typed way of clearing fields on update Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants