TransactionDecisionValue

Next Id: 6 Returned to the app as output for actions.intent.TRANSACTION_DECISION.

JSON representation
{
  "checkResult": {
    object(TransactionRequirementsCheckResult)
  },
  "userDecision": enum(TransactionUserDecision),
  "order": {
    object(Order)
  },
  "deliveryAddress": {
    object(Location)
  },
}
Fields
checkResult

object(TransactionRequirementsCheckResult)

If checkResult is NOT ResultType.OK, the rest of the fields in this message should be ignored.

userDecision

enum(TransactionUserDecision)

User decision regarding the proposed order

order

object(Order)

The order that user has approved. This field will be present only when userDecision 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 userDecision is DELIVERY_ADDRESS_UPDATED.

TransactionRequirementsCheckResult

Returned to the app as output for actions.intent.TRANSACTION_REQUIREMENTS_CHECK.

JSON representation
{
  "resultType": enum(ResultType),
}
Fields
resultType

enum(ResultType)

Result of the operation.

Order

Confirmed order with payment details, if requested. Sent to agent.

JSON representation
{
  "finalOrder": {
    object(ProposedOrder)
  },
  "googleOrderId": string,
  "orderDate": string,
  "paymentInfo": {
    object(PaymentInfo)
  },
  "actionOrderId": string,
  "customerInfo": {
    object(CustomerInfo)
  },
}
Fields
finalOrder

object(ProposedOrder)

Reflect back the proposed order that caused the order.

googleOrderId

string

Order id assigned by Google.

orderDate

string (Timestamp format)

Date and time the order was created.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

paymentInfo

object(PaymentInfo)

Payment related info for the order.

actionOrderId

string

User-visible order id. Must be set on the initial synchronous OrderUpdate/confirmation.

customerInfo

object(CustomerInfo)

If requested, customer info e.g. email will be passed back to the app.

PaymentInfo

Payment related info for an order.

JSON representation
{
  "paymentType": enum(PaymentType),
  "displayName": string,
  "googleProvidedPaymentInstrument": {
    object(GoogleProvidedPaymentInstrument)
  },
}
Fields
paymentType

enum(PaymentType)

Type of payment. Required.

displayName

string

Name of the instrument displayed on the receipt.

googleProvidedPaymentInstrument

object(GoogleProvidedPaymentInstrument)

Google provided payment instrument.

GoogleProvidedPaymentInstrument

Google provided payment instrument.

JSON representation
{
  "instrumentToken": string,
}
Fields
instrumentToken

string (bytes format)

Google provided payment instrument.

A base64-encoded string.

CustomerInfo

Information about customer.

JSON representation
{
  "email": string,
}
Fields
email

string

Customer email will be included and returned to the app if CustomerInfoProperty.EMAIL specified in CustomerInfoOptions.