Package com.xero.models.accounting
Class ManualJournalLine
java.lang.Object
com.xero.models.accounting.ManualJournalLine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountCode(String accountCode) See AccountsSee AccountsaddTrackingItem(TrackingCategory trackingItem) Optional Tracking Category – see Tracking.description(String description) Description for journal linebooleanSee AccountsSee AccountsDescription for journal lineis the line blanktotal for line.The calculated tax amount based on the TaxType and LineAmountThe tax type from TaxRatesOptional Tracking Category – see Tracking.inthashCode()is the line blanklineAmount(Double lineAmount) total for line.voidsetAccountCode(String accountCode) See AccountsvoidsetAccountID(UUID accountID) See AccountsvoidsetDescription(String description) Description for journal linevoidsetIsBlank(Boolean isBlank) is the line blankvoidsetLineAmount(Double lineAmount) total for line.voidsetTaxAmount(Double taxAmount) The calculated tax amount based on the TaxType and LineAmountvoidsetTaxType(String taxType) The tax type from TaxRatesvoidsetTracking(List<TrackingCategory> tracking) Optional Tracking Category – see Tracking.The calculated tax amount based on the TaxType and LineAmountThe tax type from TaxRatestoString()tracking(List<TrackingCategory> tracking) Optional Tracking Category – see Tracking.
-
Constructor Details
-
ManualJournalLine
public ManualJournalLine()
-
-
Method Details
-
lineAmount
total for line. Debits are positive, credits are negative value- Parameters:
lineAmount- Double- Returns:
- ManualJournalLine
-
getLineAmount
total for line. Debits are positive, credits are negative value- Returns:
- lineAmount
-
setLineAmount
total for line. Debits are positive, credits are negative value- Parameters:
lineAmount- Double
-
accountCode
See Accounts- Parameters:
accountCode- String- Returns:
- ManualJournalLine
-
getAccountCode
-
setAccountCode
-
accountID
See Accounts- Parameters:
accountID- UUID- Returns:
- ManualJournalLine
-
getAccountID
-
setAccountID
-
description
Description for journal line- Parameters:
description- String- Returns:
- ManualJournalLine
-
getDescription
-
setDescription
Description for journal line- Parameters:
description- String
-
taxType
The tax type from TaxRates- Parameters:
taxType- String- Returns:
- ManualJournalLine
-
getTaxType
-
setTaxType
-
tracking
Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.- Parameters:
tracking- List<TrackingCategory>- Returns:
- ManualJournalLine
-
addTrackingItem
Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.- Parameters:
trackingItem- TrackingCategory- Returns:
- ManualJournalLine
-
getTracking
Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.- Returns:
- tracking
-
setTracking
Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.- Parameters:
tracking- List<TrackingCategory>
-
taxAmount
The calculated tax amount based on the TaxType and LineAmount- Parameters:
taxAmount- Double- Returns:
- ManualJournalLine
-
getTaxAmount
The calculated tax amount based on the TaxType and LineAmount- Returns:
- taxAmount
-
setTaxAmount
The calculated tax amount based on the TaxType and LineAmount- Parameters:
taxAmount- Double
-
isBlank
is the line blank- Parameters:
isBlank- Boolean- Returns:
- ManualJournalLine
-
getIsBlank
-
setIsBlank
-
equals
-
hashCode
-
toString
-