target.apidocs.com.google.api.services.content.model.AccountTaxTaxRule.html Maven / Gradle / Ivy
AccountTaxTaxRule (Content API for Shopping v2.1-rev20240609-2.0.0)
com.google.api.services.content.model
Class AccountTaxTaxRule
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.AccountTaxTaxRule
-
public final class AccountTaxTaxRule
extends com.google.api.client.json.GenericJson
Tax calculation rule to apply in a state or province (US only).
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
AccountTaxTaxRule()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AccountTaxTaxRule
clone()
String
getCountry()
Country code in which tax is applicable.
BigInteger
getLocationId()
Required.
String
getRatePercent()
Explicit tax rate in percent, represented as a floating point number without the percentage
character.
Boolean
getShippingTaxed()
If true, shipping charges are also taxed.
Boolean
getUseGlobalRate()
Whether the tax rate is taken from a global tax table or specified explicitly.
AccountTaxTaxRule
set(String fieldName,
Object value)
AccountTaxTaxRule
setCountry(String country)
Country code in which tax is applicable.
AccountTaxTaxRule
setLocationId(BigInteger locationId)
Required.
AccountTaxTaxRule
setRatePercent(String ratePercent)
Explicit tax rate in percent, represented as a floating point number without the percentage
character.
AccountTaxTaxRule
setShippingTaxed(Boolean shippingTaxed)
If true, shipping charges are also taxed.
AccountTaxTaxRule
setUseGlobalRate(Boolean useGlobalRate)
Whether the tax rate is taken from a global tax table or specified explicitly.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCountry
public String getCountry()
Country code in which tax is applicable.
- Returns:
- value or
null
for none
-
setCountry
public AccountTaxTaxRule setCountry(String country)
Country code in which tax is applicable.
- Parameters:
country
- country or null
for none
-
getLocationId
public BigInteger getLocationId()
Required. State (or province) is which the tax is applicable, described by its location ID
(also called criteria ID).
- Returns:
- value or
null
for none
-
setLocationId
public AccountTaxTaxRule setLocationId(BigInteger locationId)
Required. State (or province) is which the tax is applicable, described by its location ID
(also called criteria ID).
- Parameters:
locationId
- locationId or null
for none
-
getRatePercent
public String getRatePercent()
Explicit tax rate in percent, represented as a floating point number without the percentage
character. Must not be negative.
- Returns:
- value or
null
for none
-
setRatePercent
public AccountTaxTaxRule setRatePercent(String ratePercent)
Explicit tax rate in percent, represented as a floating point number without the percentage
character. Must not be negative.
- Parameters:
ratePercent
- ratePercent or null
for none
-
getShippingTaxed
public Boolean getShippingTaxed()
If true, shipping charges are also taxed.
- Returns:
- value or
null
for none
-
setShippingTaxed
public AccountTaxTaxRule setShippingTaxed(Boolean shippingTaxed)
If true, shipping charges are also taxed.
- Parameters:
shippingTaxed
- shippingTaxed or null
for none
-
getUseGlobalRate
public Boolean getUseGlobalRate()
Whether the tax rate is taken from a global tax table or specified explicitly.
- Returns:
- value or
null
for none
-
setUseGlobalRate
public AccountTaxTaxRule setUseGlobalRate(Boolean useGlobalRate)
Whether the tax rate is taken from a global tax table or specified explicitly.
- Parameters:
useGlobalRate
- useGlobalRate or null
for none
-
set
public AccountTaxTaxRule set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public AccountTaxTaxRule clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy