Google Shopping Merchant Inventories V1beta Client - Class RegionalInventory (0.2.0)

Reference documentation and code samples for the Google Shopping Merchant Inventories V1beta Client class RegionalInventory.

Regional inventory information for the product. Represents specific information like price and availability for a given product in a specific region.

For a list of all accepted attribute values, see the regional product inventory feed specification.

Generated from protobuf message google.shopping.merchant.inventories.v1beta.RegionalInventory

Namespace

Google \ Shopping \ Merchant \ Inventories \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The name of the RegionalInventory resource. Format: {regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}

↳ account int|string

Output only. The account that owns the product. This field will be ignored if set by the client.

↳ region string

Required. ID of the region for this RegionalInventory resource. See the Regional availability and pricing for more details.

↳ price Google\Shopping\Type\Price

Price of the product in this region.

↳ sale_price Google\Shopping\Type\Price

Sale price of the product in this region. Mandatory if salePriceEffectiveDate is defined.

↳ sale_price_effective_date Google\Type\Interval

The TimePeriod of the sale price in this region.

↳ availability string

Availability of the product in this region. For accepted attribute values, see the regional product inventory feed specification

↳ custom_attributes array<Google\Shopping\Type\CustomAttribute>

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

getName

Output only. The name of the RegionalInventory resource.

Format: {regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}

Returns
TypeDescription
string

setName

Output only. The name of the RegionalInventory resource.

Format: {regional_inventory.name=accounts/{account}/products/{product}/regionalInventories/{region}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAccount

Output only. The account that owns the product. This field will be ignored if set by the client.

Returns
TypeDescription
int|string

setAccount

Output only. The account that owns the product. This field will be ignored if set by the client.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getRegion

Required. ID of the region for this RegionalInventory resource. See the Regional availability and pricing for more details.

Returns
TypeDescription
string

setRegion

Required. ID of the region for this RegionalInventory resource. See the Regional availability and pricing for more details.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPrice

Price of the product in this region.

Returns
TypeDescription
Google\Shopping\Type\Price|null

hasPrice

clearPrice

setPrice

Price of the product in this region.

Parameter
NameDescription
var Google\Shopping\Type\Price
Returns
TypeDescription
$this

getSalePrice

Sale price of the product in this region. Mandatory if salePriceEffectiveDate is defined.

Returns
TypeDescription
Google\Shopping\Type\Price|null

hasSalePrice

clearSalePrice

setSalePrice

Sale price of the product in this region. Mandatory if salePriceEffectiveDate is defined.

Parameter
NameDescription
var Google\Shopping\Type\Price
Returns
TypeDescription
$this

getSalePriceEffectiveDate

The TimePeriod of the sale price in this region.

Returns
TypeDescription
Google\Type\Interval|null

hasSalePriceEffectiveDate

clearSalePriceEffectiveDate

setSalePriceEffectiveDate

The TimePeriod of the sale price in this region.

Parameter
NameDescription
var Google\Type\Interval
Returns
TypeDescription
$this

getAvailability

Availability of the product in this region.

For accepted attribute values, see the regional product inventory feed specification

Returns
TypeDescription
string

hasAvailability

clearAvailability

setAvailability

Availability of the product in this region.

For accepted attribute values, see the regional product inventory feed specification

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCustomAttributes

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCustomAttributes

A list of custom (merchant-provided) attributes. You can also use CustomAttribute to submit any attribute of the feed specification in its generic form.

Parameter
NameDescription
var array<Google\Shopping\Type\CustomAttribute>
Returns
TypeDescription
$this