Skip to main content

Interface: AddCreditsResult

Defined in: javascript/src/types.ts:84

Result of adding credits to a user's account.

Properties

amount

amount: Decimal

Defined in: javascript/src/types.ts:87


idempotent?

optional idempotent?: boolean

Defined in: javascript/src/types.ts:93

true when this result is a replay of a prior grant with the same idempotencyKey.


lifetimePurchased

lifetimePurchased: Decimal

Defined in: javascript/src/types.ts:89


newBalance

newBalance: Decimal

Defined in: javascript/src/types.ts:88


tier

tier: string

Defined in: javascript/src/types.ts:91

The tier this grant landed in ("default" when no tiers are configured).


transactionId

transactionId: string

Defined in: javascript/src/types.ts:85


userId

userId: string

Defined in: javascript/src/types.ts:86