MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / fetch_plans

Method fetch_plans

api/organisations/chargebee/cache.py:35–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 return self._cache.get(CHARGEBEE_CACHE_KEY) # type: ignore[no-any-return]
34
35 def fetch_plans(self) -> dict: # type: ignore[type-arg]
36 plans = {}
37 for entry in get_item_generator(ChargebeeItem.PLAN):
38 plan = entry.plan
39 plan_metadata = plan.meta_data or {}
40 plans[plan.id] = ChargebeeObjMetadata(**plan_metadata)
41 return plans
42
43 def fetch_addons(self) -> dict: # type: ignore[type-arg]
44 addons = {}

Callers 1

refreshMethod · 0.95

Calls 2

get_item_generatorFunction · 0.85

Tested by

no test coverage detected