# Google Cloud Channel V1 Client - Class RenewalSettings (2.4.1)

2.4.1 (latest) 2.4.0 2.3.1 2.2.1 2.1.4 2.0.0 1.9.5 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Channel V1 Client class RenewalSettings.

Renewal settings for renewable Offers.

Generated from protobuf message `google.cloud.channel.v1.RenewalSettings`

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ enable_renewal` | `bool` If false, the plan will be completed at the end date. |
| `↳ resize_unit_count` | `bool` If true and enable_renewal = true, the unit (for example seats or licenses) will be set to the number of active units at renewal time. |
| `↳ payment_plan` | `int` Describes how a reseller will be billed. |
| `↳ payment_cycle` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.Period` Describes how frequently the reseller will be billed, such as once per month. |

### getEnableRenewal

If false, the plan will be completed at the end date.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnableRenewal

If false, the plan will be completed at the end date.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResizeUnitCount

If true and enable_renewal = true, the unit (for example seats or licenses)
will be set to the number of active units at renewal time.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setResizeUnitCount

If true and enable_renewal = true, the unit (for example seats or licenses)
will be set to the number of active units at renewal time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPaymentPlan

Describes how a reseller will be billed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [PaymentPlan](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.PaymentPlan). |

### setPaymentPlan

Describes how a reseller will be billed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [PaymentPlan](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.PaymentPlan). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPaymentCycle

Describes how frequently the reseller will be billed, such as
once per month.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.Period|null` |   |

### hasPaymentCycle

### clearPaymentCycle

### setPaymentCycle

Describes how frequently the reseller will be billed, such as
once per month.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.Period` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |