- 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,將會包含並傳回應用程式。 |