using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Fuel.Payment.Service.AllInPayProcessor.AllInPay
{
    public class TongLianResponseV2
    {
        public string amount { get; set; }
        public string bizCode { get; set; }
        public string bizMsg { get; set; }
        public string bizOrderNo { get; set; }
        public string createTime { get; set; }
        public string code { get; set; }
        public string finishTime { get; set; }
        public string msg { get; set; }
        public string oldBizOrderNo { get; set; }
        public string orderNo { get; set; }
        public string payInfo { get; set; }
        public string payStatus { get; set; }
        public string payStatusMsg { get; set; }
        public string payType { get; set; }
        public string remark { get; set; }
        public string shiftsMask { get; set; }
        public string shiftsTime { get; set; }
        public string sign { get; set; }
        public string sysId { get; set; }
        public string tradeDirection { get; set; }
        public string consumeTypes { get; set; }

        public override string ToString()
        {
            var sb = new StringBuilder();
            PropertyInfo[] properties = typeof(TongLianResponseV2).GetProperties();
            foreach (PropertyInfo property in properties)
            {
                sb.Append($"{property.Name}: {property.GetValue(this)}\n");
            }
            return sb.ToString();
        }
    }
}
