Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountInfoLinks" /> class.
 /// </summary>
 /// <param name="SavePersonalInfo">SavePersonalInfo (required).</param>
 /// <param name="ChangePassword">ChangePassword (required).</param>
 /// <param name="SaveCompanyInfo">SaveCompanyInfo (required).</param>
 /// <param name="GetProfilePictureInfo">GetProfilePictureInfo (required).</param>
 /// <param name="SaveProfilePictureInfo">SaveProfilePictureInfo (required).</param>
 /// <param name="GetCreditCardInfo">GetCreditCardInfo (required).</param>
 /// <param name="SaveCreditCardInfo">SaveCreditCardInfo (required).</param>
 public AccountInfoLinks(LinksSavePersonalInfoLink SavePersonalInfo = default(LinksSavePersonalInfoLink), LinksChangePasswordLink ChangePassword = default(LinksChangePasswordLink), LinksSaveCompanyInfoLink SaveCompanyInfo = default(LinksSaveCompanyInfoLink), LinksGetProfilePictureInfoLink GetProfilePictureInfo = default(LinksGetProfilePictureInfoLink), LinksSaveProfilePictureInfoLink SaveProfilePictureInfo = default(LinksSaveProfilePictureInfoLink), LinksGetCreditCardInfoLink GetCreditCardInfo = default(LinksGetCreditCardInfoLink), LinksSaveCreditCardInfoLink SaveCreditCardInfo = default(LinksSaveCreditCardInfoLink))
 {
     // to ensure "SavePersonalInfo" is required (not null)
     if (SavePersonalInfo == null)
     {
         throw new InvalidDataException("SavePersonalInfo is a required property for AccountInfoLinks and cannot be null");
     }
     else
     {
         this.SavePersonalInfo = SavePersonalInfo;
     }
     // to ensure "ChangePassword" is required (not null)
     if (ChangePassword == null)
     {
         throw new InvalidDataException("ChangePassword is a required property for AccountInfoLinks and cannot be null");
     }
     else
     {
         this.ChangePassword = ChangePassword;
     }
     // to ensure "SaveCompanyInfo" is required (not null)
     if (SaveCompanyInfo == null)
     {
         throw new InvalidDataException("SaveCompanyInfo is a required property for AccountInfoLinks and cannot be null");
     }
     else
     {
         this.SaveCompanyInfo = SaveCompanyInfo;
     }
     // to ensure "GetProfilePictureInfo" is required (not null)
     if (GetProfilePictureInfo == null)
     {
         throw new InvalidDataException("GetProfilePictureInfo is a required property for AccountInfoLinks and cannot be null");
     }
     else
     {
         this.GetProfilePictureInfo = GetProfilePictureInfo;
     }
     // to ensure "SaveProfilePictureInfo" is required (not null)
     if (SaveProfilePictureInfo == null)
     {
         throw new InvalidDataException("SaveProfilePictureInfo is a required property for AccountInfoLinks and cannot be null");
     }
     else
     {
         this.SaveProfilePictureInfo = SaveProfilePictureInfo;
     }
     // to ensure "GetCreditCardInfo" is required (not null)
     if (GetCreditCardInfo == null)
     {
         throw new InvalidDataException("GetCreditCardInfo is a required property for AccountInfoLinks and cannot be null");
     }
     else
     {
         this.GetCreditCardInfo = GetCreditCardInfo;
     }
     // to ensure "SaveCreditCardInfo" is required (not null)
     if (SaveCreditCardInfo == null)
     {
         throw new InvalidDataException("SaveCreditCardInfo is a required property for AccountInfoLinks and cannot be null");
     }
     else
     {
         this.SaveCreditCardInfo = SaveCreditCardInfo;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreditCardInfoResponseLinks" /> class.
 /// </summary>
 /// <param name="Self">Self.</param>
 /// <param name="SaveCreditCardInfo">SaveCreditCardInfo.</param>
 public CreditCardInfoResponseLinks(LinksGetCreditCardInfoLink Self = default(LinksGetCreditCardInfoLink), LinksSaveCreditCardInfoLink SaveCreditCardInfo = default(LinksSaveCreditCardInfoLink))
 {
     this.Self = Self;
     this.SaveCreditCardInfo = SaveCreditCardInfo;
 }