Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class FlatSubscriptionFee.
Details about a SKU charging a flat subscription fee.
Generated from protobuf message google.cloud.commerceproducer.v1beta.Sku.SkuPrice.FlatSubscriptionFee
Namespace
Google \ Cloud \ CommerceProducer \ V1beta \ Sku \ SkuPriceMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ price_per_unit |
Google\Type\Money
Output only. The price per time unit the subscription is active. |
↳ unit |
string
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. |
getPricePerUnit
Output only. The price per time unit the subscription is active.
| Returns | |
|---|---|
| Type | Description |
Google\Type\Money|null |
|
hasPricePerUnit
setPricePerUnit
Output only. The price per time unit the subscription is active.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Type\Money
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
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.
| Returns | |
|---|---|
| Type | Description |
string |
|
setUnit
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.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPriceStructure
| Returns | |
|---|---|
| Type | Description |
string |
|