Package com.xero.models.accounting
Class ManualJournal
java.lang.Object
com.xero.models.accounting.ManualJournal
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSee Manual Journal Status Codes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttachmentsItem(Attachment attachmentsItem) Displays array of attachments from the APIaddJournalLinesItem(ManualJournalLine journalLinesItem) See JournalLinesaddValidationErrorsItem(ValidationError validationErrorsItem) Displays array of validation error messages from the APIaddWarningsItem(ValidationError warningsItem) Displays array of warning messages from the APIattachments(List<Attachment> attachments) Displays array of attachments from the APIDate journal was posted – YYYY-MM-DDbooleanDisplays array of attachments from the APIgetDate()Date journal was posted – YYYY-MM-DDorg.threeten.bp.LocalDateDate journal was posted – YYYY-MM-DDBoolean to indicate if a manual journal has an attachmentSee JournalLinesGet lineAmountTypesThe Xero identifier for a Manual JournalDescription of journal being postedBoolean – default is true if not specifiedSee Manual Journal Status CodesA string to indicate if a invoice statusLast modified date UTC formatorg.threeten.bp.OffsetDateTimeLast modified date UTC formatgetUrl()Url link to a source document – shown as “Go to [appName]” in the Xero appDisplays array of validation error messages from the APIDisplays array of warning messages from the APIinthashCode()journalLines(List<ManualJournalLine> journalLines) See JournalLineslineAmountTypes(LineAmountTypes lineAmountTypes) lineAmountTypesmanualJournalID(UUID manualJournalID) The Xero identifier for a Manual JournalDescription of journal being postedvoidsetAttachments(List<Attachment> attachments) Displays array of attachments from the APIvoidDate journal was posted – YYYY-MM-DDvoidsetDate(org.threeten.bp.LocalDate date) Date journal was posted – YYYY-MM-DDvoidsetJournalLines(List<ManualJournalLine> journalLines) See JournalLinesvoidsetLineAmountTypes(LineAmountTypes lineAmountTypes) lineAmountTypesvoidsetManualJournalID(UUID manualJournalID) The Xero identifier for a Manual JournalvoidsetNarration(String narration) Description of journal being postedvoidsetShowOnCashBasisReports(Boolean showOnCashBasisReports) Boolean – default is true if not specifiedvoidsetStatus(ManualJournal.StatusEnum status) See Manual Journal Status CodesvoidsetStatusAttributeString(String statusAttributeString) A string to indicate if a invoice statusvoidUrl link to a source document – shown as “Go to [appName]” in the Xero appvoidsetValidationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the APIvoidsetWarnings(List<ValidationError> warnings) Displays array of warning messages from the APIshowOnCashBasisReports(Boolean showOnCashBasisReports) Boolean – default is true if not specifiedstatus(ManualJournal.StatusEnum status) See Manual Journal Status CodesstatusAttributeString(String statusAttributeString) A string to indicate if a invoice statustoString()Url link to a source document – shown as “Go to [appName]” in the Xero appvalidationErrors(List<ValidationError> validationErrors) Displays array of validation error messages from the APIwarnings(List<ValidationError> warnings) Displays array of warning messages from the API
-
Constructor Details
-
ManualJournal
public ManualJournal()
-
-
Method Details
-
narration
Description of journal being posted- Parameters:
narration- String- Returns:
- ManualJournal
-
getNarration
-
setNarration
Description of journal being posted- Parameters:
narration- String
-
journalLines
See JournalLines- Parameters:
journalLines- List<ManualJournalLine>- Returns:
- ManualJournal
-
addJournalLinesItem
See JournalLines- Parameters:
journalLinesItem- ManualJournalLine- Returns:
- ManualJournal
-
getJournalLines
-
setJournalLines
See JournalLines- Parameters:
journalLines- List<ManualJournalLine>
-
date
Date journal was posted – YYYY-MM-DD- Parameters:
date- String- Returns:
- ManualJournal
-
getDate
-
getDateAsDate
public org.threeten.bp.LocalDate getDateAsDate()Date journal was posted – YYYY-MM-DD- Returns:
- LocalDate
-
setDate
-
setDate
public void setDate(org.threeten.bp.LocalDate date) Date journal was posted – YYYY-MM-DD- Parameters:
date- LocalDateTime
-
lineAmountTypes
lineAmountTypes- Parameters:
lineAmountTypes- LineAmountTypes- Returns:
- ManualJournal
-
getLineAmountTypes
-
setLineAmountTypes
lineAmountTypes- Parameters:
lineAmountTypes- LineAmountTypes
-
status
See Manual Journal Status Codes- Parameters:
status- StatusEnum- Returns:
- ManualJournal
-
getStatus
-
setStatus
See Manual Journal Status Codes- Parameters:
status- StatusEnum
-
url
Url link to a source document – shown as “Go to [appName]” in the Xero app- Parameters:
url- String- Returns:
- ManualJournal
-
getUrl
Url link to a source document – shown as “Go to [appName]” in the Xero app- Returns:
- url
-
setUrl
Url link to a source document – shown as “Go to [appName]” in the Xero app- Parameters:
url- String
-
showOnCashBasisReports
Boolean – default is true if not specified- Parameters:
showOnCashBasisReports- Boolean- Returns:
- ManualJournal
-
getShowOnCashBasisReports
Boolean – default is true if not specified- Returns:
- showOnCashBasisReports
-
setShowOnCashBasisReports
Boolean – default is true if not specified- Parameters:
showOnCashBasisReports- Boolean
-
getHasAttachments
Boolean to indicate if a manual journal has an attachment- Returns:
- hasAttachments
-
getUpdatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()Last modified date UTC format- Returns:
- OffsetDateTime
-
manualJournalID
The Xero identifier for a Manual Journal- Parameters:
manualJournalID- UUID- Returns:
- ManualJournal
-
getManualJournalID
-
setManualJournalID
The Xero identifier for a Manual Journal- Parameters:
manualJournalID- UUID
-
statusAttributeString
A string to indicate if a invoice status- Parameters:
statusAttributeString- String- Returns:
- ManualJournal
-
getStatusAttributeString
A string to indicate if a invoice status- Returns:
- statusAttributeString
-
setStatusAttributeString
A string to indicate if a invoice status- Parameters:
statusAttributeString- String
-
warnings
Displays array of warning messages from the API- Parameters:
warnings- List<ValidationError>- Returns:
- ManualJournal
-
addWarningsItem
Displays array of warning messages from the API- Parameters:
warningsItem- ValidationError- Returns:
- ManualJournal
-
getWarnings
Displays array of warning messages from the API- Returns:
- warnings
-
setWarnings
Displays array of warning messages from the API- Parameters:
warnings- List<ValidationError>
-
validationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- ManualJournal
-
addValidationErrorsItem
Displays array of validation error messages from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- ManualJournal
-
getValidationErrors
Displays array of validation error messages from the API- Returns:
- validationErrors
-
setValidationErrors
Displays array of validation error messages from the API- Parameters:
validationErrors- List<ValidationError>
-
attachments
Displays array of attachments from the API- Parameters:
attachments- List<Attachment>- Returns:
- ManualJournal
-
addAttachmentsItem
Displays array of attachments from the API- Parameters:
attachmentsItem- Attachment- Returns:
- ManualJournal
-
getAttachments
Displays array of attachments from the API- Returns:
- attachments
-
setAttachments
Displays array of attachments from the API- Parameters:
attachments- List<Attachment>
-
equals
-
hashCode
-
toString
-