Package net.amcintosh.freshbooks.models
Class Tax
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
net.amcintosh.freshbooks.models.Tax
- All Implemented Interfaces:
Cloneable
,Map<String,
,Object> ConvertibleContent
System-wide taxes for invoices.
- See Also:
-
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 extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet unique identifier of business tax exists on.Decimal representing percentage value of tax.Return the objects values as a Map suitable to sending to FreshBooks in a POST or PUT request.long
getId()
Get the unique identifier of this tax within this business.getName()
Identifiable name for the tax.An external number that identifies your tax submission.long
getTaxId()
Duplicate of id.Get the time of last modification.void
setAmount
(BigDecimal amount) Decimal representing percentage value of tax.void
Identifiable name for the tax.void
An external number that identifies your tax submission.Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, set, 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
-
Constructor Details
-
Tax
public Tax()
-
-
Method Details
-
getId
public long getId()Get the unique identifier of this tax within this business.- Returns:
-
getAccountingSystemId
Get unique identifier of business tax exists on.- Returns:
- Accounting System Id
-
getAmount
Decimal representing percentage value of tax.- Returns:
-
setAmount
Decimal representing percentage value of tax.- Parameters:
amount
-
-
getName
Identifiable name for the tax.- Returns:
- e.g. "GST"
-
setName
Identifiable name for the tax.- Parameters:
name
- e.g. "GST"
-
getNumber
An external number that identifies your tax submission.- Returns:
-
setNumber
An external number that identifies your tax submission.- Parameters:
number
-
-
getTaxId
public long getTaxId()Duplicate of id.- Returns:
-
getUpdated
Get the time of last modification.
Note: The API returns this data in "US/Eastern", but it is converted to UTC.- Returns:
- Updated time in UTC
-
getContent
Description copied from interface:ConvertibleContent
Return the objects values as a Map suitable to sending to FreshBooks in a POST or PUT request.- Specified by:
getContent
in interfaceConvertibleContent
- Returns:
-