Resolve "New rider api call to return customer hash" #1563

Merged
korina.cordero merged 22 commits from 640-new-rider-api-call-to-return-customer-hash into master-fix 2021-12-03 05:56:58 +00:00
2 changed files with 9 additions and 0 deletions
Showing only changes of commit 680a12e52a - Show all commits

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);