OrderOptions

  • OrderOptions allows specifying if a delivery address is required and what user information to request.

  • requestDeliveryAddress is a boolean indicating if the order needs a delivery address.

  • userInfoOptions enables requesting specific user information, like email or phone number, for the order.

  • This information is displayed in the ProposedOrderCard for user confirmation.

Options associated with an order.

JSON representation
{
  "requestDeliveryAddress": boolean,
  "userInfoOptions": {
    object (UserInfoOptions)
  }
}
Fields
requestDeliveryAddress

boolean

If true, delivery address is required for the associated order.

userInfoOptions

object (UserInfoOptions)

The app can request user info by setting this field. If set, the corresponding field will show up in ProposedOrderCard for user's confirmation.

UserInfoOptions

Options regarding user info.

JSON representation
{
  "userInfoProperties": [
    enum (UserInfoProperty)
  ]
}
Fields
userInfoProperties[]

enum (UserInfoProperty)

List of user info properties.