TransactionDecisionValue
ย้อนกลับไปยังการดำเนินการเป็นเอาต์พุตสำหรับ actions.intent.TRANSACTION_DECISION
แล้ว
การแสดง JSON |
{
"transactionDecision": enum (TransactionDecision ),
// Union field value can be only one of the following:
"order": {
object (Order )
},
"deliveryAddress": {
object (Location )
}
// End of list of possible types for union field value .
} |
ช่อง |
transactionDecision |
enum (TransactionDecision )
คำตัดสินเกี่ยวกับคำสั่งซื้อ
|
ช่องการรวม value value ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้
|
order |
object (Order )
คำสั่งซื้อที่ผู้ใช้อนุมัติ ช่องนี้จะปรากฏเฉพาะเมื่อ transactionDecision คือ ORDER_ACCEPTED
|
deliveryAddress |
object (Location )
หากผู้ใช้ส่งคำขอให้อัปเดตที่อยู่สำหรับจัดส่ง ช่องนี้จะมีที่อยู่สำหรับจัดส่งใหม่ด้วย ช่องนี้จะปรากฏเฉพาะเมื่อ transactionDecision คือ DELIVERY_ADDRESS_UPDATED
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-12 UTC
[null,null,["อัปเดตล่าสุด 2024-09-12 UTC"],[[["JSON is returned as output for `actions.intent.TRANSACTION_DECISION`."],["It contains the `transactionDecision` field indicating the decision (e.g., order acceptance, delivery address update)."],["Depending on the `transactionDecision`, it might include `order` or `deliveryAddress` details."],["`order` is present when the transaction decision is `ORDER_ACCEPTED` and contains the approved order details."],["`deliveryAddress` is included when the transaction decision is `DELIVERY_ADDRESS_UPDATED` and contains the updated delivery address."]]],[]]