# This file was auto-generated by Fern from our API Definition.

import typing_extensions
import typing_extensions
import typing
from .error import ErrorParams
from .subscription import SubscriptionParams
from .subscription_action import SubscriptionActionParams


class SwapPlanResponseParams(typing_extensions.TypedDict):
    """
    Defines output parameters in a response of the
    [SwapPlan](api-endpoint:Subscriptions-SwapPlan) endpoint.
    """

    errors: typing_extensions.NotRequired[typing.Sequence[ErrorParams]]
    """
    Errors encountered during the request.
    """

    subscription: typing_extensions.NotRequired[SubscriptionParams]
    """
    The subscription with the updated subscription plan.
    """

    actions: typing_extensions.NotRequired[typing.Sequence[SubscriptionActionParams]]
    """
    A list of a `SWAP_PLAN` action created by the request.
    """
