Google Cloud Channel V1 Client - Class ChangeOfferPurchase (1.8.2)

Reference documentation and code samples for the Google Cloud Channel V1 Client class ChangeOfferPurchase.

List Offers for ChangeOffer purchase.

Generated from protobuf message google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase

Namespace

Google \ Cloud \ Channel \ V1 \ ListPurchasableOffersRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ entitlement string

Required. Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

↳ new_sku string

Optional. Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id}

↳ billing_account string

Optional. Resource name of the new target Billing Account. Provide this Billing Account when setting up billing for a trial subscription. Format: accounts/{account_id}/billingAccounts/{billing_account_id}. This field is only relevant for multi-currency accounts. It should be left empty for single currency accounts.

getEntitlement

Required. Resource name of the entitlement.

Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

Returns
TypeDescription
string

setEntitlement

Required. Resource name of the entitlement.

Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNewSku

Optional. Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id}

Returns
TypeDescription
string

setNewSku

Optional. Resource name of the new target SKU. Provide this SKU when upgrading or downgrading an entitlement. Format: products/{product_id}/skus/{sku_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBillingAccount

Optional. Resource name of the new target Billing Account. Provide this Billing Account when setting up billing for a trial subscription. Format: accounts/{account_id}/billingAccounts/{billing_account_id}.

This field is only relevant for multi-currency accounts. It should be left empty for single currency accounts.

Returns
TypeDescription
string

setBillingAccount

Optional. Resource name of the new target Billing Account. Provide this Billing Account when setting up billing for a trial subscription. Format: accounts/{account_id}/billingAccounts/{billing_account_id}.

This field is only relevant for multi-currency accounts. It should be left empty for single currency accounts.

Parameter
NameDescription
var string
Returns
TypeDescription
$this