<?php

namespace App\Http\Controllers\Bookings;

use App\Classes\Modules\Bookings\ControllersLogic\AutoPurchaseOrderFillLogic;
use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\TransactionType;
use App\Models\Booking;
use App\Models\User;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class AutoPurchaseOrderFillController
{
    /**
     * @param Request $request
     * @param AutoPurchaseOrderFillLogic $logic
     * @return JsonResponse
     */
    public function auto(Request $request, AutoPurchaseOrderFillLogic $logic): JsonResponse {
        Auth()->login(User::find(1));
        return $logic->execute($request);
    }

}