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 个字节。