Google Cloud Channel V1 Client - Class RepricingConfig (1.7.0)

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
NameDescription
data array

Optional. Data for populating the Message object.

↳ entitlement_granularity Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity

Applies the repricing configuration at the entitlement level. This is the only supported value for CustomerRepricingConfig.

↳ channel_partner_granularity Google\Cloud\Channel\V1\RepricingConfig\ChannelPartnerGranularity

Applies the repricing configuration at the channel partner level. This is the only supported value for ChannelPartnerRepricingConfig.

↳ effective_invoice_month Google\Type\Date

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

↳ adjustment Google\Cloud\Channel\V1\RepricingAdjustment

Required. Information about the adjustment.

↳ rebilling_basis int

Required. The RebillingBasis to use for this bill. Specifies the relative cost based on repricing costs you will apply.

↳ conditional_overrides array<Google\Cloud\Channel\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

Applies the repricing configuration at the entitlement level. This is the only supported value for CustomerRepricingConfig.

Returns
TypeDescription
Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity|null

hasEntitlementGranularity

setEntitlementGranularity

Applies the repricing configuration at the entitlement level. This is the only supported value for CustomerRepricingConfig.

Parameter
NameDescription
var Google\Cloud\Channel\V1\RepricingConfig\EntitlementGranularity
Returns
TypeDescription
$this

getChannelPartnerGranularity

Applies the repricing configuration at the channel partner level.

This is the only supported value for ChannelPartnerRepricingConfig.

Returns
TypeDescription
Google\Cloud\Channel\V1\RepricingConfig\ChannelPartnerGranularity|null

hasChannelPartnerGranularity

setChannelPartnerGranularity

Applies the repricing configuration at the channel partner level.

This is the only supported value for ChannelPartnerRepricingConfig.

Parameter
NameDescription
var Google\Cloud\Channel\V1\RepricingConfig\ChannelPartnerGranularity
Returns
TypeDescription
$this

getEffectiveInvoiceMonth

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

Returns
TypeDescription
Google\Type\Date|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
NameDescription
var Google\Type\Date
Returns
TypeDescription
$this

getAdjustment

Required. Information about the adjustment.

Returns
TypeDescription
Google\Cloud\Channel\V1\RepricingAdjustment|null

hasAdjustment

clearAdjustment

setAdjustment

Required. Information about the adjustment.

Parameter
NameDescription
var Google\Cloud\Channel\V1\RepricingAdjustment
Returns
TypeDescription
$this

getRebillingBasis

Required. The RebillingBasis to use for this bill. Specifies the relative cost based on repricing costs you will apply.

Returns
TypeDescription
int

setRebillingBasis

Required. The RebillingBasis to use for this bill. Specifies the relative cost based on repricing costs you will apply.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
Google\Protobuf\Internal\RepeatedField

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
NameDescription
var array<Google\Cloud\Channel\V1\ConditionalOverride>
Returns
TypeDescription
$this

getGranularity

Returns
TypeDescription
string