# Google Shopping Merchant Accounts V1beta Client - Class UpdateOnlineReturnPolicyRequest (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 UpdateOnlineReturnPolicyRequest.

Request message for the `UpdateOnlineReturnPolicy` method. The method
supports field masks and when the mask is provided, only the fields specified
in the mask are updated.

Generated from protobuf message `google.shopping.merchant.accounts.v1beta.UpdateOnlineReturnPolicyRequest`

## Namespace

Google \\ Shopping \\ Merchant \\ Accounts \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ online_return_policy` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.OnlineReturnPolicy` Required. The online return policy to update. The online return policy's `name` field is used to identify the online return policy to be updated. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `accept_defective_only` - `accept_exchange` - `item_conditions` - `policy` - `process_refund_days` - `restocking_fee` - `return_methods` - `return_policy_uri` - `return_shipping_fee` |

### getOnlineReturnPolicy

Required. The online return policy to update.

The online return policy's `name` field is used to identify the
online return policy to be updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.OnlineReturnPolicy|null` |   |

### hasOnlineReturnPolicy

### clearOnlineReturnPolicy

### setOnlineReturnPolicy

Required. The online return policy to update.

The online return policy's `name` field is used to identify the
online return policy to be updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.OnlineReturnPolicy` |

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

### getUpdateMask

Optional. List of fields being updated.

The following fields are supported (in both `snake_case` and
`lowerCamelCase`):

- `accept_defective_only`
- `accept_exchange`
- `item_conditions`
- `policy`
- `process_refund_days`
- `restocking_fee`
- `return_methods`
- `return_policy_uri`
- `return_shipping_fee`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask|null` |   |

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. List of fields being updated.

The following fields are supported (in both `snake_case` and
`lowerCamelCase`):

- `accept_defective_only`
- `accept_exchange`
- `item_conditions`
- `policy`
- `process_refund_days`
- `restocking_fee`
- `return_methods`
- `return_policy_uri`
- `return_shipping_fee`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `onlineReturnPolicy` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.OnlineReturnPolicy` Required. The online return policy to update. The online return policy's `name` field is used to identify the online return policy to be updated. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. List of fields being updated. The following fields are supported (in both `snake_case` and `lowerCamelCase`): - `accept_defective_only` - `accept_exchange` - `item_conditions` - `policy` - `process_refund_days` - `restocking_fee` - `return_methods` - `return_policy_uri` - `return_shipping_fee` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.UpdateOnlineReturnPolicyRequest` |   |