Transactions API will be deprecated on May 3, 2023, ahead of the Conversational Actions sunset on June 13, 2023. For more information, see
Conversational Actions sunset.
TransactionDecisionValue
Stay organized with collections
Save and categorize content based on your preferences.
Returned to the action as output for actions.intent.TRANSACTION_DECISION
.
JSON representation |
{
"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 .
} |
Fields |
transactionDecision |
enum (TransactionDecision )
Decision regarding the order.
|
Union field value . value can be only one of the following:
|
order |
object (Order )
The order that user has approved. This field will be present only when transactionDecision is ORDER_ACCEPTED .
|
deliveryAddress |
object (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 .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eJSON is returned as output for \u003ccode\u003eactions.intent.TRANSACTION_DECISION\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt contains the \u003ccode\u003etransactionDecision\u003c/code\u003e field indicating the decision (e.g., order acceptance, delivery address update).\u003c/p\u003e\n"],["\u003cp\u003eDepending on the \u003ccode\u003etransactionDecision\u003c/code\u003e, it might include \u003ccode\u003eorder\u003c/code\u003e or \u003ccode\u003edeliveryAddress\u003c/code\u003e details.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eorder\u003c/code\u003e is present when the transaction decision is \u003ccode\u003eORDER_ACCEPTED\u003c/code\u003e and contains the approved order details.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edeliveryAddress\u003c/code\u003e is included when the transaction decision is \u003ccode\u003eDELIVERY_ADDRESS_UPDATED\u003c/code\u003e and contains the updated delivery address.\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/transactions/reference/physical/rest/v3/TransactionDecision), // Union field `value` can be only one of the following: \"order\": { object (/assistant/transactions/reference/physical/rest/v3/Order) }, \"deliveryAddress\": { object (/assistant/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/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/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/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`. |"]]