using System;
using System.Runtime.Serialization;

namespace Com.Bocom.OpenApi
{
    namespace Response
    {
        [Serializable]
        [DataContract]
        public class IntegralExchangeNotifyResponseV1 : BocomResponse
        {
            //订单编号
            [DataMember]
            public string order_no { get; set; }

            //兑换规则   =兑换金额:信用卡积分
            [DataMember]
            public string exchange_rules { get; set; }

            //所用积分
            [DataMember]
            public string credit_card_points { get; set; }

            //换领ISA积分
            [DataMember]
            public string isa_points { get; set; }

            //交易时间
            [DataMember]
            public string date { get; set; }

            //成功标志
            [DataMember]
            public string flag { get; set; }

            //信用卡号
            [DataMember]
            public string card_no { get; set; }

            //交行交易编号
            [DataMember]
            public string trade_no { get; set; }

            //回调地址url
            [DataMember]
            public string notify_url { get; set; }

            //回调地址url
            [DataMember]
            public string protocol_no { get; set; }

            public override string ToString()
            {
                return "order_no: " + order_no + " " + "exchange_rules: " + exchange_rules + " "
                       + "credit_card_points: " + credit_card_points + " " + "isa_points: " + isa_points + " "
                       + "card_no: " + card_no + " " + "date: " + date + " " + "flag: " + flag + " "
                       + "trade_no: " + trade_no + " " + "notify_url: " + notify_url + " "
                       + "protocol_no: " + protocol_no + " ";
            }
        }
    }
}