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_1;

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

  94.   public void setTipoDocumento(it.gov.fatturapa.sdi.fatturapa.v1_1.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 void addCausale(java.lang.String causale) {
  188.     this.causale.add(causale);
  189.   }

  190.   public java.lang.String getCausale(int index) {
  191.     return this.causale.get( index );
  192.   }

  193.   public java.lang.String removeCausale(int index) {
  194.     return this.causale.remove( index );
  195.   }

  196.   public List<java.lang.String> getCausaleList() {
  197.     return this.causale;
  198.   }

  199.   public void setCausaleList(List<java.lang.String> causale) {
  200.     this.causale=causale;
  201.   }

  202.   public int sizeCausaleList() {
  203.     return this.causale.size();
  204.   }

  205.   public void setArt73RawEnumValue(String value) {
  206.     this.art73 = (Art73Type) Art73Type.toEnumConstantFromString(value);
  207.   }

  208.   public String getArt73RawEnumValue() {
  209.     if(this.art73 == null){
  210.         return null;
  211.     }else{
  212.         return this.art73.toString();
  213.     }
  214.   }

  215.   public it.gov.fatturapa.sdi.fatturapa.v1_1.constants.Art73Type getArt73() {
  216.     return this.art73;
  217.   }

  218.   public void setArt73(it.gov.fatturapa.sdi.fatturapa.v1_1.constants.Art73Type art73) {
  219.     this.art73 = art73;
  220.   }

  221.   private static final long serialVersionUID = 1L;



  222.   @javax.xml.bind.annotation.XmlTransient
  223.   protected java.lang.String tipoDocumentoRawEnumValue;

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

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

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

  233.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.NormalizedStringAdapter.class)
  234.   @javax.xml.bind.annotation.XmlSchemaType(name="normalizedString")
  235.   @XmlElement(name="Numero",required=true,nillable=false)
  236.   protected java.lang.String numero;

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

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

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

  243.   /**
  244.    * Use method getDatiCassaPrevidenzialeList
  245.    * @return List&lt;DatiCassaPrevidenzialeType&gt;
  246.   */
  247.   public List<DatiCassaPrevidenzialeType> getDatiCassaPrevidenziale() {
  248.     return this.getDatiCassaPrevidenzialeList();
  249.   }

  250.   /**
  251.    * Use method setDatiCassaPrevidenzialeList
  252.    * @param datiCassaPrevidenziale List&lt;DatiCassaPrevidenzialeType&gt;
  253.   */
  254.   public void setDatiCassaPrevidenziale(List<DatiCassaPrevidenzialeType> datiCassaPrevidenziale) {
  255.     this.setDatiCassaPrevidenzialeList(datiCassaPrevidenziale);
  256.   }

  257.   /**
  258.    * Use method sizeDatiCassaPrevidenzialeList
  259.    * @return lunghezza della lista
  260.   */
  261.   public int sizeDatiCassaPrevidenziale() {
  262.     return this.sizeDatiCassaPrevidenzialeList();
  263.   }

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

  266.   /**
  267.    * Use method getScontoMaggiorazioneList
  268.    * @return List&lt;ScontoMaggiorazioneType&gt;
  269.   */
  270.   public List<ScontoMaggiorazioneType> getScontoMaggiorazione() {
  271.     return this.getScontoMaggiorazioneList();
  272.   }

  273.   /**
  274.    * Use method setScontoMaggiorazioneList
  275.    * @param scontoMaggiorazione List&lt;ScontoMaggiorazioneType&gt;
  276.   */
  277.   public void setScontoMaggiorazione(List<ScontoMaggiorazioneType> scontoMaggiorazione) {
  278.     this.setScontoMaggiorazioneList(scontoMaggiorazione);
  279.   }

  280.   /**
  281.    * Use method sizeScontoMaggiorazioneList
  282.    * @return lunghezza della lista
  283.   */
  284.   public int sizeScontoMaggiorazione() {
  285.     return this.sizeScontoMaggiorazioneList();
  286.   }

  287.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
  288.   @javax.xml.bind.annotation.XmlSchemaType(name="decimal")
  289.   @XmlElement(name="ImportoTotaleDocumento",required=false,nillable=false)
  290.   org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_importoTotaleDocumento = null;

  291.   @javax.xml.bind.annotation.XmlTransient
  292.   protected java.math.BigDecimal importoTotaleDocumento;

  293.   @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
  294.   @javax.xml.bind.annotation.XmlSchemaType(name="decimal")
  295.   @XmlElement(name="Arrotondamento",required=false,nillable=false)
  296.   org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_arrotondamento = null;

  297.   @javax.xml.bind.annotation.XmlTransient
  298.   protected java.math.BigDecimal arrotondamento;

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

  303.   /**
  304.    * Use method getCausaleList
  305.    * @return List&lt;java.lang.String&gt;
  306.   */
  307.   public List<java.lang.String> getCausale() {
  308.     return this.getCausaleList();
  309.   }

  310.   /**
  311.    * Use method setCausaleList
  312.    * @param causale List&lt;java.lang.String&gt;
  313.   */
  314.   public void setCausale(List<java.lang.String> causale) {
  315.     this.setCausaleList(causale);
  316.   }

  317.   /**
  318.    * Use method sizeCausaleList
  319.    * @return lunghezza della lista
  320.   */
  321.   public int sizeCausale() {
  322.     return this.sizeCausaleList();
  323.   }

  324.   @javax.xml.bind.annotation.XmlTransient
  325.   protected java.lang.String art73RawEnumValue;

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

  328. }