Transaction API 将于 2023 年 5 月 3 日弃用,在此之前,会话操作将于 2023 年 6 月 13 日停用。如需了解详情,请参阅
对话型 Action 停用。
TransactionDecision
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
枚举 |
TRANSACTION_DECISION_UNSPECIFIED |
未指定决定。 |
USER_CANNOT_TRANSACT |
用户不符合执行此交易的条件。 |
ORDER_ACCEPTED |
用户已接受订单。 |
ORDER_REJECTED |
用户拒绝了订单。 |
DELIVERY_ADDRESS_UPDATED |
用户更新配送地址(需要更新订单)。应用必须使用更新后的顺序调用 actions.intent.TRANSACTION_DECISION intent。 |
CART_CHANGE_REQUESTED |
用户要求更改购物车,例如“更改购物车”、“更改其他内容”。应用需要处理购物车更改与用户的互动,并在购物车发生更改后调用 actions.intent.TRANSACTION_DECISION intent。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis documentation outlines the possible decisions a user can make regarding an order within a transaction flow.\u003c/p\u003e\n"],["\u003cp\u003eThe decision options include unspecified, user ineligibility, order acceptance or rejection, delivery address updates, and cart change requests.\u003c/p\u003e\n"],["\u003cp\u003eEach decision enum is associated with a specific user action and requires corresponding handling by the application.\u003c/p\u003e\n"],["\u003cp\u003eFor delivery address updates and cart change requests, the application must call the \u003ccode\u003eactions.intent.TRANSACTION_DECISION\u003c/code\u003e intent with the updated information.\u003c/p\u003e\n"]]],["The document outlines possible decisions regarding an order, represented by enums. These include an unspecified decision, user ineligibility to transact, order acceptance or rejection. It also covers delivery address updates, requiring an update to the order via the `actions.intent.TRANSACTION_DECISION` intent. Furthermore, cart change requests necessitate handling cart interactions and subsequently calling the `actions.intent.TRANSACTION_DECISION` intent to reflect the changes.\n"],null,["# TransactionDecision\n\nPossible decisions regarding the order.\n\n| Enums ||\n|------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `TRANSACTION_DECISION_UNSPECIFIED` | Decision unspecified. |\n| `USER_CANNOT_TRANSACT` | User is not eligible to perform this transaction. |\n| `ORDER_ACCEPTED` | Order was accepted by user. |\n| `ORDER_REJECTED` | Order was rejected by user. |\n| `DELIVERY_ADDRESS_UPDATED` | User updates delivery address which requires order being updated. The app MUST call `actions.intent.TRANSACTION_DECISION` intent with the updated order. |\n| `CART_CHANGE_REQUESTED` | User asks for changing cart, e.g. \"change cart\", \"change something else\". The app needs to handle cart change interaction with user and call `actions.intent.TRANSACTION_DECISION` intent once the cart is changed. |"]]