Google Cloud Channel V1 Client - Class PercentageAdjustment (1.8.2)

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
NameDescription
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
TypeDescription
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
NameDescription
var Google\Type\Decimal
Returns
TypeDescription
$this