
com.connectifier.xeroclient.models.LineItem Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.03.08 at 08:40:56 PM PDT
//
package com.connectifier.xeroclient.models;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* Java class for LineItem complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="LineItem">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="ValidationErrors" type="{}ArrayOfValidationError" minOccurs="0"/>
* <element name="Warnings" type="{}ArrayOfWarning" minOccurs="0"/>
* <element name="Description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="UnitAmount" type="{}itemPrice"/>
* <element name="TaxType" type="{}taxType" minOccurs="0"/>
* <element name="TaxAmount" type="{}itemPrice"/>
* <element name="LineAmount" type="{}itemPrice"/>
* <element name="AccountCode" type="{}accountCode" minOccurs="0"/>
* <element name="Tracking" type="{}ArrayOfTrackingCategory" minOccurs="0"/>
* <element name="ItemCode" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Quantity" type="{}itemQuantity"/>
* <element name="DiscountRate" type="{}itemPrice" minOccurs="0"/>
* </all>
* <attribute name="status" type="{}entityValidationStatus" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LineItem", propOrder = {
})
public class LineItem {
@XmlElement(name = "ValidationErrors")
protected ArrayOfValidationError validationErrors;
@XmlElement(name = "Warnings")
protected ArrayOfWarning warnings;
@XmlElement(name = "Description")
protected String description;
@XmlElement(name = "UnitAmount", required = true, nillable = true)
protected BigDecimal unitAmount;
@XmlElement(name = "TaxType")
protected String taxType;
@XmlElement(name = "TaxAmount", required = true, nillable = true)
protected BigDecimal taxAmount;
@XmlElement(name = "LineAmount", required = true, nillable = true)
protected BigDecimal lineAmount;
@XmlElement(name = "AccountCode")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String accountCode;
@XmlElement(name = "Tracking")
protected ArrayOfTrackingCategory tracking;
@XmlElement(name = "ItemCode")
protected String itemCode;
@XmlElement(name = "Quantity", required = true, nillable = true)
protected BigDecimal quantity;
@XmlElement(name = "DiscountRate")
protected BigDecimal discountRate;
@XmlAttribute(name = "status")
protected EntityValidationStatus status;
/**
* Sets the value of the validationErrors property.
*
* @param value
* allowed object is
* {@link ArrayOfValidationError }
*
*/
public void setValidationErrors(ArrayOfValidationError value) {
this.validationErrors = value;
}
/**
* Sets the value of the warnings property.
*
* @param value
* allowed object is
* {@link ArrayOfWarning }
*
*/
public void setWarnings(ArrayOfWarning value) {
this.warnings = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the unitAmount property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getUnitAmount() {
return unitAmount;
}
/**
* Sets the value of the unitAmount property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setUnitAmount(BigDecimal value) {
this.unitAmount = value;
}
/**
* Gets the value of the taxType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTaxType() {
return taxType;
}
/**
* Sets the value of the taxType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTaxType(String value) {
this.taxType = value;
}
/**
* Gets the value of the taxAmount property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getTaxAmount() {
return taxAmount;
}
/**
* Sets the value of the taxAmount property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setTaxAmount(BigDecimal value) {
this.taxAmount = value;
}
/**
* Gets the value of the lineAmount property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getLineAmount() {
return lineAmount;
}
/**
* Sets the value of the lineAmount property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setLineAmount(BigDecimal value) {
this.lineAmount = value;
}
/**
* Gets the value of the accountCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAccountCode() {
return accountCode;
}
/**
* Sets the value of the accountCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAccountCode(String value) {
this.accountCode = value;
}
/**
* Sets the value of the tracking property.
*
* @param value
* allowed object is
* {@link ArrayOfTrackingCategory }
*
*/
public void setTracking(ArrayOfTrackingCategory value) {
this.tracking = value;
}
/**
* Gets the value of the itemCode property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getItemCode() {
return itemCode;
}
/**
* Sets the value of the itemCode property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setItemCode(String value) {
this.itemCode = value;
}
/**
* Gets the value of the quantity property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getQuantity() {
return quantity;
}
/**
* Sets the value of the quantity property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setQuantity(BigDecimal value) {
this.quantity = value;
}
/**
* Gets the value of the discountRate property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getDiscountRate() {
return discountRate;
}
/**
* Sets the value of the discountRate property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setDiscountRate(BigDecimal value) {
this.discountRate = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link EntityValidationStatus }
*
*/
public EntityValidationStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link EntityValidationStatus }
*
*/
public void setStatus(EntityValidationStatus value) {
this.status = value;
}
public List getValidationErrors() {
return ((validationErrors == null)?new ArrayList():validationErrors.getValidationError());
}
public List getWarnings() {
return ((warnings == null)?new ArrayList():warnings.getWarning());
}
public List getTracking() {
return ((tracking == null)?new ArrayList():tracking.getTrackingCategory());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy