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

from __future__ import annotations
from .wallettransactionstatus import WalletTransactionStatus
from .webhookwalletavailablebalance import (
    WebhookWalletAvailableBalance,
    WebhookWalletAvailableBalanceTypedDict,
)
from moovio_sdk.types import BaseModel
import pydantic
from typing import Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class WebhookDataWalletTransactionUpdatedTypedDict(TypedDict):
    account_id: str
    wallet_id: str
    transaction_id: str
    status: WalletTransactionStatus
    available_balance: NotRequired[WebhookWalletAvailableBalanceTypedDict]
    r"""The available balance of a wallet."""


class WebhookDataWalletTransactionUpdated(BaseModel):
    account_id: Annotated[str, pydantic.Field(alias="accountID")]

    wallet_id: Annotated[str, pydantic.Field(alias="walletID")]

    transaction_id: Annotated[str, pydantic.Field(alias="transactionID")]

    status: WalletTransactionStatus

    available_balance: Annotated[
        Optional[WebhookWalletAvailableBalance],
        pydantic.Field(alias="availableBalance"),
    ] = None
    r"""The available balance of a wallet."""
