support: Set discounted price instead percentage for customers.

This allows us to set the price of a plan exactly as discussed with
the customer.
This commit is contained in:
Aman Agrawal
2024-05-06 04:12:15 +00:00
committed by Tim Abbott
parent ed5e0fa141
commit 7203661d99
26 changed files with 722 additions and 287 deletions

View File

@@ -31,7 +31,6 @@ for any particular type of object.
import re
from dataclasses import dataclass
from datetime import datetime, timezone
from decimal import Decimal
from typing import (
Any,
Callable,
@@ -605,10 +604,6 @@ def to_float(var_name: str, s: str) -> float:
return float(s)
def to_decimal(var_name: str, s: str) -> Decimal:
return Decimal(s)
def to_timezone_or_empty(var_name: str, s: str) -> str:
try:
s = canonicalize_timezone(s)