Resources

The Bringg Driver SDK for iOS data types are described on this page.

📘

All Bringg Driver SDK for iOS Data Types are Immutable

The data types are immutable. They are read-only and cannot be changed.

Customer

Id

Int

The Id of the customer.

email

String

The email address of this customer.

externalId

Int

The Id of this customer in your own system.

priority

String

The priority of this task.

image

String

The file name of the image file for this customer.

phone

String

The phone number of this customer.

Inventory

Id

Int

The Id of this inventory item.

externalId

String

The Id of this inventory.

inventoryId

Int

The Id of this inventory.

name

String

The name of this inventory.

originalQuantity

Int

The number of original items of this inventory item in the inventory.

pending

boolean

Indicates whether this is pending. The values are:

  • false or 0 - the inventory is not pending
  • true or 1 - the inventory is pending

quantity

Int

The number of items of this inventory item in the inventory.

scanString

String

The value of the scanned of this inventory.

waypointId

Int

The Id of the way point for this inventory.

Merchant

Id

Int

The Id of the merchant.

name

String

The name of the merchant.

type

Int

The type of the merchant. The values are:

  • -1 - unknown
  • 0 - production
  • 1 - staging

Shift

Id

Int

The Id of the shift.

startShift

Date

The date and time the current shift started.

endShift

Date

The date and time the current shift started.

Task

Id

Int

The Id of the task.

activeWaypointId

Int

The Id of the way point which the driver is currently servicing.

asap

boolean

Indicates whether this is an ASAP task. The values are:

  • false or 0 - this not an ASAP task
  • true or 1 - this is an ASAP task

The default value is false.

externalId

Int

The Id of this task in your own system.

priority

String

The priority of this task.

status

Int

The status of this task. The values are:

  • 0 - the task was created, but is not assigned to a driver.
  • 1 - the task was created and is not assigned to a driver.
  • 2 - the driver is on the way to a way point.
  • 3 - the driver arrived at a way point.
  • 4 - the task ended (done).
  • 6 - the task was accepted by a driver.
  • 7 - the task was cancelled.
  • 8 - the task was offered to a driver and the driver rejected the task.
  • 100 - the task was deleted locally on the driver app by the driver.
  • 200 - the task was deleted remotely on the server by the dispatcher.
  • 400 - the task was ended (done) remotely on the server by the dispatcher.

title

String

The title of this task.

waypoints

Object

A way points object containing information about the way points in this task.

User

userId

Int

The Id of this logged in user.

email

String

The eamil of this logged in user.

isHome

Boolean

Indicates whether this logged in user is at home. The values are:

name

String

The name of this logged in user.

phone

String

The phone of this logged in user.

profileImage

String

A string containing the path and filename of this logged in user's image file.

Way Points

Id

Int

The unique Id of the way point.

address

String

The address of this way point.

customer

object

An Customer object containing information about the customer at this way point.

done

Boolean

Indicates whether this way point is done. The values are:

  • false or 0 - the way point is done
  • true or 1 - the way point is not done

eta

Date

The expected time of arrival at the way point.

inventories

array of objects

An array of Inventory objects containing the inventories for this way point.

lat

double

The geoposition latitude of this way point.

lng

double

The geoposition longitude of this way point.

position

Int

The position of this way point in all way points in the order to which this way point belongs. For example, the order may contain 5 way points and this way point is position 2 (the second).

scheduledAt

Date

The date and time the task was scheduled.

status

Int

The way point status. he values are:

  • pending - the driver has not yet started this way point in the order.
  • started - the driver is on the way to this way point.
  • checkedIn - the driver arrived at this way point.
  • done - the driver left this way point.
  • cancelled - the way point was cancelled.

taskId

Int

The unique Id of the order.