Skip to content

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

Open
@edutomesco

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions