# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Union, Optional
from typing_extensions import Literal, TypeAlias

from pydantic import Field as FieldInfo

from .retailer_legacy import RetailerLegacy

__all__ = ["RetailerRetrieveResponse", "RetailerDetails"]


class RetailerDetails(RetailerLegacy):
    payment_gateway: Optional[Literal["ACCOUNT", "PAYMENT_SERVICE", "BRAINTREE"]] = FieldInfo(
        alias="paymentGateway", default=None
    )
    """Supported payment gateway"""


RetailerRetrieveResponse: TypeAlias = Union[RetailerLegacy, RetailerDetails]
