3 maja 2023 roku wycofamy interfejs Transakcje (przed 13 czerwca 2023 r. wycofujemy funkcje Conversational Actions). Więcej informacji znajdziesz w artykule
Wycofanie czynności konwersacyjnych.
OrderOptions
Opcje powiązane z zamówieniem.
Zapis JSON |
{
"requestDeliveryAddress": boolean,
"userInfoOptions": {
object (UserInfoOptions )
}
} |
Pola |
requestDeliveryAddress |
boolean
Jeśli wybrano opcję true, adres dostawy jest wymagany w przypadku powiązanego zamówienia.
|
userInfoOptions |
object (UserInfoOptions )
Aplikacja może prosić o informacje o użytkowniku przez ustawienie tego pola. Jeśli zasada jest skonfigurowana, na karcie ProposedOrderCard dla potwierdzenia użytkownika pojawi się odpowiednie pole.
|
UserInfoOptions
Opcje dotyczące informacji o użytkowniku.
Pola |
userInfoProperties[] |
enum (UserInfoProperty )
Lista właściwości informacji o użytkowniku.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-29 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-29 UTC."],[[["OrderOptions allows specifying if a delivery address is required and provides options for requesting user information."],["`requestDeliveryAddress` is a boolean indicating whether the order requires a delivery address."],["`userInfoOptions` enables the app to request specific user information, such as name, email, or phone number, which will be displayed for confirmation in the ProposedOrderCard."],["`userInfoProperties` is a list of user info properties that the app can request, including options like given name, family name, email, and phone number."]]],["The document defines order options using JSON. It allows specifying whether a delivery address is required (`requestDeliveryAddress`), represented by a boolean. It also defines `userInfoOptions`, an object enabling apps to request user information. `userInfoOptions` uses `userInfoProperties`, an array of enumerated user info properties, for the specific details to be requested. If set, these fields appear in the ProposedOrderCard for user confirmation. The provided data structure and its types are detailed in associated tables.\n"]]