MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / pendingRevenue

Method pendingRevenue

packages/sdks/web/src/index.ts:350–360  ·  view source on GitHub ↗
(amount: number, properties?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

348 }
349
350 pendingRevenue(amount: number, properties?: Record<string, unknown>) {
351 this.pendingRevenues.push({ amount, properties });
352 if (!this.isServer()) {
353 try {
354 sessionStorage.setItem(
355 'openpanel-pending-revenues',
356 JSON.stringify(this.pendingRevenues)
357 );
358 } catch {}
359 }
360 }
361}

Callers 2

pendingRevenueFunction · 0.45
testDirectMethodAPIFunction · 0.45

Calls 4

isServerMethod · 0.95
setItemMethod · 0.80
pushMethod · 0.45
stringifyMethod · 0.45

Tested by

no test coverage detected