Interface CreditHoldRow

A hold: one operation's most, reserved against the lots, and its settlement.

interface CreditHoldRow {
    holdId: string;
    scopeId: string;
    operationId: string;
    kind: string;
    requestHash: string;
    customerMicro: number;
    supplierMicro: number;
    mediaCustomerMicro: number;
    mediaSupplierMicro: number;
    attemptCustomerMicro: number;
    attemptSupplierMicro: number;
    maxAttempts: number;
    attemptLimits: string;
    rateVersion: string;
    rates: string;
    mediaComponent: string;
    state: CreditHoldState;
    chargedMicro: number;
    supplierSettledMicro: number;
    supplierOpenMicro: number;
    createdAt: number;
    expiresAt: number;
    settledAt: null | number;
    deferredUntil: null | number;
    fenceEvidence: null | string;
    version: number;
}

Properties

holdId: string
scopeId: string
operationId: string

The host's id for the operation (a call); unique in the scope.

kind: string

What is held for, such as call or meeting_run.

requestHash: string

A digest of the request the hold was made for; the same operation with another digest is a conflict.

customerMicro: number

The customer's most, allocated to lots.

supplierMicro: number

The supplier's most, counted against the platform's daily cap.

mediaCustomerMicro: number
mediaSupplierMicro: number
attemptCustomerMicro: number

One attempt's most on each side.

attemptSupplierMicro: number
maxAttempts: number
attemptLimits: string

The attempts' limits, as JSON of AttemptLimits.

rateVersion: string

The primary snapshot's version.

rates: string

JSON of { primary: RateSnapshot; fallbacks: RateSnapshot[] }, immutable for the hold's life.

mediaComponent: string

The component that prices connected time.

chargedMicro: number

What the customer was charged at settlement.

supplierSettledMicro: number

Supplier cost settled so far.

supplierOpenMicro: number

Supplier liability still open after settlement: attempts whose usage never arrived, at their most.

createdAt: number
expiresAt: number

When the hold's time is up and a reconcile asks about it.

settledAt: null | number
deferredUntil: null | number

When a deferred hold is asked about again.

fenceEvidence: null | string

The last fence evidence, as JSON.

version: number