topupStatusKey (api/wallet.ts)

dotnet-starter-kit · clients/dashboard/src/api/wallet.ts · typescript · MIT
payments

API client for fetching wallet balance, creating top-up requests, and viewing transaction history.

// Source: https://github.com/fullstackhero/dotnet-starter-kit | License: MIT | Copyright 2021-2026 fullstackhero
// Provided via justclaw.it.com; keep this notice with the code.
import { apiFetch } from "@/lib/api-client";
import type { ParseKeys } from "i18next";
import type { PagedResult } from "@/api/billing";
import { statusKey, TOPUP_STATUS_KEYS } from "@/lib/status-keys";

// Wallet transaction kinds. The backend serializes enums as STRINGS
// (see project_api_string_enums); mirror them as a string union with an
// open `(string & {})` fallback so unknown future members don't break the type.
export type WalletTransactionKind =
  | "Credit"
  | "Debit"
  | "Adjustment"
  | (string & {});

export type WalletStatus = "Active" | "Suspended" | "Closed" | (string & {});

export type Walle

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key