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

The tax settings of a merchant account. All methods require the admin role.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}" |
| `↳ account` | `int|string` Output only. The ID of the account to which these account tax settings belong. |
| `↳ tax_rules` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.TaxRule>` Tax rules. "Define the tax rules in each region. No tax will be presented if a region has no rule." |

### getName

Identifier. The name of the tax setting.

Format:
"{account_tax.name=accounts/{account}}"

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

### setName

Identifier. The name of the tax setting.

Format:
"{account_tax.name=accounts/{account}}"

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

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

### getAccount

Output only. The ID of the account to which these account tax settings
belong.

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

### setAccount

Output only. The ID of the account to which these account tax settings
belong.

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

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

### getTaxRules

Tax rules. "Define the tax rules in each region.

No tax will be presented if a region has no rule."

| **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.TaxRule>` |   |

### setTaxRules

Tax rules. "Define the tax rules in each region.

No tax will be presented if a region has no rule."

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

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