using System;
using System.Collections.Generic;

namespace Guru
{
    [Serializable]
    public class AppleOrderData
    {
        public string bundleId;
        public string receipt;
        public string country;
        public Dictionary<string, object> userInfo;

        public AppleOrderData(string receipt, int level)
        {
            this.receipt = receipt;
            bundleId = GuruSettings.Instance.GameIdentifier;
            country = IPMConfig.IPM_COUNTRY_CODE;
            userInfo = new Dictionary<string, object>
            {
                ["level"] = level
            };
        }
        
        public override string ToString()
        {
            return $"{nameof(bundleId)}: {bundleId}, {nameof(receipt)}: {receipt}, {nameof(country)}: {country}";
        }
    }
}