TransactionDecisionValueSpec

  • TransactionDecisionValueSpec is passed from the app as input for actions.intent.TRANSACTION_DECISION and includes details like proposed order, order options, payment options, and presentation options.

  • The proposedOrder field represents the order ready for user approval.

  • The orderOptions field contains options associated with the order.

  • The paymentOptions field specifies payment options, or is empty if no payment is needed.

  • The presentationOptions field, although deprecated, allows customization of how the order is presented to the user, including the call to action verb.

Passed from the app as input for actions.intent.TRANSACTION_DECISION.

JSON representation
{
  "proposedOrder": {
    object (ProposedOrder)
  },
  "orderOptions": {
    object (OrderOptions)
  },
  "paymentOptions": {
    object (PaymentOptions)
  },
  "presentationOptions": {
    object (PresentationOptions)
  }
}
Fields
proposedOrder

object (ProposedOrder)

The proposed order that's ready for user to approve.

orderOptions

object (OrderOptions)

Options associated with the order.

paymentOptions

object (PaymentOptions)

Payment options for this order, or empty if no payment is associated with the order.

presentationOptions

object (PresentationOptions)

Options used to customize order presentation to the user.

PresentationOptions

Deprecated: Use V3 Proto instead. Options used to customize the order presentation to the user.

JSON representation
{
  "callToAction": string
}
Fields
callToAction

string

callToAction can be one of the following values:

PLACE_ORDER: Used for placing an order. PAY: Used for a payment. BUY: Used for a purchase. SEND: Used for a money transfer. BOOK: Used for a booking. RESERVE: Used for reservation. SCHEDULE: Used for scheduling an appointment. SUBSCRIBE: Used for subscription.

callToAction refers to the action verb which best describes this order. This will be used in various places like prompt, suggestion chip etc while proposing the order to the user.