GenericExtension

  • This content describes a deprecated part of the Orders version 2 API for generic orders not tied to a semantic type.

  • The Generic Extension object includes fields for locations and time.

  • OrderLocation specifies the type and actual location information for an order.

  • Time specifies the type of time indicator and its ISO 8601 representation for an order.

Extension for generic orders that are not tied to a semantic type.

JSON representation
{
  "locations": [
    {
      object(OrderLocation)
    }
  ],
  "time": {
    object(Time)
  }
}
Fields
locations[]

object(OrderLocation)

Locations associated with the order. Up to 2 locations.

time

object(Time)

Time indicator associated with the proposed order.

OrderLocation

Location associated with an order.

JSON representation
{
  "type": enum(OrderLocationType),
  "location": {
    object(Location)
  }
}
Fields
type

enum(OrderLocationType)

Address type. Determines icon and placement. Required.

location

object(Location)

Contains actual location info.

Time

Time associated with an order.

JSON representation
{
  "type": enum(TimeType),
  "timeIso8601": string
}
Fields
type

enum(TimeType)

Type of time indicator.

timeIso8601

string

ISO 8601 representation of time indicator: could be a duration, date or exact datetime.