FatturaElettronicaBodyType.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 javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import java.io.Serializable;
  27. import java.util.ArrayList;
  28. import java.util.List;


  29. /** <p>Java class for FatturaElettronicaBodyType complex type.
  30.  *
  31.  * <p>The following schema fragment specifies the expected content contained within this class.
  32.  *
  33.  * <pre>
  34.  * &lt;complexType name="FatturaElettronicaBodyType"&gt;
  35.  *      &lt;sequence&gt;
  36.  *          &lt;element name="DatiGenerali" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}DatiGeneraliType" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="DatiBeniServizi" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}DatiBeniServiziType" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="DatiVeicoli" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}DatiVeicoliType" minOccurs="0" maxOccurs="1"/&gt;
  39.  *          &lt;element name="DatiPagamento" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}DatiPagamentoType" minOccurs="0" maxOccurs="unbounded"/&gt;
  40.  *          &lt;element name="Allegati" type="{http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}AllegatiType" minOccurs="0" maxOccurs="unbounded"/&gt;
  41.  *      &lt;/sequence&gt;
  42.  * &lt;/complexType&gt;
  43.  * </pre>
  44.  *
  45.  * @version $Rev$, $Date$
  46.  *
  47.  * @author Poli Andrea (poli@link.it)
  48.  * @author $Author$
  49.  * */

  50. @XmlAccessorType(XmlAccessType.FIELD)
  51. @XmlType(name = "FatturaElettronicaBodyType",
  52.   propOrder = {
  53.     "datiGenerali",
  54.     "datiBeniServizi",
  55.     "datiVeicoli",
  56.     "datiPagamento",
  57.     "allegati"
  58.   }
  59. )

  60. @XmlRootElement(name = "FatturaElettronicaBodyType")

  61. public class FatturaElettronicaBodyType extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  62.   public FatturaElettronicaBodyType() {
  63.     super();
  64.   }

  65.   public DatiGeneraliType getDatiGenerali() {
  66.     return this.datiGenerali;
  67.   }

  68.   public void setDatiGenerali(DatiGeneraliType datiGenerali) {
  69.     this.datiGenerali = datiGenerali;
  70.   }

  71.   public DatiBeniServiziType getDatiBeniServizi() {
  72.     return this.datiBeniServizi;
  73.   }

  74.   public void setDatiBeniServizi(DatiBeniServiziType datiBeniServizi) {
  75.     this.datiBeniServizi = datiBeniServizi;
  76.   }

  77.   public DatiVeicoliType getDatiVeicoli() {
  78.     return this.datiVeicoli;
  79.   }

  80.   public void setDatiVeicoli(DatiVeicoliType datiVeicoli) {
  81.     this.datiVeicoli = datiVeicoli;
  82.   }

  83.   public void addDatiPagamento(DatiPagamentoType datiPagamento) {
  84.     this.datiPagamento.add(datiPagamento);
  85.   }

  86.   public DatiPagamentoType getDatiPagamento(int index) {
  87.     return this.datiPagamento.get( index );
  88.   }

  89.   public DatiPagamentoType removeDatiPagamento(int index) {
  90.     return this.datiPagamento.remove( index );
  91.   }

  92.   public List<DatiPagamentoType> getDatiPagamentoList() {
  93.     return this.datiPagamento;
  94.   }

  95.   public void setDatiPagamentoList(List<DatiPagamentoType> datiPagamento) {
  96.     this.datiPagamento=datiPagamento;
  97.   }

  98.   public int sizeDatiPagamentoList() {
  99.     return this.datiPagamento.size();
  100.   }

  101.   public void addAllegati(AllegatiType allegati) {
  102.     this.allegati.add(allegati);
  103.   }

  104.   public AllegatiType getAllegati(int index) {
  105.     return this.allegati.get( index );
  106.   }

  107.   public AllegatiType removeAllegati(int index) {
  108.     return this.allegati.remove( index );
  109.   }

  110.   public List<AllegatiType> getAllegatiList() {
  111.     return this.allegati;
  112.   }

  113.   public void setAllegatiList(List<AllegatiType> allegati) {
  114.     this.allegati=allegati;
  115.   }

  116.   public int sizeAllegatiList() {
  117.     return this.allegati.size();
  118.   }

  119.   private static final long serialVersionUID = 1L;



  120.   @XmlElement(name="DatiGenerali",required=true,nillable=false)
  121.   protected DatiGeneraliType datiGenerali;

  122.   @XmlElement(name="DatiBeniServizi",required=true,nillable=false)
  123.   protected DatiBeniServiziType datiBeniServizi;

  124.   @XmlElement(name="DatiVeicoli",required=false,nillable=false)
  125.   protected DatiVeicoliType datiVeicoli;

  126.   @XmlElement(name="DatiPagamento",required=true,nillable=false)
  127.   private List<DatiPagamentoType> datiPagamento = new ArrayList<>();

  128.   /**
  129.    * Use method getDatiPagamentoList
  130.    * @return List&lt;DatiPagamentoType&gt;
  131.   */
  132.   public List<DatiPagamentoType> getDatiPagamento() {
  133.     return this.getDatiPagamentoList();
  134.   }

  135.   /**
  136.    * Use method setDatiPagamentoList
  137.    * @param datiPagamento List&lt;DatiPagamentoType&gt;
  138.   */
  139.   public void setDatiPagamento(List<DatiPagamentoType> datiPagamento) {
  140.     this.setDatiPagamentoList(datiPagamento);
  141.   }

  142.   /**
  143.    * Use method sizeDatiPagamentoList
  144.    * @return lunghezza della lista
  145.   */
  146.   public int sizeDatiPagamento() {
  147.     return this.sizeDatiPagamentoList();
  148.   }

  149.   @XmlElement(name="Allegati",required=true,nillable=false)
  150.   private List<AllegatiType> allegati = new ArrayList<>();

  151.   /**
  152.    * Use method getAllegatiList
  153.    * @return List&lt;AllegatiType&gt;
  154.   */
  155.   public List<AllegatiType> getAllegati() {
  156.     return this.getAllegatiList();
  157.   }

  158.   /**
  159.    * Use method setAllegatiList
  160.    * @param allegati List&lt;AllegatiType&gt;
  161.   */
  162.   public void setAllegati(List<AllegatiType> allegati) {
  163.     this.setAllegatiList(allegati);
  164.   }

  165.   /**
  166.    * Use method sizeAllegatiList
  167.    * @return lunghezza della lista
  168.   */
  169.   public int sizeAllegati() {
  170.     return this.sizeAllegatiList();
  171.   }

  172. }