Reference documentation and code samples for the Google Cloud Channel V1 Client class Price.
Represents the price of the Offer.
Generated from protobuf message google.cloud.channel.v1.Price
Namespace
Google \ Cloud \ Channel \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ base_price |
Google\Type\Money
Base price. |
↳ discount |
float
Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2. |
↳ effective_price |
Google\Type\Money
Effective Price after applying the discounts. |
↳ external_price_uri |
string
Link to external price list, such as link to Google Voice rate card. |
getBasePrice
Base price.
| Returns | |
|---|---|
| Type | Description |
Google\Type\Money|null |
|
hasBasePrice
clearBasePrice
setBasePrice
Base price.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Type\Money
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDiscount
Discount percentage, represented as decimal.
For example, a 20% discount will be represent as 0.2.
| Returns | |
|---|---|
| Type | Description |
float |
|
setDiscount
Discount percentage, represented as decimal.
For example, a 20% discount will be represent as 0.2.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEffectivePrice
Effective Price after applying the discounts.
| Returns | |
|---|---|
| Type | Description |
Google\Type\Money|null |
|
hasEffectivePrice
clearEffectivePrice
setEffectivePrice
Effective Price after applying the discounts.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Type\Money
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getExternalPriceUri
Link to external price list, such as link to Google Voice rate card.
| Returns | |
|---|---|
| Type | Description |
string |
|
setExternalPriceUri
Link to external price list, such as link to Google Voice rate card.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|