From edd41a727f1dbab2eba4bb80cdfc786718ac8793 Mon Sep 17 00:00:00 2001 From: osoken Date: Tue, 31 Oct 2023 22:46:42 +0900 Subject: [PATCH] feat(models): add special type for timestamp_of_last_earn_out --- birdxplorer/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/birdxplorer/models.py b/birdxplorer/models.py index eb8c094..c46b8a1 100644 --- a/birdxplorer/models.py +++ b/birdxplorer/models.py @@ -287,6 +287,7 @@ class EnrollmentState(str, Enum): UserEnrollmentLastStateChangeTimeStamp = Union[TwitterTimestamp, Literal["0"], Literal["103308100"]] +UserEnrollmentLastEarnOutTimestamp = Union[TwitterTimestamp, Literal["1"]] class UserEnrollment(BaseModel): @@ -294,7 +295,7 @@ class UserEnrollment(BaseModel): enrollment_state: EnrollmentState successful_rating_needed_to_earn_in: str timestamp_of_last_state_change: UserEnrollmentLastStateChangeTimeStamp - timestamp_of_last_earn_out: str + timestamp_of_last_earn_out: UserEnrollmentLastEarnOutTimestamp modeling_population: str modeling_group: str