# Google Shopping Merchant Accounts V1 Client - Class ReturnShippingFee (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.0 1.0.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.3 0.2.0 0.1.0 Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class ReturnShippingFee.

The return shipping fee. This can either be a fixed fee or a boolean to
indicate that the customer pays the actual shipping cost.

Generated from protobuf message `google.shopping.merchant.accounts.v1.OnlineReturnPolicy.ReturnShippingFee`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1 \\ OnlineReturnPolicy

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Required. Type of return shipping fee. |
| `↳ fixed_fee` | `https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.Price.html` Fixed return shipping fee amount. This value is only applicable when type is `FIXED`. We will treat the return shipping fee as free if type is `FIXED` and this value is not set. |

### getType

Required. Type of return shipping fee.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1.OnlineReturnPolicy.ReturnShippingFee.Type). |

### setType

Required. Type of return shipping fee.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1.OnlineReturnPolicy.ReturnShippingFee.Type). |

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

### getFixedFee

Fixed return shipping fee amount. This value is only applicable when type
is `FIXED`. We will treat the return shipping fee as free if type is
`FIXED` and this value is not set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.Price.html|null` |   |

### hasFixedFee

### clearFixedFee

### setFixedFee

Fixed return shipping fee amount. This value is only applicable when type
is `FIXED`. We will treat the return shipping fee as free if type is
`FIXED` and this value is not set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.Price.html` |

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