交易 API 將於 2023 年 5 月 3 日淘汰,並將於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
TransactionDecisionValue
返回動作,做為 actions.intent.TRANSACTION_DECISION
的輸出內容。
JSON 表示法 |
{
"transactionDecision": enum (TransactionDecision ),
// Union field value can be only one of the following:
"order": {
object (Order )
},
"deliveryAddress": {
object (Location )
}
// End of list of possible types for union field value .
} |
欄位 |
transactionDecision |
enum (TransactionDecision )
關於訂單的決定。
|
聯集欄位 value 。 value 只能採用下列其中一種設定:
|
order |
object (Order )
使用者已核准的訂單。只有在 transactionDecision 為 ORDER_ACCEPTED 時,才會顯示這個欄位。
|
deliveryAddress |
object (Location )
如果使用者要求更新寄送地址,這個欄位就會提供新的寄送地址。只有在 transactionDecision 為 DELIVERY_ADDRESS_UPDATED 時,才會顯示這個欄位。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-12 (世界標準時間)。
[null,null,["上次更新時間:2024-09-12 (世界標準時間)。"],[[["JSON is returned as output for `actions.intent.TRANSACTION_DECISION`."],["It contains the `transactionDecision` field indicating the decision (e.g., order acceptance, delivery address update)."],["Depending on the `transactionDecision`, it might include `order` or `deliveryAddress` details."],["`order` is present when the transaction decision is `ORDER_ACCEPTED` and contains the approved order details."],["`deliveryAddress` is included when the transaction decision is `DELIVERY_ADDRESS_UPDATED` and contains the updated delivery address."]]],[]]