<?php

namespace App\Domains\Admin\Controllers;

use App\Scopes\CommonController;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class TenantPaymentGetController extends CommonController
{
    public function __invoke(Request $request): JsonResponse
    {
        return response()->json([
            'account_iban' => $this->tenant->account_iban,
            'account_bic' => $this->tenant->account_bic,
            'account_name' => $this->tenant->account_name,
            'saveEndpoint' => '/api/v1/admin/tenant/payment',
        ]);
    }
}
