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

Describes the accepted terms of service.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ terms_of_service` | `string` The accepted [termsOfService](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService). |
| `↳ accepted_by` | `string` The account where the acceptance was recorded. This can be the account itself or, in the case of subaccounts, the MCA account. |
| `↳ valid_until` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` When set, it states that the accepted [TermsOfService](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService) is only valid until the end of this date (in UTC). A new one must be accepted before then. The information of the required [TermsOfService](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService) is found in the [Required](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/Required) message. |

### getTermsOfService

The accepted
[termsOfService](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService).

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

### setTermsOfService

The accepted
[termsOfService](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService).

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

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

### getAcceptedBy

The account where the acceptance was recorded. This can be the account
itself or, in the case of subaccounts, the MCA account.

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

### setAcceptedBy

The account where the acceptance was recorded. This can be the account
itself or, in the case of subaccounts, the MCA account.

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

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

### getValidUntil

When set, it states that the accepted
[TermsOfService](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService)
is only valid until the end of this date (in UTC). A new one must be
accepted before then. The information of the required
[TermsOfService](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService)
is found in the [Required](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/Required) message.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html|null` |   |

### hasValidUntil

### clearValidUntil

### setValidUntil

When set, it states that the accepted
[TermsOfService](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService)
is only valid until the end of this date (in UTC). A new one must be
accepted before then. The information of the required
[TermsOfService](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/google.shopping.merchant.accounts.v1main.TermsOfService)
is found in the [Required](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/Required) message.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` |

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