2022-07-19 04:44:07 +00:00
|
|
|
import datetime
|
|
|
|
|
2024-01-06 18:32:21 -08:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
2022-07-19 04:44:07 +00:00
|
|
|
|
2023-05-23 14:24:13 -07:00
|
|
|
from ..models.uuid import Uuid
|
2022-07-19 04:44:07 +00:00
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
class CustomerBalance(BaseModel):
|
2023-11-27 16:01:20 -08:00
|
|
|
"""A balance for a user.
|
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
This holds information about the financial balance for the user."""
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
created_at: datetime.datetime
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
id: Uuid
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
monthly_credits_remaining: float
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
pre_pay_cash_remaining: float
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
pre_pay_credits_remaining: float
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
total_due: float
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
updated_at: datetime.datetime
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
user_id: Uuid
|
2024-01-06 18:32:21 -08:00
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|