Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class StandardIntervalPrice.
Price configurations for offers with standard intervals.
Generated from protobuf message google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.StandardIntervalPrice
Namespace
Google \ Cloud \ CommerceProducer \ V1beta \ PrivateOffer \ SingleProductOfferMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ standard_interval |
int
Optional. The standard interval of the offer. Must be present to publish unless the price model is usage-only. |
↳ price_model |
PriceModel
Optional. The price model of the offer. Must be present to publish the offer. |
getStandardInterval
Optional. The standard interval of the offer.
Must be present to publish unless the price model is usage-only.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type StandardInterval. |
setStandardInterval
Optional. The standard interval of the offer.
Must be present to publish unless the price model is usage-only.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type StandardInterval. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPriceModel
Optional. The price model of the offer.
Must be present to publish the offer.
| Returns | |
|---|---|
| Type | Description |
PriceModel|null |
|
hasPriceModel
clearPriceModel
setPriceModel
Optional. The price model of the offer.
Must be present to publish the offer.
| Parameter | |
|---|---|
| Name | Description |
var |
PriceModel
|
| Returns | |
|---|---|
| Type | Description |
$this |
|