DettaglioLineeType.java
/*
* GovWay - A customizable API Gateway
* https://govway.org
*
* Copyright (c) 2005-2024 Link.it srl (https://link.it).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3, as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package it.gov.fatturapa.sdi.fatturapa.v1_0;
import it.gov.fatturapa.sdi.fatturapa.v1_0.constants.NaturaType;
import it.gov.fatturapa.sdi.fatturapa.v1_0.constants.RitenutaType;
import it.gov.fatturapa.sdi.fatturapa.v1_0.constants.TipoCessionePrestazioneType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/** <p>Java class for DettaglioLineeType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="DettaglioLineeType">
* <sequence>
* <element name="NumeroLinea" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}integer" minOccurs="1" maxOccurs="1"/>
* <element name="TipoCessionePrestazione" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}TipoCessionePrestazioneType" minOccurs="0" maxOccurs="1"/>
* <element name="CodiceArticolo" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}CodiceArticoloType" minOccurs="0" maxOccurs="unbounded"/>
* <element name="Descrizione" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}normalizedString" minOccurs="1" maxOccurs="1"/>
* <element name="Quantita" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}decimal" minOccurs="0" maxOccurs="1"/>
* <element name="UnitaMisura" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}normalizedString" minOccurs="0" maxOccurs="1"/>
* <element name="DataInizioPeriodo" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0" maxOccurs="1"/>
* <element name="DataFinePeriodo" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0" maxOccurs="1"/>
* <element name="PrezzoUnitario" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}decimal" minOccurs="1" maxOccurs="1"/>
* <element name="ScontoMaggiorazione" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}ScontoMaggiorazioneType" minOccurs="0" maxOccurs="unbounded"/>
* <element name="PrezzoTotale" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}decimal" minOccurs="1" maxOccurs="1"/>
* <element name="AliquotaIVA" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}decimal" minOccurs="1" maxOccurs="1"/>
* <element name="Ritenuta" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}RitenutaType" minOccurs="0" maxOccurs="1"/>
* <element name="Natura" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}NaturaType" minOccurs="0" maxOccurs="1"/>
* <element name="RiferimentoAmministrazione" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}normalizedString" minOccurs="0" maxOccurs="1"/>
* <element name="AltriDatiGestionali" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}AltriDatiGestionaliType" minOccurs="0" maxOccurs="unbounded"/>
* </sequence>
* </complexType>
* </pre>
*
* @version $Rev$, $Date$
*
* @author Poli Andrea (poli@link.it)
* @author $Author$
* */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DettaglioLineeType",
propOrder = {
"numeroLinea",
"tipoCessionePrestazione",
"codiceArticolo",
"descrizione",
"_decimalWrapper_quantita",
"unitaMisura",
"dataInizioPeriodo",
"dataFinePeriodo",
"_decimalWrapper_prezzoUnitario",
"scontoMaggiorazione",
"_decimalWrapper_prezzoTotale",
"_decimalWrapper_aliquotaIVA",
"ritenuta",
"natura",
"riferimentoAmministrazione",
"altriDatiGestionali"
}
)
@XmlRootElement(name = "DettaglioLineeType")
public class DettaglioLineeType extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
public DettaglioLineeType() {
super();
}
public java.math.BigInteger getNumeroLinea() {
return this.numeroLinea;
}
public void setNumeroLinea(java.math.BigInteger numeroLinea) {
this.numeroLinea = numeroLinea;
}
public void setTipoCessionePrestazioneRawEnumValue(String value) {
this.tipoCessionePrestazione = (TipoCessionePrestazioneType) TipoCessionePrestazioneType.toEnumConstantFromString(value);
}
public String getTipoCessionePrestazioneRawEnumValue() {
if(this.tipoCessionePrestazione == null){
return null;
}else{
return this.tipoCessionePrestazione.toString();
}
}
public it.gov.fatturapa.sdi.fatturapa.v1_0.constants.TipoCessionePrestazioneType getTipoCessionePrestazione() {
return this.tipoCessionePrestazione;
}
public void setTipoCessionePrestazione(it.gov.fatturapa.sdi.fatturapa.v1_0.constants.TipoCessionePrestazioneType tipoCessionePrestazione) {
this.tipoCessionePrestazione = tipoCessionePrestazione;
}
public void addCodiceArticolo(CodiceArticoloType codiceArticolo) {
this.codiceArticolo.add(codiceArticolo);
}
public CodiceArticoloType getCodiceArticolo(int index) {
return this.codiceArticolo.get( index );
}
public CodiceArticoloType removeCodiceArticolo(int index) {
return this.codiceArticolo.remove( index );
}
public List<CodiceArticoloType> getCodiceArticoloList() {
return this.codiceArticolo;
}
public void setCodiceArticoloList(List<CodiceArticoloType> codiceArticolo) {
this.codiceArticolo=codiceArticolo;
}
public int sizeCodiceArticoloList() {
return this.codiceArticolo.size();
}
public java.lang.String getDescrizione() {
return this.descrizione;
}
public void setDescrizione(java.lang.String descrizione) {
this.descrizione = descrizione;
}
public java.math.BigDecimal getQuantita() {
if(this._decimalWrapper_quantita!=null){
return (java.math.BigDecimal) this._decimalWrapper_quantita.getObject(java.math.BigDecimal.class);
}else{
return this.quantita;
}
}
public void setQuantita(java.math.BigDecimal quantita) {
if(quantita!=null){
this._decimalWrapper_quantita = new org.openspcoop2.utils.jaxb.DecimalWrapper(1,18,2,2,quantita);
}
}
public java.lang.String getUnitaMisura() {
return this.unitaMisura;
}
public void setUnitaMisura(java.lang.String unitaMisura) {
this.unitaMisura = unitaMisura;
}
public java.util.Date getDataInizioPeriodo() {
return this.dataInizioPeriodo;
}
public void setDataInizioPeriodo(java.util.Date dataInizioPeriodo) {
this.dataInizioPeriodo = dataInizioPeriodo;
}
public java.util.Date getDataFinePeriodo() {
return this.dataFinePeriodo;
}
public void setDataFinePeriodo(java.util.Date dataFinePeriodo) {
this.dataFinePeriodo = dataFinePeriodo;
}
public java.math.BigDecimal getPrezzoUnitario() {
if(this._decimalWrapper_prezzoUnitario!=null){
return (java.math.BigDecimal) this._decimalWrapper_prezzoUnitario.getObject(java.math.BigDecimal.class);
}else{
return this.prezzoUnitario;
}
}
public void setPrezzoUnitario(java.math.BigDecimal prezzoUnitario) {
if(prezzoUnitario!=null){
this._decimalWrapper_prezzoUnitario = new org.openspcoop2.utils.jaxb.DecimalWrapper(1,11,2,8,prezzoUnitario);
}
}
public void addScontoMaggiorazione(ScontoMaggiorazioneType scontoMaggiorazione) {
this.scontoMaggiorazione.add(scontoMaggiorazione);
}
public ScontoMaggiorazioneType getScontoMaggiorazione(int index) {
return this.scontoMaggiorazione.get( index );
}
public ScontoMaggiorazioneType removeScontoMaggiorazione(int index) {
return this.scontoMaggiorazione.remove( index );
}
public List<ScontoMaggiorazioneType> getScontoMaggiorazioneList() {
return this.scontoMaggiorazione;
}
public void setScontoMaggiorazioneList(List<ScontoMaggiorazioneType> scontoMaggiorazione) {
this.scontoMaggiorazione=scontoMaggiorazione;
}
public int sizeScontoMaggiorazioneList() {
return this.scontoMaggiorazione.size();
}
public java.math.BigDecimal getPrezzoTotale() {
if(this._decimalWrapper_prezzoTotale!=null){
return (java.math.BigDecimal) this._decimalWrapper_prezzoTotale.getObject(java.math.BigDecimal.class);
}else{
return this.prezzoTotale;
}
}
public void setPrezzoTotale(java.math.BigDecimal prezzoTotale) {
if(prezzoTotale!=null){
this._decimalWrapper_prezzoTotale = new org.openspcoop2.utils.jaxb.DecimalWrapper(1,11,2,8,prezzoTotale);
}
}
public java.math.BigDecimal getAliquotaIVA() {
if(this._decimalWrapper_aliquotaIVA!=null){
return (java.math.BigDecimal) this._decimalWrapper_aliquotaIVA.getObject(java.math.BigDecimal.class);
}else{
return this.aliquotaIVA;
}
}
public void setAliquotaIVA(java.math.BigDecimal aliquotaIVA) {
if(aliquotaIVA!=null){
this._decimalWrapper_aliquotaIVA = new org.openspcoop2.utils.jaxb.DecimalWrapper(1,3,2,2,aliquotaIVA);
}
}
public void setRitenutaRawEnumValue(String value) {
this.ritenuta = (RitenutaType) RitenutaType.toEnumConstantFromString(value);
}
public String getRitenutaRawEnumValue() {
if(this.ritenuta == null){
return null;
}else{
return this.ritenuta.toString();
}
}
public it.gov.fatturapa.sdi.fatturapa.v1_0.constants.RitenutaType getRitenuta() {
return this.ritenuta;
}
public void setRitenuta(it.gov.fatturapa.sdi.fatturapa.v1_0.constants.RitenutaType ritenuta) {
this.ritenuta = ritenuta;
}
public void setNaturaRawEnumValue(String value) {
this.natura = (NaturaType) NaturaType.toEnumConstantFromString(value);
}
public String getNaturaRawEnumValue() {
if(this.natura == null){
return null;
}else{
return this.natura.toString();
}
}
public it.gov.fatturapa.sdi.fatturapa.v1_0.constants.NaturaType getNatura() {
return this.natura;
}
public void setNatura(it.gov.fatturapa.sdi.fatturapa.v1_0.constants.NaturaType natura) {
this.natura = natura;
}
public java.lang.String getRiferimentoAmministrazione() {
return this.riferimentoAmministrazione;
}
public void setRiferimentoAmministrazione(java.lang.String riferimentoAmministrazione) {
this.riferimentoAmministrazione = riferimentoAmministrazione;
}
public void addAltriDatiGestionali(AltriDatiGestionaliType altriDatiGestionali) {
this.altriDatiGestionali.add(altriDatiGestionali);
}
public AltriDatiGestionaliType getAltriDatiGestionali(int index) {
return this.altriDatiGestionali.get( index );
}
public AltriDatiGestionaliType removeAltriDatiGestionali(int index) {
return this.altriDatiGestionali.remove( index );
}
public List<AltriDatiGestionaliType> getAltriDatiGestionaliList() {
return this.altriDatiGestionali;
}
public void setAltriDatiGestionaliList(List<AltriDatiGestionaliType> altriDatiGestionali) {
this.altriDatiGestionali=altriDatiGestionali;
}
public int sizeAltriDatiGestionaliList() {
return this.altriDatiGestionali.size();
}
private static final long serialVersionUID = 1L;
@javax.xml.bind.annotation.XmlSchemaType(name="integer")
@XmlElement(name="NumeroLinea",required=true,nillable=false)
protected java.math.BigInteger numeroLinea;
@javax.xml.bind.annotation.XmlTransient
protected java.lang.String tipoCessionePrestazioneRawEnumValue;
@XmlElement(name="TipoCessionePrestazione",required=false,nillable=false)
protected TipoCessionePrestazioneType tipoCessionePrestazione;
@XmlElement(name="CodiceArticolo",required=true,nillable=false)
private List<CodiceArticoloType> codiceArticolo = new ArrayList<>();
/**
* Use method getCodiceArticoloList
* @return List<CodiceArticoloType>
*/
public List<CodiceArticoloType> getCodiceArticolo() {
return this.getCodiceArticoloList();
}
/**
* Use method setCodiceArticoloList
* @param codiceArticolo List<CodiceArticoloType>
*/
public void setCodiceArticolo(List<CodiceArticoloType> codiceArticolo) {
this.setCodiceArticoloList(codiceArticolo);
}
/**
* Use method sizeCodiceArticoloList
* @return lunghezza della lista
*/
public int sizeCodiceArticolo() {
return this.sizeCodiceArticoloList();
}
@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.NormalizedStringAdapter.class)
@javax.xml.bind.annotation.XmlSchemaType(name="normalizedString")
@XmlElement(name="Descrizione",required=true,nillable=false)
protected java.lang.String descrizione;
@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
@javax.xml.bind.annotation.XmlSchemaType(name="decimal")
@XmlElement(name="Quantita",required=false,nillable=false)
org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_quantita = null;
@javax.xml.bind.annotation.XmlTransient
protected java.math.BigDecimal quantita;
@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.NormalizedStringAdapter.class)
@javax.xml.bind.annotation.XmlSchemaType(name="normalizedString")
@XmlElement(name="UnitaMisura",required=false,nillable=false)
protected java.lang.String unitaMisura;
@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Date2String.class)
@javax.xml.bind.annotation.XmlSchemaType(name="date")
@XmlElement(name="DataInizioPeriodo",required=false,nillable=false,type=java.lang.String.class)
protected java.util.Date dataInizioPeriodo;
@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Date2String.class)
@javax.xml.bind.annotation.XmlSchemaType(name="date")
@XmlElement(name="DataFinePeriodo",required=false,nillable=false,type=java.lang.String.class)
protected java.util.Date dataFinePeriodo;
@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
@javax.xml.bind.annotation.XmlSchemaType(name="decimal")
@XmlElement(name="PrezzoUnitario",required=true,nillable=false)
org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_prezzoUnitario = null;
@javax.xml.bind.annotation.XmlTransient
protected java.math.BigDecimal prezzoUnitario;
@XmlElement(name="ScontoMaggiorazione",required=true,nillable=false)
private List<ScontoMaggiorazioneType> scontoMaggiorazione = new ArrayList<>();
/**
* Use method getScontoMaggiorazioneList
* @return List<ScontoMaggiorazioneType>
*/
public List<ScontoMaggiorazioneType> getScontoMaggiorazione() {
return this.getScontoMaggiorazioneList();
}
/**
* Use method setScontoMaggiorazioneList
* @param scontoMaggiorazione List<ScontoMaggiorazioneType>
*/
public void setScontoMaggiorazione(List<ScontoMaggiorazioneType> scontoMaggiorazione) {
this.setScontoMaggiorazioneList(scontoMaggiorazione);
}
/**
* Use method sizeScontoMaggiorazioneList
* @return lunghezza della lista
*/
public int sizeScontoMaggiorazione() {
return this.sizeScontoMaggiorazioneList();
}
@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
@javax.xml.bind.annotation.XmlSchemaType(name="decimal")
@XmlElement(name="PrezzoTotale",required=true,nillable=false)
org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_prezzoTotale = null;
@javax.xml.bind.annotation.XmlTransient
protected java.math.BigDecimal prezzoTotale;
@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(org.openspcoop2.utils.jaxb.Decimal2String.class)
@javax.xml.bind.annotation.XmlSchemaType(name="decimal")
@XmlElement(name="AliquotaIVA",required=true,nillable=false)
org.openspcoop2.utils.jaxb.DecimalWrapper _decimalWrapper_aliquotaIVA = null;
@javax.xml.bind.annotation.XmlTransient
protected java.math.BigDecimal aliquotaIVA;
@javax.xml.bind.annotation.XmlTransient
protected java.lang.String ritenutaRawEnumValue;
@XmlElement(name="Ritenuta",required=false,nillable=false)
protected RitenutaType ritenuta;
@javax.xml.bind.annotation.XmlTransient
protected java.lang.String naturaRawEnumValue;
@XmlElement(name="Natura",required=false,nillable=false)
protected NaturaType natura;
@javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(javax.xml.bind.annotation.adapters.NormalizedStringAdapter.class)
@javax.xml.bind.annotation.XmlSchemaType(name="normalizedString")
@XmlElement(name="RiferimentoAmministrazione",required=false,nillable=false)
protected java.lang.String riferimentoAmministrazione;
@XmlElement(name="AltriDatiGestionali",required=true,nillable=false)
private List<AltriDatiGestionaliType> altriDatiGestionali = new ArrayList<>();
/**
* Use method getAltriDatiGestionaliList
* @return List<AltriDatiGestionaliType>
*/
public List<AltriDatiGestionaliType> getAltriDatiGestionali() {
return this.getAltriDatiGestionaliList();
}
/**
* Use method setAltriDatiGestionaliList
* @param altriDatiGestionali List<AltriDatiGestionaliType>
*/
public void setAltriDatiGestionali(List<AltriDatiGestionaliType> altriDatiGestionali) {
this.setAltriDatiGestionaliList(altriDatiGestionali);
}
/**
* Use method sizeAltriDatiGestionaliList
* @return lunghezza della lista
*/
public int sizeAltriDatiGestionali() {
return this.sizeAltriDatiGestionaliList();
}
}