Google Cloud Commerce Producer V1beta Client - Class PriceTier (0.2.0)

Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class PriceTier.

A price tier pricing metric usage within a range.

Each marginal unit of usage is priced according to the price tier in which it falls.

Generated from protobuf message google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier

Namespace

Google \ Cloud \ CommerceProducer \ V1beta \ Sku \ SkuPrice \ TieredPrice

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ start_amount Google\Type\Decimal

Output only. Inclusive lower bound of the tier interval, denominated in unit.

↳ price Google\Type\Money

Output only. The price per price_unit_count of unit in the tier. The price is applied fractionally if the customer's usage within the tier is not an integer multiple of price_unit_count.

getStartAmount

Output only. Inclusive lower bound of the tier interval, denominated in unit.

Returns
Type Description
Google\Type\Decimal|null

hasStartAmount

clearStartAmount

setStartAmount

Output only. Inclusive lower bound of the tier interval, denominated in unit.

Parameter
Name Description
var Google\Type\Decimal
Returns
Type Description
$this

getPrice

Output only. The price per price_unit_count of unit in the tier.

The price is applied fractionally if the customer's usage within the tier is not an integer multiple of price_unit_count.

Returns
Type Description
Google\Type\Money|null

hasPrice

clearPrice

setPrice

Output only. The price per price_unit_count of unit in the tier.

The price is applied fractionally if the customer's usage within the tier is not an integer multiple of price_unit_count.

Parameter
Name Description
var Google\Type\Money
Returns
Type Description
$this