public final class ProductTax
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ProductTax() |
Modifier and Type | Method and Description |
---|---|
ProductTax |
clone() |
String |
getCountry()
The country within which the item is taxed, specified as a CLDR territory code.
|
Long |
getLocationId()
The numeric ID of a location that the tax rate applies to as defined in the Google Ads API.
|
String |
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.
|
Double |
getRate()
The percentage of tax rate that applies to the item price.
|
String |
getRegion()
The geographic region to which the tax rate applies.
|
Boolean |
getTaxShip()
Should be set to true if tax is charged on shipping.
|
ProductTax |
set(String fieldName,
Object value) |
ProductTax |
setCountry(String country)
The country within which the item is taxed, specified as a CLDR territory code.
|
ProductTax |
setLocationId(Long locationId)
The numeric ID of a location that the tax rate applies to as defined in the Google Ads API.
|
ProductTax |
setPostalCode(String postalCode)
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.
|
ProductTax |
setRate(Double rate)
The percentage of tax rate that applies to the item price.
|
ProductTax |
setRegion(String region)
The geographic region to which the tax rate applies.
|
ProductTax |
setTaxShip(Boolean taxShip)
Should be set to true if tax is charged on shipping.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getCountry()
null
for nonepublic ProductTax setCountry(String country)
country
- country or null
for nonepublic Long getLocationId()
null
for nonepublic ProductTax setLocationId(Long locationId)
locationId
- locationId or null
for nonepublic String getPostalCode()
null
for nonepublic ProductTax setPostalCode(String postalCode)
postalCode
- postalCode or null
for nonepublic Double getRate()
null
for nonepublic ProductTax setRate(Double rate)
rate
- rate or null
for nonepublic String getRegion()
null
for nonepublic ProductTax setRegion(String region)
region
- region or null
for nonepublic Boolean getTaxShip()
null
for nonepublic ProductTax setTaxShip(Boolean taxShip)
taxShip
- taxShip or null
for nonepublic ProductTax set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ProductTax clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.