Reference documentation and code samples for the Google Cloud Channel V1 Client class DiscountComponent.
Represents a single component of the total discount applicable on a Price.
Generated from protobuf message google.cloud.channel.v1.DiscountComponent
Namespace
Google \ Cloud \ Channel \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ discount_percentage
float
Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.
↳ discount_absolute
↳ discount_type
int
Type of the discount.
getDiscountPercentage
Discount percentage, represented as decimal.
For example, a 20% discount will be represented as 0.2.
float
hasDiscountPercentage
setDiscountPercentage
Discount percentage, represented as decimal.
For example, a 20% discount will be represented as 0.2.
var
float
$this
getDiscountAbsolute
Fixed value discount.
hasDiscountAbsolute
setDiscountAbsolute
Fixed value discount.
$this
getDiscountType
Type of the discount.
setDiscountType
Type of the discount.
$this
getDiscountValue
string

