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

com.connectifier.xeroclient.models.LineItem 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="LineItem">
 *   <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="Description" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" nillable="true" name="UnitAmount" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="TaxType" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" nillable="true" name="TaxAmount" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" nillable="true" name="LineAmount" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="AccountCode" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="ArrayOfTrackingCategory" name="Tracking" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="ItemCode" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" nillable="true" name="Quantity" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" name="DiscountRate" minOccurs="0" maxOccurs="1"/>
 *   </xs:all>
 *   <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
 * </xs:complexType>
 * 
*/ public class LineItem { private ArrayOfValidationError validationErrors; private ArrayOfWarning warnings; private String description; private BigDecimal unitAmount; private String taxType; private BigDecimal taxAmount; private BigDecimal lineAmount; private String accountCode; private ArrayOfTrackingCategory tracking; private String itemCode; private BigDecimal quantity; private BigDecimal discountRate; 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 '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 'UnitAmount' element value. * * @return value */ public BigDecimal getUnitAmount() { return unitAmount; } /** * Set the 'UnitAmount' element value. * * @param unitAmount */ public void setUnitAmount(BigDecimal unitAmount) { this.unitAmount = unitAmount; } /** * 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 '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 'LineAmount' element value. * * @return value */ public BigDecimal getLineAmount() { return lineAmount; } /** * Set the 'LineAmount' element value. * * @param lineAmount */ public void setLineAmount(BigDecimal lineAmount) { this.lineAmount = lineAmount; } /** * 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 'Tracking' element value. * * @return value */ public ArrayOfTrackingCategory getTracking() { return tracking; } /** * Set the 'Tracking' element value. * * @param tracking */ public void setTracking(ArrayOfTrackingCategory tracking) { this.tracking = tracking; } public List getTrackingAsList() { if (tracking == null) tracking = new ArrayOfTrackingCategory(); return tracking.getTrackingCategoryList(); } /** * Get the 'ItemCode' element value. * * @return value */ public String getItemCode() { return itemCode; } /** * Set the 'ItemCode' element value. * * @param itemCode */ public void setItemCode(String itemCode) { this.itemCode = itemCode; } /** * Get the 'Quantity' element value. * * @return value */ public BigDecimal getQuantity() { return quantity; } /** * Set the 'Quantity' element value. * * @param quantity */ public void setQuantity(BigDecimal quantity) { this.quantity = quantity; } /** * Get the 'DiscountRate' element value. * * @return value */ public BigDecimal getDiscountRate() { return discountRate; } /** * Set the 'DiscountRate' element value. * * @param discountRate */ public void setDiscountRate(BigDecimal discountRate) { this.discountRate = discountRate; } /** * 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