using System;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace Aop.Api.Domain
{
    /// <summary>
    /// ZhimaMerchantEvisaStatusSyncModel Data Structure.
    /// </summary>
    [Serializable]
    public class ZhimaMerchantEvisaStatusSyncModel : AopObject
    {
        /// <summary>
        /// 信息同步类型：VERIFY - 材料材料审核状态同步/APPROVE - 签证批准状态同步。  Action type: "VERIFY" for "VerifyUpdateToChannelAPI", and "APPROVE" for "ApproveUpdateToChannelAPI"
        /// </summary>
        [XmlElement("action_type")]
        public string ActionType { get; set; }

        /// <summary>
        /// 批准结果列表。  ApprovedInfo list, if action type equals "APPROVE", this field should not be empty.
        /// </summary>
        [XmlArray("approved_infos")]
        [XmlArrayItem("approved_info")]
        public List<ApprovedInfo> ApprovedInfos { get; set; }

        /// <summary>
        /// 信息同步动作发生时间。  DateTime of biz action.
        /// </summary>
        [XmlElement("biz_time")]
        public string BizTime { get; set; }

        /// <summary>
        /// 商户生成唯一的外部接口调用事务号，使用 pid+out_biz_no 做唯一幂等。  Transaction number generated by channel merchant, idempotent with key of "parterId + out_biz_no".
        /// </summary>
        [XmlElement("out_biz_no")]
        public string OutBizNo { get; set; }

        /// <summary>
        /// 场景类型：THA_EVOA。  API scene type, ex. THA_EVOA.
        /// </summary>
        [XmlElement("scene_type")]
        public string SceneType { get; set; }

        /// <summary>
        /// 审核结果列表。  VerifiedInfo list, if action type equals "VERIFY", this field should not be empty.
        /// </summary>
        [XmlArray("verified_infos")]
        [XmlArrayItem("verified_info")]
        public List<VerifiedInfo> VerifiedInfos { get; set; }
    }
}
