"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from censys_platform.types import BaseModel
from datetime import datetime
from typing import Optional
from typing_extensions import NotRequired, TypedDict


class CreditExpirationTypedDict(TypedDict):
    balance: int
    r"""The current balance of the credit expiration."""
    created_at: NotRequired[datetime]
    r"""The date and time the credit expiration was created."""
    expires_at: NotRequired[datetime]
    r"""The date and time the credit expiration will expire."""


class CreditExpiration(BaseModel):
    balance: int
    r"""The current balance of the credit expiration."""

    created_at: Optional[datetime] = None
    r"""The date and time the credit expiration was created."""

    expires_at: Optional[datetime] = None
    r"""The date and time the credit expiration will expire."""
