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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JournaladdJournalLinesItem(JournalLine journalLinesItem)See JournalLinesbooleanequals(Object o)StringgetCreatedDateUTC()Created date UTC formatorg.threeten.bp.OffsetDateTimegetCreatedDateUTCAsDate()Created date UTC formatStringgetJournalDate()Date the journal was postedorg.threeten.bp.LocalDategetJournalDateAsDate()Date the journal was postedUUIDgetJournalID()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)Date the journal was postedJournaljournalID(UUID journalID)Xero identifierJournaljournalLines(List<JournalLine> journalLines)See JournalLinesJournaljournalNumber(Integer journalNumber)Xero generated journal numberJournalreference(String reference)reference 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.JournalsourceID(UUID sourceID)The identifier for the source transaction (e.g.JournalsourceType(Journal.SourceTypeEnum sourceType)The journal source type.StringtoString()
-
-
-
Method Detail
-
journalID
public Journal journalID(UUID journalID)
Xero identifier- Parameters:
journalID- UUID- Returns:
- Journal
-
getJournalID
public UUID getJournalID()
Xero identifier- Returns:
- journalID
-
setJournalID
public void setJournalID(UUID journalID)
Xero identifier- Parameters:
journalID- UUID
-
journalDate
public Journal journalDate(String journalDate)
Date the journal was posted- Parameters:
journalDate- String- Returns:
- Journal
-
getJournalDate
public String getJournalDate()
Date the journal was posted- Returns:
- journalDate
-
getJournalDateAsDate
public org.threeten.bp.LocalDate getJournalDateAsDate()
Date the journal was posted- Returns:
- LocalDate
-
setJournalDate
public void setJournalDate(String journalDate)
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
public Journal journalNumber(Integer journalNumber)
Xero generated journal number- Parameters:
journalNumber- Integer- Returns:
- Journal
-
getJournalNumber
public Integer getJournalNumber()
Xero generated journal number- Returns:
- journalNumber
-
setJournalNumber
public void setJournalNumber(Integer journalNumber)
Xero generated journal number- Parameters:
journalNumber- Integer
-
getCreatedDateUTC
public String getCreatedDateUTC()
Created date UTC format- Returns:
- createdDateUTC
-
getCreatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getCreatedDateUTCAsDate()
Created date UTC format- Returns:
- OffsetDateTime
-
reference
public Journal reference(String reference)
reference field for additional indetifying information- Parameters:
reference- String- Returns:
- Journal
-
getReference
public String getReference()
reference field for additional indetifying information- Returns:
- reference
-
setReference
public void setReference(String reference)
reference field for additional indetifying information- Parameters:
reference- String
-
sourceID
public Journal sourceID(UUID sourceID)
The identifier for the source transaction (e.g. InvoiceID)- Parameters:
sourceID- UUID- Returns:
- Journal
-
getSourceID
public UUID getSourceID()
The identifier for the source transaction (e.g. InvoiceID)- Returns:
- sourceID
-
setSourceID
public void setSourceID(UUID sourceID)
The identifier for the source transaction (e.g. InvoiceID)- Parameters:
sourceID- UUID
-
sourceType
public Journal sourceType(Journal.SourceTypeEnum sourceType)
The journal source type. The type of transaction that created the journal- Parameters:
sourceType- SourceTypeEnum- Returns:
- Journal
-
getSourceType
public Journal.SourceTypeEnum getSourceType()
The journal source type. The type of transaction that created the journal- Returns:
- sourceType
-
setSourceType
public void setSourceType(Journal.SourceTypeEnum sourceType)
The journal source type. The type of transaction that created the journal- Parameters:
sourceType- SourceTypeEnum
-
journalLines
public Journal journalLines(List<JournalLine> journalLines)
See JournalLines- Parameters:
journalLines- List<JournalLine>- Returns:
- Journal
-
addJournalLinesItem
public Journal addJournalLinesItem(JournalLine journalLinesItem)
See JournalLines- Parameters:
journalLinesItem- JournalLine- Returns:
- Journal
-
getJournalLines
public List<JournalLine> getJournalLines()
See JournalLines- Returns:
- journalLines
-
setJournalLines
public void setJournalLines(List<JournalLine> journalLines)
See JournalLines- Parameters:
journalLines- List<JournalLine>
-
-