<?php


namespace App\Http\Controllers\Transactions;

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

class CreateBillGroupPaymentTransactionController
{
    /**
     * @param Request $request
     * @param DeleteGroupTransactionLogic $logic
     * @return JsonResponse
     */
    public function pay(Request $request, CreateBillGroupPaymentTransactionLogic $logic) : JsonResponse {
        return $logic->execute($request);
    }
}
