Update date type in RevenueWithdrawalStateSucceeded

This commit is contained in:
JRoot Junior 2024-06-18 22:19:18 +03:00
parent e48088f649
commit 98c789f272
No known key found for this signature in database
GPG key ID: 738964250D5FF6E2
2 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,5 @@
annotations:
date:
parsed_type:
type: std
name: DateTime

View file

@ -3,6 +3,7 @@ from __future__ import annotations
from typing import TYPE_CHECKING, Any, Literal
from ..enums import RevenueWithdrawalStateType
from .custom import DateTime
from .revenue_withdrawal_state import RevenueWithdrawalState
@ -15,7 +16,7 @@ class RevenueWithdrawalStateSucceeded(RevenueWithdrawalState):
type: Literal[RevenueWithdrawalStateType.SUCCEEDED] = RevenueWithdrawalStateType.SUCCEEDED
"""Type of the state, always 'succeeded'"""
date: int
date: DateTime
"""Date the withdrawal was completed in Unix time"""
url: str
"""An HTTPS URL that can be used to see transaction details"""
@ -30,7 +31,7 @@ class RevenueWithdrawalStateSucceeded(RevenueWithdrawalState):
type: Literal[
RevenueWithdrawalStateType.SUCCEEDED
] = RevenueWithdrawalStateType.SUCCEEDED,
date: int,
date: DateTime,
url: str,
**__pydantic_kwargs: Any,
) -> None: