class Google::Apis::CloudchannelV1::GoogleCloudChannelV1Price

Represents the price of the Offer.

Attributes

base_price[RW]

Represents an amount of money with its currency type. Corresponds to the JSON property `basePrice` @return [Google::Apis::CloudchannelV1::GoogleTypeMoney]

discount[RW]

Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2. Corresponds to the JSON property `discount` @return [Float]

effective_price[RW]

Represents an amount of money with its currency type. Corresponds to the JSON property `effectivePrice` @return [Google::Apis::CloudchannelV1::GoogleTypeMoney]

external_price_uri[RW]

Link to external price list, such as link to Google Voice rate card. Corresponds to the JSON property `externalPriceUri` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudchannel_v1/classes.rb, line 1689
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudchannel_v1/classes.rb, line 1694
def update!(**args)
  @base_price = args[:base_price] if args.key?(:base_price)
  @discount = args[:discount] if args.key?(:discount)
  @effective_price = args[:effective_price] if args.key?(:effective_price)
  @external_price_uri = args[:external_price_uri] if args.key?(:external_price_uri)
end