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

import typing

import pydantic
from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel


class MethodsListOut(UniversalBaseModel):
    """
    Payment methods available for Pay Out payment links. Controls which payout options are offered to the vendor.
    """

    ach: typing.Optional[bool] = pydantic.Field(default=None)
    """
    When `true`, ACH bank transfer is offered as a payout method.
    """

    check: typing.Optional[bool] = pydantic.Field(default=None)
    """
    When `true`, physical check is offered as a payout method.
    """

    vcard: typing.Optional[bool] = pydantic.Field(default=None)
    """
    When `true`, virtual card (vCard) is offered as a payout method.
    """

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
