- JSON 表示法
- TransactionRequirementsCheckResult
- 訂單
- PaymentInfo
- GoogleProvidedPaymentInstrument
- CustomerInfo
下一個 ID:6 傳回應用程式做為 actions.intent.TRANSACTION_DECISION
的輸出內容。
JSON 表示法 | |
---|---|
{ "checkResult": { object ( |
欄位 | |
---|---|
checkResult |
如果 |
userDecision |
使用者有關提議訂單的決定。 |
order |
使用者已核准的訂單。只有在 |
deliveryAddress |
如果使用者要求更新寄送地址,這個欄位就會提供新的寄送地址。只有在 |
TransactionRequirementsCheckResult
返回應用程式,做為 actions.intent.TRANSACTION_REQUIREMENTS_CHECK
的輸出內容。
JSON 表示法 | |
---|---|
{
"resultType": enum ( |
欄位 | |
---|---|
resultType |
作業結果。 |
訂單
已淘汰:請改用 V3 Proto。已確認含有付款資料 (如有要求) 的訂單。已傳送給服務專員。
JSON 表示法 | |
---|---|
{ "finalOrder": { object ( |
欄位 | |
---|---|
finalOrder |
退回導致訂單的提議訂單。 |
googleOrderId |
Google 指定的訂單 ID。 |
orderDate |
建立訂單的日期和時間。 RFC3339 世界標準時間「Zulu」格式的時間戳記,精確度達奈秒單位。範例: |
paymentInfo |
訂單的付款相關資訊。 |
actionOrderId |
必填:商家指定的內部訂單 ID。此 ID 不得重複,而且是後續訂單更新作業的必要項目。這個 ID 可設為提供的 googleOrderId 或任何其他不重複的值。請注意,向使用者顯示的 ID 是 userVisibleOrderId,可能會是另一個更易用的值。 |
customerInfo |
如有要求,請提供客戶資訊,例如即可將電子郵件傳回應用程式。 |
PaymentInfo
已淘汰:請改用 V3 Proto。訂單的付款相關資訊。
JSON 表示法 | |
---|---|
{ "paymentType": enum ( |
欄位 | |
---|---|
paymentType |
付款方式。必填。 |
displayName |
收據上所顯示付款方式的名稱。 |
googleProvidedPaymentInstrument |
Google 提供的付款方式。 |
GoogleProvidedPaymentInstrument
Google 提供的付款方式。
JSON 表示法 | |
---|---|
{
"instrumentToken": string,
"billingAddress": {
object ( |
欄位 | |
---|---|
instrumentToken |
Google 提供的付款方式。 Base64 編碼字串。 |
billingAddress |
如果整合商提出要求,我們會提供使用中的付款方式的帳單地址。 |
CustomerInfo
已淘汰:請改用 V3 Proto。客戶的相關資訊。
JSON 表示法 | |
---|---|
{ "email": string } |
欄位 | |
---|---|
email |
若您在 CustomerInfoOptions 中指定 CustomerInfoProperty.EMAIL,該客戶電子郵件將依規定傳回應用程式。 |