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

[CheckoutSettings](https://support.google.com/merchants/answer/13945960) for
a specific merchant.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the program configuration settings. Format: `accounts/{account}/programs/{program}/checkoutSettings` |
| `↳ uri_settings` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1.UriSettings` URI settings for cart or checkout URL. |
| `↳ eligible_destinations` | `int[]` Optional. Required for the create operation. The destinations (also known as [Marketing methods](https://support.google.com/merchants/answer/15130232)) to which the checkout program applies. Valid destination values are `SHOPPING_ADS` and `FREE_LISTINGS`. |
| `↳ enrollment_state` | `int` Output only. Reflects the merchant enrollment state in `Checkout` program. |
| `↳ review_state` | `int` Output only. Reflects the merchant review state in `Checkout` program. This is set based on the data quality reviews of the URL provided by the merchant. A merchant with enrollment state as `ENROLLED` can be in the following review states: `IN_REVIEW`, `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of `ENROLLED` before a review can begin for the merchant.For more details, check the help center doc. |
| `↳ effective_uri_settings` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1.UriSettings` Output only. The effective value of `uri_settings` for a given merchant. If account level settings are present then this value will be a copy of url settings. Otherwise, it will have the value of the parent account (for only marketplace sellers). |
| `↳ effective_enrollment_state` | `int` Output only. The effective value of enrollment_state for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account (for only marketplace sellers). |
| `↳ effective_review_state` | `int` Output only. The effective value of `review_state` for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account (for only marketplace sellers). |

### getName

Identifier. The resource name of the program configuration settings.

Format: `accounts/{account}/programs/{program}/checkoutSettings`

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

### setName

Identifier. The resource name of the program configuration settings.

Format: `accounts/{account}/programs/{program}/checkoutSettings`

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

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

### getUriSettings

URI settings for cart or checkout URL.

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

### hasUriSettings

### clearUriSettings

### setUriSettings

URI settings for cart or checkout URL.

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

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

### getEligibleDestinations

Optional. Required for the create operation. The destinations (also known
as [Marketing
methods](https://support.google.com/merchants/answer/15130232)) to which
the checkout program applies. Valid destination values are `SHOPPING_ADS`
and `FREE_LISTINGS`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setEligibleDestinations

Optional. Required for the create operation. The destinations (also known
as [Marketing
methods](https://support.google.com/merchants/answer/15130232)) to which
the checkout program applies. Valid destination values are `SHOPPING_ADS`
and `FREE_LISTINGS`.

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

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

### getEnrollmentState

Output only. Reflects the merchant enrollment state in `Checkout` program.

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

### hasEnrollmentState

### clearEnrollmentState

### setEnrollmentState

Output only. Reflects the merchant enrollment state in `Checkout` program.

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

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

### getReviewState

Output only. Reflects the merchant review state in `Checkout` program.

This is set based on the data quality reviews of the URL provided by
the merchant.
A merchant with enrollment state
as `ENROLLED` can be in the following review states: `IN_REVIEW`,
`APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
`ENROLLED` before a review can begin for the merchant.For more details,
check the help center doc.

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

### hasReviewState

### clearReviewState

### setReviewState

Output only. Reflects the merchant review state in `Checkout` program.

This is set based on the data quality reviews of the URL provided by
the merchant.
A merchant with enrollment state
as `ENROLLED` can be in the following review states: `IN_REVIEW`,
`APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
`ENROLLED` before a review can begin for the merchant.For more details,
check the help center doc.

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

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

### getEffectiveUriSettings

Output only. The effective value of `uri_settings` for a given merchant. If
account level settings are present then this value will be a copy of url
settings. Otherwise, it will have the value of the parent account (for only
marketplace sellers).

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

### hasEffectiveUriSettings

### clearEffectiveUriSettings

### setEffectiveUriSettings

Output only. The effective value of `uri_settings` for a given merchant. If
account level settings are present then this value will be a copy of url
settings. Otherwise, it will have the value of the parent account (for only
marketplace sellers).

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

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

### getEffectiveEnrollmentState

Output only. The effective value of enrollment_state for a given merchant
ID. If account level settings are present then this value will be a copy of
the account level settings. Otherwise, it will have the value of the parent
account (for only marketplace sellers).

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

### hasEffectiveEnrollmentState

### clearEffectiveEnrollmentState

### setEffectiveEnrollmentState

Output only. The effective value of enrollment_state for a given merchant
ID. If account level settings are present then this value will be a copy of
the account level settings. Otherwise, it will have the value of the parent
account (for only marketplace sellers).

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

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

### getEffectiveReviewState

Output only. The effective value of `review_state` for a given merchant ID.

If account level settings are present then this value will be a copy of the
account level settings. Otherwise, it will have the value of the parent
account (for only marketplace sellers).

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

### hasEffectiveReviewState

### clearEffectiveReviewState

### setEffectiveReviewState

Output only. The effective value of `review_state` for a given merchant ID.

If account level settings are present then this value will be a copy of the
account level settings. Otherwise, it will have the value of the parent
account (for only marketplace sellers).

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

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