# Google Cloud Channel V1 Client - Class PurchasableOffer (2.4.1)

2.4.1 (latest) 2.4.0 2.3.1 2.2.1 2.1.4 2.0.0 1.9.5 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Channel V1 Client class PurchasableOffer.

Offer that you can purchase for a customer. This is used in the
ListPurchasableOffer API response.

Generated from protobuf message `google.cloud.channel.v1.PurchasableOffer`

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ offer` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.Offer` Offer. |
| `↳ price_reference_id` | `string` Optional. Price reference ID for the offer. Only for offers that require additional price information. Used to guarantee that the pricing is consistent between quoting the offer and placing the order. |

### getOffer

Offer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.Offer|null` |   |

### hasOffer

### clearOffer

### setOffer

Offer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.Offer` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPriceReferenceId

Optional. Price reference ID for the offer. Only for offers that require
additional price information. Used to guarantee that the pricing is
consistent between quoting the offer and placing the order.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPriceReferenceId

Optional. Price reference ID for the offer. Only for offers that require
additional price information. Used to guarantee that the pricing is
consistent between quoting the offer and placing the order.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |