ServiceList

包含一个或多个服务项的服务列表。

JSON 表示法
{
  "name": string,
  "serviceItems": [
    {
      object (ServiceItem)
    }
  ]
}
字段
name

string

必需。此营业地点的 Google 标识符,格式为:accounts/{accountId}/locations/{locationId}/serviceList

serviceItems[]

object (ServiceItem)

此服务列表包含的服务项。重复的服务项会被自动移除。

ServiceItem

描述单个服务项的消息。用于描述商家提供的服务类型。例如,理发可以是一项服务。

JSON 表示法
{
  "isOffered": boolean,
  "price": {
    object (Money)
  },

  // Union field service_item_info can be only one of the following:
  "structuredServiceItem": {
    object (StructuredServiceItem)
  },
  "freeFormServiceItem": {
    object (FreeFormServiceItem)
  }
  // End of list of possible types for union field service_item_info.
}
字段
isOffered

boolean

可选。此字段用于确定商家是否提供输入服务。

price

object (Money)

可选。表示服务项目的货币价格。我们建议在添加价格时设置 currencyCode 和 units。

联合字段 service_item_info。请务必设置以下字段之一。service_item_info 只能是下列其中一项:
structuredServiceItem

object (StructuredServiceItem)

此字段将设置为结构化服务数据的大小写。

freeFormServiceItem

object (FreeFormServiceItem)

此字段将设置为自由格式服务数据的情形。

StructuredServiceItem

表示商家提供的结构化服务。例如:toilet_installation。

JSON 表示法
{
  "serviceTypeId": string,
  "description": string
}
字段
serviceTypeId

string

必需。serviceTypeId 字段是 Google 提供的唯一 ID,可在 ServiceTypeMetadata 中找到。此信息由 category.batchGet rpc 服务提供。

description

string

可选。结构化服务项的说明。字符数不能超过 300 个。

FreeFormServiceItem

表示商家提供的自由格式服务。这些服务不会作为我们的结构服务数据的一部分公开。商家可以通过地理商家界面手动输入此类服务的名称。

JSON 表示法
{
  "categoryId": string,
  "label": {
    object (Label)
  }
}
字段
categoryId

string

必需。categoryIdserviceTypeId 应与 Category 消息中提供的可能组合相匹配。

label

object (Label)

必需。项的带语言标记的标签。我们建议商品名称不超过 140 个字符,说明不超过 250 个字符。仅当输入内容是自定义服务项目时,才应设置此字段。应通过 serviceTypeId 更新标准化服务类型。