Toggle availability

Description#

Allows couriers to indicate if they are ready to deliver orders. Courier that are not available are ignored by the courier assignment mechanism.

Input#

Coordinates#

  • Type
    • Coordinates
  • Validation
    • Required

Address#

  • Type
    • String
  • Validation
    • Required

Vehicle#

  • Type
    • Enum of type string
    • Options
      • Car
      • Bike
  • Validation
    • Required

Additional validation#

Mechanism#

  1. Switch the courier entitycourier's Entity propertyavailable property.
  2. Identify the current region by the Function inputcoordinates.
  3. Save the following as the courier Entity propertylocation:
  4. Store availability data.

Notes#

info
  • A newly created courier is unavailable by default.