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-10-14 UTC
[null,null,["อัปเดตล่าสุด 2024-10-14 UTC"],[[["OrderOptions allows specifying if a delivery address is required and what user information to request."],["`requestDeliveryAddress` is a boolean indicating if the order needs a delivery address."],["`userInfoOptions` enables requesting specific user information, like email or phone number, for the order."],["This information is displayed in the ProposedOrderCard for user confirmation."]]],["The provided content outlines the structure for defining order options and user information requests. `requestDeliveryAddress` (boolean) determines if a delivery address is mandatory for an order. `userInfoOptions` (object) allows apps to request user data; if set, these fields appear in the ProposedOrderCard. `userInfoOptions` contains `userInfoProperties`, which lists the specific user information properties being requested as an array of enum. Each element can be a field of the `UserInfoProperty`.\n"]]