Package com.xero.models.accounting
Class Journal
java.lang.Object
com.xero.models.accounting.Journal
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddJournalLinesItem(JournalLine journalLinesItem) See JournalLinesbooleanCreated date UTC formatorg.threeten.bp.OffsetDateTimeCreated date UTC formatDate the journal was postedorg.threeten.bp.LocalDateDate the journal was postedXero identifierSee JournalLinesXero generated journal numberreference field for additional indetifying informationThe identifier for the source transaction (e.g.The journal source type.inthashCode()journalDate(String journalDate) Date the journal was postedXero identifierjournalLines(List<JournalLine> journalLines) See JournalLinesjournalNumber(Integer journalNumber) Xero generated journal numberreference field for additional indetifying informationvoidsetJournalDate(String journalDate) Date the journal was postedvoidsetJournalDate(org.threeten.bp.LocalDate journalDate) Date the journal was postedvoidsetJournalID(UUID journalID) Xero identifiervoidsetJournalLines(List<JournalLine> journalLines) See JournalLinesvoidsetJournalNumber(Integer journalNumber) Xero generated journal numbervoidsetReference(String reference) reference field for additional indetifying informationvoidsetSourceID(UUID sourceID) The identifier for the source transaction (e.g.voidsetSourceType(Journal.SourceTypeEnum sourceType) The journal source type.The identifier for the source transaction (e.g.sourceType(Journal.SourceTypeEnum sourceType) The journal source type.toString()
-
Constructor Details
-
Journal
public Journal()
-
-
Method Details
-
journalID
-
getJournalID
-
setJournalID
-
journalDate
-
getJournalDate
-
getJournalDateAsDate
public org.threeten.bp.LocalDate getJournalDateAsDate()Date the journal was posted- Returns:
- LocalDate
-
setJournalDate
Date the journal was posted- Parameters:
journalDate- String
-
setJournalDate
public void setJournalDate(org.threeten.bp.LocalDate journalDate) Date the journal was posted- Parameters:
journalDate- LocalDateTime
-
journalNumber
-
getJournalNumber
-
setJournalNumber
Xero generated journal number- Parameters:
journalNumber- Integer
-
getCreatedDateUTC
-
getCreatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getCreatedDateUTCAsDate()Created date UTC format- Returns:
- OffsetDateTime
-
reference
-
getReference
reference field for additional indetifying information- Returns:
- reference
-
setReference
reference field for additional indetifying information- Parameters:
reference- String
-
sourceID
-
getSourceID
The identifier for the source transaction (e.g. InvoiceID)- Returns:
- sourceID
-
setSourceID
The identifier for the source transaction (e.g. InvoiceID)- Parameters:
sourceID- UUID
-
sourceType
The journal source type. The type of transaction that created the journal- Parameters:
sourceType- SourceTypeEnum- Returns:
- Journal
-
getSourceType
The journal source type. The type of transaction that created the journal- Returns:
- sourceType
-
setSourceType
The journal source type. The type of transaction that created the journal- Parameters:
sourceType- SourceTypeEnum
-
journalLines
See JournalLines- Parameters:
journalLines- List<JournalLine>- Returns:
- Journal
-
addJournalLinesItem
See JournalLines- Parameters:
journalLinesItem- JournalLine- Returns:
- Journal
-
getJournalLines
-
setJournalLines
See JournalLines- Parameters:
journalLines- List<JournalLine>
-
equals
-
hashCode
-
toString
-