# Google Shopping Merchant Products V1beta Client - Class ProductSustainabilityIncentive (1.6.0)

1.6.0 (latest) 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.1 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

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` | `https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.Price.html` 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** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.Price.html|null` |   |

### hasAmount

### setAmount

The fixed amount of the incentive.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.Price.html` |

| **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` |   |