aboutsummaryrefslogtreecommitdiff
path: root/jb/models/amt.py
diff options
context:
space:
mode:
Diffstat (limited to 'jb/models/amt.py')
-rw-r--r--jb/models/amt.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/jb/models/amt.py b/jb/models/amt.py
deleted file mode 100644
index e012741..0000000
--- a/jb/models/amt.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from decimal import Decimal
-
-from pydantic import BaseModel, ConfigDict, Field
-
-
-class AMTAccount(BaseModel):
- model_config = ConfigDict(extra="ignore", validate_assignment=True)
-
- # Remaining available AWS Billing usage if you have enabled AWS Billing.
- available_balance: Decimal = Field()
- onhold_balance: Decimal = Field(default=Decimal(0))
-
- # --- Properties ---
-
- @property
- def is_healthy(self) -> bool:
- # A healthy account is one with at least $2,500 worth of
- # credit available to it
- return self.available_balance >= 2_500