Cloud Commerce Producer V1BETA API - Class Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel (v0.1.0)

Reference documentation and code samples for the Cloud Commerce Producer V1BETA API class Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel.

The price model of the private offer.

Private offers are referred to as having different kinds of price models based on the combination of fields set in the price model. The following terminology is used in documentation and other reference material.

  • Usage-based: the price model does not set flat_fee
  • Usage-only: the price model sets only usage
  • CUD (committed use discount): the price model sets commitment
    • Commitment discount with additional usage at list price: The price model sets commitment and not usage.
    • Commitment with all usage discounted: The price model sets commitment and usage.
  • Flat fee: the price model sets only flat_fee
  • Flat fee with usage: the price model sets flat_fee and usage

See https://docs.cloud.google.com/marketplace/docs/partners/offers/select-pricing-model#CUD for the price models.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#commitment

def commitment() -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Commitment
Returns

#commitment=

def commitment=(value) -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Commitment
Parameter
Returns

#flat_fee

def flat_fee() -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::FlatFee
Returns

#flat_fee=

def flat_fee=(value) -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::FlatFee
Parameter
Returns

#usage

def usage() -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Usage
Returns

#usage=

def usage=(value) -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Usage
Parameter
Returns