PLANS = [
# Deprecated Plans
{
'title': 'Micro',
'price': 700,
'privateRepos': 5,
'stripeId': 'micro',
'audience': 'For smaller teams',
'bus_features': False,
'deprecated': True,
},
'title': 'Basic',
'price': 1200,
'privateRepos': 10,
'stripeId': 'small',
'audience': 'For your basic team',
'title': 'Medium',
'price': 2200,
'privateRepos': 20,
'stripeId': 'medium',
'audience': 'For medium teams',
'title': 'Large',
'price': 5000,
'privateRepos': 50,
'stripeId': 'large',
'audience': 'For larger teams',
# Active plans
'title': 'Open Source',
'price': 0,
'privateRepos': 0,
'stripeId': 'free',
'audience': 'Committment to FOSS',
'deprecated': False,
'title': 'Personal',
'stripeId': 'personal',
'audience': 'Individuals',
'title': 'Skiff',
'price': 2500,
'stripeId': 'bus-micro',
'audience': 'For startups',
'bus_features': True,
'title': 'Yacht',
'stripeId': 'bus-small',
'audience': 'For small businesses',
'title': 'Freighter',
'price': 10000,
'stripeId': 'bus-medium',
'audience': 'For normal businesses',
'title': 'Tanker',
'price': 20000,
'privateRepos': 125,
'stripeId': 'bus-large',
'audience': 'For large businesses',
]
def get_plan(plan_id):
""" Returns the plan with the given ID or None if none. """
for plan in PLANS:
if plan['stripeId'] == plan_id:
return plan
return None