resq/src/Ramcar/JOStatus.php

28 lines
1.2 KiB
PHP

<?php
namespace App\Ramcar;
class JOStatus extends NameValue
{
const PENDING = 'pending'; // JO has no hub assigned
const RIDER_ASSIGN = 'rider_assign'; // JO has hub assigned but no rider assigned
const ASSIGNED = 'assigned'; // JO has hub and rider assigned
const IN_TRANSIT = 'in_transit'; // Rider is on his way
const IN_PROGRESS = 'in_progress'; // Rider has arrived at customer's location and fulfillment is in progress
const PERFORMED = 'performed'; // Rider has finished performing JO task / service
const PAID = 'paid'; // Rider has finished collecting payment for JO
const CANCELLED = 'cancelled'; // JO is cancelled
const FULFILLED = 'fulfilled'; // JO is fulfilled
const COLLECTION = [
'pending' => 'For Dispatch',
'rider_assign' => 'For Rider Assignment',
'assigned' => 'Assigned',
'in_transit' => 'In Transit',
'in_progress' => 'In Progress',
'performed' => 'Service Performed',
'paid' => 'Customer Paid',
'cancelled' => 'Cancelled',
'fulfilled' => 'Completed',
];
}