Skip to main content
Version: 2.x

Interface: DeductionSuccess

Defined in: javascript/src/credits/types/account.ts:68

A committed usage charge. Allowance-only charges legitimately have no ledger entry.

Extends​

  • DeductionResultBase

Properties​

allowanceConsumed​

allowanceConsumed: Decimal

Defined in: javascript/src/credits/types/account.ts:63

Inherited from​

DeductionResultBase.allowanceConsumed


amount​

amount: Decimal

Defined in: javascript/src/credits/types/account.ts:62

Inherited from​

DeductionResultBase.amount


balanceAfter​

balanceAfter: Decimal

Defined in: javascript/src/credits/types/account.ts:73


bucketBreakdown​

bucketBreakdown: Record<string, Decimal> | null

Defined in: javascript/src/credits/types/account.ts:74


entryId​

entryId: string | null

Defined in: javascript/src/credits/types/account.ts:70


error​

error: null

Defined in: javascript/src/credits/types/account.ts:69


idempotent​

idempotent: boolean

Defined in: javascript/src/credits/types/account.ts:64

Inherited from​

DeductionResultBase.idempotent


usageChargeId​

usageChargeId: string | null

Defined in: javascript/src/credits/types/account.ts:72

Canonical usage receipt, including zero-cost or allowance-only charges.


userId​

userId: string

Defined in: javascript/src/credits/types/account.ts:61

Inherited from​

DeductionResultBase.userId