<?php

namespace App\Http\Controllers\Bookings;

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

class UpdateBookingAmountController
{
    /**
     * @param Request $request
     * @param CreateBookingRefundLogic $logic
     * @return JsonResponse
     */
    public function update(Request $request, UpdateBookingAmountLogic $logic): JsonResponse {
        return $logic->execute($request);
    }

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