ScontoMaggiorazioneType.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */
  20. package it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2;

  21. import it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2.constants.TipoScontoMaggiorazioneType;
  22. import javax.xml.bind.annotation.XmlAccessType;
  23. import javax.xml.bind.annotation.XmlAccessorType;
  24. import javax.xml.bind.annotation.XmlElement;
  25. import javax.xml.bind.annotation.XmlRootElement;
  26. import javax.xml.bind.annotation.XmlType;
  27. import java.io.Serializable;


  28. /** <p>Java class for ScontoMaggiorazioneType complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="ScontoMaggiorazioneType"&gt;
  34.  *      &lt;sequence&gt;
  35.  *          &lt;element name="Tipo" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}TipoScontoMaggiorazioneType" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="Percentuale" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}decimal" minOccurs="0" maxOccurs="1"/&gt;
  37.  *          &lt;element name="Importo" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}decimal" minOccurs="0" maxOccurs="1"/&gt;
  38.  *      &lt;/sequence&gt;
  39.  * &lt;/complexType&gt;
  40.  * </pre>
  41.  *
  42.  * @version $Rev$, $Date$
  43.  *
  44.  * @author Poli Andrea (poli@link.it)
  45.  * @author $Author$
  46.  * */

  47. @XmlAccessorType(XmlAccessType.FIELD)
  48. @XmlType(name = "ScontoMaggiorazioneType",
  49.   propOrder = {
  50.     "tipo",
  51.     "_decimalWrapper_percentuale",
  52.     "_decimalWrapper_importo"
  53.   }
  54. )

  55. @XmlRootElement(name = "ScontoMaggiorazioneType")

  56. public class ScontoMaggiorazioneType extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  57.   public ScontoMaggiorazioneType() {
  58.     super();
  59.   }

  60.   public void setTipoRawEnumValue(String value) {
  61.     this.tipo = (TipoScontoMaggiorazioneType) TipoScontoMaggiorazioneType.toEnumConstantFromString(value);
  62.   }

  63.   public String getTipoRawEnumValue() {
  64.     if(this.tipo == null){
  65.         return null;
  66.     }else{
  67.         return this.tipo.toString();
  68.     }
  69.   }

  70.   public it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2.constants.TipoScontoMaggiorazioneType getTipo() {
  71.     return this.tipo;
  72.   }

  73.   public void setTipo(it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2.constants.TipoScontoMaggiorazioneType tipo) {
  74.     this.tipo = tipo;
  75.   }

  76.   public java.math.BigDecimal getPercentuale() {
  77.     if(this._decimalWrapper_percentuale!=null){
  78.         return (java.math.BigDecimal) this._decimalWrapper_percentuale.getObject(java.math.BigDecimal.class);
  79.     }else{
  80.         return this.percentuale;
  81.     }
  82.   }

  83.   public void setPercentuale(java.math.BigDecimal percentuale) {
  84.     if(percentuale!=null){
  85.         this._decimalWrapper_percentuale = new org.openspcoop2.utils.jaxb.DecimalWrapper(1,3,2,2,percentuale);
  86.     }
  87.   }

  88.   public java.math.BigDecimal getImporto() {
  89.     if(this._decimalWrapper_importo!=null){
  90.         return (java.math.BigDecimal) this._decimalWrapper_importo.getObject(java.math.BigDecimal.class);
  91.     }else{
  92.         return this.importo;
  93.     }
  94.   }

  95.   public void setImporto(java.math.BigDecimal importo) {
  96.     if(importo!=null){
  97.         this._decimalWrapper_importo = new org.openspcoop2.utils.jaxb.DecimalWrapper(1,11,2,8,importo);
  98.     }
  99.   }

  100.   private static final long serialVersionUID = 1L;



  101.   @javax.xml.bind.annotation.XmlTransient
  102.   protected java.lang.String tipoRawEnumValue;

  103.   @XmlElement(name="Tipo",required=true,nillable=false)
  104.   protected TipoScontoMaggiorazioneType tipo;

  105.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
  106.   @javax.xml.bind.annotation.XmlSchemaType(name="decimal")
  107.   @XmlElement(name="Percentuale",required=false,nillable=false)
  108.   org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_percentuale = null;

  109.   @javax.xml.bind.annotation.XmlTransient
  110.   protected java.math.BigDecimal percentuale;

  111.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
  112.   @javax.xml.bind.annotation.XmlSchemaType(name="decimal")
  113.   @XmlElement(name="Importo",required=false,nillable=false)
  114.   org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_importo = null;

  115.   @javax.xml.bind.annotation.XmlTransient
  116.   protected java.math.BigDecimal importo;

  117. }