ServiceList

包含一或多個服務項目的服務清單。

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

string

必要欄位。這個地點的 Google ID,格式為: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 和 unit。

聯集欄位 service_item_info。請一律設定下列其中一個欄位。service_item_info 只能是下列其中一項:
structuredServiceItem

object (StructuredServiceItem)

這個欄位會設定結構化資料的大小寫。

freeFormServiceItem

object (FreeFormServiceItem)

這個欄位會設為任意形式服務資料的值。

StructuredServiceItem

代表商家提供的結構化服務。例如:ilet_installation。

JSON 表示法
{
  "serviceTypeId": string,
  "description": string
}
欄位
serviceTypeId

string

必要欄位。serviceTypeId 欄位是 Google 提供的專屬 ID,您可以在 ServiceTypeMetadata 中找到。這項資訊是由 category.batchGet rpc 服務提供。

description

string

選用設定。結構化服務項目的說明。長度上限為 300 個半形字元。

FreeFormServiceItem

代表商家提供的任意形式服務。這些服務並未包含在 Google 的結構服務資料中。商家透過 Geomerchant 途徑手動輸入此類服務的名稱。

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

string

必要欄位。categoryIdserviceTypeId 應與 Category 訊息中提供的可能組合相符。

label

object (Label)

必要欄位。項目的語言標記標籤。項目名稱的建議長度上限為 140 個半形字元,說明的長度則不超過 250 個半形字元。只有在輸入內容為自訂服務項目時,才需要設定這個欄位。標準化服務類型應透過 serviceTypeId 更新。