Package com.xero.models.accounting
Class ManualJournalLine
- java.lang.Object
-
- com.xero.models.accounting.ManualJournalLine
-
public class ManualJournalLine extends Object
ManualJournalLine
-
-
Constructor Summary
Constructors Constructor Description ManualJournalLine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManualJournalLineaccountCode(String accountCode)See AccountsManualJournalLineaccountID(UUID accountID)See AccountsManualJournalLineaddTrackingItem(TrackingCategory trackingItem)Optional Tracking Category – see Tracking.ManualJournalLinedescription(String description)Description for journal linebooleanequals(Object o)StringgetAccountCode()See AccountsUUIDgetAccountID()See AccountsStringgetDescription()Description for journal lineBooleangetIsBlank()is the line blankDoublegetLineAmount()total for line.DoublegetTaxAmount()The calculated tax amount based on the TaxType and LineAmountStringgetTaxType()The tax type from TaxRatesList<TrackingCategory>getTracking()Optional Tracking Category – see Tracking.inthashCode()ManualJournalLineisBlank(Boolean isBlank)is the line blankManualJournalLinelineAmount(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.ManualJournalLinetaxAmount(Double taxAmount)The calculated tax amount based on the TaxType and LineAmountManualJournalLinetaxType(String taxType)The tax type from TaxRatesStringtoString()ManualJournalLinetracking(List<TrackingCategory> tracking)Optional Tracking Category – see Tracking.
-
-
-
Method Detail
-
lineAmount
public ManualJournalLine lineAmount(Double lineAmount)
total for line. Debits are positive, credits are negative value- Parameters:
lineAmount- Double- Returns:
- ManualJournalLine
-
getLineAmount
public Double getLineAmount()
total for line. Debits are positive, credits are negative value- Returns:
- lineAmount
-
setLineAmount
public void setLineAmount(Double lineAmount)
total for line. Debits are positive, credits are negative value- Parameters:
lineAmount- Double
-
accountCode
public ManualJournalLine accountCode(String accountCode)
See Accounts- Parameters:
accountCode- String- Returns:
- ManualJournalLine
-
getAccountCode
public String getAccountCode()
See Accounts- Returns:
- accountCode
-
setAccountCode
public void setAccountCode(String accountCode)
See Accounts- Parameters:
accountCode- String
-
accountID
public ManualJournalLine accountID(UUID accountID)
See Accounts- Parameters:
accountID- UUID- Returns:
- ManualJournalLine
-
getAccountID
public UUID getAccountID()
See Accounts- Returns:
- accountID
-
setAccountID
public void setAccountID(UUID accountID)
See Accounts- Parameters:
accountID- UUID
-
description
public ManualJournalLine description(String description)
Description for journal line- Parameters:
description- String- Returns:
- ManualJournalLine
-
getDescription
public String getDescription()
Description for journal line- Returns:
- description
-
setDescription
public void setDescription(String description)
Description for journal line- Parameters:
description- String
-
taxType
public ManualJournalLine taxType(String taxType)
The tax type from TaxRates- Parameters:
taxType- String- Returns:
- ManualJournalLine
-
getTaxType
public String getTaxType()
The tax type from TaxRates- Returns:
- taxType
-
setTaxType
public void setTaxType(String taxType)
The tax type from TaxRates- Parameters:
taxType- String
-
tracking
public ManualJournalLine tracking(List<TrackingCategory> tracking)
Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.- Parameters:
tracking- List<TrackingCategory>- Returns:
- ManualJournalLine
-
addTrackingItem
public ManualJournalLine addTrackingItem(TrackingCategory trackingItem)
Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.- Parameters:
trackingItem- TrackingCategory- Returns:
- ManualJournalLine
-
getTracking
public List<TrackingCategory> getTracking()
Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.- Returns:
- tracking
-
setTracking
public void setTracking(List<TrackingCategory> tracking)
Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.- Parameters:
tracking- List<TrackingCategory>
-
taxAmount
public ManualJournalLine taxAmount(Double taxAmount)
The calculated tax amount based on the TaxType and LineAmount- Parameters:
taxAmount- Double- Returns:
- ManualJournalLine
-
getTaxAmount
public Double getTaxAmount()
The calculated tax amount based on the TaxType and LineAmount- Returns:
- taxAmount
-
setTaxAmount
public void setTaxAmount(Double taxAmount)
The calculated tax amount based on the TaxType and LineAmount- Parameters:
taxAmount- Double
-
isBlank
public ManualJournalLine isBlank(Boolean isBlank)
is the line blank- Parameters:
isBlank- Boolean- Returns:
- ManualJournalLine
-
getIsBlank
public Boolean getIsBlank()
is the line blank- Returns:
- isBlank
-
setIsBlank
public void setIsBlank(Boolean isBlank)
is the line blank- Parameters:
isBlank- Boolean
-
-