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

Deprecated: Use V3 Proto instead. 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

Required: Merchant assigned internal order id. This id must be unique, and is required for subsequent order update operations. This id may be set to the provided googleOrderId, or any other unique value. Note that the id presented to users is the userVisibleOrderId, which may be a different, more user-friendly value.

customerInfo

object (CustomerInfo)

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

PaymentInfo

Deprecated: Use V3 Proto instead. 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,
  "billingAddress": {
    object (PostalAddress)
  }
}
Fields
instrumentToken

string (bytes format)

Google provided payment instrument.

A base64-encoded string.

billingAddress

object (PostalAddress)

If requested by integrator, billing address for the instrument in use will be included.

CustomerInfo

Deprecated: Use V3 Proto instead. 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.