# Google Shopping Merchant Accounts V1beta 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

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta 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.v1beta.OnlineReturnPolicy.ReturnShippingFee`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1beta \\ 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/V1beta.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/V1beta.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` |   |