Google Cloud Commerce Producer V1beta Client - Class ContractValue (0.2.0)

Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class ContractValue.

The contract value of the offer.

Generated from protobuf message google.cloud.commerceproducer.v1beta.PrivateOffer.SingleProductOffer.ContractValue

Namespace

Google \ Cloud \ CommerceProducer \ V1beta \ PrivateOffer \ SingleProductOffer

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ total_contract_value Google\Type\Money

Output only. The total contract value of the offer. This will be set for all non-draft private offers, as long as 'PRIVATE_OFFER_VIEW_FULL' is requested. For DRAFT private offers, this will be populated only when the end user's billing account is set and when the pricing and term configuration is sufficiently complete to allow for a calculation.

getTotalContractValue

Output only. The total contract value of the offer.

This will be set for all non-draft private offers, as long as 'PRIVATE_OFFER_VIEW_FULL' is requested. For DRAFT private offers, this will be populated only when the end user's billing account is set and when the pricing and term configuration is sufficiently complete to allow for a calculation.

Returns
Type Description
Google\Type\Money|null

hasTotalContractValue

clearTotalContractValue

setTotalContractValue

Output only. The total contract value of the offer.

This will be set for all non-draft private offers, as long as 'PRIVATE_OFFER_VIEW_FULL' is requested. For DRAFT private offers, this will be populated only when the end user's billing account is set and when the pricing and term configuration is sufficiently complete to allow for a calculation.

Parameter
Name Description
var Google\Type\Money
Returns
Type Description
$this