MCPcopy Index your code
hub / github.com/diffgram/diffgram / new_plan_api

Function new_plan_api

default/methods/account/plan/plan_new.py:14–237  ·  view source on GitHub ↗

(project_string_id)

Source from the content-addressed store, hash-verified

12 methods = ['POST'])
13@limiter.limit("3 per day")
14def new_plan_api(project_string_id):
15 """
16
17 """
18 spec_list = [
19 {"premium_plan_user_count": {
20 'kind': int,
21 'required': True
22 }
23 },
24 {"plan_template_public_name": {
25 'kind': str,
26 'required': True
27 }
28 },
29 {"calculated_charge": {
30 'kind': int,
31 'required': True
32 }
33 },
34 {"annual_pricing": {
35 'kind': bool,
36 'required': True
37 }
38 },
39 {"per_user_final": {
40 'kind': int,
41 'required': True
42 }
43 },
44 {"marketing_promo_code": {
45 'kind': str,
46 'required': False
47 }
48 },
49 {"marketing_promo_rate_found": {
50 'kind': str,
51 'required': False
52 }
53 },
54 {"marketing_plan_rate": {
55 'kind': int,
56 'required': False
57 }
58 },
59 {"marketing_savings": {
60 'kind': int,
61 'required': False
62 }
63 },
64 {"marketing_total": {
65 'kind': int,
66 'required': False
67 }
68 },
69 {"roi_monthly_engineering_cost": {
70 'kind': int,
71 'required': False

Callers

nothing calls this directly

Calls 5

get_by_public_nameMethod · 0.80
update_projectsMethod · 0.80
sendMethod · 0.80
getMethod · 0.45
newMethod · 0.45

Tested by

no test coverage detected