LineItemUpdate
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
已弃用:请改用 V3 Proto。对各个订单项进行更新。应至少指定 orderState
和 price
中的一个。
JSON 表示法 |
{
"orderState": {
object (OrderState )
},
"price": {
object (Price )
},
"reason": string,
"extension": {
"@type": string,
field1: ...,
...
}
} |
字段 |
orderState |
object (OrderState )
新的订单项级状态。
|
price |
object (Price )
订单项的新价格。
|
reason |
string
更改原因。价格变动时必填。
|
extension |
object
更新了订单项附加信息。type 必须与商品的现有附加信息类型一致。 此对象可以包含任意类型的字段。附加字段 "@type" 包含用于标示相应类型的 URI。示例:{ "id": 1234, "@type": "types.example.com/standard/id" } 。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis JSON representation is deprecated and recommends using V3 Proto instead.\u003c/p\u003e\n"],["\u003cp\u003eIt describes updates for individual line items, requiring either \u003ccode\u003eorderState\u003c/code\u003e or \u003ccode\u003eprice\u003c/code\u003e to be specified.\u003c/p\u003e\n"],["\u003cp\u003eThe representation includes fields for new line item state (\u003ccode\u003eorderState\u003c/code\u003e), price (\u003ccode\u003eprice\u003c/code\u003e), reason for change (\u003ccode\u003ereason\u003c/code\u003e), and extension updates (\u003ccode\u003eextension\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ereason\u003c/code\u003e is mandatory when updating the price of a line item.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eextension\u003c/code\u003e allows updating the existing extension with new values while maintaining the original extension type.\u003c/p\u003e\n"]]],[],null,["# LineItemUpdate\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\n| This item is deprecated!\nDeprecated: Use V3 Proto instead. Updates for individual line items. At least one of `orderState` or `price` should be specified.\n\n| JSON representation ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"orderState\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/OrderState) }, \"price\": { object (/assistant/df-asdk/reference/webhook/rest/Shared.Types/Price) }, \"reason\": string, \"extension\": { \"@type\": string, field1: ..., ... } } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `orderState` | `object (`[OrderState](/assistant/df-asdk/reference/webhook/rest/Shared.Types/OrderState)`)` New line item-level state. |\n| `price` | `object (`[Price](/assistant/df-asdk/reference/webhook/rest/Shared.Types/Price)`)` New price for the line item. |\n| `reason` | `string` Reason for the change. Required for price changes. |\n| `extension` | `object` Update to the line item extension. type must match the item's existing extension type. An object containing fields of an arbitrary type. An additional field `\"@type\"` contains a URI identifying the type. Example: `{ \"id\": 1234, \"@type\": \"types.example.com/standard/id\" }`. |"]]