View Source GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Price (google_api_cloud_channel v0.11.1)

Represents the price of the Offer.

Attributes

  • basePrice (type: GoogleApi.CloudChannel.V1.Model.GoogleTypeMoney.t, default: nil) - Base price.
  • discount (type: float(), default: nil) - Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
  • effectivePrice (type: GoogleApi.CloudChannel.V1.Model.GoogleTypeMoney.t, default: nil) - Effective Price after applying the discounts.
  • externalPriceUri (type: String.t, default: nil) - Link to external price list, such as link to Google Voice rate card.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CloudChannel.V1.Model.GoogleCloudChannelV1Price{
  basePrice: GoogleApi.CloudChannel.V1.Model.GoogleTypeMoney.t() | nil,
  discount: float() | nil,
  effectivePrice: GoogleApi.CloudChannel.V1.Model.GoogleTypeMoney.t() | nil,
  externalPriceUri: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.