target.apidocs.com.google.api.services.content.model.AccountTax.html Maven / Gradle / Ivy
AccountTax (Content API for Shopping v2.1-rev20240609-2.0.0)
com.google.api.services.content.model
Class AccountTax
- 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.AccountTax
-
public final class AccountTax
extends com.google.api.client.json.GenericJson
The tax settings of a merchant account. All methods require the admin role.
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
AccountTax()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AccountTax
clone()
BigInteger
getAccountId()
Required.
String
getKind()
Identifies what kind of resource this is.
List<AccountTaxTaxRule>
getRules()
Tax rules.
AccountTax
set(String fieldName,
Object value)
AccountTax
setAccountId(BigInteger accountId)
Required.
AccountTax
setKind(String kind)
Identifies what kind of resource this is.
AccountTax
setRules(List<AccountTaxTaxRule> rules)
Tax rules.
-
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
-
getAccountId
public BigInteger getAccountId()
Required. The ID of the account to which these account tax settings belong.
- Returns:
- value or
null
for none
-
setAccountId
public AccountTax setAccountId(BigInteger accountId)
Required. The ID of the account to which these account tax settings belong.
- Parameters:
accountId
- accountId or null
for none
-
getKind
public String getKind()
Identifies what kind of resource this is. Value: the fixed string "`content#accountTax`".
- Returns:
- value or
null
for none
-
setKind
public AccountTax setKind(String kind)
Identifies what kind of resource this is. Value: the fixed string "`content#accountTax`".
- Parameters:
kind
- kind or null
for none
-
getRules
public List<AccountTaxTaxRule> getRules()
Tax rules. Updating the tax rules will enable "US" taxes (not reversible). Defining no rules is
equivalent to not charging tax at all.
- Returns:
- value or
null
for none
-
setRules
public AccountTax setRules(List<AccountTaxTaxRule> rules)
Tax rules. Updating the tax rules will enable "US" taxes (not reversible). Defining no rules is
equivalent to not charging tax at all.
- Parameters:
rules
- rules or null
for none
-
set
public AccountTax set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public AccountTax 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