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

A fulfillment warehouse, which stores and handles inventory.

Generated from protobuf message `google.shopping.merchant.accounts.v1.Warehouse`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the warehouse. Must be unique within account. |
| `↳ shipping_address` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1.Address` Required. Shipping address of the warehouse. |
| `↳ cutoff_time` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1.WarehouseCutoffTime` Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code. |
| `↳ handling_days` | `int|string` Required. The number of days it takes for this warehouse to pack up and ship an item. This is on the warehouse level, but can be overridden on the offer level based on the attributes of an item. |
| `↳ business_day_config` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1.BusinessDayConfig` Business days of the warehouse. If not set, will be Monday to Friday by default. |

### getName

Required. The name of the warehouse. Must be unique within account.

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

### hasName

### clearName

### setName

Required. The name of the warehouse. Must be unique within account.

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

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

### getShippingAddress

Required. Shipping address of the warehouse.

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

### hasShippingAddress

### clearShippingAddress

### setShippingAddress

Required. Shipping address of the warehouse.

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

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

### getCutoffTime

Required. The latest time of day that an order can be accepted and begin
processing. Later orders will be processed in the next day. The time is
based on the warehouse postal code.

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

### hasCutoffTime

### clearCutoffTime

### setCutoffTime

Required. The latest time of day that an order can be accepted and begin
processing. Later orders will be processed in the next day. The time is
based on the warehouse postal code.

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

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

### getHandlingDays

Required. The number of days it takes for this warehouse to pack up and
ship an item. This is on the warehouse level, but can be overridden on the
offer level based on the attributes of an item.

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

### hasHandlingDays

### clearHandlingDays

### setHandlingDays

Required. The number of days it takes for this warehouse to pack up and
ship an item. This is on the warehouse level, but can be overridden on the
offer level based on the attributes of an item.

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

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

### getBusinessDayConfig

Business days of the warehouse.

If not set, will be Monday to Friday by default.

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

### hasBusinessDayConfig

### clearBusinessDayConfig

### setBusinessDayConfig

Business days of the warehouse.

If not set, will be Monday to Friday by default.

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

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