Add call to get customer hash. #640

This commit is contained in:
Korina Cordero 2021-11-23 02:48:24 +00:00
parent 0e5824af29
commit 680a12e52a
2 changed files with 9 additions and 0 deletions

View file

@ -95,3 +95,7 @@ capi_rider_jo_start:
controller: App\Controller\CAPI\RiderAppController::startJobOrder
methods: [POST]
capi_rider_hash_get:
path: /rider_api/customer_hash
controller: App\Controller\CAPI\RiderAppController::getCustomerHash
methods: [GET]

View file

@ -30,6 +30,7 @@ use App\Service\JobOrderHandlerInterface;
use App\Service\InvoiceGeneratorInterface;
use App\Service\RisingTideGateway;
use App\Service\RiderTracker;
use App\Service\HashGenerator;
use App\Ramcar\ServiceType;
use App\Ramcar\TradeInType;
@ -1225,6 +1226,10 @@ class RiderAppController extends APIController
return new APIResponse(true, 'Job order service changed.', $data);
}
public function getCustomerHash(Request $req, EntityManagerInterface $em, HashGenerator $hash)
{
}
protected function getCAPIUser($id, EntityManagerInterface $em)
{
$capi_user = $em->getRepository(APIUser::class)->find($id);