<?php

namespace App\Http\Controllers\Bookings;

use App\Classes\Modules\Bookings\ControllersLogic\RegenerateInvoiceBookingLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class RegenerateInvoiceBookingController
{
    /**
     * @param Request $request
     * @param RegenerateInvoiceBookingLogic $logic
     * @return JsonResponse
     */
    public function regenerate(Request $request, RegenerateInvoiceBookingLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

}