Reference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::Price.
Represents the price of the Offer.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#base_price
def base_price() -> ::Google::Type::Money
Returns
- (::Google::Type::Money) — Base price.
#base_price=
def base_price=(value) -> ::Google::Type::Money
Parameter
- value (::Google::Type::Money) — Base price.
Returns
- (::Google::Type::Money) — Base price.
#discount
def discount() -> ::Float
Returns
- (::Float) — Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
#discount=
def discount=(value) -> ::Float
Parameter
- value (::Float) — Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
Returns
- (::Float) — Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
#effective_price
def effective_price() -> ::Google::Type::Money
Returns
- (::Google::Type::Money) — Effective Price after applying the discounts.
#effective_price=
def effective_price=(value) -> ::Google::Type::Money
Parameter
- value (::Google::Type::Money) — Effective Price after applying the discounts.
Returns
- (::Google::Type::Money) — Effective Price after applying the discounts.
#external_price_uri
def external_price_uri() -> ::String
Returns
- (::String) — Link to external price list, such as link to Google Voice rate card.
#external_price_uri=
def external_price_uri=(value) -> ::String
Parameter
- value (::String) — Link to external price list, such as link to Google Voice rate card.
Returns
- (::String) — Link to external price list, such as link to Google Voice rate card.