DatiPagamentoType.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.CondizioniPagamentoType;
  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. import java.util.ArrayList;
  29. import java.util.List;


  30. /** <p>Java class for DatiPagamentoType complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="DatiPagamentoType"&gt;
  36.  *      &lt;sequence&gt;
  37.  *          &lt;element name="CondizioniPagamento" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}CondizioniPagamentoType" minOccurs="1" maxOccurs="1"/&gt;
  38.  *          &lt;element name="DettaglioPagamento" type="{http://www.fatturapa.gov.it/sdi/fatturapa/v1.0}DettaglioPagamentoType" minOccurs="1" maxOccurs="unbounded"/&gt;
  39.  *      &lt;/sequence&gt;
  40.  * &lt;/complexType&gt;
  41.  * </pre>
  42.  *
  43.  * @version $Rev$, $Date$
  44.  *
  45.  * @author Poli Andrea (poli@link.it)
  46.  * @author $Author$
  47.  * */

  48. @XmlAccessorType(XmlAccessType.FIELD)
  49. @XmlType(name = "DatiPagamentoType",
  50.   propOrder = {
  51.     "condizioniPagamento",
  52.     "dettaglioPagamento"
  53.   }
  54. )

  55. @XmlRootElement(name = "DatiPagamentoType")

  56. public class DatiPagamentoType extends org.openspcoop2.utils.beans.BaseBean implements Serializable , Cloneable {
  57.   public DatiPagamentoType() {
  58.     super();
  59.   }

  60.   public void setCondizioniPagamentoRawEnumValue(String value) {
  61.     this.condizioniPagamento = (CondizioniPagamentoType) CondizioniPagamentoType.toEnumConstantFromString(value);
  62.   }

  63.   public String getCondizioniPagamentoRawEnumValue() {
  64.     if(this.condizioniPagamento == null){
  65.         return null;
  66.     }else{
  67.         return this.condizioniPagamento.toString();
  68.     }
  69.   }

  70.   public it.gov.fatturapa.sdi.fatturapa.v1_0.constants.CondizioniPagamentoType getCondizioniPagamento() {
  71.     return this.condizioniPagamento;
  72.   }

  73.   public void setCondizioniPagamento(it.gov.fatturapa.sdi.fatturapa.v1_0.constants.CondizioniPagamentoType condizioniPagamento) {
  74.     this.condizioniPagamento = condizioniPagamento;
  75.   }

  76.   public void addDettaglioPagamento(DettaglioPagamentoType dettaglioPagamento) {
  77.     this.dettaglioPagamento.add(dettaglioPagamento);
  78.   }

  79.   public DettaglioPagamentoType getDettaglioPagamento(int index) {
  80.     return this.dettaglioPagamento.get( index );
  81.   }

  82.   public DettaglioPagamentoType removeDettaglioPagamento(int index) {
  83.     return this.dettaglioPagamento.remove( index );
  84.   }

  85.   public List<DettaglioPagamentoType> getDettaglioPagamentoList() {
  86.     return this.dettaglioPagamento;
  87.   }

  88.   public void setDettaglioPagamentoList(List<DettaglioPagamentoType> dettaglioPagamento) {
  89.     this.dettaglioPagamento=dettaglioPagamento;
  90.   }

  91.   public int sizeDettaglioPagamentoList() {
  92.     return this.dettaglioPagamento.size();
  93.   }

  94.   private static final long serialVersionUID = 1L;



  95.   @javax.xml.bind.annotation.XmlTransient
  96.   protected java.lang.String condizioniPagamentoRawEnumValue;

  97.   @XmlElement(name="CondizioniPagamento",required=true,nillable=false)
  98.   protected CondizioniPagamentoType condizioniPagamento;

  99.   @XmlElement(name="DettaglioPagamento",required=true,nillable=false)
  100.   private List<DettaglioPagamentoType> dettaglioPagamento = new ArrayList<>();

  101.   /**
  102.    * Use method getDettaglioPagamentoList
  103.    * @return List&lt;DettaglioPagamentoType&gt;
  104.   */
  105.   public List<DettaglioPagamentoType> getDettaglioPagamento() {
  106.     return this.getDettaglioPagamentoList();
  107.   }

  108.   /**
  109.    * Use method setDettaglioPagamentoList
  110.    * @param dettaglioPagamento List&lt;DettaglioPagamentoType&gt;
  111.   */
  112.   public void setDettaglioPagamento(List<DettaglioPagamentoType> dettaglioPagamento) {
  113.     this.setDettaglioPagamentoList(dettaglioPagamento);
  114.   }

  115.   /**
  116.    * Use method sizeDettaglioPagamentoList
  117.    * @return lunghezza della lista
  118.   */
  119.   public int sizeDettaglioPagamento() {
  120.     return this.sizeDettaglioPagamentoList();
  121.   }

  122. }