Skip to content

Typo in enum switche_service should be switched_service #285

@kevinzhow

Description

@kevinzhow

Today I received an exception log:
Data corrupted at path 'data.object.cancellationDetails.feedback'. Cannot initialize SubscriptionCancellationDetailsFeedback from invalid String value 'switched_service'.

I found that the error was caused by this.

case switchService = "switch_service"

Please check the doc https://docs.stripe.com/api/subscriptions/cancel#cancel_subscription-cancellation_details-feedback

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions