using System;
using System.Collections.Generic;

namespace Guru
{
    [Serializable]
    public class GoogleOrderData
    {
        public int orderType;
        public string packageName;
        public string productId;
        public string token;
        public Dictionary<string, object> userInfo;

        public GoogleOrderData(int orderType, string productId, string token, int level)
        {
            this.orderType = orderType;
            this.packageName = GuruSettings.Instance.GameIdentifier;
            this.productId = productId;
            this.token = token;
            userInfo = new Dictionary<string, object>
            {
                ["level"] = level
            };
        }
        
        public override string ToString()
        {
            return $"{nameof(orderType)}: {orderType}, {nameof(packageName)}: {packageName}, {nameof(productId)}: {productId}, {nameof(token)}: {token}";
        }
    }
}