Reference documentation and code samples for the Google Cloud Channel V1 Client class Offer.
Represents an offer made to resellers for purchase.
An offer is associated with a Sku , has a plan for payment, a price, and defines the constraints for buying.
Generated from protobuf message google.cloud.channel.v1.Offer
Namespace
Google \ Cloud \ Channel \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}
↳ marketing_info
↳ sku
↳ plan
↳ constraints
↳ price_by_resources
↳ start_time
↳ end_time
↳ parameter_definitions
array< Google\Cloud\Channel\V1\ParameterDefinition
>
Parameters required to use current Offer to purchase.
↳ deal_code
string
The deal code of the offer to get a special promotion or discount.
getName
Resource Name of the Offer.
Format: accounts/{account_id}/offers/{offer_id}
string
setName
Resource Name of the Offer.
Format: accounts/{account_id}/offers/{offer_id}
var
string
$this
getMarketingInfo
Marketing information for the Offer.
hasMarketingInfo
clearMarketingInfo
setMarketingInfo
Marketing information for the Offer.
$this
getSku
SKU the offer is associated with.
hasSku
clearSku
setSku
SKU the offer is associated with.
$this
getPlan
Describes the payment plan for the Offer.
hasPlan
clearPlan
setPlan
Describes the payment plan for the Offer.
$this
getConstraints
Constraints on transacting the Offer.
hasConstraints
clearConstraints
setConstraints
Constraints on transacting the Offer.
$this
getPriceByResources
Price for each monetizable resource type.
setPriceByResources
Price for each monetizable resource type.
$this
getStartTime
Start of the Offer validity time.
hasStartTime
clearStartTime
setStartTime
Start of the Offer validity time.
$this
getEndTime
Output only. End of the Offer validity time.
hasEndTime
clearEndTime
setEndTime
Output only. End of the Offer validity time.
$this
getParameterDefinitions
Parameters required to use current Offer to purchase.
setParameterDefinitions
Parameters required to use current Offer to purchase.
$this
getDealCode
The deal code of the offer to get a special promotion or discount.
string
setDealCode
The deal code of the offer to get a special promotion or discount.
var
string
$this