"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toMitraRequestResponse = toMitraRequestResponse;
const user_model_1 = require("./user-model");
function toMitraRequestResponse(request) {
    return {
        id: request.id,
        user: (0, user_model_1.toUserResponse)(request.user),
        ktp: request.ktp,
        upgrade_amount: Number(request.upgrade_amount),
        payment_proof: request.payment_proof,
        status: request.status,
        created_at: request.created_at,
        updated_at: request.updated_at,
    };
}
