Transaction API 将于 2023 年 5 月 3 日弃用,在此之前,会话操作将于 2023 年 6 月 13 日停用。如需了解详情,请参阅
对话型 Action 停用。
TransactionDecisionValueSpec
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
TransactionDecisionValueSpec 作为 actions.intent.TRANSACTION_DECISION
intent 操作的输入进行传递。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eTransactionDecisionValueSpec is used with the \u003ccode\u003eactions.intent.TRANSACTION_DECISION\u003c/code\u003e intent and provides information for users to approve transactions.\u003c/p\u003e\n"],["\u003cp\u003eIt includes details about the order (Order object), order options (OrderOptions object), payment parameters (PaymentParameters object), and presentation options (PresentationOptions object).\u003c/p\u003e\n"],["\u003cp\u003eEach object within TransactionDecisionValueSpec offers specific data for managing and displaying transaction information to the user.\u003c/p\u003e\n"]]],["The `TransactionDecisionValueSpec` is an input for the `actions.intent.TRANSACTION_DECISION` intent. It comprises four key objects: `order` (the order for user approval), `orderOptions` (related order options), `paymentParameters` (payment request details), and `presentationOptions` (customizing order display). Each object is a distinct component, with links provided to its specific definition. This structure enables the configuration of order, payment, and visual presentation aspects.\n"],null,["# TransactionDecisionValueSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nTransactionDecisionValueSpec is passed as input from the action for `actions.intent.TRANSACTION_DECISION` intent.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"order\": { object (/assistant/df-asdk/transactions/reference/physical/rest/v3/Order) }, \"orderOptions\": { object (/assistant/df-asdk/transactions/reference/physical/rest/v3/OrderOptions) }, \"paymentParameters\": { object (/assistant/df-asdk/transactions/reference/physical/rest/v3/PaymentParameters) }, \"presentationOptions\": { object (/assistant/df-asdk/transactions/reference/physical/rest/v3/PresentationOptions) } } ``` |\n\n| Fields ||\n|-----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `order` | `object (`[Order](/assistant/df-asdk/transactions/reference/physical/rest/v3/Order)`)` The order that's ready for user to approve. |\n| `orderOptions` | `object (`[OrderOptions](/assistant/df-asdk/transactions/reference/physical/rest/v3/OrderOptions)`)` Options associated with the order. |\n| `paymentParameters` | `object (`[PaymentParameters](/assistant/df-asdk/transactions/reference/physical/rest/v3/PaymentParameters)`)` Parameters for requesting payment for this order. |\n| `presentationOptions` | `object (`[PresentationOptions](/assistant/df-asdk/transactions/reference/physical/rest/v3/PresentationOptions)`)` Options used to customize order presentation to the user. |"]]