Transaction API 将于 2023 年 5 月 3 日弃用,在此之前,会话操作将于 2023 年 6 月 13 日停用。如需了解详情,请参阅
对话型 Action 停用。
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 时,此字段才会显示。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eReturned as output for the \u003ccode\u003eactions.intent.TRANSACTION_DECISION\u003c/code\u003e action.\u003c/p\u003e\n"],["\u003cp\u003eRepresents the user's decision on a transaction, which can be to accept the order, update the delivery address, or another decision defined by \u003ccode\u003eTransactionDecision\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIf the user accepts the order (\u003ccode\u003etransactionDecision\u003c/code\u003e is \u003ccode\u003eORDER_ACCEPTED\u003c/code\u003e), the JSON response includes the \u003ccode\u003eorder\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eIf the user updates the delivery address (\u003ccode\u003etransactionDecision\u003c/code\u003e is \u003ccode\u003eDELIVERY_ADDRESS_UPDATED\u003c/code\u003e), the JSON response includes the \u003ccode\u003edeliveryAddress\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# TransactionDecisionValue\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nReturned to the action as output for `actions.intent.TRANSACTION_DECISION`.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"transactionDecision\": enum (/assistant/df-asdk/transactions/reference/physical/rest/v3/TransactionDecision), // Union field `value` can be only one of the following: \"order\": { object (/assistant/df-asdk/transactions/reference/physical/rest/v3/Order) }, \"deliveryAddress\": { object (/assistant/df-asdk/transactions/reference/physical/rest/v3/Order#Location) } // End of list of possible types for union field `value`. } ``` |\n\n| Fields ||\n|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| `transactionDecision` | `enum (`[TransactionDecision](/assistant/df-asdk/transactions/reference/physical/rest/v3/TransactionDecision)`)` Decision regarding the order. |\n| Union field `value`. `value` can be only one of the following: |||\n| `order` | `object (`[Order](/assistant/df-asdk/transactions/reference/physical/rest/v3/Order)`)` The order that user has approved. This field will be present only when `transactionDecision` is `ORDER_ACCEPTED`. |\n| `deliveryAddress` | `object (`[Location](/assistant/df-asdk/transactions/reference/physical/rest/v3/Order#Location)`)` If user requests for delivery address update, this field includes the new delivery address. This field will be present only when `transactionDecision` is `DELIVERY_ADDRESS_UPDATED`. |"]]