Reference documentation and code samples for the Google Shopping Merchant Inventories V1 Client class RegionalInventoryAttributes.
Regional inventory attributes.
Generated from protobuf message google.shopping.merchant.inventories.v1.RegionalInventoryAttributes
Namespace
Google \ Shopping \ Merchant \ Inventories \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ price |
Google\Shopping\Type\Price
Optional. Price of the product in this region. |
↳ sale_price |
Google\Shopping\Type\Price
Optional. Sale price of the product in this region. Mandatory if |
↳ sale_price_effective_date |
Google\Type\Interval
Optional. The |
↳ availability |
int
Optional. Availability of the product in this region. |
getPrice
Optional. Price of the product in this region.
| Returns | |
|---|---|
| Type | Description |
Google\Shopping\Type\Price|null |
|
hasPrice
clearPrice
setPrice
Optional. Price of the product in this region.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Shopping\Type\Price
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSalePrice
Optional. Sale price of the product in this region. Mandatory if
salePriceEffectiveDate is
defined.
| Returns | |
|---|---|
| Type | Description |
Google\Shopping\Type\Price|null |
|
hasSalePrice
clearSalePrice
setSalePrice
Optional. Sale price of the product in this region. Mandatory if
salePriceEffectiveDate is
defined.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Shopping\Type\Price
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSalePriceEffectiveDate
Optional. The TimePeriod of the
sale price in this region.
| Returns | |
|---|---|
| Type | Description |
Google\Type\Interval|null |
|
hasSalePriceEffectiveDate
clearSalePriceEffectiveDate
setSalePriceEffectiveDate
Optional. The TimePeriod of the
sale price in this region.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Type\Interval
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAvailability
Optional.
Availability of the product in this region.
| Returns | |
|---|---|
| Type | Description |
int |
|
hasAvailability
clearAvailability
setAvailability
Optional.
Availability of the product in this region.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|