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

from typing import Optional

from pydantic import Field as FieldInfo

from ....._models import BaseModel
from ..currency_code import CurrencyCode

__all__ = ["CurrencyObject"]


class CurrencyObject(BaseModel):
    currency: Optional[CurrencyCode] = None
    """The 3-character abbreviation for a currency."""

    display: Optional[str] = None
    """Exact display value (rounded to 2 decimal places)."""

    display_rounded: Optional[str] = FieldInfo(alias="displayRounded", default=None)
    """Display value rounded to the nearest whole unit of currency."""

    value: Optional[float] = None
    """A monetary amount with 2 decimal places of precision. N.B.

    In some cases, this may be used to represent percentages (for fees, commissions,
    etc.), where `0.10` would represent 10%.
    """
