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

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


class CancelCashJournalRequestCreateTypedDict(TypedDict):
    r"""Request to cancel an existing cash journal"""

    name: str
    r"""The name of the cash journal to cancel"""
    reason: NotRequired[str]
    r"""The reason for canceling the cash journal Maximum of 100 characters are supported"""


class CancelCashJournalRequestCreate(BaseModel):
    r"""Request to cancel an existing cash journal"""

    name: str
    r"""The name of the cash journal to cancel"""

    reason: Optional[str] = None
    r"""The reason for canceling the cash journal Maximum of 100 characters are supported"""
