2022-07-19 04:44:07 +00:00
|
|
|
import datetime
|
2024-02-24 17:03:55 -08:00
|
|
|
from typing import Optional
|
2022-07-19 04:44:07 +00:00
|
|
|
|
2024-01-06 18:32:21 -08:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
2022-07-19 04:44:07 +00:00
|
|
|
|
2024-02-24 17:03:55 -08:00
|
|
|
from ..models.subscription_tier_price import SubscriptionTierPrice
|
2023-05-23 14:24:13 -07:00
|
|
|
from ..models.uuid import Uuid
|
2024-02-24 17:03:55 -08:00
|
|
|
from ..models.zoo_product_subscriptions import ZooProductSubscriptions
|
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):
|
2024-01-16 15:04:35 -08:00
|
|
|
"""A balance for a customer.
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2024-01-16 15:04:35 -08:00
|
|
|
This holds information about the financial balance for the customer."""
|
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
|
|
|
|
2024-01-16 15:04:35 -08:00
|
|
|
map_id: Uuid
|
|
|
|
|
2024-02-24 17:03:55 -08:00
|
|
|
modeling_app_enterprise_price: Optional[SubscriptionTierPrice] = None
|
|
|
|
|
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
|
|
|
|
2024-02-24 17:03:55 -08:00
|
|
|
subscription_details: Optional[ZooProductSubscriptions] = None
|
|
|
|
|
|
|
|
subscription_id: Optional[str] = None
|
|
|
|
|
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
|
|
|
|
2024-01-06 18:32:21 -08:00
|
|
|
model_config = ConfigDict(protected_namespaces=())
|