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

Method clearRevenue

packages/sdks/web/src/index.ts:341–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339 }
340
341 clearRevenue() {
342 this.pendingRevenues = [];
343 if (!this.isServer()) {
344 try {
345 sessionStorage.removeItem('openpanel-pending-revenues');
346 } catch {}
347 }
348 }
349
350 pendingRevenue(amount: number, properties?: Record<string, unknown>) {
351 this.pendingRevenues.push({ amount, properties });

Callers 3

flushRevenueMethod · 0.95
clearRevenueFunction · 0.45
testDirectMethodAPIFunction · 0.45

Calls 1

isServerMethod · 0.95

Tested by

no test coverage detected