Package net.amcintosh.freshbooks.models
Class OtherIncome
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
net.amcintosh.freshbooks.models.OtherIncome
- All Implemented Interfaces:
Cloneable
,Map<String,
,Object> ConvertibleContent
public class OtherIncome
extends com.google.api.client.json.GenericJson
implements ConvertibleContent
Other Income is for recording income that doesn't require an invoice and is received through other means.
- 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 TypeMethodDescriptionAmount of external income.Get category for other income.Return the objects values as a Map suitable to sending to FreshBooks in a POST or PUT request.Get the time of first creation.getDate()
Get the date the income was received.long
Get the unique identifier of this income within this business.getNote()
Descriptive text for other income.Type of payment.Source of external income.long
Get the unique identifier of source of external income.getTaxes()
List of taxes of external income.Get the time of last modification.long
Get the unique identifier of user.Get the visibility state: active, deleted, or archivedvoid
Amount of external income.void
setCategory
(OtherIncomeCategory category) Set category for other income.void
Set the date the income was received.void
Descriptive text for other income.void
setPaymentType
(String paymentType) Type of payment.void
Source of external income.void
List of taxes of external income.void
setVisState
(VisState visState) Set the visibility state of the item.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
-
OtherIncome
public OtherIncome()
-
-
Method Details
-
getIncomeId
public long getIncomeId()Get the unique identifier of this income within this business.- Returns:
- id
-
getDate
Get the date the income was received.- Returns:
- date
-
setDate
Set the date the income was received.- Parameters:
date
- of income transaction
-
getNote
Descriptive text for other income.- Returns:
- E.g. "Cool beans!"
-
setNote
Descriptive text for other income.- Parameters:
note
- E.g. "Cool beans!"
-
getCategory
Get category for other income.- Returns:
- Enum of the other income category
-
setCategory
Set category for other income.- Parameters:
category
- Category value
-
getPaymentType
Type of payment.- Returns:
- E.g. "Check", "Credit", "Cash", etc.
-
setPaymentType
Type of payment.- Parameters:
paymentType
- E.g. "Check", "Credit", "Cash", etc.
-
getSourceId
public long getSourceId()Get the unique identifier of source of external income.- Returns:
- id
-
getSource
Source of external income.- Returns:
- E.g. Shopify, Etsy, Farmers’ Market
-
setSource
Source of external income.- Parameters:
source
- E.g. Shopify, Etsy, Farmers’ Market
-
getAmount
Amount of external income.- Returns:
- Money
-
setAmount
Amount of external income.- Parameters:
money
- Amount of external income
-
getUserId
public long getUserId()Get the unique identifier of user.- Returns:
- id
-
getTaxes
List of taxes of external income.- Returns:
- List of Taxes
-
setTaxes
List of taxes of external income.- Parameters:
taxes
- list of taxes
-
getCreated
Get the time of first creation.
Note: The API returns this data in "US/Eastern", but it is converted to UTC.- Returns:
- Created time in UTC
-
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
-
getVisState
Get the visibility state: active, deleted, or archived- Returns:
- Enum of the visibility state.
- See Also:
-
setVisState
Set the visibility state of the item.- Parameters:
visState
- VisState value- See Also:
-
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:
-