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
commitmentand notusage. - Commitment with all usage discounted: The price model sets
commitmentandusage.
- Commitment discount with additional usage at list price:
The price model sets
- Flat fee: the price model sets only
flat_fee - Flat fee with usage: the price model sets
flat_feeandusage
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-
(::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Commitment) — Optional. The price configurations for the commitment based
subscription. Must be unset when the base standard offer's price
model includes subscription SKUs.
Note: The following fields are mutually exclusive:
commitment,flat_fee. If a field in that set is populated, all other fields in the set will automatically be cleared.
#commitment=
def commitment=(value) -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Commitment-
value (::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Commitment) — Optional. The price configurations for the commitment based
subscription. Must be unset when the base standard offer's price
model includes subscription SKUs.
Note: The following fields are mutually exclusive:
commitment,flat_fee. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Commitment) — Optional. The price configurations for the commitment based
subscription. Must be unset when the base standard offer's price
model includes subscription SKUs.
Note: The following fields are mutually exclusive:
commitment,flat_fee. If a field in that set is populated, all other fields in the set will automatically be cleared.
#flat_fee
def flat_fee() -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::FlatFee-
(::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::FlatFee) — Optional. The price configurations for the flat fee subscription.
Must be unset when the base standard offer's price model does not
include subscription SKUs.
Note: The following fields are mutually exclusive:
flat_fee,commitment. If a field in that set is populated, all other fields in the set will automatically be cleared.
#flat_fee=
def flat_fee=(value) -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::FlatFee-
value (::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::FlatFee) — Optional. The price configurations for the flat fee subscription.
Must be unset when the base standard offer's price model does not
include subscription SKUs.
Note: The following fields are mutually exclusive:
flat_fee,commitment. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::FlatFee) — Optional. The price configurations for the flat fee subscription.
Must be unset when the base standard offer's price model does not
include subscription SKUs.
Note: The following fields are mutually exclusive:
flat_fee,commitment. If a field in that set is populated, all other fields in the set will automatically be cleared.
#usage
def usage() -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Usage-
(::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Usage) — Optional. The price configurations for the usage part.
If this field is set, the
Commitment.discount_percentmust be unset. A private offer can apply a discount to all usage or to a usage commitment, but not both. Must be unset when the base standard offer's price model includes no usage SKUs.
#usage=
def usage=(value) -> ::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Usage-
value (::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Usage) — Optional. The price configurations for the usage part.
If this field is set, the
Commitment.discount_percentmust be unset. A private offer can apply a discount to all usage or to a usage commitment, but not both. Must be unset when the base standard offer's price model includes no usage SKUs.
-
(::Google::Cloud::CommerceProducer::V1beta::PrivateOffer::SingleProductOffer::PriceModel::Usage) — Optional. The price configurations for the usage part.
If this field is set, the
Commitment.discount_percentmust be unset. A private offer can apply a discount to all usage or to a usage commitment, but not both. Must be unset when the base standard offer's price model includes no usage SKUs.