<?php


namespace App\Http\Controllers\Transactions;

use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use App\Classes\Modules\Transactions\ControllersLogic\RegenerateSingleShippingInvoiceTransactionLogic;


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