Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class ProductSustainabilityIncentive.
Information regarding sustainability-related incentive programs such as rebates or tax relief.
Generated from protobuf message google.shopping.merchant.products.v1.ProductSustainabilityIncentive
Namespace
Google \ Shopping \ Merchant \ Products \ V1Methods
__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 |
|