Skip to content

Instantly share code, notes, and snippets.

@Casperhr
Created March 16, 2016 10:09
Show Gist options
  • Select an option

  • Save Casperhr/a034f9707eabe7ed3ba9 to your computer and use it in GitHub Desktop.

Select an option

Save Casperhr/a034f9707eabe7ed3ba9 to your computer and use it in GitHub Desktop.
const STATUSES = [
'NEW' => RiideStates::STATE_REQUESTED, //The booking was created
'SCHEDULED' => RiideStates::STATE_REQUESTED, //The booking was created as prebooking
'ASSIGN' => RiideStates::STATE_REQUESTED, // The booking was assigned to a driver
'BACKTOBASE' => RiideStates::STATE_REQUESTED, // Booking was sent back to the dispatch
'PAUSE' => RiideStates::STATE_ACCEPTED, // The booking is paused.
'PAUSED' => RiideStates::STATE_ACCEPTED, // The booking is paused.,
'ARRIVED' => RiideStates::STATE_ARRIVED, // Driver arrived at pickup location
'NOSHOW' => RiideStates::STATE_NO_SHOW, // The passenger did not show up.
'ENROUTE' => RiideStates::STATE_EN_ROUTE, // Driver is driving to the pickup
'FOLLOWON' => RiideStates::STATE_EN_ROUTE, // Driver is enroute and has a follow on job
'WAIT' => RiideStates::STATE_TO_DESTINATION, // Driver is waiting
'TRANSFERRED' => RiideStates::STATE_REQUESTED, // The booking was transferred to another company
'MADECONTACT' => RiideStates::STATE_TO_DESTINATION, // Driver made contact with the passenger
'DROPPINGOFF' => RiideStates::STATE_TO_DESTINATION, // Passenger is on board and driver is driving to destination
'CUSTOMER_CANCELLED' => RiideStates::STATE_CANCELLED_USER, // The booking has been cancelled by the customer.
'ARCHIVE_CUSTOMER_CANCELLED' => RiideStates::STATE_CANCELLED_USER, // Undocumented
'DRIVER_CANCELLED' => RiideStates::STATE_CANCELLED_DRIVER, // The booking has been cancelled by the driver.
'DISPATCH_CANCELLED' => RiideStates::STATE_CANCELLED_DRIVER, // The booking has been cancelled by a member of staff.
'COMPLETE' => RiideStates::STATE_COMPLETED, // The booking has been completed.
'COMPLETED' => RiideStates::STATE_COMPLETED, // The booking has been completed.
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment