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 \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ rate
float
The percentage of tax rate that applies to the item price.
↳ country
↳ 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.
float
setRate
The percentage of tax rate that applies to the item price.
var
float
$this
getCountry
The country within which the item is taxed, specified as a CLDR territory code .
string
setCountry
The country within which the item is taxed, specified as a CLDR territory code .
var
string
$this
getRegion
The geographic region to which the tax rate applies.
string
setRegion
The geographic region to which the tax rate applies.
var
string
$this
getTaxShip
Set to true if tax is charged on shipping.
bool
setTaxShip
Set to true if tax is charged on shipping.
var
bool
$this
getLocationId
The numeric ID of a location that the tax rate applies to as defined in the AdWords API .
int|string
setLocationId
The numeric ID of a location that the tax rate applies to as defined in the AdWords API .
var
int|string
$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*.
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*.
var
string
$this