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

import typing

import typing_extensions
from .error import ErrorParams
from .payment_refund import PaymentRefundParams


class RefundPaymentResponseParams(typing_extensions.TypedDict):
    """
    Defines the response returned by
    [RefundPayment](api-endpoint:Refunds-RefundPayment).

    If there are errors processing the request, the `refund` field might not be
    present, or it might be present with a status of `FAILED`.
    """

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

    refund: typing_extensions.NotRequired[PaymentRefundParams]
    """
    The successfully created `PaymentRefund`.
    """
