View Source GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1PricePhase (google_api_cloud_channel v0.6.1)

Specifies the price by the duration of months. For example, a 20% discount for the first six months, then a 10% discount starting on the seventh month.

Attributes

  • firstPeriod (type: integer(), default: nil) - Defines first period for the phase.
  • lastPeriod (type: integer(), default: nil) - Defines first period for the phase.
  • periodType (type: String.t, default: nil) - Defines the phase period type.
  • price (type: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Price.t, default: nil) - Price of the phase. Present if there are no price tiers.
  • priceTiers (type: list(GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1PriceTier.t), default: nil) - Price by the resource tiers.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1PricePhase{
  firstPeriod: integer() | nil,
  lastPeriod: integer() | nil,
  periodType: String.t() | nil,
  price: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Price.t() | nil,
  priceTiers:
    [GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1PriceTier.t()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.