Transactions API در 3 مه 2023 منسوخ خواهد شد، قبل از غروب کنشهای مکالمه در 13 ژوئن 2023. برای اطلاعات بیشتر،
غروب کنشهای مکالمه را ببینید.
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 باشد. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-12 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-12 بهوقت ساعت هماهنگ جهانی."],[[["Returned as output for the `actions.intent.TRANSACTION_DECISION` action."],["Represents the user's decision on a transaction, which can be to accept the order, update the delivery address, or another decision defined by `TransactionDecision`."],["If the user accepts the order (`transactionDecision` is `ORDER_ACCEPTED`), the JSON response includes the `order` object."],["If the user updates the delivery address (`transactionDecision` is `DELIVERY_ADDRESS_UPDATED`), the JSON response includes the `deliveryAddress` object."]]],[]]