OrderOptions

  • OrderOptions define options associated with an order, including the ability to request a delivery address and specify user information options.

  • The requestDeliveryAddress field is a boolean that, if true, indicates a delivery address is required for the order.

  • The userInfoOptions field is an object that allows the app to request specific user information, which will be displayed in the ProposedOrderCard for user confirmation.

  • UserInfoOptions contain a list of userInfoProperties, which are enums representing specific user information fields that can be requested.

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.