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.
data
array
Optional. Data for populating the Message object.
↳ base_price
↳ discount
float
Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
↳ effective_price
↳ price_period
Period
The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
↳ external_price_uri
string
Link to external price list, such as link to Google Voice rate card.
↳ discount_components
array< DiscountComponent
>
Breakdown of the discount into its components. This will be empty if there is no discount present.
getBasePrice
Base price.
hasBasePrice
clearBasePrice
setBasePrice
Base price.
$this
getDiscount
Discount percentage, represented as decimal.
For example, a 20% discount will be represent as 0.2.
float
setDiscount
Discount percentage, represented as decimal.
For example, a 20% discount will be represent as 0.2.
var
float
$this
getEffectivePrice
Effective Price after applying the discounts.
hasEffectivePrice
clearEffectivePrice
setEffectivePrice
Effective Price after applying the discounts.
$this
getPricePeriod
The time period with respect to which base and effective prices are defined.
Example: 1 month, 6 months, 1 year, etc.
hasPricePeriod
clearPricePeriod
setPricePeriod
The time period with respect to which base and effective prices are defined.
Example: 1 month, 6 months, 1 year, etc.
$this
getExternalPriceUri
Link to external price list, such as link to Google Voice rate card.
string
setExternalPriceUri
Link to external price list, such as link to Google Voice rate card.
var
string
$this
getDiscountComponents
Breakdown of the discount into its components.
This will be empty if there is no discount present.
setDiscountComponents
Breakdown of the discount into its components.
This will be empty if there is no discount present.
$this

