Google Cloud Channel V1 Client - Class Price (1.0.1)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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.

Generated from protobuf field .google.type.Money base_price = 1;

Returns
TypeDescription
Google\Type\Money|null

hasBasePrice

clearBasePrice

setBasePrice

Base price.

Generated from protobuf field .google.type.Money base_price = 1;

Parameter
NameDescription
var Google\Type\Money
Returns
TypeDescription
$this

getDiscount

Discount percentage, represented as decimal.

For example, a 20% discount will be represent as 0.2.

Generated from protobuf field double discount = 2;

Returns
TypeDescription
float

setDiscount

Discount percentage, represented as decimal.

For example, a 20% discount will be represent as 0.2.

Generated from protobuf field double discount = 2;

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getEffectivePrice

Effective Price after applying the discounts.

Generated from protobuf field .google.type.Money effective_price = 3;

Returns
TypeDescription
Google\Type\Money|null

hasEffectivePrice

clearEffectivePrice

setEffectivePrice

Effective Price after applying the discounts.

Generated from protobuf field .google.type.Money effective_price = 3;

Parameter
NameDescription
var Google\Type\Money
Returns
TypeDescription
$this

getExternalPriceUri

Link to external price list, such as link to Google Voice rate card.

Generated from protobuf field string external_price_uri = 4;

Returns
TypeDescription
string

setExternalPriceUri

Link to external price list, such as link to Google Voice rate card.

Generated from protobuf field string external_price_uri = 4;

Parameter
NameDescription
var string
Returns
TypeDescription
$this