@suluk/billing - v0.2.0
    Preparing search index...

    Function upsertBillingAccount

    • Persist customer + subscription together (the subscribe path sets both). Idempotent on the userId PK.

      Parameters

      • db: BillingDB
      • userId: string
      • customerId: string
      • subscriptionId: string | null

      Returns Promise<void>