REST Resource: projects.locations.brands.stores

資源:商店

品牌的個別商店。

JSON 表示法
{
  "name": string,
  "createTime": string,
  "updateTime": string,
  "status": {
    object (StoreStatus)
  },
  "timeZone": {
    object (TimeZone)
  },
  "storeMetadata": {
    object (StoreMetadata)
  },
  "tags": [
    string
  ]
}
欄位
name

string

ID。商店名稱。格式:projects/{project}/locations/{location}/brands/{brand}/stores/{store}

createTime

string (Timestamp format)

僅供輸出。商店的建立時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"

updateTime

string (Timestamp format)

僅供輸出。這間商店上次更新的時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"

status

object (StoreStatus)

這是必要旗標,商店狀態。

timeZone

object (TimeZone)

這是必要旗標,商店的時區。系統會根據這項資訊,判斷特定時間的商店應使用哪個菜單時段,以及任何以時間為準的覆寫。

storeMetadata

object (StoreMetadata)

選用。儲存庫的中繼資料。

tags[]

string

選用。與商店相關聯的標記。

StoreStatus

商店狀態。

JSON 表示法
{
  "state": enum (State)
}
欄位
state

enum (State)

選用。商店的狀態。

狀態

商店狀態。

列舉
STATE_UNSPECIFIED 商店處於未指定狀態。
ACTIVE 商店有效。
DISABLED 商店已停用。

StoreMetadata

儲存庫的中繼資料。

JSON 表示法
{
  "displayName": string,
  "contactEmail": string,
  "address": {
    object (Address)
  },
  "storeHours": [
    {
      object (StoreHours)
    }
  ],
  "dayparts": [
    {
      object (Daypart)
    }
  ],
  "phoneNumber": string
}
欄位
displayName

string

選用。商店的顯示名稱,會用於 UI 和面向消費者的元素。

contactEmail

string

選用。提供給顧客的商店電子郵件地址。

address

object (Address)

選用。商店的地址資訊。

storeHours[]

object (StoreHours)

選用。商店的營業時間。

dayparts[]

object (Daypart)

選用。商店定義的時段。

phoneNumber

string

選用。商店的主要電話號碼,可用於下單、詢問外燴、一般諮詢和預訂。

地址

商店的地址資訊。

JSON 表示法
{
  "streetAddress": string,
  "city": string,
  "state": string,
  "country": string,
  "postalCode": string,
  "latitude": number,
  "longitude": number,
  "googleMapsUrl": string
}
欄位
streetAddress

string

選用。商店的街道地址。

city

string

選用。商店所在的城市。

state

string

選用。商店的狀態。

country

string

選用。商店所在的國家/地區。

postalCode

string

選用。商店的郵遞區號。

latitude

number

選用。商店的緯度。

longitude

number

選用。商店的經度。

googleMapsUrl

string

選用。商店的 Google 地圖網址。

StoreHours

商店的營業時間。

JSON 表示法
{
  "fulfillmentMethod": enum (FulfillmentMethod),
  "schedules": [
    {
      object (Schedule)
    }
  ]
}
欄位
fulfillmentMethod

enum (FulfillmentMethod)

選用。商店營業時間的運送方式,例如「PICKUP」、「DELIVERY」等。如未指定,系統會假設商店營業時間適用於所有運送方式。

schedules[]

object (Schedule)

選用。指定 fulfillmentMethod 的商店營業時間。

時段

商店的時段。

JSON 表示法
{
  "id": string,
  "schedules": [
    {
      object (Schedule)
    }
  ],
  "displayName": string
}
欄位
id

string

選用。例如「BREAKFAST」、「LUNCH」等。

schedules[]

object (Schedule)

選用。一天中不同時段的活躍時數。

displayName

string

選用。指定這個時段的選填顯示名稱。

方法

batchDelete

批次刪除商店。

batchUpdate

批次更新商店。

create

建立商店。

delete

刪除指定商店。

get

取得商店。

list

列出商店。

patch

更新指定的商店。