DatiGeneraliDocumentoType.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.Art73Type;
  22. import it.gov.fatturapa.sdi.fatturapa.v1_0.constants.TipoDocumentoType;
  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. import java.util.ArrayList;
  30. import java.util.List;


  31. /** <p>Java class for DatiGeneraliDocumentoType complex type.
  32.  *
  33.  * <p>The following schema fragment specifies the expected content contained within this class.
  34.  *
  35.  * <pre>
  36.  * &lt;complexType name="DatiGeneraliDocumentoType"&gt;
  37.  *      &lt;sequence&gt;
  38.  *          &lt;element name="TipoDocumento" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}TipoDocumentoType" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="Divisa" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}string" minOccurs="1" maxOccurs="1"/&gt;
  40.  *          &lt;element name="Data" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="1" maxOccurs="1"/&gt;
  41.  *          &lt;element name="Numero" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}normalizedString" minOccurs="1" maxOccurs="1"/&gt;
  42.  *          &lt;element name="DatiRitenuta" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}DatiRitenutaType" minOccurs="0" maxOccurs="1"/&gt;
  43.  *          &lt;element name="DatiBollo" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}DatiBolloType" minOccurs="0" maxOccurs="1"/&gt;
  44.  *          &lt;element name="DatiCassaPrevidenziale" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}DatiCassaPrevidenzialeType" minOccurs="0" maxOccurs="unbounded"/&gt;
  45.  *          &lt;element name="ScontoMaggiorazione" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}ScontoMaggiorazioneType" minOccurs="0" maxOccurs="unbounded"/&gt;
  46.  *          &lt;element name="ImportoTotaleDocumento" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}decimal" minOccurs="0" maxOccurs="1"/&gt;
  47.  *          &lt;element name="Arrotondamento" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}decimal" minOccurs="0" maxOccurs="1"/&gt;
  48.  *          &lt;element name="Causale" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}normalizedString" minOccurs="0" maxOccurs="1"/&gt;
  49.  *          &lt;element name="Art73" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}Art73Type" minOccurs="0" maxOccurs="1"/&gt;
  50.  *      &lt;/sequence&gt;
  51.  * &lt;/complexType&gt;
  52.  * </pre>
  53.  *
  54.  * @version $Rev$, $Date$
  55.  *
  56.  * @author Poli Andrea (poli@link.it)
  57.  * @author $Author$
  58.  * */

  59. @XmlAccessorType(XmlAccessType.FIELD)
  60. @XmlType(name = "DatiGeneraliDocumentoType",
  61.   propOrder = {
  62.     "tipoDocumento",
  63.     "divisa",
  64.     "data",
  65.     "numero",
  66.     "datiRitenuta",
  67.     "datiBollo",
  68.     "datiCassaPrevidenziale",
  69.     "scontoMaggiorazione",
  70.     "_decimalWrapper_importoTotaleDocumento",
  71.     "_decimalWrapper_arrotondamento",
  72.     "causale",
  73.     "art73"
  74.   }
  75. )

  76. @XmlRootElement(name = "DatiGeneraliDocumentoType")

  77. public class DatiGeneraliDocumentoType extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  78.   public DatiGeneraliDocumentoType() {
  79.     super();
  80.   }

  81.   public void setTipoDocumentoRawEnumValue(String value) {
  82.     this.tipoDocumento = (TipoDocumentoType) TipoDocumentoType.toEnumConstantFromString(value);
  83.   }

  84.   public String getTipoDocumentoRawEnumValue() {
  85.     if(this.tipoDocumento == null){
  86.         return null;
  87.     }else{
  88.         return this.tipoDocumento.toString();
  89.     }
  90.   }

  91.   public it.gov.fatturapa.sdi.fatturapa.v1_0.constants.TipoDocumentoType getTipoDocumento() {
  92.     return this.tipoDocumento;
  93.   }

  94.   public void setTipoDocumento(it.gov.fatturapa.sdi.fatturapa.v1_0.constants.TipoDocumentoType tipoDocumento) {
  95.     this.tipoDocumento = tipoDocumento;
  96.   }

  97.   public java.lang.String getDivisa() {
  98.     return this.divisa;
  99.   }

  100.   public void setDivisa(java.lang.String divisa) {
  101.     this.divisa = divisa;
  102.   }

  103.   public java.util.Date getData() {
  104.     return this.data;
  105.   }

  106.   public void setData(java.util.Date data) {
  107.     this.data = data;
  108.   }

  109.   public java.lang.String getNumero() {
  110.     return this.numero;
  111.   }

  112.   public void setNumero(java.lang.String numero) {
  113.     this.numero = numero;
  114.   }

  115.   public DatiRitenutaType getDatiRitenuta() {
  116.     return this.datiRitenuta;
  117.   }

  118.   public void setDatiRitenuta(DatiRitenutaType datiRitenuta) {
  119.     this.datiRitenuta = datiRitenuta;
  120.   }

  121.   public DatiBolloType getDatiBollo() {
  122.     return this.datiBollo;
  123.   }

  124.   public void setDatiBollo(DatiBolloType datiBollo) {
  125.     this.datiBollo = datiBollo;
  126.   }

  127.   public void addDatiCassaPrevidenziale(DatiCassaPrevidenzialeType datiCassaPrevidenziale) {
  128.     this.datiCassaPrevidenziale.add(datiCassaPrevidenziale);
  129.   }

  130.   public DatiCassaPrevidenzialeType getDatiCassaPrevidenziale(int index) {
  131.     return this.datiCassaPrevidenziale.get( index );
  132.   }

  133.   public DatiCassaPrevidenzialeType removeDatiCassaPrevidenziale(int index) {
  134.     return this.datiCassaPrevidenziale.remove( index );
  135.   }

  136.   public List<DatiCassaPrevidenzialeType> getDatiCassaPrevidenzialeList() {
  137.     return this.datiCassaPrevidenziale;
  138.   }

  139.   public void setDatiCassaPrevidenzialeList(List<DatiCassaPrevidenzialeType> datiCassaPrevidenziale) {
  140.     this.datiCassaPrevidenziale=datiCassaPrevidenziale;
  141.   }

  142.   public int sizeDatiCassaPrevidenzialeList() {
  143.     return this.datiCassaPrevidenziale.size();
  144.   }

  145.   public void addScontoMaggiorazione(ScontoMaggiorazioneType scontoMaggiorazione) {
  146.     this.scontoMaggiorazione.add(scontoMaggiorazione);
  147.   }

  148.   public ScontoMaggiorazioneType getScontoMaggiorazione(int index) {
  149.     return this.scontoMaggiorazione.get( index );
  150.   }

  151.   public ScontoMaggiorazioneType removeScontoMaggiorazione(int index) {
  152.     return this.scontoMaggiorazione.remove( index );
  153.   }

  154.   public List<ScontoMaggiorazioneType> getScontoMaggiorazioneList() {
  155.     return this.scontoMaggiorazione;
  156.   }

  157.   public void setScontoMaggiorazioneList(List<ScontoMaggiorazioneType> scontoMaggiorazione) {
  158.     this.scontoMaggiorazione=scontoMaggiorazione;
  159.   }

  160.   public int sizeScontoMaggiorazioneList() {
  161.     return this.scontoMaggiorazione.size();
  162.   }

  163.   public java.math.BigDecimal getImportoTotaleDocumento() {
  164.     if(this._decimalWrapper_importoTotaleDocumento!=null){
  165.         return (java.math.BigDecimal) this._decimalWrapper_importoTotaleDocumento.getObject(java.math.BigDecimal.class);
  166.     }else{
  167.         return this.importoTotaleDocumento;
  168.     }
  169.   }

  170.   public void setImportoTotaleDocumento(java.math.BigDecimal importoTotaleDocumento) {
  171.     if(importoTotaleDocumento!=null){
  172.         this._decimalWrapper_importoTotaleDocumento = new org.openspcoop2.utils.jaxb.DecimalWrapper(1,11,2,2,importoTotaleDocumento);
  173.     }
  174.   }

  175.   public java.math.BigDecimal getArrotondamento() {
  176.     if(this._decimalWrapper_arrotondamento!=null){
  177.         return (java.math.BigDecimal) this._decimalWrapper_arrotondamento.getObject(java.math.BigDecimal.class);
  178.     }else{
  179.         return this.arrotondamento;
  180.     }
  181.   }

  182.   public void setArrotondamento(java.math.BigDecimal arrotondamento) {
  183.     if(arrotondamento!=null){
  184.         this._decimalWrapper_arrotondamento = new org.openspcoop2.utils.jaxb.DecimalWrapper(1,11,2,2,arrotondamento);
  185.     }
  186.   }

  187.   public java.lang.String getCausale() {
  188.     return this.causale;
  189.   }

  190.   public void setCausale(java.lang.String causale) {
  191.     this.causale = causale;
  192.   }

  193.   public void setArt73RawEnumValue(String value) {
  194.     this.art73 = (Art73Type) Art73Type.toEnumConstantFromString(value);
  195.   }

  196.   public String getArt73RawEnumValue() {
  197.     if(this.art73 == null){
  198.         return null;
  199.     }else{
  200.         return this.art73.toString();
  201.     }
  202.   }

  203.   public it.gov.fatturapa.sdi.fatturapa.v1_0.constants.Art73Type getArt73() {
  204.     return this.art73;
  205.   }

  206.   public void setArt73(it.gov.fatturapa.sdi.fatturapa.v1_0.constants.Art73Type art73) {
  207.     this.art73 = art73;
  208.   }

  209.   private static final long serialVersionUID = 1L;



  210.   @javax.xml.bind.annotation.XmlTransient
  211.   protected java.lang.String tipoDocumentoRawEnumValue;

  212.   @XmlElement(name="TipoDocumento",required=true,nillable=false)
  213.   protected TipoDocumentoType tipoDocumento;

  214.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  215.   @XmlElement(name="Divisa",required=true,nillable=false)
  216.   protected java.lang.String divisa;

  217.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Date2String.class)
  218.   @javax.xml.bind.annotation.XmlSchemaType(name="date")
  219.   @XmlElement(name="Data",required=true,nillable=false,type=java.lang.String.class)
  220.   protected java.util.Date data;

  221.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.NormalizedStringAdapter.class)
  222.   @javax.xml.bind.annotation.XmlSchemaType(name="normalizedString")
  223.   @XmlElement(name="Numero",required=true,nillable=false)
  224.   protected java.lang.String numero;

  225.   @XmlElement(name="DatiRitenuta",required=false,nillable=false)
  226.   protected DatiRitenutaType datiRitenuta;

  227.   @XmlElement(name="DatiBollo",required=false,nillable=false)
  228.   protected DatiBolloType datiBollo;

  229.   @XmlElement(name="DatiCassaPrevidenziale",required=true,nillable=false)
  230.   private List<DatiCassaPrevidenzialeType> datiCassaPrevidenziale = new ArrayList<>();

  231.   /**
  232.    * Use method getDatiCassaPrevidenzialeList
  233.    * @return List&lt;DatiCassaPrevidenzialeType&gt;
  234.   */
  235.   public List<DatiCassaPrevidenzialeType> getDatiCassaPrevidenziale() {
  236.     return this.getDatiCassaPrevidenzialeList();
  237.   }

  238.   /**
  239.    * Use method setDatiCassaPrevidenzialeList
  240.    * @param datiCassaPrevidenziale List&lt;DatiCassaPrevidenzialeType&gt;
  241.   */
  242.   public void setDatiCassaPrevidenziale(List<DatiCassaPrevidenzialeType> datiCassaPrevidenziale) {
  243.     this.setDatiCassaPrevidenzialeList(datiCassaPrevidenziale);
  244.   }

  245.   /**
  246.    * Use method sizeDatiCassaPrevidenzialeList
  247.    * @return lunghezza della lista
  248.   */
  249.   public int sizeDatiCassaPrevidenziale() {
  250.     return this.sizeDatiCassaPrevidenzialeList();
  251.   }

  252.   @XmlElement(name="ScontoMaggiorazione",required=true,nillable=false)
  253.   private List<ScontoMaggiorazioneType> scontoMaggiorazione = new ArrayList<>();

  254.   /**
  255.    * Use method getScontoMaggiorazioneList
  256.    * @return List&lt;ScontoMaggiorazioneType&gt;
  257.   */
  258.   public List<ScontoMaggiorazioneType> getScontoMaggiorazione() {
  259.     return this.getScontoMaggiorazioneList();
  260.   }

  261.   /**
  262.    * Use method setScontoMaggiorazioneList
  263.    * @param scontoMaggiorazione List&lt;ScontoMaggiorazioneType&gt;
  264.   */
  265.   public void setScontoMaggiorazione(List<ScontoMaggiorazioneType> scontoMaggiorazione) {
  266.     this.setScontoMaggiorazioneList(scontoMaggiorazione);
  267.   }

  268.   /**
  269.    * Use method sizeScontoMaggiorazioneList
  270.    * @return lunghezza della lista
  271.   */
  272.   public int sizeScontoMaggiorazione() {
  273.     return this.sizeScontoMaggiorazioneList();
  274.   }

  275.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
  276.   @javax.xml.bind.annotation.XmlSchemaType(name="decimal")
  277.   @XmlElement(name="ImportoTotaleDocumento",required=false,nillable=false)
  278.   org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_importoTotaleDocumento = null;

  279.   @javax.xml.bind.annotation.XmlTransient
  280.   protected java.math.BigDecimal importoTotaleDocumento;

  281.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
  282.   @javax.xml.bind.annotation.XmlSchemaType(name="decimal")
  283.   @XmlElement(name="Arrotondamento",required=false,nillable=false)
  284.   org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_arrotondamento = null;

  285.   @javax.xml.bind.annotation.XmlTransient
  286.   protected java.math.BigDecimal arrotondamento;

  287.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.NormalizedStringAdapter.class)
  288.   @javax.xml.bind.annotation.XmlSchemaType(name="normalizedString")
  289.   @XmlElement(name="Causale",required=false,nillable=false)
  290.   protected java.lang.String causale;

  291.   @javax.xml.bind.annotation.XmlTransient
  292.   protected java.lang.String art73RawEnumValue;

  293.   @XmlElement(name="Art73",required=false,nillable=false)
  294.   protected Art73Type art73;

  295. }