bursar.CatalogService
class bursar.CatalogService(credits)
Bases: object
Catalog operations; billing never owns configuration writes.
- Parameters: credits (CreditsServiceImpl)
get_active()
Return the active persisted catalog revision, if one exists.
- Return type: CatalogRevision | None
property is_loaded : bool
Whether this process currently has a pricing engine loaded.
load()
Load the active persisted catalog into this process.
- Return type: None
refresh()
Block until a stale in-process catalog has been refreshed.
- Return type: None
invalidate()
Force the next refresh to reload the active catalog.
- Return type: None
set_revision_pin(user_id, pinned)
Pin or unpin one current assignment from automatic catalog rollout.
- Parameters:
- user_id (str)
- pinned (bool)
- Return type: bool
apply_due_changes(limit=100)
Apply one bounded batch of renewal-effective plan changes.
- Parameters: limit (int)
- Return type: int