Package com.xero.models.accounting
Class Journal
java.lang.Object
com.xero.models.accounting.Journal
public class Journal extends Object
Journal
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJournal.SourceTypeEnumThe journal source type. -
Constructor Summary
Constructors Constructor Description Journal() -
Method Summary
Modifier and Type Method Description JournaladdJournalLinesItem(JournalLine journalLinesItem)booleanequals(Object o)StringgetCreatedDateUTC()Created date UTC formatorg.threeten.bp.OffsetDateTimegetCreatedDateUTCAsDate()StringgetJournalDate()Date the journal was postedorg.threeten.bp.LocalDategetJournalDateAsDate()UUIDgetJournalID()Xero identifierList<JournalLine>getJournalLines()See JournalLinesIntegergetJournalNumber()Xero generated journal numberStringgetReference()reference field for additional indetifying informationUUIDgetSourceID()The identifier for the source transaction (e.g.Journal.SourceTypeEnumgetSourceType()The journal source type.inthashCode()JournaljournalDate(String journalDate)JournaljournalID(UUID journalID)JournaljournalLines(List<JournalLine> journalLines)JournaljournalNumber(Integer journalNumber)Journalreference(String reference)voidsetJournalDate(String journalDate)voidsetJournalDate(org.threeten.bp.LocalDate journalDate)voidsetJournalID(UUID journalID)voidsetJournalLines(List<JournalLine> journalLines)voidsetJournalNumber(Integer journalNumber)voidsetReference(String reference)voidsetSourceID(UUID sourceID)voidsetSourceType(Journal.SourceTypeEnum sourceType)JournalsourceID(UUID sourceID)JournalsourceType(Journal.SourceTypeEnum sourceType)StringtoString()
-
Constructor Details
-
Journal
public Journal()
-
-
Method Details
-
journalID
-
getJournalID
Xero identifier- Returns:
- journalID
-
setJournalID
-
journalDate
-
getJournalDate
Date the journal was posted- Returns:
- journalDate
-
getJournalDateAsDate
public org.threeten.bp.LocalDate getJournalDateAsDate() -
setJournalDate
-
setJournalDate
public void setJournalDate(org.threeten.bp.LocalDate journalDate) -
journalNumber
-
getJournalNumber
Xero generated journal number- Returns:
- journalNumber
-
setJournalNumber
-
getCreatedDateUTC
Created date UTC format- Returns:
- createdDateUTC
-
getCreatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getCreatedDateUTCAsDate() -
reference
-
getReference
reference field for additional indetifying information- Returns:
- reference
-
setReference
-
sourceID
-
getSourceID
The identifier for the source transaction (e.g. InvoiceID)- Returns:
- sourceID
-
setSourceID
-
sourceType
-
getSourceType
The journal source type. The type of transaction that created the journal- Returns:
- sourceType
-
setSourceType
-
journalLines
-
addJournalLinesItem
-
getJournalLines
See JournalLines- Returns:
- journalLines
-
setJournalLines
-
equals
-
hashCode
public int hashCode() -
toString
-