OrderOptions
ตัวเลือกที่เชื่อมโยงกับคำสั่งซื้อ
การแสดง JSON |
{
"requestDeliveryAddress": boolean,
"userInfoOptions": {
object (UserInfoOptions )
}
} |
ช่อง |
requestDeliveryAddress |
boolean
หากจริง ต้องระบุที่อยู่สำหรับจัดส่งสำหรับคำสั่งซื้อที่เกี่ยวข้อง
|
userInfoOptions |
object (UserInfoOptions )
แอปสามารถขอข้อมูลผู้ใช้ได้โดยการตั้งค่าช่องนี้ หากมีการตั้งค่า ช่องที่เกี่ยวข้องจะแสดงใน ProposedOrderCard สำหรับการยืนยันจากผู้ใช้
|
UserInfoOptions
ตัวเลือกเกี่ยวกับข้อมูลผู้ใช้
ช่อง |
userInfoProperties[] |
enum (UserInfoProperty )
รายการพร็อพเพอร์ตี้ข้อมูลผู้ใช้
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-29 UTC
[null,null,["อัปเดตล่าสุด 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"]]