
com.connectifier.xeroclient.models.ItemPriceDetails 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="ItemPriceDetails">
* <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:decimal" name="UnitPrice" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="TaxType" minOccurs="0" maxOccurs="1"/>
* <xs:element type="xs:string" name="AccountCode" minOccurs="0" maxOccurs="1"/>
* </xs:all>
* <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
* </xs:complexType>
*
*/
public class ItemPriceDetails
{
private ArrayOfValidationError validationErrors;
private ArrayOfWarning warnings;
private BigDecimal unitPrice;
private String taxType;
private String accountCode;
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 'UnitPrice' element value.
*
* @return value
*/
public BigDecimal getUnitPrice() {
return unitPrice;
}
/**
* Set the 'UnitPrice' element value.
*
* @param unitPrice
*/
public void setUnitPrice(BigDecimal unitPrice) {
this.unitPrice = unitPrice;
}
/**
* 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 '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 '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