Google Shopping Merchant Products V1beta Client - Class ProductSustainabilityIncentive (0.4.0)

Reference documentation and code samples for the Google Shopping Merchant Products V1beta Client class ProductSustainabilityIncentive.

Information regarding sustainability-related incentive programs such as rebates or tax relief.

Generated from protobuf message google.shopping.merchant.products.v1beta.ProductSustainabilityIncentive

Namespace

Google \ Shopping \ Merchant \ Products \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ amount Google\Shopping\Type\Price

The fixed amount of the incentive.

↳ percentage float

The percentage of the sale price that the incentive is applied to.

↳ type int

Sustainability incentive program.

getAmount

The fixed amount of the incentive.

Returns
Type Description
Google\Shopping\Type\Price|null

hasAmount

setAmount

The fixed amount of the incentive.

Parameter
Name Description
var Google\Shopping\Type\Price
Returns
Type Description
$this

getPercentage

The percentage of the sale price that the incentive is applied to.

Returns
Type Description
float

hasPercentage

setPercentage

The percentage of the sale price that the incentive is applied to.

Parameter
Name Description
var float
Returns
Type Description
$this

getType

Sustainability incentive program.

Returns
Type Description
int

hasType

clearType

setType

Sustainability incentive program.

Parameter
Name Description
var int
Returns
Type Description
$this

getValue

Returns
Type Description
string