Skip to main content
Version: 2.x

bursar.Bursar

class bursar.Bursar(*, credit_store, billing_store=None, credits_options=None, billing_options=None, commerce_options=None, emitter=None)

Bases: object

Single application-facing boundary for credit and billing operations.

The facade owns the lifecycle of both services and prevents application code from wiring unrelated credit and billing implementations together. Integrations should depend on bursar.credits and bursar.billing rather than constructing lifecycle services independently.

load_catalog()

Load the active catalog into the pricing engine.

  • Return type: None

require_billing()

Return billing or raise the SDK’s typed configuration error.

require_commerce()

Return commerce or raise the SDK’s typed configuration error.

ingest_billing_event(event)

Submit a normalized provider event through the facade.