/// <summary> /// Initializes a new instance of the <see cref="AccountUpdateReq" /> class. /// </summary> /// <param name="AddressLine1">Postal address line 1, not longer than 100 characters. Required for commercial accounts only..</param> /// <param name="AddressLine2">Postal address line 2, not longer than 100 characters..</param> /// <param name="Aliases">An array of aliases, not more than 10. An alias is not shorter than 8 and not longer than 100 characters..</param> /// <param name="City">The city part of the postal address, not longer than 100 characters. Required for commercial accounts only..</param> /// <param name="Company">The name of the company, not longer than 100 characters. Required for commercial accounts only..</param> /// <param name="Contact">The name of the contact person for this account, not longer than 100 characters. Required for commercial accounts only..</param> /// <param name="Country">The country part of the postal address, not longer than 100 characters. Required for commercial accounts only..</param> /// <param name="CustomFields">Account's custom properties as key-value pairs, with a maximum of 10 keys. The maximum length of a key is 100 characters. The values are handled as strings and the maximum length for a value is 1000 characters..</param> /// <param name="DisplayName">The display name for the account, not longer than 100 characters..</param> /// <param name="Email">The company email address for this account, not longer than 254 characters. Required for commercial accounts only..</param> /// <param name="EndMarket">The end market for this account, not longer than 100 characters..</param> /// <param name="ExpirationWarningThreshold">Indicates how many days before account expiration a notification email should be sent. Valid values are: 1-180..</param> /// <param name="IdleTimeout">The reference token expiration time in minutes for this account. Between 1 and 120 minutes..</param> /// <param name="MfaStatus">The enforcement status of setting up the multi-factor authentication. 'Enforced' means that setting up the MFA is required after login. 'Optional' means that the MFA is not required..</param> /// <param name="NotificationEmails">A list of notification email addresses..</param> /// <param name="PasswordPolicy">Password policy for this account..</param> /// <param name="PhoneNumber">The phone number of a representative of the company, not longer than 100 characters..</param> /// <param name="PostalCode">The postal code part of the postal address, not longer than 100 characters..</param> /// <param name="State">The state part of the postal address, not longer than 100 characters..</param> public AccountUpdateReq(string AddressLine1 = default(string), string AddressLine2 = default(string), List <string> Aliases = default(List <string>), string City = default(string), string Company = default(string), string Contact = default(string), string Country = default(string), Dictionary <string, string> CustomFields = default(Dictionary <string, string>), string DisplayName = default(string), string Email = default(string), string EndMarket = default(string), string ExpirationWarningThreshold = default(string), string IdleTimeout = default(string), MfaStatusEnum?MfaStatus = default(MfaStatusEnum?), List <string> NotificationEmails = default(List <string>), PasswordPolicy PasswordPolicy = default(PasswordPolicy), string PhoneNumber = default(string), string PostalCode = default(string), string State = default(string)) { this.AddressLine1 = AddressLine1; this.AddressLine2 = AddressLine2; this.Aliases = Aliases; this.City = City; this.Company = Company; this.Contact = Contact; this.Country = Country; this.CustomFields = CustomFields; this.DisplayName = DisplayName; this.Email = Email; this.EndMarket = EndMarket; this.ExpirationWarningThreshold = ExpirationWarningThreshold; this.IdleTimeout = IdleTimeout; this.MfaStatus = MfaStatus; this.NotificationEmails = NotificationEmails; this.PasswordPolicy = PasswordPolicy; this.PhoneNumber = PhoneNumber; this.PostalCode = PostalCode; this.State = State; }
/// <summary> /// Initializes a new instance of the <see cref="AccountInfo" /> class. /// </summary> /// <param name="AddressLine1">Postal address line 1..</param> /// <param name="AddressLine2">Postal address line 2..</param> /// <param name="Aliases">An array of aliases. (required).</param> /// <param name="City">The city part of the postal address..</param> /// <param name="Company">The name of the company..</param> /// <param name="Contact">The name of the contact person for this account..</param> /// <param name="ContractNumber">Contract number of the customer..</param> /// <param name="Country">The country part of the postal address..</param> /// <param name="CreatedAt">Creation UTC time RFC3339..</param> /// <param name="CustomFields">Account's custom properties as key-value pairs..</param> /// <param name="CustomerNumber">Customer number of the customer..</param> /// <param name="DisplayName">The display name for the account..</param> /// <param name="Email">The company email address for this account..</param> /// <param name="EndMarket">Account end market. (required).</param> /// <param name="Etag">API resource entity version. (required).</param> /// <param name="ExpirationWarningThreshold">Indicates how many days (1-180) before account expiration a notification email should be sent..</param> /// <param name="Id">Account ID. (required).</param> /// <param name="IdleTimeout">The reference token expiration time in minutes for this account..</param> /// <param name="Limits">List of limits as key-value pairs if requested..</param> /// <param name="MfaStatus">The enforcement status of the multi-factor authentication, either 'enforced' or 'optional'..</param> /// <param name="NotificationEmails">A list of notification email addresses..</param> /// <param name="_Object">Entity name: always 'account' (required).</param> /// <param name="ParentId">The ID of the parent account, if it has any..</param> /// <param name="PasswordPolicy">The password policy for this account..</param> /// <param name="PhoneNumber">The phone number of a representative of the company..</param> /// <param name="Policies">List of policies if requested..</param> /// <param name="PostalCode">The postal code part of the postal address..</param> /// <param name="Reason">A reason note for updating the status of the account.</param> /// <param name="ReferenceNote">A reference note for updating the status of the account.</param> /// <param name="SalesContact">Email address of the sales contact..</param> /// <param name="State">The state part of the postal address..</param> /// <param name="Status">The status of the account. (required).</param> /// <param name="SubAccounts">List of sub accounts. Not available for developer users..</param> /// <param name="TemplateId">Account template ID..</param> /// <param name="Tier">The tier level of the account; '0': free tier, '1': commercial account, '2': partner tier. Other values are reserved for the future. (required).</param> /// <param name="UpdatedAt">Last update UTC time RFC3339..</param> /// <param name="UpgradedAt">Time when upgraded to commercial account in UTC format RFC3339..</param> public AccountInfo(string AddressLine1 = default(string), string AddressLine2 = default(string), List <string> Aliases = default(List <string>), string City = default(string), string Company = default(string), string Contact = default(string), string ContractNumber = default(string), string Country = default(string), DateTime?CreatedAt = default(DateTime?), Dictionary <string, string> CustomFields = default(Dictionary <string, string>), string CustomerNumber = default(string), string DisplayName = default(string), string Email = default(string), string EndMarket = default(string), string Etag = default(string), string ExpirationWarningThreshold = default(string), string Id = default(string), string IdleTimeout = default(string), Dictionary <string, string> Limits = default(Dictionary <string, string>), MfaStatusEnum?MfaStatus = default(MfaStatusEnum?), List <string> NotificationEmails = default(List <string>), ObjectEnum?_Object = default(ObjectEnum?), string ParentId = default(string), PasswordPolicy PasswordPolicy = default(PasswordPolicy), string PhoneNumber = default(string), List <FeaturePolicy> Policies = default(List <FeaturePolicy>), string PostalCode = default(string), string Reason = default(string), string ReferenceNote = default(string), string SalesContact = default(string), string State = default(string), StatusEnum?Status = default(StatusEnum?), List <AccountInfo> SubAccounts = default(List <AccountInfo>), string TemplateId = default(string), string Tier = default(string), DateTime?UpdatedAt = default(DateTime?), DateTime?UpgradedAt = default(DateTime?)) { // to ensure "Aliases" is required (not null) if (Aliases == null) { throw new InvalidDataException("Aliases is a required property for AccountInfo and cannot be null"); } else { this.Aliases = Aliases; } // to ensure "EndMarket" is required (not null) if (EndMarket == null) { throw new InvalidDataException("EndMarket is a required property for AccountInfo and cannot be null"); } else { this.EndMarket = EndMarket; } // to ensure "Etag" is required (not null) if (Etag == null) { throw new InvalidDataException("Etag is a required property for AccountInfo and cannot be null"); } else { this.Etag = Etag; } // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for AccountInfo and cannot be null"); } else { this.Id = Id; } // to ensure "_Object" is required (not null) if (_Object == null) { throw new InvalidDataException("_Object is a required property for AccountInfo and cannot be null"); } else { this._Object = _Object; } // to ensure "Status" is required (not null) if (Status == null) { throw new InvalidDataException("Status is a required property for AccountInfo and cannot be null"); } else { this.Status = Status; } // to ensure "Tier" is required (not null) if (Tier == null) { throw new InvalidDataException("Tier is a required property for AccountInfo and cannot be null"); } else { this.Tier = Tier; } this.AddressLine1 = AddressLine1; this.AddressLine2 = AddressLine2; this.City = City; this.Company = Company; this.Contact = Contact; this.ContractNumber = ContractNumber; this.Country = Country; this.CreatedAt = CreatedAt; this.CustomFields = CustomFields; this.CustomerNumber = CustomerNumber; this.DisplayName = DisplayName; this.Email = Email; this.ExpirationWarningThreshold = ExpirationWarningThreshold; this.IdleTimeout = IdleTimeout; this.Limits = Limits; this.MfaStatus = MfaStatus; this.NotificationEmails = NotificationEmails; this.ParentId = ParentId; this.PasswordPolicy = PasswordPolicy; this.PhoneNumber = PhoneNumber; this.Policies = Policies; this.PostalCode = PostalCode; this.Reason = Reason; this.ReferenceNote = ReferenceNote; this.SalesContact = SalesContact; this.State = State; this.SubAccounts = SubAccounts; this.TemplateId = TemplateId; this.UpdatedAt = UpdatedAt; this.UpgradedAt = UpgradedAt; }