View Source GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1PriceTier (google_api_cloud_channel v0.7.0)

Defines price at resource tier level. For example, an offer with following definition : Tier 1: Provide 25% discount for all seats between 1 and 25. Tier 2: Provide 10% discount for all seats between 26 and 100. * Tier 3: Provide flat 15% discount for all seats above 100. Each of these tiers is represented as a PriceTier.

Attributes

  • firstResource (type: integer(), default: nil) - First resource for which the tier price applies.
  • lastResource (type: integer(), default: nil) - Last resource for which the tier price applies.
  • price (type: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Price.t, default: nil) - Price of the tier.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1PriceTier{
  firstResource: integer() | nil,
  lastResource: integer() | nil,
  price: GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Price.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.