Transaction API 将于 2023 年 5 月 3 日弃用,在此之前,会话操作将于 2023 年 6 月 13 日停用。如需了解详情,请参阅
对话型 Action 停用。
OrderOptions
JSON 表示法 |
{
"requestDeliveryAddress": boolean,
"userInfoOptions": {
object (UserInfoOptions )
}
} |
字段 |
requestDeliveryAddress |
boolean
如果为 true,则必须为关联订单指定配送地址。
|
userInfoOptions |
object (UserInfoOptions )
应用可以通过设置此字段来请求用户信息。设置后,相应字段将显示在 ProposedOrderCard 中,以供用户确认。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-29。
[null,null,["最后更新时间 (UTC):2024-08-29。"],[[["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"]]