ב-3 במאי 2023 נוציא משימוש את Transactions API, לפני ההוצאה משימוש של Conversations Actions ב-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 ודוגמאות הקוד הן ברישיון 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."]]],[]]