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.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2;

  21. import it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2.constants.Art73Type;
  22. import it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2.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://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}TipoDocumentoType" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="Divisa" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}string" minOccurs="1" maxOccurs="1"/&gt;
  40.  *          &lt;element name="Data" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}date" minOccurs="1" maxOccurs="1"/&gt;
  41.  *          &lt;element name="Numero" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}normalizedString" minOccurs="1" maxOccurs="1"/&gt;
  42.  *          &lt;element name="DatiRitenuta" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}DatiRitenutaType" minOccurs="0" maxOccurs="unbounded"/&gt;
  43.  *          &lt;element name="DatiBollo" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}DatiBolloType" minOccurs="0" maxOccurs="1"/&gt;
  44.  *          &lt;element name="DatiCassaPrevidenziale" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}DatiCassaPrevidenzialeType" minOccurs="0" maxOccurs="unbounded"/&gt;
  45.  *          &lt;element name="ScontoMaggiorazione" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}ScontoMaggiorazioneType" minOccurs="0" maxOccurs="unbounded"/&gt;
  46.  *          &lt;element name="ImportoTotaleDocumento" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}decimal" minOccurs="0" maxOccurs="1"/&gt;
  47.  *          &lt;element name="Arrotondamento" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}decimal" minOccurs="0" maxOccurs="1"/&gt;
  48.  *          &lt;element name="Causale" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}normalizedString" minOccurs="0" maxOccurs="unbounded"/&gt;
  49.  *          &lt;element name="Art73" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}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.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2.constants.TipoDocumentoType getTipoDocumento() {
  92.     return this.tipoDocumento;
  93.   }

  94.   public void setTipoDocumento(it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2.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 void addDatiRitenuta(DatiRitenutaType datiRitenuta) {
  116.     this.datiRitenuta.add(datiRitenuta);
  117.   }

  118.   public DatiRitenutaType getDatiRitenuta(int index) {
  119.     return this.datiRitenuta.get( index );
  120.   }

  121.   public DatiRitenutaType removeDatiRitenuta(int index) {
  122.     return this.datiRitenuta.remove( index );
  123.   }

  124.   public List<DatiRitenutaType> getDatiRitenutaList() {
  125.     return this.datiRitenuta;
  126.   }

  127.   public void setDatiRitenutaList(List<DatiRitenutaType> datiRitenuta) {
  128.     this.datiRitenuta=datiRitenuta;
  129.   }

  130.   public int sizeDatiRitenutaList() {
  131.     return this.datiRitenuta.size();
  132.   }

  133.   public DatiBolloType getDatiBollo() {
  134.     return this.datiBollo;
  135.   }

  136.   public void setDatiBollo(DatiBolloType datiBollo) {
  137.     this.datiBollo = datiBollo;
  138.   }

  139.   public void addDatiCassaPrevidenziale(DatiCassaPrevidenzialeType datiCassaPrevidenziale) {
  140.     this.datiCassaPrevidenziale.add(datiCassaPrevidenziale);
  141.   }

  142.   public DatiCassaPrevidenzialeType getDatiCassaPrevidenziale(int index) {
  143.     return this.datiCassaPrevidenziale.get( index );
  144.   }

  145.   public DatiCassaPrevidenzialeType removeDatiCassaPrevidenziale(int index) {
  146.     return this.datiCassaPrevidenziale.remove( index );
  147.   }

  148.   public List<DatiCassaPrevidenzialeType> getDatiCassaPrevidenzialeList() {
  149.     return this.datiCassaPrevidenziale;
  150.   }

  151.   public void setDatiCassaPrevidenzialeList(List<DatiCassaPrevidenzialeType> datiCassaPrevidenziale) {
  152.     this.datiCassaPrevidenziale=datiCassaPrevidenziale;
  153.   }

  154.   public int sizeDatiCassaPrevidenzialeList() {
  155.     return this.datiCassaPrevidenziale.size();
  156.   }

  157.   public void addScontoMaggiorazione(ScontoMaggiorazioneType scontoMaggiorazione) {
  158.     this.scontoMaggiorazione.add(scontoMaggiorazione);
  159.   }

  160.   public ScontoMaggiorazioneType getScontoMaggiorazione(int index) {
  161.     return this.scontoMaggiorazione.get( index );
  162.   }

  163.   public ScontoMaggiorazioneType removeScontoMaggiorazione(int index) {
  164.     return this.scontoMaggiorazione.remove( index );
  165.   }

  166.   public List<ScontoMaggiorazioneType> getScontoMaggiorazioneList() {
  167.     return this.scontoMaggiorazione;
  168.   }

  169.   public void setScontoMaggiorazioneList(List<ScontoMaggiorazioneType> scontoMaggiorazione) {
  170.     this.scontoMaggiorazione=scontoMaggiorazione;
  171.   }

  172.   public int sizeScontoMaggiorazioneList() {
  173.     return this.scontoMaggiorazione.size();
  174.   }

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

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

  187.   public java.math.BigDecimal getArrotondamento() {
  188.     if(this._decimalWrapper_arrotondamento!=null){
  189.         return (java.math.BigDecimal) this._decimalWrapper_arrotondamento.getObject(java.math.BigDecimal.class);
  190.     }else{
  191.         return this.arrotondamento;
  192.     }
  193.   }

  194.   public void setArrotondamento(java.math.BigDecimal arrotondamento) {
  195.     if(arrotondamento!=null){
  196.         this._decimalWrapper_arrotondamento = new org.openspcoop2.utils.jaxb.DecimalWrapper(1,11,2,2,arrotondamento);
  197.     }
  198.   }

  199.   public void addCausale(java.lang.String causale) {
  200.     this.causale.add(causale);
  201.   }

  202.   public java.lang.String getCausale(int index) {
  203.     return this.causale.get( index );
  204.   }

  205.   public java.lang.String removeCausale(int index) {
  206.     return this.causale.remove( index );
  207.   }

  208.   public List<java.lang.String> getCausaleList() {
  209.     return this.causale;
  210.   }

  211.   public void setCausaleList(List<java.lang.String> causale) {
  212.     this.causale=causale;
  213.   }

  214.   public int sizeCausaleList() {
  215.     return this.causale.size();
  216.   }

  217.   public void setArt73RawEnumValue(String value) {
  218.     this.art73 = (Art73Type) Art73Type.toEnumConstantFromString(value);
  219.   }

  220.   public String getArt73RawEnumValue() {
  221.     if(this.art73 == null){
  222.         return null;
  223.     }else{
  224.         return this.art73.toString();
  225.     }
  226.   }

  227.   public it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2.constants.Art73Type getArt73() {
  228.     return this.art73;
  229.   }

  230.   public void setArt73(it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v1_2.constants.Art73Type art73) {
  231.     this.art73 = art73;
  232.   }

  233.   private static final long serialVersionUID = 1L;



  234.   @javax.xml.bind.annotation.XmlTransient
  235.   protected java.lang.String tipoDocumentoRawEnumValue;

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

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

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

  245.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.NormalizedStringAdapter.class)
  246.   @javax.xml.bind.annotation.XmlSchemaType(name="normalizedString")
  247.   @XmlElement(name="Numero",required=true,nillable=false)
  248.   protected java.lang.String numero;

  249.   @XmlElement(name="DatiRitenuta",required=true,nillable=false)
  250.   private List<DatiRitenutaType> datiRitenuta = new ArrayList<>();

  251.   /**
  252.    * Use method getDatiRitenutaList
  253.    * @return List&lt;DatiRitenutaType&gt;
  254.   */
  255.   public List<DatiRitenutaType> getDatiRitenuta() {
  256.     return this.getDatiRitenutaList();
  257.   }

  258.   /**
  259.    * Use method setDatiRitenutaList
  260.    * @param datiRitenuta List&lt;DatiRitenutaType&gt;
  261.   */
  262.   public void setDatiRitenuta(List<DatiRitenutaType> datiRitenuta) {
  263.     this.setDatiRitenutaList(datiRitenuta);
  264.   }

  265.   /**
  266.    * Use method sizeDatiRitenutaList
  267.    * @return lunghezza della lista
  268.   */
  269.   public int sizeDatiRitenuta() {
  270.     return this.sizeDatiRitenutaList();
  271.   }

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

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

  276.   /**
  277.    * Use method getDatiCassaPrevidenzialeList
  278.    * @return List&lt;DatiCassaPrevidenzialeType&gt;
  279.   */
  280.   public List<DatiCassaPrevidenzialeType> getDatiCassaPrevidenziale() {
  281.     return this.getDatiCassaPrevidenzialeList();
  282.   }

  283.   /**
  284.    * Use method setDatiCassaPrevidenzialeList
  285.    * @param datiCassaPrevidenziale List&lt;DatiCassaPrevidenzialeType&gt;
  286.   */
  287.   public void setDatiCassaPrevidenziale(List<DatiCassaPrevidenzialeType> datiCassaPrevidenziale) {
  288.     this.setDatiCassaPrevidenzialeList(datiCassaPrevidenziale);
  289.   }

  290.   /**
  291.    * Use method sizeDatiCassaPrevidenzialeList
  292.    * @return lunghezza della lista
  293.   */
  294.   public int sizeDatiCassaPrevidenziale() {
  295.     return this.sizeDatiCassaPrevidenzialeList();
  296.   }

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

  299.   /**
  300.    * Use method getScontoMaggiorazioneList
  301.    * @return List&lt;ScontoMaggiorazioneType&gt;
  302.   */
  303.   public List<ScontoMaggiorazioneType> getScontoMaggiorazione() {
  304.     return this.getScontoMaggiorazioneList();
  305.   }

  306.   /**
  307.    * Use method setScontoMaggiorazioneList
  308.    * @param scontoMaggiorazione List&lt;ScontoMaggiorazioneType&gt;
  309.   */
  310.   public void setScontoMaggiorazione(List<ScontoMaggiorazioneType> scontoMaggiorazione) {
  311.     this.setScontoMaggiorazioneList(scontoMaggiorazione);
  312.   }

  313.   /**
  314.    * Use method sizeScontoMaggiorazioneList
  315.    * @return lunghezza della lista
  316.   */
  317.   public int sizeScontoMaggiorazione() {
  318.     return this.sizeScontoMaggiorazioneList();
  319.   }

  320.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
  321.   @javax.xml.bind.annotation.XmlSchemaType(name="decimal")
  322.   @XmlElement(name="ImportoTotaleDocumento",required=false,nillable=false)
  323.   org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_importoTotaleDocumento = null;

  324.   @javax.xml.bind.annotation.XmlTransient
  325.   protected java.math.BigDecimal importoTotaleDocumento;

  326.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
  327.   @javax.xml.bind.annotation.XmlSchemaType(name="decimal")
  328.   @XmlElement(name="Arrotondamento",required=false,nillable=false)
  329.   org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_arrotondamento = null;

  330.   @javax.xml.bind.annotation.XmlTransient
  331.   protected java.math.BigDecimal arrotondamento;

  332.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.NormalizedStringAdapter.class)
  333.   @javax.xml.bind.annotation.XmlSchemaType(name="normalizedString")
  334.   @XmlElement(name="Causale",required=true,nillable=false)
  335.   private List<java.lang.String> causale = new ArrayList<>();

  336.   /**
  337.    * Use method getCausaleList
  338.    * @return List&lt;java.lang.String&gt;
  339.   */
  340.   public List<java.lang.String> getCausale() {
  341.     return this.getCausaleList();
  342.   }

  343.   /**
  344.    * Use method setCausaleList
  345.    * @param causale List&lt;java.lang.String&gt;
  346.   */
  347.   public void setCausale(List<java.lang.String> causale) {
  348.     this.setCausaleList(causale);
  349.   }

  350.   /**
  351.    * Use method sizeCausaleList
  352.    * @return lunghezza della lista
  353.   */
  354.   public int sizeCausale() {
  355.     return this.sizeCausaleList();
  356.   }

  357.   @javax.xml.bind.annotation.XmlTransient
  358.   protected java.lang.String art73RawEnumValue;

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

  361. }