Type alias SpendReserveResult

SpendReserveResult: {
    status: "reserved";
    operationId: string;
    accountId: string;
    period: string;
    units: number;
    attempt: number;
    remaining: number;
    expiresAt: number;
} | {
    status: "denied";
    reason: SpendDenyReason;
    operationId: string;
    accountId: string;
    period: string;
    remaining: number;
}

Type declaration

  • status: "reserved"
  • operationId: string
  • accountId: string
  • period: string
  • units: number
  • attempt: number

    1 for a first reservation, more for a retry of a released one.

  • remaining: number

    Units left in the period after this reservation.

  • expiresAt: number

Type declaration

  • status: "denied"
  • reason: SpendDenyReason
  • operationId: string
  • accountId: string
  • period: string
  • remaining: number