<?php

namespace App\Http\Controllers\Companies;

use App\Classes\Modules\Companies\ControllersLogic\UpdateCompanyEInvoiceInfoLogic;
use App\Classes\Modules\Companies\ControllersLogic\UpdateCompanyEInvoiceRequestLogic;
use App\Classes\Modules\Companies\ControllersLogic\UpdateCompanyEInvoiceRequestChangeLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class UpdateCompanyEInvoiceInfoController
{
    /**
     * @param Request $request
     * @param UpdateCompanyEInvoiceInfoLogic $logic
     * @return JsonResponse
     */
    public function updateInfo(Request $request, UpdateCompanyEInvoiceInfoLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

    /**
     * @param Request $request
     * @param UpdateCompanyEInvoiceRequestLogic $logic
     * @return JsonResponse
     */
    public function updateRequest(Request $request, UpdateCompanyEInvoiceRequestLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

    /**
     * @param Request $request
     * @param UpdateCompanyEInvoiceRequestChangeLogic $logic
     * @return JsonResponse
     */
    public function updateChangeOfMindRequest(Request $request, UpdateCompanyEInvoiceRequestChangeLogic $logic): JsonResponse {
        return $logic->execute($request);
    }
}
