# Google Cloud Channel V1 Client - Class RepricingConfig (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 RepricingConfig.

Configuration for repricing a Google bill over a period of time.

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

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ entitlement_granularity` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingConfig.EntitlementGranularity` Required. Applies the repricing configuration at the entitlement level. Note: If a [ChannelPartnerRepricingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ChannelPartnerRepricingConfig) using [RepricingConfig.EntitlementGranularity](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingConfig.EntitlementGranularity) becomes effective, then no existing or future RepricingConfig.ChannelPartnerGranularity will apply to the [RepricingConfig.EntitlementGranularity.entitlement](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingConfig.EntitlementGranularity#_Google_Cloud_Channel_V1_RepricingConfig_EntitlementGranularity__getEntitlement__). This is the recommended value for both [CustomerRepricingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CustomerRepricingConfig) and [ChannelPartnerRepricingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ChannelPartnerRepricingConfig). |
| `↳ channel_partner_granularity` | `RepricingConfig\ChannelPartnerGranularity` Applies the repricing configuration at the channel partner level. Only [ChannelPartnerRepricingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ChannelPartnerRepricingConfig) supports this value. Deprecated: This is no longer supported. Use [RepricingConfig.entitlement_granularity](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingConfig#_Google_Cloud_Channel_V1_RepricingConfig__getEntitlementGranularity__) instead. |
| `↳ effective_invoice_month` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` Required. The YearMonth when these adjustments activate. The Day field needs to be "0" since we only accept YearMonth repricing boundaries. |
| `↳ adjustment` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingAdjustment` Required. Information about the adjustment. |
| `↳ rebilling_basis` | `int` Required. The [RebillingBasis](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RebillingBasis) to use for this bill. Specifies the relative cost based on repricing costs you will apply. |
| `↳ conditional_overrides` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ConditionalOverride>` The conditional overrides to apply for this configuration. If you list multiple overrides, only the first valid override is used. If you don't list any overrides, the API uses the normal adjustment and rebilling basis. |

### getEntitlementGranularity

Required. Applies the repricing configuration at the entitlement level.

Note: If a
[ChannelPartnerRepricingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ChannelPartnerRepricingConfig)
using
[RepricingConfig.EntitlementGranularity](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingConfig.EntitlementGranularity)
becomes effective, then no existing or future
RepricingConfig.ChannelPartnerGranularity
will apply to the
[RepricingConfig.EntitlementGranularity.entitlement](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingConfig.EntitlementGranularity#_Google_Cloud_Channel_V1_RepricingConfig_EntitlementGranularity__getEntitlement__).
This is the recommended value for both
[CustomerRepricingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CustomerRepricingConfig)
and
[ChannelPartnerRepricingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ChannelPartnerRepricingConfig).

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

### hasEntitlementGranularity

### setEntitlementGranularity

Required. Applies the repricing configuration at the entitlement level.

Note: If a
[ChannelPartnerRepricingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ChannelPartnerRepricingConfig)
using
[RepricingConfig.EntitlementGranularity](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingConfig.EntitlementGranularity)
becomes effective, then no existing or future
RepricingConfig.ChannelPartnerGranularity
will apply to the
[RepricingConfig.EntitlementGranularity.entitlement](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingConfig.EntitlementGranularity#_Google_Cloud_Channel_V1_RepricingConfig_EntitlementGranularity__getEntitlement__).
This is the recommended value for both
[CustomerRepricingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CustomerRepricingConfig)
and
[ChannelPartnerRepricingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ChannelPartnerRepricingConfig).

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

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

### getChannelPartnerGranularity

Applies the repricing configuration at the channel partner level.

Only
[ChannelPartnerRepricingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ChannelPartnerRepricingConfig)
supports this value. Deprecated: This is no longer supported. Use
[RepricingConfig.entitlement_granularity](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingConfig#_Google_Cloud_Channel_V1_RepricingConfig__getEntitlementGranularity__)
instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `RepricingConfig\ChannelPartnerGranularity|null` |   |

### hasChannelPartnerGranularity

### setChannelPartnerGranularity

Applies the repricing configuration at the channel partner level.

Only
[ChannelPartnerRepricingConfig](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ChannelPartnerRepricingConfig)
supports this value. Deprecated: This is no longer supported. Use
[RepricingConfig.entitlement_granularity](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingConfig#_Google_Cloud_Channel_V1_RepricingConfig__getEntitlementGranularity__)
instead.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `RepricingConfig\ChannelPartnerGranularity` |

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

### getEffectiveInvoiceMonth

Required. The YearMonth when these adjustments activate. The Day field
needs to be "0" since we only accept YearMonth repricing boundaries.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html|null` |   |

### hasEffectiveInvoiceMonth

### clearEffectiveInvoiceMonth

### setEffectiveInvoiceMonth

Required. The YearMonth when these adjustments activate. The Day field
needs to be "0" since we only accept YearMonth repricing boundaries.

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

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

### getAdjustment

Required. Information about the adjustment.

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

### hasAdjustment

### clearAdjustment

### setAdjustment

Required. Information about the adjustment.

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

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

### getRebillingBasis

Required. The [RebillingBasis](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RebillingBasis) to
use for this bill. Specifies the relative cost based on repricing costs you
will apply.

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

### setRebillingBasis

Required. The [RebillingBasis](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RebillingBasis) to
use for this bill. Specifies the relative cost based on repricing costs you
will apply.

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

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

### getConditionalOverrides

The conditional overrides to apply for this configuration. If you list
multiple overrides, only the first valid override is used. If you don't
list any overrides, the API uses the normal adjustment and rebilling basis.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.ConditionalOverride>` |   |

### setConditionalOverrides

The conditional overrides to apply for this configuration. If you list
multiple overrides, only the first valid override is used. If you don't
list any overrides, the API uses the normal adjustment and rebilling basis.

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

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

### getGranularity

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |