FatturaElettronicaHeaderType.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.SoggettoEmittenteType;
  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 FatturaElettronicaHeaderType complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="FatturaElettronicaHeaderType"&gt;
  34.  *      &lt;sequence&gt;
  35.  *          &lt;element name="DatiTrasmissione" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}DatiTrasmissioneType" minOccurs="1" maxOccurs="1"/&gt;
  36.  *          &lt;element name="CedentePrestatore" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}CedentePrestatoreType" minOccurs="1" maxOccurs="1"/&gt;
  37.  *          &lt;element name="RappresentanteFiscale" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}RappresentanteFiscaleType" minOccurs="0" maxOccurs="1"/&gt;
  38.  *          &lt;element name="CessionarioCommittente" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}CessionarioCommittenteType" minOccurs="1" maxOccurs="1"/&gt;
  39.  *          &lt;element name="TerzoIntermediarioOSoggettoEmittente" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}TerzoIntermediarioSoggettoEmittenteType" minOccurs="0" maxOccurs="1"/&gt;
  40.  *          &lt;element name="SoggettoEmittente" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}SoggettoEmittenteType" minOccurs="0" maxOccurs="1"/&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 = "FatturaElettronicaHeaderType",
  52.   propOrder = {
  53.     "datiTrasmissione",
  54.     "cedentePrestatore",
  55.     "rappresentanteFiscale",
  56.     "cessionarioCommittente",
  57.     "terzoIntermediarioOSoggettoEmittente",
  58.     "soggettoEmittente"
  59.   }
  60. )

  61. @XmlRootElement(name = "FatturaElettronicaHeaderType")

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

  66.   public DatiTrasmissioneType getDatiTrasmissione() {
  67.     return this.datiTrasmissione;
  68.   }

  69.   public void setDatiTrasmissione(DatiTrasmissioneType datiTrasmissione) {
  70.     this.datiTrasmissione = datiTrasmissione;
  71.   }

  72.   public CedentePrestatoreType getCedentePrestatore() {
  73.     return this.cedentePrestatore;
  74.   }

  75.   public void setCedentePrestatore(CedentePrestatoreType cedentePrestatore) {
  76.     this.cedentePrestatore = cedentePrestatore;
  77.   }

  78.   public RappresentanteFiscaleType getRappresentanteFiscale() {
  79.     return this.rappresentanteFiscale;
  80.   }

  81.   public void setRappresentanteFiscale(RappresentanteFiscaleType rappresentanteFiscale) {
  82.     this.rappresentanteFiscale = rappresentanteFiscale;
  83.   }

  84.   public CessionarioCommittenteType getCessionarioCommittente() {
  85.     return this.cessionarioCommittente;
  86.   }

  87.   public void setCessionarioCommittente(CessionarioCommittenteType cessionarioCommittente) {
  88.     this.cessionarioCommittente = cessionarioCommittente;
  89.   }

  90.   public TerzoIntermediarioSoggettoEmittenteType getTerzoIntermediarioOSoggettoEmittente() {
  91.     return this.terzoIntermediarioOSoggettoEmittente;
  92.   }

  93.   public void setTerzoIntermediarioOSoggettoEmittente(TerzoIntermediarioSoggettoEmittenteType terzoIntermediarioOSoggettoEmittente) {
  94.     this.terzoIntermediarioOSoggettoEmittente = terzoIntermediarioOSoggettoEmittente;
  95.   }

  96.   public void setSoggettoEmittenteRawEnumValue(String value) {
  97.     this.soggettoEmittente = (SoggettoEmittenteType) SoggettoEmittenteType.toEnumConstantFromString(value);
  98.   }

  99.   public String getSoggettoEmittenteRawEnumValue() {
  100.     if(this.soggettoEmittente == null){
  101.         return null;
  102.     }else{
  103.         return this.soggettoEmittente.toString();
  104.     }
  105.   }

  106.   public it.gov.fatturapa.sdi.fatturapa.v1_0.constants.SoggettoEmittenteType getSoggettoEmittente() {
  107.     return this.soggettoEmittente;
  108.   }

  109.   public void setSoggettoEmittente(it.gov.fatturapa.sdi.fatturapa.v1_0.constants.SoggettoEmittenteType soggettoEmittente) {
  110.     this.soggettoEmittente = soggettoEmittente;
  111.   }

  112.   private static final long serialVersionUID = 1L;



  113.   @XmlElement(name="DatiTrasmissione",required=true,nillable=false)
  114.   protected DatiTrasmissioneType datiTrasmissione;

  115.   @XmlElement(name="CedentePrestatore",required=true,nillable=false)
  116.   protected CedentePrestatoreType cedentePrestatore;

  117.   @XmlElement(name="RappresentanteFiscale",required=false,nillable=false)
  118.   protected RappresentanteFiscaleType rappresentanteFiscale;

  119.   @XmlElement(name="CessionarioCommittente",required=true,nillable=false)
  120.   protected CessionarioCommittenteType cessionarioCommittente;

  121.   @XmlElement(name="TerzoIntermediarioOSoggettoEmittente",required=false,nillable=false)
  122.   protected TerzoIntermediarioSoggettoEmittenteType terzoIntermediarioOSoggettoEmittente;

  123.   @javax.xml.bind.annotation.XmlTransient
  124.   protected java.lang.String soggettoEmittenteRawEnumValue;

  125.   @XmlElement(name="SoggettoEmittente",required=false,nillable=false)
  126.   protected SoggettoEmittenteType soggettoEmittente;

  127. }