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

Time spent in various aspects from order to the delivery of the product.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ min_transit_days` | `int` Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `min_transit_days`, `max_transit_days` or `transit_time_table` must be set, but not both. |
| `↳ max_transit_days` | `int` Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to `min_transit_days`. |
| `↳ cutoff_time` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.CutoffTime` Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. |
| `↳ min_handling_days` | `int` Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. 'min_handling_days' and 'max_handling_days' should be either set or not set at the same time. |
| `↳ max_handling_days` | `int` Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `min_handling_days`. 'min_handling_days' and 'max_handling_days' should be either set or not set at the same time. |
| `↳ transit_time_table` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.TransitTable` Transit time table, number of business days spent in transit based on row and column dimensions. Either `min_transit_days`, `max_transit_days` or `transit_time_table` can be set, but not both. |
| `↳ handling_business_day_config` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessDayConfig` The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. |
| `↳ transit_business_day_config` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.BusinessDayConfig` The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed. |
| `↳ warehouse_based_delivery_times` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.WarehouseBasedDeliveryTime>` Optional. Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in \[delivery time\]\[\[google.shopping.content.bundles.ShippingSetting.DeliveryTime\] should be set. |

### getMinTransitDays

Minimum number of business days that is spent in transit. 0 means same
day delivery, 1 means next day delivery.

Either `min_transit_days`, `max_transit_days` or
`transit_time_table` must be set, but not both.

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

### hasMinTransitDays

### clearMinTransitDays

### setMinTransitDays

Minimum number of business days that is spent in transit. 0 means same
day delivery, 1 means next day delivery.

Either `min_transit_days`, `max_transit_days` or
`transit_time_table` must be set, but not both.

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

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

### getMaxTransitDays

Maximum number of business days that is spent in transit. 0 means same
day delivery, 1 means next day delivery. Must be greater than or equal
to `min_transit_days`.

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

### hasMaxTransitDays

### clearMaxTransitDays

### setMaxTransitDays

Maximum number of business days that is spent in transit. 0 means same
day delivery, 1 means next day delivery. Must be greater than or equal
to `min_transit_days`.

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

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

### getCutoffTime

Business days cutoff time definition.

If not configured the cutoff time will be defaulted to 8AM PST.

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

### hasCutoffTime

### clearCutoffTime

### setCutoffTime

Business days cutoff time definition.

If not configured the cutoff time will be defaulted to 8AM PST.

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

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

### getMinHandlingDays

Minimum number of business days spent before an order is shipped.

0 means same day shipped, 1 means next day shipped.
'min_handling_days' and 'max_handling_days' should be either set or not set
at the same time.

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

### hasMinHandlingDays

### clearMinHandlingDays

### setMinHandlingDays

Minimum number of business days spent before an order is shipped.

0 means same day shipped, 1 means next day shipped.
'min_handling_days' and 'max_handling_days' should be either set or not set
at the same time.

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

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

### getMaxHandlingDays

Maximum number of business days spent before an order is shipped.

0 means same day shipped, 1 means next day shipped.
Must be greater than or equal to `min_handling_days`.
'min_handling_days' and 'max_handling_days' should be either set or not set
at the same time.

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

### hasMaxHandlingDays

### clearMaxHandlingDays

### setMaxHandlingDays

Maximum number of business days spent before an order is shipped.

0 means same day shipped, 1 means next day shipped.
Must be greater than or equal to `min_handling_days`.
'min_handling_days' and 'max_handling_days' should be either set or not set
at the same time.

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

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

### getTransitTimeTable

Transit time table, number of business days spent in transit based on row
and column dimensions. Either `min_transit_days`, `max_transit_days` or
`transit_time_table` can be set, but not both.

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

### hasTransitTimeTable

### clearTransitTimeTable

### setTransitTimeTable

Transit time table, number of business days spent in transit based on row
and column dimensions. Either `min_transit_days`, `max_transit_days` or
`transit_time_table` can be set, but not both.

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

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

### getHandlingBusinessDayConfig

The business days during which orders can be handled.

If not provided, Monday to Friday business days will be assumed.

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

### hasHandlingBusinessDayConfig

### clearHandlingBusinessDayConfig

### setHandlingBusinessDayConfig

The business days during which orders can be handled.

If not provided, Monday to Friday business days will be assumed.

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

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

### getTransitBusinessDayConfig

The business days during which orders can be in-transit.

If not provided, Monday to Friday business days will be assumed.

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

### hasTransitBusinessDayConfig

### clearTransitBusinessDayConfig

### setTransitBusinessDayConfig

The business days during which orders can be in-transit.

If not provided, Monday to Friday business days will be assumed.

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

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

### getWarehouseBasedDeliveryTimes

Optional. Indicates that the delivery time should be calculated per
warehouse (shipping origin location) based on the settings of the selected
carrier. When set, no other transit time related field in \[delivery
time\]\[\[google.shopping.content.bundles.ShippingSetting.DeliveryTime\] should
be set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.WarehouseBasedDeliveryTime>` |   |

### setWarehouseBasedDeliveryTimes

Optional. Indicates that the delivery time should be calculated per
warehouse (shipping origin location) based on the settings of the selected
carrier. When set, no other transit time related field in \[delivery
time\]\[\[google.shopping.content.bundles.ShippingSetting.DeliveryTime\] should
be set.

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

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