13 lines
689 B
TypeScript
13 lines
689 B
TypeScript
/**
|
|
* Transfer controller — HTTP handler for internal peer-to-peer wallet transfers between users.
|
|
*/
|
|
import { Response } from 'express';
|
|
import { AuthRequest } from '../middleware/auth';
|
|
/**
|
|
* Submits an internal transfer from the authenticated user to another user identified by email.
|
|
* May require a TOTP code when 2FA is enabled for the user.
|
|
* @param req - Authenticated request. Body: `toEmail`, `walletType`, `amount`, optional `totpCode`.
|
|
* @param res - JSON `{ transactionId, status }` on success, 400 on validation or transfer failure.
|
|
*/
|
|
export declare function transfer(req: AuthRequest, res: Response): Promise<void>;
|
|
//# sourceMappingURL=transferController.d.ts.map
|