// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
// 
// Code generated by Microsoft (R) AutoRest Code Generator 0.14.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

namespace Microsoft.Azure.Management.WebSites.Models
{
    using System;
    using System.Linq;
    using System.Collections.Generic;
    using Newtonsoft.Json;
    using Microsoft.Rest;
    using Microsoft.Rest.Serialization;
    using Microsoft.Rest.Azure;

    /// <summary>
    /// Domain purchase consent object representing acceptance of applicable
    /// legal agreements
    /// </summary>
    public partial class DomainPurchaseConsent
    {
        /// <summary>
        /// Initializes a new instance of the DomainPurchaseConsent class.
        /// </summary>
        public DomainPurchaseConsent() { }

        /// <summary>
        /// Initializes a new instance of the DomainPurchaseConsent class.
        /// </summary>
        public DomainPurchaseConsent(IList<string> agreementKeys = default(IList<string>), string agreedBy = default(string), DateTime? agreedAt = default(DateTime?))
        {
            AgreementKeys = agreementKeys;
            AgreedBy = agreedBy;
            AgreedAt = agreedAt;
        }

        /// <summary>
        /// List of applicable legal agreement keys. This list can be
        /// retrieved using ListLegalAgreements Api under TopLevelDomain
        /// resource
        /// </summary>
        [JsonProperty(PropertyName = "agreementKeys")]
        public IList<string> AgreementKeys { get; set; }

        /// <summary>
        /// Client IP address
        /// </summary>
        [JsonProperty(PropertyName = "agreedBy")]
        public string AgreedBy { get; set; }

        /// <summary>
        /// Timestamp when the agreements were accepted
        /// </summary>
        [JsonProperty(PropertyName = "agreedAt")]
        public DateTime? AgreedAt { get; set; }

    }
}
