Transazione.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 org.openspcoop2.utils.service.beans;

  21. import io.swagger.v3.oas.annotations.media.Schema;
  22. import javax.xml.bind.annotation.XmlElement;
  23. import javax.xml.bind.annotation.XmlAccessType;
  24. import javax.xml.bind.annotation.XmlAccessorType;
  25. import javax.xml.bind.annotation.XmlType;
  26. import com.fasterxml.jackson.annotation.JsonProperty;
  27. import javax.validation.Valid;

  28. @XmlAccessorType(XmlAccessType.FIELD)
  29.  @XmlType(name = "Transazione", propOrder =
  30.     { "richiesta", "risposta", "api", "mittente"
  31. })


  32. public class Transazione extends TransazioneBase {
  33.   @XmlElement(name="richiesta")
  34.  
  35.   @Schema(description = "")
  36.   private TransazioneDettaglioRichiesta richiesta = null;
  37.   @XmlElement(name="risposta")
  38.  
  39.   @Schema(description = "")
  40.   private TransazioneDettaglioRisposta risposta = null;
  41.   @XmlElement(name="api")
  42.  
  43.   @Schema(description = "")
  44.   private TransazioneInformazioniApi api = null;
  45.   @XmlElement(name="mittente")
  46.  
  47.   @Schema(description = "")
  48.   private TransazioneInformazioniMittente mittente = null;
  49.  /**
  50.    * Get richiesta
  51.    * @return richiesta
  52.   **/
  53.   @JsonProperty("richiesta")
  54.   @Valid
  55.   public TransazioneDettaglioRichiesta getRichiesta() {
  56.     return this.richiesta;
  57.   }

  58.   public void setRichiesta(TransazioneDettaglioRichiesta richiesta) {
  59.     this.richiesta = richiesta;
  60.   }

  61.   public Transazione richiesta(TransazioneDettaglioRichiesta richiesta) {
  62.     this.richiesta = richiesta;
  63.     return this;
  64.   }

  65.  /**
  66.    * Get risposta
  67.    * @return risposta
  68.   **/
  69.   @JsonProperty("risposta")
  70.   @Valid
  71.   public TransazioneDettaglioRisposta getRisposta() {
  72.     return this.risposta;
  73.   }

  74.   public void setRisposta(TransazioneDettaglioRisposta risposta) {
  75.     this.risposta = risposta;
  76.   }

  77.   public Transazione risposta(TransazioneDettaglioRisposta risposta) {
  78.     this.risposta = risposta;
  79.     return this;
  80.   }

  81.  /**
  82.    * Get api
  83.    * @return api
  84.   **/
  85.   @JsonProperty("api")
  86.   @Valid
  87.   public TransazioneInformazioniApi getApi() {
  88.     return this.api;
  89.   }

  90.   public void setApi(TransazioneInformazioniApi api) {
  91.     this.api = api;
  92.   }

  93.   public Transazione api(TransazioneInformazioniApi api) {
  94.     this.api = api;
  95.     return this;
  96.   }

  97.  /**
  98.    * Get mittente
  99.    * @return mittente
  100.   **/
  101.   @JsonProperty("mittente")
  102.   @Valid
  103.   public TransazioneInformazioniMittente getMittente() {
  104.     return this.mittente;
  105.   }

  106.   public void setMittente(TransazioneInformazioniMittente mittente) {
  107.     this.mittente = mittente;
  108.   }

  109.   public Transazione mittente(TransazioneInformazioniMittente mittente) {
  110.     this.mittente = mittente;
  111.     return this;
  112.   }


  113.   @Override
  114.   public String toString() {
  115.     StringBuilder sb = new StringBuilder();
  116.     sb.append("class Transazione {\n");
  117.     sb.append("    ").append(Transazione.toIndentedString(super.toString())).append("\n");
  118.     sb.append("    richiesta: ").append(Transazione.toIndentedString(this.richiesta)).append("\n");
  119.     sb.append("    risposta: ").append(Transazione.toIndentedString(this.risposta)).append("\n");
  120.     sb.append("    api: ").append(Transazione.toIndentedString(this.api)).append("\n");
  121.     sb.append("    mittente: ").append(Transazione.toIndentedString(this.mittente)).append("\n");
  122.     sb.append("}");
  123.     return sb.toString();
  124.   }

  125.   /**
  126.    * Convert the given object to string with each line indented by 4 spaces
  127.    * (except the first line).
  128.    */
  129.   private static String toIndentedString(java.lang.Object o) {
  130.     if (o == null) {
  131.       return "null";
  132.     }
  133.     return o.toString().replace("\n", "\n    ");
  134.   }
  135. }