LocalInventory

商品的本地商品目录信息。表示 storeCode 指定的商店中特定商品的店内信息。如需查看所有接受的属性值的列表,请参阅本地商品目录数据规范

JSON 表示法
{
  "name": string,
  "account": string,
  "storeCode": string,
  "price": {
    object (Price)
  },
  "salePrice": {
    object (Price)
  },
  "salePriceEffectiveDate": {
    object (Interval)
  },
  "customAttributes": [
    {
      object (CustomAttribute)
    }
  ],
  "availability": string,
  "quantity": string,
  "pickupMethod": string,
  "pickupSla": string,
  "instoreProductLocation": string
}
字段
name

string

仅限输出。LocalInventory 资源的名称。格式:accounts/{account}/products/{product}/localInventories/{storeCode}

account

string (int64 format)

仅限输出。拥有该产品的帐号。如果客户端设置了此字段,则将忽略此字段。

storeCode

string

必需。不可变。销售商品所在实体店的商店代码(商家资料中的商店 ID)。有关详情,请参阅本地商品目录数据规范

price

object (Price)

此商店的商品价格。

salePrice

object (Price)

此商店的商品促销价。如果已定义 salePriceEffectiveDate,则必须提供此值。

salePriceEffectiveDate

object (Interval)

此商店促销的 TimePeriod

customAttributes[]

object (CustomAttribute)

自定义(商家提供的)属性列表。您也可以使用 CustomAttribute 以通用形式提交数据规范的任何属性。

availability

string

此商店的商品库存状况。如需了解可接受的属性值,请参阅本地商品目录数据规范

quantity

string (int64 format)

此商店所售商品的数量。必须大于或等于零。

pickupMethod

string

此商品支持的提货方法。除非值为 "not supported",否则此字段必须与 pickupSla 一起提交。如需了解可接受的属性值,请参阅本地商品目录数据规范

pickupSla

string

从这家商店下单到可以自提商品的订单日期(从下单日期算起)的相对时间段。必须通过 pickupMethod 提交。如需了解可接受的属性值,请参阅本地商品目录数据规范

instoreProductLocation

string

商品在商店中的位置。长度上限为 20 个字节。