# Generated by smithplates HTTP codegen. Do not edit.

from __future__ import annotations

from datetime import datetime

from pydantic import BaseModel, TypeAdapter


class FulfillmentStatePending(BaseModel):
    pending: str


class FulfillmentStateShipped(BaseModel):
    shipped: datetime


class FulfillmentStateDelivered(BaseModel):
    delivered: datetime


FulfillmentState = FulfillmentStatePending | FulfillmentStateShipped | FulfillmentStateDelivered


_FulfillmentState_ADAPTER = TypeAdapter(FulfillmentState)


def validate_fulfillment_state(value: object) -> FulfillmentState:
    return _FulfillmentState_ADAPTER.validate_python(value)
