Cloud Commerce Producer V1BETA API - Class Google::Cloud::CommerceProducer::V1beta::Sku::SkuPrice::FlatSubscriptionFee (v0.1.0)

Reference documentation and code samples for the Cloud Commerce Producer V1BETA API class Google::Cloud::CommerceProducer::V1beta::Sku::SkuPrice::FlatSubscriptionFee.

Details about a SKU charging a flat subscription fee.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#price_per_unit

def price_per_unit() -> ::Google::Type::Money
Returns

#unit

def unit() -> ::String
Returns
  • (::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.