TransactionDecisionValue

  • Returned as output for the actions.intent.TRANSACTION_DECISION action.

  • Represents the user's decision on a transaction, which can be to accept the order, update the delivery address, or another decision defined by TransactionDecision.

  • If the user accepts the order (transactionDecision is ORDER_ACCEPTED), the JSON response includes the order object.

  • If the user updates the delivery address (transactionDecision is DELIVERY_ADDRESS_UPDATED), the JSON response includes the deliveryAddress object.

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.