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 \ V1betaMethods
__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<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 |
Google\Protobuf\Internal\RepeatedField |
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<TaxRule>
|
Returns | |
---|---|
Type | Description |
$this |