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-04 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-04 بهوقت ساعت هماهنگ جهانی."],[[["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."]]],[]]