Interface Sku.SkuPrice.FlatSubscriptionFeeOrBuilder (0.1.0)

public static interface Sku.SkuPrice.FlatSubscriptionFeeOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPricePerUnit()

public abstract Money getPricePerUnit()

Output only. The price per time unit the subscription is active.

.google.type.Money price_per_unit = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Money

The pricePerUnit.

getPricePerUnitOrBuilder()

public abstract MoneyOrBuilder getPricePerUnitOrBuilder()

Output only. The price per time unit the subscription is active.

.google.type.Money price_per_unit = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.MoneyOrBuilder

getPriceStructureCase()

public abstract Sku.SkuPrice.FlatSubscriptionFee.PriceStructureCase getPriceStructureCase()
Returns
Type Description
Sku.SkuPrice.FlatSubscriptionFee.PriceStructureCase

getUnit()

public abstract String getUnit()

Output only. The unit of the subscription SKU. See https://ucum.org/ucum.html for the format of the price unit. Since subscriptions are billed by duration, this will always be a time unit. The price unit of a subscription SKU is not necessarily the same as the subscription period of the corresponding StandardOffers.

Currently the unit is always months ('mo'). Additional time units may be supported in future.

The unit month ('mo') is a customary time unit and requires special handling to account for the variable duration of months. A price may be denominated in units of months, but the duration the subscription is active is measured in metric time and customers are billed on that basis. The exact hourly or per-second price can be calculated by dividing the monthly price by the number of hours or seconds in the desired month. A subscription active for N months is rarely billed exactly N times the monthly price. This is intended and is not a billing error.

string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The unit.

getUnitBytes()

public abstract ByteString getUnitBytes()

Output only. The unit of the subscription SKU. See https://ucum.org/ucum.html for the format of the price unit. Since subscriptions are billed by duration, this will always be a time unit. The price unit of a subscription SKU is not necessarily the same as the subscription period of the corresponding StandardOffers.

Currently the unit is always months ('mo'). Additional time units may be supported in future.

The unit month ('mo') is a customary time unit and requires special handling to account for the variable duration of months. A price may be denominated in units of months, but the duration the subscription is active is measured in metric time and customers are billed on that basis. The exact hourly or per-second price can be calculated by dividing the monthly price by the number of hours or seconds in the desired month. A subscription active for N months is rarely billed exactly N times the monthly price. This is intended and is not a billing error.

string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for unit.

hasPricePerUnit()

public abstract boolean hasPricePerUnit()

Output only. The price per time unit the subscription is active.

.google.type.Money price_per_unit = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the pricePerUnit field is set.