API Giao dịch sẽ ngừng hoạt động từ ngày 3 tháng 5 năm 2023, trước khi hành động trò chuyện ngừng hoạt động từ ngày 13 tháng 6 năm 2023. Để biết thêm thông tin, hãy xem phần
Hành động trò chuyện ngừng hoạt động.
OrderOptions
Các lựa chọn liên kết với đơn đặt hàng.
Biểu diễn dưới dạng JSON |
{
"requestDeliveryAddress": boolean,
"userInfoOptions": {
object (UserInfoOptions )
}
} |
Trường |
requestDeliveryAddress |
boolean
Nếu đúng, bạn phải cung cấp địa chỉ giao hàng cho đơn đặt hàng liên quan.
|
userInfoOptions |
object (UserInfoOptions )
Ứng dụng có thể yêu cầu cung cấp thông tin người dùng bằng cách thiết lập trường này. Nếu được đặt, trường tương ứng sẽ xuất hiện trong SuggesteddOrderCard để người dùng xác nhận.
|
UserInfoOptions
Các lựa chọn về thông tin người dùng.
Trường |
userInfoProperties[] |
enum (UserInfoProperty )
Danh sách thuộc tính thông tin người dùng.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-08-29 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]