All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.connectifier.xeroclient.models.JournalLine Maven / Gradle / Ivy


package com.connectifier.xeroclient.models;

import java.math.BigDecimal;
import java.util.List;

/** 
 * Schema fragment(s) for this class:
 * 
 * <xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="JournalLine">
 *   <xs:all>
 *     <xs:element type="ArrayOfValidationError" name="ValidationErrors" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="ArrayOfWarning" name="Warnings" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="JournalLineID" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="AccountID" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="AccountCode" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="accountType" name="AccountType" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="AccountName" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="Description" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" name="NetAmount" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" name="GrossAmount" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" name="TaxAmount" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="ArrayOfTrackingCategory" name="TrackingCategories" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="TaxType" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="TaxName" minOccurs="0" maxOccurs="1"/>
 *   </xs:all>
 *   <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
 * </xs:complexType>
 * 
*/ public class JournalLine { private ArrayOfValidationError validationErrors; private ArrayOfWarning warnings; private String journalLineID; private String accountID; private String accountCode; private AccountType accountType; private String accountName; private String description; private BigDecimal netAmount; private BigDecimal grossAmount; private BigDecimal taxAmount; private ArrayOfTrackingCategory trackingCategories; private String taxType; private String taxName; private EntityValidationStatus status; /** * Get the 'ValidationErrors' element value. * * @return value */ public ArrayOfValidationError getValidationErrors() { return validationErrors; } /** * Set the 'ValidationErrors' element value. * * @param validationErrors */ public void setValidationErrors(ArrayOfValidationError validationErrors) { this.validationErrors = validationErrors; } public List getValidationErrorsAsList() { if (validationErrors == null) validationErrors = new ArrayOfValidationError(); return validationErrors.getValidationErrorList(); } /** * Get the 'Warnings' element value. * * @return value */ public ArrayOfWarning getWarnings() { return warnings; } /** * Set the 'Warnings' element value. * * @param warnings */ public void setWarnings(ArrayOfWarning warnings) { this.warnings = warnings; } public List getWarningsAsList() { if (warnings == null) warnings = new ArrayOfWarning(); return warnings.getWarningList(); } /** * Get the 'JournalLineID' element value. * * @return value */ public String getJournalLineID() { return journalLineID; } /** * Set the 'JournalLineID' element value. * * @param journalLineID */ public void setJournalLineID(String journalLineID) { this.journalLineID = journalLineID; } /** * Get the 'AccountID' element value. * * @return value */ public String getAccountID() { return accountID; } /** * Set the 'AccountID' element value. * * @param accountID */ public void setAccountID(String accountID) { this.accountID = accountID; } /** * Get the 'AccountCode' element value. * * @return value */ public String getAccountCode() { return accountCode; } /** * Set the 'AccountCode' element value. * * @param accountCode */ public void setAccountCode(String accountCode) { this.accountCode = accountCode; } /** * Get the 'AccountType' element value. * * @return value */ public AccountType getAccountType() { return accountType; } /** * Set the 'AccountType' element value. * * @param accountType */ public void setAccountType(AccountType accountType) { this.accountType = accountType; } /** * Get the 'AccountName' element value. * * @return value */ public String getAccountName() { return accountName; } /** * Set the 'AccountName' element value. * * @param accountName */ public void setAccountName(String accountName) { this.accountName = accountName; } /** * Get the 'Description' element value. * * @return value */ public String getDescription() { return description; } /** * Set the 'Description' element value. * * @param description */ public void setDescription(String description) { this.description = description; } /** * Get the 'NetAmount' element value. * * @return value */ public BigDecimal getNetAmount() { return netAmount; } /** * Set the 'NetAmount' element value. * * @param netAmount */ public void setNetAmount(BigDecimal netAmount) { this.netAmount = netAmount; } /** * Get the 'GrossAmount' element value. * * @return value */ public BigDecimal getGrossAmount() { return grossAmount; } /** * Set the 'GrossAmount' element value. * * @param grossAmount */ public void setGrossAmount(BigDecimal grossAmount) { this.grossAmount = grossAmount; } /** * Get the 'TaxAmount' element value. * * @return value */ public BigDecimal getTaxAmount() { return taxAmount; } /** * Set the 'TaxAmount' element value. * * @param taxAmount */ public void setTaxAmount(BigDecimal taxAmount) { this.taxAmount = taxAmount; } /** * Get the 'TrackingCategories' element value. * * @return value */ public ArrayOfTrackingCategory getTrackingCategories() { return trackingCategories; } /** * Set the 'TrackingCategories' element value. * * @param trackingCategories */ public void setTrackingCategories(ArrayOfTrackingCategory trackingCategories) { this.trackingCategories = trackingCategories; } public List getTrackingCategoriesAsList() { if (trackingCategories == null) trackingCategories = new ArrayOfTrackingCategory(); return trackingCategories.getTrackingCategoryList(); } /** * Get the 'TaxType' element value. * * @return value */ public String getTaxType() { return taxType; } /** * Set the 'TaxType' element value. * * @param taxType */ public void setTaxType(String taxType) { this.taxType = taxType; } /** * Get the 'TaxName' element value. * * @return value */ public String getTaxName() { return taxName; } /** * Set the 'TaxName' element value. * * @param taxName */ public void setTaxName(String taxName) { this.taxName = taxName; } /** * Get the 'status' attribute value. * * @return value */ public EntityValidationStatus getStatus() { return status; } /** * Set the 'status' attribute value. * * @param status */ public void setStatus(EntityValidationStatus status) { this.status = status; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy