
com.connectifier.xeroclient.models.Item Maven / Gradle / Ivy
package com.connectifier.xeroclient.models;
import java.util.Date;
import java.util.List;
/**
* Schema fragment(s) for this class:
*
* <xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Item">
* <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="ItemID" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="Description" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="Code" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:dateTime" name="UpdatedDateUTC" minOccurs="0" maxOccurs="1"/>
* <xs:element type="ItemPriceDetails" name="SalesDetails" minOccurs="1" maxOccurs="1"/>
* <xs:element type="ItemPriceDetails" name="PurchaseDetails" minOccurs="1" maxOccurs="1"/>
* </xs:all>
* <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
* </xs:complexType>
*
*/
public class Item
{
private ArrayOfValidationError validationErrors;
private ArrayOfWarning warnings;
private String itemID;
private String description;
private String code;
private Date updatedDateUTC;
private ItemPriceDetails salesDetails;
private ItemPriceDetails purchaseDetails;
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 'ItemID' element value.
*
* @return value
*/
public String getItemID() {
return itemID;
}
/**
* Set the 'ItemID' element value.
*
* @param itemID
*/
public void setItemID(String itemID) {
this.itemID = itemID;
}
/**
* 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 'Code' element value.
*
* @return value
*/
public String getCode() {
return code;
}
/**
* Set the 'Code' element value.
*
* @param code
*/
public void setCode(String code) {
this.code = code;
}
/**
* Get the 'UpdatedDateUTC' element value.
*
* @return value
*/
public Date getUpdatedDateUTC() {
return updatedDateUTC;
}
/**
* Set the 'UpdatedDateUTC' element value.
*
* @param updatedDateUTC
*/
public void setUpdatedDateUTC(Date updatedDateUTC) {
this.updatedDateUTC = updatedDateUTC;
}
/**
* Get the 'SalesDetails' element value.
*
* @return value
*/
public ItemPriceDetails getSalesDetails() {
return salesDetails;
}
/**
* Set the 'SalesDetails' element value.
*
* @param salesDetails
*/
public void setSalesDetails(ItemPriceDetails salesDetails) {
this.salesDetails = salesDetails;
}
/**
* Get the 'PurchaseDetails' element value.
*
* @return value
*/
public ItemPriceDetails getPurchaseDetails() {
return purchaseDetails;
}
/**
* Set the 'PurchaseDetails' element value.
*
* @param purchaseDetails
*/
public void setPurchaseDetails(ItemPriceDetails purchaseDetails) {
this.purchaseDetails = purchaseDetails;
}
/**
* 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