﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShopifySharp
{
    public class ShopifyClientDetails
    {
        /// <summary>
        /// Shopify does not offer documentation for this field.
        /// </summary>
        [JsonProperty("accept_language")]
        public string AcceptLanguage { get; set; }

        /// <summary>
        /// The browser screen height in pixels, if available.
        /// </summary>
        [JsonProperty("browser_height")]
        public string BrowserHeight { get; set; }

        /// <summary>
        /// The browser IP address.
        /// </summary>
        [JsonProperty("browser_ip")]
        public string BrowserIp { get; set; }

        /// <summary>
        /// The browser screen width in pixels, if available.
        /// </summary>
        [JsonProperty("browser_width")]
        public string BrowserWidth { get; set; }

        /// <summary>
        /// A hash of the session.
        /// </summary>
        [JsonProperty("session_height")]
        public string SessionHeight { get; set; }

        /// <summary>
        /// The browser's user agent string.
        /// </summary>
        [JsonProperty("user_agent")]
        public string UserAgent { get; set; }
    }
}

﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShopifySharp
{
    public class ShopifyClientDetails
    {
        /// <summary>
        /// Shopify does not offer documentation for this field.
        /// </summary>
        [JsonProperty("accept_language")]
        public string AcceptLanguage { get; set; }

        /// <summary>
        /// The browser screen height in pixels, if available.
        /// </summary>
        [JsonProperty("browser_height")]
        public string BrowserHeight { get; set; }

        /// <summary>
        /// The browser IP address.
        /// </summary>
        [JsonProperty("browser_ip")]
        public string BrowserIp { get; set; }

        /// <summary>
        /// The browser screen width in pixels, if available.
        /// </summary>
        [JsonProperty("browser_width")]
        public string BrowserWidth { get; set; }

        /// <summary>
        /// Obsolete: This property is incorrect and will be removed in a future release.
        /// </summary>
        [JsonProperty("session_height"), Obsolete("This property is incorrect and will be removed in a future release.")]
        public string SessionHeight { get; set; }

        /// <summary>
        /// A hash of the session.
        /// </summary>
        [JsonProperty("session_hash")]
        public string SessionHash { get; set; }

        /// <summary>
        /// The browser's user agent string.
        /// </summary>
        [JsonProperty("user_agent")]
        public string UserAgent { get; set; }
    }
}

Add SessionHash property and mark SessionHeight as obsolete.
Add SessionHash property and mark SessionHeight as obsolete.

Closes #99
