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

import typing

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


class ServiceLineEraData(UniversalBaseModel):
    service_line_adjustments: typing.List[ServiceLineAdjustment] = pydantic.Field()
    """
    Deprecated. This field aggregates all CARCs across a service line's history
    without granular context
    (e.g., which CARCs relate to denials vs. payments vs. reversals), making it
    unsuitable for denial analysis or operational workflows.
    """

    remittance_advice_remark_codes: typing.List[str]

    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
