Google Cloud Channel V1 Client - Class PercentageAdjustment (1.9.5)

Reference documentation and code samples for the Google Cloud Channel V1 Client class PercentageAdjustment.

An adjustment that applies a flat markup or markdown to an entire bill.

Generated from protobuf message google.cloud.channel.v1.PercentageAdjustment

Namespace

Google \ Cloud \ Channel \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ percentage Google\Type\Decimal

The percentage of the bill to adjust. For example: Mark down by 1% => "-1.00" Mark up by 1% => "1.00" Pass-Through => "0.00"

getPercentage

The percentage of the bill to adjust.

For example: Mark down by 1% => "-1.00" Mark up by 1% => "1.00" Pass-Through => "0.00"

Returns
Type Description
Google\Type\Decimal|null

hasPercentage

clearPercentage

setPercentage

The percentage of the bill to adjust.

For example: Mark down by 1% => "-1.00" Mark up by 1% => "1.00" Pass-Through => "0.00"

Parameter
Name Description
var Google\Type\Decimal
Returns
Type Description
$this