交易 API 將於 2023 年 5 月 3 日淘汰,並將於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
OrderOptions
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
"requestDeliveryAddress": boolean,
"userInfoOptions": {
object (UserInfoOptions )
}
} |
欄位 |
requestDeliveryAddress |
boolean
如果為 true,就必須提供相關訂單的寄送地址。
|
userInfoOptions |
object (UserInfoOptions )
應用程式可以設定這個欄位來要求使用者資訊。設定後,相應的欄位會顯示在 ProposedOrderCard 中,以便使用者確認。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[],["The document defines order options using JSON. It allows specifying whether a delivery address is required (`requestDeliveryAddress`), represented by a boolean. It also defines `userInfoOptions`, an object enabling apps to request user information. `userInfoOptions` uses `userInfoProperties`, an array of enumerated user info properties, for the specific details to be requested. If set, these fields appear in the ProposedOrderCard for user confirmation. The provided data structure and its types are detailed in associated tables.\n"],null,[]]