Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class PriceModel.
Price model of the offer.
Generated from protobuf message google.cloud.commerceproducer.v1beta.StandardOffer.PriceModel
Namespace
Google \ Cloud \ CommerceProducer \ V1beta \ StandardOfferMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ flat_fee |
PriceModel\FlatFeeSubscription
Output only. Price configurations for the flat fee subscription. |
↳ usage |
PriceModel\Usage
Output only. Price configurations for the usage part. |
getFlatFee
Output only. Price configurations for the flat fee subscription.
| Returns | |
|---|---|
| Type | Description |
PriceModel\FlatFeeSubscription|null |
|
hasFlatFee
setFlatFee
Output only. Price configurations for the flat fee subscription.
| Parameter | |
|---|---|
| Name | Description |
var |
PriceModel\FlatFeeSubscription
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUsage
Output only. Price configurations for the usage part.
| Returns | |
|---|---|
| Type | Description |
PriceModel\Usage|null |
|
hasUsage
clearUsage
setUsage
Output only. Price configurations for the usage part.
| Parameter | |
|---|---|
| Name | Description |
var |
PriceModel\Usage
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSubscription
| Returns | |
|---|---|
| Type | Description |
string |
|