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

com.connectifier.xeroclient.models.TaxRate 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="TaxRate">
 *   <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="Name" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:string" name="TaxType" minOccurs="0" maxOccurs="1"/>
 *     <xs:element type="xs:boolean" name="CanApplyToAssets" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:boolean" name="CanApplyToEquity" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:boolean" name="CanApplyToExpenses" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:boolean" name="CanApplyToLiabilities" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:boolean" name="CanApplyToRevenue" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" nillable="true" name="DisplayTaxRate" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="xs:decimal" nillable="true" name="EffectiveRate" minOccurs="1" maxOccurs="1"/>
 *     <xs:element type="taxRateStatus" name="Status" minOccurs="0" maxOccurs="1"/>
 *   </xs:all>
 *   <xs:attribute type="entityValidationStatus" use="optional" name="status"/>
 * </xs:complexType>
 * 
*/ public class TaxRate { private ArrayOfValidationError validationErrors; private ArrayOfWarning warnings; private String name; private String taxType; private boolean canApplyToAssets; private boolean canApplyToEquity; private boolean canApplyToExpenses; private boolean canApplyToLiabilities; private boolean canApplyToRevenue; private BigDecimal displayTaxRate; private BigDecimal effectiveRate; private TaxRateStatus status; private EntityValidationStatus status1; /** * 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 'Name' element value. * * @return value */ public String getName() { return name; } /** * Set the 'Name' element value. * * @param name */ public void setName(String name) { this.name = name; } /** * 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 'CanApplyToAssets' element value. * * @return value */ public boolean isCanApplyToAssets() { return canApplyToAssets; } /** * Set the 'CanApplyToAssets' element value. * * @param canApplyToAssets */ public void setCanApplyToAssets(boolean canApplyToAssets) { this.canApplyToAssets = canApplyToAssets; } /** * Get the 'CanApplyToEquity' element value. * * @return value */ public boolean isCanApplyToEquity() { return canApplyToEquity; } /** * Set the 'CanApplyToEquity' element value. * * @param canApplyToEquity */ public void setCanApplyToEquity(boolean canApplyToEquity) { this.canApplyToEquity = canApplyToEquity; } /** * Get the 'CanApplyToExpenses' element value. * * @return value */ public boolean isCanApplyToExpenses() { return canApplyToExpenses; } /** * Set the 'CanApplyToExpenses' element value. * * @param canApplyToExpenses */ public void setCanApplyToExpenses(boolean canApplyToExpenses) { this.canApplyToExpenses = canApplyToExpenses; } /** * Get the 'CanApplyToLiabilities' element value. * * @return value */ public boolean isCanApplyToLiabilities() { return canApplyToLiabilities; } /** * Set the 'CanApplyToLiabilities' element value. * * @param canApplyToLiabilities */ public void setCanApplyToLiabilities(boolean canApplyToLiabilities) { this.canApplyToLiabilities = canApplyToLiabilities; } /** * Get the 'CanApplyToRevenue' element value. * * @return value */ public boolean isCanApplyToRevenue() { return canApplyToRevenue; } /** * Set the 'CanApplyToRevenue' element value. * * @param canApplyToRevenue */ public void setCanApplyToRevenue(boolean canApplyToRevenue) { this.canApplyToRevenue = canApplyToRevenue; } /** * Get the 'DisplayTaxRate' element value. * * @return value */ public BigDecimal getDisplayTaxRate() { return displayTaxRate; } /** * Set the 'DisplayTaxRate' element value. * * @param displayTaxRate */ public void setDisplayTaxRate(BigDecimal displayTaxRate) { this.displayTaxRate = displayTaxRate; } /** * Get the 'EffectiveRate' element value. * * @return value */ public BigDecimal getEffectiveRate() { return effectiveRate; } /** * Set the 'EffectiveRate' element value. * * @param effectiveRate */ public void setEffectiveRate(BigDecimal effectiveRate) { this.effectiveRate = effectiveRate; } /** * Get the 'Status' element value. * * @return value */ public TaxRateStatus getStatus() { return status; } /** * Set the 'Status' element value. * * @param status */ public void setStatus(TaxRateStatus status) { this.status = status; } /** * Get the 'status' attribute value. * * @return value */ public EntityValidationStatus getStatus1() { return status1; } /** * Set the 'status' attribute value. * * @param status1 */ public void setStatus1(EntityValidationStatus status1) { this.status1 = status1; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy