Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Price
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1Price
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb
Overview
Represents the price of the Offer.
Instance Attribute Summary collapse
-
#base_price ⇒ Google::Apis::CloudchannelV1::GoogleTypeMoney
Represents an amount of money with its currency type.
-
#discount ⇒ Float
Discount percentage, represented as decimal.
-
#effective_price ⇒ Google::Apis::CloudchannelV1::GoogleTypeMoney
Represents an amount of money with its currency type.
-
#external_price_uri ⇒ String
Link to external price list, such as link to Google Voice rate card.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1Price
constructor
A new instance of GoogleCloudChannelV1Price.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1Price
Returns a new instance of GoogleCloudChannelV1Price.
2441 2442 2443 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2441 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_price ⇒ Google::Apis::CloudchannelV1::GoogleTypeMoney
Represents an amount of money with its currency type.
Corresponds to the JSON property basePrice
2423 2424 2425 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2423 def base_price @base_price end |
#discount ⇒ Float
Discount percentage, represented as decimal. For example, a 20% discount will
be represent as 0.2.
Corresponds to the JSON property discount
2429 2430 2431 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2429 def discount @discount end |
#effective_price ⇒ Google::Apis::CloudchannelV1::GoogleTypeMoney
Represents an amount of money with its currency type.
Corresponds to the JSON property effectivePrice
2434 2435 2436 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2434 def effective_price @effective_price end |
#external_price_uri ⇒ String
Link to external price list, such as link to Google Voice rate card.
Corresponds to the JSON property externalPriceUri
2439 2440 2441 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2439 def external_price_uri @external_price_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2446 2447 2448 2449 2450 2451 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2446 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 |