Merge branch '389-resq-new-api-calls-for-advance-order-slots' into 'master'

Resolve "Resq - new API calls for advance order slots"

Closes #389

See merge request jankstudio/resq!433
This commit is contained in:
Kendrick Chan 2020-04-29 10:52:32 +00:00
commit 3716a9a881
3 changed files with 922 additions and 391 deletions

View file

@ -149,3 +149,13 @@ api_partner_review:
path: /api/partners/{pid}/review
controller: App\Controller\APIController:reviewPartner
methods: [POST]
api_nearest_hub_slots:
path: /api/hub_slots
controller: App\Controller\APIController::getNearestHubAndSlots
methods: [GET]
api_new_jo_request:
path: /api/new_job_order
controller: App\Controller\APIController::newRequestJobOrder
methods: [POST]

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,29 @@
<?php
namespace App\Ramcar;
class AdvanceOrderSlot extends NameValue
{
// starting times
const _08_09 = '08:00';
const _09_10 = '09:00';
const _10_11 = '10:00';
const _11_12 = '11:00';
const _12_13 = '12:00';
const _13_14 = '13:00';
const _14_15 = '14:00';
const _15_16 = '15:00';
const _16_17 = '16:00';
const COLLECTION = [
'08:00' => '08:00',
'09:00' => '09:00',
'10:00' => '10:00',
'11:00' => '11:00',
'12:00' => '12:00',
'13:00' => '13:00',
'14:00' => '14:00',
'15:00' => '15:00',
'16:00' => '16:00',
];
}