Package com.xero.models.accounting
Class JournalLine
java.lang.Object
com.xero.models.accounting.JournalLine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountCode(String accountCode) See AccountsSee AccountsaccountName(String accountName) See AccountCodesaccountType(AccountType accountType) accountTypeaddTrackingCategoriesItem(TrackingCategory trackingCategoriesItem) Optional Tracking Category – see Tracking.description(String description) The description from the source transaction line item.booleanSee AccountsSee AccountsSee AccountCodesGet accountTypeThe description from the source transaction line item.Gross amount of journal line (NetAmount + TaxAmount).Xero identifier for JournalNet amount of journal line.Total tax on a journal linesee TaxRatesThe tax type from taxRatesOptional Tracking Category – see Tracking.grossAmount(Double grossAmount) Gross amount of journal line (NetAmount + TaxAmount).inthashCode()journalLineID(UUID journalLineID) Xero identifier for JournalNet amount of journal line.voidsetAccountCode(String accountCode) See AccountsvoidsetAccountID(UUID accountID) See AccountsvoidsetAccountName(String accountName) See AccountCodesvoidsetAccountType(AccountType accountType) accountTypevoidsetDescription(String description) The description from the source transaction line item.voidsetGrossAmount(Double grossAmount) Gross amount of journal line (NetAmount + TaxAmount).voidsetJournalLineID(UUID journalLineID) Xero identifier for JournalvoidsetNetAmount(Double netAmount) Net amount of journal line.voidsetTaxName(String taxName) see TaxRatesvoidsetTaxType(String taxType) The tax type from taxRatesvoidsetTrackingCategories(List<TrackingCategory> trackingCategories) Optional Tracking Category – see Tracking.see TaxRatesThe tax type from taxRatestoString()trackingCategories(List<TrackingCategory> trackingCategories) Optional Tracking Category – see Tracking.
-
Constructor Details
-
JournalLine
public JournalLine()
-
-
Method Details
-
journalLineID
Xero identifier for Journal- Parameters:
journalLineID- UUID- Returns:
- JournalLine
-
getJournalLineID
-
setJournalLineID
Xero identifier for Journal- Parameters:
journalLineID- UUID
-
accountID
See Accounts- Parameters:
accountID- UUID- Returns:
- JournalLine
-
getAccountID
-
setAccountID
-
accountCode
See Accounts- Parameters:
accountCode- String- Returns:
- JournalLine
-
getAccountCode
-
setAccountCode
-
accountType
accountType- Parameters:
accountType- AccountType- Returns:
- JournalLine
-
getAccountType
-
setAccountType
accountType- Parameters:
accountType- AccountType
-
accountName
See AccountCodes- Parameters:
accountName- String- Returns:
- JournalLine
-
getAccountName
-
setAccountName
-
description
The description from the source transaction line item. Only returned if populated.- Parameters:
description- String- Returns:
- JournalLine
-
getDescription
The description from the source transaction line item. Only returned if populated.- Returns:
- description
-
setDescription
The description from the source transaction line item. Only returned if populated.- Parameters:
description- String
-
netAmount
Net amount of journal line. This will be a positive value for a debit and negative for a credit- Parameters:
netAmount- Double- Returns:
- JournalLine
-
getNetAmount
Net amount of journal line. This will be a positive value for a debit and negative for a credit- Returns:
- netAmount
-
setNetAmount
Net amount of journal line. This will be a positive value for a debit and negative for a credit- Parameters:
netAmount- Double
-
grossAmount
Gross amount of journal line (NetAmount + TaxAmount).- Parameters:
grossAmount- Double- Returns:
- JournalLine
-
getGrossAmount
Gross amount of journal line (NetAmount + TaxAmount).- Returns:
- grossAmount
-
setGrossAmount
Gross amount of journal line (NetAmount + TaxAmount).- Parameters:
grossAmount- Double
-
getTaxAmount
-
taxType
The tax type from taxRates- Parameters:
taxType- String- Returns:
- JournalLine
-
getTaxType
-
setTaxType
-
taxName
see TaxRates- Parameters:
taxName- String- Returns:
- JournalLine
-
getTaxName
-
setTaxName
-
trackingCategories
Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.- Parameters:
trackingCategories- List<TrackingCategory>- Returns:
- JournalLine
-
addTrackingCategoriesItem
Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.- Parameters:
trackingCategoriesItem- TrackingCategory- Returns:
- JournalLine
-
getTrackingCategories
Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.- Returns:
- trackingCategories
-
setTrackingCategories
Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.- Parameters:
trackingCategories- List<TrackingCategory>
-
equals
-
hashCode
-
toString
-