Transactions API のサポートは 2023 年 6 月 13 日に終了します。2023 年 5 月 3 日に終了します。詳細については、
会話型アクションの廃止をご覧ください。
OrderOptions
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
JSON 表現 |
{
"requestDeliveryAddress": boolean,
"userInfoOptions": {
object (UserInfoOptions )
}
} |
フィールド |
requestDeliveryAddress |
boolean
true の場合、関連する注文に配送先住所が必要です。
|
userInfoOptions |
object (UserInfoOptions )
アプリは、このフィールドを設定することでユーザー情報をリクエストできます。設定すると、ユーザーによる確認のために、対応するフィールドが ProposedOrderCard に表示されます。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eOrderOptions allows specifying if a delivery address is required and what user information to request.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003erequestDeliveryAddress\u003c/code\u003e is a boolean indicating if the order needs a delivery address.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003euserInfoOptions\u003c/code\u003e enables requesting specific user information, like email or phone number, for the order.\u003c/p\u003e\n"],["\u003cp\u003eThis information is displayed in the ProposedOrderCard for user confirmation.\u003c/p\u003e\n"]]],["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"],null,["# OrderOptions\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [UserInfoOptions](#UserInfoOptions)\n - [JSON representation](#UserInfoOptions.SCHEMA_REPRESENTATION)\n\nOptions associated with an order.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"requestDeliveryAddress\": boolean, \"userInfoOptions\": { object (/assistant/df-asdk/transactions/reference/physical/rest/v3/OrderOptions#UserInfoOptions) } } ``` |\n\n| Fields ||\n|--------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestDeliveryAddress` | `boolean` If true, delivery address is required for the associated order. |\n| `userInfoOptions` | `object (`[UserInfoOptions](/assistant/df-asdk/transactions/reference/physical/rest/v3/OrderOptions#UserInfoOptions)`)` The app can request user info by setting this field. If set, the corresponding field will show up in ProposedOrderCard for user's confirmation. |\n\nUserInfoOptions\n---------------\n\nOptions regarding user info.\n\n| JSON representation ||\n|--------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"userInfoProperties\": [ enum (/assistant/df-asdk/transactions/reference/physical/rest/v3/UserInfoProperty) ] } ``` |\n\n| Fields ||\n|------------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| `userInfoProperties[]` | `enum (`[UserInfoProperty](/assistant/df-asdk/transactions/reference/physical/rest/v3/UserInfoProperty)`)` List of user info properties. |"]]