OrderOptions
किसी ऑर्डर से जुड़े विकल्प.
JSON के काेड में दिखाना |
{
"requestDeliveryAddress": boolean,
"userInfoOptions": {
object (UserInfoOptions )
}
} |
फ़ील्ड |
requestDeliveryAddress |
boolean
अगर सही है, तो इससे जुड़े ऑर्डर के लिए, डिलीवरी का पता डालना ज़रूरी है.
|
userInfoOptions |
object (UserInfoOptions )
इस फ़ील्ड को सेट करके ऐप्लिकेशन, उपयोगकर्ताओं की जानकारी पाने का अनुरोध कर सकता है. अगर सेट हो जाता है, तो उपयोगकर्ता की पुष्टि के लिए संबंधित फ़ील्ड प्रस्तावितOrdercard में दिखेगा.
|
UserInfoOptions
उपयोगकर्ता की जानकारी से जुड़े विकल्प.
फ़ील्ड |
userInfoProperties[] |
enum (UserInfoProperty )
उपयोगकर्ता जानकारी प्रॉपर्टी की सूची.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]