Google Shopping Merchant Products V1beta Client - Class Tax (0.2.0)

Reference documentation and code samples for the Google Shopping Merchant Products V1beta Client class Tax.

The Tax of the product.

Generated from protobuf message google.shopping.merchant.products.v1beta.Tax

Namespace

Google \ Shopping \ Merchant \ Products \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ rate float

The percentage of tax rate that applies to the item price.

↳ country string

The country within which the item is taxed, specified as a CLDR territory code.

↳ region string

The geographic region to which the tax rate applies.

↳ tax_ship bool

Set to true if tax is charged on shipping.

↳ location_id int|string

The numeric ID of a location that the tax rate applies to as defined in the AdWords API.

↳ postal_code string

The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94, 94002-95460, 94-95*.

getRate

The percentage of tax rate that applies to the item price.

Returns
Type Description
float

setRate

The percentage of tax rate that applies to the item price.

Parameter
Name Description
var float
Returns
Type Description
$this

getCountry

The country within which the item is taxed, specified as a CLDR territory code.

Returns
Type Description
string

setCountry

The country within which the item is taxed, specified as a CLDR territory code.

Parameter
Name Description
var string
Returns
Type Description
$this

getRegion

The geographic region to which the tax rate applies.

Returns
Type Description
string

setRegion

The geographic region to which the tax rate applies.

Parameter
Name Description
var string
Returns
Type Description
$this

getTaxShip

Set to true if tax is charged on shipping.

Returns
Type Description
bool

setTaxShip

Set to true if tax is charged on shipping.

Parameter
Name Description
var bool
Returns
Type Description
$this

getLocationId

The numeric ID of a location that the tax rate applies to as defined in the AdWords API.

Returns
Type Description
int|string

setLocationId

The numeric ID of a location that the tax rate applies to as defined in the AdWords API.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getPostalCode

The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length.

Examples: 94114, 94, 94002-95460, 94-95*.

Returns
Type Description
string

setPostalCode

The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length.

Examples: 94114, 94, 94002-95460, 94-95*.

Parameter
Name Description
var string
Returns
Type Description
$this