- 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 |
作業的結果。 |
訂購
已確認含有付款資料的訂單 (如有要求)。已傳送給服務專員。
JSON 表示法 | |
---|---|
{ "finalOrder": { object( |
欄位 | |
---|---|
finalOrder |
回想促成訂單的建議訂單。 |
googleOrderId |
Google 指派的訂單 ID。 |
orderDate |
訂單建立的日期和時間。 RFC3339 世界標準時間「Zulu」格式的時間戳記,精確度達奈秒單位,範例: |
paymentInfo |
訂單的付款相關資訊。 |
actionOrderId |
使用者可看見的訂單 ID。必須在初始同步 OrderUpdate/confirmation 上設定。 |
customerInfo |
應依要求將客戶資訊 (例如電子郵件) 傳回應用程式。 |
PaymentInfo
訂單的付款相關資訊。
JSON 表示法 | |
---|---|
{ "paymentType": enum( |
欄位 | |
---|---|
paymentType |
付款方式。這是必要項目。 |
displayName |
收據上顯示的付款方式名稱。 |
googleProvidedPaymentInstrument |
Google 提供的付款方式。 |
GoogleProvidedPaymentInstrument
Google 提供的付款方式。
JSON 表示法 | |
---|---|
{
"instrumentToken": string,
"billingAddress": {
object( |
欄位 | |
---|---|
instrumentToken |
Google 提供的付款方式。 Base64 編碼的字串。 |
billingAddress |
如果整合商的要求,當中將包含使用該付款方式的帳單地址。 |
CustomerInfo
客戶相關資訊。
JSON 表示法 | |
---|---|
{ "email": string } |
欄位 | |
---|---|
email |
若 CustomerInfoOptions 內指定 CustomerInfoProperty.EMAIL,將會包含並傳回應用程式。 |