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
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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} |
getEntitlement
Required. Resource name of the entitlement.
Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
string |
|
setEntitlement
Required. Resource name of the entitlement.
Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
Generated from protobuf field string entitlement = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$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}
Generated from protobuf field string new_sku = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
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}
Generated from protobuf field string new_sku = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|