Skip to content

RevTurbineUpdateInput

RevTurbineUpdateInput = Omit<RevTurbineUserContext, "id" | "usage"> & object

Input to RevTurbineCustomerSdk.update — the advertised update(patch) verb.

Accepts every session-scoped user-context field — everything on RevTurbineUserContext except the identity handle id (and the persistence envelope tenant_id / user_id / timestamps, which the input type never carried). Those are bound at RevTurbineCustomerSdk.identify time and are not patchable here; use identify() to (re)establish identity.

Every field is optional and merged with upsert semantics — an omitted field leaves the currently-held value untouched, so a partial patch (e.g. just { plan }) never clobbers other context. Patchable fields include plan, email, account_id, entitlements, custom, personalization, trial, the billing-recovery signals (payment_failed / payment_at_risk), tiers, and usage.

usage keeps its friendly Record<string, number> shape (absolute balances), distinct from the richer per-entry usage on RevTurbineUserContext.

optional usage?: UsageBalances

Usage balances to merge into the current snapshot (absolute values).