import { httpClient } from "./httpClient"; export interface BalanceInfo { balance: string; } export interface TransactionInfo { id: string; type: string; amount: string; balance_after: string; reference_id: string; created_at: string; } export const walletService = { getBalance: () => httpClient.get("/wallet/balance"), redeem: (code: string) => httpClient.post("/wallet/redeem", { code }), transactions: (page = 1, size = 20) => httpClient.get(`/wallet/transactions?page=${page}&size=${size}`), };