OrderOptions
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
已弃用:请改用 V3 Proto。与订单相关联的选项。
JSON 表示法 |
{
"requestDeliveryAddress": boolean,
"customerInfoOptions": {
object (CustomerInfoOptions )
}
} |
字段 |
requestDeliveryAddress |
boolean
如果为 true,则必须为关联订单指定配送地址。
|
customerInfoOptions |
object (CustomerInfoOptions )
应用可以通过设置此字段来请求客户信息。设置后,相应字段将显示在 ProposedOrderCard 中,以供用户确认。
|
CustomerInfoOptions
已弃用:请改用 V3 Proto。与客户信息相关的选项。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-28。
[null,null,["最后更新时间 (UTC):2025-07-28。"],[[["\u003cp\u003eOrderOptions allows specifying if a delivery address is required and enables requesting specific customer information.\u003c/p\u003e\n"],["\u003cp\u003eThis item is deprecated and developers should use V3 Proto instead.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003erequestDeliveryAddress\u003c/code\u003e is a boolean indicating if a delivery address is needed for the order.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ecustomerInfoOptions\u003c/code\u003e enables requesting customer information, prompting user confirmation via the ProposedOrderCard.\u003c/p\u003e\n"],["\u003cp\u003eCustomerInfoOptions defines the customer information properties to be requested, such as email or phone number.\u003c/p\u003e\n"]]],[],null,["# OrderOptions\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [CustomerInfoOptions](#CustomerInfoOptions)\n - [JSON representation](#CustomerInfoOptions.SCHEMA_REPRESENTATION)\n\n| This item is deprecated!\nDeprecated: Use V3 Proto instead. Options associated with an order.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"requestDeliveryAddress\": boolean, \"customerInfoOptions\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/OrderOptions#CustomerInfoOptions) } } ``` |\n\n| Fields ||\n|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestDeliveryAddress` | `boolean` If true, delivery address is required for the associated Order. |\n| `customerInfoOptions` | `object (`[CustomerInfoOptions](/assistant/df-asdk/reference/webhook/rest/Shared.Types/OrderOptions#CustomerInfoOptions)`)` The app can request customer info by setting this field. If set, the corresponding field will show up in ProposedOrderCard for user's confirmation. |\n\nCustomerInfoOptions\n-------------------\n\n| This item is deprecated!\nDeprecated: Use V3 Proto instead. Options regarding customer info.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"customerInfoProperties\": [ enum (/assistant/df-asdk/reference/webhook/rest/Shared.Types/CustomerInfoProperty) ] } ``` |\n\n| Fields ||\n|----------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| `customerInfoProperties[]` | `enum (`[CustomerInfoProperty](/assistant/df-asdk/reference/webhook/rest/Shared.Types/CustomerInfoProperty)`)` List of customer info properties. |"]]