sbt-idp/cope2n-api/add_user.py
2023-11-30 18:19:06 +07:00

11 lines
452 B
Python
Executable File

from fwd_api.models.UserProfile import UserProfile
from fwd_api.models.UserProfile import Subscription
from fwd_api.models.UserProfile import PricingPlan
def add_user(user_name, _id):
pricing_plan = PricingPlan(id=_id, code=10, token_limitations=1000000000, duration=1000000000)
user = UserProfile(id=_id, full_name=user_name)
subscription = Subscription(id=_id, current_token=0, limit_token=1000000000, pricing_plan=pricing_plan, )