DatiRitenutaType.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.fatturapa.sdi.fatturapa.v1_0;

  21. import it.gov.fatturapa.sdi.fatturapa.v1_0.constants.CausalePagamentoType;
  22. import it.gov.fatturapa.sdi.fatturapa.v1_0.constants.TipoRitenutaType;
  23. import javax.xml.bind.annotation.XmlAccessType;
  24. import javax.xml.bind.annotation.XmlAccessorType;
  25. import javax.xml.bind.annotation.XmlElement;
  26. import javax.xml.bind.annotation.XmlRootElement;
  27. import javax.xml.bind.annotation.XmlType;
  28. import java.io.Serializable;


  29. /** <p>Java class for DatiRitenutaType complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="DatiRitenutaType"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="TipoRitenuta" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}TipoRitenutaType" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="ImportoRitenuta" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}decimal" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="AliquotaRitenuta" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}decimal" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="CausalePagamento" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}CausalePagamentoType" minOccurs="1" maxOccurs="1"/&gt;
  40.  *      &lt;/sequence&gt;
  41.  * &lt;/complexType&gt;
  42.  * </pre>
  43.  *
  44.  * @version $Rev$, $Date$
  45.  *
  46.  * @author Poli Andrea (poli@link.it)
  47.  * @author $Author$
  48.  * */

  49. @XmlAccessorType(XmlAccessType.FIELD)
  50. @XmlType(name = "DatiRitenutaType",
  51.   propOrder = {
  52.     "tipoRitenuta",
  53.     "_decimalWrapper_importoRitenuta",
  54.     "_decimalWrapper_aliquotaRitenuta",
  55.     "causalePagamento"
  56.   }
  57. )

  58. @XmlRootElement(name = "DatiRitenutaType")

  59. public class DatiRitenutaType extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  60.   public DatiRitenutaType() {
  61.     super();
  62.   }

  63.   public void setTipoRitenutaRawEnumValue(String value) {
  64.     this.tipoRitenuta = (TipoRitenutaType) TipoRitenutaType.toEnumConstantFromString(value);
  65.   }

  66.   public String getTipoRitenutaRawEnumValue() {
  67.     if(this.tipoRitenuta == null){
  68.         return null;
  69.     }else{
  70.         return this.tipoRitenuta.toString();
  71.     }
  72.   }

  73.   public it.gov.fatturapa.sdi.fatturapa.v1_0.constants.TipoRitenutaType getTipoRitenuta() {
  74.     return this.tipoRitenuta;
  75.   }

  76.   public void setTipoRitenuta(it.gov.fatturapa.sdi.fatturapa.v1_0.constants.TipoRitenutaType tipoRitenuta) {
  77.     this.tipoRitenuta = tipoRitenuta;
  78.   }

  79.   public java.math.BigDecimal getImportoRitenuta() {
  80.     if(this._decimalWrapper_importoRitenuta!=null){
  81.         return (java.math.BigDecimal) this._decimalWrapper_importoRitenuta.getObject(java.math.BigDecimal.class);
  82.     }else{
  83.         return this.importoRitenuta;
  84.     }
  85.   }

  86.   public void setImportoRitenuta(java.math.BigDecimal importoRitenuta) {
  87.     if(importoRitenuta!=null){
  88.         this._decimalWrapper_importoRitenuta = new org.openspcoop2.utils.jaxb.DecimalWrapper(1,11,2,2,importoRitenuta);
  89.     }
  90.   }

  91.   public java.math.BigDecimal getAliquotaRitenuta() {
  92.     if(this._decimalWrapper_aliquotaRitenuta!=null){
  93.         return (java.math.BigDecimal) this._decimalWrapper_aliquotaRitenuta.getObject(java.math.BigDecimal.class);
  94.     }else{
  95.         return this.aliquotaRitenuta;
  96.     }
  97.   }

  98.   public void setAliquotaRitenuta(java.math.BigDecimal aliquotaRitenuta) {
  99.     if(aliquotaRitenuta!=null){
  100.         this._decimalWrapper_aliquotaRitenuta = new org.openspcoop2.utils.jaxb.DecimalWrapper(1,3,2,2,aliquotaRitenuta);
  101.     }
  102.   }

  103.   public void setCausalePagamentoRawEnumValue(String value) {
  104.     this.causalePagamento = (CausalePagamentoType) CausalePagamentoType.toEnumConstantFromString(value);
  105.   }

  106.   public String getCausalePagamentoRawEnumValue() {
  107.     if(this.causalePagamento == null){
  108.         return null;
  109.     }else{
  110.         return this.causalePagamento.toString();
  111.     }
  112.   }

  113.   public it.gov.fatturapa.sdi.fatturapa.v1_0.constants.CausalePagamentoType getCausalePagamento() {
  114.     return this.causalePagamento;
  115.   }

  116.   public void setCausalePagamento(it.gov.fatturapa.sdi.fatturapa.v1_0.constants.CausalePagamentoType causalePagamento) {
  117.     this.causalePagamento = causalePagamento;
  118.   }

  119.   private static final long serialVersionUID = 1L;



  120.   @javax.xml.bind.annotation.XmlTransient
  121.   protected java.lang.String tipoRitenutaRawEnumValue;

  122.   @XmlElement(name="TipoRitenuta",required=true,nillable=false)
  123.   protected TipoRitenutaType tipoRitenuta;

  124.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
  125.   @javax.xml.bind.annotation.XmlSchemaType(name="decimal")
  126.   @XmlElement(name="ImportoRitenuta",required=true,nillable=false)
  127.   org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_importoRitenuta = null;

  128.   @javax.xml.bind.annotation.XmlTransient
  129.   protected java.math.BigDecimal importoRitenuta;

  130.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
  131.   @javax.xml.bind.annotation.XmlSchemaType(name="decimal")
  132.   @XmlElement(name="AliquotaRitenuta",required=true,nillable=false)
  133.   org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_aliquotaRitenuta = null;

  134.   @javax.xml.bind.annotation.XmlTransient
  135.   protected java.math.BigDecimal aliquotaRitenuta;

  136.   @javax.xml.bind.annotation.XmlTransient
  137.   protected java.lang.String causalePagamentoRawEnumValue;

  138.   @XmlElement(name="CausalePagamento",required=true,nillable=false)
  139.   protected CausalePagamentoType causalePagamento;

  140. }