Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class RevenueShare.
Revenue Share information for a Private Offer.
For more details about the revenue share, including how the value is
determined, see
https://docs.cloud.google.com/marketplace/docs/partners/revenue-share-scenarios.
Not included for PRIVATE_OFFER_VIEW_BASIC, or for DRAFT private offers.
For non-draft private offers, these fields are populated based on the
following:
- Offers published after April 20, 2025 will always have revenue share fields populated.
- Offers published on or before April 20, 2025 will only have revenue share fields populated if they were associated with an active, unexpired order on that date.
Generated from protobuf message google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.RevenueShare
Namespace
Google \ Cloud \ CommerceProducer \ V1beta \ PrivateOffer \ SingleProductOfferMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ current_term_vendor_net_revenue_percent |
Google\Type\Decimal
Output only. The revenue share currently in effect. The range of the value is between 0 and 100. For example, 80 means the Vendor's current term revenue share is 80%. The vendor will keep 80% of the revenue. . |
↳ renewal_term_vendor_net_revenue_percent |
Google\Type\Decimal
Output only. The expected revenue share for the renewal term. Not included if the offer does not have renewal terms. The range of the value is between 0 and 100. For example, 80 means the Vendor's current term revenue share is 80%. The vendor will keep 80% of the revenue after renewal. . |
getCurrentTermVendorNetRevenuePercent
Output only. The revenue share currently in effect.
The range of the value is between 0 and 100. For example, 80 means the Vendor's current term revenue share is 80%. The vendor will keep 80% of the revenue. .
| Returns | |
|---|---|
| Type | Description |
Google\Type\Decimal|null |
|
hasCurrentTermVendorNetRevenuePercent
clearCurrentTermVendorNetRevenuePercent
setCurrentTermVendorNetRevenuePercent
Output only. The revenue share currently in effect.
The range of the value is between 0 and 100. For example, 80 means the Vendor's current term revenue share is 80%. The vendor will keep 80% of the revenue. .
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Type\Decimal
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRenewalTermVendorNetRevenuePercent
Output only. The expected revenue share for the renewal term.
Not included if the offer does not have renewal terms. The range of the value is between 0 and 100. For example, 80 means the Vendor's current term revenue share is 80%. The vendor will keep 80% of the revenue after renewal. .
| Returns | |
|---|---|
| Type | Description |
Google\Type\Decimal|null |
|
hasRenewalTermVendorNetRevenuePercent
clearRenewalTermVendorNetRevenuePercent
setRenewalTermVendorNetRevenuePercent
Output only. The expected revenue share for the renewal term.
Not included if the offer does not have renewal terms. The range of the value is between 0 and 100. For example, 80 means the Vendor's current term revenue share is 80%. The vendor will keep 80% of the revenue after renewal. .
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Type\Decimal
|
| Returns | |
|---|---|
| Type | Description |
$this |
|