20 lines
1.3 KiB
TypeScript
20 lines
1.3 KiB
TypeScript
/**
|
|
* Withdrawal controllers — user submission / cancellation and the admin withdrawal queue.
|
|
*/
|
|
import { Response } from 'express';
|
|
import { AuthRequest } from '../middleware/auth';
|
|
/**
|
|
* Records a withdrawal request (status `pending`, amount + fee reserved).
|
|
* Body: `walletType`, `toAddress`, `amount`, optional `totpCode`, optional `idempotencyKey`
|
|
* (also accepted as the `Idempotency-Key` header).
|
|
*/
|
|
export declare function withdraw(req: AuthRequest, res: Response): Promise<void>;
|
|
/** User cancels their own withdrawal while it is still pending (refund to available balance). */
|
|
export declare function cancelOwnWithdrawal(req: AuthRequest, res: Response): Promise<void>;
|
|
export declare function adminListWithdrawals(req: AuthRequest, res: Response): Promise<void>;
|
|
export declare function adminGetWithdrawal(req: AuthRequest, res: Response): Promise<void>;
|
|
/** Starts (or retries) the payout. Returns the resulting status (processing / pending / failed). */
|
|
export declare function adminProcessWithdrawal(req: AuthRequest, res: Response): Promise<void>;
|
|
export declare function adminRequeueWithdrawal(req: AuthRequest, res: Response): Promise<void>;
|
|
export declare function adminRejectWithdrawal(req: AuthRequest, res: Response): Promise<void>;
|
|
//# sourceMappingURL=withdrawalController.d.ts.map
|