<?php

namespace App\Http\Controllers\Transactions;

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

class ShippingEstimationCalculatorController
{
    /**
     * @param Request $request
     * @param ShippingEstimationCalculatorLogic $logic
     * @return JsonResponse
     */
    public function calculate(Request $request, ShippingEstimationCalculatorLogic $logic): JsonResponse
    {
        return $logic->execute($request);
    }
}
