OrderOptions

  • OrderOptions allows specifying if a delivery address is required and provides options for requesting user information.

  • requestDeliveryAddress is a boolean indicating whether the order requires a delivery address.

  • userInfoOptions enables the app to request specific user information, such as name, email, or phone number, which will be displayed for confirmation in the ProposedOrderCard.

  • userInfoProperties is a list of user info properties that the app can request, including options like given name, family name, email, and phone number.

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.