Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AooModuloIxCeRequest" /> class.
 /// </summary>
 /// <param name="fascia">fascia.</param>
 /// <param name="fasciaAnniSuccessiva">fasciaAnniSuccessiva.</param>
 /// <param name="tipoFirma">tipoFirma (required).</param>
 /// <param name="responsabileConservazione">responsabileConservazione.</param>
 /// <param name="periodoImposta">periodoImposta.</param>
 public AooModuloIxCeRequest(FasciaIxCeInfo fascia = default(FasciaIxCeInfo), FasciaIxCeInfo fasciaAnniSuccessiva = default(FasciaIxCeInfo), TipoFirmaEnum tipoFirma = default(TipoFirmaEnum), ResponsabileConservazioneInfo responsabileConservazione = default(ResponsabileConservazioneInfo), PeriodoImpostaInfo periodoImposta = default(PeriodoImpostaInfo))
 {
     // to ensure "tipoFirma" is required (not null)
     if (tipoFirma == null)
     {
         throw new InvalidDataException("tipoFirma is a required property for AooModuloIxCeRequest and cannot be null");
     }
     else
     {
         this.TipoFirma = tipoFirma;
     }
     this.Fascia = fascia;
     this.FasciaAnniSuccessiva      = fasciaAnniSuccessiva;
     this.ResponsabileConservazione = responsabileConservazione;
     this.PeriodoImposta            = periodoImposta;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContrattoResponse" /> class.
 /// </summary>
 /// <param name="identificativo">identificativo (required).</param>
 /// <param name="tipo">tipo (required).</param>
 /// <param name="moduli">moduli.</param>
 /// <param name="fasciaIx">fasciaIx.</param>
 /// <param name="fasciaIxCe">fasciaIxCe.</param>
 /// <param name="fasciaIxPec">fasciaIxPec.</param>
 /// <param name="responsabileConservazione">responsabileConservazione.</param>
 /// <param name="descrizione">descrizione (required).</param>
 /// <param name="externalId">externalId.</param>
 /// <param name="rivenditore">rivenditore (required).</param>
 /// <param name="distributore">distributore (required).</param>
 /// <param name="passo">passo.</param>
 public ContrattoResponse(string identificativo = default(string), string tipo = default(string), List <ContrattoModulo> moduli = default(List <ContrattoModulo>), FasciaIxResponse fasciaIx = default(FasciaIxResponse), FasciaIxCeInfo fasciaIxCe = default(FasciaIxCeInfo), FasciaIxPecInfo fasciaIxPec = default(FasciaIxPecInfo), ResponsabileConservazioneInfo responsabileConservazione = default(ResponsabileConservazioneInfo), string descrizione = default(string), string externalId = default(string), RivenditoreResponse rivenditore = default(RivenditoreResponse), DistributoreResponse distributore = default(DistributoreResponse), string passo = default(string))
 {
     // to ensure "identificativo" is required (not null)
     if (identificativo == null)
     {
         throw new InvalidDataException("identificativo is a required property for ContrattoResponse and cannot be null");
     }
     else
     {
         this.Identificativo = identificativo;
     }
     // to ensure "tipo" is required (not null)
     if (tipo == null)
     {
         throw new InvalidDataException("tipo is a required property for ContrattoResponse and cannot be null");
     }
     else
     {
         this.Tipo = tipo;
     }
     // to ensure "descrizione" is required (not null)
     if (descrizione == null)
     {
         throw new InvalidDataException("descrizione is a required property for ContrattoResponse and cannot be null");
     }
     else
     {
         this.Descrizione = descrizione;
     }
     // to ensure "rivenditore" is required (not null)
     if (rivenditore == null)
     {
         throw new InvalidDataException("rivenditore is a required property for ContrattoResponse and cannot be null");
     }
     else
     {
         this.Rivenditore = rivenditore;
     }
     // to ensure "distributore" is required (not null)
     if (distributore == null)
     {
         throw new InvalidDataException("distributore is a required property for ContrattoResponse and cannot be null");
     }
     else
     {
         this.Distributore = distributore;
     }
     this.Moduli      = moduli;
     this.FasciaIx    = fasciaIx;
     this.FasciaIxCe  = fasciaIxCe;
     this.FasciaIxPec = fasciaIxPec;
     this.ResponsabileConservazione = responsabileConservazione;
     this.ExternalId = externalId;
     this.Passo      = passo;
 }