Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetAccount" /> class.
 /// </summary>
 /// <param name="email">Login Email (required).</param>
 /// <param name="firstName">First Name (required).</param>
 /// <param name="lastName">Last Name (required).</param>
 /// <param name="companyName">Name of the company (required).</param>
 /// <param name="address">address (required).</param>
 /// <param name="plan">Information about your plans and credits (required).</param>
 /// <param name="relay">relay (required).</param>
 /// <param name="marketingAutomation">marketingAutomation.</param>
 public GetAccount(string email = default(string), string firstName = default(string), string lastName = default(string), string companyName = default(string), GetExtendedClientAddress address = default(GetExtendedClientAddress), List <GetAccountPlan> plan = default(List <GetAccountPlan>), GetAccountRelay relay = default(GetAccountRelay), GetAccountMarketingAutomation marketingAutomation = default(GetAccountMarketingAutomation))
 {
     // to ensure "email" is required (not null)
     if (email == null)
     {
         throw new InvalidDataException("email is a required property for GetAccount and cannot be null");
     }
     else
     {
         this.Email = email;
     }
     // to ensure "firstName" is required (not null)
     if (firstName == null)
     {
         throw new InvalidDataException("firstName is a required property for GetAccount and cannot be null");
     }
     else
     {
         this.FirstName = firstName;
     }
     // to ensure "lastName" is required (not null)
     if (lastName == null)
     {
         throw new InvalidDataException("lastName is a required property for GetAccount and cannot be null");
     }
     else
     {
         this.LastName = lastName;
     }
     // to ensure "companyName" is required (not null)
     if (companyName == null)
     {
         throw new InvalidDataException("companyName is a required property for GetAccount and cannot be null");
     }
     else
     {
         this.CompanyName = companyName;
     }
     // to ensure "address" is required (not null)
     if (address == null)
     {
         throw new InvalidDataException("address is a required property for GetAccount and cannot be null");
     }
     else
     {
         this.Address = address;
     }
     // to ensure "plan" is required (not null)
     if (plan == null)
     {
         throw new InvalidDataException("plan is a required property for GetAccount and cannot be null");
     }
     else
     {
         this.Plan = plan;
     }
     // to ensure "relay" is required (not null)
     if (relay == null)
     {
         throw new InvalidDataException("relay is a required property for GetAccount and cannot be null");
     }
     else
     {
         this.Relay = relay;
     }
     this.MarketingAutomation = marketingAutomation;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetExtendedClient" /> class.
 /// </summary>
 /// <param name="email">Login Email (required).</param>
 /// <param name="firstName">First Name (required).</param>
 /// <param name="lastName">Last Name (required).</param>
 /// <param name="companyName">Name of the company (required).</param>
 /// <param name="address">address (required).</param>
 public GetExtendedClient(string email = default(string), string firstName = default(string), string lastName = default(string), string companyName = default(string), GetExtendedClientAddress address = default(GetExtendedClientAddress))
 {
     // to ensure "email" is required (not null)
     if (email == null)
     {
         throw new InvalidDataException("email is a required property for GetExtendedClient and cannot be null");
     }
     else
     {
         this.Email = email;
     }
     // to ensure "firstName" is required (not null)
     if (firstName == null)
     {
         throw new InvalidDataException("firstName is a required property for GetExtendedClient and cannot be null");
     }
     else
     {
         this.FirstName = firstName;
     }
     // to ensure "lastName" is required (not null)
     if (lastName == null)
     {
         throw new InvalidDataException("lastName is a required property for GetExtendedClient and cannot be null");
     }
     else
     {
         this.LastName = lastName;
     }
     // to ensure "companyName" is required (not null)
     if (companyName == null)
     {
         throw new InvalidDataException("companyName is a required property for GetExtendedClient and cannot be null");
     }
     else
     {
         this.CompanyName = companyName;
     }
     // to ensure "address" is required (not null)
     if (address == null)
     {
         throw new InvalidDataException("address is a required property for GetExtendedClient and cannot be null");
     }
     else
     {
         this.Address = address;
     }
 }