交易 API 將於 2023 年 5 月 3 日淘汰,並將於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
TransactionDecisionValueSpec
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
TransactionDecisionValueSpec 會做為 actions.intent.TRANSACTION_DECISION
意圖動作的輸入內容傳遞。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]